| Run ID | Author | Problem | Lang | Verdict | Score | Time | Memory | Code Length | Submit Time |
|---|---|---|---|---|---|---|---|---|---|
| 54872 | 李言 | 彩票 | C++ | Accepted | 100 | 8 MS | 256 KB | 575 | 2022-07-29 17:39:21 |
//1145141919810 #include<bits/stdc++.h> using namespace std; int k; void echou(int a[]){ for(int i1=1;i1<=k-5;i1++){ for(int i2=i1+1;i2<=k-4;i2++){ for(int i3=i2+1;i3<=k-3;i3++){ for(int i4=i3+1;i4<=k-2;i4++){ for(int i5=i4+1;i5<=k-1;i5++){ for(int i6=i5+1;i6<=k;i6++){ cout<<a[i1]<<' '<<a[i2]<<' '<<a[i3]<<' '<<a[i4]<<' '<<a[i5]<<' '<<a[i6]<<endl; } } } } } } } int main(){ while(cin>>k&&k!=0){ int a[10001]; for(int i=1;i<=k;i++){ cin>>a[i]; } echou(a); cout<<endl; } return 0; }