dp solved