Codeforces刷题之路——41A Translation
来源:互联网 发布:网络宣传文案 编辑:程序博客网 时间:2024/04/27 21:41
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 s from Berlandish into Birlandish as t. Help him: find out if he translated the word correctly.
The first line contains word s, the second line contains word t. 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 t is a word s, written reversely, print YES, otherwise print NO.
codeedoc
YES
abbaba
NO
codecode
NO
- Codeforces刷题之路——41A Translation
- codeforces 41A Translation
- codeforces 41A(Translation) Java
- Codeforces刷题之路——133A HQ9+
- Codeforces刷题之路——116A Tram
- CF:41A. Translation
- 41A Translation
- CF 41A Translation
- Codeforces Translation
- A survey of Flash Translation Layer——笔记注释
- A. Translation
- Codeforces刷题之路——263A Beautiful Matrix
- Codeforces刷题之路——467A George and Accommodation
- Codeforces刷题之路——236A Boy or Girl
- Codeforces刷题之路——58A Chat room
- Codeforces刷题之路——122A Lucky Division
- Codeforces刷题之路——281A Word Capitalization
- Codeforces刷题之路——131A cAPS lOCK
- 用eclipse和pydev编写python 注释中文乱码解决
- flexbox弹性布局
- Oracle 数据库安装之前,几篇务必参考的文章
- 华为在线编程试题 -- 提取不重复整数
- [jenkins工具]之一:持续集成和jenkins入门介绍
- Codeforces刷题之路——41A Translation
- Laravel系列2入门使用
- xml颜色代码表
- Redis 与 Lua 脚本
- mongoDB的复制集4----复制集监控(状态查看)
- LINQ-分页数据查询
- 修改注册表解决Win10 SSD卡顿
- HDOJ 1423 最长公共上升子序列(LCIS 动态规划)
- 清结算分账业务