Recent Posts
Notice
No Rules Rules
빠른 A+B (feat. 백준, 15552번) 본문
728x90
반응형
빠른 A+B
https://www.acmicpc.net/problem/15552
15552번: 빠른 A+B
첫 줄에 테스트케이스의 개수 T가 주어진다. T는 최대 1,000,000이다. 다음 T줄에는 각각 두 정수 A와 B가 주어진다. A와 B는 1 이상, 1,000 이하이다.
www.acmicpc.net
반응형
// woohyeon.kim
// kim519620.tistory.com
#include <iostream>
using namespace std;
int main() {
ios::sync_with_stdio(false), cin.tie(NULL);
register int T;
cin >> T;
for (register int t = 1, a, b; t <= T; ++t)
cin >> a >> b, cout << a + b << "\n";
return 0;
}
// *&)*@*
입력된 값 a,b를 합하여 출력하는 문제입니다.
728x90
반응형
'생활 > 코테' 카테고리의 다른 글
별 찍기 - 1 (feat. 백준, 2438번) (0) | 2022.08.10 |
---|---|
A+B - 7 (feat. 백준, 11021번) (0) | 2022.08.10 |
영수증 (feat. 백준, 25304번) (0) | 2022.08.10 |
합 (feat. 백준, 8393번) (0) | 2022.08.09 |
A+B - 3 (feat. 백준, 10950번) (0) | 2022.08.09 |
Comments