UVA12630 Equilateral Triangle in a Triangle Grid

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=602&page=show_problem&problem=4355 [PDF](https://uva.onlinejudge.org/external/126/p12630.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12630/64f3ef0210b2769c0828b23ca3d8dcd5513b1df2.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA12630/42361fe6826952f03838e11a5f4e40c1b76ec2c1.png)