ENG  RUSTimus Online Judge
Online Judge
Задачи
Авторы
Соревнования
О системе
Часто задаваемые вопросы
Новости сайта
Форум
Ссылки
Архив задач
Отправить на проверку
Состояние проверки
Руководство
Регистрация
Исправить данные
Рейтинг авторов
Текущее соревнование
Расписание
Прошедшие соревнования
Правила
вернуться в форум

Обсуждение задачи 1011. Кондукторы

What's going on in this problem?
Послано Morfeus 23 апр 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?
Послано WAZZAP 23 апр 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