Basic Dynamic Programming Problems Codeforces Rating