mirror of
https://github.com/bertptrs/adventofcode.git
synced 2025-12-26 13:20:32 +01:00
Fix project, now use python 3.
This commit is contained in:
@@ -25,7 +25,7 @@ maxHappiness = 0
|
||||
maxWithMe = 0
|
||||
|
||||
# Compute happiness with everyone present
|
||||
for permutation in permutations(ratings.keys()):
|
||||
for permutation in permutations(list(ratings.keys())):
|
||||
happiness = 0
|
||||
withMe = 0
|
||||
|
||||
@@ -46,5 +46,5 @@ for permutation in permutations(ratings.keys()):
|
||||
maxWithMe = max(maxWithMe, withMe)
|
||||
|
||||
|
||||
print maxHappiness, maxWithMe
|
||||
print(maxHappiness, maxWithMe)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user