Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: Veerawich

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

Language: cpp

Time: 0.003 second

Submitted On: 2026-01-03 15:10:10

/******************************************************************************

Welcome to GDB Online.
  GDB online is an online compiler and debugger tool for C, C++, Python, PHP, Ruby, 
  C#, OCaml, VB, Perl, Swift, Prolog, Javascript, Pascal, COBOL, HTML, CSS, JS
  Code, Compile, Run and Debug online from anywhere in world.

*******************************************************************************/
#include<bits/stdc++.h>
using namespace std;
int main()
{
    string a;
    cin>>a;
    int arr[123] = {};
    if(a.size() <= 30) {
        for(int i=0;i<a.size();i++) {
            arr[a[i]] += 1;
        }
    }   
    for(int i=65;i<=90;i++) {
        if(arr[i] > 0) {
        cout<<(char)i<<" ";
        }
    }
    for(int i=97;i<=122;i++) {
        if(arr[i] > 0) {
        cout<<(char)i<<" ";
        }
    }
}