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

贴几组数据吧——单调队列

Posted by MDK at 2011-08-08 16:41:09 on Problem 2823
12 3
1 3 5 7 -1 -1 -1 -1 7 7 7 7
12 4
1 3 5 7 -1 -1 -1 -1 7 7 7 7
12 4
-2000000000 -2 -3 -4 -5 -6 -5 -4 -3 -2 -1 0
12 3
2000000000 -2 -3 -4 -5 -6 -5 -4 -3 -2 -1 0


提醒大家的初始化,用单调队列一开是头尾相等的时候会因为初始化于第一个值比较不一定而导致WA。

但是G++还是超时,c++过了。

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