Run ID 作者 问题 语言 测评结果 分数 时间 内存 代码长度 提交时间
136359 黄宇翔 组合问题 C++ 编译错误 0 0 MS 0 KB 309 2024-03-09 08:57:37

Tests(0/0):


#include<bits/stdc++.h> using namespace std; int n,m,a[35]; void cpuzhale(int k){ if(k==m){ for(int i=1;i<k-1;i++){ cout<<a[i]; } } cout<<endl; else{a[k]=a[k-1]+1 for(;a[k]<=n;a[k]++){ cpuzhale(k+1); } } } int main(){ int n,m; cpuzhale(1); return 0; }


测评信息: