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

I dont understand the problem
Posted by Marcelo 15 May 2010 02:15
I do not understand when you have finished receiving data, and that if no effect then enter receive data never end, so never would show the results and would be an endless repetitive cycle.
now with that key, or as I have to request new data, since no effect enter then I have no idea how to stop the cycle does not specify how to stop it.
greetings.
Re: I dont understand the problem
Posted by Armstrong091 18 Jul 2010 19:13
We use 'eof' in pascal.

My code:
procedure do;
var     n:int64;
begin
        if eof then exit;
        read(n);
        do;
        writeln(sqrt(n):0:4);
end;

begin
        do;
end.



oh I see!

http://acm.timus.ru/forum/thread.aspx?space=1&num=1001&id=23490&upd=633934535278966250

Edited by author 18.07.2010 19:15
Re: I dont understand the problem
Posted by Andrew Shmig aka SKYDOS [Vladimir SU] 18 Jul 2010 19:20
have you tested your program on your machine?
Armstrong091 wrote 18 July 2010 19:13
We use 'eof' in pascal.

My code:
procedure do;
var     n:int64;
begin
        if eof then exit;
        read(n);
        do;
        writeln(sqrt(n):0:4);
end;

begin
        do;
end.



oh I see!

http://acm.timus.ru/forum/thread.aspx?space=1&num=1001&id=23490&upd=633934535278966250

Edited by author 18.07.2010 19:15
Re: I dont understand the problem
Posted by Nikita 22 Jan 2011 21:43
How can we use eof without opening file?? WTH with it? I can't understand anything! FPC 2.0 doesn't compiling it. And Embarcadero RAD Studio XE too! So, What The Hell with it?