From bbff86fc505145e29d63512faa55b83224d131d1 Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Thu, 26 Mar 2026 22:48:50 +0900 Subject: [PATCH] baekjoon 20260325 --- code_study/Baekjoon/ts/2098.ts | 36 ++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 code_study/Baekjoon/ts/2098.ts diff --git a/code_study/Baekjoon/ts/2098.ts b/code_study/Baekjoon/ts/2098.ts new file mode 100644 index 0000000..9886d4a --- /dev/null +++ b/code_study/Baekjoon/ts/2098.ts @@ -0,0 +1,36 @@ +export {}; +const input = require("fs").readFileSync(0).toString().trim().split("\n"); +const inf: number = 1e9; + +const N: number = Number(input[0]); + +let W: number[][] = []; +for(let i=1; i<=N; i++) { + W.push(input[i].split(" ").map(Number)); +} + +let dp: number[][] = Array.from({length: N}, () => new Array(1< { + if(visited === ((1<