DP pe drumuri: dp[j] = S_j + max dp predecesori valizi (timp crescător, |ΔX| ≤ D și ≤ ΔT); transformarea A=X−T, B=X+T.