Sequence Growing Easy

AtCoder - agc024_c