解释一下这段代码内循环运行几次以及是怎么运行的。

for (int i = 0; i < 3; i++){

     for (int j = 0; j <3; j++){

     

      int k = 0;

      int[] list = new int[9];

      for (int row = i*3; row < i * 3 + 3; row ++)

        for(int column = j * 3; column < j * 3 + 3; column++)

           list[k++] = grid[row][column];

      

       if (!is1To9(list))

         return false;

      }

    }

  

    return true;


狼顾之相1995
浏览 1368回答 3
3回答

慕的地8582982

ATAAAJEVSJGKVFFCMNHRUAUAMGTJMABPTGIVQUWZZMMMKKGQJQBORDGPCEOSJMWTGDUWZUIZSFSDIZCFFJYBYVRPHDAUPYVMAZGJMOSWMCRJMKPCGHUDQXYWLVZPOYMAXNCVKHLVOHNVLKXSYFVYZPVAUQUKKLEIISATWEAJDAKLBWSPACZPYSMSOOHZVBCCFSTQTZCVUOZVIOHZMIKHIIFMMPGOQCMLVCQEAAIENQGWTQLLIEKNWMCTQGMJGZJADSCRNUVWCRAXSUWMYMCYBSOFBLGGIYYVYVLTPFACPEUXOLHQTAURUWMJYHRABGWRMCLUKTPCSHSIYOLHXVGDHVQMILBYIPLBLAEUDNDNUSVUDTLVRAJDYHYNPLCFOYDZBXEAJAXHYEPSLBOLHEHEEMBZDMBROXOUFBUWMCZOEGZUQMCLHEORAAEAHWZWMVKHNMVULCSCYOEROLYMVYUQGXKOLNJTENJGJWEAZOEBRUDUADTNJYUYIQMZOEUXAKNWTJCXZZBRUWMJUCLVTPZPNVZBIHSKTDGNXAJQNDKQGTQAQPZJPBYORUEHEKQFSIRUKUKZRSITBYBYUEHBOLTIWGKMJLLOROEGWFOYWWETLVLOYCTHUSVJLVROYMWJLVRZJMKTQERAPKMCSCYAWCYNNDGCSIKHSQMZVLUQFHDWBXMBXOJHPFVZVQNDMURGQQYISHXUWHDZGXZBRUOLVTWRGQWSOIZBLUTQAZODZVEOCPAEYTPZIYIXQSVXGOSVSQYLIXAWYZCLOXQLVZPYVRNWMEUCLAXAQYBKWTCDZWSHDTITVSBRGJHQEAFZPQMOKYIEAMZCFHDNWFVRWAQIKMPRBWSXEBCLNDMBPYRRBORHKAPFANJF
打开App,查看更多内容
随时随地看视频慕课网APP

相关分类

Java