摘要: 推荐博客 : http://blog.csdn.net/baidu_35643793/article/details/75268911 通常我们在计算除法取模时,并不能直接的取模后再去相除,答案会有问题,在这里我们就引入逆元的,(a/b)%mod = (a*c)%mod , 在这里 c 是 b 的逆 阅读全文
posted @ 2018-03-10 22:25 楼主好菜啊 阅读(482) 评论(0) 推荐(0) 编辑
摘要: Dima is a beginner programmer. During his working process, he regularly has to repeat the following operation again and again: to remove every second 阅读全文
posted @ 2018-03-10 09:28 楼主好菜啊 阅读(211) 评论(0) 推荐(0) 编辑