We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0cd4509 commit 1de225aCopy full SHA for 1de225a
1 file changed
live9/test98/문제1/백유진.py
@@ -7,16 +7,16 @@
7
max = float("-inf")
8
9
for p in product(dx, repeat=m):
10
- now = 0
+ now = -1
11
snow = 1
12
for i in p:
13
if i == 1:
14
now += 1
15
- if now < len(arr):
+ if now < n:
16
snow += arr[now]
17
- if i == 2:
+ elif i == 2:
18
now += 2
19
20
snow //= 2
21
22
if snow > max:
0 commit comments