Bug in Codechef

For the problem Contest Page | CodeChef same solution at first results in TLE then Correct Answer.
Why is this happening? Is this a bug on codechef?

Solution Link:
https://www.codechef.com/viewsolution/48163829
https://www.codechef.com/viewsolution/48165644

7 Likes

bug no on codechef. codechef on bug

6 Likes

Same happened with me…today’s lunchtime was a total mess

2 Likes

same happened with me

1 Like

this is not bug, execution time can change by ± 5% depending on load of server

4 Likes

Hey, even i also think there was some bug.
See this code : Solution: 48199198 | CodeChef (RTE)
and see this code : Solution: 48199198 | CodeChef (AC)
Only difference is that I changed the size of vector v from nm to nm+1 … but i have to take input till n*m-1 index only. I don’t know why this happened.

1 Like

And because of this I had wasted almost 30 to 45 minutes in changing logic and language but reault was same. :slightly_frowning_face: :slightly_frowning_face: :frowning_face: :slightly_frowning_face:

3 Likes

Btw what was the time complexity of your code? RealBin problem’s time constraint was fine if you used the correct logic.

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

that your problem. what participlants can do ? if your server having problem then why you conduct contest? i am facing these codechef server problem by last 2 yrs. when will you peple fix it?

1 Like

I submitted 18 times in c++ it was getting TLE at 19th time it got accepted without changing. What a bizzare this system is!!:upside_down_face::slightly_smiling_face:

1 Like

Man there was a bug definitely! I tried to submit a solution that did not contain any logic ( to verify whether there was a bug or not), just inputs from user and submitted it (in java)…still I was getting TLE… :cry:

It TLEd for me for a o(1) logic ;__; (power of 2 with bit check)

it is same for cf and cc

lamest excuse bro .but u need to keep in mind how that effects coders .

today they wasted time .

from tomrrow they will keep on submitting tle solution again and again hoping that will pass .

if this is such an obvious and expected behavior then u should have considered time limits based on this

I was also giving contest. It is the real reason. I am not telling any excuse

In codeforces there is an instant plagarism checking then why not on codechef. If you are comparing codechef with codeforces then do it properly.

1 Like

yup i also got tle even for o(logn)

I have a question if thats the problem then why not increase time constartion by 5% for these type of questions.

you cannot escape codechef @sebastian answer these