- A program can read the input from variable
IN
and should write the output inOUT
(initially 0) - Early exit can be achieved by accessing the variable
EXIT
./run 3
will run./js/3.js
against the input currently in./input.txt
IN.split('\n').map(m => { while(m = m / 3 - 2 ^ 0, m > 0) OUT += m })