Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
96370 | Kevin | 只出现一次的字符 | C++ | Time Limit Exceeded | 1000 MS | 368 KB | 316 | 2024-11-07 15:23:06 |
#include <bits/stdc++.h> using namespace std; int main() { char a[100005]; cin>>a; int len=strlen(a); for(int i=0;i<len;i++){ int k=0; for(int j=0;j<len;j++){ if(a[i]==a[j]) k++; } if(k==1) { cout<<a[i]; exit(0); } } cout<<"no"; return 0; }