08-25-2025
This commit is contained in:
14
Luogu/P3370 【模板】字符串哈希.cpp
Normal file
14
Luogu/P3370 【模板】字符串哈希.cpp
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <iostream>
|
||||
#include <unordered_set>
|
||||
using namespace std;
|
||||
int main() {
|
||||
unordered_set<string> a;
|
||||
int n;
|
||||
cin >> n;
|
||||
string x;
|
||||
for(int i = 0; i < n; i++){
|
||||
cin >> x;
|
||||
a.emplace(x);
|
||||
}
|
||||
cout << a.size() << endl;
|
||||
}
|
Reference in New Issue
Block a user