Submission
Status:
PP------P-
Subtask/Task Score:
30/100
Score: 30
User: Mano
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.003 second
Submitted On: 2025-10-10 09:18:57
#include<iostream>
#include<cctype>
using namespace std;
int main(){
string s;
int alp[26]={};
cin>>s;
if(s.length()>20){
return 0;
}
for(char ch:s){
alp[ch-'A']++;
}
for(char ch:s){
if(alp[ch-'A']==1){
cout<<ch<<'\n';
break;
}
}
return 0;
}