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 200530501412 at 2007-04-07 22:00:16 on Problem 1028
在清空堆栈的时候(我用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:
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