Feedback for KINGSHIP problem

Problem Link: KINGSHIP Problem - CodeChef

Feedback

in the constraints of the problem,
it it given that 1<=Pi<=10^6
whereas in one of the testcases, the value of Pi>=10^9 so we need to use long instead of int
so please look into it