Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
这题有问题 ,题意自相矛盾!如下...The manager will print the cost of a removed process only if the ordinal number of the removed process is in the removal list. 和这句: The program prints on standard output the cost of each process that is removed, provided that the ordinal number of the remove request is in the list and the queue is not empty at that moment. If the queue is empty the program prints -1. 第一句话是以 ordinal number of the removed process 第二句是: ordinal number of the remove request 设想以下情形 ,此时 queue为空,接收到 r 命令, 那么 ,这次 操作 按 第二句话 ,序数加 1 ,按第一句,就不加!! (我的程序按哪个都过不了 ,@!#¥!@#¥12) Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator