The contest of www.hsin.hr/coci is started at 5:55 PM at the time of the codeforces.
# | User | Rating |
---|---|---|
1 | tourist | 4009 |
2 | jiangly | 3839 |
3 | Radewoosh | 3646 |
4 | jqdai0815 | 3620 |
4 | Benq | 3620 |
6 | orzdevinwang | 3612 |
7 | Geothermal | 3569 |
8 | ecnerwala | 3494 |
9 | Um_nik | 3396 |
10 | gamegame | 3386 |
# | User | Contrib. |
---|---|---|
1 | Um_nik | 164 |
2 | -is-this-fft- | 160 |
2 | maomao90 | 160 |
4 | atcoder_official | 158 |
4 | cry | 158 |
4 | awoo | 158 |
7 | adamant | 155 |
8 | nor | 154 |
9 | TheScrasse | 153 |
10 | Dominater069 | 152 |
Name |
---|
What's your score???
Попытаемся понять, какое условие на время d, в которое мы можем пускать на производство машину сложности β, если машина сложности α была запущена на производство в момент времени ноль.
Необходимо, чтобы по каждому человеку i время когда он допилит первую машину было не больше, чем время, когда он приступит ко второй машине. Иными словами, α Si ≤ β Ti + d, где Si - сумма производительностей всех людей до i - ого, а Ti - до (i-1)-ого (слева стоит, собственно, одно время, а справа - другое).
Иными словами, , где F(x) - это линейная функция, не зависящая от α и β. Ну а максимум из кучи линейных функций в точке ищется известным образом: построим в предподсчёте пересечение полуплоскостей, ими задаваемых, и бинпоиском будем искать отрезок, на который попадает . Как-то так.