#include<stdio.h>
//方法一;
int main()
{
int b = 0;
int n = 0;
int arr2[2] = { 0 };
int arr[ ] = { 0,1,2,3,4,5,0,1,2,3 };
int ret = sizeof(arr) / sizeof(arr[0]);
for (int i = 0; i < ret; i++)
{
int n = 0;
for (int j = 0; j < ret; j++)
{
if (arr[i] == arr[j])
{
n++;
}
}
if (n == 1)
{
arr2[b] = arr[i];
b++;
}
}
for (int i = 0; i < b; i++)
{
printf("%d ", arr2[i]);
}
return 0;
}