Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Chayatoeyy

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-10-06 14:05:09

#include<bits/stdc++.h>
using namespace std;
int main()
{
    ios_base::sync_with_stdio(false);
    cin.tie(0);
    string s;
    cin>>s;
    sort(s.begin(),s.end());
    for(int i=0;i<s.length();i++){
        if(s[i]!=s[i+1]){
            cout << s[i] << " " ;
        }
    }
}