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

从TLE到打表AC,再到500ms以下AC,我的天啊(一点借鉴!)

Posted by luohuashui at 2009-08-12 19:00:44 on Problem 3636
在要用到记录许可的时候
一定要定义bool型,否则花费的时间很很多
开头用int型记录的许可,TLE了
之后无奈了一个下午,把一个最麻烦的数据(20000个13)给打表了,AC了,412k  579ms 
最后看了室友的程序,突发奇想,把许可用bool型来接受,A了, 372k  469ms

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