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 1262. Pseudo-Roman Number

Strange judgement result.
Posted by Fokysnik[LNU] 9 Feb 2007 21:19
First, I wrote a program on C++ like this:
#include<stdio.h>

void main(void)
{char c; int t,s=0;
while (!feof())
    {scanf("%c",&c);
    ...
    }
...
printf("%i\n",s);
}

Judgement result: Wrong answer #1

After that I wrote same program on Pascal like this:
program roman;

var  c:char;
     t,s: integer;

begin
s:=0;
while not eof() do
   begin
   read(c);
   ...
   end;
...
writeln(s);
end.

Program on Pascal got AC. Those "..." are both correct I tested both programs on my own on the keyboard and using freopen. Does anybody know why C++ gets WA and Pascal AC?

Edited by author 09.02.2007 21:21
Thank you! That was a jury bug. Incorrect verdicts were rejudged. (-)
Posted by Sandro (USU) 10 Feb 2007 10:52