diff --git a/code_study/Baekjoon/python/10809.py b/code_study/Baekjoon/python/10809.py new file mode 100644 index 0000000..86c6adc --- /dev/null +++ b/code_study/Baekjoon/python/10809.py @@ -0,0 +1,5 @@ +arr = [-1]*26 +s = input() +for i in range(len(s)): + if (arr[ord(s[i])-97] == -1) : arr[ord(s[i])-97] = i +print(*arr) \ No newline at end of file diff --git a/code_study/Baekjoon/python/1152.py b/code_study/Baekjoon/python/1152.py new file mode 100644 index 0000000..a9a3fee --- /dev/null +++ b/code_study/Baekjoon/python/1152.py @@ -0,0 +1 @@ +print(len(input().split())) \ No newline at end of file diff --git a/code_study/Baekjoon/python/11654.py b/code_study/Baekjoon/python/11654.py new file mode 100644 index 0000000..f51303f --- /dev/null +++ b/code_study/Baekjoon/python/11654.py @@ -0,0 +1 @@ +print(ord(input())) \ No newline at end of file diff --git a/code_study/Baekjoon/python/11718.py b/code_study/Baekjoon/python/11718.py new file mode 100644 index 0000000..abefff1 --- /dev/null +++ b/code_study/Baekjoon/python/11718.py @@ -0,0 +1,2 @@ +import sys +print(sys.stdin.read()) \ No newline at end of file diff --git a/code_study/Baekjoon/python/11720.py b/code_study/Baekjoon/python/11720.py new file mode 100644 index 0000000..56775f5 --- /dev/null +++ b/code_study/Baekjoon/python/11720.py @@ -0,0 +1,2 @@ +n = input() +print(sum(int(s) for s in input())) \ No newline at end of file diff --git a/code_study/Baekjoon/python/2675.py b/code_study/Baekjoon/python/2675.py new file mode 100644 index 0000000..66dbbd3 --- /dev/null +++ b/code_study/Baekjoon/python/2675.py @@ -0,0 +1,5 @@ +for _ in range(int(input())): + r, s = input().split() + for i in s: + print(i*int(r),end="") + print() diff --git a/code_study/Baekjoon/python/2743.py b/code_study/Baekjoon/python/2743.py new file mode 100644 index 0000000..8fa435d --- /dev/null +++ b/code_study/Baekjoon/python/2743.py @@ -0,0 +1 @@ +print(len(input())) \ No newline at end of file diff --git a/code_study/Baekjoon/python/27866.py b/code_study/Baekjoon/python/27866.py new file mode 100644 index 0000000..b07ab28 --- /dev/null +++ b/code_study/Baekjoon/python/27866.py @@ -0,0 +1,3 @@ +s = input() +i = input() +print(s[int(i)-1]) \ No newline at end of file diff --git a/code_study/Baekjoon/python/2908.py b/code_study/Baekjoon/python/2908.py new file mode 100644 index 0000000..9234670 --- /dev/null +++ b/code_study/Baekjoon/python/2908.py @@ -0,0 +1,2 @@ +a, b = input().split() +print(max(int(a[::-1]),int(b[::-1]))) \ No newline at end of file diff --git a/code_study/Baekjoon/python/5622.py b/code_study/Baekjoon/python/5622.py new file mode 100644 index 0000000..ae1992a --- /dev/null +++ b/code_study/Baekjoon/python/5622.py @@ -0,0 +1,5 @@ +dial = [3,3,3,4,4,4,5,5,5,6,6,6,7,7,7,8,8,8,8,9,9,9,10,10,10,10] +t = 0 +for s in input(): + t+=dial[ord(s)-65] +print(t) \ No newline at end of file diff --git a/code_study/Baekjoon/python/9086.py b/code_study/Baekjoon/python/9086.py new file mode 100644 index 0000000..f0b1ae2 --- /dev/null +++ b/code_study/Baekjoon/python/9086.py @@ -0,0 +1,3 @@ +for i in range(int(input())): + s = input() + print(s[0]+s[-1]) \ No newline at end of file