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 1360. Philosophical Dispute

A good problem for real philosophers.
Posted by Yaroslavtsev Grigory (SpbSPU) 15 Jun 2005 04:50
Nothing special to get AC, just think a little and write about 20 strings of code.
little hint, please+++
Posted by +FAMAS+ 16 Jun 2005 01:47
Re: little hint, please+++
Posted by Yaroslavtsev Grigory (SpbSPU) 20 Jun 2005 20:32
Look what happens when T becomes large.
i did not anderstend this problem. Help me// PLEASE\\
Posted by +FAMAS+ 20 Jun 2005 23:50
!!!!!!!!!!!!!!!!!!!!!!!!!
What interval at you for T?
And what step of increase?
??????????????????????????
Just search is OK :)
Posted by Yuanming YU, Frank 21 Jun 2005 18:54
13 string and AC
Posted by ACM.Krupko_Victor[Ivanovo SPU] 22 Jun 2005 03:00
search(+)
little hint
repeat
    t:=t+0.001;
until cos(t)-y<0.00001;
Re: 13 string and AC
Posted by Maria Mamaeva 9 Jan 2015 18:35
Where is mistake?
read(x,y);
readln(e);
t:=0;
if ((abs (x-sin(sqrt(t)))<=e) and (abs(y-cos(t))<=e))
 then begin  write('0') ; exit; end;

repeat
t:=t+e
until (abs(sin(sqrt(t))-x)<=e) and (abs(cos(t)-y)<=e)  or (t>10e12) ;

if t>10e12 then write ('FAIL') else write(t:0:1);