Biased standing spoj problem code

my code is not giving exact output


please look into it

hi ankush,
In your while loop you are doing a little mistake,you forgot to increase actual_rank.
I have marked it.


Please let me know if there is any other doubt.

sir it is showing TLE at submission