fork download
  1. #include <iostream>
  2. #include <string>
  3. #include <map>
  4. using namespace std;
  5.  
  6. int main() {
  7. string str;
  8. cin >> str;
  9. map<char, int> m;
  10. for(auto e : str) {
  11. m[e]++;
  12. }
  13. for(auto e : m) {
  14. if(e.second == 1) {
  15. cout << e.first;
  16. }
  17. }
  18. cout << endl;
  19. return 0;
  20. }
Success #stdin #stdout 0s 16064KB
stdin
sukablyadaaaa
stdout
bdklsuy