문제 번호 : 3190번 문제 바로가기 ☞ https://www.acmicpc.net/problem/3190 const fs = require("fs"); const filePath = process.platform === "linux" ? "/dev/stdin" : "./input.txt"; let input = fs.readFileSync(filePath).toString().trim().split("\n"); const boardLen = Number(input.shift()); // 뱀 = S , 길 = 0 , 사과 = A let board = Array.from(Array(boardLen), () => new Array(boardLen).fill(0)); const appleLen = Numbe..
[BaekJoon] 3190 번 뱀 문제 - (nodejs)
문제 번호 : 3190번 문제 바로가기 ☞ https://www.acmicpc.net/problem/3190 const fs = require("fs"); const filePath = process.platform === "linux" ? "/dev/stdin" : "./input.txt"; let input = fs.readFileSync(filePath).toString().trim().split("\n"); const boardLen = Number(input.shift()); // 뱀 = S , 길 = 0 , 사과 = A let board = Array.from(Array(boardLen), () => new Array(boardLen).fill(0)); const appleLen = Numbe..
2022.02.05