定义一个可重正整数集的神秘数为最小的非该集合任意子集的和的数。给定序列 $\{a_n\}$,每次询问给定 $l,r$,询问 $[l,r]$ 组成的可重正整数集的神秘数。
$n\le 10^5,\sum a_i\le 10^9$
LCuter
有问题联系 QQ 494732835
Posts
69
Categories
24
Tags
53
CodeForces
SCOI
AtCoder
Update your browser to view this website correctly. Update my browser now
×