题解 | 最小循环节
最小循环节
https://www.nowcoder.com/practice/761f78551b854037abe412c2de615c05
#include <iostream>
#include <unordered_map>
using namespace std;
int main() {
string str;
getline(cin, str);
unordered_map<char, int> hash;
for (auto ch : str) {
hash[ch] ++;
}
cout << hash.size() << endl;
}
// 64 位输出请用 printf("%lld")

