[bzoj]1092: [SCOI2003]蜘蛛难题
按时间去模拟就行了。
把管道建成双向边,然后每次求出可以流到的,如果有一个已经溢出就输出-1。
#include
#include
using namespace std;
const int N=25;
struct node{
int x,y,h;
}g[N];
bool f[N];
int p,pre[N*N],L,tot,u,v,w;
int x,y,ans;
struct
原创
2017-06-09 20:58:38 ·
668 阅读 ·
0 评论