We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf93b41 commit fd76428Copy full SHA for fd76428
236A.cpp
@@ -0,0 +1,25 @@
1
+#include<iostream>
2
+#include<string>
3
+#include<algorithm>
4
+using namespace std;
5
+
6
+int main(){
7
+ string s;
8
+ cin>>s;
9
+ int count = 1;
10
+ sort(s.begin(), s.end());
11
+ char elem = s[0];
12
+ for(int i = 0; i < s.size(); i++){
13
+ if(s[i] != elem){
14
+ elem = s[i];
15
+ count++;
16
+ }
17
18
+ if(count % 2 == 0){
19
+ cout<<"CHAT WITH HER!";
20
21
+ else{
22
+ cout<<"IGNORE HIM!";
23
24
+ return 0;
25
+}
0 commit comments