```const fn = (str) => {
const arr = str.split(' ')
return arr[arr.length - 1].length
}
const words = readline()
console.log(fn(words))
readline 函数是牛客网的读取单行输入工具
```const fn = (str) => {
const arr = str.split(' ')
return arr[arr.length - 1].length
}
const words = readline()
console.log(fn(words))
readline 函数是牛客网的读取单行输入工具