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

23 lines
391 B
C#
Raw Normal View History

2023-08-09 09:42:50 +03:00
namespace Codeforces
{
public class Program
{
2023-08-09 15:12:39 +03:00
public static void Main()
2023-08-09 09:42:50 +03:00
{
2023-08-11 10:08:25 +03:00
int count = int.Parse(Console.ReadLine());
for (int i = 0; i < count; i++)
2023-08-09 09:42:50 +03:00
{
2023-08-11 10:10:29 +03:00
var numbers = ParseInput();
2023-08-09 09:42:50 +03:00
Console.WriteLine(numbers.Sum());
}
}
2023-08-11 10:08:25 +03:00
public static int[] ParseInput()
{
return Console.ReadLine()
.Split(' ')
.Select(x => int.Parse(x))
.ToArray();
}
2023-08-09 09:42:50 +03:00
}
}