20250603 baekjoon python
This commit is contained in:
parent
520a078dcd
commit
7f7d94d3f1
2
code_study/Baekjoon/python/10988.py
Normal file
2
code_study/Baekjoon/python/10988.py
Normal file
@ -0,0 +1,2 @@
|
||||
s = input()
|
||||
print('1' if s==s[::-1] else '0')
|
||||
11
code_study/Baekjoon/python/1157.py
Normal file
11
code_study/Baekjoon/python/1157.py
Normal file
@ -0,0 +1,11 @@
|
||||
s = input().upper()
|
||||
dic = {}
|
||||
|
||||
for ch in s:
|
||||
dic[ch] = dic.get(ch,0) + 1
|
||||
|
||||
m = max(dic.values())
|
||||
|
||||
res = [k for k, v in dic.items() if v==m]
|
||||
|
||||
print(res[0] if len(res)==1 else '?')
|
||||
5
code_study/Baekjoon/python/2444.py
Normal file
5
code_study/Baekjoon/python/2444.py
Normal file
@ -0,0 +1,5 @@
|
||||
n = int(input())
|
||||
for i in range(n):
|
||||
print(' '*(n-i-1)+'*'*(2*i+1))
|
||||
for i in range(1,n):
|
||||
print(' '*i+'*'*(2*n-(2*i+1)))
|
||||
6
code_study/Baekjoon/python/25083.py
Normal file
6
code_study/Baekjoon/python/25083.py
Normal file
@ -0,0 +1,6 @@
|
||||
print(" ,r\'\"7")
|
||||
print("r`-_ ,\' ,/")
|
||||
print(" \\. \". L_r\'")
|
||||
print(" `~\\/")
|
||||
print(" |")
|
||||
print(" |")
|
||||
3
code_study/Baekjoon/python/3003.py
Normal file
3
code_study/Baekjoon/python/3003.py
Normal file
@ -0,0 +1,3 @@
|
||||
n = list(map(int, input().split()))
|
||||
m = [1, 1, 2, 2, 2, 8]
|
||||
print(*list(m[i]-n[i] for i in range(6)))
|
||||
Loading…
x
Reference in New Issue
Block a user