Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: Sense.exe
Problemset: เรียงสตริง
Language: cpp
Time: 0.004 second
Submitted On: 2026-09-24 17:46:13
#include <bits/stdc++.h>
using namespace std;
int main() {
string s;
cin >> s;
map<char,int> v_u,v_l;
stringstream ss1(s);
char x;
if(s.length()<=30) {
for(auto x:s) {
if(x>='A'&&x<='Z') {
v_u[x]+=1;
}
else if(x>='a'&&x<='z') {
v_l[x]+=1;
}
}
//print
for(auto x:v_u) {
cout << x.first << " ";
}
for(auto x:v_l) {
cout << x.first << " ";
}
}
}