some problems dp solved