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 |
Re:求问为什么会wa??被这道题卡死了···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: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator