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

What wrong with my solution???
Posted by meoden 21 Feb 2002 09:17
I don't understand. Can I help me?
This is my code:

{@judge_id: 14971CM 1011 Pascal}
const
   maxx=20000;
var p,q:real;
    x:longint;

begin
   read(p,q);
   for x:=1 to maxx do if int(p*x/100)<>int(q*x/100) then break;
   write(x);
end.
Sorry, Now I know what wrong. Thanks.
Posted by meoden 21 Feb 2002 10:11
> I don't understand. Can I help me?
> This is my code:
>
> {@judge_id: 14971CM 1011 Pascal}
> const
>    maxx=20000;
> var p,q:real;
>     x:longint;
>
> begin
>    read(p,q);
>    for x:=1 to maxx do if int(p*x/100)<>int(q*x/100) then break;
>    write(x);
> end.