aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2023-08-11 10:10:29 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2023-08-11 10:10:29 +0300
commitc20bff382ed01993a7f05ff6425fc82cfe27fec4 (patch)
tree049df0e8e2b71ca6f4768d6b4eab1b6d6deecc20
parentf11270f3b5d15a4afe5026efa0c0c5406b85c3d5 (diff)
Edit program
-rw-r--r--Codeforces.Console/Program.cs4
1 files changed, 1 insertions, 3 deletions
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());
}
}