Run ID:135687
提交时间:2025-11-08 11:26:20
#include<bits/stdc++.h> using namespace std; int m[159]; int main(){ string s; cin>>s; for(int i=0;i<s.length();i++){ m[s[i]]++; } int sb=2e9; for(int i=97;i<=122;i++){ if(m[i]==1){ if(sb>s.find(char(i))){ sb=s.find(char(i)); } } } if(sb==2e9){ cout<<"no"; }else{ cout<<s[sb]; } return 0; }