문제 첫 번째 풀이import sysinput = sys.stdin.readlinecomputer = int(input().strip())n = int(input().strip())connect = []for _ in range(n): connect.append(list(map(int, input().strip().split())))virus = [0] * (computer + 1)virus[1] = 1def spread_virus(start): queue = [start] while queue: current = queue.pop(0) for a, b in connect: if a == current and virus[b] == 0:..