Online Judge | Problem Set | Authors | Online Contests | User | ||||||
---|---|---|---|---|---|---|---|---|---|---|
Web Board Home Page F.A.Qs Statistical Charts | Current Contest Past Contests Scheduled Contests Award Contest |
TIPS for TLE用假队列,整个程序O(n)的疯狂tle。一开始以为是常数大,各种削减常数,最后还干脆换成单调队列也是tle。然后抱着试一试的心态把存图的vector改成数组链表写法,过了。 另外本题不需要使用long long,运算在int范围内。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator