Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Kaithrong

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

Language: cpp

Time: 0.003 second

Submitted On: 2025-10-06 22:50:19

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



int main(){

    ios_base::sync_with_stdio(false);
    cin.tie(NULL);cout.tie(NULL);
    string text;

    cin>>text;
    sort(text.begin(), text.end());
    int n=text.length();
    for(int i=0;i<n;i++){
        if(text[i]!=text[i-1]){
            cout<<text[i]<<" ";
        }
    }

    return 0;
}