|
|
back to boardShow all messages Hide all messages1011 daftcoder [Yaroslavl SU] 26 Oct 2006 16:13 Edited by author 26.10.2006 22:10 Re: 1011 Nechaev Ilya (Rybinsk SAAT) 26 Oct 2006 19:14 Use standart input and output (see FAQ). Then you get WA 17 =) Re: 1011 daftcoder [Yaroslavl SU] 26 Oct 2006 22:13 Yes. Test #17. What's wrong? What is the test? PS: Wellcome to the men from RSAAT! Re: 1011 daftcoder [Yaroslavl SU] 26 Oct 2006 22:20 {$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! Why are -0.0000000000000001 and +0.0000000000000001 necessary? Re: 1011 daftcoder [Yaroslavl SU] 15 Nov 2006 04:33 |
|
|