| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 129760 | Kevin | 只出现一次的字符 | C++ | Runtime Error | 2 MS | 272 KB | 296 | 2025-09-05 20:09:22 |
#include<bits/stdc++.h> using namespace std; char a[10005]; int main() { cin>>a; int len=strlen(a); for(int i=0;i<len;i++){ int s=0; for(int j=0;j<len;j++){ if(a[i]==a[j]){ s++; } } if(s==1){ cout<<a[i]; return 0; } } cout<<"no"; return 0; }
Runtime Error:Segmentation fault