Skip to content

Commit fd76428

Browse files
committed
Boy or Girl
1 parent cf93b41 commit fd76428

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

236A.cpp

+25
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)