#include<stdio.h> #include<queue> #include<string.h> using namespace std; #define inf 0x7fffffff #define N 300 int p,t,n; int Min(int a,int b) { return a>b?b:a; } struct node { int u,v,w,f; }mp[40001]; int flow[N][N],d[N]; int bfs(…
SECRET 时间限制:3000 ms | 内存限制:65535 KB 难度:6 描述 Dr.Kong is constructing a new machine and wishes to keep it secret as long as possible. He has hidden in it deep within some forest and needs to be able to get to the machine without being detected. He…
#include<stdio.h> #include<string.h> #define N 200 int Min(int a,int b) { return a>b?b:a; } int Max(int a,int b) { return a>b?a:b; } int map[N][N],flag,visit[N][N],n,min,max; int dis[4][2]={1,0,-1,0,0,1,0,-1}; void init() { int i,j; min=…