fork(1) download
  1. #include <iostream>
  2. #include <string>
  3. #include <algorithm>
  4. using namespace std;
  5.  
  6. int main() {
  7. string str = "mamky_tvoy_ebal";
  8. int num;
  9. cin >> str;
  10. for(char c = 'a'; c <= 'z'; c++) {
  11. num = 0;
  12. for(size_t i = 0; i < str.length(); i++) {
  13. if(str[i] == c) {
  14. num++;
  15. }
  16. }
  17. if (num == 1) {
  18. cout << c;
  19. }
  20. }
  21. cout << endl;
  22. return 0;
  23. }
Success #stdin #stdout 0s 16064KB
stdin
Standard input is empty
stdout
beklotv