Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: faofao
Problemset: เรียงสตริง
Language: cpp
Time: 0.004 second
Submitted On: 2026-08-17 19:56:33
#include <bits/stdc++.h>
using namespace std;
#define ll long long
int main(){
ios::sync_with_stdio(0),cin.tie(0);
string s ;cin>>s;
set<int> stA ;
set<int> sta ;
for(char c:s){
if(c>='A') stA.insert(c);
else sta.insert(c);
}
for(char c:stA) cout << c << " " ;
for(char c:sta) cout << c << " " ;
}