algorithms

Algorithm implementations
git clone git://git.laack.co/algorithms.git
Log | Files | Refs | README

main.cpp (352B)


      1 #include <iostream>
      2 #include <vector>
      3 #include <unordered_set>
      4 #include <unordered_map>
      5 #include <algorithm>
      6 
      7 using namespace std;
      8 
      9 int main() {
     10     int testCases, x,y,r = 0;
     11     cin >> testCases;
     12     for(int i = 0; i < testCases; ++i) {
     13         cin >> x;
     14         cin >> y;
     15         cin >> r;
     16         std::cout << x << " " << y+r << std::endl;
     17     }
     18 
     19 }