Algorithm/boj

[파이썬] 2870 수학숙제

takeU 2022. 6. 30. 10:21
반응형
import re
n = int(input())
li = []

for _ in range(n):
    line = input()
    li += re.compile('[0-9]+').findall(line)

for l in sorted(list(map(int, li))):
    print(l)

정규식