- 1、原创力文档(book118)网站文档一经付费(服务费),不意味着购买了该文档的版权,仅供个人/单位学习、研究之用,不得用于商业用途,未经授权,严禁复制、发行、汇编、翻译或者网络传播等,侵权必究。。
- 2、本站所有内容均由合作方或网友上传,本站不对文档的完整性、权威性及其观点立场正确性做任何保证或承诺!文档内容仅供研究参考,付费前请自行鉴别。如您付费,意味着您自己接受本站规则且自行承担风险,本站不退款、不进行额外附加服务;查看《如何避免下载的几个坑》。如果您已付费下载过本站文档,您可以点击 这里二次下载。
- 3、如文档侵犯商业秘密、侵犯著作权、侵犯人身权等,请点击“版权申诉”(推荐),也可以打举报电话:400-050-0827(电话支持时间:9:00-18:30)。
- 4、该文档为VIP文档,如果想要下载,成为VIP会员后,下载免费。
- 5、成为VIP后,下载本文档将扣除1次下载权益。下载后,不支持退款、换文档。如有疑问请联系我们。
- 6、成为VIP后,您将拥有八大权益,权益包括:VIP文档下载权益、阅读免打扰、文档格式转换、高级专利检索、专属身份标志、高级客服、多端互通、版权登记。
- 7、VIP文档为合作方或网友上传,每下载1次, 网站将根据用户上传文档的质量评分、类型等,对文档贡献者给予高额补贴、流量扶持。如果你也想贡献VIP文档。上传文档
查看更多
2011年四川理工ACM程序设计竞赛试题
2011年四川理工学院
“达内杯”大学生程序设计竞赛试题
1、Big integer
Problem Description
Calculate the factorial of N
Input
Input a positive integer that less than 99.
Output
The factorial of N
Sample Input
50
Sample Output
50! =30414093201713378043612608166064768844377641568960512000000000000
2、Look for treasures
Problem Description
There are some treasures and one exit in the maze. People would consume his physical strength while he is walking, and he will resume some physical strength when he picks a treasure. Because of the limit of physical strength, John must plot his physical strength properly if he wants to walk out the maze and get all the treasures in the maze at the same time.
Now, you would write a program to help John to solve the problem. John抯 physical strength will decrease and if the physical strength is equal 0, he ca n not move.
Input
The input file is named as 搃n.dat? the content of this file is shown as follows:
100 1
4
1 4 2
2 4 2
4 4 2
5 3 2
5 5
1 1 0 1 0
0 1 1 1 0
0 1 0 0 1
0 1 1 1 0
0 1 1 1 1
5 5
The first line: the initializing physical strength of John and the consumed physicstal strength of each step.
The second line: the total number of treasures
Line 3 to line N+2: there are 3 numbers at each line, the front two numbers is the coordinate of treasure: X,Y, the third number is the physical strength that John will get while he pick the treasure.
The next line: the number of line and row (A,B, A,B=50) of the maze
The next A lines: the map of the maze, the number 0 means it can not pass, and 1 means can pass (the position of treasures is mark with 1 at some place)
The last line: the coordinate of exit (the coordinate of origin is (1,1) )
Output
If John can pick all of the treasures and walk out the maze, put out the remaining physical strength. On the other wise, put out 搉o, he can not?
Sample Input
Sample Output
92
3、Snooker
Problem Description
Background: Philip likes to play the QQ game of Snooker when he wants a relax, though he was just a little vegetable-bir
您可能关注的文档
最近下载
- 第一单元《做学习的主人》大单元整体教学评一体化教学设计 2025道德与法治三年级上册.docx
- 入党志愿书空白表格_1831893502精品.doc VIP
- 三一汽车起重机STC1000C7-1_产品手册用户使用说明书技术参数图解图示电子版.pdf VIP
- 2025-2026学年高二物理上学期第一次月考卷(真题含答案解析).docx VIP
- 高中语文专题一沁园春长沙学案苏教版.doc VIP
- 《中国老年骨质疏松症诊疗指南(2024)》解读-.pptx VIP
- 门式钢架房屋技术规程2002.pdf
- 《2校园的树木我修剪》(教案)人民版劳动技术七年级上册.docx
- 报价单模板模板.docx VIP
- 意外事故调查表(标准范本).pdf VIP
文档评论(0)