diff --git a/2019/1/bin/Debug/netcoreapp2.2/1.dll b/2019/1/bin/Debug/netcoreapp2.2/1.dll deleted file mode 100644 index b6b4282..0000000 Binary files a/2019/1/bin/Debug/netcoreapp2.2/1.dll and /dev/null differ diff --git a/2019/1/bin/Debug/netcoreapp2.2/1.pdb b/2019/1/bin/Debug/netcoreapp2.2/1.pdb deleted file mode 100644 index ef9a374..0000000 Binary files a/2019/1/bin/Debug/netcoreapp2.2/1.pdb and /dev/null differ diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.dll b/2019/1/obj/Debug/netcoreapp2.2/1.dll deleted file mode 100644 index b6b4282..0000000 Binary files a/2019/1/obj/Debug/netcoreapp2.2/1.dll and /dev/null differ diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.pdb b/2019/1/obj/Debug/netcoreapp2.2/1.pdb deleted file mode 100644 index ef9a374..0000000 Binary files a/2019/1/obj/Debug/netcoreapp2.2/1.pdb and /dev/null differ diff --git a/2019/1/1.csproj b/2019/Day1/1.csproj similarity index 100% rename from 2019/1/1.csproj rename to 2019/Day1/1.csproj diff --git a/2019/1/Program.cs b/2019/Day1/Program.cs similarity index 85% rename from 2019/1/Program.cs rename to 2019/Day1/Program.cs index 745b070..5846a59 100644 --- a/2019/1/Program.cs +++ b/2019/Day1/Program.cs @@ -10,12 +10,15 @@ namespace _1 string[] inputs = input.Split( Environment.NewLine, StringSplitOptions.None ); int[] output = new int[100]; double input_; + int sum = 0; 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]); + sum += output[i]; } + Console.WriteLine("Sum: " + sum.ToString() ); } } } diff --git a/2019/1/bin/Debug/netcoreapp2.2/1.deps.json b/2019/Day1/bin/Debug/netcoreapp2.2/1.deps.json similarity index 100% rename from 2019/1/bin/Debug/netcoreapp2.2/1.deps.json rename to 2019/Day1/bin/Debug/netcoreapp2.2/1.deps.json diff --git a/2019/Day1/bin/Debug/netcoreapp2.2/1.dll b/2019/Day1/bin/Debug/netcoreapp2.2/1.dll new file mode 100644 index 0000000..39d6a0e Binary files /dev/null and b/2019/Day1/bin/Debug/netcoreapp2.2/1.dll differ diff --git a/2019/Day1/bin/Debug/netcoreapp2.2/1.pdb b/2019/Day1/bin/Debug/netcoreapp2.2/1.pdb new file mode 100644 index 0000000..962f784 Binary files /dev/null and b/2019/Day1/bin/Debug/netcoreapp2.2/1.pdb differ diff --git a/2019/1/bin/Debug/netcoreapp2.2/1.runtimeconfig.dev.json b/2019/Day1/bin/Debug/netcoreapp2.2/1.runtimeconfig.dev.json similarity index 100% rename from 2019/1/bin/Debug/netcoreapp2.2/1.runtimeconfig.dev.json rename to 2019/Day1/bin/Debug/netcoreapp2.2/1.runtimeconfig.dev.json diff --git a/2019/1/bin/Debug/netcoreapp2.2/1.runtimeconfig.json b/2019/Day1/bin/Debug/netcoreapp2.2/1.runtimeconfig.json similarity index 100% rename from 2019/1/bin/Debug/netcoreapp2.2/1.runtimeconfig.json rename to 2019/Day1/bin/Debug/netcoreapp2.2/1.runtimeconfig.json diff --git a/2019/1/input.txt b/2019/Day1/input.txt similarity index 100% rename from 2019/1/input.txt rename to 2019/Day1/input.txt diff --git a/2019/1/obj/1.csproj.nuget.cache b/2019/Day1/obj/1.csproj.nuget.cache similarity index 100% rename from 2019/1/obj/1.csproj.nuget.cache rename to 2019/Day1/obj/1.csproj.nuget.cache diff --git a/2019/1/obj/1.csproj.nuget.dgspec.json b/2019/Day1/obj/1.csproj.nuget.dgspec.json similarity index 100% rename from 2019/1/obj/1.csproj.nuget.dgspec.json rename to 2019/Day1/obj/1.csproj.nuget.dgspec.json diff --git a/2019/1/obj/1.csproj.nuget.g.props b/2019/Day1/obj/1.csproj.nuget.g.props similarity index 100% rename from 2019/1/obj/1.csproj.nuget.g.props rename to 2019/Day1/obj/1.csproj.nuget.g.props diff --git a/2019/1/obj/1.csproj.nuget.g.targets b/2019/Day1/obj/1.csproj.nuget.g.targets similarity index 100% rename from 2019/1/obj/1.csproj.nuget.g.targets rename to 2019/Day1/obj/1.csproj.nuget.g.targets diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.AssemblyInfo.cs b/2019/Day1/obj/Debug/netcoreapp2.2/1.AssemblyInfo.cs similarity index 100% rename from 2019/1/obj/Debug/netcoreapp2.2/1.AssemblyInfo.cs rename to 2019/Day1/obj/Debug/netcoreapp2.2/1.AssemblyInfo.cs diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.AssemblyInfoInputs.cache b/2019/Day1/obj/Debug/netcoreapp2.2/1.AssemblyInfoInputs.cache similarity index 100% rename from 2019/1/obj/Debug/netcoreapp2.2/1.AssemblyInfoInputs.cache rename to 2019/Day1/obj/Debug/netcoreapp2.2/1.AssemblyInfoInputs.cache diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.assets.cache b/2019/Day1/obj/Debug/netcoreapp2.2/1.assets.cache similarity index 100% rename from 2019/1/obj/Debug/netcoreapp2.2/1.assets.cache rename to 2019/Day1/obj/Debug/netcoreapp2.2/1.assets.cache diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.csproj.CoreCompileInputs.cache b/2019/Day1/obj/Debug/netcoreapp2.2/1.csproj.CoreCompileInputs.cache similarity index 100% rename from 2019/1/obj/Debug/netcoreapp2.2/1.csproj.CoreCompileInputs.cache rename to 2019/Day1/obj/Debug/netcoreapp2.2/1.csproj.CoreCompileInputs.cache diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.csproj.FileListAbsolute.txt b/2019/Day1/obj/Debug/netcoreapp2.2/1.csproj.FileListAbsolute.txt similarity index 100% rename from 2019/1/obj/Debug/netcoreapp2.2/1.csproj.FileListAbsolute.txt rename to 2019/Day1/obj/Debug/netcoreapp2.2/1.csproj.FileListAbsolute.txt diff --git a/2019/1/obj/Debug/netcoreapp2.2/1.csprojAssemblyReference.cache b/2019/Day1/obj/Debug/netcoreapp2.2/1.csprojAssemblyReference.cache similarity index 100% rename from 2019/1/obj/Debug/netcoreapp2.2/1.csprojAssemblyReference.cache rename to 2019/Day1/obj/Debug/netcoreapp2.2/1.csprojAssemblyReference.cache diff --git a/2019/Day1/obj/Debug/netcoreapp2.2/1.dll b/2019/Day1/obj/Debug/netcoreapp2.2/1.dll new file mode 100644 index 0000000..39d6a0e Binary files /dev/null and b/2019/Day1/obj/Debug/netcoreapp2.2/1.dll differ diff --git a/2019/Day1/obj/Debug/netcoreapp2.2/1.pdb b/2019/Day1/obj/Debug/netcoreapp2.2/1.pdb new file mode 100644 index 0000000..962f784 Binary files /dev/null and b/2019/Day1/obj/Debug/netcoreapp2.2/1.pdb differ diff --git a/2019/1/obj/project.assets.json b/2019/Day1/obj/project.assets.json similarity index 100% rename from 2019/1/obj/project.assets.json rename to 2019/Day1/obj/project.assets.json