摘要: 洛谷题面 题目大意 给一个长度为 \(n\) 的序列 \(a_1,a_2,\dots,a_n\),每次可以往序列中插入任意个整数,求最少插入多少个整数时 \(\forall i,a_i\le i\)。 题目分析 既然想要保持任意 \(a_i\le i\),那么容易想到在 \(a_{i-1}\) 和 阅读全文
posted @ 2021-11-06 20:46 Coros_Trusds 阅读(44) 评论(0) 推荐(0)