Advertisement
Guest User

Untitled

a guest
Mar 21st, 2019
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. def fct_euristica_h2(self, nod_info):
  2. x=nod_info[1]+nod_info[2]
  3. mal=nod_info[0]
  4. if mal=="vest":
  5. mal=True
  6. else:
  7. mal=False
  8. if x!=0:
  9. if mal is False:
  10. return 2*((x-2)/(Nod.NR_LOCURI_BARCA-1)+1)
  11. return 2*((x-1)/(Nod.NR_LOCURI_BARCA-1)+2)
  12. return 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement