#abc272e. [abc272_e]Add and Mex

[abc272_e]Add and Mex

你有一个长度为 N N 的整数数列 A A ,然后进行 M M 次以下操作:

  • 将每个数 Ai A_i 增加 i i 。然后求数列 A A 中没有的最小的非负整数。