随笔分类 -  数学

摘要:杨辉三角与二项式定理 , (紫书p349) 杨辉三角性质via百度百科 杨辉三角与组合数 EG1 noip2011 d2t1 计算系数 给定一个多项式(by+ax)^k,请求出多项式展开后x^n*y^m 项的系数。 注意下标数字的细节 1 #include<cstdio> 2 #include<cs 阅读全文
posted @ 2017-09-23 11:44 Vincent_hwh 阅读(440) 评论(0) 推荐(0)
摘要:一.快速幂模板 int Powermod(int a,int b,int MOD) { int t=1; while (b>0) { if (b%2==1) t=(t*a)%MOD; b/=2; a=(a*a)%MOD; } return t; } //(a^b)%MOD View Code 参考: 阅读全文
posted @ 2016-10-18 15:41 Vincent_hwh 阅读(443) 评论(0) 推荐(0)