← Back to List

3447번: 버그왕 ↗

Solutions

Python 3
139 B | 139 chars
while True:
    try:
        a=input()
    except:
        break
    
    while "BUG" in a:
        a=a.replace("BUG","")
    
    print(a)