#include<iostream> using namespace std; int main(){ string str; cin>>str; char c[200]={false}; for(int i=0;i<str.length();++i){ if(!c[str[i]]){ cout<<str[i]; c[str[i]]=true; } } return 0; }
Double click to view unformatted code.