题解 | #字符个数统计#
字符个数统计
http://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
#include<iostream>
#include<set>
using namespace std;
int main()
{
string s;
while(cin>>s)
{
int i=0;
set<char>se;
while(s[i]!='\0')
{
if(se.count(s[i])==0)
{
se.insert(s[i]);
}
i++;
}
cout<<se.size()<<endl;
}
return 0;
}