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

×

CSEQ:getting WA

in my compiler , i'm getting absolute correct answer but here getting wrong answer.why??

asked 12 Apr '15, 16:07

maninderyo's gravatar image

2★maninderyo
1
accept rate: 0%


Your code is probably failing for a few corner cases. You should test your code to check for the corner cases as well. So, check for lots of Test Cases.

Also, don't forget to print newlines at proper places. Your output should match the format of the output in the problem statement. If you miss a newline, that's enough to get a Wrong Answer

You should not add any unnecessary things like " Enter a number " , " the answer is ". Those will also get you WA. So, don't add any unnecessary statements like that.

link

answered 12 Apr '15, 17:58

arun_as's gravatar image

1★arun_as
7413618
accept rate: 10%

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:

×35

question asked: 12 Apr '15, 16:07

question was seen: 803 times

last updated: 12 Apr '15, 17:58