목록algorithms/백준 (9)
yuns

문제 링크 https://www.acmicpc.net/problem/23289 문제 요약 아이디어 정리 온풍기에서 나온 바람이 벽의 위치에 따라 전파되는 정도가 다름 → bfs와 아래 규칙을 이용하여 온도를 계산 문제 풀이 아이디어 정리에 사용한 대로 코드 작성 from collections import deque r, c, k = map(int, input().split()) checked_pos = [] # 체크할 온풍기 위치 heater = [] # 온풍기 위치 ([온풍기 위치x, 온풍기 위치y, 방향]) for i in range(r): tmp = list(map(int, input().split())) for j, t in enumerate(tmp): if t == 0: continue if 0..
algorithms/백준
2022. 3. 1. 22:38