摘要:
#include #include #include #include #include #include #include #include #include #include #include using namespace std; int exGcd(int a,int b,int *x,int *y) { if(b==0) { *... 阅读全文
摘要:
#include int main() { std::ios::sync_with_stdio(false); std::cin.tie(0); // IO } 阅读全文
摘要:
转自:http://blog.csdn.net/ash_zheng/article/details/38541777 模运算与基本四则运算有些相似,但是除法例外。其规则如下: (a + b) % p = (a % p + b % p) % p (1) (a - b) % p = (a % p - b 阅读全文