_weishiqi66_ @ 2022-11-30 14:37:43
#include<bits/stdc++.h>
#define ll long long
using namespace std;
string x;
int zmb[27];
int main(){
cin>>x;
for(int i=0;i<x.size();i++){
zmb[x[i]-'a'+1]++;
}
int ans=30;
for(int i=1;i<=26;i++){
if(zmb[i]==1){
ans=min(ans,i);
}
}
if(ans==30) cout<<"no";
else
cout<<char(ans-1+'a');
return 0;
}
by qwerasdasd1 @ 2022-11-30 15:25:03
看题,找到第一个仅出现一次的字符