fork(1) download
  1. #include <iostream>
  2. #include <cstring>
  3. #include <set>
  4. using namespace std;
  5.  
  6. int main() {
  7. set<char> k;
  8. set<char>::iterator iter;
  9. char s[101];
  10. cin >> s;
  11. for(int i = 0; i < strlen(s); i++){
  12. k.insert(s[i]);
  13. }
  14. cout << k.size();
  15. return 0;
  16. }
Success #stdin #stdout 0s 4192KB
stdin
Standard input is empty
stdout
6