@No.HJ1 @problem description: 计算字符串最后一个单词的长度,单词以空格隔开。 @input description: 一行字符串,非空,长度小于5000。 @output description: 整数N,最后一个单词的长度。 示例 @input: hello world @output: 5 var str = readline(); console.log(str.sp