Back to Problem Solutions forum
From the statement of the problem it's not clear what speed should have mover if in the beginning of the simulation interval it's exactly on the 20 meters mark: should it be speed for the first or for the second segment? I've tried both ways, but got wrong results in some tests. Problem is certainly here, because program passed the test where mover never been recalculated in speed change points.