본문 바로가기
python-algorithm

[백준] 2789

by 무적김두칠 2021. 1. 7.

1
2
3
4
5
6
7
import sys
tmp=["C","A","M","B","R","I","D","G","E"]
s=sys.stdin.readline()
ans=''
for i in range(len(s)-1):
    if not  s[i] in tmp: ans+=s[i]
print(ans)
cs
반응형

'python-algorithm' 카테고리의 다른 글

[백준] 2869  (0) 2021.01.08
[백준] 2798  (0) 2021.01.08
[백준] 2774  (0) 2021.01.07
[백준] 2744  (0) 2021.01.07
[백준] 2743  (0) 2021.01.07

댓글