for i in range(n):<p>for j in range(n):</p><p>for k in range(n):</p><p>c[i][j] += a[i][k] * b[k][j]</p><p>下面的代码是n阶矩阵乘法,它的时间复杂度为( ) </p>
for i in range(n):
for j in range(n):
for k in range(n):
c[i][j] += a[i][k] * b[k][j]
下面的代码是n阶矩阵乘法,它的时间复杂度为( )
发布时间:2024-05-23 21:10:11