正文
增加 2 行删除 2 行
153 行未改动全部展开15415515615715815916016116287 行未改动250251252253254255256257258164 行未改动全部展开153 行未改动全部展开inline int read(){int X=0;char ch;bool f=0;do{ch=getchar();f|=(ch=='-');}while(!isdigit(ch));do{X=(X<<1)+(X<<3)+(ch^48);}while(isdigit(ch=getchar()));return f?-X:X;}int gcd(int x,int y){return y?gcd(y,x%y):x;}const int M=1769472,INF=1e18;const int N=59;87 行未改动inline int read(){int X=0;char ch;bool f=0;do{ch=getchar();f|=(ch=='-');}while(!isdigit(ch));do{X=(X<<1)+(X<<3)+(ch^48);}while(isdigit(ch=getchar()));return f?-X:X;}int gcd(int x,int y){return y?gcd(y,x%y):x;}const int M=1769472,INF=1e18;const int N=59;164 行未改动全部展开153 行未改动全部展开15415515615715815916016116287 行未改动250251252253254255256257258164 行未改动全部展开153 行未改动全部展开inline int read(){int X=0;char ch;bool f=0;do{ch=getchar();f|=(ch=='-');}while(!isdigit(ch));do{X=(X<<1)+(X<<3)+(ch^48);}while(isdigit(ch=getchar()));return f?-X:X;}int gcd(int x,int y){return y?gcd(y,x%y):x;}const int M=1769472,INF=1e18;const int N=59;87 行未改动inline int read(){int X=0;char ch;bool f=0;do{ch=getchar();f|=(ch=='-');}while(!isdigit(ch));do{X=(X<<1)+(X<<3)+(ch^48);}while(isdigit(ch=getchar()));return f?-X:X;}int gcd(int x,int y){return y?gcd(y,x%y):x;}const int M=1769472,INF=1e18;const int N=59;164 行未改动全部展开