Weird C++ behaviour in Cook Off

Can someone tell me how this got TLEd -

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

and this got accepted- CodeChef: Practical coding for everyone

Both have same complexity - O(n) and both are logically exactly same.

1 Like

Odd - can you re-submit your TLE for Practice? Maybe it was just some glitch due to overloaded servers, or something.

1 Like

First code is 78 lines and the second is 77 :slight_smile: XD

Edit : Just noticed now , you just have removed the commented code :frowning:

Yes it got accepted . But wtf . Can’t we trust verdicts during contest now.l?

Also it costed me a penalty and unnecessary changing of code for more than 5 mins.

2 Likes

Bhaisaab confidence gir jata hai!

6 Likes

Atleast you have the courage of removing a commented code and submit it !

6 Likes

lol :rofl::rofl:

1 Like

We had a look at this, and it looks like a very rare case. We have rejudged the solution and the penalty will not count towards your rank in the contest. Apologies for the time lost.

10 Likes