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:一开始想用一个队列来维护,后来发现题意说的很清楚了,就直接stl水过了。。。

Posted by hustcswgy at 2011-07-28 19:05:19 on Problem 1028
In Reply To:一开始想用一个队列来维护,后来发现题意说的很清楚了,就直接stl水过了。。。 Posted by:lzq08ms at 2011-07-18 08:17:36
> 貌似用队列的话可以只用一个队列就能维护,用栈要两个?
栈一个,俩指针,一个指向当前,一个指向顶。VISIT的时候把当前赋值给顶即可。

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