Esempio n. 1
0
        public static void Main(string[] args)
        {
            string input = OpenInputFile(FileLocation).First();

            input = GarbageCleaner.RemoveCanceledCharacters(input);
            input = GarbageCleaner.RemoveGarbageFromStream(input);

            Console.WriteLine(GroupScoreCounter.CountGroupScore(input));
        }
Esempio n. 2
0
        public static void Main(string[] args)
        {
            string input = OpenInputFile(FileLocation).First();

            input = GarbageCleaner.RemoveCanceledCharacters(input);
            input = GarbageCleaner.RemoveGarbageFromStream(input);

            Console.WriteLine($"Group score: '{GroupScoreCounter.CountGroupScore(input)}'");
            Console.WriteLine($"Amount of removed garbage: '{GarbageCleaner.AmountOfRemovedGarbage}'");
        }