Problem 41A Codeforces

June 5, 2017 | Autor: S. Progga | Categoria: Programming Languages, Translation Studies, Translation
Share Embed


Descrição do Produto

4/10/2016

Problem ­ 41A ­ Codeforces

  Sheikh_Hasib_Ahmed | Logout   HOME   PROBLEMS

CONTESTS SUBMIT

STATUS

GYM

PROBLEMSET

STANDINGS

GROUPS

RATING

API

VK CUP

CROC

   

 

CUSTOM TEST

A. Translation time limit per test: 2 seconds memory limit per test: 256 megabytes input: standard input output: standard output 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.

Input 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.

  → Attention

 

Package for this problem was not updated by the problem writer or Codeforces administration after we’ve upgraded the judging servers. To adjust the time limit constraint, solution execution time will be multiplied by 2. For example, if your solution works for 400 ms on judging servers, then value 800 ms will be displayed and used to determine the verdict.

  Codeforces Beta Round #40 (Div.   2)

Finished

Practice

Output If the word t is a word s, written reversely, print YES, otherwise print NO.

Examples

 input code  edoc  http://codeforces.com/problemset/problem/41/A

  → Virtual participation Virtual contest is a way to take part in past contest, as close as possible to participation on time. It is supported only ACM­ICPC mode for virtual contests. If you've seen these problems, a virtual contest is not for you ­ solve these problems in the archive. If

 

1/3

4/10/2016

output YES 

input

Problem ­ 41A ­ Codeforces

you ­ solve these problems in the archive. If you just want to solve some problem from a contest, a virtual contest is not for you ­ solve this problem in the archive. Never use someone else's code, read the tutorials or communicate this other person during a virtual contest.

abb  aba 

Start virtual contest

output NO 

  → Submit?

 

input

Language:

code  code 

Choose file:

output

Be careful: there is 50 points penalty for submission which fails the pretests or resubmission (except failure on the first test, denial of judgement or similar verdicts). "Passed pretests" submission verdict doesn't guarantee that the solution is absolutely correct and it will pass system tests.

NO 

GNU GCC 5.1.0 Choose File

No file chosen

Submit

  → Problem tags

 

  implementation     strings   No tag edit access

  → Contest materials

 

Announcement Tutorial

http://codeforces.com/problemset/problem/41/A

2/3

4/10/2016

Problem ­ 41A ­ Codeforces

Codeforces (c) Copyright 2010­2016 Mike Mirzayanov The only programming contests Web 2.0 platform Server time: Apr/10/2016 18:14:53UTC+6 (p1). Desktop version, switch to mobile version.

http://codeforces.com/problemset/problem/41/A

3/3

Lihat lebih banyak...

Comentários

Copyright © 2017 DADOSPDF Inc.