2018年7月20日

摘要: n的阶乘后面有多少个0?6的阶乘 = 1*2*3*4*5*6 = 720,720后面有1个0。Input一个数N(1 int main(){ int n,a,sum=0; scanf("%d",&n); while(n>=5) { ... 阅读全文
posted @ 2018-07-20 17:08 ~~晨阳 阅读(185) 评论(0) 推荐(0) 编辑
 
摘要: 给出2个大整数A,B,计算A+B的结果。Input第1行:大数A第2行:大数B(A,B的长度 #include #include#include#include using namespace std;typedef long long LL;int main(){ ... 阅读全文
posted @ 2018-07-20 16:46 ~~晨阳 阅读(198) 评论(0) 推荐(0) 编辑
 
摘要: 中国剩余定理详解见博客:https://www.cnblogs.com/linyujun/p/5199415.html BiorhythmsSome people believe... 阅读全文
posted @ 2018-07-20 16:07 ~~晨阳 阅读(139) 评论(0) 推荐(0) 编辑
 
摘要: 整理自:https://www.cnblogs.com/linyujun/category/784324.html首先,引入同余定理:(a + b) % p = (a%p + b%p) %p (对)(a - b) % p = (a%p - b%p) %... 阅读全文
posted @ 2018-07-20 11:46 ~~晨阳 阅读(242) 评论(0) 推荐(0) 编辑