Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
113070 殷佳雨萱 只出现一次的字符 C++ Accepted 6 MS 492 KB 327 2025-03-15 11:34:28

Tests(10/10):


Code:

#include<bits/stdc++.h> using namespace std; string s; int main(){ cin>>s; int a; int len=s.size(); for(int i=0;i<len;i++){ a=1; for(int j=0;j<len;j++){ if(i!=j &&s[i]==s[j]){ a++; break; } } if(a==1){ cout<<s[i]<<endl; return 0; } } cout<<"no"<<endl; }