text
stringlengths
49
983k
#include <bits/stdc++.h> int main() { char s[100]; int i, j, a = 0, n; scanf("%s", &s); n = strlen(s); for (i = 0; i < n - 1; i++) { for (j = i + 1; j < n; j++) { if (s[i] == s[j]) s[j] = 0; } } for (i = 0; i < n; i++) { if (s[i] == 0) { a++; } } n = n - a; if (n % 2 == 0) { printf("CHAT WITH HER!"); } else { printf("IGNORE HIM!"); } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; set<char> f(s.begin(), s.end()); if (f.size() % 2 == 0) cout << "CHAT WITH HER!\n"; else cout << "IGNORE HIM!\n"; return 0; }
#include <bits/stdc++.h> using namespace std; const long long MOD = 1e9 + 7; const long long INF = 1e18; const long long nx[4] = {0, 0, 1, -1}, ny[4] = {1, -1, 0, 0}; void IO() {} int32_t main() { IO(); string s; cin >> s; long long l = s.length(); set<char> w; w.insert(s[0]); long long n = 1; for (long long i = 1; i < l; i++) { if (!(w.count(s[i]))) { w.insert(s[i]); n++; } } if (n % 2 != 0) cout << "IGNORE HIM!" << "\n"; else cout << "CHAT WITH HER!" << "\n"; return 0; }
#include <bits/stdc++.h> using namespace std; int CountUniqueCharacters(string str) { int count = 0; for (int i = 0; i < str.length(); i++) { bool appears = false; for (int j = 0; j < i; j++) { if (str[j] == str[i]) { appears = true; break; } } if (!appears) { count++; } } return count; } int main() { int max1 = -1; float sum = 0; int arr[1005]; vector<int> ans; int n = 1000; string myStr; cin >> myStr; int numbC = CountUniqueCharacters(myStr); if (numbC % 2 == 0) { cout << "CHAT WITH HER!" << endl; } else { cout << "IGNORE HIM!" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; const int MOD = (int)1e9 + 7; const int MAXN = (int)1e6 + 1; int main() { ios::sync_with_stdio(false); cin.tie(0); cout.tie(0); string s; set<char> S; cin >> s; for (int i = 0; i < s.size(); i++) S.insert(s[i]); if (S.size() % 2) cout << "IGNORE HIM!"; else cout << "CHAT WITH HER!"; }
#include <bits/stdc++.h> using namespace std; int main() { char arr[10000], b; cin >> arr; int x, arr2[1000]; fill(arr2, arr2 + 1000, -1); x = strlen(arr); for (int w = 0; w < x; w++) { b = arr[w]; ++arr2[b]; } int m = 0; sort(arr2, arr2 + 1000); reverse(arr2, arr2 + 1000); for (int w = 0; w < 1000; w++) { if (arr2[w] > -1) ++m; } if (m % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int a = s.length(); for (int i = 0; i < s.length(); ++i) { for (int j = 0; j < s.length(); ++j) { if (i != j) { if (s[i] == s[j]) { a--; s[i] = '1'; } } } } if (a % 2 == 0) { cout << "CHAT WITH HER!"; } else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; bool count[26]; for (int i = 0; i <= 25; i++) count[i] = false; int check = 0; cin >> s; for (int i = 0; i < s.length(); i++) { count[s[i] - 97] = true; } for (int i = 0; i <= 25; i++) { if (count[i] == true) check++; } if (check % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; while (cin >> s) { int i = 0, j = 0, q = 1; while (s[i] != NULL) { int p = i; while ((p - 1) >= 0) { if (s[p - 1] == s[i]) { q = 0; break; } else q = 1; p--; } if (q == 1) j++; i++; } if (j % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; } return 0; }
#include <bits/stdc++.h> int main() { char a[101], nm; scanf("%s", a); int j, i; int count = 0; for (i = 0; i < strlen(a) - 1; i++) { for (j = i + 1; j < strlen(a); j++) { if (a[i] > a[j]) { nm = a[i]; a[i] = a[j]; a[j] = nm; } } } for (i = 0; i < strlen(a); i++) { if (a[i] != a[i + 1]) count++; } if (count % 2 == 0) { printf("CHAT WITH HER!"); } else { printf("IGNORE HIM!"); } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; sort(s.begin(), s.end()); int ans = 1; for (int i = 1; i < s.size(); i++) { if (s[i] != s[i - 1]) ans++; } if (ans % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; set<char> an; for (int i = 0; i < s.length(); i++) an.insert(s[i]); if (an.size() % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; sort(s.begin(), s.end()); int cnt = 0; for (int i = 0; i < s.size(); i++) { if (s[i] != s[i + 1]) { cnt++; } } if (cnt % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int n = 26; int counter[n]; for (int i = 0; i < n; i++) { counter[i] = 0; } char name[100]; for (int i = 0; i < 100; i++) { name[i] = 0; } cin.getline(name, 100); for (int i = 0; i < 100; i++) { if (name[i] - 97 >= 0) { counter[name[i] - 97]++; } } int count = 0; for (int i = 0; i < n; i++) { if (counter[i] > 0) { count++; } } if (count % 2 == 1) { printf("IGNORE HIM!"); } else { printf("CHAT WITH HER!"); } return 0; }
#include <bits/stdc++.h> using namespace std; string s; int main() { cin >> s; string newstring = ""; int possarr[123] = {0}; for (int i = 0; i < s.size(); i++) { if (possarr[s[i]] == 0) { possarr[s[i]] = 1; newstring += s[i]; } } int len = newstring.size(); if (len % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string username; cin >> username; int dchars = 0; set<char> chars; for (int i = 0; i < username.length(); i++) { if (chars.find(username[i]) == chars.end()) { dchars++; chars.insert(username[i]); } } if (dchars % 2 == 0) { cout << "CHAT WITH HER!"; } else { cout << "IGNORE HIM!"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int l, i, cnt = 0; char s[101]; scanf("%s", &s); l = strlen(s); sort(s, s + l); for (i = 0; i < l; i++) { if (s[i] != s[i + 1]) cnt++; } if (cnt % 2 == 1) printf("IGNORE HIM!\n"); else printf("CHAT WITH HER!\n"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string k; cin >> k; set<char> s; for (int i = 0; i < k.size(); i++) { s.insert(k[i]); } if (s.size() % 2 == 0) { cout << "CHAT WITH HER!\n"; } else if (s.size() % 2 != 0) { cout << "IGNORE HIM!\n"; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; int c = 0; cin >> s; int l = s.length(); sort(s.begin(), s.end()); for (int i = 0; i < l; i++) { if (s[i] == s[i + 1]) c++; } l = l - c; if (l % 2 == 0) printf("CHAT WITH HER!"); else printf("IGNORE HIM!"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; unordered_map<char, int> map; for (int i = 0; i < s.size(); i++) map[s[i]]++; if (map.size() % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; long long arr[100009], pr[100009]; unsigned long long n, m, a; int main() { std::ios_base::sync_with_stdio(NULL); cin.tie(NULL); cout.tie(NULL); string s; int x = 0, k = 0; cin >> s; int l = 0; sort(s.begin(), s.end()); for (int i = 0; i < s.size(); i++) { if (s[i] == s[i - 1]) { s.erase(i, 1); i--; } } x = s.length(); if (x % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; }
#include <bits/stdc++.h> using namespace std; int h[30]; char s[1005]; int main() { scanf("%s", s); int i = 0; while (s[i]) { h[s[i++] - 'a']++; } int n = 0; for (int i = 0; i < 26; i++) if (h[i]) n++; if (n % 2) printf("IGNORE HIM!"); else printf("CHAT WITH HER!"); return 0; }
#include <bits/stdc++.h> int main() { int atz[26] = {0}, i, cnt = 0; char str[100]; scanf("%s", str); for (i = 0; i < strlen(str); i++) atz[str[i] - 97]++; for (i = 0; i < 26; i++) if (atz[i] != 0) cnt++; if (cnt % 2 == 0) printf("CHAT WITH HER!"); else printf("IGNORE HIM!"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char s[100]; int d = 0; map<int, int> MAP; fflush(stdin); gets(s); for (int i = 0; i < strlen(s); i++) { if (MAP[s[i]] == 0) d++; MAP[s[i]]++; } if (d % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char s[110]; int tp[26]; while (1 == scanf("%s", s)) { memset(tp, -1, sizeof(tp)); int l = strlen(s); int c = 0; for (int i = 0; i < l; i++) { if (tp[s[i] - 97] == -1) { tp[s[i] - 97] = 1; c++; } } if (c % 2 == 1) printf("IGNORE HIM!\n"); else printf("CHAT WITH HER!\n"); } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { long long int a[26] = {}, cnt = 0; string s; cin >> s; for (int i = 0; i < s.length(); i++) { a[s[i] - 'a']++; } for (int i = 0; i < 26; i++) { if (a[i] > 0) cnt++; } if (cnt % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string ch, ch1 = ""; cin >> ch; for (int i = 0; i < ch.length(); i++) { if (ch1.find(ch[i]) == std::string::npos) ch1 = ch1 + ch[i]; } if (ch1.length() % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string a; cin >> a; int b[26], c = 0; for (int i = 0; i < 26; i++) { b[i] = 0; } for (int i = 0; i < a.size(); i++) { b[a[i] - 'a'] = 1; } for (int i = 0; i < 26; i++) { c += b[i]; } if (c % 2 == 0) { cout << "CHAT WITH HER!"; } else { cout << "IGNORE HIM!"; } }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int a[26] = {0}; for (int i = 0; i < s.length(); i++) { a[s[i] - 97]++; } int k = 0; for (int i = 0; i < 26; i++) { if (a[i] != 0) k++; } if (k % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); string name; cin >> name; int l[26] = {0}; int ans = 0; for (char c : name) { l[c - 'a']++; } for (int x = 0; x < 26; x++) { if (l[x] != 0) { ans++; } } if (ans % 2 == 0) { cout << "CHAT WITH HER!" << '\n'; } else { cout << "IGNORE HIM!" << '\n'; } return 0; }
#include <bits/stdc++.h> int main() { char c[100]; gets(c); int dem = strlen(c); int mark[100] = {0}; for (int i = 0; i < strlen(c); i++) { if (mark[i] == 0) { int cnt = 0; for (int j = i + 1; j < strlen(c); j++) { if (c[i] == c[j]) { mark[j] = 1; cnt++; } } dem -= cnt; } } if (dem % 2 == 0) printf("CHAT WITH HER!"); else printf("IGNORE HIM!"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(NULL); int i, l, p = 0; string s; cin >> s; l = (int)s.size(); sort(s.begin(), s.end()); for (i = 0; i < l - 1; i++) { if (s[i] == s[i + 1]) p++; } l -= p; if (l % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char a[100]; cin >> a; int n; n = strlen(a); for (int i = 0; i < n; i++) { for (int j = i + 1; j < n;) { if (a[j] == a[i]) { for (int k = j; k < strlen(a); k++) { a[k] = a[k + 1]; } n--; } else { j++; } } } if (strlen(a) % 2 == 0) { cout << "CHAT WITH HER!"; } else { cout << "IGNORE HIM!"; } }
#include <bits/stdc++.h> char distinct[105]; int main() { int len, i, k = 0; char name[101]; gets(name); len = strlen(name); for (i = 0; i < len; i++) { if (distinct[name[i]] == 0) { distinct[name[i]] = 1; k++; } } if (k % 2 == 0) printf("CHAT WITH HER!\n"); else printf("IGNORE HIM!\n"); return 0; }
#include <bits/stdc++.h> using namespace std; int le[26]; int main() { string a; cin >> a; int b = a.length(), count = 0; for (int i = 0; i < b; i++) { le[int(a[i] - 'a')]++; } for (int i = 0; i < 26; i++) { if (!le[i]) count++; } if (count % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int sum = 0; string s; cin >> s; for (int i = 0; i < s.size(); i++) { sort(s.begin(), s.end()); if (s[i] != s[i - 1]) { sum++; } } if (sum % 2 == 0) { cout << "CHAT WITH HER!" << endl; } else { cout << "IGNORE HIM!" << endl; } }
#include <bits/stdc++.h> using namespace std; string s; int a[50], cnt; int main() { cin >> s; for (int i = 0; i < s.size(); i++) { a[s[i] - 'a']++; } for (int i = 0; i < 50; i++) { if (a[i] != 0) { cnt++; } } if (cnt % 2 == 0) { cout << "CHAT WITH HER!"; } else { cout << "IGNORE HIM!"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(false); cin.tie(0); string s; cin >> s; set<char> cset(s.begin(), s.end()); if (cset.size() % 2 == 0) { cout << "CHAT WITH HER!"; } else { cout << "IGNORE HIM!"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; int i, j, l, k, low = 0; cin >> s; l = s.length(); for (i = 0; i < l; i++) { bool appears = false; for (int j = 0; j < i; j++) { if (s[j] == s[i]) { appears = true; break; } } if (!appears) { low++; } } if ((low % 2) != 0) { cout << "IGNORE HIM!" << endl; } else cout << "CHAT WITH HER!" << endl; }
#include <bits/stdc++.h> using namespace std; string str; bool a[300]; long long ans; int main() { cin >> str; for (int i = 0; i < str.size(); i++) { a[str[i]] = true; } for (int i = 'a'; i <= 'z'; i++) { if (a[i] == true) ans++; } if (ans % 2 == 1) cout << "IGNORE HIM!"; else cout << "CHAT WITH HER!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; set<char> v; cin >> s; int c1, c, n = s.size(); for (int i = 0; i < n; i++) { v.insert(s[i]); } int n1 = v.size(); if (n1 % 2 != 0) cout << "IGNORE HIM!"; else cout << "CHAT WITH HER!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int i; set<char> st; for (i = 0; i < s.size(); i++) { st.insert(s[i]); } if (st.size() % 2 == 0) { cout << "CHAT WITH HER!"; } else cout << "IGNORE HIM!"; return (0); }
#include <bits/stdc++.h> using namespace std; int main() { string name1; getline(cin, name1); string name2 = ""; int c = 0; for (int i = 0; i < name1.size(); i++) { if (name2.find(name1[i]) == name1.npos) { name2 += name1[i]; ++c; } } if (c % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string str; cin >> str; int count = 0; int n = str.size(); int temp[26] = {0}; for (int i = 0; i < n; i++) { temp[str[i] - 'a']++; } for (int i = 0; i < 26; i++) { if (temp[i] > 0) count++; } if (count % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; }
#include <bits/stdc++.h> int main() { int a, b, c, i, k, j; char ch[1000]; while (scanf("%s", ch) == 1) { k = 0; int ar[19000] = {0}; b = strlen(ch); for (i = 0; i <= b; i++) { a = ch[i] - '0'; ar[a] = 1; } for (i = 0; i <= 200; i++) { if (ar[i] == 1) { k++; } } if (k % 2 == 0) { printf("CHAT WITH HER!\n"); } else printf("IGNORE HIM!\n"); } return 0; }
#include <bits/stdc++.h> using namespace std; char c[100005]; int n, m; int main() { int i, j, a; n = 0; m = 0; cin >> c; n = strlen(c); for (i = 0; i < n; i++) { a = 0; for (j = 0; j < i; j++) { if (c[i] == c[j]) { a = 1; break; } } if (a == 0) m++; } if (m % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); string str; cin >> str; int n = str.length(); map<char, int> mp; for (int i = 0; i < n; i++) { mp[str[i]]++; } if (mp.size() % 2 == 1) cout << "IGNORE HIM!"; else cout << "CHAT WITH HER!"; cout << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string a, b, d; char p, y, n, m; int c = 0, z = 0, x = 0, i, j, w = 0; while (cin >> a) { for (i = 0; i < a.size(); i++) { for (j = i + 1; j < a.size(); j++) { if (a[i] > a[j]) { char t = a[i]; a[i] = a[j]; a[j] = t; } } } for (i = 0; i < a.size(); i = w) { z++; for (j = i + 1; (a[j] == a[i] && j < a.size()); j++) { w = j; } w++; } if (z % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; } }
#include <bits/stdc++.h> using namespace std; int main() { set<char> s; string r; cin >> r; for (int i = 0; i < r.size(); i++) { s.insert(r[i]); } int k = s.size(); if (k % 2 == 0) { cout << "CHAT WITH HER!"; } else { cout << "IGNORE HIM!"; } }
#include <bits/stdc++.h> using namespace std; int main() { string name; int len = 0, count = 0; cin >> name; len = name.length(); sort(name.begin(), name.end()); for (int i = 0; i < len; i++) { if (name[i] != name[i + 1]) count++; } if (count % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char a[101]; int cnt = 1; scanf("%s", &a); int x = strlen(a); sort(a, a + x); for (int i = 0; i < x - 1; i++) { if (a[i] != a[i + 1]) cnt++; } if (cnt % 2 == 0) printf("CHAT WITH HER!\n"); else printf("IGNORE HIM!\n"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string name; int count = 1; cin >> name; sort(name.begin(), name.end()); for (int i = 1; i < name.size(); i++) { if (name[i] > name[i - 1]) count++; } if (count % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s, ans; bool flag = true; cin >> s; ans += s[0]; for (int i = 1; i < s.size(); i++) { for (int j = 0; j < ans.size(); j++) { if (ans[j] == s[i]) { flag = false; break; } } if (flag) { ans += s[i]; } flag = true; } if (ans.size() % 2 != 0) { cout << "IGNORE HIM!"; } else { cout << "CHAT WITH HER!"; } return 0; }
#include <bits/stdc++.h> using namespace std; void solve() { string s; cin >> s; set<char> st(s.begin(), s.end()); cout << (st.size() & 1 ? "IGNORE HIM!" : "CHAT WITH HER!"); } int main() { ios::sync_with_stdio(0); cin.tie(0); long long int tests = 1; for (long long int test_case = 1; test_case <= tests; test_case++) { solve(); } cerr << "Execution Time : " << (float)clock() / CLOCKS_PER_SEC << " secs" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; set<int> p; cin >> s; for (int i = 0; s[i] != '\0'; i++) p.insert(s[i]); if (p.size() % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int count = s.size(); for (int i = 0; i < s.size(); i++) { for (int j = i + 1; j < s.size(); j++) { if (s[i] == s[j]) { count--; break; } } } if (count % 2 == 0) { cout << "CHAT WITH HER!" << endl; } else cout << "IGNORE HIM!" << endl; return 0; }
#include <bits/stdc++.h> int main() { char l[105]; scanf("%s", l); int n = strlen(l); bool f[256]; memset(f, false, sizeof(f)); int cnt = 0; for (int i = 0; i < n; i++) { char ac = l[i]; if (!f[ac]) { f[ac]++; cnt++; } } if (cnt % 2 == 0) { printf("CHAT WITH HER!"); } else { printf("IGNORE HIM!"); } return 0; }
#include <bits/stdc++.h> int count[30]; int main() { char s[105]; int counter, i; scanf("%s\n", s); for (i = 0; s[i]; i++) { count[s[i] - 97]++; } counter = 0; for (i = 0; i < 30; i++) { if (count[i]) counter++; } if (counter % 2) { printf("IGNORE HIM!\n"); } else { printf("CHAT WITH HER!\n"); } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { char ch[105]; int l, k, arr[28] = {0}; cin >> ch; l = strlen(ch); int i, count = 0; for (i = 0; i < l; i++) { arr[ch[i] - 'a']++; } for (i = 0; i < 27; i++) { if (arr[i] != 0) count++; } if (count % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; return 0; }
#include <bits/stdc++.h> int main() { int count = 0, temp = 0, check[26] = {0}; char str[100]; scanf("%s", &str); for (int i = 0; i < strlen(str); i++) { temp = str[i] - 97; check[temp]++; } for (int i = 0; i < 26; i++) { if (check[i] >= 1) count++; } if (count % 2 == 0) printf("CHAT WITH HER!\n"); else printf("IGNORE HIM!\n"); return 0; }
#include <bits/stdc++.h> using namespace std; int nodistinct(string s, string a) { int counter = 0; for (int i = 0; i < a.size(); i++) { for (int j = 0; j < s.size(); j++) { if (a[i] == s[j]) { counter++; break; } } } return counter; } int main() { string alpha = "abcdefghijklmnopqrstuvwxyz"; string s; cin >> s; if (nodistinct(s, alpha) % 2 != 0) { cout << "IGNORE HIM!"; } else cout << "CHAT WITH HER!"; }
#include <bits/stdc++.h> using namespace std; void FAST() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); } long long gcd(long long x, long long y) { if (x == 0) return y; return gcd(y % x, x); } long long powM(long long x, long long y, long long m) { long long ans = 1, r = 1; x %= m; while (r > 0 && r <= y) { if (r & y) { ans *= x; ans %= m; } r <<= 1; x *= x; x %= m; } return ans; } map<long long, long long> factorize(long long n) { map<long long, long long> ans; for (long long i = 2; i * i <= n; i++) { while (n % i == 0) { ans[i]++; n /= i; } } if (n > 1) { ans[n]++; n = 1; } return ans; } int main() { FAST(); char s[110]; int a[26] = {0}; int i, t, m, p = 25; cin >> s; for (i = 0; i < strlen(s); i++) { t = s[i] - 'a'; if (a[t] == 0) a[t] = 1; } for (i = 0; i < 26; i++) m = m + a[i]; if (m % 2 == 1) cout << "IGNORE HIM!"; else cout << "CHAT WITH HER!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main(int argc, char const *argv[]) { string str; cin >> str; int len = str.length(); int alpha[26]; for (int i = 0; i < len; ++i) { alpha[((int)str[i]) - 97] = 1; } int ans = 0; for (int i = 0; i < 26; ++i) { if (alpha[i] == 1) { ans++; } } if (ans % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int distinct = 0; for (int i = 0; i < s.length(); i++) { int count = 0; for (int j = i + 1; j <= s.length(); j++) { if (s[i] == s[j]) { count++; break; } else continue; } if (count == 0) distinct++; else continue; } if (distinct % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; long long int len = s.length(); vector<long long int> ans(26); for (long long int i = 0; i < len; i++) ans[s[i] - 97] = 1; long long int cnt = 0; for (long long int i = 0; i < 26; i++) { if (ans[i] == 1) cnt++; } if (cnt % 2 == 0) cout << "CHAT WITH HER!"; else if (cnt % 2 != 0) cout << "IGNORE HIM!"; }
#include <bits/stdc++.h> using namespace std; char s[105]; int vis[30]; int main() { while (cin >> s) { memset(vis, 0, sizeof(vis)); int ans = 0; int n = strlen(s); for (int i = 0; i < n; i++) { if (!vis[s[i] - 'a']) { vis[s[i] - 'a'] = 1; ans++; } } if (ans % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; getline(cin, s); sort(s.begin(), s.end()); int i = 0, j = 1, c = 1; while (j < s.length()) { if (s[i] == s[j]) { j++; } else { i = j; j++; c++; } } if (c % 2 == 0) { cout << "CHAT WITH HER!"; } else { cout << "IGNORE HIM!"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int count = 0; sort(s.begin(), s.end()); for (int i = 0; i < s.length(); i++) { if (s[i] != s[i + 1]) { count++; } } if (count % 2 == 0) { cout << "CHAT WITH HER!" << endl; } else { cout << "IGNORE HIM!" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; set<char> x(s.begin(), s.end()); if (x.size() % 2 == 0) cout << "CHAT WITH HER!\n"; else cout << "IGNORE HIM!\n"; }
#include <bits/stdc++.h> using namespace std; int main() { string t; getline(cin, t); int arr[26] = {0}; int c = 0, i; for (i = 0; i < t.size(); i++) { arr[t[i] - 'a']++; } for (i = 0; i < 26; i++) { if (arr[i] != 0) c = c + 1; } if (c % 2 != 0) cout << "IGNORE HIM!" << endl; else cout << "CHAT WITH HER!" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(false); cin.tie(nullptr); string s; cin >> s; bool chk[27]{false}; int cnt = 0; for (auto &c : s) { int index = c - 'a'; if (chk[index] == false) { chk[index] = true; cnt++; } } if (cnt % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int l, i, cnt = 1; char s[101]; scanf("%s", &s); l = strlen(s); sort(s, s + l); for (i = 0; i < l - 1; i++) { if (s[i] != s[i + 1]) cnt++; } if (cnt % 2 == 1) printf("IGNORE HIM!\n"); else printf("CHAT WITH HER!\n"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); cout.tie(0); string s; cin >> s; set<char> t; for (int i = 0; i < s.size(); i++) { t.insert(s[i]); } if (t.size() % 2 == 0) { cout << "CHAT WITH HER!"; } else { cout << "IGNORE HIM!"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; vector<char> c; int n = s.size(), i; for (i = 0; i < n; i++) { c.push_back(s[i]); } set<char> v(c.begin(), c.end()); int k = v.size(); if (k % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> int main() { char str[100], i; int l, j, f = 0, c = 0; gets(str); l = strlen(str); for (i = 'a'; i <= 'z'; i++) { f = 0; for (j = 0; j < l; j++) { if (i == str[j]) f++; } if (f != 0) { c++; } } if (c % 2 == 0) printf("CHAT WITH HER!\n"); else if (c % 2 != 0) printf("IGNORE HIM!\n"); }
#include <bits/stdc++.h> using namespace std; string s; set<char> ans; int main() { cin >> s; for (int i = 0; i < (int)s.size(); i++) { ans.insert(s[i]); } if ((int)ans.size() % 2 == 0) puts("CHAT WITH HER!"); else puts("IGNORE HIM!"); return 0; }
#include <bits/stdc++.h> int main() { int i, a[100], j, count = 0; char ch[300]; gets(ch); for (j = 0; j < 26; j++) a[j] = 0; for (i = 0; i < (strlen(ch)); i++) { a[ch[i] - 'a'] += 1; if (a[ch[i] - 'a'] == 1) { count++; } else continue; } if (count % 2 == 0) printf("CHAT WITH HER!"); else printf("IGNORE HIM!"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s1, s2; int count = 0; int same = 0; int i, j; getline(cin, s1); int n = s1.size(); for (i = 0; i < n; i++) { for (j = i + 1; j < n; j++) { if (s1[j] == s1[i]) { count += 1; } } if (count > 0) { same += 1; } count = 0; } int diff = n - same; if (diff % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> int main() { char array[102]; scanf("%s", array); int i = 0; int j = 0; int lenght = 0; while (array[lenght] != '\0') lenght++; int len = lenght; for (i = 0; i < lenght; i++) { for (j = i + 1; j < lenght; j++) { if (array[i] == array[j]) { len--; break; } } } if (len % 2 == 0) printf("CHAT WITH HER!\n"); else printf("IGNORE HIM!\n"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; set<int> s1; for (int i = 0; s[i] != '\0'; i++) { s1.insert(s[i]); } if (s1.size() % 2 == 0) { cout << "CHAT WITH HER!"; } else { cout << "IGNORE HIM!"; } }
#include <bits/stdc++.h> using namespace std; string un; int cntr = 1; int main() { cin >> un; sort(un.begin(), un.end()); for (int i = 1; i < un.length(); i++) { if (un[i] != un[i - 1]) cntr++; } if (cntr % 2 == 0) { cout << "CHAT WITH HER!\n"; } else { cout << "IGNORE HIM!\n"; } }
#include <bits/stdc++.h> using namespace std; string s; int a[26]; int main() { int count = 0; cin >> s; for (int i = 0; i < s.size(); i++) { a[s[i] - 'a']++; } for (int i = 0; i < 26; i++) { if (a[i] != 0) { count++; } } if (count % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int count = 0; string s; char x; cin >> s; int A[(int('z') + 1)] = {0}; for (int i = 0; i < s.length(); i++) A[int(s[i])]++; for (int i = int('a'); i <= int('z'); i++) if (A[i] > 0) count++; if (count % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; sort(s.begin(), s.end()); s.erase(unique(s.begin(), s.end()), s.end()); if (s.length() % 2 == 0) { cout << "CHAT WITH HER!" << endl; } else { cout << "IGNORE HIM!" << endl; } return 0; }
#include <bits/stdc++.h> int main() { char c[1000]; scanf("%s", c); int a[26] = {0}; for (int i = 0; i < strlen(c); i++) { a[c[i] - 'a'] = 1; } int cnt = 0; for (int i = 0; i < 26; i++) { if (a[i]) cnt++; } if (cnt % 2 == 0) { printf("CHAT WITH HER!"); } else printf("IGNORE HIM!"); return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios::sync_with_stdio(0); cin.tie(0); string s1; cin >> s1; int len = s1.length(); int i, j; int d = 0; for (i = 0; i < len; i++) { int count = 0; for (j = i + 1; j < len; j++) { if (s1[i] == s1[j]) count++; } if (count == 0) d++; } if (d % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; void sortString(string &str) { sort(str.begin(), str.end()); } int CountUniqueCharacters(string str) { int count = 0; for (int i = 0; i < str.length(); i++) { bool appears = false; for (int j = 0; j < i; j++) { if (str[j] == str[i]) { appears = true; break; } } if (!appears) { count++; } } return count; } int main() { string s; cin >> s; if (CountUniqueCharacters(s) % 2 == 0) { cout << "CHAT WITH HER!"; } else cout << "IGNORE HIM!"; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { ios_base::sync_with_stdio(0); cin.tie(0); cout.tie(0); string s; cin >> s; char alpha[26] = {0}; for (int i = 0; i < s.length(); i++) { alpha[s[i] - 'a']++; } int cnt = 0; for (int i = 0; i < 26; i++) { if (alpha[i] != 0) { cnt++; } } if (cnt % 2) { cout << "IGNORE HIM!" << "\n"; } else { cout << "CHAT WITH HER!" << "\n"; } }
#include <bits/stdc++.h> using namespace std; void solve(); int main() { int t; t = 1; while (t--) solve(); return 0; } void solve() { string s; cin >> s; set<char> occur(s.begin(), s.end()); int n = occur.size(); if (n & 1) cout << "IGNORE HIM!\n"; else cout << "CHAT WITH HER!\n"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; int p, r; set<char> st; cin >> s; for (int i = 0; i < s.length(); i++) { st.insert(s[i]); } p = st.size(); if (p % 2) { cout << "IGNORE HIM!"; } else { cout << "CHAT WITH HER!"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { int name[100], i, j = 0; string codename; cin >> codename; for (i = 0; i < codename.length(); i++) { name[j] = (int)codename[i]; j++; } sort(name, name + j); int count = 0; for (int k = 1; k < j; k++) { if (name[k] != name[k - 1]) { count++; } } if (count % 2 == 0) { cout << "IGNORE HIM!\n"; } else { cout << "CHAT WITH HER!\n"; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string str; getline(cin, str); bool flagrepeat = 0; int count = 0; for (int i = 0; i < str.length(); i++) { flagrepeat = 0; for (int j = 0; j < i; j++) { if (str[j] == str[i]) flagrepeat = 1; } if (flagrepeat != 1) count++; } if (count % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; }
#include <bits/stdc++.h> using namespace std; bool vis[26]; int main() { int cnt = 0; string str; cin >> str; int len = str.size(); for (int i = 0; i < len; i++) vis[str[i] - 'a'] = true; for (int i = 0; i < 26; i++) if (vis[i]) ++cnt; if (cnt % 2) cout << "IGNORE HIM!" << endl; else cout << "CHAT WITH HER!" << endl; return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; int k = s.length(), c = 0; for (int i = 0; i < k; i++) { for (int j = i + 1; j < k; j++) { if (s[i] == s[j]) { c++; break; } } } if ((k - c) % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; set<char> a; for (char x : s) a.insert(x); if (a.size() % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; }
#include <bits/stdc++.h> using namespace std; long long n, i, j, a[100500]; string s; int main() { cin >> s; for (i = 0; i <= s.size() - 1; i++) { a[s[i]]++; } for (i >= 'a'; i <= 'z'; i++) { if (a[i] > 0) j++; } if (j % 2 == 0) cout << "CHAT WITH HER!"; else cout << "IGNORE HIM!"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; cin >> s; unordered_set<char> us; for (int i = 0; i < s.size(); i++) us.insert(s[i]); if (us.size() % 2 == 1) cout << "IGNORE HIM!"; else cout << "CHAT WITH HER!"; }
#include <bits/stdc++.h> using namespace std; int main() { string s; int n, i, j, k; char key; while (cin >> s) { n = s.length(); for (i = 0; i < n - 1; i++) { key = s[i]; for (j = i + 1; j < n; j++) { if (key == s[j]) { for (k = j; k < n - 1; k++) { s[k] = s[k + 1]; } n--; j--; } } } if (n == 2) if (s[0] == s[1]) n = 1; if (n % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; } return 0; }
#include <bits/stdc++.h> using namespace std; int main() { string st; int count = 0; cin >> st; for (int i = 0; i < st.size(); i++) { bool appears = false; for (int j = 0; j < i; j++) { if (st[i] == st[j] && i != j) { appears = true; break; } } if (!appears) count++; } if (count % 2 == 0) cout << "CHAT WITH HER!" << endl; else cout << "IGNORE HIM!" << endl; return 0; }
#include <bits/stdc++.h> int main() { char nick[101]; int cont = 0; scanf("%s", nick); char *s; for (int i = 0; i < 26; ++i) { s = strchr(nick, i + 97); if (s != NULL) ++cont; } if (cont % 2 != 0) printf("%s\n", "IGNORE HIM!"); else printf("%s\n", "CHAT WITH HER!"); return 0; }