Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: 666whynot
Problemset: เรียงสตริง
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-03 20:37:53
#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);cin.tie(nullptr);
string s;cin >> s;
set<char> wa = {};
for(char c:s){
wa.insert(c);
}
for(char c:wa){
if(c == wa.size() - 1)cout << c;
else cout << c << ' ';
}
// for(int i=0;i<wa.size();i++){
// if(i == wa.size() - 1)cout << i;
// else cout << i << ' ';
// }
}