输出个数
#include<iostream>
#include<algorithm>
using namespace std;
const int N = 1000;
int n;
int a[N];
int main(){
int n = 0;
while (cin >> a[n]){
n++;
}
sort(a, a + n);
int num=0;
for (int j = 0; j < n - 1; ++j){
if (a[j] == a[j + 1]){
num++;
}
}
cout << num;
return 0;
}
输出重复的数字