状态
题目描述
There are n wooden rods vertically placed over a horizontal line. The rods are numbered 1 through n from left to right. Each rod i (1 ⩽ i ⩽ n) is placed at position xi and has a height hi . A termite wants to eat all the rods one by one. …
题面: 题意: 给定正整数 n n n 和起始位置 s s s。 n n n 表示有 n n n 个杆子,每个杆子由属性 ( x i , h i ) (x_i,h_i) (xi,hi) 构成,表示在 x i x_i xi 处有一根高度为 h i h_i hi 的杆子。初始时在 s s s 杆…