Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
在在线活动中,我们必须构建一个算法来生成如下给出的系列......,对于输入 6,算法必须生成......
123 624 693 4812 15510 12186。
我们想了很多,对算法真的很沮丧。任何人都可以帮助我们...
编辑:得到算法。感谢 Irit katriel
看起来第 i 个数字由 i,2*i 和 3*i 连接而成。连接的顺序每次移动 1。