Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: chillxvtkz
Problemset: เรียงสตริง
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-07 11:21:20
#include <bits/stdc++.h>
#define ll long long
#define ct cout << ' '
#define el cout << endl;
using namespace std;
const int mx = 1e9;
const int mn = 1e-9;
string s,t;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cin >> s;
sort(s.begin(),s.end());
t = s[0];
cout << s[0] << " ";
for (int i = 0; i < s.size(); i++){
if(s[i] != t[0]){
t[0] = s[i];
cout << s[i] << " ";
}
}
return 0;
}