Created
November 4, 2016 21:11
-
-
Save nikravi/a7708a9846a18aba20904a5ad60ef306 to your computer and use it in GitHub Desktop.
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
function processData(input) { | |
//Enter your code here | |
console.log(readLine()) | |
} | |
process.stdin.resume(); | |
process.stdin.setEncoding("ascii"); | |
_input = ""; | |
process.stdin.on("data", function (input) { | |
_input += input; | |
}); | |
process.stdin.on("end", function () { | |
input_stdin_array = _input.split("\n"); | |
processData(_input); | |
}); | |
var input_currentline = 0; | |
var input_stdin_array = []; | |
function readLine() { | |
return input_stdin_array[input_currentline++]; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment