概述
#define _CRT_SECURE_NO_WARNINGS
#include <iostream>
#include <cstdio>
#include <math.h>
#include <string>
#include <algorithm>
using namespace std;
bool vis[26];
int ans;
int already(char s) {
int cnt = s - 97;
int flag;
if (vis[cnt] == true) {
flag = 0;
}
else {
flag = 1;
vis[cnt] = true;
}
return flag;
}
int main() {
string s;
cin >> s;
int len = s.length();
for (int i = 0;i < len;++i) {
if (already(s[i])) {
ans++;
}
}
if (ans % 2 == 0) {
cout << "CHAT WITH HER!" << endl;
}
else {
cout << "IGNORE HIM!" << endl;
}
return 0;
}
最后
以上就是甜蜜网络为你收集整理的Codeforces 236A Boy or Girl的全部内容,希望文章能够帮你解决Codeforces 236A Boy or Girl所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复