(注
(注
#include
void paixu(int r[]
{
int i
int exchange;
for(i=
{
exchange=
for(j=n
if(r[j+
{
k=r[j+
r[j+
r[j]=k;
exchange=
}
if(!exchange)
break;
}
}
int jiaoji(int m[]
{
int w
int i=
for(w=
{
for(x=w+
{
if(m[w]==m[x])
{
countaa——;
for(y=x;y<=countaa;y++)
{
m[y]=m[y+
}
x——;
}
}
}
while(i<=countaa)
{
for(j=
{
if(m[i]==n[i])
{
l[k]=m[i];
k++;
break;
}
}
i++;
}
return k;
}
void main()
{
int a[
int excange=
printf(
for(i=
{
scanf(
if(a[i]==
break;
}
countA=i
paixu(a
printf(
for(i=
{
scanf(
if(b[i]==
break;
}
countB=i
paixu(b
countC=jiaoji(a
printf(
for(i=
printf(
printf(
[
From:http://tw.wingwit.com/Article/program/sjjg/201311/23799.html