From 8057e3788c006523c01f87178d3009a9e408b854 Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Sat, 27 Dec 2025 22:28:59 +0900 Subject: [PATCH] baekjoon 20251227 --- code_study/Baekjoon/python/5554.py | 2 ++ code_study/Baekjoon/ts/1106.ts | 20 ++++++++++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 code_study/Baekjoon/python/5554.py create mode 100644 code_study/Baekjoon/ts/1106.ts diff --git a/code_study/Baekjoon/python/5554.py b/code_study/Baekjoon/python/5554.py new file mode 100644 index 0000000..0a4ea22 --- /dev/null +++ b/code_study/Baekjoon/python/5554.py @@ -0,0 +1,2 @@ +time = sum([int(input()) for _ in range(4)]) +print('\n'.join(list(map(str, [time//60, time%60])))) \ No newline at end of file diff --git a/code_study/Baekjoon/ts/1106.ts b/code_study/Baekjoon/ts/1106.ts new file mode 100644 index 0000000..4034d6b --- /dev/null +++ b/code_study/Baekjoon/ts/1106.ts @@ -0,0 +1,20 @@ +export {}; +const input = require("fs").readFileSync(0).toString().trim().split("\n"); + +const [C, N]: number[] = input[0].split(" ").map(Number); +let dp: number[] = Array(C+101).fill(Infinity); +dp[0] = 0; + +for(let n = 1; n<=N; n++) { + const [cost, man]: number[] = input[n].split(" ").map(Number); + + for(let i=man; i