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