UVA13224 Hobbit's Resistor Graphs

Description

[problemUrl]: https://uva.onlinejudge.org/index.php?option=com_onlinejudge&Itemid=8&category=878&page=show_problem&problem=5147 [PDF](https://uva.onlinejudge.org/external/132/p13224.pdf) ![](https://cdn.luogu.com.cn/upload/vjudge_pic/UVA13224/8b4dcd84b3a71d6a6fbff5728bd6a5e6c6976d58.png)

Input Format

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

Output Format

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