Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # index_dict_overlap.py
- MATRIX = {}
- tmp = []
- for y in range(10):
- for x in range(10):
- MATRIX[(x,y)] = []
- tmp.append([0,(x,y)])
- for z in range(120):
- at = tmp.index(min(tmp))
- xy = tmp[at][-1]
- MATRIX[xy].append(z)
- tmp[at] = [tmp[at][0]+1,xy]
- for z in MATRIX:
- print MATRIX[z]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement