diff --git a/centerstar.py b/centerstar.py index f130978..cef0ae1 100644 --- a/centerstar.py +++ b/centerstar.py @@ -138,7 +138,8 @@ def main(): n = int(content[0].strip()) S = [s.strip() for s in content[1:]] # Dont forget to strip newlines and such - + if len(S[0]) > 1000: + sys.exit() # Init scoring table to find center string candidate scores = [0 for i in range(n)]