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

Why WA?Help me,please!Give me some tests!
Posted by Alexandr 17 Jun 2002 13:08
var
 p,q:real;
 j:longint;
 i:longint;
begin
 readln(p,q);
 if (p>50)and(q>50) then
  begin
   q:=100-p;
   p:=100-q;
  end;
 for j:=1 to 20000 do
  begin
   i:=round(j/q*100);
   if (i*p/100<j)and(i*q/100>j) then
    begin
      writeln(i);
      halt;
    end;
  end
end.
http://contest.ur.ru/
Posted by Andrey Popyk (popyk@ief.tup.km.ua) 17 Jun 2002 17:50