AC

我是小学生  •  1天前


include <bits/stdc++.h>

using namespace std; unordered_map<string, int> a;//用哈希表实现快速查找 string s; int n, tot = 0;

int main() {

cin >> n;
while (n--) {
	cin >> s;
	if (a[s] == 1) {
		continue;
	} else {
		a[s] = 1;
		tot++;
	}
}
cout << 52 - tot;
return 0;

}


评论:

请先登录,才能进行评论