随笔分类 -  快速幂

摘要:题目地址:https://www.nowcoder.com/acm/contest/136/F 树状数组、快速幂、逆元的模板运用; 阅读全文
posted @ 2018-08-24 19:04 liubilan 阅读(154) 评论(0) 推荐(0) 编辑
摘要:题目地址:https://www.nowcoder.com/acm/contest/136/J 解法一: 推数学公式求前n项和; 当k=1时,即为等差数列,Sn = n+pn(n−1)/2 当k≠1时,an+p/(k−1) = k(an−1+p/(k-1)),等比数列,Sn = (kn+1+(p−1 阅读全文
posted @ 2018-08-22 20:03 liubilan 阅读(176) 评论(0) 推荐(0) 编辑
摘要:题目地址:http://www.51nod.com/onlineJudge/questionCode.html#!problemId=1013 Konwledge Point: 快速幂:https://www.cnblogs.com/liubilan/p/9450568.html 除法取模:(a/b 阅读全文
posted @ 2018-08-12 22:02 liubilan 阅读(157) 评论(0) 推荐(0) 编辑
摘要:题目地址:http://www.51cpc.com/web/problem.php?id=4267 Knowledge Point:https://www.cnblogs.com/liubilan/p/9450568.html Summarize: 1. 矩阵乘法 a*b 与 b*a 不同,注意顺序 阅读全文
posted @ 2018-08-09 18:06 liubilan 阅读(276) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示