From e482f966d52e462173d6d9ef12e3f50f3309c10b Mon Sep 17 00:00:00 2001 From: songyc macbook Date: Sat, 6 Sep 2025 18:16:39 +0900 Subject: [PATCH] 20250906 baekjoon --- code_study/Baekjoon/c/14909.c | 8 ++++++++ code_study/Baekjoon/c/22966.c | 21 +++++++++++++++++++++ code_study/Baekjoon/python/1271.py | 2 ++ code_study/Baekjoon/python/16430.py | 2 ++ code_study/Baekjoon/swift/32326.swift | 7 +++++++ code_study/Baekjoon/swift/32384.swift | 5 +++++ code_study/Baekjoon/ts/11948.ts | 6 ++++++ code_study/Baekjoon/ts/26489.ts | 2 ++ 8 files changed, 53 insertions(+) create mode 100644 code_study/Baekjoon/c/14909.c create mode 100644 code_study/Baekjoon/c/22966.c create mode 100644 code_study/Baekjoon/python/1271.py create mode 100644 code_study/Baekjoon/python/16430.py create mode 100644 code_study/Baekjoon/swift/32326.swift create mode 100644 code_study/Baekjoon/swift/32384.swift create mode 100644 code_study/Baekjoon/ts/11948.ts create mode 100644 code_study/Baekjoon/ts/26489.ts diff --git a/code_study/Baekjoon/c/14909.c b/code_study/Baekjoon/c/14909.c new file mode 100644 index 0000000..0ba2135 --- /dev/null +++ b/code_study/Baekjoon/c/14909.c @@ -0,0 +1,8 @@ +#include + +int main() { + int n, result = 0; + while(scanf("%d",&n) != EOF) if(n>0) result++; + printf("%d\n",result); + return 0; +} \ No newline at end of file diff --git a/code_study/Baekjoon/c/22966.c b/code_study/Baekjoon/c/22966.c new file mode 100644 index 0000000..e89cc1a --- /dev/null +++ b/code_study/Baekjoon/c/22966.c @@ -0,0 +1,21 @@ +#include +#include +#include + +int main() { + int minLevel = INT_MAX; + char minName[11] = {"",}; + int N; + scanf("%d",&N); + while(N--) { + char name[11]; + int level; + scanf("%s %d",name, &level); + if(level acc + v, 0); +total -= Math.min(...input.slice(0,4)) + Math.min(...input.slice(4)); +console.log(total); \ No newline at end of file diff --git a/code_study/Baekjoon/ts/26489.ts b/code_study/Baekjoon/ts/26489.ts new file mode 100644 index 0000000..d34052a --- /dev/null +++ b/code_study/Baekjoon/ts/26489.ts @@ -0,0 +1,2 @@ +export {}; +console.log(require("fs").readFileSync(0, "utf8").toString().trim().split('\n').length); \ No newline at end of file