diff --git a/code_study/Baekjoon/ts/10942.ts b/code_study/Baekjoon/ts/10942.ts new file mode 100644 index 0000000..a21506a --- /dev/null +++ b/code_study/Baekjoon/ts/10942.ts @@ -0,0 +1,25 @@ +export {}; +const input = require("fs").readFileSync(0).toString().trim().split("\n"); +const [N, M]: number[] = [input[0], input[2]].map(Number); +const nums: number[] = input[1].split(" ").map(Number); + +const ans: number[][] = []; +for(let i=0; i new Array(N).fill((0))); + +for(let i=0; i