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

can anybody give me examples,please
Posted by B.Talgat(Taldykorgan KTL) 5 Feb 2006 20:02
my prog but I get WA #4
var
 s : string;
PRocedure get(s : string);
var
 i,j  :longint;
 t : string;
begin
i:=1;
  while not(s[i] in ['A'..'Z','a'..'z']) do begin write(s[i]); inc(i); end;
  while (i<=length(s))and(i<256) do
  begin
  t:='';
     while (s[i] in ['A'..'Z','a'..'z'])and(i<=length(s))and(i<256) do
     begin
       t:=t+s[i];
       inc(i);
     end;
     for j:=length(t) downto 1 do write(t[j]);
   while not(s[i] in ['A'..'Z','a'..'z'])and(i<=length(s)) do begin write(s[i]); inc(i); end;
  end;
  writeln;
end;
Procedure init;
Begin
   while not(seekeof(input)) do
   begin
   readln(s);
   get(s);
   end;
   end;
begin
  init;
end.
Re: can anybody give me examples,please
Posted by Ayhan Aliyev [BOTL] 5 Feb 2006 20:11
try this test:"?!?!?"
the line can contain only symbols without words