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:TLE 的朋友注意了!

Posted by StepByStepCnmLife at 2015-05-13 12:29:50 on Problem 3367
In Reply To:TLE 的朋友注意了! Posted by:zhangfeifei at 2010-08-07 15:08:15
兄弟说的很对,一开始超时,结果我加了个 stack Dustbin//垃圾回收栈
再加一句
if(Dustbin.top!=0)p=pop(&Dustbin);
   else
      p=(node*)malloc(sizeof(node));
170ms

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