Skip to content

Instantly share code, notes, and snippets.

@nikravi
Created November 4, 2016 21:11
Show Gist options
  • Save nikravi/a7708a9846a18aba20904a5ad60ef306 to your computer and use it in GitHub Desktop.
Save nikravi/a7708a9846a18aba20904a5ad60ef306 to your computer and use it in GitHub Desktop.
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