- 1、本文档共14页,可阅读全部内容。
- 2、有哪些信誉好的足球投注网站(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。
- 3、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 4、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
查看更多
acm大赛英语版题目
//////////////////////////////////////////////
The Mailboxes Manufacturers Problem
Description:
In the good old days when Swedish children were still allowed to blowup their fingers with fire-crackers, gangs of excited kids would plague certain smaller cities during Easter time, with only one thing in mind: To blow things up. Small boxes were easy to blow up, and thus mailboxes became a popular target. Now, a small mailbox manufacturer is interested in how many fire-crackers his new mailbox prototype can withstand without exploding and has hired you to help him. He will provide you with k (1 ≤ k ≤ 10) identical mailbox prototypes each fitting up to m (1 ≤ m ≤ 100) crackers. However, he is not sure of how many firecrackers he needs to provide you with in order for you to be able to solve his problem, so he asks you. You think for a while and then say, “Well,if I blow up a mailbox I can’t use it again, so if you would provide me with only k = 1 mailboxes, I would have to start testing with 1 cracker, then 2 crackers, and so on until it finally exploded. In the worst case, that is if it does not blow up even when filled with m crackers, I would need 1 + 2 + 3 + … + m = m × (m + 1) ? 2 crackers. If m = 100 that would mean more than 5000 fire-crackers!” “That’s too many,” he replies. “What if I give you more than k = 1 mailboxes? Can you find a strategy that requires less crackers?”
Can you? And what is the minimum number of crackers that you should ask him to provide you with?
You may assume the following:
If a mailbox can withstand x fire-crackers, it can also withstand x ? 1 fire-crackers.
Upon an explosion, a mailbox is either totally destroyed (blown up) or unharmed, which means that it can be reused in another test explosion.
Note: If the mailbox can withstand a full load of m fire-crackers, then the manufacturer will of course be satisfied with that answer. But otherwise he is looking for the maximum number of crackers that his mailboxes can withstand.
InputThe
您可能关注的文档
- 6-7章部分作业题及答案.doc
- 6-计算机基础数字媒体及应用练习题(参考答案).doc
- 6.2中考物理力和机械复习.doc
- 6.3.2自立自强导教案.doc
- 60道应用题答案五年级.doc
- 61-2008年福建省厦门市中考物理真题及答案.doc
- 61卡特尔16种因素测验-附答案(17页).doc
- 62012年电子商务员考证理论答案.doc
- 6、2010数学寒假作业不等式检测题.doc
- 6年级第1学期汉语教案.doc
- 2024-2025学年贵州省遵义市求是高级中学高三下学期第二次模拟考试(语文试题文)试题含解析.doc
- 2024-2025学年广东省潮州市重点中学高三第二学期3月高考诊断性测试语文试题含解析.doc
- 2024-2025学年甘肃省陇东中学高三下学期适应性考试语文试题含解析.doc
- 2024-2025学年广东省“十二校”高三下学期期中考试(语文试题理)试题含解析.doc
- 2024-2025学年甘肃省武夷市民勤县第一中学高三下学期期末模拟卷(一)语文试题含解析.doc
- 2024-2025学年广东省深圳市龙文教育高三5月月考(语文试题理)试题含解析.doc
- 2024-2025学年贵州省铜仁一中高三第二学期期末考试语文试题试卷含解析.doc
- 2024-2025学年广州顺德区高三第一次诊断性考试语文试题试卷含解析.doc
- 2024-2025学年贵阳市高考二轮语文试题原创押题密卷(一)含解析.doc
- 2024-2025学年河北省保定市曲阳县一中高三教学质量检测试题(一模)语文试题试卷含解析.doc
文档评论(0)