0
1
mirror of https://git.sb/baoshuo/OI-codes.git synced 2024-12-05 02:06:27 +00:00
OI-codes/Luogu/B2120/B2120.js

11 lines
208 B
JavaScript
Raw Normal View History

2022-06-01 01:45:41 +00:00
const fs = require('fs');
2021-07-15 07:05:48 +00:00
let str = fs.readFileSync(0).toString().replace(/\s+/g, ' ').split(' ');
2022-06-01 01:45:41 +00:00
let ans = [];
2021-07-15 07:05:48 +00:00
2022-06-01 01:45:41 +00:00
str.forEach((word) => {
2021-07-15 07:05:48 +00:00
ans.push(word.length);
});
process.stdout.write(ans.join(','));