| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 152556 | 黄俊然 | 只出现一次的字符 | C++ | Accepted | 6 MS | 532 KB | 498 | 2026-04-26 15:33:24 |
#include<iostream> // cin\cout\endl #include<cstdio> //scanf()\printf() #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() #include<cmath> //sqrt()\pow()\abs()\ceil()\floor()\max()\min() using namespace std; int main(){ string a; int s[10001]={0}; cin>>a; for(int i=0;i<a.length();i++){ s[a[i]]++; } for(int i=0;i<a.length();i++){ if(s[a[i]]==1){ cout<<a[i]; return 0; } } cout<<"no"; return 0; }