Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: vachirasawin
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.002 second
Submitted On: 2026-03-13 15:51:45
// grader-chan
// c1_bkk66_5.cpp | c1_bkk66_5
#include <bits/stdc++.h>
using namespace std;
int main() {
ios_base::sync_with_stdio(false);
cin.tie(NULL);
cout.tie(NULL);
string word;
cin >> word;
map<char, int> alphabet;
for (char &c : word) {
alphabet[c]++;
}
for (auto &c : alphabet) {
if (c.second == 1) {
cout << c.first;
break;
}
}
return 0;
}