如果直接求出并使用了“以某个数为开头的 LIS 的数量”这个值,请注意它可能会非常大以至于爆 long long,需要对 101810^{18}1018 取个 min\minmin。因为 kkk 最多就 101810^{18}1018 所以不影响最后结果。
long long