1
0
codeforces-template/Codeforces.Console/Program.cs

31 lines
529 B
C#

namespace Codeforces
{
public class Program
{
public static void Main()
{
int count = InputParser.ParseNumber();
for (int i = 0; i < count; i++)
{
var numbers = InputParser.ParseNumbers();
Console.WriteLine(numbers.Sum());
}
}
}
public static class InputParser
{
public static int[] ParseNumbers()
{
return Console.ReadLine()
.Split(' ')
.Select(x => int.Parse(x))
.ToArray();
}
public static int ParseNumber()
{
return int.Parse(Console.ReadLine());
}
}
}