822. Square the Smallest

A list initially contains the numbers . At each round, the smallest number in the list is replaced by its square. If there is more than one such number, then only one of them is replaced.

For example, below are the first three rounds for :

Let be the sum of all numbers in the list after rounds.

For example, . Also .

Find . Give your answer modulo .

822. 把最小数平方

某列表最初含有 这些数。

每一轮中,列表中最小的一个数会被平方。如果有多个最小数,我们只平方其中一个。例如,下面是 时的前三轮操作:

轮后列表中所有数字之和。例如,。同样可得

之值。


这个链接 回到源站。

这个链接 回到详细版题目目录。