Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: mister_o_hater_no1
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-06 23:12:05
#include <bits/stdc++.h>
using namespace std;
int main() {
string word;cin>> word;
int alpha[26]= {0};
for(int i= 0; i< word.length(); ++i) {
word[i]== toupper(word[i]);
alpha[word[i]- 65]++;
}
for(int i= 0; i< 26; ++i) {
if(alpha[i]== 1) {
cout<< (char)(i+ 65);
break;
}
}
return 0;
}