Feedback for PERCAPTA problem

Problem Link: PERCAPTA Problem - CodeChef

Feedback

For the given input :
1
2 1
0 0
5 5
1 2
output should be -
2
1 2
since both have per capita income as 0 , and they both have an edge in between too…
BUT , 2 AC solutions have different answers for the above testcase…
Person1’sCode = CodeChef: Practical coding for everyone (above result)
Person2’sCode = CodeChef: Practical coding for everyone ( result = 0 )