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

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.


answered 12 Apr '15, 17:58

arun_as's gravatar image

accept rate: 10%

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 Apr '15, 16:07

question was seen: 803 times

last updated: 12 Apr '15, 17:58