davegimo

Untitled

Nov 17th, 2020
544
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. def ristorante(G,dist):
  2.     conta=0
  3.     T=[]
  4.  
  5.     for i in range(len(dist)):
  6.     min=0
  7.     flag = False
  8.  
  9.         if kind(G,i)== R and conta < 3 and dist[i] < dist[min]:
  10.            min=i
  11.        flag = True
  12.     if flag:
  13.             conta+=1
  14.             T.append(dist[min])
  15.             dist.pop(dist[min])
  16.     else:
  17.         break
  18.  
  19.     return T
RAW Paste Data