#include<iostream>
#include<cstring>
#include<cstdio>
#define inf 99999999
#define T 10001
using namespace std;
inline int read(){
int x=0,f=1;char ch=getchar();
while(ch<'0'||ch>'9'){if(ch=='-')f=-1;ch=getchar();}
while(ch>='0'&&ch<='9'){x=x*10+ch-'0';ch=getchar();}
return x*f;
}
struct edge{
int to,next,v;
}e[200001];
const int xx[4]={-1,0,1,0},yy[4]={0,-1,0,1};
int n,m,cnt=1,ans,head[10005],h[10005],map[101][101];
void insert(in......
阅读全文