ElOMAX HELP

https://www.codechef.com/viewsolution/37307314
cant find error can someone please help
@everule1
@galencolin
@ssrivastava990

small mistake ,you are calculating ranks wrong

like if ratings are 2500 2500 2510
the ranks should be 0 0 2
instead your code is giving 0 0 1

I corrected your code and it got accepted
corrected code link => https://www.codechef.com/viewsolution/37358100
in above code ,cnt stores no of ratings which are equal

2 Likes

Thank u so much aditya for helping me out