| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 61935 | 戴文博 | 只出现一次的字符 | C++ | Accepted | 4 MS | 488 KB | 266 | 2023-12-16 14:19:14 |
#include<bits/stdc++.h> using namespace std; int t[128]; int main(){ string n; cin>>n; int len=n.size(); for(int i=0;i<len;i++){ t[n[i]]++; } for(int i=0;i<len;i++){ if(t[n[i]]==1){ cout<<n[i]; return 0; } } cout<<"no"; return 0; }