Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: Folk_DIWA
Problemset: เรียงสตริง
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-12 23:52:08
#include <bits/stdc++.h>
using namespace std;
using ll = long long;
int main(){
cin.tie(0)->sync_with_stdio(0);
string s; cin >> s;
sort(s.begin(), s.end());
// reverse(s.begin(), s.end());
set <char> st;
for(int i=0; i<s.size(); i++) st.insert(s[i]);
for(auto &x : st) cout << x << ' ';
return 0;
}