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

Re:不知道哪里错了啊,有过了的人帮忙看看么

Posted by northernw at 2014-07-19 16:29:01 on Problem 2740
In Reply To:不知道哪里错了啊,有过了的人帮忙看看么 Posted by:limoonbird at 2012-08-16 20:19:44
把最旧的书放在最近的非空桌子上面的时候改成用
desks[j].push_front(old_book);
从临时位置取书的时候用
desks[index].pop_front();
因为临时放书和放D1最老的书可能放在同一个desk上,如果都用push_back,会出现错误,取回的书并不是临时放书,而是最老的书。

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