Submission
Status:
PP------P-
Subtask/Task Score:
30/100
Score: 30
User: Mano
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.004 second
Submitted On: 2025-10-03 11:57:53
#include<iostream>
#include<string>
using namespace std;
int main(){
string s;
int z=30;
bool b=true;
cin>>s;
if(s.length()>20){
cout<<"ERROR";
return 0;
}
for(int i=0;i<s.length()-1;i++){
b=true;
for(int j=0;j<s.length();j++){
if(j==i){
}
else if(s[i]==s[j]){
b=false;
break;
}
}
if(b==true){
z=i;
break;
}
}
if(z!=30){
cout<<s[z];
}
else if(z==30){
cout<<"None";
}
return 0;
}