• + 0 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();
    }