На с++
#include
#include
using namespace std;
int main()
{
int n, i, j, k(0),s(0);
cout << "vvedite kol-vo elementv \n";<br> cin >> n;
int *a = new int[n];
cout << "zapolnite massiv \n";<br> for (i = 0; i < n; i++)
{
cout << "a[" << i << "]=";<br> cin >> a[i];
}
for (i = 0; i k = 0;
for (j = 0; j if (a[i] == a[j]) k++;
if (k == 1)
s++;
}
cout << "otvet: " <<s << endl;<br> return 0;
}