EtaoinWu jerome_wei Edison 静静 小粉兔 老K Menci bztMinamoto nealchen mcfx ranwen M_sea redbag Itst OwenOwl GNAQ stneng FFjet Qingnian Su xht37 abc1763613206 yhx-12243 solstice23 Makito Decoration ZigZagK skyline yyb Ouuan Studying Father hk_cnyali xgzc smy Tosaka UCW riteme Mina! Robin ChenQiQian wjyyy Siyuan Woshiluo oierwyh Defeated Person
zx2003 CMXRYNP zhouyuheng LNRBHAW DreamlessDreams Willem scris Sooke Isonan Romeolong daniel14311531 bjxdw Dilute spfa DennyQi Andy Y. oierlin wenjing233 LJC00118 YLWang xuanyi
四月 29, 2020 · OI 题解
给定 $p,A,B,C,D$,求 $x,y$ 满足 $C^x \equiv D^y \pmod x$,并最小化 $Ax + By$。 $6000$ 组询问,$0 \leq A,B,C,D,p \leq 10^9$,保证 $p$ 是质数。