UVA10628 Quadrills

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=18&page=show_problem&problem=1569 [PDF](https://uva.onlinejudge.org/external/106/p10628.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10628/dd14a4dfe63a85748c7854da62a5cca21f543041.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10628/885bdc7861925b926e2474cbe939dd7778cc42c1.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA10628/0fb51dba8db3c5d96a117efe9fabf45cef077c95.png)