• Source
    1. #include<stdio.h>
    2. #include<string.h>
    3. #include<stdlib.h>
    4.  
    5. int main()
    6. {
    7. char str[100]={'0'};
    8. int i,j,len,tmp=0,check=0;
    9. int ck[26]={0};
    10.  
    11. while(scanf("%s",&str)==1){
    12. tmp=0;
    13. len=strlen(str);
    14. check=0;
    15.  
    16. for(i=0;i<len;i++){
    17. tmp=str[i]-97;
    18. ck[tmp]++;
    19. }
    20. for(j=0;j<26;j++){
    21. if(ck[j]>=1){
    22. check++;
    23. //break;
    24. }
    25. // printf("%d ",ck[j]);
    26. }
    27.  
    28. if(check%2==0){
    29. printf("CHAT WITH HER!\n");
    30. }
    31. else{
    32. printf("IGNORE HIM!\n");
    33. }
    34. memset(str,'0',sizeof str);
    35. memset(ck,0,sizeof ck);
    36.  
    37. }
    38.  
    39.  
    40. return 0;
    41. }