private void CreateTaskForDay(int currentDay) { var input = AOCInput.GetInput(currentDay); if (currentDay == 1) { CreateTask(() => Day1Main.Part1(input), () => Day1Main.Part2(input)); Day1Main.StartPart1ComputeShader(input); } else if (currentDay == 2) { CreateTask(() => Day2Main.Part1(input), () => Day2Main.Part2(input)); } else if (currentDay == 3) { CreateTask(() => Day3Main.Part1(input) + "", () => Day3Main.Part2(input) + ""); } else if (currentDay == 4) { CreateTask(() => Day4Main.Part1(input) + "", () => Day4Main.Part2(input) + ""); } else if (currentDay == 5) { CreateTask(() => Day5Main.Part1(input) + "", () => Day5Main.Part2(input) + ""); } else if (currentDay == 6) { CreateTask(() => Day6Main.Part1(input) + "", () => Day6Main.Part2(input) + ""); } else if (currentDay == 7) { CreateTask(() => Day7Main.Part1(input) + "", () => Day7Main.Part2(input) + ""); } else if (currentDay == 8) { CreateTask(() => Day8Main.Part1(input) + "", () => Day8Main.Part2(input) + ""); } else if (currentDay == 9) { CreateTask(() => Day9Main.Part1(input) + "", () => Day9Main.Part2(input) + ""); } else if (currentDay == 10) { CreateTask(() => Day10Main.Part1(input) + "", () => Day10Main.Part2(input) + ""); } else if (currentDay == 11) { CreateTask(() => Day11Main.Part1(input) + "", () => Day11Main.Part2(input) + ""); } else if (currentDay == 12) { CreateTask(() => Day12Main.Part1(input) + "", () => Day12Main.Part2(input) + ""); } else if (currentDay == 13) { CreateTask(() => Day13Main.Part1(input) + "", () => Day13Main.Part2(input) + ""); } else if (currentDay == 14) { CreateTask(() => Day14Main.Part1(input) + "", () => Day14Main.Part2(input) + ""); } else if (currentDay == 15) { CreateTask(() => Day15Main.Part1(input) + "", () => Day15Main.Part2(input) + ""); } }
public void Part2_Exemple1() { var input = "COM)B\nB)C\nC)D\nD)E\nE)F\nB)G\nG)H\nD)I\nE)J\nJ)K\nK)L\nK)YOU\nI)SAN"; Assert.AreEqual(4, Day6Main.Part2(input)); }