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
十一月 18, 2020 · OI 题解
有 $m$ 个随机数生成器,每一个生成器会在 $[0,a_i] \cap \mathbb N^*$ 中均匀随机得到 $x_i$,再会有 $p_i$ 的概率令 $y_i=1$,否则 $y_i=0$ 。另外会有一个常数 $d$,保证 $d|(a_i+1)$。 考虑 $s_0=\sum_{i=1}^n x_iy_i,\ s_1 = \sum_{i=1}^n x_i$,对于一种局面,若 $s_1 =n$,则称其是合法的;对于一种...