Magazine Delivery
Time Limit: 1000MS | Memory Limit: 10000K | |
Total Submissions: 1590 | Accepted: 766 |
Description
The TTT Taxi Service in Tehran is required to deliver some magazines to N locations in Tehran. The locations are labeled L1 to LN. TTT assigns 3 cars for this service. At time 0, all the 3 cars and magazines are located at L1. There are plenty of magazines available in L1 and the cars can take as many as they want. Copies of the magazine should be delivered to all locations, observing the following rules:
- For all i = 2 .. N, magazines should be delivered at Li only after magazines are deliv