问题 C: Medical Checkup
时间限制: 2 Sec 内存限制: 128 MB
提交: 199 解决: 58
[提交] [状态] [讨论版] [命题人:admin]
题目描述
Students of the university have to go for a medical checkup, consisting of lots of checkup items,numbered 1, 2, 3, and so on.
Students are now forming a long queue, waiting for the checkup to start. Students are also numbered 1, 2, 3, and so on, from the top of the queue. They have to undergo checkup items in the order of the item numbers, not skipping any of them nor changing the order. The order of students should not be changed either.
Multiple checkup items can be carried