「codeforces - 1550F」Jumping Around
link。题不错,但是花了很久啊,完全比不过贺题怪。答案有单调性,转化求每个点被跳到所需的最小 $k_i$,容易想到用整体二分维护一个有 $s$ 的连通块,每次拓展的时候就考虑在值域范围内的点能...
In mathematics you don't understand things, you just get used to them.
In mathematics you don't understand things, you just get used to them.