main()
{
int a[MAX];
int a1[MAX],a2[MAX];
int p,i=0,j,temp,min1,min2,sum1=0,sum2=0;
for(j=0;j<MAX;j++)
{a[j]=0;a2[j]=0;a1[j]=0;
}
printf("input the data:");
scanf("%d",&p);
i=0;
while(p!=0)
{
示例:input the data:45
input data 0 to end:12
input data 0 to end:41
input data 0 to end:89
input data 0 to end:0
{45,12,41,89}
{89} {45,12,41}
input the data:10
input data 0 to end:8
input data 0 to end:7
input data 0 to end:5
input data 0 to end:4
input data 0 to end:3
input data 0 to end:2
input data 0 to end:0
{10,8,7,5,4,3,2}
{10,8,2} {7,5,4,3}