Advertisement
Guest User

Untitled

a guest
Jul 28th, 2016
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.53 KB | None | 0 0
  1. process.stdin.resume();
  2. process.stdin.setEncoding('ascii');
  3.  
  4. var input_stdin = "";
  5. var input_stdin_array = "";
  6. var input_currentline = 0;
  7.  
  8. process.stdin.on('data', function (data) { input_stdin += data; });
  9. process.stdin.on('end', function () { input_stdin_array = input_stdin.split("\n"); main(); });
  10. function readLine() { return input_stdin_array[input_currentline++]; }
  11. /////////////// ignore above this line ////////////////////
  12.  
  13. function main() {
  14. var line = readLine().split(' ');
  15.  
  16. while(readLine()) {
  17. console.log(readLine())
  18. }
  19. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement