백준17141번

·Algorithm (PS)
https://www.acmicpc.net/problem/17141 17141번: 연구소 2 인체에 치명적인 바이러스를 연구하던 연구소에 승원이가 침입했고, 바이러스를 유출하려고 한다. 승원이는 연구소의 특정 위치에 바이러스 M개를 놓을 것이고, 승원이의 신호와 동시에 바이 www.acmicpc.net BFS + 브루트포스로 풀었다 비트마스킹으로도 풀 수 있는 것 같은데 연습해야겠다.. import sys from itertools import combinations from collections import deque input = sys.stdin.readline N, M = map(int, input().split()) array = [list(map(int, input().split())) for..
minjiwoo
'백준17141번' 태그의 글 목록