传送⻔ 题意 给出点数为 n n n,边数为 m m m的有向图,问每次删去一条边时, 1 − n 1 - n 1−n的最短路,每次询问相互独立。 n < = 400 n < = 400 n<=400 分析 分情况讨论,我们先求出这个图内的最短路,并且路径还原就可以知道哪些边在最短路中,这些边在图中最多不超过 n − 1 n - 1 n−1条 如果当前枚举的边不是最短路中的边,那么直接输
题目:Contestants Division In the new ACM-ICPC Regional Contest, a special monitoring and submitting system will be set up, and students will be able to compete at their own universities. However there’