Powered Addition

2020 VietMX 0

You have an array $a$ of length $n$. For every positive integer $x$ you are going to perform the following operation during the $x$-th second: […]