|  | 
|  | 
| back to board | why WA 3 test ? read(p,q);for i:=2 to 10000000 do begin
 a:=i/100*p;
 b:=i/100*q;
 a1:=trunc(a);
 b1:=trunc(b);
 if (b1-a1)>=0.99 then begin
 write(i);
 halt;
 end;
 end;
 why WA ?
Re: why WA 3 test ? Me,too!Re: why WA 3 test ? Posted by Lenstar  24 Apr 2021 19:42 
 Edited by author 24.04.2021 19:44
 | 
 | 
|