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

Yaroslavtsev Grigory (SpbSPU) A good problem for real philosophers. [6] // Problem 1360. Philosophical Dispute 15 Jun 2005 04:50
Nothing special to get AC, just think a little and write about 20 strings of code.
famas little hint, please+++ [2] // Problem 1360. Philosophical Dispute 16 Jun 2005 01:47
Yaroslavtsev Grigory (SpbSPU) Re: little hint, please+++ [1] // Problem 1360. Philosophical Dispute 20 Jun 2005 20:32
Look what happens when T becomes large.
!!!!!!!!!!!!!!!!!!!!!!!!!
What interval at you for T?
And what step of increase?
??????????????????????????
Yu Yuanming Just search is OK :) [2] // Problem 1360. Philosophical Dispute 21 Jun 2005 18:54
Виктор Крупко 13 string and AC [1] // Problem 1360. Philosophical Dispute 22 Jun 2005 03:00
search(+)
little hint
repeat
    t:=t+0.001;
until cos(t)-y<0.00001;
Mosca Felice Re: 13 string and AC // Problem 1360. Philosophical Dispute 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);