A Telephone Line Company (TLC) is establishing a new telephone cable network. They are connecting several places numbered by integers from 1 to N . No two places have the same number. The lines are bidirectional and always connect together two places and in each place the lines end in a telephone exchange. There is one telephone exchange in each place. From each place it is
possible to reach through lines every other place, however it need not be a direct connection, it can go through several exchanges. From time to time the power supply fails at a place and then the exchange does not operate. The officials from TLC realized that in such a case it can happen that besides the fact that the place with the failure is unreachable, this can also cause that some other places cannot connect to each other. In such a case we will say the place (where the failure
occured) is critical. Now the officials are trying to write a program for finding the number of all such critical pla
Network POJ - 1144 割点
最新推荐文章于 2020-02-01 16:16:16 发布
本文介绍了一个关于电话线路网络的问题,当某地电力供应故障导致交换机无法工作时,可能会造成其他地方之间的连接中断。这种情况下的地点被称为关键点。文章提供了输入输出示例,并给出了解决该问题的C++程序模板。
摘要由CSDN通过智能技术生成