728x90
A+B를 출력하는 문제입니다.
#include <iostream>
#include <cstring>
using namespace std;
int main(int argc, char *argv[])
{
int t;
cin >> t;
for(int i = 1; i <= t; ++i){
int x, y;
cin >> x >> y;
cout << "Case #" << i << ": " << x + y << endl;
}
return 0;
}
'알고리즘' 카테고리의 다른 글
[C++] 백준 10952번 A+B - 5 (0) | 2019.08.04 |
---|---|
[C++] 백준 11022번 A+B - 8 (0) | 2019.08.04 |
[C++] 백준 6064번 카잉 달력 (0) | 2019.08.04 |
[C++] 백준 2146번 다리 만들기 (0) | 2019.08.03 |
[C++] 백준 2753번 윤년 (0) | 2019.08.03 |