Submission
Status:
[PPPPPPPPPP]
Subtask/Task Score:
{100/100}
Score: 100
User: angielala
Problemset: เรียงสตริง
Language: cpp
Time: 0.002 second
Submitted On: 2025-09-20 18:31:26
#include <iostream>
using namespace std;
int main() {
string s;
cin >> s;
int n=s.length();
int all[123] = {0};
for (int i=0; i<n ; i++)
{
all[(int)s[i]] = 1;
}
int first = 1;
for (int c= 'A'; c <= 'z'; c++)
{
if (all[c])
{
cout << char(c) << " ";
}
}
return 0;
}