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提醒:原来memset多了是会超时的……

Posted by 15947528392 at 2013-12-04 21:28:58 on Problem 3294 and last updated at 2013-12-04 21:30:30
后缀数组标准做法
然后一直超时……
后来对比数据找哪里有费时操作
结果原因是在二分检查时直接在循环里套了个memset(b, 0, sizeof(b))
b数组的大小开的是MAXN = 110000,当时以为空间够用就随便写的
这样也会超时……
后来把b数组大小改为1200就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