diff --git a/code_study/Baekjoon/python/10807.py b/code_study/Baekjoon/python/10807.py new file mode 100644 index 0000000..ece8b05 --- /dev/null +++ b/code_study/Baekjoon/python/10807.py @@ -0,0 +1,8 @@ +n = int(input()) +arr = list(input().split(" ")) +# v = input() +# c = 0 +# for i in range(n): +# if arr[i]==v : c+=1 +# print(c) +print(arr.count(input())) \ No newline at end of file diff --git a/code_study/Baekjoon/python/10810.py b/code_study/Baekjoon/python/10810.py new file mode 100644 index 0000000..6e2b0d9 --- /dev/null +++ b/code_study/Baekjoon/python/10810.py @@ -0,0 +1,6 @@ +n, m = map(int, input().split()) +arr = [0]*n +for _ in range(m): + i, j, k = map(int,input().split()) + arr[i-1:j] = [k]*(j-i+1) +print(*arr) \ No newline at end of file diff --git a/code_study/Baekjoon/python/10811.py b/code_study/Baekjoon/python/10811.py new file mode 100644 index 0000000..301197a --- /dev/null +++ b/code_study/Baekjoon/python/10811.py @@ -0,0 +1,8 @@ +n, m = map(int,input().split()) +arr = list(range(1,n+1)) +temp = list() +for _ in range(m): + i, j = map(int, input().split()) + temp = arr[i-1:j] + arr[i-1:j] = temp[::-1] +print(*arr) \ No newline at end of file diff --git a/code_study/Baekjoon/python/10813.py b/code_study/Baekjoon/python/10813.py new file mode 100644 index 0000000..a657d0e --- /dev/null +++ b/code_study/Baekjoon/python/10813.py @@ -0,0 +1,8 @@ +n, m = map(int, input().split()) +arr = list(range(1,n+1)) +for _ in range(m): + i, j = map(int, input().split()) + temp = arr[i-1] + arr[i-1] = arr[j-1] + arr[j-1] = temp +print(*arr) \ No newline at end of file diff --git a/code_study/Baekjoon/python/10818.py b/code_study/Baekjoon/python/10818.py new file mode 100644 index 0000000..e42b6ec --- /dev/null +++ b/code_study/Baekjoon/python/10818.py @@ -0,0 +1,3 @@ +n = int(input()) +arr = list(map(int, input().split(" "))) +print(min(arr), max(arr)) \ No newline at end of file diff --git a/code_study/Baekjoon/python/10871.py b/code_study/Baekjoon/python/10871.py new file mode 100644 index 0000000..3fe5e4f --- /dev/null +++ b/code_study/Baekjoon/python/10871.py @@ -0,0 +1,4 @@ +n, x = map(int, input().split(" ")) +arr = list(map(int, input().split(" "))) +for i in range(n): + if arr[i] < x : print(arr[i], end=" ") \ No newline at end of file diff --git a/code_study/Baekjoon/python/1546.py b/code_study/Baekjoon/python/1546.py new file mode 100644 index 0000000..5410966 --- /dev/null +++ b/code_study/Baekjoon/python/1546.py @@ -0,0 +1,5 @@ +n = int(input()) +arr = list(map(int, input().split())) +m = max(arr) +arr = [arr[i]/m*100 for i in range(n)] +print(sum(arr)/n) \ No newline at end of file diff --git a/code_study/Baekjoon/python/2562.py b/code_study/Baekjoon/python/2562.py new file mode 100644 index 0000000..5fc777f --- /dev/null +++ b/code_study/Baekjoon/python/2562.py @@ -0,0 +1,7 @@ +max = 0 +for i in range(9): + n = int(input()) + if max < n : + max = n + idx = i+1 +print(max, idx,sep="\n") \ No newline at end of file diff --git a/code_study/Baekjoon/python/3052.py b/code_study/Baekjoon/python/3052.py new file mode 100644 index 0000000..df48143 --- /dev/null +++ b/code_study/Baekjoon/python/3052.py @@ -0,0 +1,4 @@ +arr = set() +for i in range(10): + arr.add(int(input())%42) +print(len(arr)) \ No newline at end of file diff --git a/code_study/Baekjoon/python/5597.py b/code_study/Baekjoon/python/5597.py new file mode 100644 index 0000000..71c6a55 --- /dev/null +++ b/code_study/Baekjoon/python/5597.py @@ -0,0 +1,4 @@ +arr = list(range(1,31)) +for _ in range(28): + arr.remove(int(input())) +print(*arr, sep="\n") \ No newline at end of file