![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
HYNU新生练习14
文章平均质量分 69
Ricardo_Y1n
这个作者很懒,什么都没留下…
展开
-
兔子
Problem DescriptionThe rabbits have powerful reproduction ability. One pair of adult rabbits can give birth to one pair of kid rabbits every month. And after m months, the kid rabbits can become adu原创 2014-08-06 15:26:02 · 633 阅读 · 0 评论 -
01背包问题
Problem Description一个旅行者有一个最多能装M公斤的背包,现在有n件物品,它们的重量分别是W1,W2,...,Wn,它们的价值分别为C1,C2,...Cn,求旅行者能获得最大总价值。Input输入有多组数据,对于每组输入数据第1行:两个整数,M(背包容量,M第2行至N+1行:每行两个整数Wi,Ci,表示每个物品的重量和价值。 Output对于每组输入输原创 2014-08-07 09:58:50 · 657 阅读 · 0 评论 -
螺旋方阵
Problem DescriptionGiven an odd number n, we can arrange integers from 1 to n*n in the shape of a spiral. The figure below illustrates the spiral made by integers from 1 to 25. 1原创 2014-08-07 20:45:11 · 596 阅读 · 0 评论