Mathematics, Competitive Programming, Philosophy, Discrete Mathematics.
segment birth we accounted for. However we also get a “boost by 2” since such strokes result in only 1 repainting despite causing 1 segment death, whereas our analysis provisioned for 2 more repaintings than the number of deaths. The boost perfectly offsets the hit. Formally, if there are c strokes