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