文件名称:lab1
介绍说明--下载内容均来自于网络,请自行研究使用
输入:
每组输入是两个整数n和k。(1 <= n <= 50, 1 <= k <= n)
输出:
对于每组输入,请输出六行。
第一行: 将n划分成若干正整数之和的划分数。
第二行: 将n划分成k个正整数之和的划分数。
第三行: 将n划分成最大数不超过k的划分数。
第四行: 将n划分成若干奇正整数之和的划分数。
第五行: 将n划分成若干不同整数之和的划分数。
第六行: 打印一个空行。
Sample Input
5 2
Sample Output
7
2
3
3
3
-Input: Each input two integers n and k. (1 < = n < = 50, 1 < = k < = n) Output: For each input, six output lines. First line: divide the number n is divided into a number of positive integers and the. Second row: k will be divided into n positive integers and the division number. Third line: n divided into no more than the maximum number of division number k. Fourth line: divide the number n is divided into a number of odd positive integers. Fifth row: divide the number n is divided into a number of different integers and the. Sixth row: print a blank line. Sample Input 5 2 Sample Output 7 2 3 3 3
每组输入是两个整数n和k。(1 <= n <= 50, 1 <= k <= n)
输出:
对于每组输入,请输出六行。
第一行: 将n划分成若干正整数之和的划分数。
第二行: 将n划分成k个正整数之和的划分数。
第三行: 将n划分成最大数不超过k的划分数。
第四行: 将n划分成若干奇正整数之和的划分数。
第五行: 将n划分成若干不同整数之和的划分数。
第六行: 打印一个空行。
Sample Input
5 2
Sample Output
7
2
3
3
3
-Input: Each input two integers n and k. (1 < = n < = 50, 1 < = k < = n) Output: For each input, six output lines. First line: divide the number n is divided into a number of positive integers and the. Second row: k will be divided into n positive integers and the division number. Third line: n divided into no more than the maximum number of division number k. Fourth line: divide the number n is divided into a number of odd positive integers. Fifth row: divide the number n is divided into a number of different integers and the. Sixth row: print a blank line. Sample Input 5 2 Sample Output 7 2 3 3 3
(系统自动生成,下载前可以参看下载内容)
下载文件列表
lab1.cpp