Skip to content

Commit 4945fd3

Browse files
committed
Removed unneeded input rstrip() call
1 parent d99b579 commit 4945fd3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

day-07/puzzle.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
def main(cost):
5-
positions = list(map(int, sys.stdin.read().rstrip().split(',')))
5+
positions = list(map(int, sys.stdin.read().split(',')))
66

77
return min(sum(cost(abs(position - answer)) for position in positions)
88
for answer in range(min(positions), max(positions) + 1))

0 commit comments

Comments
 (0)