Rational Resistance

Problem Name:
Rational Resistance
Site:CodeForces
Links:
Tags:
Problem setters: