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

折腾了两个多小时,一直检查不出错误,结果证明是题目意思理解错了

Posted by zhu4800448 at 2011-06-09 15:05:19 on Problem 2189 and last updated at 2011-06-09 15:06:16
其实这题暴简单,就是求p-1个元素的数组里面,满足连续段和不大于c的最大长度是多少。
刚开始还以为牛在x和x+1两个端点活动,其实只考虑牛在x和x+1中间的区间活动,根本扯不到端点重合上面去。

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