CF236A.Boy or Girl

入门

通过率:0%

时间限制:1.00s

内存限制:256MB

AC君温馨提醒

该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。

题目描述

Those days, many boys use beautiful girls' photos as avatars in forums. So it is pretty hard to tell the gender of a user at the first glance. Last year, our hero went to a forum and had a nice chat with a beauty (he thought so). After that they talked very often and eventually they became a couple in the network.

But yesterday, he came to see "her" in the real world and found out "she" is actually a very strong man! Our hero is very sad and he is too tired to love again now. So he came up with a way to recognize users' genders by their user names.

This is his method: if the number of distinct characters in one's user name is odd, then he is a male, otherwise she is a female. You are given the string that denotes the user name, please help our hero to determine the gender of this user by his method.

那些日子里,许多男生在论坛中使用美女的照片作为头像。因此,仅凭第一眼很难判断用户的性别。去年,我们的主角来到一个论坛,并与一位美女(他自以为如此)进行了愉快的聊天。此后,他们频繁交流,最终在网络上成为了一对情侣。

但昨天,他来到现实世界中与“她”见面,却发现“她”实际上是一位非常强壮的男士!我们的主角十分伤心,如今已疲惫不堪,再也不想谈恋爱了。于是,他想出了一种通过用户名来识别用户性别的方法。

他的方法如下:如果某人的用户名中不同字符的个数为奇数,则该用户为男性;否则为女性。现给你一个表示用户名的字符串,请根据他的方法帮助主角判断该用户的性别。

输入格式

The first line contains a non-empty string, that contains only lowercase English letters — the user name. This string contains at most 100 letters.

第一行包含一个非空字符串,该字符串仅由小写英文字母组成——即用户名。该字符串最多包含 100 个字母。

输出格式

If it is a female by our hero's method, print "CHAT WITH HER!" (without the quotes), otherwise, print "IGNORE HIM!" (without the quotes).

如果按照我们主角的方法判断为女性,则输出 "CHAT WITH HER!"(不带引号),否则输出 "IGNORE HIM!"(不带引号)。

输入输出样例

  • 输入#1

    wjmzbmr

    输出#1

    CHAT WITH HER!
  • 输入#2

    xiaodao

    输出#2

    IGNORE HIM!
  • 输入#3

    sevenkplus

    输出#3

    CHAT WITH HER!

说明/提示

For the first example. There are 6 distinct characters in "wjmzbmr". These characters are: "w", "j", "m", "z", "b", "r". So wjmzbmr is a female and you should print "CHAT WITH HER!".

对于第一个例子,“wjmzbmr”中有 6 个不同的字符,这些字符是:“w”、“j”、“m”、“z”、“b”、“r”。因此,“wjmzbmr”是一个女生,你应该输出“CHAT WITH HER!”。

输入解题思路,AI测评打分。不知道怎么写?

首页