static void Main(string[] args) { var input = InputGetter.ReadInputAsString(2019, 8).Result; // var input = "123456789012"; var part1Solution = Part1Solution(input, 25, 6); System.Console.WriteLine(part1Solution); // var testInput = "0222112222120000"; // Part2Solution(testInput, 2, 2); Part2Solution(input, 25, 6); }
static void Main(string[] args) { var inputLines = InputGetter.ReadInputAsString(2019, 4).Result; var codes = inputLines.Split('-').Select(int.Parse).ToList(); var part1Solution = Part1Solution(codes); System.Console.WriteLine(part1Solution); var part2Solution = Part2Solution(codes); System.Console.WriteLine(part2Solution); }
static void Main() { InputGetter.ReadInputAsString(2019, 1).Wait(); var inputLines = InputGetter.ReadInputAsLines(2019, 1).Result; // Part 1 var day1Solution = Day1Solution(inputLines); Console.WriteLine(day1Solution); // Part 2 var day2solution = Day2Solution(inputLines); Console.WriteLine(day2solution); }
static void Main(string[] args) { // InputGetter.ReadInputAsString(2019, 2).Wait(); var inputLine = InputGetter.ReadInputAsString(2019, 5).Result; var input = inputLine.Split(',').ToList(); var program = input.Select(int.Parse).ToList(); // arrange part 1 var initialInput = 1; var part1Input = program.Select(ding => ding).ToList(); var part1Solution = Part1Solution(part1Input, initialInput); System.Console.WriteLine(part1Solution); // arrange part 2 initialInput = 5; var part2Input = program.Select(ding => ding).ToList(); var part2Solution = Part2Solution(part2Input, initialInput); System.Console.WriteLine(part2Solution); }