UVA12436 Rip Van Winkle's Code

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=279&page=show_problem&problem=3867 [PDF](https://uva.onlinejudge.org/external/124/p12436.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12436/062ba77d808028c4e9b4b89cf7cf01c908f0bc73.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12436/0b66ee38b3983ad5d6592892073c6ad5989f9ba3.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12436/4c0bf0725e5bf0432c97b1fecf7af24272a5bee6.png)