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

TIPS for TLE

Posted by NDCGZQBRKP at 2017-09-27 19:06:36 on Problem 3162
用假队列,整个程序O(n)的疯狂tle。一开始以为是常数大,各种削减常数,最后还干脆换成单调队列也是tle。然后抱着试一试的心态把存图的vector改成数组链表写法,过了。
另外本题不需要使用long long,运算在int范围内。

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