NOI2022 移除石子
Statement
We have \(n\) numbers \(a_i\), and 2 operations: 1. \(a_i \rightarrow a_i - x \, (x \ge 2, a_i \ge 2)\) 2. \(a_{[i,i+l-1]} \rightarrow a_{[i,i+l-1]} - 1 \, (a_{[i,i+l-1]} \ge 1, l \ge 3)\) Find number of initial states, such that there exists a way to add \(k\) and then get all to \(0\). (TO BE CLARIFIED)
Step 1
We consider the base case of \(k=0\).
Step 2
We can extend this to \(k \ge 0\).