public async Task Day9StarOne() { var dayObject = new Day9(); dayObject.ParseInput(GetInput(9)); Assert.AreEqual(1124361034L, dayObject.StarOne()); }
public async Task Day9StarTwo() { var dayObject = new Day9(); dayObject.ParseInput(GetInput(9)); Assert.AreEqual(129444555L, dayObject.StarTwo()); }
private static void Main() { // Console.WriteLine(Day1.PartOne()); // Console.WriteLine(Day1.PartTwo()); // Console.WriteLine(Day2.PartOne()); // Console.WriteLine(Day2.PartTwo()); // Console.WriteLine(Day3.PartOne()); // Console.WriteLine(Day3.PartTwo()); // Console.WriteLine(Day4.PartOne()); // Console.WriteLine(Day4.PartTwo()); // Console.WriteLine(Day5.PartOne()); // Console.WriteLine(Day5.PartTwo()); // Console.WriteLine(Day6.PartOne()); // Console.WriteLine(Day6.PartTwo()); // Console.WriteLine(Day8.PartOne()); // Console.WriteLine(Day8.PartTwo()); Console.WriteLine(Day9.PartOne()); Console.WriteLine(Day9.PartTwo()); }
private static void SolveDay9() { LongData data = new LongData(".\\Data\\Day9a.txt"); Day9 day = new Day9(data, 25); Console.WriteLine("Day9"); day.SolveToConsole(); Console.WriteLine("Press any key to continue"); Console.ReadKey(); }
static void Main(string[] args) { Helper.PrintChallenge("Day 1"); Day1.Run(); Helper.PrintChallenge("Day 2"); Day2.Run(); Helper.PrintChallenge("Day 3"); Day3.Run(); Helper.PrintChallenge("Day 4"); Day4.Run(); Helper.PrintChallenge("Day 5"); Day5.Run(); Helper.PrintChallenge("Day 6"); Day6.Run(); Helper.PrintChallenge("Day 7"); Day7.Run(); Helper.PrintChallenge("Day 8"); Day8.Run(); Helper.PrintChallenge("Day 9"); Day9.Run(); Helper.PrintChallenge("Day 10"); Day10.Run(); Helper.PrintChallenge("Day 11"); Day11.Run(); Helper.PrintChallenge("Day 12"); Day12.Run(); Helper.PrintChallenge("Day 13"); Day13.Run(); Helper.PrintChallenge("Day 14"); Day14.Run(); Helper.PrintChallenge("Day 15"); Day15.Run(); Helper.PrintChallenge("Day 16"); Day16.Run(); Helper.PrintChallenge("Day 17"); Day17.Run(); }
static void bigDemo() { Day1.Demo(); Day2.demo(); Day3.demo(); Day4.demo(); Day5.demo(); Day6.demo(); Day7.demo(); Day8.demo(); Day9.demo(); }
static void Main(string[] args) { Console.WriteLine("Day1"); Day1.Problem1(); Day1.Problem2(); Console.WriteLine("Day2"); Day2.Problem1(); Day2.Problem2(); Console.WriteLine("Day3"); Day3.Problem1(); Day3.Problem2(); Console.WriteLine("Day4"); Day4.Problem1(); Day4.Problem2(); Console.WriteLine("Day5"); Day5.Problem1(); Day5.Problem2(); Console.WriteLine("Day6"); Day6.Problem1(); Day6.Problem2(); Console.WriteLine("Day 7"); Day7.Problem1(); Day7.Problem2(); Console.WriteLine("Day 8"); Day8.Problem1(); Day8.Problem2(); Console.WriteLine("Day 9"); Day9.Problem1(); Day9.Problem2(); Console.WriteLine("Day 10"); Day10.Problem1(); Day10.Problem2(); Console.WriteLine("Day 11"); Day11.Problem1(); Day11.Problem2(); Console.WriteLine("Day 12"); Day12.Problem1(); Day12.Problem2(); Console.WriteLine("Day 13"); Day13.Problem1(); Day13.Problem2(); Console.WriteLine("Day 14"); Day14.Problem1(); Day14.Problem2(); Console.WriteLine("Day 15"); Day15.Problem1(); //Day15.Problem2(); Console.WriteLine("Day 16"); Day16.Problem1(); Day16.Problem2(); }
static string RunDay9() { return(Day9.Run(GetInput(9)).ToString()); }
//IT WORKS AND I'M TOO LAZY TO ALTER WHAT LOOKED FINE WHEN IT WAS JUST 3 DAYS LONG private void Button1_Click(object sender, EventArgs e) { switch ((int)dayNumber.Value) { case 1: outputBox.Text = "\n- - - - DAY 1 - PART 1 - - - -\n\n" + Day1.PartOneOutput(inputBox.Text); break; case 2: outputBox.Text = "\n- - - - DAY 2 - PART 1 - - - -\n\n" + Day2.PartOneOutput(inputBox.Text); break; case 3: outputBox.Text = "\n- - - - DAY 3 - PART 1 - - - -\n\n" + Day3.PartOneOutput(inputBox.Text); break; case 4: outputBox.Text = "\n- - - - DAY 4 - PART 1 - - - -\n\n" + Day4.PartOneOutput(inputBox.Text); break; case 5: outputBox.Text = "\n- - - - DAY 5 - PART 1 - - - -\n\n" + Day5.PartOneOutput(inputBox.Text); break; case 6: outputBox.Text = "\n- - - - DAY 6 - PART 1 - - - -\n\n" + Day6.PartOneOutput(inputBox.Text); break; case 7: outputBox.Text = "\n- - - - DAY 7 - PART 1 - - - -\n\n" + Day7.PartOneOutput(inputBox.Text); break; case 8: outputBox.Text = "\n- - - - DAY 8 - PART 1 - - - -\n\n" + Day8.PartOneOutput(inputBox.Text); break; case 9: outputBox.Text = "\n- - - - DAY 9 - PART 1 - - - -\n\n" + Day9.PartOneOutput(inputBox.Text); break; case 10: outputBox.Text = "\n- - - - DAY 10 - PART 1 - - - -\n\n" + Day10.PartOneOutput(inputBox.Text); break; case 11: outputBox.Text = "\n- - - - DAY 11 - PART 1 - - - -\n\n" + Day11.PartOneOutput(inputBox.Text); break; case 12: outputBox.Text = "\n- - - - DAY 12 - PART 1 - - - -\n\n" + Day12.PartOneOutput(inputBox.Text); break; case 13: outputBox.Text = "\n- - - - DAY 13 - PART 1 - - - -\n\n" + Day13.PartOneOutput(inputBox.Text); break; case 14: outputBox.Text = "\n- - - - DAY 14 - PART 1 - - - -\n\n" + Day14.PartOneOutput(inputBox.Text); break; case 15: outputBox.Text = "\n- - - - DAY 15 - PART 1 - - - -\n\n" + Day15.PartOneOutput(inputBox.Text); break; case 16: outputBox.Text = "\n- - - - DAY 16 - PART 1 - - - -\n\n" + Day16.PartOneOutput(inputBox.Text); break; case 17: outputBox.Text = "\n- - - - DAY 17 - PART 1 - - - -\n\n" + Day17.PartOneOutput(inputBox.Text); break; case 18: outputBox.Text = "\n- - - - DAY 18 - PART 1 - - - -\n\n" + Day18.PartOneOutput(inputBox.Text); break; case 19: outputBox.Text = "\n- - - - DAY 19 - PART 1 - - - -\n\n" + Day19.PartOneOutput(inputBox.Text); break; case 20: outputBox.Text = "\n- - - - DAY 20 - PART 1 - - - -\n\n" + Day20.PartOneOutput(inputBox.Text); break; case 21: outputBox.Text = "\n- - - - DAY 21 - PART 1 - - - -\n\n" + Day21.PartOneOutput(inputBox.Text); break; case 22: outputBox.Text = "\n- - - - DAY 22 - PART 1 - - - -\n\n" + Day22.PartOneOutput(inputBox.Text); break; case 23: outputBox.Text = "\n- - - - DAY 23 - PART 1 - - - -\n\n" + Day23.PartOneOutput(inputBox.Text); break; case 24: outputBox.Text = "\n- - - - DAY 24 - PART 1 - - - -\n\n" + Day24.PartOneOutput(inputBox.Text); break; case 25: outputBox.Text = "\n- - - - DAY 25 - PART 1 - - - -\n\n" + Day25.PartOneOutput(inputBox.Text); break; default: break; } }