Beakjoon&프로그래머스/파이썬
[백준/파이썬] 32778번 가희와 부역명
현장
2024. 12. 5. 17:13
-Code
line = input().split("(")
station, sub = line[0], line[1][:-1] if len(line) == 2 else ""
print(station)
print(sub if len(sub) != 0 else "-")