摘要: ```cpp bool CRT(int a1,int m1,int a2,int m2,int &a,int &m) { int x,y; int d = exgcd(m1,m2,x,y); int z = a2-a1; if(z%d) return 0; x = (int)(1LL*x*(z/d)%(m2/d)); m=int(1LL*m1*m2/d); a = int((1LL*... 阅读全文
posted @ 2019-06-19 00:02 文文殿下 阅读(335) 评论(0) 推荐(0) 编辑