We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 4f2a61a + 488470e commit 350d728Copy full SHA for 350d728
Hongjoo/백준/로봇조종하기.py
@@ -1,9 +1,9 @@
1
"""
2
-https://www.acmicpc.net/problem/1520
+https://www.acmicpc.net/problem/1520
3
4
-
5
import sys
6
input = sys.stdin.readline
+
7
#0. 맵 (N,M) 칸 별 탐사 가치 설정
8
N , M = map(int,input().split()) # y,x
9
fields =list()
@@ -16,7 +16,7 @@
16
right2left = [[0 for _ in range(M)] for k in range(N)]
17
#3.탐색 가능 (1)left2 right <-/ (2) right2left <-
18
19
- # n == 0 경우 : (1) left2right 경로만 존재(누적값)
+# n == 0 경우 : (1) left2right 경로만 존재(누적값)
20
for m in range(M) :
21
dp[0][m] = dp[0][m-1] + fields[0][m]
22
# 2번쨰 행 부터 진행
0 commit comments