์ฃผ์‚ฌ์œ„ ์„ธ๊ฐœ

    [๋ฐฑ์ค€] 2480๋ฒˆ : ์ฃผ์‚ฌ์œ„ ์„ธ๊ฐœ (๐Ÿฅ‰๋ธŒ๋ก ์ฆˆ 4) (JavaScript)

    ๋ฌธ์ œ ๋ฐ”๋กœ ๊ฐ€๊ธฐ 2480๋ฒˆ: ์ฃผ์‚ฌ์œ„ ์„ธ๊ฐœ 1์—์„œ๋ถ€ํ„ฐ 6๊นŒ์ง€์˜ ๋ˆˆ์„ ๊ฐ€์ง„ 3๊ฐœ์˜ ์ฃผ์‚ฌ์œ„๋ฅผ ๋˜์ ธ์„œ ๋‹ค์Œ๊ณผ ๊ฐ™์€ ๊ทœ์น™์— ๋”ฐ๋ผ ์ƒ๊ธˆ์„ ๋ฐ›๋Š” ๊ฒŒ์ž„์ด ์žˆ๋‹ค. ๊ฐ™์€ ๋ˆˆ์ด 3๊ฐœ๊ฐ€ ๋‚˜์˜ค๋ฉด 10,000์›+(๊ฐ™์€ ๋ˆˆ)×1,000์›์˜ ์ƒ๊ธˆ์„ ๋ฐ›๊ฒŒ ๋œ๋‹ค. ๊ฐ™์€ ๋ˆˆ์ด 2๊ฐœ www.acmicpc.net ํ’€์ด ์‚ฌ์šฉ ์–ธ์–ด : JavaScript ํ’€์ดํ•œ ๋‚ ์งœ : 2022-12-12 const fs = require("fs"); // const input = fs.readFileSync("./input.txt", "utf8"); const input = fs.readFileSync("dev/stdin", "utf8"); let inputTestCase = input.split(" "); inputTestCase = inputTestCas..