Submission
Status:
PP--------
Subtask/Task Score:
20/100
Score: 20
User: PROb221
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.002 second
Submitted On: 2025-10-09 19:34:08
//c1_bkk66_5
#include <iostream>
#include <string>
using namespace std;
int main() {
bool pass;
string str;
cin >> str;
int i,j,len=str.length();
for(i=0;i<len;i++) {
pass=true;//1 means true, 0 means false
for(j=i+1;j<len;j++) {
if(str[i]==str[j]) {
pass=false;break;
}
}
if(pass==true){cout<<str[i];break;}
}
return 0;
}