Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Newton4566

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-13 21:59:21

#include <bits/stdc++.h>
using namespace std;

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

    set a(str.begin(), str.end());
    
    bool first = true;
    for (char c : a) {
        if (!first) cout << ' ';
        cout << c;
        first = false;
    }

    return 0;
}