tj
2024-10-12 21:09:14
发布于:上海
0阅读
0回复
0点赞
#include<bits/stdc++.h>
using namespace std;
int main()
{
string a;
cin>>a;
vector<int> b = {0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0};
for(int i = 0;i<a.size();i++)
{
b[a[i]-'a']++;
}
for(int i = 0;i<26;i++)
{
if(b[i]==1)
{
cout<<char('a'+i);
return 0;
}
}
cout<<"no";
}
这里空空如也
有帮助,赞一个