← Back to List

1453번: 피시방 알바 ↗

Solutions

C++14
177 B | 177 chars
#include <iostream>
using namespace std;
int N,A,Cnt,ar[110];
int main()
{
	cin>>N;
	for(int x=0; x<N; x++)
	{
		cin>>A;
		if(ar[A]==1) Cnt++;
		else ar[A]=1;	
	}
	cout<<Cnt;
}