-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path236A.cpp
More file actions
32 lines (27 loc) · 735 Bytes
/
236A.cpp
File metadata and controls
32 lines (27 loc) · 735 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//142168434 Jan/10/2022 16:31UTC+5.5 hahaharshilpp A - Boy or Girl GNU C++20 (64) Accepted 30 ms 0 KB
//https://codeforces.com/contest/236/problem/A
#include <bits/stdc++.h>
using namespace std;
int main(){
string element; cin >> element;
int size;int duplicate = 0;
vector<char> v;
vector<char> w;
for(int i = 0; i < element.size(); i++){
v.push_back(element[i]);
}
for(int i = 0; i < element.size(); i++){
if(count(w.begin(), w.end(), v[i])){
duplicate++;
}else{
w.push_back(v[i]);
}
}
size = element.size() - duplicate;
if(size%2 == 0){
cout << "CHAT WITH HER!" << endl;
}else{
cout << "IGNORE HIM!" << endl;
}
return 0;
}