20250523 baekjoon python
This commit is contained in:
parent
15b126ade5
commit
a1367470a2
5
code_study/Baekjoon/python/10809.py
Normal file
5
code_study/Baekjoon/python/10809.py
Normal file
@ -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)
|
||||||
1
code_study/Baekjoon/python/1152.py
Normal file
1
code_study/Baekjoon/python/1152.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
print(len(input().split()))
|
||||||
1
code_study/Baekjoon/python/11654.py
Normal file
1
code_study/Baekjoon/python/11654.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
print(ord(input()))
|
||||||
2
code_study/Baekjoon/python/11718.py
Normal file
2
code_study/Baekjoon/python/11718.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
import sys
|
||||||
|
print(sys.stdin.read())
|
||||||
2
code_study/Baekjoon/python/11720.py
Normal file
2
code_study/Baekjoon/python/11720.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
n = input()
|
||||||
|
print(sum(int(s) for s in input()))
|
||||||
5
code_study/Baekjoon/python/2675.py
Normal file
5
code_study/Baekjoon/python/2675.py
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
for _ in range(int(input())):
|
||||||
|
r, s = input().split()
|
||||||
|
for i in s:
|
||||||
|
print(i*int(r),end="")
|
||||||
|
print()
|
||||||
1
code_study/Baekjoon/python/2743.py
Normal file
1
code_study/Baekjoon/python/2743.py
Normal file
@ -0,0 +1 @@
|
|||||||
|
print(len(input()))
|
||||||
3
code_study/Baekjoon/python/27866.py
Normal file
3
code_study/Baekjoon/python/27866.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
s = input()
|
||||||
|
i = input()
|
||||||
|
print(s[int(i)-1])
|
||||||
2
code_study/Baekjoon/python/2908.py
Normal file
2
code_study/Baekjoon/python/2908.py
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
a, b = input().split()
|
||||||
|
print(max(int(a[::-1]),int(b[::-1])))
|
||||||
5
code_study/Baekjoon/python/5622.py
Normal file
5
code_study/Baekjoon/python/5622.py
Normal file
@ -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)
|
||||||
3
code_study/Baekjoon/python/9086.py
Normal file
3
code_study/Baekjoon/python/9086.py
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
for i in range(int(input())):
|
||||||
|
s = input()
|
||||||
|
print(s[0]+s[-1])
|
||||||
Loading…
x
Reference in New Issue
Block a user