You are not logged in. Please login at to post your questions!


[closed] Very weak test cases for problem IEMCO5D

I want to report wrong constraints / incorrect test cases in wakeup sid question(IMECO5D). I have gone through accepted submissions of others and noticed that those who didn't assert the constraint 0 <= L + R <= N - 1, got their answers accepted. I ensured that constraint and got Wrong Answer.

I also found that many bruteforce solutions were accepted and some other solutions that didn't handle integer overflows were also accepted. But according to the given constraints, they should result in Time Limit Exceeded or Wrong Answers.

So either this question must be removed or all the submissions must be rejudged with proper testcases.

asked 21 Apr '18, 23:50

achaitanyasai's gravatar image

accept rate: 10%

closed 25 Apr '18, 17:17

Sorry for the confusion: By "noticed that those who didn't assert the constraint 0 <= L + R <= N - 1, got their answers accepted",

I meant, those who didn't take care of that condition got their solution accepted (it's not those who didn't put assert() statement in code got their solution accepted).

(22 Apr '18, 18:50) achaitanyasai5★

The question has been closed for the following reason "The question is answered, right answer was accepted" by achaitanyasai 25 Apr '18, 17:17

Hello everyone,

I am the manager of IEMCO. Sorry for the delay in rejudge, I was stuck with some personal work as I have already mentioned. There was a bug in one of the test files of IEMCO5D (Wake Up Sid) which I didn't catch with my assert statements due to the WA > RTE display preference. The rank list has been updated. The management team will soon be sending the prizes.

Shout out to @achaitanyasai for pointing out the possible bug in the test-cases.

Sorry for the inconvenience and delay and thank you to everyone for participating.


answered 25 Apr '18, 17:05

dwij28's gravatar image

accept rate: 40%

Yes, we used assert to check the constraints. Even on telling the organisers about the constraint failing, there was no reply.

Such a ridiculous waste of time, for a contest whose organisers don't even care to check there test cases (even on informing them about the mistake) and whose toughest problem passed with brute solutions.

Time to go back to codeforces. :P


answered 22 Apr '18, 00:55

vaibhav138's gravatar image

accept rate: 0%


I have seen that @admin has submitted the code: to check the constraints in practice. It got Wrong Answer. But your code still gives SIGABRT. However, if I comment the print statements, your code also gives Wrong Answer.

So is the display preference of Wrong Answer > Runtime Error?? (I mean if the same code got Wrong Answer on some test files and RTE on some other files, does verdict displayed is Wrong Answer)?

(22 Apr '18, 13:49) achaitanyasai5★

Yes, I think WA > RE, this is why the setter thought his test data is correct.

(22 Apr '18, 14:47) vaibhav1385★

The setter (and surely admin too) can see the results for individual test files.

(22 Apr '18, 19:42) meooow ♦6★

Hey @achaitanyasai, @vaibhav138, @meooow, I am the manager of IEMCO.. I believe that if there is really an issue, we probably didn't catch it due to the WA>RE display preference thing. None of my assertions gave an RTE. Our team also received an email from CodeChef admin regarding this today. I will have all the files checked again and rejudged. Just give a bit of time, as I am stuck with some work. I will ensure that the prizes are distributed only after correcting errors and rejudge (if it is to be done). Just asking for a small amount of time due to personal work. Hope you guys understand.

(22 Apr '18, 23:42) dwij285★

@sid55 No, the problem was with the test data only.

Proof :

This solution of the team the_human1 fails assert :

This solution from the same team where they have handled the case where l+r >= m-1 explicitly passes :

In the question it was clearly mentioned 0 ≤ L+R ≤ N-1 .


answered 22 Apr '18, 14:59

vaibhav138's gravatar image

accept rate: 0%

@sid55 I looks like that only your pc shows server problem every website. Instead of admitting mistake only finding out codechef / codeforces server problems. If there was actually a server problem then you should have contacted @admin to resolve issue at earliest.

"So bear with the issue" why ??

We are here to solve questions not regret after contest due to mistake of tester/setter. Poor contest. I'm happy that I have not participated in the contest.

And the worst part of situation is that after reportedly informed to administrators ( issue was not resolved.

This is not what codechef is known for. They also have issues but they always resolved them taking this as their first priority. And make sure nobody is at an unfair advantage.


answered 22 Apr '18, 20:17

aryanc403's gravatar image

accept rate: 10%

edited 22 Apr '18, 20:21


+1, well said.

(23 Apr '18, 14:27) siddharthp5384★

Guys it was a server problem, as the size of the input file was 118 MB. Codechef server wasn't responding with that much big file size. So bear with the issue

Proof: click


answered 22 Apr '18, 14:21

sid55's gravatar image

accept rate: 0%

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported
  • mathemetical formulas in Latex between $ symbol

Question tags:


question asked: 21 Apr '18, 23:50

question was seen: 721 times

last updated: 25 Apr '18, 17:17