科大夏令营机试题
文章平均质量分 78
chendadayan
这个作者很懒,什么都没留下…
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
ustc_1104_network
Network Time Limit: 2000ms Memory Limit: 65536kb Description A network administrator manages a large network. The network consists of N computers and M links between pairs of computers. Any pair o原创 2014-07-10 15:56:00 · 481 阅读 · 0 评论 -
ustc_1003_Fibonacci Numbers
Fibonacci Numbers Time Limit: 1000ms Memory Limit: 65536kb Description The Fibonacci numbers (0, 1, 1, 2, 3, 5, 8, 13, 21, 34, 55, ...) are defined by the recurrence: An = An-1 + An-2, if n >= 2原创 2014-07-10 15:53:52 · 627 阅读 · 0 评论 -
ustc—1359—中位数
中位数 Time Limit: 2000ms Memory Limit: 65536kb Description 中位数定义:一组数据按从小到大的顺序依次排列,处在中间位置的一个数或最中间两个数据的平均值(如果这组数的个数为奇数,则中位数为位于中间位置的那个数;如果这组数的个数为偶数,则中位数是位于中间位置的两个数的平均值). 给出一组无序整数,求出中位数,如果求最中间两个数的平均数,向原创 2014-07-10 15:30:14 · 570 阅读 · 0 评论 -
ustc_1366_市长选举
市长选举 Time Limit: 1000ms Memory Limit: 65536kb Description Gameston小镇是一个钟爱游戏的小镇,甚至连他的市长,都每年通过游戏选出来的。在上任市长任期即将达到之际,市长,及多位其他候选人(不少于2位)一起坐在桌前,玩捡石子游戏,谁赢了,谁就是下一任市长。 捡石子游戏规则如下,其中n是参与人的数目(含现任市长): 游戏准备:原创 2014-07-10 15:36:53 · 592 阅读 · 0 评论
分享