Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Uncategorized category for Spaceship Landing Strip by Moff
def checkio(n):
result = 1
height, width = len(n), len(n[0])
for row in range(height):
for col in range(width):
for h in range(1, height - row + 1):
for w in range(1, width - col + 1):
if all(all(c in 'GS' for c in s)
for s in (r[col:col+w] for r in n[row:row+h])):
result = max(result, w * h)
return result
Aug. 19, 2015
Comments: