摘要: 题解思路:比较裸的中国剩余定理https://blog.csdn.net/niiick/article/details/80229217 #include#include#include#include#include#include#define mem(a,b) ... 阅读全文
posted @ 2019-02-21 16:40 Minun 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 题解思路:对于每个啊a[i]先对k取余;贝祖定理可知若 a1*x1+a2*x2+.....+an*xn==c;则 c|gcd(a1,a2,a3.....an);所以ans=(gcd*(0->k-1))%k;#include#include#include#includ... 阅读全文
posted @ 2019-02-21 10:26 Minun 阅读(129) 评论(0) 推荐(0) 编辑
摘要: 题解思路:简单整理一下题意,就是让输出Cx≡(B-A)%(1#include#include#include#include#include#include#include#include#define ll long long#define int long lon... 阅读全文
posted @ 2019-02-21 08:44 Minun 阅读(148) 评论(0) 推荐(0) 编辑