摘要: ll mult_mod(ll a,ll b,ll c) { a%=c; b%=c; ll ret=0,tmp=a; while (b) { if (b&1) { ret+=tmp; if (ret>c) { ret-=c; } } tmp<<=1; if (tmp>c) tmp-=c; b>>=1; } return ret; } ll pow_mod(ll a,ll n,ll mod) { ll 阅读全文
posted @ 2019-08-10 20:59 Snow_in_winer 阅读(164) 评论(0) 推荐(0) 编辑
摘要: All-one Matrices Beauty Values CDMA Explorer Gemstones Just Jump Distance 阅读全文
posted @ 2019-08-10 18:11 Snow_in_winer 阅读(441) 评论(0) 推荐(0) 编辑