UVA10055 Hashmat the Brave Warrior

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=12&page=show_problem&problem=996 [PDF](https://uva.onlinejudge.org/external/100/p10055.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10055/11356711b212401c0b853d27cab47d09bab78f29.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10055/8393fe66cccf72690767731881dfa506fd6c1f9a.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10055/651dfafbff45f01f707adeacbbc72f6801e6f469.png)