UVA10561 Treblecross

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=17&page=show_problem&problem=1502 [PDF](https://uva.onlinejudge.org/external/105/p10561.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10561/31bc60cd2679d5a858bab6338b6a91a761cb246d.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10561/f3a035fa62c3266f7235864450f9f70c79fb3298.png)

Output Format

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