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:
parent
d4f8aaab2e
commit
df9f8cd6ad
10
Luogu/problem/B2120/B2120.js
Normal file
10
Luogu/problem/B2120/B2120.js
Normal 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(','));
|
Loading…
Reference in New Issue
Block a user