https://www.acmicpc.net/problem/10951
using System;
using System.IO;
namespace baekjoon
{
class Program
{
static void Main(string[] args)
{
// 표준 입출력 스트림 reader, writer 만들기
// a, b 입력받기, 분리하기, int로 바꾸기
// 각 테스트 케이스마다 a 와 b 더하기
// 버퍼에 저장, 버퍼 한 번에 비우기
StreamReader sr = new StreamReader(Console.OpenStandardInput());
StreamWriter sw = new StreamWriter(Console.OpenStandardOutput());
while (!sr.EndOfStream)
{
string strInput = sr.ReadLine();
string[] strNum = strInput.Split(' ');
int nNumA = int.Parse(strNum[0]);
int nNumB = int.Parse(strNum[1]);
sw.WriteLine(nNumA + nNumB);
}
sw.Flush();
sr.Close();
sw.Close();
}
}
}