Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: denze
Problemset: เรียงสตริง
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-12 21:39:44
#include <bits/stdc++.h>
using namespace std;
int main()
{
cin.tie(nullptr)->sync_with_stdio(false);
string s;
cin >> s;
sort(s.begin(), s.end());
for (int i = 0; i < (int)s.size(); i++)
{
if (i > 0 && s[i] == s[i - 1])
{
continue;
}
cout << s[i];
if (i != (int)s.size() - 1)
{
cout << ' ';
}
}
}
/*
ILOVECOMPUTERJa
myNameis
*/