TLE ( CHNGFUNC)during contest(July cook off) but same code give AC in pratice section

i submitted my solution during contest, it throws TLE at that time. But when i copy pasted my code(exactly same) in practice section it gave me AC.can anyone explain why this happened? @admin
https://www.codechef.com/viewsolution/14675999

CodeChef: Practical coding for everyone

1 Like

weird things happened in this contest!

It probably has to do with the partial scoring test case issue discussed here, but I cannot say for sure.

2 Likes

mine is not a brute force solution it contains only 1 loop plus on practice section it took only 0.06 second