mirror of
https://github.com/KevinMidboe/knowit_julekalender-2017.git
synced 2025-10-29 01:30:19 +00:00
Return answer in the wanted format for our tests.
This commit is contained in:
@@ -16,18 +16,20 @@ def main():
|
||||
counter = 0
|
||||
for i, entry in enumerate(entry_list):
|
||||
entry = int(entry)-1
|
||||
if entry == 0 and light_state:
|
||||
counter += 1
|
||||
light_state = False
|
||||
if (counter >= 99):
|
||||
highest_value.append(i)
|
||||
if entry == 0:
|
||||
if light_state:
|
||||
counter += 1
|
||||
light_state = False
|
||||
if (counter >= 99):
|
||||
highest_value.append(i)
|
||||
else:
|
||||
if memory[entry] == False and light_state == False:
|
||||
memory[entry] = True
|
||||
light_state = True
|
||||
|
||||
|
||||
print(min(highest_value)+1)
|
||||
answer = min(highest_value)+1
|
||||
print(answer)
|
||||
return answer
|
||||
|
||||
if __name__ == '__main__':
|
||||
main()
|
||||
|
||||
Reference in New Issue
Block a user