You are not logged in. Please login at www.codechef.com to post your questions!

×

# MISKEY-Editorial

Contest
Practice

Author: Amit Kumar Pandey
Editorialist: Amit Kumar Pandey
Tester: Arkapravo Ghosh

Midium

# PROBLEMS

The issue with the keyboard is that the key placement is not appropriate. The keys of the right hand are faulty.

# EXPLANATION:

The keys on the right hands are faulty. The keys are rotated by one place rightward. So, if one presses 'y' then 'p' is printed. So in the string printed by the keyboard, if 'p' is there then the user actually wanted to print 'y'. and so on.

# AUTHOR'S AND EDITORIALIST'S SOLUTIONS:

Author's and editorialistâ€™s solution can be found here.
Tester's solution can be found here

This question is marked "community wiki".

asked 07 Aug '18, 21:41

1★apamit11
775
accept rate: 16%

 0 This problem is easy, not "Midium". The only difficulty lies in guessing/inferring what the exact transform is that the faulty keyboard is imposing, which is a specification difficulty, not programming. The given test cases mostly clarify that. ! Known from spec: h$\to$; / y$\to$p / b$\to$. ! From examples: l$\to$k / o$\to$i / p$\to$o / m$\to$n / i$\to$u / n$\to$b ! Inferred: u$\to$y / ;$\to$l / k$\to$j / j$\to$h / .$\to$, / ,$\to$m answered 18 Aug '18, 20:38 5★joffan 948●8 accept rate: 13%
 toggle preview community wiki:
Preview

### Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

Markdown Basics

• *italic* or _italic_
• **bold** or __bold__
• image?![alt text](/path/img.jpg "title")
• numbered list: 1. Foo 2. Bar
• to add a line break simply add two spaces to where you would like the new line to be.
• basic HTML tags are also supported
• mathemetical formulas in Latex between \$ symbol

Question tags:

×968
×966
×83
×23

question asked: 07 Aug '18, 21:41

question was seen: 198 times

last updated: 18 Aug '18, 20:38