Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: The3e

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

Language: cpp

Time: 0.005 second

Submitted On: 2026-09-25 19:42:04

#include <iostream>
#include <string>
#include <algorithm>
using namespace std;

int main() {
    string s;
    cin >> s;

    sort(s.begin(), s.end());

    for (int i = 0; i < s.length(); i++) {
        if (i == 0 || s[i] != s[i - 1]) {
            cout << s[i] << " ";
        }
    }

    return 0;
}