Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: pottersk146
Problemset: เรียงสตริง
Language: cpp
Time: 0.005 second
Submitted On: 2026-10-09 19:18:21
#include <iostream>
#include <algorithm>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
string s;
getline(cin, s);
sort(s.begin(), s.end());
for (int i=0; i<s.length(); i++){
if (s[i]!=s[i+1]){
cout<<s[i]<<" ";
}
}
return 0;
}