| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160258 | 赵奕杰 | 只出现一次的字符 | C++ | Accepted | 8 MS | 484 KB | 340 | 2026-09-13 15:15:32 |
#include<bits/stdc++.h> using namespace std; string a; char b; int cnt=0; int main(){ cin>>a; int len=a.size(); for(int i=0;i<len;i++){ b=a[i]; cnt=0; for(int j=0;j<len;j++){ if(b==a[j]){ cnt++; if(cnt>1) break; } } if(cnt==1){ cout<<b; return 0; } } cout<<"no"; return 0; }