Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: pitt

Problemset: เรียงสตริง

Language: cpp

Time: 0.004 second

Submitted On: 2026-10-12 11:44:29

#include<bits/stdc++.h>
using namespace std;

int main(){
    string word;
    cin >> word;
    set<char> big,small;
    for(int i = 0; i < word.size(); i++){
        if(word[i] > 'z'){
            big.insert(word[i]);
        }else{
            small.insert(word[i]);
        }
    }
    for(const auto &p : big) cout << p << " ";
    for(const auto &p : small) cout << p << " ";
}