存在 3e10+10的范围,可以具体看wa的对象,给出了std:和you:的结果。
bib_ibi可以为负数,判断条件应为: ∑ai<=p&&∑bi>=0 \sum{a_i}<=p \&\&\sum{b_i}>=0∑ai<=p&&∑bi>=0 还有记得开long long