Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
fs = require 'fs'
process.stdin.resume()
rawData = fs.readSync process.stdin.fd, 100, 0, 'utf8'
@lines = rawData[0].split '\r\n'
re_bin = (x) -> console.log parseInt x
.toString(2)
.split('')
.reverse()
.join('')
, 2
{ lines } = require './read_input_file'
re_bin Number line for line in lines
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.