aboutsummaryrefslogtreecommitdiff
path: root/challenge-140/abigail/node/ch-1.js
blob: 18dc51e939b112450c0427ad766e406b8936173c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/usr/local/bin/node

//
// See ../README.md
//

//
// Run as: node ch-1.js < input-file
//

  require ('readline')
. createInterface ({input: process . stdin})   
. on              ('line', line => {
    let [a, b] = line . trim () . split (" ");
    console . log ((parseInt (a, 2) + parseInt (b, 2)) . toString (2))
})