题解 | #求长方体表面积#
字符个数统计
http://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
#include<bits/stdc++.h>
using namespace std;
int main(){
//利用set不保存相同元素的特性
string strInput;
set<char> mySet;
int num = 0;
while(getline(cin,strInput)){
for(auto ch:strInput){
if(ch>=0&&ch<=127){
mySet.insert(ch);
}
}
num = mySet.size();
cout<<num<<endl;
}
return 0;
}