You are viewing a single comment's thread. Return to all comments →
Javascript -- rewrote main() function instead
function main() { const ws = fs.createWriteStream(process.env.OUTPUT_PATH); ws.write(Array(+readLine()).fill().map(_ => readLine().split(' ').map(x => +x)).map(x => x[1] - x[2] + x[0]).join('\n')); ws.end(); }
Seems like cookies are disabled on this browser, please enable them to open this website
Combo Meal
You are viewing a single comment's thread. Return to all comments →
Javascript -- rewrote main() function instead