some dp problem