UVA852 Deciding victory in Go

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=10&page=show_problem&problem=793 [PDF](https://uva.onlinejudge.org/external/8/p852.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA852/deb4ea8d2d7660f2dd2bddc5df2ab0a73ab26ec8.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA852/81dc51bd6325ecff78af2e6f51c5e75d120d54f2.png)

Output Format

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