| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 56616 | 季洁 | 彩票 | C++ | Accepted | 100 | 9 MS | 248 KB | 372 | 2022-08-02 16:57:47 |
#include<bits/stdc++.h> using namespace std; const int n=14; int a[n],b[7],k; void p(int w,int c){ if(w<6){ for(int i=c+1;i<=k-5+w;i++){ b[w+1]=a[i]; p(w+1,i); } }else{ for(int i=1;i<=6;i++) cout<<b[i]<<' '; cout<<endl; } } int main(){ while(cin>>k&&k!=0){ for(int i=1;i<=k;i++) cin>>a[i]; p(0,0); cout<<endl; } return 0; }