fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. ios::sync_with_stdio(false);
  6. cin.tie(nullptr);
  7.  
  8. int t;
  9. cin >> t;
  10. while (t--) {
  11. int a, b;
  12. cin >> a >> b;
  13. cout << a + b << "\n";
  14. }
  15. return 0;
  16. }
Success #stdin #stdout 0.01s 5288KB
stdin
5
1 1
12 34
5 500
40 60
1000 1000
stdout
2
46
505
100
2000