Run ID:69222

提交时间:2024-03-31 10:55:00

#include<bits/stdc++.h> using namespace std; int main(){ string s; cin >>s; int t[125] = {0}, n = s.size(); for(int i = 0; i < n; i++){ t[s[i]]++; } for(int i = 0; i < n; i++){ if(t[s[i]] == 1){ cout << s[i]; return 0; } } cout << "no"; return 0; }