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:50:08
#include <bits/stdc++.h>
using namespace std;
char s[30 + 10];
int main()
{
scanf("%s", s);
int len = strlen(s);
sort(s, s + len);
for (int i = 0; i < len; i++)
{
if (i > 0 && s[i] == s[i - 1])
{
continue;
}
printf("%c ", s[i]);
}
}
/*
ILOVECOMPUTERJa
myNameis
*/