public static void Main(string[] args) { string input = OpenInputFile(FileLocation).First(); input = GarbageCleaner.RemoveCanceledCharacters(input); input = GarbageCleaner.RemoveGarbageFromStream(input); Console.WriteLine(GroupScoreCounter.CountGroupScore(input)); }
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}'"); }