UVA11010 Tic-Tac-Tough

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=22&page=show_problem&problem=1951 [PDF](https://uva.onlinejudge.org/external/110/p11010.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11010/cc870facde6667bc571e7aeec941f6fd754acef9.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11010/7d7b319906d3c300dca79ac41d5e09f2913c0c97.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11010/29d704b9a2655377a967b7a17ba017ef7fc40b77.png)