Skip to content

Instantly share code, notes, and snippets.

@vikneshwar
Created April 13, 2018 14:57
Show Gist options
  • Select an option

  • Save vikneshwar/30d3ba1c4437f90f9a5ad191bac51123 to your computer and use it in GitHub Desktop.

Select an option

Save vikneshwar/30d3ba1c4437f90f9a5ad191bac51123 to your computer and use it in GitHub Desktop.
process.stdin.resume();
process.stdin.setEncoding('ascii');
var input_stdin = "";
var input_stdin_array = "";
var input_currentline = 0;
process.stdin.on('data', function (data) {
input_stdin += data;
});
process.stdin.on('end', function () {
input_stdin_array = input_stdin.split("
");
//Write code here
process.stdout.write(""+output+"
");
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment