2606

Algorithm/BOJ

[알고리즘/백준/2606] 바이러스

문제 https://www.acmicpc.net/problem/2606 2606번: 바이러스 첫째 줄에는 컴퓨터의 수가 주어진다. 컴퓨터의 수는 100 이하이고 각 컴퓨터에는 1번 부터 차례대로 번호가 매겨진다. 둘째 줄에는 네트워크 상에서 직접 연결되어 있는 컴퓨터 쌍의 수가 주어 www.acmicpc.net 풀이 const fs = require("fs"); const filePath = process.platform === "linux" ? "/dev/stdin" : "./input.txt"; const [total, pairCount, ...pairs] = require("fs") .readFileSync(filePath) .toString() .trim() .split("\n"); const t..

개발자 김비숑
'2606' 태그의 글 목록