70分,求助,在线等,急!!!!!!
查看原帖
70分,求助,在线等,急!!!!!!
666289
billifs楼主2022/6/17 18:51
#include<bits/stdc++.h>
using namespace std;
int main(){
    string str; int n;
    getline(cin,str);
    int len1=str.size();
    for(int i=0;i<len1;i++){
      n=0;
    for(int j=0;j<len1;j++){
	  if(str[i]==str[j]&&i!=j) n=1; 
	  }
	   if(n!=1){cout<<str[i];return 0;} 
	}
cout<<"no";
return 0;			
}
2022/6/17 18:51
加载中...