UVA346 Getting Chorded

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=5&page=show_problem&problem=282 [PDF](https://uva.onlinejudge.org/external/3/p346.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA346/1d510a8665577bd2a3781522ad4057db277637b3.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA346/232799f81a8c5480e11905c6591c00a7a826502c.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA346/222f6c2910f9427a0145dcb0763987ab91510d05.png)