Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: zibozzz_23

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-13 18:29:34

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

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

    string a;
    cin >> a;
    
    set<char> s;
    for(int i = 0; i < a.size(); ++i){
        char c = a[i];
        s.insert(a[i]);
    }

    for(auto c : s){
        cout << c << ' ';
    }
}