Please subscribe to the official Codeforces channel in Telegram via the link https://t.me/codeforces_official. ×

A Question to The Sol. Of CF1551E

Revision en1, by PilotCoder, 2021-07-25 09:59:45

In the official tutorial, we defined a dp[i][j] array which means that we consider 1~i and has j elements that haven't been deleted, I just want to ask if it is possible to solve it by redefined the dp: consider 1~i and has already use j moves. Could anyone tell me if my idea is possible to solve problem?

Tags cf1551e

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English PilotCoder 2021-07-25 09:59:45 339 Initial revision (published)