Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
125012 硕博·黄凯麟·连读 求子集 C++ 内存超限 0 82 MS 131312 KB 451 2024-01-23 16:18:53

Tests(0/5):


#include <iostream> #include <bits/stdc++.h> using namespace std;//集合划分问题 int hua(int n, int m) { if(m==1||n==m) return 1; else return hua(n-1,m-1)+m*hua(n-1,m); } int main() { // ifstream fin("stir10.in",ios::in); // ofstream fout("answer10.txt"); int n,m; cin>>n>>m; int count1; count1=hua(n,m); cout << count1; // fout.close(); // fin.close(); return 0; }


测评信息: