UVA12722 Cryptography of the Floating Key

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=823&page=show_problem&problem=4574 [PDF](https://uva.onlinejudge.org/external/127/p12722.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12722/76d280b9b83d68abbedf131af543d2198d45dba2.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12722/6830ff8fe3bbd793884548c9a37f06f43af335b9.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12722/5451893a50413dddbf0fc3791491a5a8df12d9c2.png)