Mathematics, Competitive Programming, Philosophy, Discrete Mathematics.
between the number of repaintings that a stroke results in and the number of segment deaths it causes. As can be seen in Figure 1 above, all segments that get repainted over by a stroke over “die” except possibly the two edge segments. If a stroke results in k repaintings, then it causes the deaths