1、基本运算:///溢出情况,b为正整数
加法:(a+b) mod n = ((a mod n)+(b mod n))mod n
减法:(a-b) mod n = ((a mod n)-(b mod n)+n) mod n
乘法:ab mod n = (a mod n)(b mod n) mod n
2、大整数取模:
char st[1000];
int m...
题目:In the math class, the evil teacher gave you one unprecedented problem! Here f(n) is the n-th fibonacci number (n >= 0)! Where f(0) = f(1) = 1 and for any n > 1, f(n) = f(n - 1) + f(n - 2). For example, f(2) = 2, f(3...