0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-25 07:11:58 +00:00

B2120 单词的长度

R53204709
This commit is contained in:
Baoshuo Ren 2021-07-15 15:05:48 +08:00 committed by Baoshuo Ren
parent d4f8aaab2e
commit df9f8cd6ad
Signed by: baoshuo
GPG Key ID: 70F90A673FB1AB68

View File

@ -0,0 +1,10 @@
const fs = require('fs')
let str = fs.readFileSync(0).toString().replace(/\s+/g, ' ').split(' ');
let ans = []
str.forEach(word => {
ans.push(word.length);
});
process.stdout.write(ans.join(','));