| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 74692 | 孙诗皓 | 只出现一次的字符 | C++ | Time Limit Exceeded | 1000 MS | 360 KB | 466 | 2024-05-25 17:28:28 |
#include <iostream> #include <cmath> #include <cstring> using namespace std; char a[100000]; int main() { cin>>a; int len=strlen(a),n=0; for(int i=0;i<len;i++) { for(int j=0;j<len;j++) { if(a[i]==a[j]) n+=1; } if(n==1) { cout<<a[i]; return 0; } else n=0; } cout<<"no"; return 0; }