λμ μ½λ
T = int(input())
# μ¬λ¬κ°μ ν
μ€νΈ μΌμ΄μ€κ° μ£Όμ΄μ§λ―λ‘, κ°κ°μ μ²λ¦¬ν©λλ€.
arr = [ "a" , "e" , "i" , "o" , "u" ]
for t in range(1, T + 1):
s = input()
result = ''
for x in s:
if x not in arr:
result += x
print("#"+str(t) , result )
replace() ν¨μ μκ° μλμ
κ·Έλ₯ λ¬Έμμ΄ λνκΈ°λ‘ νμλ€.
replace() ν¨μ
a = input()
for i in ["a","e","i","o","u"]:
a=a.replace(i,"")
'Algorithm > SWEA' μΉ΄ν κ³ λ¦¬μ λ€λ₯Έ κΈ
[SWEA - D3] 1215. νλ¬Έ1 (0) | 2023.05.01 |
---|---|
[SWEA - D3] 1217. κ±°λ μ κ³± (0) | 2023.04.24 |
[SWEA - D3] 1206. View (0) | 2023.04.20 |
[SWEA - D2] 1984. μ€κ° νκ· κ° κ΅¬νκΈ° (0) | 2023.04.18 |
[SWEA - D2] 1204. μ΅λΉμ ꡬνκΈ° (0) | 2023.04.18 |