728x90
반응형
문제 주소: codeforces.com/problemset/problem/118/A
간단한 문자열 관련 문제이다. 둘다 맞는 코드이긴 한데 더 좋은 방법이 있을 거 같다.
s = input().lower()
for c in s:
if c in "aoyeui":
continue
print(f".{c}", end='')
print()
s = input().lower()
res = ''
for c in s:
if c in "aoyeui":
continue
res += f".{c}"
print(res)
728x90
반응형
'Agorithm > Codeforces' 카테고리의 다른 글
112A-Petya and Strings (0) | 2021.02.16 |
---|---|
282A-Bit++ (0) | 2021.02.16 |
50A-Domino piling (0) | 2021.02.16 |
158A-Next Round (0) | 2021.02.16 |
231A-Team (0) | 2021.02.16 |