ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1496. Spammer

An easy tip to get AC
Posted by entropia 4 May 2007 23:03
The solution is pretty straightforward.

There're two primary reasons why you get WA with Java code:
  1) you tokenize read strings instead of reading them "as is", they might contain numbers;
  2) you forget that the input might be just
     0
  - program must output nothing then.
Re: An easy tip to get AC
Posted by Alaska . PK 5 Oct 2011 04:38
Thanks buddy :)
you saved my day with your tip #2 :)
Thanks a lot...