Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: pitt
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.003 second
Submitted On: 2026-10-12 12:50:30
#include<bits/stdc++.h>
using namespace std;
int main(){
ios_base::sync_with_stdio(false);
cin.tie(0);
string w;
cin >> w;
set<char> wo;
for(int i = 0; i < w.size();i++){
if(count(w.begin(),w.end(),w[i]) == 1){
wo.insert(w[i]);
}
}
cout << *wo.begin();
}