题解 |13行代码解决 #提取不重复的整数#
字符个数统计
http://www.nowcoder.com/practice/eb94f6a5b2ba49c6ac72d40b5ce95f50
#include <iostream> #include <set> using namespace std; set<char> c; char ad; int main() { while (scanf("%c",&ad)!=EOF) { c.insert(ad); } cout<<c.size()-1; }