翻译AI (CI翻译)
The translation from the Berland language into the Birland language is not an easy task. Those languages are very similar: a Berlandish word differs from a Birlandish word with the same meaning a little: it is spelled (and pronounced) reversely. For example, a Berlandish word code corresponds to a Birlandish word edoc. However, making a mistake during the "translation" is easy. Vasya translated the word $*s*$ from Berlandish into Birlandish as $*t*$. Help him: find out if he translated the word correctly.
code 对应的 Birland 语单词是 edoc。然而,在“翻译”过程中很容易出错。Vasya 将单词 $*s*$ 从 Berland 语翻译成 Birland 语,得到 $*t*$。请帮助他判断翻译是否正确。AI (CI翻译)Input
输入格式
AI (CI翻译)The first line contains word $*s*$, the second line contains word $*t*$. The words consist of lowercase Latin letters. The input data do not contain unnecessary spaces. The words are not empty and their lengths do not exceed 100 symbols.
第一行包含单词 $*s*$,第二行包含单词 $*t*$。单词由小写拉丁字母组成。输入数据中不包含多余的空格。单词非空,长度不超过 100 个字符。AI (CI翻译)
Output
输出格式
AI (CI翻译)If the word $*t*$ is a word $*s*$, written reversely, print YES, otherwise print NO.
如果单词 $*t*$ 是将单词 $*s*$ 反向书写得到的结果,输出 YES,否则输出 NO。
AI (CI翻译)
样例
code
edoc
YES
abb
aba
NO
code
code
NO
题面与样例版权归 Codeforces 及出题人所有;中文翻译由 AI 生成(gpt-6.1-sol),如有出入请以原文为准。