Submission

Status:

[PPPPPPPPPP]

Subtask/Task Score:

{100/100}

Score: 100

User: korn234

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

Language: cpp

Time: 0.002 second

Submitted On: 2026-09-20 09:49:13

#include <iostream>
using namespace std;
int main(){
	string s;
	int count[128]={0};
	cin>>s;
	for (int i=0; i<s.length(); i++){
		count[s[i]]++;
	}
	for (char c='A'; c<='Z'; c++){
		if (count[c]>0){
			cout<<c<<" ";
		}
	}
	for (char c='a'; c<='z'; c++){
		if (count[c]>0){
			cout<<c<<" ";
		}
	}
}