UVA734 The Programmer's Hex

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=9&page=show_problem&problem=675 [PDF](https://uva.onlinejudge.org/external/7/p734.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA734/3db6706cf73605967ccbd15dc1dd5b923fbb664f.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA734/3d2359c6e272f8a4e41d44134b42878f9a19f002.png)