diff --git a/Codeforces.Console/Program.cs b/Codeforces.Console/Program.cs index 029f76d..49db58b 100644 --- a/Codeforces.Console/Program.cs +++ b/Codeforces.Console/Program.cs @@ -7,9 +7,7 @@ int count = int.Parse(Console.ReadLine()); for (int i = 0; i < count; i++) { - var numbers = Console.ReadLine() - .Split(' ') - .Select(x => int.Parse(x)); + var numbers = ParseInput(); Console.WriteLine(numbers.Sum()); } }