Created
May 25, 2017 07:24
-
-
Save FujiHaruka/dab6cf346463a1512b535832681bd017 to your computer and use it in GitHub Desktop.
kyopuro_input.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'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