示例#1
0
        static void Main(string[] args)
        {
            var solve1 = new Part1().Solve();

            Console.WriteLine(solve1);

            var solve2 = new Part2().Solve();

            Console.WriteLine(solve2);
        }
示例#2
0
        static void Main(string[] args)
        {
            var input = new Input(FilePath);
            var list  = input.Parse();

            Part1 p1     = new Part1(list);
            var   output = p1.Execute();

            Console.WriteLine(output);

            Part2 p2    = new Part2(list);
            var   part2 = p2.Execute();

            Console.WriteLine(part2);
        }