mirror of
https://git.sb/baoshuo/OI-codes.git
synced 2024-12-27 08:12:00 +00:00
11 lines
204 B
JavaScript
11 lines
204 B
JavaScript
|
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(','));
|