반응형
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 | 31 |
Tags
- MYSQL
- 운영체제
- 가상메모리
- 재귀
- level3
- 코딩테스트
- 그리디
- DP
- N과M
- level0
- level2
- 다익스트라
- programmers
- 에라스토테네스의 체
- 힙
- 스택
- 구현
- level1
- BFS
- 다이나믹 프로그래밍
- 수학
- dfs
- 프로그래머스
- 백준
- 가상메모리 관리
- BOJ
- 딕셔너리
- 브루트포스
- 파이썬
- python
Archives
- Today
- Total
목록2025/05/26 (1)
동캄의 코딩도장
백준 16920 [확장] 파이썬
https://www.acmicpc.net/problem/16920 # 백준 16920 확장import sysfrom collections import deque# 상하좌우 방향 벡터dr = [0, 0, 1, -1]dc = [1, -1, 0, 0]# 입력 처리N, M, players = map(int, sys.stdin.readline().split()) # 맵 크기 N x M, 플레이어 수players_moves = list(map(int, sys.stdin.readline().split())) # 각 플레이어의 최대 이동 거리# 각 플레이어가 현재 점령한 성 위치를 저장할 큐players_curr_castle = [deque() for _ in range(players)]# 현재 남아있는 플레이어..
코테/BOJ
2025. 5. 26. 00:09