Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: idinkinjai

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-17 20:49:13

#include <bits/stdc++.h>

using namespace std;

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

    string s; cin>>s;
    int n = s.length();
    set<char> st;
    for (int i=0;i<n;i++){
        char c = s[i];
        st.insert(c);
    }
    for (auto c: st){
        cout <<c<<" ";
    }
    return 0;
}