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 |
折腾了两个多小时,一直检查不出错误,结果证明是题目意思理解错了其实这题暴简单,就是求p-1个元素的数组里面,满足连续段和不大于c的最大长度是多少。 刚开始还以为牛在x和x+1两个端点活动,其实只考虑牛在x和x+1中间的区间活动,根本扯不到端点重合上面去。 Followed by: Post your reply here: |
All Rights Reserved 2003-2013 Ying Fuchen,Xu Pengcheng,Xie Di
Any problem, Please Contact Administrator