1 solutions

  • 0
    @ 2024-11-29 20:04:42

    #include<bits/stdc++.h> using namespace std; int main() { string s; int i,cnt=0,m,sum=0,t; cin>>s; for(i=0;i<s.length();i++){ cnt=0; for(t=0;t<s.length();t++){ if(s[t]s[i]){ cnt++; m=t; } if(cnt2){ sum++; break; } } if(cnt1){ break; } } if(sums.length()){ cout<<"no"; }else{ cout<<s[m]; } return 0; }

    • 1

    Information

    ID
    6787
    Time
    1000ms
    Memory
    128MiB
    Difficulty
    8
    Tags
    (None)
    # Submissions
    129
    Accepted
    24
    Uploaded By