From 59fb800c0487396d01c19f7923f40af9b8b1d412 Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Wed, 24 Dec 2025 20:06:10 +0900 Subject: [PATCH] baekjoon 20251224 --- code_study/Baekjoon/c/1005_1.c | 58 +++++++++++++++++++++ code_study/Baekjoon/c/1005_2.c | 75 ++++++++++++++++++++++++++++ code_study/Baekjoon/python/1005_2.py | 44 ++++++++++++++++ code_study/Baekjoon/python/5532.py | 9 ++++ 4 files changed, 186 insertions(+) create mode 100644 code_study/Baekjoon/c/1005_1.c create mode 100644 code_study/Baekjoon/c/1005_2.c create mode 100644 code_study/Baekjoon/python/1005_2.py create mode 100644 code_study/Baekjoon/python/5532.py diff --git a/code_study/Baekjoon/c/1005_1.c b/code_study/Baekjoon/c/1005_1.c new file mode 100644 index 0000000..9f45d84 --- /dev/null +++ b/code_study/Baekjoon/c/1005_1.c @@ -0,0 +1,58 @@ +#include +#include + +int dp[1001]; +int build_info[1001][1001]; +int build_time[1001]; +int T, N, K, W; + +int max(int a, int b) { + return a > b ? a : b; +} + +int solve(int target); + +int main() { + scanf("%d", &T); + + int* ans = (int*)malloc(sizeof(int)*T); + + for(int t=0; t +#include + +int T, N, K, W; +int dp[1001]; +int build_info[1001][1001]; +int build_time[1001]; +int indegree[1001]; +int q[1001]; + +int max(int a, int b) { + return a > b ? a : b; +} + +int solve(); + +int main() { + scanf("%d", &T); + + int* ans = (int*)malloc(sizeof(int)*T); + + for(int t=0; t