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 1069. Prufer Code

Changes in problem 1069 (+)
Posted by Sandro (USU) 21 Apr 2007 01:00
Now all tests contain EOLN character after the last line of input. Use "seekeof" instead of "eof". Many authors now have WA1, TL1 or Crash1, but some others with such old verdicts got AC. Besides, some new tests were added to the problem.
What about C/C++ (+)
Posted by [ za-Nuker ]™ 21 Apr 2007 19:11
I implemented as below:

while(!feof(stdin)) {
...
}

How could I change my program?
Re: What about C/C++ (+)
Posted by Sandro (USU) 21 Apr 2007 23:50
For example:

while (scanf("%d",&next)==1)
{
...
}
Read faq about reading till the end of file (-)
Posted by Vladimir Yakovlev (USU) 22 Apr 2007 01:23