fork download
  1. #include <iostream>
  2. using namespace std;
  3.  
  4. int main() {
  5. // your code goes here
  6. int T, a, b;
  7. //T <= 125;
  8. //0 <= a <= 10;
  9. //0 <= b <= 10;
  10. cin >> T;
  11. for (int i = 1; i <= T; i++) {
  12. cin >> a >> b;
  13. cout << "Case " << i << ": " << a+b << "\n";
  14. }
  15.  
  16. return 0;
  17. }
Success #stdin #stdout 0s 3344KB
stdin
2
1 7
9 8
stdout
Case 1: 8
Case 2: 17