Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: chankuz

Problemset: เรียงสตริง

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-17 16:43:26

#include <bits/stdc++.h>
#define ll long long
#define endl "\n"
const int N = 1e9 + 7;
using namespace std;

int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(nullptr);

    string str;
    cin >> str;
    set<char> s;
    sort(str.begin(), str.end());
    for (char &l : str)
    {
        s.insert(l);
    }

    for (char u : s)
    {
        cout << u << ' ';
    }
}