Skip to content

Commit

Permalink
2.9 - removendo import rich
Browse files Browse the repository at this point in the history
  • Loading branch information
vbuxbaum committed Nov 14, 2021
1 parent 46f9e7d commit f72125f
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions 2_paradigmas/09_avalia_mult_matrizes.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from rich import print


def main():
numero_matrizes = coleta_numero_inteiro("Número de matrizes")

Expand Down Expand Up @@ -46,11 +43,11 @@ def imprime_matriz(matriz: list[list]):
print("]")


def custos(matriz_de_zeros: list[list], dimensoes: list, i, j, k):
def custos(matriz_de_zeros: list[list], dimensoes: list, i1, i2, i3):
return (
matriz_de_zeros[i - 1][k - 1]
+ matriz_de_zeros[k][j - 1]
+ (dimensoes[i - 1] * dimensoes[k] * dimensoes[j])
matriz_de_zeros[i1 - 1][i3 - 1]
+ matriz_de_zeros[i3][i2 - 1]
+ (dimensoes[i1 - 1] * dimensoes[i3] * dimensoes[i2])
)


Expand Down

0 comments on commit f72125f

Please sign in to comment.