摘要: Link to LOJ Legend 给定 \(n,x,p,m,a_i\),求: \(\left(\sum\limits_{k=0}^{n}f(k)\times x^k \times \dbinom{n}{k} \right) \bmod p\) 保证 $1 \le n,x,p \le 109$,$ 阅读全文
posted @ 2020-09-08 20:24 Imakf 阅读(190) 评论(0) 推荐(0) 编辑
摘要: Legend Link to LOJ。 维护两个二元组集合 \(A,B\),支持操作 \(Q\ (1 \le Q \le 2\times10^6)\) 次: 向其中某个集合插入一个二元组 \((t,e) \ (1 \le t \le 2\times 10^9,\sum e \le 2 \times 阅读全文
posted @ 2020-09-08 13:55 Imakf 阅读(159) 评论(0) 推荐(0) 编辑