Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: code

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

Language: cpp

Time: 0.002 second

Submitted On: 2025-11-10 21:02:24

#include <bits/stdc++.h>
using namespace std;
int main(){
    string word;cin>>word;
    string ARR[26]={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
    string arr[26]={"a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"};
    int fnd=0;
    for (int i=0;i<26;i++){
        fnd=word.find(ARR[i]);
        if (fnd>=0){
            cout<<ARR[i]<<" ";
        }
    }
    for (int j=0;j<26;j++){
        fnd=word.find(arr[j]);
        if (fnd>=0){
            cout<<arr[j]<<" ";
        }
    }
    return 0;
}