1-25,这25个数字,6个一组,不能重复,请问能排几组,分别是哪些?怎么做

 我来答
flyingFish211
推荐于2016-11-16 · TA获得超过2.1万个赞
知道大有可为答主
回答量:1.5万
采纳率:50%
帮助的人:1.1亿
展开全部
  一共可以排25*24*23*22*21*20 = 127512000组

  用JAVA实现
  public class Cat {

  public static void main(String[] args) {

  int[] ary = new int[25];
  for(int i = 0; i < ary.length; i++){
  ary[i] = i+1;
  }

  for(int i = 0; i < ary.length; i++){
  for(int j = 0; j < ary.length; j++){
  if(i != j){
  for(int k = 0; k < ary.length; k++){
  if(k != i && k != j){
  for(int m = 0; m < ary.length; m++){
  if(m != i && m != j && m != k){
  for(int n = 0; n < ary.length; n++){
  if(n != i && n != k && n != j && n != m){
  for(int l = 0; l < ary.length; l++){
  if(l != i && l != j && l != k && l != m && l != n){
  System.out.println(ary[i] + "," + ary[j] + ","
  + ary[k] + "," + ary[m] + "," + ary[n] + "," + ary[l]);
  }
  }
  }
  }
  }
  }
  }
  }
  }
  }
  }

  }

  }

  --------------部分运行结果
  1,4,13,18,15,12
  1,4,13,18,15,14
  1,4,13,18,15,16
  1,4,13,18,15,17
  1,4,13,18,15,19
  1,4,13,18,15,20
  1,4,13,18,15,21
  1,4,13,18,15,22
  1,4,13,18,15,23
  1,4,13,18,15,24
  1,4,13,18,15,25
  1,4,13,18,16,2
  1,4,13,18,16,3
  1,4,13,18,16,5
  1,4,13,18,16,6
  1,4,13,18,16,7
  1,4,13,18,16,8
  1,4,13,18,16,9
  1,4,13,18,16,10
  1,4,13,18,16,11
  1,4,13,18,16,12
  1,4,13,18,16,14
  1,4,13,18,16,15
  1,4,13,18,16,17
  1,4,13,18,16,19
  1,4,13,18,16,20
  1,4,13,18,16,21
  1,4,13,18,16,22
  1,4,13,18,16,23
  1,4,13,18,16,24
  1,4,13,18,16,25
  1,4,13,18,17,2
  1,4,13,18,17,3
  1,4,13,18,17,5
  1,4,13,18,17,6
  1,4,13,18,17,7
  1,4,13,18,17,8
  1,4,13,18,17,9
  1,4,13,18,17,10
  1,4,13,18,17,11
  1,4,13,18,17,12
  1,4,13,18,17,14
  1,4,13,18,17,15
  1,4,13,18,17,16
  1,4,13,18,17,19
  1,4,13,18,17,20
  1,4,13,18,17,21
  1,4,13,18,17,22
  1,4,13,18,17,23
  1,4,13,18,17,24
  1,4,13,18,17,25
  1,4,13,18,19,2
  1,4,13,18,19,3
  1,4,13,18,19,5
  1,4,13,18,19,6
  1,4,13,18,19,7
  1,4,13,18,19,8
  1,4,13,18,19,9
  1,4,13,18,19,10
  1,4,13,18,19,11
  1,4,13,18,19,12
  1,4,13,18,19,14
  1,4,13,18,19,15
  1,4,13,18,19,16
  1,4,13,18,19,17
  1,4,13,18,19,20
  1,4,13,18,19,21
  1,4,13,18,19,22
  1,4,13,18,19,23
  1,4,13,18,19,24
  1,4,13,18,19,25
  1,4,13,18,20,2
  1,4,13,18,20,3
  1,4,13,18,20,5
  1,4,13,18,20,6
  1,4,13,18,20,7
  1,4,13,18,20,8
  1,4,13,18,20,9
  1,4,13,18,20,10
  1,4,13,18,20,11
  1,4,13,18,20,12
  1,4,13,18,20,14
  1,4,13,18,20,15
  1,4,13,18,20,16
  1,4,13,18,20,17
  1,4,13,18,20,19
  1,4,13,18,20,21
  1,4,13,18,20,22
  1,4,13,18,20,23
  1,4,13,18,20,24
  1,4,13,18,20,25
  1,4,13,18,21,2
  1,4,13,18,21,3
  1,4,13,18,21,5
  1,4,13,18,21,6
  1,4,13,18,21,7
  1,4,13,18,21,8
  1,4,13,18,21,9
  1,4,13,18,21,10
  1,4,13,18,21,11
  1,4,13,18,21,12
  1,4,13,18,21,14
  1,4,13,18,21,15
  1,4,13,18,21,16
  1,4,13,18,21,17
  1,4,13,18,21,19
  1,4,13,18,21,20
  1,4,13,18,21,22
  1,4,13,18,21,23
  1,4,13,18,21,24
  1,4,13,18,21,25
  1,4,13,18,22,2
  1,4,13,18,22,3
  1,4,13,18,22,5
  1,4,13,18,22,6
  1,4,13,18,22,7
  1,4,13,18,22,8
  1,4,13,18,22,9
  1,4,13,18,22,10
  1,4,13,18,22,11
  1,4,13,18,22,12
  1,4,13,18,22,14
  1,4,13,18,22,15
  1,4,13,18,22,16
  1,4,13,18,22,17
  1,4,13,18,22,19
  1,4,13,18,22,20
  1,4,13,18,22,21
  1,4,13,18,22,23
  1,4,13,18,22,24
  1,4,13,18,22,25
  1,4,13,18,23,2
  1,4,13,18,23,3
  1,4,13,18,23,5
  1,4,13,18,23,6
  1,4,13,18,23,7
  1,4,13,18,23,8
  1,4,13,18,23,9
  1,4,13,18,23,10
  1,4,13,18,23,11
  1,4,13,18,23,12
  1,4,13,18,23,14
  1,4,13,18,23,15
  1,4,13,18,23,16
  1,4,13,18,23,17
  1,4,13,18,23,19
  1,4,13,18,23,20
  1,4,13,18,23,21
  1,4,13,18,23,22
  1,4,13,18,23,24
  1,4,13,18,23,25
  1,4,13,18,24,2
  1,4,13,18,24,3
  1,4,13,18,24,5
  1,4,13,18,24,6
  1,4,13,18,24,7
  1,4,13,18,24,8
  1,4,13,18,24,9
  1,4,13,18,24,10
  1,4,13,18,24,11
  1,4,13,18,24,12
  1,4,13,18,24,14
  1,4,13,18,24,15
  1,4,13,18,24,16
  1,4,13,18,24,17
  1,4,13,18,24,19
  1,4,13,18,24,20
  1,4,13,18,24,21
  1,4,13,18,24,22
  1,4,13,18,24,23
  1,4,13,18,24,25
  1,4,13,18,25,2
  1,4,13,18,25,3
  1,4,13,18,25,5
  1,4,13,18,25,6
  1,4,13,18,25,7
  1,4,13,18,25,8
  1,4,13,18,25,9
  1,4,13,18,25,10
  1,4,13,18,25,11
  1,4,13,18,25,12
  1,4,13,18,25,14
  1,4,13,18,25,15
  1,4,13,18,25,16
  1,4,13,18,25,17
  1,4,13,18,25,19
  1,4,13,18,25,20
  1,4,13,18,25,21
  1,4,13,18,25,22
  1,4,13,18,25,23
  1,4,13,18,25,24
  1,4,13,19,2,3
  1,4,13,19,2,5
  1,4,13,19,2,6
  1,4,13,19,2,7
  1,4,13,19,2,8
  1,4,13,19,2,9
  1,4,13,19,2,10
  1,4,13,19,2,11
  1,4,13,19,2,12
  1,4,13,19,2,14
  1,4,13,19,2,15
  1,4,13,19,2,16
  1,4,13,19,2,17
  1,4,13,19,2,18
  1,4,13,19,2,20
  1,4,13,19,2,21
  1,4,13,19,2,22
  1,4,13,19,2,23
  1,4,13,19,2,24
  1,4,13,19,2,25
  1,4,13,19,3,2
  1,4,13,19,3,5
  1,4,13,19,3,6
  1,4,13,19,3,7
  1,4,13,19,3,8
  1,4,13,19,3,9
  1,4,13,19,3,10
  1,4,13,19,3,11
  1,4,13,19,3,12
  1,4,13,19,3,14
  1,4,13,19,3,15
  1,4,13,19,3,16
  1,4,13,19,3,17
  1,4,13,19,3,18
  1,4,13,19,3,20
  1,4,13,19,3,21
  1,4,13,19,3,22
  1,4,13,19,3,23
  1,4,13,19,3,24
  1,4,13,19,3,25
  1,4,13,19,5,2
  1,4,13,19,5,3
  1,4,13,19,5,6
  1,4,13,19,5,7
  1,4,13,19,5,8
  1,4,13,19,5,9
  1,4,13,19,5,10
  1,4,13,19,5,11
  1,4,13,19,5,12
  1,4,13,19,5,14
  1,4,13,19,5,15
  1,4,13,19,5,16
  1,4,13,19,5,17
  1,4,13,19,5,18
  1,4,13,19,5,20
  1,4,13,19,5,21
  1,4,13,19,5,22
  1,4,13,19,5,23
  1,4,13,19,5,24
  1,4,13,19,5,25
  1,4,13,19,6,2
  1,4,13,19,6,3
  1,4,13,19,6,5
  1,4,13,19,6,7
  1,4,13,19,6,8
  1,4,13,19,6,9
  1,4,13,19,6,10
  1,4,13,19,6,11
  1,4,13,19,6,12
  1,4,13,19,6,14
  1,4,13,19,6,15
  1,4,13,19,6,16
  1,4,13,19,6,17
  1,4,13,19,6,18
  1,4,13,19,6,20
  1,4,13,19,6,21
  1,4,13,19,6,22
  1,4,13,19,6,23
  1,4,13,19,6,24
  1,4,13,19,6,25
  1,4,13,19,7,2
  1,4,13,19,7,3
  1,4,13,19,7,5
  1,4,13,19,7,6
  1,4,13,19,7,8
  1,4,13,19,7,9
  1,4,13,19,7,10
  1,4,13,19,7,11
  1,4,13,19,7,12
  1,4,13,19,7,14
  1,4,13,19,7,15
  1,4,13,19,7,16
  1,4,13,19,7,17
  1,4,13,19,7,18
  1,4,13,19,7,20
  1,4,13,19,7,21
  1,4,13,19,7,22
  1,4,13,19,7,23
  1,4,13,19,7,24
  1,4,13,19,7,25
  1,4,13,19,8,2
  1,4,13,19,8,3
  1,4,13,19,8,5
  1,4,13,19,8,6
  1,4,13,19,8,7
  1,4,13,19,8,9
  1,4,13,19,8,10
  1,4,13,19,8,11
  1,4,13,19,8,12
  1,4,13,19,8,14
  1,4,13,19,8,15
  1,4,13,19,8,16
  1,4,13,19,8,17
  1,4,13,19,8,18
  1,4,13,19,8,20
  1,4,13,19,8,21
  1,4,13,19,8,22
  1,4,13,19,8,23
  1,4,13,19,8,24
  1,4,13,19,8,25
  1,4,13,19,9,2
  1,4,13,19,9,3
  1,4,13,19,9,5
  1,4,13,19,9,6
  1,4,13,19,9,7
  1,4,13,19,9,8
  1,4,13,19,9,10
  1,4,13,19,9,11
  1,4,13,19,9,12
  1,4,13,19,9,14
  1,4,13,19,9,15
  1,4,13,19,9,16
  1,4,13,19,9,17
  1,4,13,19,9,18
  。。。。
  太多了,总之就是先拿出一个数字出来,然后后面逐个按照次序排列
臧纲xL
2020-11-15
知道答主
回答量:2
采纳率:0%
帮助的人:1046
展开全部
组合六个一组 2 3 4 5 6 7 8 10 11 13 15 16 17 19 21 23 24 27 28 29 30 31 32 33 一共有多少组不能重复
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式