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

Tips if you get WA or Crash
Posted by Stjepan Glavina 22 Aug 2008 20:23
Here are a few typical mistakes:

a) you forgot to fill the array with ' '
b) you're doing gets( buff ), and the size of buff is less than 10000
c) you're doing printf( "%s", out ), and you forgot to do out[80] = '\0'
d) if the position becomes 80, you go to 79 instead of 0
e) you don't print trailing spaces

Good luck!
Re: Tips if you get WA or Crash
Posted by updog 26 Aug 2008 14:49
faint! I didn't see the word 'mistakes' ......
Re: Tips if you get WA or Crash
Posted by xichuanglian 11 Nov 2008 15:33
d) seems to be wrong,
"When the cursor reaches left or right edge of the screen it is automatically placed at the first position to the left."
so if the position becomes 80, you should go to 0.