| 20 | using namespace std; |
| 21 | |
| 22 | int main() |
| 23 | { |
| 24 | int t; |
| 25 | cin>>t; // no of test cases |
| 26 | while(t--){ |
| 27 | int n, counter, x, y, x_req=0, y_req=0; |
| 28 | cin>>n; // no of rectangles |
| 29 | |
| 30 | counter = 4*n -1; // co-ordinates of 4*n-1 vertices are given |
| 31 | while(counter--){ // loop for XOR of all x-coordinates and XOR of all y-coordinates |
| 32 | cin>>x>>y; |
| 33 | x_req ^= x; |
| 34 | y_req ^= y; |
| 35 | } |
| 36 | |
| 37 | cout<<x_req<<" "<<y_req<<endl; //print required output |
| 38 | } |
| 39 | |
| 40 | return 0; |
| 41 | } |
nothing calls this directly
no outgoing calls
no test coverage detected