Run ID | 作者 | 问题 | 语言 | 测评结果 | Time | Memory | 代码长度 | 提交时间 |
---|---|---|---|---|---|---|---|---|
113056 | 王煜鑫 | 只出现一次的字符 | C++ | Time Limit Exceeded | 1000 MS | 484 KB | 350 | 2025-03-15 11:28:46 |
#include <bits/stdc++.h> using namespace std; string a; int main() { getline(cin,a); int lin,cnt; lin=a.size(); for(int i=0;i<lin;i++){ cnt=1; for(int j=0;j<lin;j++){ if(i!=j&&a[i]==a[j]){ cnt++; } } if(cnt==1){ cout<<a[i]<<endl; return 0; } } cout<<"no"<<endl; return 0; }