MISKEY-Editorial

ad-hoc
apamit11
horsbug98
programming

#1

PROBLEM LINK:

Contest

Practice


Author: Amit Kumar Pandey

Editorialist: Amit Kumar Pandey

Tester: Arkapravo Ghosh

Dificulty

Midium

PREREQUISITES

Ad-hoc, Dictionary

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


#2

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$ o$; / y$ o$p / b$ o$.
! From examples: l$ o$k / o$ o$i / p$ o$o / m$ o$n / i$ o$u / n$ o$b
! Inferred: u$ o$y / ;$ o$l / k$ o$j / j$ o$h / . o, / ,$ o$m