UVA11840 Tic-tac-toe

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=226&page=show_problem&problem=2940 [PDF](https://uva.onlinejudge.org/external/118/p11840.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11840/b66a50e44033ad8ff91c8b08b3ab85b496aec6fe.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11840/9ca37bb89cd3b6b1058ff02e664b8447caa9963d.png)

Output Format

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