Question meaning: https://codeforc.es/problemset/problem/195/D Find the number of polyline segments.
Sort pos, add k to different interval segments, and two dp handle different k>0 or k<0 pre
Question meaning: https://codeforc.es/problemset/problem/195/D Find the number of polyline segments.
Sort pos, add k to different interval segments, and two dp handle different k>0 or k<0 pre