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 |
这题怎么做??????我是先贪心一遍,,,得到最少需要的lecture,,,, 然后n^3的dp,,可是速度太慢了啊,,,500++ms,,,那些几十ms的怎么做的???? 我又优化了一下,,在得到lecture之后,,从右向左扫描一遍,,得到前i个点最右放到第几个lecture,,可是还是400多ms,,,怎么优化啊?? Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator