Double Integers
For each line in the input, print its double.<script>alert(5)</script>
Judge
(async function*(context: Context): Challenge { yield* context.runTestCases( range(1000).map(i=>[''+i, ''+(i*2)]) ); return context.noFailures(); })
Example Code
var fs = require("fs"); var stdinBuffer = fs.readFileSync(0); // STDIN_FILENO = 0 console.log(stdinBuffer.toString().split("\n").map(k=>(+k)*2).join("\n"));