4 人解决,5 人已尝试。
4 份提交通过,共有 15 份提交。
7.6 EMB 奖励。
单点时限: 3.0 sec
内存限制: 256 MB
The factory of the Impractically Complicated Products Corporation has many manufacturing lines and the same number of corresponding storage rooms. The same number of conveyor lanes are laid out in parallel to transfer goods from manufacturing lines directly to the corresponding storage rooms. Now, they plan to install a number of robot arms here and there between pairs of adjacent conveyor lanes so that goods in one of the lanes can be picked up and released down on the other, and also in the opposite way. This should allow mixing up goods from different manufacturing lines to the storage rooms.
Depending on the positions of robot arms, the goods from each of the manufacturing lines can only be delivered to some of the storage rooms. Your task is to nd the number of manufacturing lines from which goods can be transferred to each of the storage rooms, given the number of conveyor lanes and positions of robot arms.
The input consists of a single test case, formatted as follows:
An integer
The following
You can assume that positions of no two robot arms have the same x-coordinate, that is,
Output
4 3 1000 1 2000 2 3000 3
2 3 4 4
4 3 1 1 3 2 2 3
2 4 4 2
4 人解决,5 人已尝试。
4 份提交通过,共有 15 份提交。
7.6 EMB 奖励。