Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
125008 硕博·黄凯麟·连读 求子集 C++ 运行出错 0 0 MS 236 KB 443 2024-01-23 16:18:24

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; fin>>n>>m; int count1; count1=hua(n,m); fout << count1; fout.close(); fin.close(); return 0; }


测评信息: