PS_Baekjoon
[백준 C++] 7891번 : Can you add this?
SMILELY
2023. 4. 19. 23:49
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';
}
}