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 |
Re:一开始想用一个队列来维护,后来发现题意说的很清楚了,就直接stl水过了。。。In Reply To:一开始想用一个队列来维护,后来发现题意说的很清楚了,就直接stl水过了。。。 Posted by:lzq08ms at 2011-07-18 08:17:36 > 貌似用队列的话可以只用一个队列就能维护,用栈要两个? 栈一个,俩指针,一个指向当前,一个指向顶。VISIT的时候把当前赋值给顶即可。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator