Result

WA

Duration

924ms

Code [DL]

let input = Node.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(a+b+c);

stdin

289 387
323 339
518 117
961 574
417 374
722 447
657 898
346 477
722 225
744 856
613 394
629 427
176 336
135 154
686 687
419 131
554 545
929 924
629 939
766 763
424 718
665 668
277 734
544 431
899 991
465 553
541 771
947 473
966 867
988 731
794 866
766 448

stdout

stderr

  We've found a bug for you!
  /tmp/code.re 1:48-53
  
  1 │ let input = Node.Fs.readFileSync("/dev/stdin", "utf8");
  2 │ input = input.split("\n");
  3 │ let tmp = input[1].split(" ");
  
  This has type:
    string
  But somewhere wanted:
    [ `ascii | `base64 | `binary | `hex | `latin1 | `ucs2 | `utf16le | `utf8 ]
  

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff1fd0f4e0 /* 9 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55d89eed3d18 /* 9 vars */) = 0
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.re"], 0x55d89eed3d38 /* 9 vars */) = 0
13    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    execve("/usr/bin/bsc", ["/usr/bin/bsc", "/tmp/code.re"], 0x55d89eed3d20 /* 9 vars */) = 0
14    execve("/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7fff75747110 /* 9 vars */) = -1 ENOENT (No such file or directory)
14    execve("/usr/local/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7fff75747110 /* 9 vars */) = -1 ENOENT (No such file or directory)
14    execve("/usr/local/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7fff75747110 /* 9 vars */) = -1 ENOENT (No such file or directory)
14    execve("/usr/sbin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7fff75747110 /* 9 vars */) = -1 ENOENT (No such file or directory)
14    execve("/usr/bin/node", ["node", "/usr/bin/bsc", "/tmp/code.re"], 0x7fff75747110 /* 9 vars */) = 0
21    execve("/usr/lib/node_modules/bs-platform/linux/bsc.exe", ["/usr/lib/node_modules/bs-platfor"..., "/tmp/code.re"], 0x55ba7fcc43c0 /* 9 vars */) = 0
22    execve("/bin/sh", ["sh", "-c", "/usr/lib/node_modules/bs-platfor"...], 0x7ffc676df410 /* 9 vars */) = 0
22    execve("/usr/lib/node_modules/bs-platform/linux/refmt.exe", ["/usr/lib/node_modules/bs-platfor"..., "--print=binary", "/tmp/code.re"], 0x556947ed7090 /* 9 vars */) = 0
22    +++ exited with 0 +++
21    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, si_uid=0, si_status=0, si_utime=0, si_stime=1} ---
21    +++ exited with 2 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
19    +++ exited with 0 +++
16    +++ exited with 0 +++
18    +++ exited with 0 +++
17    +++ exited with 0 +++
15    +++ exited with 0 +++
20    +++ exited with 2 +++
14    +++ exited with 2 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=2, si_utime=3, si_stime=1} ---
23    execve("/bin/cat", ["cat", "-"], 0x55d89eed3d38 /* 9 vars */ <unfinished ...>
24    execve("/usr/bin/node", ["/usr/bin/node", "/tmp/code.js"], 0x55d89eed3d48 /* 9 vars */ <unfinished ...>
23    <... execve resumed>)             = 0
24    <... execve resumed>)             = 0
23    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=23, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
28    +++ exited with 0 +++
27    +++ exited with 0 +++
29    +++ exited with 0 +++
26    +++ exited with 0 +++
25    +++ exited with 0 +++
30    +++ exited with 0 +++
24    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24, si_uid=0, si_status=0, si_utime=4, si_stime=1} ---
31    execve("/bin/rm", ["rm", "/tmp/code.js", "/tmp/code.re"], 0x55d89eed3cf0 /* 9 vars */) = 0
31    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
11    +++ exited with 0 +++