Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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