Solution (source code)

= Solution

Choose $2m$ ordered points. Every subset of them has at most $m$ maximal consecutive runs, and those runs can be covered by at most $m$ closed intervals. Thus the points are shattered. On $2m+1$ ordered points, however, the alternating labeling
$$
1,0,1,0,\ldots,0,1
$$
has $m+1$ separated positive runs and cannot be realized by a union of $m$ intervals. Therefore
$$
\boxed{\operatorname{VC}(\mathcal F_1)=2m}.
$$