aboutsummaryrefslogtreecommitdiff
path: root/Codeforces.Console/Program.cs
blob: 3fa975f4297ff7f83e695c81e9739194eeda4261 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
namespace Codeforces
{
	public class Program
	{
		public static void Main()
		{
			int count = ParseNumber();
			for (int i = 0; i < count; i++)
			{
				var numbers = ParseNumbers();
				Console.WriteLine(numbers.Sum());
			}
		}

		public static int[] ParseNumbers()
		{
			return Console.ReadLine()
					.Split(' ')
					.Select(x => int.Parse(x))
					.ToArray();
		}
		
		public static int ParseNumber()
		{
			return int.Parse(Console.ReadLine());
		}
	}
}