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

25 lines
446 B
C#

namespace Codeforces
{
public class Program
{
public static void Main()
{
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());
}
}
public static int[] ParseInput()
{
return Console.ReadLine()
.Split(' ')
.Select(x => int.Parse(x))
.ToArray();
}
}
}