摘要:
void ex_gcd(ll a,ll b,ll &d,ll &x,ll &y){ if(!b){d=a;x=1LL;y=0LL;} else {ex_gcd(b,a%b,d,y,x);y-=x*(a/b);} }/////大数乘法取模转换成加法取模,避免爆long long ll mult(ll a,ll k,ll m){ ll res=0; while(k... 阅读全文
posted @ 2016-07-30 19:59
Beserious
阅读(582)
评论(0)
推荐(0)
摘要:
Lucky7 Time Limit: 2000/1000 MS (Java/Others) Memory Limit: 65536/65536 K (Java/Others)Total Submission(s): 933 Accepted Submission(s): 345 Problem De 阅读全文
posted @ 2016-07-30 19:57
Beserious
阅读(247)
评论(0)
推荐(0)
浙公网安备 33010602011771号