二级202203-3单词的长度
You cannot submit for this problem because the contest is ended. You can click "Open in Problem Set" to view this problem in normal mode.
题目描述
输入一行单词序列,相邻单词之间由 1 个或多个空格间隔,请对应地计算各个单词的长度。注意,如果有标点符号(如连字符,逗号),标点符号算作与之相连的词的一部分。没有被空格间开的符号串,都算作单词。
输入
一行单词序列,最少 1 个单词,最多 300 个单词,单词之间用至少 1 个空格间隔。单词序列总长度不超过 1000。
输出
依次输出对应单词的长度,之间以逗号间隔。
样例输入
She was born in 1990-01-02 and from Beijing city.
样例输出
3,3,4,2,10,3,4,7,5
二级第8轮
- Status
- Done
- Rule
- ACM/ICPC
- Problem
- 5
- Start at
- 2023-8-2 9:30
- End at
- 2023-8-23 5:30
- Duration
- 500 hour(s)
- Host
- Partic.
- 12