30 
 
        
      
      アイデンティティマトリックスの構築
      
  課題は非常に簡単です。入力が整数のn場合、n x n単位行列を出力します。単位行列は、1sが左上から右下に及ぶものです。作成した単位行列を返すまたは出力するプログラムまたは関数を作成します。出力は、2D配列、またはスペース/タブと改行で区切られた数値です。 入出力の例 1: [[1]] 2: [[1, 0], [0, 1]] 3: [[1, 0, 0], [0, 1, 0], [0, 0, 1]] 4: [[1, 0, 0, 0], [0, 1, 0, 0], [0, 0, 1, 0], [0, 0, 0, 1]] 5: [[1, 0, 0, 0, 0], [0, 1, 0, 0, 0], [0, …
      
        
          
                   43
                
        
        
          
                  
                    code-golf 
                  
                    math 
                  
                    matrix 
                  
                    linear-algebra 
                  
                    binary-matrix 
                  
                    code-challenge 
                  
                    polyglot 
                  
                    code-golf 
                  
                    restricted-source 
                  
                    programming-puzzle 
                  
                    expression-building 
                  
                    apl 
                  
                    code-challenge 
                  
                    image-processing 
                  
                    compression 
                  
                    code-golf 
                  
                    puzzle-solver 
                  
                    code-golf 
                  
                    grid 
                  
                    code-golf 
                  
                    number 
                  
                    number-theory 
                  
                    code-golf 
                  
                    array-manipulation 
                  
                    sorting 
                  
                    code-golf 
                  
                    string 
                  
                    balanced-string 
                  
                    code-golf 
                  
                    puzzle-solver 
                  
                    code-golf 
                  
                    string 
                  
                    decision-problem 
                  
                    code-golf 
                  
                    path-finding 
                  
                    puzzle-solver 
                  
                    graph-theory 
                  
                    code-golf 
                  
                    string 
                  
                    encode 
                  
                    networking 
                  
                    code-golf 
                  
                    code-golf 
                  
                    string 
                  
                    chemistry 
                  
                    code-golf 
                  
                    date 
                  
                    code-golf 
                  
                    decision-problem 
                  
                    graph-theory 
                  
                    code-golf 
                  
                    ascii-art 
                  
                    graph-theory 
                  
                    code-golf 
                  
                    string