![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
ACM练习
文章平均质量分 71
高赞
烟台大学-计控学院-14级苦逼学生
展开
-
整数划分-分苹果
Description 把M个同样的苹果放在N个同样的盘子里,允许有的盘子空着不放,问共有多少种不同的分法?(用K表示)5,1,1和1,5,1 是同一种分法。 Input 第一行是测试数据的数目t(0 Output 对输入的每组数据M和N,用一行输出相应的K。 Sample Input 1 7 3 Sample Output 8 #include u原创 2015-08-08 17:36:49 · 715 阅读 · 0 评论 -
姓名对称排序
Description In your job at Albatross Circus Management (yes, it's run by a bunch of clowns), you have just finished writing a program whose output is a list of names in nondescending order by len原创 2015-08-08 09:59:57 · 617 阅读 · 0 评论 -
找出现次数最多的数-Ignatius and the Princess IV
Description "OK, you are not too bad, em... But you can never pass the next test." feng5166 says. "I will tell you an odd number N, and then N integers. There will be a special integer among the原创 2015-08-08 17:40:28 · 529 阅读 · 0 评论