| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 159279 | 李沐阳 | 只出现一次的字符 | C++ | Wrong Answer | 0 MS | 276 KB | 290 | 2026-08-27 14:27:57 |
#include<bits/stdc++.h> using namespace std; int main(){ string s; getline(cin,s); int a=s.size(),t[26]={0}; for(int i=0;i<a;i++){ t[s[i]-'a']++; } for(int i=0;i<26;i++){ if(t[i]==1){ cout<<char(i+'a')<<endl; return 0; } } cout<<"no"<<endl; return 0; }
------Input------
phqghumeay
------Answer-----
p
------Your output-----
a