题解 | #统计单词#
统计单词
https://www.nowcoder.com/practice/11c6e7c9987c4ab48f8cdd8834c27064
用python写会很快,c语言我不是很熟悉
s = [str(len(i)) for i in input()[:-1].split() if i.strip()]
print(' '.join(s))
统计单词
https://www.nowcoder.com/practice/11c6e7c9987c4ab48f8cdd8834c27064
用python写会很快,c语言我不是很熟悉
s = [str(len(i)) for i in input()[:-1].split() if i.strip()]
print(' '.join(s))
相关推荐