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 |
尽量选终点和终点的前一个点In Reply To:是不是我想简单了? Posted by:cpp0600548202 at 2006-05-13 14:37:42 差分约束不适合做这道题,数据强一点估计差分约束要超时 像你这样的贪心法才是王道:) > 我的想法是先按起点给区间排序 > 删除包含其他区间的区间,满足小区间就一定满足大区间。则终点也严格递增 > 然后根据当前情况选区间的起点和终点或只终点或都不选 > 可是看discuss里的帖子,差分约束之类的,都没听过,是我想得太简单了吗? Followed by:
Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator