You are not logged in. Please login at www.codechef.com 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

2★vaicr7bhav
31
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.

link

answered 12 Oct, 13:45

spp____'s gravatar image

2★spp____
1.1k110
accept rate: 8%

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.

link

answered 12 Oct, 13:19

vijju123's gravatar image

4★vijju123 ♦
11.3k1316
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..

link

answered 12 Oct, 18:13

eight_bitguy's gravatar image

5★eight_bitguy
1913
accept rate: 0%

toggle preview
Preview

Follow this question

By Email:

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

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "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:

×690

question asked: 12 Oct, 12:46

question was seen: 141 times

last updated: 12 Oct, 18:29