Tyago Andrade

Membros
  • Content Count

    1
  • Joined

  • Last visited

Community Reputation

0 Neutro

1 Follower

About Tyago Andrade

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. from numpy import * from numpy.linalg import * tab = array([ [0,2,11, 6,15,11,1], [2,0, 7,12, 4, 2,15], [11,7,0,11,8,3,13], [6,12,11,0,10,2,1], [15,4,8,10,0,5,13], [11,2,3,2,5,0, 14], [1,15,13,1,13,14,0] ]) tempo = 0 c1 = int(input("Digite o numero da cidade:")) while c1 > 0: a = int((c1 / 111) - 1) c1 = int(input("Digite o numero da cidade:")) if c1 > 0: b = int((c1 / 111) - 1) x = tab[a,b] tempo = tempo + x print(tempo)