Skip to content

Commit 1de225a

Browse files
committed
98차 1번 문제풀이
1 parent 0cd4509 commit 1de225a

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

live9/test98/문제1/백유진.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,16 @@
77
max = float("-inf")
88

99
for p in product(dx, repeat=m):
10-
now = 0
10+
now = -1
1111
snow = 1
1212
for i in p:
1313
if i == 1:
1414
now += 1
15-
if now < len(arr):
15+
if now < n:
1616
snow += arr[now]
17-
if i == 2:
17+
elif i == 2:
1818
now += 2
19-
if now < len(arr):
19+
if now < n:
2020
snow //= 2
2121
snow += arr[now]
2222
if snow > max:

0 commit comments

Comments
 (0)