diff --git a/2019/1/Program.cs b/2019/1/Program.cs index 074ff45..745b070 100644 --- a/2019/1/Program.cs +++ b/2019/1/Program.cs @@ -5,8 +5,17 @@ namespace _1 { class Program { static void Main(string[] args) { - string input = System.IO.File.ReadAllText(@"./input.txt"); - Console.Write(input); + string input = File.ReadAllText(@"./input.txt"); + + string[] inputs = input.Split( Environment.NewLine, StringSplitOptions.None ); + int[] output = new int[100]; + double input_; + for ( int i = 0; i < inputs.Length; i++ ) { + Console.WriteLine( inputs[i] ); + input_ = Convert.ToDouble(inputs[i]); + output[i] = (int)Math.Floor( input_/3 ) - 2; + Console.WriteLine(output[i]); + } } } } diff --git a/2019/1/bin/Debug/netcoreapp2.2/1.dll b/2019/1/bin/Debug/netcoreapp2.2/1.dll index 56dd024..b6b4282 100644 Binary files a/2019/1/bin/Debug/netcoreapp2.2/1.dll and b/2019/1/bin/Debug/netcoreapp2.2/1.dll differ diff --git a/2019/1/bin/Debug/netcoreapp2.2/1.pdb b/2019/1/bin/Debug/netcoreapp2.2/1.pdb index 5c33edd..ef9a374 100644 Binary files a/2019/1/bin/Debug/netcoreapp2.2/1.pdb and b/2019/1/bin/Debug/netcoreapp2.2/1.pdb differ diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.assets.cache b/2019/1/obj/Debug/netcoreapp2.2/1.assets.cache index 058720c..aea48af 100644 Binary files a/2019/1/obj/Debug/netcoreapp2.2/1.assets.cache and b/2019/1/obj/Debug/netcoreapp2.2/1.assets.cache differ diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.dll b/2019/1/obj/Debug/netcoreapp2.2/1.dll index 56dd024..b6b4282 100644 Binary files a/2019/1/obj/Debug/netcoreapp2.2/1.dll and b/2019/1/obj/Debug/netcoreapp2.2/1.dll differ diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.pdb b/2019/1/obj/Debug/netcoreapp2.2/1.pdb index 5c33edd..ef9a374 100644 Binary files a/2019/1/obj/Debug/netcoreapp2.2/1.pdb and b/2019/1/obj/Debug/netcoreapp2.2/1.pdb differ