ImageVerifierCode 换一换
格式:DOCX , 页数:10 ,大小:47.58KB ,
资源ID:3020722      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bingdoc.com/d-3020722.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(科技文化节程序设计竞赛题Word下载.docx)为本站会员(b****1)主动上传,冰点文库仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰点文库(发送邮件至service@bingdoc.com或直接QQ联系客服),我们立即给予删除!

科技文化节程序设计竞赛题Word下载.docx

1、Sample OutputB19P2: 硬币问题 小明有n(n=30)枚硬币,每一枚硬币的面值不等。小明现在想要用这些硬币拼出一个最大的价值M,且1到M之间所有的数都能用这些硬币拼出来,对于组一个数,每一枚硬币只能用一次,不能多次使用。现在小明需要你帮他确定这个最大价值M,以及每枚硬币的面值。 例如n=2时,最大价值为3,两枚硬币分别为1,2,这样1由1组成,2由2组成,3由1和2组成。含有多组测试数据,每组测试数据仅一个正整数n,读文件结束。对每个测试用例,输出两行。第一行输出M。第二行输出每一枚硬币的面值,从小到大排序,每个面值中间用空格隔开。231 2P3: Bone Collector

2、 Many years ago , in Teddys hometown there was a man who was called “Bone Collector”. This man like to collect varies of bones , such as dogs , cows , also he went to the grave The bone collector had a big bag with a volume of V ,and along his trip of collecting there are a lot of bones , obviously

3、, different bone has different value and different volume, now given the each bones value along his trip , can you calculate out the maximum of the total value the bone collector can get ?The first line contain a integer T , the number of cases.Followed by T cases , each case three lines , the first

4、 line contain two integer N , V, (N = 1000 , V = 1000 )representing the number of bones and the volume of his bag. And the second line contain N integers representing the value of each bone. The third line contain N integers representing the volume of each bone.One integer per line representing the

5、maximum of the total value (this number will be less than 231).15 101 2 3 4 55 4 3 2 114P4: 母猪的故事话说现在猪肉价格这么贵,著名的ACBoy 0068 也开始了养猪生活。说来也奇怪,他养的猪一出生第二天开始就能每天中午生一只小猪,而且生下来的竟然都是母猪。不过光生小猪也不行,0068采用了一个很奇特的办法来管理他的养猪场:对于每头刚出生的小猪,在他生下第二头小猪后立马被杀掉,卖到超市里。假设在创业的第一天,0068只买了一头刚出生的小猪,请问,在第N天晚上,0068的养猪场里还存有多少头猪?测试数据的

6、第一行包含有一个正整数T,代表测试数据的个数。接下来有T组测试,每组测试数据占一行,分别有一个正整数N代表0068创业的第N天。(0N20)。对于每组数据,请在一行里输出第N天晚上养猪场里猪的数目。P5: Oil DepositsThe GeoSurvComp geologic survey company is responsible for detecting underground oil deposits. GeoSurvComp works with one large rectangular region of land at a time, and creates a grid

7、that divides the land into numerous square plots. It then analyzes each plot separately, using sensing equipment to determine whether or not the plot contains oil. A plot containing oil is called a pocket. If two pockets are adjacent, then they are part of the same oil deposit. Oil deposits can be q

8、uite large and may contain numerous pockets. Your job is to determine how many different oil deposits are contained in a grid. The input file contains one or more grids. Each grid begins with a line containing m and n, the number of rows and columns in the grid, separated by a single space. If m = 0

9、 it signals the end of the input; otherwise 1 = m = 100 and 1 = n = 100. Following this are m lines of n characters each (not counting the end-of-line characters). Each character corresponds to one plot, and is either *, representing the absence of oil, or , representing an oil pocket.For each grid,

10、 output the number of distinct oil deposits. Two different pockets are part of the same oil deposit if they are adjacent horizontally, vertically, or diagonally. An oil deposit will not contain more than 100 pockets.1 1*3 5*1 8*0 0P6: The kth great numberXiao Ming and Xiao Bao are playing a simple N

11、umbers game.In a round Xiao Ming can choose to write down a number, or ask Xiao Bao what the kth great number is. Because the number written by Xiao Ming is too much, Xiao Bao is feeling giddy. Now, try to help Xiao Bao.There are several test cases. For each test case, the first line of input contai

12、ns two positive integer n, k. Then n lines follow. If Xiao Ming choose to write down a number, there will be an I followed by a number that Xiao Ming will write down. If Xiao Ming choose to ask Xiao Bao, there will be a Q, then you need to output the kth great number. The output consists of one inte

13、ger representing the largest number of islands that all lie on one line. 8 3I 1I 2I 3QI 5I 4P7: 救援物资台风“尤特”来袭,给广东带来大范围降雨,在潮汕某些地区地势较低,大水淹没了一些村庄,造成了交通的中断。村民们已经2天没有食物供应了,救援队只能通过飞机投放救援物质。飞机从A(0,y)出发以v米/秒速度匀速平行于X轴飞行,离投放区域的高度为h米,到达B(x,y)点进行投放。假设重力加速度g=10米/秒2,相邻坐标相隔为1米。为了让投放的物资必须要投放到没有被大水淹没的高地上(高地任何一个位置都是平坦

14、的),您必须编写一个程序,按顺时针顺序输入高地的一些直线交点的坐标,计算物资是否能够准确落在高地上。物资投放过程中忽略其他因素,包括风速,落在边缘位置也算投放成功。第一行包含高地边缘坐标点的数目N;第2N+1行,包含每个坐标点(x1,y1);第N+2行,飞机投放的坐标,高度,速度(x,y,h,v)包含多组测试样例。投放成功,输出success投放失败,输出fail88.0 11.011.0 7.010.0 4.05.0 1.02.0 3.04.0 5.04.0 9.05.0 8.07.0 9.0 5.0 1.0successP8: 取余运算输入b,p,k的值,求bp mod k的值。其中b,p

15、,k*k为长整型数。含有多组测试数据,每组测试数据包含3个数据,即b ,p ,k(b,p,k 232)。对每个测试用例,输出所求运算的余数。2 10 97P9: 逃离神庙 3000MS Memory Limit:有批游客在非洲旅游的时候不小心误闯了某部落禁地神庙里,进了禁地后他们被分散到了神庙的不同方位。神庙里有一些门可以传送他们离开,但是每个门只能传送一个人,传送完毕后门的传送魔法就会失效,变成一个石块。他们必须找到属于自己最近的门,并且尽可能的让所有人以最快时间离开神庙,否则时间长了被部落的人发现会有生命危险. 逃离的过程中会有石块阻碍,不能越过。每走一个坐标耗时为1s。第一行包含矩阵的大小N,M(2=N,M200),游客的数量P(1=P=20),门的数量D(1=D=30),石块的数量S;接下来,每行包含P个游客的坐标点(i1,j1);再接下来,每行包含D个门的坐标点(i2,j2);最后,每行包含S个石块的坐标点(i3,j3)对逃离成功,输出所有人最快逃出神庙的时间总和。逃离失败,输出impossible。7 11 2 2 22 34 52 76 81 52 5

copyright@ 2008-2023 冰点文库 网站版权所有

经营许可证编号:鄂ICP备19020893号-2