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 1437. Gasoline Station

Using readln
Posted by Ivanidze 25 Feb 2006 17:49
If i used
readln(a);
readln(b);
readln(c);
I got WA on test #12
if i used
read(a);
read(b);
read(c);
i pass that test
What the?
Re: Using readln
Posted by Zou Yuhan 25 Feb 2006 17:53
faint!!

me too!!
Re: Using readln
Posted by EnotsRevolution 25 Feb 2006 20:10
IMHO:
readln() reads EOLN from input buffer (eq. 0x13 or 0x10)
From problem:
"Each of the three input lines contains an integer..."
but third line of file may contain EOF (no EOLN) at end and this don't reads by readln(); may be there are mistake...
But I use C++ and I also can have errors in Pascal...

p.s. Sorry for my English.
Tests will be corrected soon
Posted by Vladimir Yakovlev (USU) 26 Feb 2006 12:03