| 
 | 
back to board1011     Edited by author 26.10.2006 22:10 Re: 1011 Use standart input and output (see FAQ). Then you get WA 17 =) Re: 1011 Yes. Test #17. What's wrong? What is the test?   PS: Wellcome to the men from RSAAT! Re: 1011 {$N+} var   a:longint;   p,q,k:extended; begin   read(p,q);   p:=p/100;   q:=q/100;   a:=-1;   repeat     inc(a);   until (trunc(a*q-0.0000000000000001)-trunc(a*p+0.0000000000000001))>0;   write(a); end.   My new solution is AC! Whatever thx! Re: 1011 Posted by  syc 14 Nov 2006 14:34 Why are -0.0000000000000001 and +0.0000000000000001 necessary?  |  
  | 
|