Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
151200 翁思宸 只出现一次的字符 C++ Time Limit Exceeded 1000 MS 488 KB 472 2026-04-10 19:13:08

Tests(2/10):


Code:

//1468 只出现一次的字符 #include<iostream> #include<cstdio> #include<cstring> #include<cmath> using namespace std; int main(){ string n; int a,s,h; cin>>n; h=n.size(); for(int i=0;i<h;i++){ a=0; for(int j=0;j<h;j++){ if(n[i]==n[j]){ a++; } } if(a==1){ cout<<n[i]; return 0; } } cout<<"no"; return 0; }