Skip to content
Permalink
Browse files

Forgot to check for length > 1000

  • Loading branch information...
Moria
Moria committed Oct 15, 2015
1 parent 1fbe751 commit 0e708c284a29501e7a0bb8a1780aa29056105aa9
Showing with 2 additions and 1 deletion.
  1. +2 −1 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)]

0 comments on commit 0e708c2

Please sign in to comment.
You can’t perform that action at this time.