Exemple #1
0
        static void Main(string[] args)
        {
            var dataStrings = File.ReadAllLines("./input.txt");
            var data        = dataStrings.Select(x => Convert.ToInt64(x)).ToArray();
            var exmaHack    = new ExmaHack(data);

            Part1(exmaHack);
            Part2(exmaHack);

            Console.ReadLine();
        }
Exemple #2
0
        public static void Part2(ExmaHack exmaHack)
        {
            var encryptionWeakness = exmaHack.GetEncryptionWeakness();

            Console.WriteLine($"Encryption Weakness: {encryptionWeakness}");
        }
Exemple #3
0
        public static void Part1(ExmaHack exmaHack)
        {
            var invalidItem = exmaHack.GetInvalidDataItem();

            Console.WriteLine($"Invalid Item: {invalidItem.Value}");
        }