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<