Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Darleneee93

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

Language: cpp

Time: 0.005 second

Submitted On: 2026-10-15 11:56:03

#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define el << '\n'
#define float double


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

	string word;
	cin >> word;

	sort(word.begin(),word.end());

	set<char> ans;

	for(int i=0;i<word.length();i++){
        ans.insert(word[i]);
	}

	for(auto j: ans){
        cout << j << " ";
	}
}