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's going on in this problem?
Posted by Morfeus 23 Apr 2002 01:17
Could someone explain to me what to do in this problem?
I have now idea what I have to count, and how.
I think it should be like that there is x citizensin the city and the
lower percent of conductors must be equal with the greater one, but
it doesn't work. So how I have to do it?
Re: What's going on in this problem?
Posted by WAZZAP 23 Apr 2002 14:35
> Could someone explain to me what to do in this problem?
> I have now idea what I have to count, and how.
> I think it should be like that there is x citizensin the city and
the
> lower percent of conductors must be equal with the greater one, but
> it doesn't work. So how I have to do it?

Yhe number of citizens and the number of condictors must be whole
numbers. but the percents of numbers of citizens may not be whole.
idea is that
if p1 and p2 are percents and x is the number of citizens,
abs(p1/100*x - p2/100*x) >= 1