摘要: 1 bool spfa(int s, int t) { 2 queue Q; 3 Q.push(s); 4 rst(d, inf); 5 rst(p, -1); 6 rst(pp, -1); 7 d[s] = 0; 8 vis[s] = tr... 阅读全文
posted @ 2015-04-25 17:13 Mite 阅读(127) 评论(0) 推荐(0)