Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- for y in range(len(lines)):
- for x in range(len(lines[0])):
- pa=[x,y]
- if lines[x][y]!='#':
- continue
- for y2 in range(len(lines)):
- for x2 in range(len(lines[0])):
- pb=[x2,y2]
- if lines[x2][y2]!='#':
- continue
- if pb!=pa:
- count=0
- for y3 in range(len(lines)):
- for x3 in range(len(lines[0])):
- pp=[x3,y3]
- if lines[x3][y3]!='#':
- continue
- if pp!=pb and pp!=pa:
- if not check(pa,pb,pp):
- count+=1
- if count>score:
- score=count
- print(score,(x,y))
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement