正文
增加 3 行删除 3 行
23 行未改动2425262728293031323334353637383949 行未改动8990919293949596974 行未改动23 行未改动while(c>'9'||c<'0')c=gc;while(c>='0'&&c<='9')x=x*10+c-48,c=gc;return x;}const int N=3100000;struct edge{int to,w,next;}e[18100000];int head[N],tot;void add(int x,int y,int z){e[++tot].to=y;e[tot].next=head[x];e[tot].w=z;head[x]=tot;}int block,m,n,dis[N];#define get(a,b) (a*n+b)void build(int Floor){register int i;49 行未改动}}if(dis[T]<2000000000)cout<<dis[T];else cout<<-1;}int main(){n=read();m=read();block=sqrt(n/3);4 行未改动23 行未改动2425262728293031323334353637383949 行未改动8990919293949596974 行未改动23 行未改动while(c>'9'||c<'0')c=gc;while(c>='0'&&c<='9')x=x*10+c-48,c=gc;return x;}const int N=3100000;struct edge{int to,w,next;}e[18100000];int head[N],tot;void add(int x,int y,int z){e[++tot].to=y;e[tot].next=head[x];e[tot].w=z;head[x]=tot;}int block,m,n,dis[N];#define get(a,b) (a*n+b)void build(int Floor){register int i;49 行未改动}}if(dis[T]<2000000000)cout<<dis[T];else cout<<-1;}int main(){n=read();m=read();block=sqrt(n/3);4 行未改动