fork download
  1. #include <iostream>
  2. #include <cstring>
  3. #include <string>
  4. #include <algorithm>
  5. #include <map>
  6. using namespace std;
  7.  
  8. int main() {
  9. int arr[256];
  10.  
  11. memset(&arr, 0, sizeof(int) * 256);
  12. string str;
  13. cin >> str;
  14. for (const auto& chr : str)
  15. {
  16. arr[chr] += 1;
  17. }
  18.  
  19. for (int i = 0; i < 255; i++)
  20. {
  21. if (arr[i] == 1)
  22. {
  23. cout << (char)i;
  24. }
  25. }
  26. return 0;
  27. }
Success #stdin #stdout 0s 15240KB
stdin
mamky_tvoy_ebal
stdout
beklotv