| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72794 | 冯诚阳 | 只出现一次的字符 | C++ | Time Limit Exceeded | 1000 MS | 488 KB | 344 | 2024-05-12 18:20:26 |
# include<iostream> # include<cstring> using namespace std; int main(){ string a,b; int a_len,b_len,s=0; cin>>a; a_len=a.size(); for(int i=0;i<a_len;i++){ s=0; for(int j=0;j<a_len;j++){ if(a[i]==a[j]) s++; } if(s==1){ cout<<a[i]; return 0; } } cout<<"no"; return 0; }