Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: rukdk
Problemset: เรียงสตริง
Language: cpp
Time: 0.004 second
Submitted On: 2026-08-07 21:19:57
#include<bits/stdc++.h>
#include<string>
#include<set>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(NULL);
string s;
if(cin>>s){
set<char>unique_chars(s.begin(),s.end());
bool first=true;
for(char c:unique_chars){
if(!first){
cout<<" ";
}
cout<<c;
first=false;
}
cout<<"\n";
}
}