摘要: LL exp_mod(LL a, LL b, LL mod) { LL res = 1; while(b != 0) { if(b&1) res = (res * a) % mod; a = (a*a) % mod; b >>= 1; } return res; } LL Comb(LL a, LL b, LL... 阅读全文
posted @ 2016-08-05 09:18 相儒以沫 阅读(186) 评论(0) 推荐(0) 编辑