Run ID 作者 问题 语言 测评结果 Time Memory 代码长度 提交时间
93527 万隽宇 只出现一次的字符 C++ Time Limit Exceeded 1000 MS 484 KB 498 2024-10-17 18:23:30

Tests(2/10):


Code:

#include<iostream> // cin\cout\endl #include<cstring> // strcpy()\strcat()\strcmp()\strlen()\memset() using namespace std; string a; string b; int main(){ int b=0; getline(cin,a); int len=a.length(); for(int i=0;i<len;i++){ for(int j=0;j<len;j++){ if(a[i]==a[j]){ b++; } } if(b==1){ cout<<a[i]; return 0; } b=0; } cout<<"no"; return 0; }