20250906 baekjoon
This commit is contained in:
parent
82c13c54fd
commit
e482f966d5
8
code_study/Baekjoon/c/14909.c
Normal file
8
code_study/Baekjoon/c/14909.c
Normal file
@ -0,0 +1,8 @@
|
||||
#include <stdio.h>
|
||||
|
||||
int main() {
|
||||
int n, result = 0;
|
||||
while(scanf("%d",&n) != EOF) if(n>0) result++;
|
||||
printf("%d\n",result);
|
||||
return 0;
|
||||
}
|
||||
21
code_study/Baekjoon/c/22966.c
Normal file
21
code_study/Baekjoon/c/22966.c
Normal file
@ -0,0 +1,21 @@
|
||||
#include <stdio.h>
|
||||
#include <limits.h>
|
||||
#include <string.h>
|
||||
|
||||
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<minLevel) {
|
||||
minLevel = level;
|
||||
strcpy(minName, name);
|
||||
}
|
||||
}
|
||||
printf("%s\n",minName);
|
||||
return 0;
|
||||
}
|
||||
2
code_study/Baekjoon/python/1271.py
Normal file
2
code_study/Baekjoon/python/1271.py
Normal file
@ -0,0 +1,2 @@
|
||||
n, m = map(int, input().split())
|
||||
print('\n'.join(map(str,[n//m,n%m])))
|
||||
2
code_study/Baekjoon/python/16430.py
Normal file
2
code_study/Baekjoon/python/16430.py
Normal file
@ -0,0 +1,2 @@
|
||||
a, b = map(int, input().split())
|
||||
print(b-a, b)
|
||||
7
code_study/Baekjoon/swift/32326.swift
Normal file
7
code_study/Baekjoon/swift/32326.swift
Normal file
@ -0,0 +1,7 @@
|
||||
var result: Int = 0
|
||||
for v in 3...5 {
|
||||
if let n = Int(readLine() ?? "") {
|
||||
result += n*v
|
||||
}
|
||||
}
|
||||
print(result)
|
||||
5
code_study/Baekjoon/swift/32384.swift
Normal file
5
code_study/Baekjoon/swift/32384.swift
Normal file
@ -0,0 +1,5 @@
|
||||
if let N = Int(readLine() ?? "") {
|
||||
for _ in 1...N {
|
||||
print("LoveisKoreaUniversity", terminator: " ")
|
||||
}
|
||||
}
|
||||
6
code_study/Baekjoon/ts/11948.ts
Normal file
6
code_study/Baekjoon/ts/11948.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export {};
|
||||
|
||||
const input: number[] = require("fs").readFileSync(0, "utf8").toString().trim().split('\n').map(Number);
|
||||
let total: number = input.reduce((acc, v) => acc + v, 0);
|
||||
total -= Math.min(...input.slice(0,4)) + Math.min(...input.slice(4));
|
||||
console.log(total);
|
||||
2
code_study/Baekjoon/ts/26489.ts
Normal file
2
code_study/Baekjoon/ts/26489.ts
Normal file
@ -0,0 +1,2 @@
|
||||
export {};
|
||||
console.log(require("fs").readFileSync(0, "utf8").toString().trim().split('\n').length);
|
||||
Loading…
x
Reference in New Issue
Block a user