2019年10月30日
摘要: int dis_spfa[maxn]; bool vis_spfa[maxn]; queue<int>q_spfa; void spfa(int x) { mem(dis_spfa, 0x3f); mem(vis_spfa, false); dis_spfa[x] = 0; q_spfa.push( 阅读全文
posted @ 2019-10-30 17:29 thjkhdf12 阅读(98) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<string> 3 #include<queue> 4 #include<stack> 5 #include<vector> 6 #include<map> 7 #include<cstdio> 8 #include<cstdlib> 阅读全文
posted @ 2019-10-30 17:28 thjkhdf12 阅读(110) 评论(0) 推荐(0)
摘要: 1 #include<iostream> 2 #include<cstdio> 3 using namespace std; 4 5 int g[6][6] = 6 { 7 {0,0,0,0,0,0}, 8 {0,1,1,1,1,1}, 9 {0,0,1,1,1,1}, 10 {0,0,0,2,1, 阅读全文
posted @ 2019-10-30 10:30 thjkhdf12 阅读(108) 评论(0) 推荐(0)