Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: code
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.002 second
Submitted On: 2025-11-09 14:16:37
#include <bits/stdc++.h>
using namespace std;
int main(){
string word;cin>>word;
string chr[26]={"A","B","C","D","E","F","G","H","I","J","K","L","M","N","O","P","Q","R","S","T","U","V","W","X","Y","Z"};
int n=0;
for (int i=0;i<26;i++){
n=word.find(chr[i]);
if (n>=0){
if (word.find(chr[i],n+1)==-1){
cout<<chr[i];
break;
}else{
continue;
}
}
}
}