Result

WA

Duration

1032ms

Code [DL]

let input = require("fs").readFileSync("/dev/stdin", "utf8");
input = input.split("\n");
let tmp = input[1].split(" ");
let a = parseInt(input[0], 10);
let b = parseInt(tmp[0], 10);
let c = parseInt(tmp[1], 10);
let s = input[2];
Js.log('%d %s',a+b+c,s);

stdin

633 334
645 457
556 995
163 594
677 561
475 678
532 225
821 128
377 774
935 818
248 295
131 136
654 439
299 141
215 225
892 241
224 841
166 648
979 754
361 264
697 776
322 993
912 117
855 451
644 662
933 321
825 379
795 914
964 544
755 656
226 225
676 765

stdout

stderr

File "/tmp/code.re", line 8, characters 7-8:
Error: Unclosed "(" (opened line 8, column 6)

  We've found a bug for you!
  /tmp/code.re
  
  There's been an error running Reason's parser on a file.
  If the message doesn't help, check for errors slightly above.
  Please file an issue on github.com/facebook/reason. Thanks!
  

strace

16    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe0936e780 /* 9 vars */) = 0
17    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x56532a00ad18 /* 9 vars */) = 0
17    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
18    execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.re"], 0x56532a00ad38 /* 9 vars */) = 0
18    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
19    execve("/usr/bin/bsc", ["/usr/bin/bsc", "/tmp/code.re"], 0x56532a00ad20 /* 9 vars */) = 0
19    execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffea4736250 /* 9 vars */) = -1 ENOENT (No such file or directory)
19    execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffea4736250 /* 9 vars */) = -1 ENOENT (No such file or directory)
19    execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffea4736250 /* 9 vars */) = -1 ENOENT (No such file or directory)
19    execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffea4736250 /* 9 vars */) = -1 ENOENT (No such file or directory)
19    execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7ffea4736250 /* 9 vars */) = 0
26    execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x5616a817af40 /* 9 vars */) = 0
27    execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7ffcb3c18660 /* 9 vars */) = 0
27    execve("/usr/lib/node_modules/bs-platform/linux/refmt.exe", ["/usr/lib/node_modules/bs-platfor"..., "--print=binary", "/tmp/code.re"], 0x555a94fc6090 /* 9 vars */) = 0
27    +++ exited with 1 +++
26    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=27, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
26    +++ exited with 2 +++
19    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
20    +++ exited with 0 +++
24    +++ exited with 0 +++
23    +++ exited with 0 +++
21    +++ exited with 0 +++
22    +++ exited with 0 +++
25    +++ exited with 2 +++
19    +++ exited with 2 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=2, si_utime=4, si_stime=1} ---
28    execve("/bin/cat", ["cat", "-"], 0x56532a00ad38 /* 9 vars */) = 0
29    execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x56532a00ad48 /* 9 vars */) = 0
28    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=28, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
33    +++ exited with 0 +++
34    +++ exited with 0 +++
32    +++ exited with 0 +++
31    +++ exited with 0 +++
30    +++ exited with 0 +++
35    +++ exited with 0 +++
29    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=29, si_uid=0, si_status=0, si_utime=3, si_stime=2} ---
36    execve("/bin/rm", ["rm", "/tmp/code.js", "/tmp/code.re"], 0x56532a00acf0 /* 9 vars */) = 0
36    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=36, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    +++ exited with 0 +++