当前你的浏览器版本过低,网站已在兼容模式下运行,兼容模式仅提供最小功能支持,网站样式可能显示不正常。
请尽快升级浏览器以体验网站在线编辑、在线运行等功能。
For each test case, first print the case number followed by a colon and a blank line. If the reservation request can be met, the output will show a reservation schedule with a minimum number of transfers (from one unit to another) during the stay at the resort. Each line of the schedule corresponds to a consecutive stay in the same unit, and should be printed in the following way:
<unit>: <start date>-<end date>where <unit> is the unit, <start date> is the date on which the guests moves into the unit, and <end date> is the date on which the guests moves out of the unit. The lines in the schedule should be ordered in ascending order by the start date.
Tie breaking rule. There may be several schedules with a minimum number of transfers. In these cases, choose the schedule which uses the lowest "unit label" in the first day (so unit A is given preference to unit B). If there is still a tie, choose the schedule with the lowest unit number in the second day, and so on.
If the reservation request cannot be met, print the line:
Not availableinstead of the schedule.
Separate the output of consecutive cases by a blank line.
10 7 XXXXXXX XOXXXXO XOXXXXO XOXXXOX OXXOXOX XOXOXOX OXXOXOX OXXXXOX XXXXXXX XXXXXXX 2 9 0 0
Case 1: B: 2-5 F: 5-9
时间上限 | 内存上限 |
5000 | 65536 |