|  | 
|  | 
| вернуться в форум | A good problem for real philosophers. Nothing special to get AC, just think a little and write about 20 strings of code.little hint, please+++ Послано famas  16 июн 2005 01:47Re: little hint, please+++ Look what happens when T becomes large.i did not anderstend this problem. Help me// PLEASE\\ Послано famas  20 июн 2005 23:50!!!!!!!!!!!!!!!!!!!!!!!!!What interval at you for T?
 And what step of increase?
 ??????????????????????????
13 string and AC search(+)little hint
 repeat
 t:=t+0.001;
 until cos(t)-y<0.00001;
Re: 13 string and AC 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);
 | 
 | 
|