Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Forgot to check for length > 1000
  • Loading branch information
Moria committed Oct 15, 2015
1 parent 1fbe751 commit 0e708c2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion centerstar.py
Expand Up @@ -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)]

Expand Down

0 comments on commit 0e708c2

Please sign in to comment.