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

why?【1001,pascal】
Posted by Pan Yuchong 15 Jun 2011 12:29
program ural_1001;
var
t,n,i,j:longint;
a:array [0..1000000] of real;
begin
while not eoln do
 begin
  inc(t);
  read(a[t]);
  a[t]:=sqrt(a[t]);
 end;
for i:=t downto 1 do
 writeln(a[i]:0:4)
 end.
Re: why?【1001,pascal】
Posted by Alex 6 Jul 2011 12:04
eoln=end of line
"...переводов строк..."=> you must using eof(end of file)

Edited by author 06.07.2011 12:05