| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 72791 | 冯诚阳 | 只出现一次的字符 | C++ | Time Limit Exceeded | 1000 MS | 488 KB | 369 | 2024-05-12 18:17:09 |
# 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=1; for(int j=0;j<a_len;j++){ if(a[i]==a[j]){ s++; } } if(s==2){ cout<<a[i]; return 0; } } cout<<"no"; return 0; }