Submission
Status:
PP--------
Subtask/Task Score:
20/100
Score: 20
User: ackub
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.003 second
Submitted On: 2026-10-10 11:43:52
#include<bits/stdc++.h>
using namespace std;
int main(){
string s;
cin>>s;
for (int i=0;i<s.length();i++){
bool check=true;
for (int j=i+1;j<s.length();j++){
if (s[i]==s[j]){check=false;}
}if (check){cout<<s[i];break;}
}
}