Skip to content

Latest commit

Β 

History

History
31 lines (23 loc) Β· 603 Bytes

File metadata and controls

31 lines (23 loc) Β· 603 Bytes

algorithm-playground

✍🏼 algorithm playground repository

μ½”λ”©ν…ŒμŠ€νŠΈ μ‚¬μ΄νŠΈμ—μ„œ 문제λ₯Ό ν’€μ—ˆλ˜ λ‚΄μš©λ“€μ„ κΈ°λ‘ν•©λ‹ˆλ‹€


πŸ“ λ°±μ€€μ—μ„œ Javascript μ΄μš©ν•˜κΈ°

readline μ΄μš©ν•˜κΈ°

const readline = require('readline').createInterface({
  input: process.stdin,
  output: process.stdout
});

let input = [];

readline
  .on('line', function (line) {
    input = line.split(' ').map(el => parseInt(el));
  })
  .on('close', function () {
    // 이 μ•ˆμ— μ†”λ£¨μ…˜ μ½”λ“œ μž‘μ„±
    let answer;
    console.log(answer);
    process.exit();
  });