The most funniest thing I came accross in September long challenge

So, I have a habit of submitting my every answer twice just to be sure it’s wrong or not and trust me its worth it(you can also see in my profile ).
I will be sharing the link to 2 of my own solution for the first question in September long challenge and you can compare it line by line they are the same but 1 is AC and the other is WA.
Solution1:-https://www.codechef.com/viewsolution/37448024 (got 100 for this)
Solution2:-https://www.codechef.com/viewsolution/37447927 (got 20 for this )
If anyone can explain why this happened please feel free to.

it’s not WA, it’s TLE, you are too close to the time limit and small difference of running time may occur

8 Likes

whut?

since codechef uses cloud to test codes, there is around chance of 10-15% variation in runtime.So, is the case with your code, it was tle.

1 Like

I do have faced once where it gave wa on a test case 4 times and ac 1 time on the same code in June challenge CONVAIR and there were no srands or random etc
@carre

1 Like

that could be due to some undefined behaviour in your code

3 Likes