236A - Boy or Girl


  1. 236A - Boy or Girl

  2. #include<bits/stdc++.h>
  3. using namespace std;
  4. int main(){
  5. int c=0;
  6. string s;
  7. cin>>s;
  8. sort(s.begin(),s.end());
  9. for(int i=0;i<s.length();i++){
  10. if(s[i-1]!=s[i])
  11. c++;
  12.  
  13. }
  14. if(c%2==0)
  15. cout<<"CHAT WITH HER!";
  16. else cout<<"IGNORE HIM!";
  17.  
  18. }

Comments

Popular posts from this blog

Codeforce Problem 1703A. YES or YES?

Aptitude test assistant programmer 2018

1041A. Heist solution