Rosetta Problems

Electric Circuit

https://atcoder.jp/contests/abc321/tasks/abc321_g