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 1094. E-screen

Help for WA 1
Posted by Oleg Strekalovsky [Vologda SPU] 24 Apr 2009 19:28
Remember, that in input there are "end-of-line characters".
And you must read string lines until your find "end-of-file characters".
If Java
while (in.hasNextLine()) {
   char input[] = in.nextLine().toCharArray();
      /* analyse-code
      */
}
This method (while(in.hasNext***()) often use, when you don't know the number of input data or you can find "end-of-line characters" in text line.


Edited by author 30.04.2009 18:26
Re: Help for WA 1
Posted by SubmitRush 28 Sep 2009 14:15
and.....

"...Assume that at the beginning the e-screen contains 80 spaces..." (for TestCase#1)

"...The width of the screen is 80 symbols. When the cursor reaches left or right edge of the screen it is automatically placed at the first position to the left...."
(for TestCase#4)

Don't miss that!

Edited by author 28.09.2009 14:17