摘要:
传送门 差分约束系统。。找负环用spfa就行 ——代码 1 #include <cstdio> 2 #include <cstring> 3 #include <iostream> 4 #define N 100001 5 6 int n, m, cnt; 7 int head[N], to[N < 阅读全文
posted @ 2017-06-16 14:37
zht467
阅读(135)
评论(0)
推荐(0)
摘要:
传送门 比着题解写还错。。。 查了两个小时没查出来,心态爆炸啊 以后再查 ——代码(WA) 1 #include <cstdio> 2 #include <cstring> 3 #include <iostream> 4 #define N 2000001 5 #define Min(x, y) ( 阅读全文
posted @ 2017-06-16 10:06
zht467
阅读(196)
评论(0)
推荐(0)

浙公网安备 33010602011771号