js
const fs = require('fs');
const input = fs.readFileSync('input.txt', 'utf8').trim().split(/\n+/);
const [H, W] = input[0].split(' ').map(Number);
const image = input.slice(1, H + 1).map(line => line.split(' ').map(Number));
const visited = Array.from({length: H}, () => Array.from({length: W}, () => -1))
const problemList = input.slice(2 + H)
function findAndChange(h, w, referColor, targetColor, visitedNum) {
const stack = [[h, w]]
// 방문 처리
visited[h][w] = true
wh...
- 연습문제 톡
- 날짜
- 2024-11-15 17:47:09
- 작성자
- vavoya6324
- 댓글
- 0
#[21년_재직자_대회_예선]_이미지_프로세싱
#js