| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 160257 | 赵奕杰 | 只出现一次的字符 | C++ | Wrong Answer | 1 MS | 272 KB | 340 | 2026-09-13 15:15:12 |
#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=1;j<len;j++){ if(b==a[j]){ cnt++; if(cnt>1) break; } } if(cnt==1){ cout<<b; return 0; } } cout<<"no"; return 0; }
------Input------
phqghumeay
------Answer-----
p
------Your output-----
q