Блог пользователя karkar

Автор karkar, история, 5 лет назад, По-русски

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);    
})

Полный текст и комментарии »

  • Проголосовать: нравится
  • +13
  • Проголосовать: не нравится