Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: randomguy
Problemset: เรียงสตริง
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-10 12:46:15
#include <iostream>
#include <bits/stdc++.h>
#include <string>
#include <numeric>
#include <set>
#include <algorithm>
#define io() do { ios::sync_with_stdio(false); cin.tie(nullptr); } while(0)
using namespace std;
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
string a;
cin >> a;
set<int> alp;
for(char c:a){
alp.insert(c);
}
for(char c:alp){
cout << c;
if(c!=char(*alp.rbegin())) cout << " ";
}
}