ENG  RUSTimus Online Judge
Online Judge
Problems
Authors
Online contests
About Online Judge
Frequently asked questions
Site news
Webboard
Links
Problem set
Submit solution
Judge status
Guide
Register
Update your info
Authors ranklist
Current contest
Scheduled contests
Past contests
Rules
back to board

Discussion of Problem 1011. Conductors

Ma 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
Posted by Yuri.Pechatnov 7 Dec 2010 20:38
I don't understand it too. I have like code