Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Apimuk

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-09-17 20:51:57

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

int main() {
    string txt;
    cin >> txt;
    sort(txt.begin(), txt.end());
    txt.erase(unique(txt.begin(), txt.end()), txt.end());
    for (int i = 0; i < txt.length(); i++) {
        cout << txt[i] << ' ';
    }
    
}