反思

\color{green}{\mathtt{ABCD}}\color{gray}{\mathtt{E}}\color{green}{\mathtt{F}}\color{gray}{\mathtt{G}}\ \ \ \color{red}{\mathtt -1}

显然掉分了。

  1. 做 D 的时候剪枝条件没写完就交了,导致罚时。
  2. 花了大量时间去推 E 导致明明 F 会做但是 AC 时间很晚。
  3. F 没有想到简单的线段树做法,直接写了难写难调的 CDQ。

题解

A、B、C、D 略。

E

F

link