In mathematics you don't understand things, you just get used to them.

标签 graph theory 下的文章

link。首先二分答案固定每个 bot 的步长,然后就基本上弱于 codeforces - 1476F 了,但是还是有些不一样的地方。假如我们是在一个序列上做 dp,不妨把原环按 $n$-$1$...