mhdew

CF_236A

Feb 12th, 2018
187
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2.  
  3. using namespace std;
  4.  
  5. int main()
  6. {
  7. freopen("In.txt", "w", stdin);
  8. freopen("Out.txt", "r", stdout);
  9.  
  10. char a[1000];
  11. int cunt=1;
  12.  
  13. gets(a);
  14. int len=strlen(a);
  15.  
  16. sort(a,a+len);
  17.  
  18. for(int i=0;i<len-1;i++){
  19. if(a[i]!=a[i+1]){
  20. cunt++;
  21. }
  22. }
  23. if(cunt%2==0)
  24. printf("CHAT WITH HER!\n");
  25. else
  26. printf("IGNORE HIM!\n");
  27.  
  28. return 0;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment