Skip to content

Commit 350d728

Browse files
authored
Merge pull request #176 from AlgorithmStudy-Allumbus/hongjoo
test1
2 parents 4f2a61a + 488470e commit 350d728

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Hongjoo/백준/로봇조종하기.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
"""
2-
https://www.acmicpc.net/problem/1520
2+
https://www.acmicpc.net/problem/1520
33
"""
4-
54
import sys
65
input = sys.stdin.readline
6+
77
#0. 맵 (N,M) 칸 별 탐사 가치 설정
88
N , M = map(int,input().split()) # y,x
99
fields =list()
@@ -16,7 +16,7 @@
1616
right2left = [[0 for _ in range(M)] for k in range(N)]
1717
#3.탐색 가능 (1)left2 right <-/ (2) right2left <-
1818

19-
# n == 0 경우 : (1) left2right 경로만 존재(누적값)
19+
# n == 0 경우 : (1) left2right 경로만 존재(누적값)
2020
for m in range(M) :
2121
dp[0][m] = dp[0][m-1] + fields[0][m]
2222
# 2번쨰 행 부터 진행

0 commit comments

Comments
 (0)