UVA12804 The Necronomicon of Computing

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=861&page=show_problem&problem=4669 [PDF](https://uva.onlinejudge.org/external/128/p12804.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12804/0f9cd50967dd614dcb60b01967803e51bb72db01.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12804/dd14e05b0a3a48380b644da92673bb4804b57d44.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12804/2b04302aeea52a85de0f85c9318568a77d5f5211.png)