- #include <bits/stdc++.h>
- using namespace std;
- string str;
- int main()
- {
- while(cin>>str)
- {
- int sum[26]= {0};
- for(int i=0; i<str.length(); i++)
- {
- char c=str[i];
- if(c>='A' && c<='Z')
- {
- c+=32;
- str[i]=c;
- }
- }
- for(int i=0; i<str.length(); i++)
- {
- char c=str[i];
- if(c>='a' && c<='z')
- {
- sum[c-'a']++;
- }
- }
- int cnt=0;
- for(int i=0; i<26; i++)
- {
- if(sum[i]%2!=0)
- cnt++;
- }
- if(cnt>1)
- cout<<"no..."<<endl;
- else
- cout<<"yes !"<<endl;
- }
- return 0;
- }
複製代碼 |