| Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
|---|---|---|---|---|---|---|---|---|
| 135687 | 李俊博 | 只出现一次的字符 | C++ | Accepted | 7 MS | 496 KB | 361 | 2025-11-08 11:26:20 |
#include<bits/stdc++.h> using namespace std; int m[159]; int main(){ string s; cin>>s; for(int i=0;i<s.length();i++){ m[s[i]]++; } int sb=2e9; for(int i=97;i<=122;i++){ if(m[i]==1){ if(sb>s.find(char(i))){ sb=s.find(char(i)); } } } if(sb==2e9){ cout<<"no"; }else{ cout<<s[sb]; } return 0; }