UVA11387 The 3-Regular Graph

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=25&page=show_problem&problem=2382 [PDF](https://uva.onlinejudge.org/external/113/p11387.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11387/f4c581702c6175e560a81486b3d9e55f755d1da9.png)

Input Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11387/1c95916ce143f479d0d61d56ea1e3b760d9bec62.png)

Output Format

![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA11387/1d9b2ec1b9c1a1a142cfb5b7af9818b55e462080.png)