Submission
Status:
PP------P-
Subtask/Task Score:
30/100
Score: 30
User: Chayatoeyy
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-06 13:51:37
#include<bits/stdc++.h>
using namespace std;
int main()
{
ios_base::sync_with_stdio(false);
cin.tie(0);
string s;
cin>>s;
char ans;
for(auto st:s){
ans=st;
int cnt=0;
for(auto check:s){
if(check==ans){
cnt++;
}
}
if(cnt==1){
cout << ans;
break;
}
}
}