Submission
Status:
[-SSSSSSS]
Subtask/Task Score:
{0/100}
Score: 0
User: MyYammGods
Problemset: สตริงซ้ำซ้ำ
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-05 23:29:46
#include <bits/stdc++.h>
using namespace std;
int main(){
cin.tie(NULL);
ios_base::sync_with_stdio(false);
string word;
int alphabet;
int position[10000] = {0};
cin >> word;
for(int i=0;i<word.size();i++){
position[word[i]-'A'] = 1;
}
for(int i=0;i<300;i++){
if(position[i]==1){
alphabet = i + 'A';
cout << (char)(alphabet) << " ";
}
}
}