| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135827 | 李朋秦 | 只出现一次的字符 | C++ | Wrong Answer | 1 MS | 668 KB | 435 | 2025-11-08 15:07:16 |
#include<bits/stdc++.h> using namespace std; int main(){ char a[100000],c[26]={'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'}; cin>>a; int l=strlen(a),d=0,b[100000]={0}; for(int i=0;i<26;i++){ for(int j=i;j<l;j++){ if(c[i]==a[j]){ b[i]++; } } } for(int i=0;i<l;i++){ if(b[i]==1){ cout<<c[i]; return 0; } } cout<<"no"; return 0; }
------Input------
phqghumeay
------Answer-----
p
------Your output-----
a