| ||||||||||
| 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 | |||||||||
有个问题不解……在清空堆栈的时候(我用stl做的)
用
for(i=0;i<forward.size();i++)//
forward.pop();//clear the forward stack
WA
然后我改为
while(!forward.empty())//用这个就对了
forward.pop();
就ac了
--貌似这道题两年没有人问过了……
Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator