如果有数列(1,2,3)
现在想生成:
(0,0,0)
(0,0,1)
(0,0,2)
(0,0,3)
(0,1,0)
(0,1,1)
(0,1,2)
(0,1,3)
...
就是每个数不超过原来数列的值。 应该不是permutation, 这叫什么?
可不可写个什么程序生成?
如果有数列(1,2,3)
现在想生成:
(0,0,0)
(0,0,1)
(0,0,2)
(0,0,3)
(0,1,0)
(0,1,1)
(0,1,2)
(0,1,3)
...
就是每个数不超过原来数列的值。 应该不是permutation, 这叫什么?
可不可写个什么程序生成?
• 也是permutation,4^3=64 -paterman- ♂ (32 bytes) () 05/21/2022 postreply 10:19:37
• 应该不是Permutation -shantouchen- ♂ (411 bytes) () 05/21/2022 postreply 10:27:42
• N-sequences less than or equal to (1,2,3) -trivial- ♀ (248 bytes) () 05/21/2022 postreply 10:57:07
• 你这(1,2,3)不是数列(Number Sequence)吧 -aguafresh- ♂ (0 bytes) () 05/21/2022 postreply 12:45:58
• 其实可以用base 4的所有三位及以下的数 -光猜不想- ♂ (0 bytes) () 05/22/2022 postreply 12:30:42
• Permutation with Repetition -光猜不想- ♂ (0 bytes) () 05/22/2022 postreply 12:32:22