Py
Py
while tabela[-1][1] != 0:
q = int(tabela[-1][0]/tabela[-1][1])
r = tabela[-1][0] - tabela[-1][1]*q
tabela[-1][2] = q
tabela[-1][3] = r
tabela.append([tabela[-1][1], tabela[-1][3], None, None, None, None])
tabela[-1][-2] = (0,1)
tabela[-1][-1] = (1,0)
num_linhas = len(tabela)
tabela[i][-2] = yl
tabela[i][-1] = (xl[0] - q*yl[0], xl[1] - q*yl[1])
if tabela[0][4][1] < 0:
print("No Solution")
else:
print("No Solution")