摘要: 不想吐槽题目..../* K bulabula 算法(好像用哪个T bulabula更简单 然而我并不会 - -) 丑陋的处理cnt: Printf时 cnt中 ans[i][0]==1 的删掉 然后更丑陋的处理强连通分量的出度 : 先把所包含的所有点f 成1 然后以每个点为起点跑一边 看看是不是出度指向本连通分量内的点 */ #include #include #include #incl... 阅读全文
posted @ 2016-04-19 15:29 一入OI深似海 阅读(195) 评论(0) 推荐(0) 编辑
摘要: /* 丧心病狂的最短路 关键是建图 根据题目中给的路 拆出节点来 建图 (i,j) -->(j-1)*n+i 然后根据障碍 把死路 湖覆盖的dis改变成极大值 然后Floyd 然后 然后就没有然后了.... */ #include #include #include #define maxn 99999999; using namespace std; int g[150][150],x[... 阅读全文
posted @ 2016-04-19 11:00 一入OI深似海 阅读(300) 评论(0) 推荐(0) 编辑