Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: vachirasawin

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-03-13 16:02:24

// grader-chan
// c1_bkk67_1.cpp | c1_bkk67_1

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

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

    map<int, char> alphabet;

    string word;
    cin >> word;

    for (char &c : word) alphabet.insert({c - 'A', c});

    while (!alphabet.empty()) {
        cout << alphabet.begin()->second << " ";
        alphabet.erase(alphabet.begin());
    }

    return 0;
}