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

Re:求问为什么会wa??被这道题卡死了···

Posted by ForFunny at 2014-02-18 22:41:15 on Problem 2431
In Reply To:求问为什么会wa??被这道题卡死了··· Posted by:xuesu at 2014-01-25 16:26:30
  为什么不用Priority_Queue<int> ?
  
  L 最大为 1,000,000, 可以用一维数组a[i] 表示 到距离 i 的可加油的数量。
  于是暴力从 L-1 递减到 0,不停加油...

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