Advertisement
Guest User

Untitled

a guest
Apr 5th, 2020
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.63 KB | None | 0 0
  1. #include<bits/stdc++.h>
  2. using namespace std;
  3.  
  4. main()
  5. {
  6.     string input_STRING;
  7.     int ascii_value[5], count_test[25], count=0;
  8.  
  9.     cin>>input_STRING;
  10.  
  11.     for(int i=0; i<26; i++)
  12.     {
  13.         count_test[i]=i;
  14.     }
  15.  
  16.     for(int i=1; i<input_STRING.size(); i++)
  17.     {
  18.         ascii_value[i]=input_STRING[i]-96;  
  19.         count_test[ascii_value[i]]=0;  
  20.     }
  21.  
  22.     for(int i=0; i<input_STRING.size(); i++)
  23.     {
  24.         if(count_test[ascii_value[i]]=0)
  25.         {
  26.             count++;
  27.         }
  28.     }
  29.  
  30.     if(count%2==0)
  31.     {
  32.         cout<<"CHAT WITH HER!";
  33.     }
  34.     else
  35.         cout<<"IGNORE HIM!";
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement