AC with a “suspicious” DP — looking for counterexamples / hacks

Revision en2, by ZnZrYb, 2026-01-30 11:10:42

Codeforces Round 1077 (Div. 2)——D. Shortest Statement Ever

Because I do not find a dp solution, so I write one by myself, and it gets AC verdict.

360662700

However, I feel a little strange about my solution, because I think there are some flaws, but I cannot find counterexamples.

So, please help me review my code and solution. I'm glad about my solution to be hacked.

Tags dp

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en2 English ZnZrYb 2026-01-30 11:10:42 0 (published)
en1 English ZnZrYb 2026-01-30 11:09:51 458 Initial revision (saved to drafts)