문제 번호 : 24998 번 문제 바로가기 ☞ https://www.acmicpc.net/problem/24498 const fs = require("fs"); const filePath = process.platform === "linux" ? "/dev/stdin" : "./input.txt"; const input = fs.readFileSync(filePath).toString().trim().split("\n"); const N = input[0]; const block = input[1].split(" ").map(Number); const answer = [block[0], block[block.length - 1]]; for (let i = 1; i < block.length - 1; i+..
[BaekJoon] 24998 번 blobnom 문제 - (nodejs)
문제 번호 : 24998 번 문제 바로가기 ☞ https://www.acmicpc.net/problem/24498 const fs = require("fs"); const filePath = process.platform === "linux" ? "/dev/stdin" : "./input.txt"; const input = fs.readFileSync(filePath).toString().trim().split("\n"); const N = input[0]; const block = input[1].split(" ").map(Number); const answer = [block[0], block[block.length - 1]]; for (let i = 1; i < block.length - 1; i+..
2022.02.24