李毅吧 关注:34,125,104贴子:993,546,424

回复:谁知道这个排列组合有多少种

只看楼主收藏回复



IP属地:浙江16楼2011-05-01 18:41
回复
    1024,想列到蛋裂啊


    IP属地:福建17楼2011-05-01 18:54
    回复
      2026-01-10 11:32:10
      广告
      不感兴趣
      开通SVIP免广告


      IP属地:浙江18楼2011-05-01 19:14
      回复
        二进制


        19楼2011-05-01 19:17
        回复
          #include "stdio.h"
          main()
          {    int arrayInt[10]={0,0,0,0,0,0,0,0,0,0};
               int i=0,result;
               int j,k=0;
               for(;i<1024;i++)
                   {
                       result=i;
                       for(j=9;j>=0;j--)
                       {
                       if(result)
                       {
                       arrayInt[j]=result%2;
                       result/=2;
                       }
                       }
                          
                       printf("%d",arrayInt[0]);
                       printf("%d",arrayInt[1]);
                       printf("%d",arrayInt[2]);
                       printf("%d",arrayInt[3]);
                       printf("%d",arrayInt[4]);
                       printf("%d",arrayInt[5]);
                       printf("%d",arrayInt[6]);
                       printf("%d",arrayInt[7]);
                       printf("%d",arrayInt[8]);
                       printf("%d",arrayInt[9]);
                       printf("\n");
                       for(;k<=9;k++)
                       {
                       arrayInt[k]=0;
                       }
                   }
               getchar();
          }
          C的一个粗劣算法,可以列举出来


          20楼2011-05-01 19:17
          回复
            只求结果 谢谢啊


            IP属地:浙江21楼2011-05-01 20:57
            回复