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 1001. Reverse Root

WA on test #1
Posted by VladimirZagorodskih 12 Nov 2009 14:37
I can't understand why I get WA on test #1.

var
  a : longint;
  b : real;
begin
  while not eof(input) do
   begin
    while not eoln(input) do
     begin
      read(a);
      b:=sqrt(a);
      writeln(b:1:4);
     end;
    readln;
   end;
end.
Re: WA on test #1
Posted by melkiy 12 Nov 2009 15:21
The sqrt's must follow in the reverse order.