Advertisement
Guest User

Untitled

a guest
Mar 24th, 2019
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.56 KB | None | 0 0
  1. def liczenie_mega_kursora():
  2.  
  3. test = [2,0,1,3]
  4.  
  5.  
  6. for i in range(0, len(test)):
  7. mega_kursor[0] = mega_maszyna[0][test[i]] + mega_kursor[0]
  8.  
  9.  
  10. for j in range(0, maszyna):
  11. if j != (maszyna - 1):
  12. if mega_kursor[j] >= mega_kursor[j+1]:
  13. mega_kursor[j+1] = mega_kursor[j] + mega_maszyna[j+1][test[i]]
  14. else:
  15. mega_kursor[j+1] = mega_kursor[j+1] + mega_maszyna[j+1][test[i]]
  16.  
  17. kursor_max = max(mega_kursor)
  18.  
  19. globals()['kursor_max'] = kursor_max
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement