//AC (4ms, 724KB)
//MODED FROM HERE
#include
#include
int main(int argc, char *argv[])
{
int i,a,b,c,d,e,n;
while(scanf("%u",&n)!=EOF&&n!=0)
{
int s[13]={0};
for(i=0;i
{
scanf("%u",&s[i]);
}
for(i=0;i
for(a=i+1;a
for(b=a+1;b
for(c=b+1;c
for(d=c+1;d
for(e=d+1;e
printf("%u %u %u %u %u %u\n",s[i],s[a],s[b],s[c],s[d],s[e]);
printf("\n");
}
//system("PAUSE");
return 0;
}
#include
int main(int argc, char *argv[])
{
int i,a,b,c,d,e,n;
while(scanf("%u",&n)!=EOF&&n!=0)
{
int s[13]={0};
for(i=0;i
{
scanf("%u",&s[i]);
}
for(i=0;i
for(a=i+1;a
for(b=a+1;b
for(c=b+1;c
for(d=c+1;d
for(e=d+1;e
printf("%u %u %u %u %u %u\n",s[i],s[a],s[b],s[c],s[d],s[e]);
printf("\n");
}
//system("PAUSE");
return 0;
}
沒有留言:
張貼留言