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

https://www.codechef.com/viewsolution/14656596

1 Like

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

2 Likes

weird things happened in this contest!

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