diff --git a/.idea/.idea.AdventOfCode2024/.idea/indexLayout.xml b/.idea/.idea.AdventOfCode2024/.idea/indexLayout.xml index 9d87670..0d1694e 100644 --- a/.idea/.idea.AdventOfCode2024/.idea/indexLayout.xml +++ b/.idea/.idea.AdventOfCode2024/.idea/indexLayout.xml @@ -13,6 +13,8 @@ 05/PROBLEM.md 06 08 + 09/INPUT.txt + 09/PROBLEM.md 10 README.md diff --git a/11/PlutonianPebbles.Tests/PlutonianPebbles.Tests.csproj b/11/PlutonianPebbles.Tests/PlutonianPebbles.Tests.csproj new file mode 100644 index 0000000..514f85b --- /dev/null +++ b/11/PlutonianPebbles.Tests/PlutonianPebbles.Tests.csproj @@ -0,0 +1,19 @@ + + + + Exe + net9.0 + enable + enable + CA1822 + + + + + + + + + + + diff --git a/11/PlutonianPebbles/PlutonianPebbles.csproj b/11/PlutonianPebbles/PlutonianPebbles.csproj new file mode 100644 index 0000000..e7fac23 --- /dev/null +++ b/11/PlutonianPebbles/PlutonianPebbles.csproj @@ -0,0 +1,21 @@ + + + + Exe + net9.0 + enable + enable + CA1822 + + + + + + + + + PreserveNewest + + + + diff --git a/11/PlutonianPebbles/Program.cs b/11/PlutonianPebbles/Program.cs new file mode 100644 index 0000000..5f94bf8 --- /dev/null +++ b/11/PlutonianPebbles/Program.cs @@ -0,0 +1,24 @@ +using System.Diagnostics; + +if (args.Length is 0) +{ + Console.WriteLine("Please provide a path to the input file."); + return; +} + +if (File.Exists(args[0]) is false) +{ + Console.WriteLine("The provided file does not exist."); + return; +} + +var isPart2 = args.Length is 2 && args[1] is "part2"; +var input = await File.ReadAllLinesAsync(args[0]); + +var stopwatch = new Stopwatch(); +stopwatch.Start(); + +// TODO: Implement solution + +stopwatch.Stop(); +Console.WriteLine($". ({stopwatch.ElapsedMilliseconds}ms)"); \ No newline at end of file diff --git a/AdventOfCode2024.sln b/AdventOfCode2024.sln index f66902d..a5701e0 100644 --- a/AdventOfCode2024.sln +++ b/AdventOfCode2024.sln @@ -78,6 +78,16 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HoofIt", "10\HoofIt\HoofIt. EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HoofIt.Tests", "10\HoofIt.Tests\HoofIt.Tests.csproj", "{2FACCE14-0E91-4FAA-9105-711A2B4428C3}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "11", "11", "{F2904315-B827-476F-8CDE-99D2EF115F0A}" + ProjectSection(SolutionItems) = preProject + 11\INPUT.txt = 11\INPUT.txt + 11\PROBLEM.md = 11\PROBLEM.md + EndProjectSection +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlutonianPebbles", "11\PlutonianPebbles\PlutonianPebbles.csproj", "{D5FB6D59-FD68-4186-AE98-585B62EF1E4E}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "PlutonianPebbles.Tests", "11\PlutonianPebbles.Tests\PlutonianPebbles.Tests.csproj", "{47276FDB-9A8C-467F-991F-C57AB22DF2B5}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -167,6 +177,14 @@ Global {2FACCE14-0E91-4FAA-9105-711A2B4428C3}.Debug|Any CPU.Build.0 = Debug|Any CPU {2FACCE14-0E91-4FAA-9105-711A2B4428C3}.Release|Any CPU.ActiveCfg = Release|Any CPU {2FACCE14-0E91-4FAA-9105-711A2B4428C3}.Release|Any CPU.Build.0 = Release|Any CPU + {D5FB6D59-FD68-4186-AE98-585B62EF1E4E}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {D5FB6D59-FD68-4186-AE98-585B62EF1E4E}.Debug|Any CPU.Build.0 = Debug|Any CPU + {D5FB6D59-FD68-4186-AE98-585B62EF1E4E}.Release|Any CPU.ActiveCfg = Release|Any CPU + {D5FB6D59-FD68-4186-AE98-585B62EF1E4E}.Release|Any CPU.Build.0 = Release|Any CPU + {47276FDB-9A8C-467F-991F-C57AB22DF2B5}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {47276FDB-9A8C-467F-991F-C57AB22DF2B5}.Debug|Any CPU.Build.0 = Debug|Any CPU + {47276FDB-9A8C-467F-991F-C57AB22DF2B5}.Release|Any CPU.ActiveCfg = Release|Any CPU + {47276FDB-9A8C-467F-991F-C57AB22DF2B5}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(NestedProjects) = preSolution {1AFE2FF1-A55D-4D86-A9BB-9875CA0D14D8} = {270B7829-6D23-4B34-91FE-D87D533AF2AB} @@ -189,5 +207,7 @@ Global {9A7AAC2C-A23B-4FFE-8B2B-93E204904866} = {2971DA3F-AD59-4BE1-A860-4F1B60BCB771} {5C4EC29A-3297-4D53-95EF-80800F3AF68A} = {7AB34145-87D1-4BB5-AF9C-E0239F8BE1DB} {2FACCE14-0E91-4FAA-9105-711A2B4428C3} = {7AB34145-87D1-4BB5-AF9C-E0239F8BE1DB} + {D5FB6D59-FD68-4186-AE98-585B62EF1E4E} = {F2904315-B827-476F-8CDE-99D2EF115F0A} + {47276FDB-9A8C-467F-991F-C57AB22DF2B5} = {F2904315-B827-476F-8CDE-99D2EF115F0A} EndGlobalSection EndGlobal