Submission

Status:
[PPPPPPPPPP]

Score: 100

User: admin

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

Language: cpp

Time: 0.003 second

Submitted On: 2024-11-06 10:58:38

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

int c[1000] = {0};
char s[1000] = {0};
main() {
	scanf("%s", s);
	for (int i=0; s[i]!=0;i++) {
		c[s[i]]++;
	}
	for (int i='A'; i<='z';i++) {
		if (c[i] > 0)printf("%c ", i);
	}
}