Comments
0

I got WA at Test Case #8 in problem D. Couldn't figure out why?

On gen → Codeforces Round #200 Tutorial, 9 years ago
0

You have only 1-ohm resistors in the beginning. Thus it requires 5 1-ohm resistors to make a 5-ohm resistor, and 2 1-ohm resistors to make a 2-ohm resistor. So according to you answer is 7 and not 2.