euisblue
7891. Can you add this?

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).

C++

1#include <bits/stdc++.h> 2using namespace std; 3 4int main(void) { 5 ios::sync_with_stdio(0); 6 cin.tie(0); 7 8 int t, a, b; 9 scanf("%d", &t); 10 11 for(int i=1; i<=t; ++i) { 12 scanf("%d %d", &a, &b); 13 printf("%d\n", a+b); 14 } 15 16 return 0; 17}