remove unused variables
This commit is contained in:
parent
e405118a5d
commit
70d685e884
3
6/6p1.py
3
6/6p1.py
|
@ -8,9 +8,7 @@ inputs = [
|
|||
|
||||
def solve(puzzle):
|
||||
total = 0
|
||||
idx = 0
|
||||
states = []
|
||||
banks = []
|
||||
size = len(puzzle) - 1
|
||||
|
||||
banksstr = ''.join(map(str,puzzle))
|
||||
|
@ -19,6 +17,7 @@ def solve(puzzle):
|
|||
while states.count(banksstr) == 1:
|
||||
maxval = max(puzzle)
|
||||
maxidx = puzzle.index(maxval)
|
||||
|
||||
puzzle[maxidx] = 0
|
||||
while maxval > 0:
|
||||
maxidx = maxidx + 1
|
||||
|
|
Loading…
Reference in New Issue