UVA11123 Counting Trapizoid

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=23&page=show_problem&problem=2064 [PDF](https://uva.onlinejudge.org/external/111/p11123.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11123/f051927b7516050ac207957242e0969cab45015f.png)

Input Format

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

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11123/70fc62c9f5c777b05391104713f910a24c8509c0.png)