code jam  with dp programming