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

Another way to avoid using trunc(), frac(), floor(), ceil(), and so on...
Posted by Igor Dex 24 Apr 2003 02:19
P and Q are real and given with two digits precision.
If we multiply P,Q on 100 we will have integers only.
We just need to consider:

10000 * conductors > population * P
10000 * conductors < population * Q

All variables are integer.

Good luck.