Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: Boeing12345
Problemset: เรียงสตริง
Language: cpp
Time: 0.004 second
Submitted On: 2026-09-23 19:55:51
#include <iostream>
#include <string>
#include <algorithm>
using namespace std;
int main() {
string a;
cin >> a;
if(a.length() <= 30){
sort(a.begin(), a.end());
auto New = unique(a.begin(), a.end());
a.erase(New, a.end());
for(int i = 0; i < a.length(); i++){
cout << a[i] << " ";
}
}
}