Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- combo = [(660, (32, 32, 31), (9, 8, 8)), (660, (32, 32, 31), (9, 8, 8)), (660, (32, 32, 31), (9, 8, 8)), (636, (32, 32, 30), (9, 8, 8)), (636, (32, 32, 30), (9, 8, 8)), (636, (32, 32, 30), (9, 8, 8)), (636, (32, 31, 31), (9, 8, 8)), (636, (32, 31, 31), (9, 8, 8)), (636, (32, 31, 31), (9, 8, 8))]
- table1 = ((12,27),(13,27),(14,27),(9,27),(8,32),(12,27),(8,27),(13,26))
- table2 = ((12,27),(14,27),(9,32) ,(10,28),(8,31),(10,32),(9,28),(9,30))
- table3 = ((26,30),(26,26),(26,31))
- # kolejnosci wedlug elementow z combo
- for j, a, b in combo:
- set_a = set(a)
- set_b = set(b)
- for z in table1:
- set_z = set(z)
- if (set_z & set_a) and (set_z & set_b):
- print j, a, b, 'table1', z
- for z in table2:
- set_z = set(z)
- if (set_z & set_a) and (set_z & set_b):
- print j, a, b, 'table2', z
- for z in table3:
- set_z = set(z)
- if (set_z & set_a) and (set_z & set_b):
- print j, a, b, 'table3', z
- print '---'
- # kolejnosci wedlug tablic
- for z in table1:
- set_z = set(z)
- for j, a, b in combo:
- set_a = set(a)
- set_b = set(b)
- if (set_z & set_a) and (set_z & set_b):
- print j, a, b, 'table1', z
- for z in table2:
- set_z = set(z)
- for j, a, b in combo:
- set_a = set(a)
- set_b = set(b)
- if (set_z & set_a) and (set_z & set_b):
- print j, a, b, 'table2', z
- for z in table3:
- set_z = set(z)
- for j, a, b in combo:
- set_a = set(a)
- set_b = set(b)
- if (set_z & set_a) and (set_z & set_b):
- print j, a, b, 'table3', z
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement