萌新刚学珂朵莉树求助qwq

CF896C Willem, Chtholly and Seniorious

@[Irressey](/space/show?uid=79017) 你是大佬
by Rbu_nas @ 2018-10-18 20:44:56


@[Rem°](/space/show?uid=80358) 刚学OI的蒟蒻表示qwq
by 花里心爱 @ 2018-10-18 20:45:48


CF炸了?
by Juan_feng @ 2018-10-18 20:46:12


@[Juan_feng](/space/show?uid=66965) in queueueueue
by Rbu_nas @ 2018-10-18 20:49:06


@[Rem°](/space/show?uid=80358) 又是这种情况啊QAQ
by Juan_feng @ 2018-10-18 20:50:36


@[Irressey](/space/show?uid=79017) 调出来了
by Juan_feng @ 2018-10-18 20:54:41


@[Irressey](/space/show?uid=79017) 没猜错,就是快速幂出锅了(之前小蒟蒻也是那里出的锅233
by Juan_feng @ 2018-10-18 20:55:23


@[Juan_feng](/space/show?uid=66965) 所以应该怎么改……qwq
by 花里心爱 @ 2018-10-18 20:56:12


@[Irressey](/space/show?uid=79017) 读进去的数也要取%
by Juan_feng @ 2018-10-18 20:56:59


@[Irressey](/space/show?uid=79017) 这样子qwq ``` ll power(ll x,ll y,ll mod){ ll ans=1; x=x%mod; while(y){ if(y&1) ans*=x,ans%=mod; x*=x,x%=mod; y>>=1; } return ans%mod; } ```
by Juan_feng @ 2018-10-18 20:57:32


上一页 | 下一页