Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fb5975c

Browse files
author
sqdorte
committed
remove debugging line
1 parent d5b8203 commit fb5975c

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

2018/04_1/python/sqdorte.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
11
with open('input', 'r') as raw:
2-
i = raw.read().strip().split('\n')
3-
4-
i = sorted(i)
2+
i = sorted(raw.read().strip().split('\n'))
53

64
guard = None
75
sleeping = False
@@ -40,8 +38,6 @@
4038
guards[guard][1][i] = 1
4139
change = False
4240

43-
print(guards)
44-
4541
guard = sorted(((guards[x][0],x) for x in guards))[-1][1]
4642
sleep = guards[guard][1]
4743
hour = list(zip(*sorted(zip(sleep.values(), sleep.keys()))))[1][-1]

0 commit comments

Comments
 (0)