CF41A.Translation

普及/提高-

通过率:0%

AC君温馨提醒

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

题目描述

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, it's easy to make a mistake during the «translation». Vasya translated word ss from Berlandish into Birlandish as tt . Help him: find out if he translated the word correctly.

输入格式

The first line contains word ss , the second line contains word tt . The words consist of lowercase Latin letters. The input data do not consist unnecessary spaces. The words are not empty and their lengths do not exceed 100 symbols.

输出格式

If the word tt is a word ss , written reversely, print YES, otherwise print NO.

输入输出样例

  • 输入#1

    code
    edoc
    

    输出#1

    YES
    
  • 输入#2

    abb
    aba
    

    输出#2

    NO
    
  • 输入#3

    code
    code
    

    输出#3

    NO
    
首页