[문제 링크] : https://www.acmicpc.net/problem/14467#include #include using namespace std;int Arr[11];int N;int main(){ memset(Arr,-1,sizeof(Arr)); cin >> N; int Ans = 0; while(N--){ int a, b; cin >> a >> b; if(Arr[a] != -1 && Arr[a] != b){ Ans++; } Arr[a] = b; } cout