AC

❤ · 发布于 2025-08-12 · 浏览 325 回复 0

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;

}

全部回复 共 0 条

还没有人回复。往下写第一条。

发表回复