0
0
已采纳
定义输入string s;int b[130];
for 1~n
b[s[i]]++;
for(int i=0;i<s.size();i++) {
if(b[s[i]]==1) {
cout<<s[i];
return 0;
}
}
输出NO
AC。。。水
0
0
0
0
0