Help with WA

problem : codechef.com/problems/MGCRNK

solution : https://www.codechef.com/viewsolution/34520532

help please …

anyone? i guess WA has something to do with the precision thing in problem …

removed WA but,

i still don’t know what was wrong…

tell me the difference between this and this..

i got one more game for you . tell the difference between this and this.

ty.