Skip to content

Instantly share code, notes, and snippets.

@chuck0523
Created December 5, 2015 04:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save chuck0523/37a5f61df0b3cecba4cf to your computer and use it in GitHub Desktop.
Save chuck0523/37a5f61df0b3cecba4cf to your computer and use it in GitHub Desktop.
var lines = [];
var readline = require('readline').createInterface(process.stdin, process.stdout);
readline.on('line', function(line) {
lines.push(line);
if(lines.length === 2) {
var chars = , index = lines[1] - 1;
console.log(chars[Math.floor(index / 5)] + chars[index % 5]);
process.exit(0);
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment