90分求助大佬,提示Memory Limit Exceeded 内存占用125m

P1157 组合的输出

可以试一试将 ```java while(a[0]==0) { //注意是==不是= !! for(int i=1;i<=r;i++) cout<<setw(3)<<a[i]; cout<<endl; a[r]++; if(a[r]>n) { jinwei(r); } } ``` 也做成递推形式的
by lzh009 @ 2023-06-02 19:25:25


|