diff options
Diffstat (limited to 'Codeforces.Console/Program.cs')
-rw-r--r-- | Codeforces.Console/Program.cs | 19 |
1 files changed, 17 insertions, 2 deletions
diff --git a/Codeforces.Console/Program.cs b/Codeforces.Console/Program.cs index 3751555..21ac3e9 100644 --- a/Codeforces.Console/Program.cs +++ b/Codeforces.Console/Program.cs @@ -1,2 +1,17 @@ -// See https://aka.ms/new-console-template for more information -Console.WriteLine("Hello, World!"); +namespace Codeforces +{ + public class Program + { + public static void Main(string[] args) + { + int count = int.Parse(Console.ReadLine()!); + for (int i = 0; i < count; i++) + { + var numbers = Console.ReadLine()! + .Split(' ') + .Select(x => int.Parse(x)); + Console.WriteLine(numbers.Sum()); + } + } + } +}
\ No newline at end of file |