UVA11298 Dissecting a Hexagon

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=24&page=show_problem&problem=2273 [PDF](https://uva.onlinejudge.org/external/112/p11298.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11298/a6167c6873821c184ed81ab92bca712e5fdaafd4.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11298/741943e7600a5c66db9cb31508f2e6b1c781e5e4.png)