Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
105179 曾煦翔 放苹果 C++ 编译错误 0 0 MS 0 KB 432 2023-10-05 11:22:42

Tests(0/0):


#include <iostream> using namespace std; int cnt; void count(int m , int n , int s) { if(n == 1) cnt++; else if(m < n) count(m , m , 0); else { for(int i = s;i <= m / n;i++) count(m - i , n - 1 , i); } } int main() { int n; cin >> n; int x , y; while(n) { cnt = 0; cin >> x >> y; count(m , n , 0); cout << cnt; t--; } return 0; }


测评信息: