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


[closed] Answer is not accepted

My code generates results exactly according to the rules and the sample i/0, but codechef wont accept my answer. The question is from the august challenge, rainbow array. What might be the possible reasons of the problem???

asked 17 Aug '17, 14:16

rajenme's gravatar image

accept rate: 0%

closed 17 Aug '17, 19:55

vijju123's gravatar image

5★vijju123 ♦

The question has been closed for the following reason "Question is related to ongoing contest" by vijju123 17 Aug '17, 19:55

I looked it up, and the verdict to your submissions is "Wrong answer". This means, that your solution doesn't compute the correct result for all test cases.

Codechef has a lot of hidden test cases. So even if your program works with the 2-3 test cases from the problem statement, it still can be wrong and receive WA. Sometimes these hidden test cases contain very special cases, that you have to handle differently. Sometimes these hidden test cases contain very large intstances, e.g. arrays of length $10^5$. Sometimes just normal small tests.

Either way, if you receive WA your program computes (sometimes) wrong answers. Check it again, and if you can't find a solution you can post your code tomorrow after the contest has ended.


answered 17 Aug '17, 17:35

afaxnraner's gravatar image

accept rate: 25%

You shouldn't ask anything during an ongoing challenge. Ask them after the contest ends.


answered 17 Aug '17, 14:35

sudip_95's gravatar image

accept rate: 10%

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: 17 Aug '17, 14:16

question was seen: 260 times

last updated: 17 Aug '17, 19:55