Contents ...
udn網路城邦
UVA 10815 Andy's First Dictionary
2025/03/26 02:32
瀏覽92
迴響0
推薦1
引用0

#Python

#UVA 10815

#Andys First Dictionary

from sys import stdin

from re import split

text = stdin.read()

text = text.strip().lower()

words = set(split(r[^a-z], text))

for word in sorted(words):

    if(word):

        print(word)

有誰推薦more

限會員,要發表迴響,請先登入