| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 69222 | 彭林江 | 只出现一次的字符 | C++ | Accepted | 4 MS | 492 KB | 292 | 2024-03-31 10:55:00 |
#include<bits/stdc++.h> using namespace std; int main(){ string s; cin >>s; int t[125] = {0}, n = s.size(); for(int i = 0; i < n; i++){ t[s[i]]++; } for(int i = 0; i < n; i++){ if(t[s[i]] == 1){ cout << s[i]; return 0; } } cout << "no"; return 0; }