aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSerghei Cebotari <serghei@cebotari.ru>2023-12-07 22:28:25 +0300
committerSerghei Cebotari <serghei@cebotari.ru>2023-12-07 22:28:25 +0300
commita42386b3731ef05d36b3d7ae9a6c9502b5c530fe (patch)
treef07ca99c362abf6eef43c5fdc01ad2ac870cf352
parent6e09130629679328b517810ee5670ca3bab0af16 (diff)
Create IOParser static class
-rw-r--r--Codeforces.Console/Program.cs9
1 files changed, 6 insertions, 3 deletions
diff --git a/Codeforces.Console/Program.cs b/Codeforces.Console/Program.cs
index 3fa975f..4da79bd 100644
--- a/Codeforces.Console/Program.cs
+++ b/Codeforces.Console/Program.cs
@@ -4,14 +4,17 @@
{
public static void Main()
{
- int count = ParseNumber();
+ int count = IOParser.ParseNumber();
for (int i = 0; i < count; i++)
{
- var numbers = ParseNumbers();
+ var numbers = IOParser.ParseNumbers();
Console.WriteLine(numbers.Sum());
}
}
-
+ }
+
+ public static class IOParser
+ {
public static int[] ParseNumbers()
{
return Console.ReadLine()