Codeforces 1203F2 Complete the Projects (hard version)(dp)

NoSuchKey