include<bits/stdc++.h>

using namespace std;
int main(){
map<char,int> m;
string s;
cin>>s;
for(char x: s){
m[x]++;
}
cout<<m.size

链接:https://ac.nowcoder.com/acm/contest/9165/A
来源:牛客网

我们认为以下三种类型的字符是合法的:
1.阿拉伯数字09
2.小写字母a
z
3.大写字母A~Z

保证输入一个字符串,字符串中所有字符均是合法的。
请你统计一下字符串中存在多少种字符,两个字符不属于同一种,当且仅当两者的ASCII码不同
输入描述
map可以存储任意类型的数据,包括自定义的数据
map<int ,string>m
表示m即为int类型的也为string