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 1226. esreveR redrO

Why WA?----------ural 1226
Posted by + Calculous + 18 Aug 2003 20:55
here is my code:
I don't know wht's the error ,anyone help me?

Const
  u=['a'..'z']+['A'..'Z'];
Var
  s:string;
  ch:char;
  i:integer;

Begin
  read(ch);
  while not eof do
     begin
       s:='';
       while (ch in u) and (ord(ch)<>26) do
         begin
           s:=s+ch;
           read(ch);
         end;
       for i:=length(s) downto 1 do write(s[i]);
       while (not (ch in u)) and (ord(ch)<>26) do
         begin
           write(ch);
           read(ch);
         end;
    end;
End.
Re: Why WA?----------ural 1226
Posted by Valentin Mihov 28 Aug 2003 01:24
check whether you output EOF. If you output it you will get WA. I got
really angry when I understood that my program didn't work, because I
print EOF!!!!
Re: Why WA?----------ural 1226
Posted by 77EREKLE77 17 May 2016 17:41
what is EOF?