Problem 616
Creative numbers
Alice plays the following game, she starts with a list of integers
- remove two elements
and from and add to - or conversely remove an element
from that can be written as , with and being two integers such that , and add both and to
For example starting from the list
Note that the same integer is allowed to appear multiple times in the list.
An integer
Find the sum of all creative integers less than or equal to
创意数
爱丽丝正在这样一个游戏:她从整数列表
- 从
中去除两个元素 和 ,并将 加入 - 或者相反地,从
中去除一个可以写成 形式的元素 ,其中 和 均为整数且 ,然后将 和 加入
例如,从整数列表
注意在列表中同一整数允许重复出现多次。
称整数
找出所有小于或等于
Gitalking ...