- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
湖南省省赛题目湖南省省赛题目
The 11th Hunan Collegiate Programming Contest
Online Version
(with more input data and tighter time limits)
30th August, 2015
You get 13 Pages
11 Problems
300 Minutes
A Aerial Tramway
Input: Standard Input
Output: Standard Output ?
An aerial tramway, cable car, ropeway or aerial tram is a type of aerial lift which uses one or two stationary ropes for support while a third moving rope provides propulsion. With this form of lift, the grip of an aerial tramway cabin is fixed onto the propulsion rope and cannot be decoupled from it during operations.
-- Wikipedia
You own a park located on a mountain, which can be described as a sequence of n points (xi, yi) from left to right, where xi,yi0, xixi+1, yi!=yi+1 (that means there will not be horizontal segments in the mountain skyline), illustrated below (the x-coordinate of pi is i):
Since the mountain is very sloppy, some aerial tramways across the park would be very helpful. In the figure above, people can go from p4 to p9 directly, by taking a tram. Otherwise he must follow a rather zigzag path: p4-p5-p6-p7-p8-p9.
Your job is to design an aerial tramway system. There should be exactly m trams, each following a horizontal segment in the air, between two points pi and pj. Horizontal means yi=yj, “in the air means all the points in between are strictly below, i.e. ykyi for every ikj. For example, no tram can travel between p2 and p9, because p4 is not strictly below p2-p9. However, you can have two trams, one from p2 to p4, and one p4 to p9. There is another important restriction: no point can be strictly below k or more tramways, because it’ll be dangerous. For example, if k=3, we cannot build these 3 tramways simultaneously: p1-p14, p4-p9, p6-p8, because p7 would be dangerous.
You want to make this system as useful as possible, so you would like to maximize the total length of all tramways. For example, if m=3, k=3, the best design for the figure above is p1-p14, p2-p4 and p4-p9, the
您可能关注的文档
- 混凝土道路主要分项工程施工方案和方法混凝土道路主要分项工程施工方案和方法.doc
- 混凝土路面维修施工方案混凝土路面维修施工方案.doc
- 渠县琅琊中学高2013级10月月考试题英语渠县琅琊中学高2013级10月月考试题英语.doc
- 温州市十校高一上学期期末联考温州市十校高一上学期期末联考.doc
- 港口专业顶岗实习指导书2015港口专业顶岗实习指导书2015.doc
- 港口节能减排的具体措施港口节能减排的具体措施.doc
- 湍东三初中精细化管理实施方案湍东三初中精细化管理实施方案.doc
- 湖北省武汉华中师大一附中2015-2016学年高二上学期期中考试英语试卷湖北省武汉华中师大一附中2015-2016学年高二上学期期中考试英语试卷.doc
- 湖南省2013年九大员质量员试题A湖南省2013年九大员质量员试题A.doc
- 湖南省师大附中2014届高三上学期第一次月考英语试题湖南省师大附中2014届高三上学期第一次月考英语试题.doc
- 湖南省高一下学期第二次月考英语试题湖南省高一下学期第二次月考英语试题.doc
- 湛江一中2011-2012学年高一上学期期中考试(英语)湛江一中2011-2012学年高一上学期期中考试(英语).doc
- 湛江市2012届高中毕业班调研测试(英语)湛江市2012届高中毕业班调研测试(英语).doc
- 源顺公司企业管理咨询实例手册源顺公司企业管理咨询实例手册.doc
- 溶胶-凝胶法制备掺杂TiO2粉体及其性能研究溶胶-凝胶法制备掺杂TiO2粉体及其性能研究.doc
- 满城小学创建特色学校实施方案满城小学创建特色学校实施方案.doc
- 漳州英语冲刺过关试题漳州英语冲刺过关试题.doc
- 潍坊科技学院本科毕业设计(论文)工作规程和指导手册 (最新版)潍坊科技学院本科毕业设计(论文)工作规程和指导手册 (最新版).doc
- 潍坊风筝节策划方案潍坊风筝节策划方案.doc
- 澳洲医科类部分移民职业澳洲医科类部分移民职业.doc
最近下载
- 2023年下半年广西普通高中学业水平合格性考试数学真题试卷含答案.docx VIP
- 量子计算性能评估基准研究报告 202412.pdf VIP
- 全国第三届职业技能大赛(劳动关系协调师)选拔赛理论考试题库(含答案).docx VIP
- 胃癌临床表现.pptx VIP
- 不不兔课件.ppt VIP
- 《无机化学与化学分析》课程思政案例.docx VIP
- 2025辽宁沈阳城市建设投资集团所属企业沈阳国际工程咨询集团有限公司招聘11人笔试备考试题及答案详解.docx VIP
- (高清版)DB5119∕T 21-2021 地理标志产品 江口醇酒生产技术规范 .pdf VIP
- 拆除工程安全技术规范.pdf VIP
- 考研真题 天津外国语大学801英语语言文学(英美文学方向)历年考研真题汇编.docx VIP
文档评论(0)