Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
119677 | 李昊宇 | 只出现一次的字符 | C++ | Time Limit Exceeded | 1000 MS | 488 KB | 310 | 2025-05-18 14:19:15 |
#include<bits/stdc++.h> using namespace std; string a; int main(){ cin>>a; int len=a.size(); for(int i=0;i<len;i++){ int sum=0; for(int j=0;j<len;j++){ if(a[i]==a[j]){ sum++; } } if(sum==1){ cout<<a[i]<<endl; return 0; } } cout<<"no"<<endl; return 0; }