Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: 666whynot
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-03 20:29:12
#include <bits/stdc++.h>
using namespace std;
int main(){
ios::sync_with_stdio(false);cin.tie(nullptr);
string s;cin >> s;
int cnt[1001] = {};
for(char c:s){
cnt[c]++;
}
sort(s.begin(),s.end());
for(char c:s){
if(cnt[c] == 1){cout << c;return 0;}
}
}