https://www.acmicpc.net/problem/7891
7891번: Can you add this?
The input contains several test cases. The first line contains and integer t (t ≤ 100) denoting the number of test cases. Then t tests follow, each of them consisiting of two space separated integers x and y (−109 ≤ x, y ≤ 109).
www.acmicpc.net
코드 :
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
cin.tie(NULL);
ios::sync_with_stdio(false);
int t;
long long a,b;
cin >> t;
while(t--){
cin >> a >> b;
cout << a + b << '\n';
}
}
'PS_Baekjoon' 카테고리의 다른 글
[백준 C++] 4101번 : 크냐? (0) | 2023.04.21 |
---|---|
[백준 C++] 8370번 : Plane (0) | 2023.04.20 |
[백준 C++] 27323번 : 직사각형 (1) | 2023.04.18 |
[백준 C++] 5671번 : 호텔 방 번호 (0) | 2023.04.17 |
[백준 C++] 27866번 : 문자와 문자열 (0) | 2023.04.16 |