2022-11-20 01:02发布
你搞笑吧,19995中不同组合,这么多你用excel可以放下吗,我的机子差点死机了.以下程序当然不是Excel做的了,总字数超过10000字无法显示完全.你将n
最多设置5个标签!
以下程序当然不是Excel做的了,总字数超过10000字无法显示完全.
你将n变成101,102就可以出类似结果了.
n=100;
array = {};
For[i1 = 1, i1 <= 33, i1++,
For[i2 = i1 + 1, i2 <= 33, i2++,
For[i3 = i2 + 1, i3 <= 33, i3++,
For[i4 = i3 + 1, i4 <= 33, i4++,
For[i5 = i4 + 1, i5 <= 33, i5++,
For[i6 = i5 + 1, i6 <= 33, i6++,
varp = i1 + i2 + i3 + i4 + i5 + i6;
If[varp == n,
array = Append[array, {i1, i2, i3, i4, i5, i6}];
]
]
]
]
]
]
]
array
{1,2,3,29,32,33},
{1,2,3,30,31,33},
{1,2,4,28,32,33},
{1,2,4,29,31,33},
{1,2,4,30,31,32},
{1,2,5,27,32,33},
{1,2,5,28,31,33},
{1,2,5,29,30,33},
{1,2,5,29,31,32},
{1,2,6,26,32,33},
{1,2,6,27,31,33},
{1,2,6,28,30,33},
{1,2,6,28,31,32},
{1,2,6,29,30,32},
{1,2,7,25,32,33},
{1,2,7,26,31,33},
{1,2,7,27,30,33},
{1,2,7,27,31,32},
{1,2,7,28,29,33},
{1,2,7,28,30,32},
{1,2,7,29,30,31},
{1,2,8,24,32,33},
{1,2,8,25,31,33},
{1,2,8,26,30,33},
{1,2,8,26,31,32},
{1,2,8,27,29,33},
{1,2,8,27,30,32},
{1,2,8,28,29,32},
{1,2,8,28,30,31},
{1,2,9,23,32,33},
{1,2,9,24,31,33},
{1,2,9,25,30,33},
{1,2,9,25,31,32},
{1,2,9,26,29,33},
{1,2,9,26,30,32},
{1,2,9,27,28,33},
{1,2,9,27,29,32},
{1,2,9,27,30,31},
{1,2,9,28,29,31},
{1,2,10,22,32,33},
{1,2,10,23,31,33},
{1,2,10,24,30,33},
{1,2,10,24,31,32},
{1,2,10,25,29,33},
{1,2,10,25,30,32},
{1,2,10,26,28,33},
{1,2,10,26,29,32},
{1,2,10,26,30,31},
{1,2,10,27,28,32},
{1,2,10,27,29,31},
{1,2,10,28,29,30},
{1,2,11,21,32,33},
{1,2,11,22,31,33},
{1,2,11,23,30,33},
{1,2,11,23,31,32},
{1,2,11,24,29,33},
{1,2,11,24,30,32},
{1,2,11,25,28,33},
{1,2,11,25,29,32},
{1,2,11,25,30,31},
{1,2,11,26,27,33},
{1,2,11,26,28,32},
{1,2,11,26,29,31},
{1,2,11,27,28,31},
{1,2,11,27,29,30},
{1,2,12,20,32,33},
{1,2,12,21,31,33},
{1,2,12,22,30,33},
{1,2,12,22,31,32},
{1,2,12,23,29,33},
{1,2,12,23,30,32},
{1,2,12,24,28,33},
{1,2,12,24,29,32},
{1,2,12,24,30,31},
{1,2,12,25,27,33},
{1,2,12,25,28,32},
{1,2,12,25,29,31},
{1,2,12,26,27,32},
{1,2,12,26,28,31},
{1,2,12,26,29,30},
{1,2,12,27,28,30},
{1,2,13,19,32,33},
{1,2,13,20,31,33},
{1,2,13,21,30,33},
{1,2,13,21,31,32},
{1,2,13,22,29,33},
{1,2,13,22,30,32},
{1,2,13,23,28,33},
{1,2,13,23,29,32},
{1,2,13,23,30,31},
{1,2,13,24,27,33},
{1,2,13,24,28,32},
{1,2,13,24,29,31},
{1,2,13,25,26,33},
{1,2,13,25,27,32},
{1,2,13,25,28,31},
{1,2,13,25,29,30},
{1,2,13,26,27,31},
{1,2,13,26,28,30},
{1,2,13,27,28,29},
{1,2,14,18,32,33},
{1,2,14,19,31,33},
{1,2,14,20,30,33},
{1,2,14,20,31,32},
{1,2,14,21,29,33},
{1,2,14,21,30,32},
{1,2,14,22,28,33},
{1,2,14,22,29,32},
{1,2,14,22,30,31},
{1,2,14,23,27,33},
{1,2,14,23,28,32},
{1,2,14,23,29,31},
{1,2,14,24,26,33},
{1,2,14,24,27,32},
{1,2,14,24,28,31},
{1,2,14,24,29,30},
{1,2,14,25,26,32},
{1,2,14,25,27,31},
{1,2,14,25,28,30},
{1,2,14,26,27,30},
{1,2,14,26,28,29},
{1,2,15,17,32,33},
{1,2,15,18,31,33},
{1,2,15,19,30,33},
{1,2,15,19,31,32},
{1,2,15,20,29,33},
{1,2,15,20,30,32},
{1,2,15,21,28,33},
{1,2,15,21,29,32},
{1,2,15,21,30,31},
{1,2,15,22,27,33},
{1,2,15,22,28,32},
{1,2,15,22,29,31},
{1,2,15,23,26,33},
{1,2,15,23,27,32},
{1,2,15,23,28,31},
{1,2,15,23,29,30},
{1,2,15,24,25,33},
{1,2,15,24,26,32},
{1,2,15,24,27,31},
{1,2,15,24,28,30},
{1,2,15,25,26,31},
{1,2,15,25,27,30},
{1,2,15,25,28,29},
{1,2,15,26,27,29},
{1,2,16,17,31,33},
{1,2,16,18,30,33},
{1,2,16,18,31,32},
{1,2,16,19,29,33},
{1,2,16,19,30,32},
{1,2,16,20,28,33},
{1,2,16,20,29,32},
{1,2,16,20,30,31},
{1,2,16,21,27,33},
{1,2,16,21,28,32},
{1,2,16,21,29,31},
{1,2,16,22,26,33},
{1,2,16,22,27,32},
{1,2,16,22,28,31},
{1,2,16,22,29,30},
{1,2,16,23,25,33},
{1,2,16,23,26,32},
{1,2,16,23,27,31},
{1,2,16,23,28,30},
{1,2,16,24,25,32},
{1,2,16,24,26,31},
{1,2,16,24,27,30},
{1,2,16,24,28,29},
{1,2,16,25,26,30},
{1,2,16,25,27,29},
{1,2,16,26,27,28},
{1,2,17,18,29,33},
{1,2,17,18,30,32},
{1,2,17,19,28,33},
{1,2,17,19,29,32},
{1,2,17,19,30,31},
{1,2,17,20,27,33},
{1,2,17,20,28,32},
{1,2,17,20,29,31},
{1,2,17,21,26,33},
{1,2,17,21,27,32},
{1,2,17,21,28,31},
{1,2,17,21,29,30},
{1,2,17,22,25,33},
{1,2,17,22,26,32},
{1,2,17,22,27,31},
{1,2,17,22,28,30},
{1,2,17,23,24,33},
{1,2,17,23,25,32},
{1,2,17,23,26,31},
{1,2,17,23,27,30},
{1,2,17,23,28,29},
{1,2,17,24,25,31},
{1,2,17,24,26,30},
{1,2,17,24,27,29},
{1,2,17,25,26,29},
{1,2,17,25,27,28},
{1,2,18,19,27,33},
{1,2,18,19,28,32},
{1,2,18,19,29,31},
{1,2,18,20,26,33},
{1,2,18,20,27,32},
{1,2,18,20,28,31},
{1,2,18,20,29,30},
{1,2,18,21,25,33},
{1,2,18,21,26,32},
{1,2,18,21,27,31},
{1,2,18,21,28,30},
{1,2,18,22,24,33},
{1,2,18,22,25,32},
{1,2,18,22,26,31},
{1,2,18,22,27,30},
{1,2,18,22,28,29},
{1,2,18,23,24,32},
{1,2,18,23,25,31},
{1,2,18,23,26,30},
{1,2,18,23,27,29},
{1,2,18,24,25,30},
{1,2,18,24,26,29},
{1,2,18,24,27,28},
{1,2,18,25,26,28},
{1,2,19,20,25,33},
{1,2,19,20,26,32},
{1,2,19,20,27,31},
{1,2,19,20,28,30},
{1,2,19,21,24,33},
{1,2,19,21,25,32},
{1,2,19,21,26,31},
{1,2,19,21,27,30},
{1,2,19,21,28,29},
{1,2,19,22,23,33},
{1,2,19,22,24,32},
{1,2,19,22,25,31},
{1,2,19,22,26,30},
{1,2,19,22,27,29},
{1,2,19,23,24,31},
{1,2,19,23,25,30},
{1,2,19,23,26,29},
{1,2,19,23,27,28},
{1,2,19,24,25,29},
{1,2,19,24,26,28},
{1,2,19,25,26,27},
{1,2,20,21,23,33},
{1,2,20,21,24,32},
{1,2,20,21,25,31},
{1,2,20,21,26,30},
{1,2,20,21,27,29},
{1,2,20,22,23,32},
{1,2,20,22,24,31},
{1,2,20,22,25,30},
{1,2,20,22,26,29},
{1,2,20,22,27,28},
{1,2,20,23,24,30},
{1,2,20,23,25,29},
{1,2,20,23,26,28},
{1,2,20,24,25,28},
{1,2,20,24,26,27},
{1,2,21,22,23,31},
{1,2,21,22,24,30},
{1,2,21,22,25,29},
{1,2,21,22,26,28},
{1,2,21,23,24,29},
{1,2,21,23,25,28},
{1,2,21,23,26,27},
{1,2,21,24,25,27},
{1,2,22,23,24,28},
{1,2,22,23,25,27},
{1,2,22,24,25,26},
{1,3,4,27,32,33},
{1,3,4,28,31,33},
{1,3,4,29,30,33},
{1,3,4,29,31,32},
{1,3,5,26,32,33},
{1,3,5,27,31,33},
{1,3,5,28,30,33},
{1,3,5,28,31,32},
{1,3,5,29,30,32},
{1,3,6,25,32,33},
{1,3,6,26,31,33},
{1,3,6,27,30,33},
{1,3,6,27,31,32},
{1,3,6,28,29,33},
{1,3,6,28,30,32},
{1,3,6,29,30,31},
{1,3,7,24,32,33},
{1,3,7,25,31,33},
{1,3,7,26,30,33},
{1,3,7,26,31,32},
{1,3,7,27,29,33},
{1,3,7,27,30,32},
{1,3,7,28,29,32},
{1,3,7,28,30,31},
{1,3,8,23,32,33},
{1,3,8,24,31,33},
{1,3,8,25,30,33},
{1,3,8,25,31,32},
{1,3,8,26,29,33},
{1,3,8,26,30,32},
{1,3,8,27,28,33},
{1,3,8,27,29,32},
{1,3,8,27,30,31},
{1,3,8,28,29,31},
{1,3,9,22,32,33},
{1,3,9,23,31,33},
{1,3,9,24,30,33},
{1,3,9,24,31,32},
{1,3,9,25,29,33},
{1,3,9,25,30,32},
{1,3,9,26,28,33},
{1,3,9,26,29,32},
{1,3,9,26,30,31},
{1,3,9,27,28,32},
{1,3,9,27,29,31},
{1,3,9,28,29,30},
{1,3,10,21,32,33},
{1,3,10,22,31,33},
{1,3,10,23,30,33},
{1,3,10,23,31,32},
{1,3,10,24,29,33},
{1,3,10,24,30,32},
{1,3,10,25,28,33},
{1,3,10,25,29,32},
{1,3,10,25,30,31},
{1,3,10,26,27,33},
{1,3,10,26,28,32},
{1,3,10,26,29,31},
{1,3,10,27,28,31},
{1,3,10,27,29,30},
{1,3,11,20,32,33},
{1,3,11,21,31,33},
{1,3,11,22,30,33},
{1,3,11,22,31,32},
{1,3,11,23,29,33},
{1,3,11,23,30,32},
{1,3,11,24,28,33},
{1,3,11,24,29,32},
{1,3,11,24,30,31},
{1,3,11,25,27,33},
{1,3,11,25,28,32},
{1,3,11,25,29,31},
{1,3,11,26,27,32},
{1,3,11,26,28,31},
{1,3,11,26,29,30},
{1,3,11,27,28,30},
{1,3,12,19,32,33},
{1,3,12,20,31,33},
{1,3,12,21,30,33},
{1,3,12,21,31,32},
{1,3,12,22,29,33},
{1,3,12,22,30,32},
{1,3,12,23,28,33},
{1,3,12,23,29,32},
{1,3,12,23,30,31},
{1,3,12,24,27,33},
{1,3,12,24,28,32},
{1,3,12,24,29,31},
{1,3,12,25,26,33},
{1,3,12,25,27,32},
{1,3,12,25,28,31},
{1,3,12,25,29,30},
{1,3,12,26,27,31},
{1,3,12,26,28,30},
{1,3,12,27,28,29},
{1,3,13,18,32,33},
{1,3,13,19,31,33},
{1,3,13,20,30,33},
{1,3,13,20,31,32},
{1,3,13,21,29,33},
{1,3,13,21,30,32},
{1,3,13,22,28,33},
{1,3,13,22,29,32},
{1,3,13,22,30,31},
{1,3,13,23,27,33},
{1,3,13,23,28,32},
{1,3,13,23,29,31},
{1,3,13,24,26,33},
{1,3,13,24,27,32},
{1,3,13,24,28,31},
{1,3,13,24,29,30},
{1,3,13,25,26,32},
{1,3,13,25,27,31},
{1,3,13,25,28,30},
{1,3,13,26,27,30},
{1,3,13,26,28,29},
{1,3,14,17,32,33},
{1,3,14,18,31,33},
{1,3,14,19,30,33},
{1,3,14,19,31,32},
{1,3,14,20,29,33},
{1,3,14,20,30,32},
{1,3,14,21,28,33},
{1,3,14,21,29,32},
{1,3,14,21,30,31},
{1,3,14,22,27,33},
{1,3,14,22,28,32},
{1,3,14,22,29,31},
{1,3,14,23,26,33},
{1,3,14,23,27,32},
{1,3,14,23,28,31},
{1,3,14,23,29,30},
{1,3,14,24,25,33},
{1,3,14,24,26,32},
{1,3,14,24,27,31},
{1,3,14,24,28,30},
{1,3,14,25,26,31},
{1,3,14,25,27,30},
{1,3,14,25,28,29},
{1,3,14,26,27,29},
{1,3,15,16,32,33},
{1,3,15,17,31,33},
{1,3,15,18,30,33},
{1,3,15,18,31,32},
{1,3,15,19,29,33},
{1,3,15,19,30,32},
{1,3,15,20,28,33},
{1,3,15,20,29,32},
{1,3,15,20,30,31},
{1,3,15,21,27,33},
{1,3,15,21,28,32},
{1,3,15,21,29,31},
{1,3,15,22,26,33},
{1,3,15,22,27,32},
{1,3,15,22,28,31},
{1,3,15,22,29,30},
{1,3,15,23,25,33},
{1,3,15,23,26,32},
{1,3,15,23,27,31},
{1,3,15,23,28,30},
{1,3,15,24,25,32},
{1,3,15,24,26,31},
{1,3,15,24,27,30},
{1,3,15,24,28,29},
{1,3,15,25,26,30},
{1,3,15,25,27,29},
{1,3,15,26,27,28},
{1,3,16,17,30,33},
{1,3,16,17,31,32},
{1,3,16,18,29,33},
{1,3,16,18,30,32},
{1,3,16,19,28,33},
{1,3,16,19,29,32},
{1,3,16,19,30,31},
{1,3,16,20,27,33},
{1,3,16,20,28,32},
{1,3,16,20,29,31},
{1,3,16,21,26,33},
{1,3,16,21,27,32},
{1,3,16,21,28,31},
{1,3,16,21,29,30},
{1,3,16,22,25,33},
{1,3,16,22,26,32},
{1,3,16,22,27,31},
{1,3,16,22,28,30},
{1,3,16,23,24,33},
{1,3,16,23,25,32},
{1,3,16,23,26,31},
{1,3,16,23,27,30},
{1,3,16,23,28,29},
{1,3,16,24,25,31},
{1,3,16,24,26,30},
{1,3,16,24,27,29},
{1,3,16,25,26,29},
{1,3,16,25,27,28},
{1,3,17,18,28,33},
{1,3,17,18,29,32},
{1,3,17,18,30,31},
{1,3,17,19,27,33},
{1,3,17,19,28,32},
{1,3,17,19,29,31},
{1,3,17,20,26,33},
{1,3,17,20,27,32},
{1,3,17,20,28,31},
{1,3,17,20,29,30},
{1,3,17,21,25,33},
{1,3,17,21,26,32},
{1,3,17,21,27,31},
{1,3,17,21,28,30},
{1,3,17,22,24,33},
{1,3,17,22,25,32},
{1,3,17,22,26,31},
{1,3,17,22,27,30},
{1,3,17,22,28,29},
{1,3,17,23,24,32},
{1,3,17,23,25,31},
{1,3,17,23,26,30},
{1,3,17,23,27,29},
{1,3,17,24,25,30},
{1,3,17,24,26,29},
{1,3,17,24,27,28},
{1,3,17,25,26,28},
{1,3,18,19,26,33},
{1,3,18,19,27,32},
{1,3,18,19,28,31},
{1,3,18,19,29,30},
{1,3,18,20,25,33},
{1,3,18,20,26,32},
{1,3,18,20,27,31},
{1,3,18,20,28,30},
{1,3,18,21,24,33},
{1,3,18,21,25,32},
{1,3,18,21,26,31},
{1,3,18,21,27,30},
{1,3,18,21,28,29},
{1,3,18,22,23,33},
{1,3,18,22,24,32},
{1,3,18,22,25,31},
{1,3,18,22,26,30},
{1,3,18,22,27,29},
{1,3,18,23,24,31},
{1,3,18,23,25,30},
{1,3,18,23,26,29},
{1,3,18,23,27,28},
{1,3,18,24,25,29},
{1,3,18,24,26,28},
{1,3,18,25,26,27},
{1,3,19,20,24,33},
{1,3,19,20,25,32},
{1,3,19,20,26,31},
{1,3,19,20,27,30},
{1,3,19,20,28,29},
{1,3,19,21,23,33},
{1,3,19,21,24,32},
{1,3,19,21,25,31},
{1,3,19,21,26,30},
{1,3,19,21,27,29},
{1,3,19,22,23,32},
{1,3,19,22,24,31},
{1,3,19,22,25,30},
{1,3,19,22,26,29},
{1,3,19,22,27,28},
{1,3,19,23,24,30},
{1,3,19,23,25,29},
{1,3,19,23,26,28},
{1,3,19,24,25,28},
{1,3,19,24,26,27},
{1,3,20,21,22,33},
{1,3,20,21,23,32},
{1,3,20,21,24,31},
{1,3,20,21,25,30},
{1,3,20,21,26,29},
{1,3,20,21,27,28},
{1,3,20,22,23,31},
{1,3,20,22,24,30},
{1,3,20,22,25,29},
{1,3,20,22,26,28},
{1,3,20,23,24,29},
{1,3,20,23,25,28},
{1,3,20,23,26,27},
{1,3,20,24,25,27},
{1,3,21,22,23,30},
{1,3,21,22,24,29},
{1,3,21,22,25,28},
{1,3,21,22,26,27},
{1,3,21,23,24,28},
{1,3,21,23,25,27},
{1,3,21,24,25,26},
{1,3,22,23,24,27},
{1,3,22,23,25,26},
{1,4,5,25,32,33},
{1,4,5,26,31,33},
{1,4,5,27,30,33},
{1,4,5,27,31,32},
{1,4,5,28,29,33},
{1,4,5,28,30,32},
{1,4,5,29,30,31},
{1,4,6,24,32,33},
{1,4,6,25,31,33},
{1,4,6,26,30,33},
{1,4,6,26,31,32},
{1,4,6,27,29,33},
{1,4,6,27,30,32},
{1,4,6,28,29,32},
{1,4,6,28,30,31},
{1,4,7,23,32,33},
{1,4,7,24,31,33},
{1,4,7,25,30,33},
{1,4,7,25,31,32},
{1,4,7,26,29,33},
{1,4,7,26,30,32},
{1,4,7,27,28,33},
{1,4,7,27,29,32},
{1,4,7,27,30,31},
{1,4,7,28,29,31},
{1,4,8,22,32,33},
{1,4,8,23,31,33},
{1,4,8,24,30,33},
{1,4,8,24,31,32},
{1,4,8,25,29,33},
{1,4,8,25,30,32},
{1,4,8,26,28,33},
{1,4,8,26,29,32},
{1,4,8,26,30,31},
......
一周热门 更多>