fork download
  1. #include <bits/stdc++.h>
  2. using namespace std;
  3.  
  4. int main() {
  5. int t;
  6. cin>>t;
  7. while(t--){
  8. string s;
  9. cin>>s;
  10. map<char,int> mp;
  11. for(int i=0;i<s.size();i++){
  12. mp[s[i]]++;
  13. }
  14. for(auto x: mp){
  15. if(x.second<2) cout<<x.first;
  16. }
  17. cout<<endl;
  18. }
  19. }
Success #stdin #stdout 0.02s 5320KB
stdin
Standard input is empty
stdout