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 ggg at 2007-05-16 14:54:00 on Problem 1028
In Reply To:有个问题不解…… Posted by:200530501412 at 2007-04-07 22:00:16
> 在清空堆栈的时候(我用stl做的)
> 用
> for(i=0;i<forward.size();i++)//
>     forward.pop();//clear the forward stack
> WA
> 
> 然后我改为				
> while(!forward.empty())//用这个就对了
>    forward.pop();
> 就ac了
> 
> --貌似这道题两年没有人问过了……
> 
> 				
foward.size()变了呀。老大。没清完。	

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