Dynamic Programming on Directed Acyclic Graph (DP on DAG) - Preparation to IOI Part 5