UVA13268 Interesting Resister Graph

Description

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

Input Format

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

Output Format

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