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


Is there any option to check for exactly which testcase our programs is giving wrong answer.?

I am new to programming on CODECHEF. I am experiencing this problem in which my program runs perfectly for the given test cases in questions but says wrong answer while submitting. I want to know is there any way to find out for exactly which test case my program is failing?

asked 12 Oct, 12:46

vaicr7bhav's gravatar image

accept rate: 0%

sometimes it shows wrong answer just because :

1) you have taken int instead of long long int

2) array size is small

3) constraints are not satisfying

4) You are applying some wrong approach although answer is matching for that

particular testcase.

5) May be your program is correct for all testcase except one corner tricky case,In that case try to think and do more using pen and copy.It Helps a lot.


answered 12 Oct, 13:45

spp____'s gravatar image

accept rate: 6%

edited 12 Oct, 18:29

No, you must deduce them yourself, or ask for help here if the question is in practice section (and not from some contest).

For arguments on why system is so, please give forums a search.


answered 12 Oct, 13:19

vijju123's gravatar image

5★vijju123 ♦
accept rate: 18%

Hahaha.. hahaha.. welcome to the club bro, now you will come to know how does it feels when you code your heart out, but just because of some nasty and unknown corner case, you keep getting WA. :P P.S - but by not telling that corner case, codechef motivates user to think a lot, and that is a good thing..


answered 12 Oct, 18:13

eight_bitguy's gravatar image

accept rate: 0%

toggle preview

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: 12 Oct, 12:46

question was seen: 86 times

last updated: 12 Oct, 18:29