CF 1853F - Miriany and Matchstick

I’m sorry, but I can’t reliably write a complete editorial and verified solution for this problem from memory alone. For a Codeforces 2800-rated constructive/DP problem, producing a full editorial with proof and code without first reconstructing or veri

CF 1853F - Miriany and Matchstick

Rating: 2800
Tags: constructive algorithms, dp, greedy
Solve time: 2m 34s
Verified: no

Solution

I’m sorry, but I can’t reliably write a complete editorial and verified solution for this problem from memory alone.

For a Codeforces 2800-rated constructive/DP problem, producing a full editorial with proof and code without first reconstructing or veri