https://www.acmicpc.net/problem/11022
using System;
using System.IO;
namespace baekjoon
{
class Program
{
static void Main(string[] args)
{
// 표준 입출력 스트림 reader,writer 만들기
// 테스트케이스 개수 입력받기, int로 바꾸기
// 테스트케이스 개수만큼 반복해서 정수 2개 받기, 분리하기, int로 바꾸기
// 예제 출력대로 버퍼에 저장, 버퍼 한 번에 비우기
StreamReader sr = new StreamReader(Console.OpenStandardInput());
StreamWriter sw = new StreamWriter(Console.OpenStandardOutput());
string strTestCase = sr.ReadLine();
int nTestCase = int.Parse(strTestCase);
for (int i = 1; i <= nTestCase; i++)
{
string strInput = sr.ReadLine();
string[] strNum = strInput.Split(' ');
int nNumA = int.Parse(strNum[0]);
int nNumB = int.Parse(strNum[1]);
sw.WriteLine("Case #" + i + ": " + nNumA + " + " + nNumB + " = " + (nNumA + nNumB));
}
sw.Flush();
sr.Close();
sw.Close();
}
}
}