16个数字,2个为一组,不能重复,8组为一轮,找出所有的排列方式

代码:https://github.com/ILoveStudyAndWork/pair-generator

结果:一共15大组

Round0:
[11,12]
[13,14]
[15,16]
[1,2]
[3,4]
[5,6]
[7,8]
[9,10]

Round1:
[11,13]
[12,14]
[1,15]
[2,16]
[3,5]
[4,6]
[7,9]
[8,10]

Round2:
[12,13]
[11,14]
[1,16]
[2,15]
[4,5]
[3,6]
[8,9]
[7,10]

Round3:
[11,15]
[12,16]
[1,13]
[2,14]
[3,7]
[4,8]
[5,9]
[6,10]

Round4:
[12,15]
[11,16]
[1,14]
[13,2]
[4,7]
[3,8]
[6,9]
[5,10]

Round5:
[13,15]
[14,16]
[11,1]
[12,2]
[5,7]
[6,8]
[3,9]
[4,10]

Round6:
[14,15]
[13,16]
[12,1]
[11,2]
[6,7]
[5,8]
[4,9]
[3,10]

Round7:
[11,3]
[12,4]
[13,5]
[14,6]
[15,7]
[16,8]
[1,9]
[2,10]

Round8:
[12,3]
[11,4]
[14,5]
[13,6]
[16,7]
[15,8]
[2,9]
[1,10]

Round9:
[13,3]
[14,4]
[11,5]
[12,6]
[1,7]
[2,8]
[15,9]
[16,10]

Round10:
[14,3]
[13,4]
[12,5]
[11,6]
[2,7]
[1,8]
[16,9]
[15,10]

Round11:
[3,15]
[4,16]
[1,5]
[2,6]
[11,7]
[12,8]
[13,9]
[14,10]

Round12:
[3,16]
[15,4]
[2,5]
[1,6]
[12,7]
[11,8]
[14,9]
[13,10]

Round13:
[1,3]
[2,4]
[15,5]
[16,6]
[13,7]
[14,8]
[11,9]
[12,10]

Round14:
[2,3]
[1,4]
[16,5]
[15,6]
[14,7]
[13,8]
[12,9]
[11,10]

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值