|
|
back to boardMa program works well...But I get Wrong Answer. Plz help me Posted by Rowka 30 Nov 2008 13:02 var p,q,q1:real; i,p1:integer; f:boolean; begin read(p); read(q); p:=p/100; q:=q/100; f:=true; i:=1; while f do begin inc(i); p1:=trunc(p*i)+1; q1:=q*i; if (p1<q1) then f:=false; end; writeln(i); end. Re: Ma program works well...But I get Wrong Answer. Plz help me I don't understand it too. I have like code |
|
|