链接:
https://ac.nowcoder.com/acm/contest/57361/E
来源:牛客网
The new round of Star Wars has begun.
In this round of Star Wars, our side has established n bases in the universe. At the beginning of the war, all bases had zero troops and there were no wormholes. A wormhole connects two different bases and can be bidirectional.
You need to help the commander-in-chief write a program to answer some questions ba
sed on the battlefield situation.