| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69226 | 冯纪尧 | 只出现一次的字符 | C++ | Accepted | 4 MS | 492 KB | 297 | 2024-03-31 10:56:25 |
#include <bits/stdc++.h> using namespace std; int main (){ int a[125]={0}; string b; cin>>b; int c=b.size(); for(int i=0;i<c;i++){ a[b[i]]++; } for(int i=0;i<c;i++){ if(a[b[i]]==1){ cout<<b[i]; return 0; } } cout<<"no"; return 0; }