UVA13184 Counting Edges and Graphs

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=871&page=show_problem&problem=5095 [PDF](https://uva.onlinejudge.org/external/131/p13184.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13184/f15f23a78c70c9e7637d0334b3897daab1d2bd98.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13184/9367a3e54430bf60631bfa5f4524377532569128.png)

Output Format

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