Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- while j > 0:
- if rgf[j] < rgf_max[j]:
- rgf[j] -= 1
- for i in range(j+1,n):
- rgf[i] = 1
- if rgf[j] == rgf_max[j]:
- rgf_max[i] = rgf_max[j] + 1
- else:
- rgf_max[i] = rgf_max[j]
- print(str(rgf) + ' ' + str(rgf_max))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement