HomeVolumesContestsSectionsForumsUsersPrintHelpAbout

Forums > Discussion of problems > topic:


Problem "50925 - Optimizing Elevator Usage"

There is a contest!

В настоящий момент идёт турнир. Некоторая информация и функции сервера недоступны до его окончания.

imesecanMay.08.2016 at 06:02:13 PM
0--- Test 1 ---
8 30
6 12 16
15 11 58
17 14 29
19 8 14
8 8 17
3 14 41
18 14 53
10 12 14
3
12 33
14 30
11 49

--- Pattern ---
0
11
15

imesecanNov.17.2016 at 07:35:19 PM
1The time interval starts from 00:00 and goes through 23:59

For 12:33 the answer is 0 because the intervals are for 30 minutes. So, the person who is asking for 12:16, is considered for the interval 12:00 - 12:29. And 12:33 is considered for the interval 12:30 - 12:59.

When precision is 144, you will define one waiting floor for the hours between 00:00 and 02:23, and then another waiting floor for the hours 02:24 and 04:47, etc.


www.contester.ru