Submission
Status:
PPPPPPPPPP
Subtask/Task Score:
100/100
Score: 100
User: kf._.exe
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-20 20:09:06
#include<bits/stdc++.h>
using namespace std;
#define fastio ios::sync_with_stdio(false); cin.tie(0); cout.tie(0);
#define dbg(x) cout << #x << " = " << x << '\n';
#define int long long
#define dd double
#define ld long double
int f[256];
void solve(){
string s;cin >> s;
for(auto &x:s) ++f[(int)x];
cout << (char)(find(begin(f),end(f),1)- begin(f))<< '\n';
}
int32_t main(){
fastio;
int T = 1;
//cin >> T
while(T--) solve();
return 0;
}