#2:
输入:1030484201800080983466306202006000005226 99999
输出:-1
注意预处理的 num[][]num[][]num[][] 数组超了 intintint 会导致 dpdpdp 时超时或数组越界
#13: 大概这个点的n是<=1e6的
AC代码