
图论之强联通SCC
Conchpeng
贵在坚持。如有错误欢迎指正。
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
E. Strictly Positive Matrix [强联通+矩阵幂转图论+缩点] 好题
E. Strictly Positive Matrixtime limit per test1 secondmemory limit per test256 megabytesinputstandard inputoutputstandard outputYou have matrix a of size n × n. Let's number the rows of the matrix fro...原创 2018-03-15 19:38:10 · 488 阅读 · 0 评论 -
B. Strongly Connected City [强联通判断]
B. Strongly Connected Citytime limit per test2 secondsmemory limit per test256 megabytesinputstandard inputoutputstandard outputImagine a city with n horizontal streets crossing m vertical streets, fo...原创 2018-03-18 11:20:27 · 285 阅读 · 1 评论 -
427C Checkposts[强联通+缩点]
C. Checkposts time limit per test 2 seconds memory limit per test 256 megabytes input standard input output standard output Your city has n junctions. There are m one-wa原创 2018-03-18 11:18:22 · 393 阅读 · 0 评论 -
E. Reachability from the Capital[强联通]
E. Reachability from the Capital题意:一张有向图,现在要求从S出发能到所有点,问至少加几条边思路:强联通缩点后,判断入度为0的块有几个,S除外#include<bits/stdc++.h> #define PI acos(-1.0) #define pb push_back #define F first #define S second using n...原创 2018-07-09 10:07:28 · 373 阅读 · 0 评论 -
E. We Need More Bosses【无向图强连通】
E. We Need More Bosses 题意: 求一个无向图缩点后,求直径长度 注意无向图强连通和有向图强连通是有区别的,主要是无向图强连通不能回头,要求在tarjan算法里记录father #include<bits/stdc++.h> #define PI acos(-1.0) #define pb push_back #define F first #define ...原创 2018-07-17 17:24:39 · 531 阅读 · 0 评论