版本比较
题解 P3645 【[APIO2015]雅加达的摩天楼】
正文
增加 3 行删除 3 行
23 行未改动24252627282829303132333435353637383949 行未改动899091929393949596974 行未改动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; 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; else cout<<-1;}int main(){ n=read();m=read(); block=sqrt(n/3);4 行未改动