Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: lumppengae

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

Language: cpp

Time: 0.004 second

Submitted On: 2026-09-30 14:15:26

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

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

*******************************************************************************/
#include <iostream>
using namespace std;
int main()
{
    string a;
    cin >>a;
    int b;
    int c[500]={0};
    for (int i=0;i<a.length();i++){
        b=a[i];
        c[b]++;
    }
    for (int i=65;i<91;i++){
        char k;
        k=i;
        if(c[i]!=0){
            cout<<k<<" ";
        }
    }
    for (int i=97;i<123;i++){
        char k;
        k=i;
        if(c[i]!=0){
            cout<<k<<" ";
        }
    }
}