Skip to content

Commit a0ff686

Browse files
authored
Update 3.py
1 parent 1a7d405 commit a0ff686

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

4/3.py

+1-4
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,7 @@
44
column = int(ord(input_data[0])) - int(ord('a')) + 1
55

66
# 나이트가 이동할 수 있는 8가지 방향 정의
7-
steps = [
8-
(-2, -1), (-1, -2), (1, -2), (2, -1),
9-
(2, 1), (1, 2), (-1, 2), (-2, 1)
10-
]
7+
steps = [(-2, -1), (-1, -2), (1, -2), (2, -1), (2, 1), (1, 2), (-1, 2), (-2, 1)]
118

129
# 8가지 방향에 대하여 각 위치로 이동이 가능한지 확인
1310
result = 0

0 commit comments

Comments
 (0)