Submission
Status:
P----PPP--
Subtask/Task Score:
40/100
Score: 40
User: boygunner
Problemset: ตัวอักษรตัวแรกในคำ
Language: cpp
Time: 0.004 second
Submitted On: 2026-10-07 11:29:21
#include<iostream>
#include<algorithm>
using namespace std;
int main(){
string st;
bool same;
int i;
cin>>st;
sort(st.begin(),st.end());
// cout<<st<<endl;
for(i=0;i<=st.length();i++){
same=false;
for(int j=i+1;j<=st.length();j++)
if(st[i]==st[j]){
same=true;
st[j]=' ';
break;
}
if(same==false){
cout<<st[i];
break;
}
}
}