Advertisement
ShafiulAzim

codeforces 236A

Jan 31st, 2020
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3. int main()
  4. {
  5. string str;
  6. char st[26]= {'a','b','c','d','e','f','g','h','i','j','k','l','m','n','o','p','q','r','s','t','u','v','w','x','y','z'};
  7. int i,j,s=0;
  8. char ch='1';
  9. vector<int>v;
  10. cin>>str;
  11. s=str.length();
  12. for(i=0; i<str.length(); i++)
  13. {
  14. for(j=0; j<26; j++)
  15. {
  16. if(str[i]==st[j])
  17. st[j]='1';
  18. }
  19. }
  20. for(i=0; i<26; i++)
  21. {
  22. if(st[i]== ch)
  23. v.push_back(1);
  24. }
  25. s=v.size();
  26. if(s%2==0)
  27. cout<<"CHAT WITH HER!"<<endl;
  28. else
  29. cout<<"IGNORE HIM!"<<endl;
  30. return 0;
  31.  
  32. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement