Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: Permploy_Laotienchai
Problemset: เรียงสตริง
Language: cpp
Time: 0.002 second
Submitted On: 2026-10-13 22:06:06
#include<bits/stdc++.h>
using namespace std;
int main() {
string a;
cin >> a;
bool m[52] = {false};
for(char c : a) {
if (c >= 'A' && c <= 'Z') {
m[c - 'A'] = true;
}else if(c >= 'a' && c <='z') {
m[c - 'a' + 26] = true;
}
}
for(int i=0; i<52; i++) {
if(m[i] == true) {
if(i < 26) {
cout << char(i + 'A') << " ";
}else {
cout << char(i + 'a' -26) << " ";
}
}
}
}