Codeforces Javascript Node.js input output

Правка ru1, от karkar, 2019-01-22 16:50:10

To test the code:

http://codeforces.com/problemset/customtest (select Node.js)

To output:

console.log('your output text here'); 

To input:

let i = ''
process.stdin.on('data', c => i += c)
process.stdin.on('end', () => {
    const {EOL} = require('os')
    const lines = i.split(EOL) /*your input text, split by lines*/
    console.log(lines);    
})
Теги nodejs, javascript, node, input

История

 
 
 
 
Правки
 
 
  Rev. Язык Кто Когда Δ Комментарий
ru1 Русский karkar 2019-01-22 16:50:10 514 Первая редакция (опубликовано)