Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: Sunsblad
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.002 second
Submitted On: 2026-10-01 18:11:07
#include<iostream>
#include<string>
#include<vector>
using namespace std;
int main(){
ios::sync_with_stdio(false);
cin.tie(nullptr);
vector<int> alph(30);
string word;
cin>>word;
for(int i = 0; i < word.size(); i++){
alph[int(word[i]) - 65]++;
}
for(int i = 0; i < 26; i++){
if(alph[i] == 1){
cout<<char(i+65);
return 0;
}
}
}