#include<stdio.h>
int ji(int a[]);
int main()
{
int a[4],b[3],c[3],d[3],e[3];
int i;
for(i=0;i<4;i++)
scanf("%d",&a[i]);
b[0]=a[0];b[1]=a[1];b[2]=a[2];
c[0]=a[0];c[1]=a[1];c[2]=a[3];
d[0]=a[0];d[1]=a[2];d[2]=a[3];
e[0]=a[1];e[1]=a[2];e[2]=a[3];
ji(b);
ji(c);
ji(d);
ji(e);
return 0;
}
int ji(int a[])
{int i,j,k;
for(i=0;i<3;i++)
for(j=0;j<3;j++)
for(k=0;k<3;k++)
{if(a[i]!=a[j]&&a[i]!=a[k]&&a[j]!=a[k])printf("%d %d %d\n",a[i],a[j],a[k]);
}
return 0;
}
标签:return,int,11.21,ji,&&,include From: https://blog.51cto.com/u_15758636/5874803