Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | ||
6 | 7 | 8 | 9 | 10 | 11 | 12 |
13 | 14 | 15 | 16 | 17 | 18 | 19 |
20 | 21 | 22 | 23 | 24 | 25 | 26 |
27 | 28 | 29 | 30 |
Tags
- BFS
- springboot
- GC
- 백준
- deque
- 구현
- 마크다운
- 문제풀이
- 분할정복
- 그리디
- 적정 스레드
- 정수론
- 그래프탐색
- 면접복기
- github
- 몬티홀
- 빌더패턴
- 이진탐색
- Greedy
- Stack
- 배열 돌리기1
- 회고
- 프로세스
- 그래프 탐색
- Markdown
- Python
- 브루트포스
- DP
- GarbageCollector
- g1gc
Archives
- Today
- Total
목록그래프탐색 (1)
FeelingXD

❓ Problem 🤔 How ❗ Solve # 나이트 투어 import sys input =sys.stdin.readline ROWS=COLOUMS=6 visited=[[False]*6 for _ in range(6)] moves=[[2,1],[-2,1],[1,2],[1,-2],[-1,2],[-1,-2],[2,-1],[-2,-1]] # 나이트의 이동 def board_to_pos(word): # 체스보드 위치를 좌표로 변환 x=ord(word[0])-ord('A') y=ROWS-int(word[1]) return (y,x) def validate_move(s_pos,t_pos): # 현재위치와 다음위치 비교 global visited cy,cx=s_pos for dy,dx in moves: ny,nx=c..
프로그래밍/문제풀이
2024. 1. 28. 17:56