Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
113060 | 刘佳宇 | 只出现一次的字符 | C++ | Accepted | 7 MS | 488 KB | 365 | 2025-03-15 11:30:04 |
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin>>s; int cnt=0; int len=s.size(); for(int i=0;i<len;i++){ cnt=1; for(int j=1;j<=len;j++){ if(i!=j&&s[i]==s[j]){ cnt++; break; } } if(cnt==1){ cout<<s[i]<<endl; return 0; } } cout<<"no"<<endl; return 0; }