MCPcopy Create free account
hub / github.com/Vishruth-S/CompetitiveCode / main

Function main

CodeChef_problems/PTMSSNG/solution.cpp:22–41  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

20using namespace std;
21
22int 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}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected