Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
161598 杜禹轩 只出现一次的字符 C++ Accepted 9 MS 492 KB 348 2026-10-06 11:37:50

Tests(10/10):


Code:

#include <bits/stdc++.h> using namespace std; int main() { string a; getline(cin,a); long long l=a.size(); for(int i=0; i<l; i++) { int n=0; for(int j=0; j<l; j++) { if(a[i]==a[j]) { n++; if(n>1) { break; } } } if(n==1) { cout<<a[i]; return 0; } } cout<<"no"; return 0; }