Skip to content

Instantly share code, notes, and snippets.

@FujiHaruka
Created May 25, 2017 07:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save FujiHaruka/dab6cf346463a1512b535832681bd017 to your computer and use it in GitHub Desktop.
Save FujiHaruka/dab6cf346463a1512b535832681bd017 to your computer and use it in GitHub Desktop.
kyopuro_input.js
'use strict'
function main (input) {
let x = Number(input)
if (x < 1200) {
console.log('ABC')
} else {
console.log('ARC')
}
}
function readInput (callback) {
let input = ''
process.stdin.resume()
process.stdin.setEncoding('utf8')
process.stdin.on('data', (chunk) => {
input += chunk
})
process.stdin.on('end', () => {
input = input.trim()
callback(input)
})
}
readInput(main)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment