Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- def liczenie_mega_kursora():
- test = [2,0,1,3]
- for i in range(0, len(test)):
- mega_kursor[0] = mega_maszyna[0][test[i]] + mega_kursor[0]
- for j in range(0, maszyna):
- if j != (maszyna - 1):
- if mega_kursor[j] >= mega_kursor[j+1]:
- mega_kursor[j+1] = mega_kursor[j] + mega_maszyna[j+1][test[i]]
- else:
- mega_kursor[j+1] = mega_kursor[j+1] + mega_maszyna[j+1][test[i]]
- kursor_max = max(mega_kursor)
- globals()['kursor_max'] = kursor_max
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement