CF420A.Start Up
入门
通过率:0%
时间限制:1.00s
内存限制:256MB
AC君温馨提醒
该题目为【codeforces】题库的题目,您提交的代码将被提交至codeforces进行远程评测,并由ACGO抓取测评结果后进行展示。由于远程测评的测评机由其他平台提供,我们无法保证该服务的稳定性,若提交后无反应,请等待一段时间后再进行重试。
题目描述
Recently, a start up by two students of a state university of city F gained incredible popularity. Now it's time to start a new company. But what do we call it?
The market analysts came up with a very smart plan: the name of the company should be identical to its reflection in a mirror! In other words, if we write out the name of the company on a piece of paper in a line (horizontally, from left to right) with large English letters, then put this piece of paper in front of the mirror, then the reflection of the name in the mirror should perfectly match the line written on the piece of paper.
There are many suggestions for the company name, so coming up to the mirror with a piece of paper for each name wouldn't be sensible. The founders of the company decided to automatize this process. They asked you to write a program that can, given a word, determine whether the word is a 'mirror' word or not.
最近,城市 F 某州立大学的两名学生创办的一家初创公司获得了惊人的 popularity。现在是时候成立一家新公司了。但该叫什么名字呢?
市场分析师提出了一个非常聪明的方案:公司名称必须与其在镜子中的反射完全一致!换句话说,若我们将公司名称用大写英文字母水平(从左到右)写在一张纸上,再将这张纸置于镜前,则镜中所呈现的名称反射必须与纸上所写的字符串完全一致。
目前已有大量公司名称候选方案,因此为每个名称都拿一张纸到镜子前逐一验证显然不切实际。公司创始人决定将此过程自动化。他们请你编写一个程序:给定一个单词,判断它是否为“镜像词”(mirror word)。
输入格式
The first line contains a non-empty name that needs to be checked. The name contains at most 105 large English letters. The name will be written with the next sans serif font:

第一行包含一个非空的姓名,需要对其进行检查。该姓名最多包含 105 个大写英文字母。姓名将使用以下无衬线字体显示:

输出格式
Print 'YES' (without the quotes), if the given name matches its mirror reflection. Otherwise, print 'NO' (without the quotes).
如果给定的名字与其镜像反射完全一致,则输出 YES(不带引号);否则,输出 NO(不带引号)。
输入输出样例
输入#1
AHA
输出#1
YES
输入#2
Z
输出#2
NO
输入#3
XO
输出#3
NO
输入解题思路,AI测评打分。不知道怎么写?