Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: Kidmaiok
Problemset: เรียงสตริง
Language: cpp
Time: 0.002 second
Submitted On: 2026-10-11 13:28:07
#include <bits/stdc++.h>
using namespace std;
#define ll long long
#define ull unsigned long long
#define space << ' '
#define nl << endl
int main() {
ios::sync_with_stdio(false);
cin.tie(nullptr);
string n;
cin >> n;
set<char> up,low;
for(int i =0; i <n.size();i++){
if(n[i] >='A' && n[i] <= 'Z'){
up.insert(n[i]);
}else{
low.insert(n[i]);
}
}
for(auto i : up){
cout << i << " ";
}
for(auto i : low){
cout << i << " ";
}
}