随笔分类 -  逆元

摘要:概率的计算答案给出的这张图很清楚了,然后因为要求取模,a/b%M=a*b^-1%M=a*inv(b,M)%M; 1 #include <cstdio> 2 #include <cstring> 3 #include <iostream> 4 #include <cstdio> 5 6 using n 阅读全文
posted @ 2018-04-11 00:45 蒟蒻LQL 阅读(201) 评论(0) 推荐(1)