Online JudgeProblem SetAuthorsOnline ContestsUser
Web Board
Home Page
F.A.Qs
Statistical Charts
Problems
Submit Problem
Online Status
Prob.ID:
Register
Update your info
Authors ranklist
Current Contest
Past Contests
Scheduled Contests
Award Contest
User ID:
Password:
  Register

这题有问题 ,题意自相矛盾!如下...

Posted by windyrobin at 2008-09-05 15:41:55 on Problem 1281
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:
User ID:
Password:
Title:

Content:

Home Page   Go Back  To top


All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator