Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: 38408
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.002 second
Submitted On: 2026-10-06 13:19:29
#include <bits/stdc++.h>
using namespace std;
int main(){
string word;
cin >> word;
int count[26] = {};
for(int i = 0; i < word.size(); i++)
{
count[word[i] - 'A']++;
}
for(int i = 0; i < 26; i++)
{
if(count[i] == 1)
{
cout << char(i + 'A');
break;
}
}
return 0;
}