UVA12211 Games of Block

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=244&page=show_problem&problem=3363 [PDF](https://uva.onlinejudge.org/external/122/p12211.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12211/863bd20c9dd91a0e5c8eafcf87c596eba0c09d24.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12211/088bfb4910df5fc452afad13ca84608280df1642.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12211/552e7916b4ab229df4347b0cb2b2edca1ac53403.png)