Result

WA

Duration

1310ms

Code [DL]

package main
import."os"func main(){b:=new([7]byte);for Stdin.Read(b){Stdout.Write(b[b[1]/=b[2]?:4])}}

stdin

769 464
544 678
813 736
877 787
977 881
499 936
537 998
377 171
853 532
311 663
422 229
295 998
938 484
415 192
622 621
338 885
366 661
547 715
886 862
549 285
348 465
149 513
869 961
573 577
656 385
334 587
178 884
728 228
977 133
141 177
876 679
261 557

stdout

stderr

# command-line-arguments
/tmp/code.go:2:12: syntax error: unexpected func, expecting semicolon or newline
/tmp/code.go:2:83: invalid character U+003F '?'
/root/script: line 7: /tmp/code: not found
rm: can't remove '/tmp/code': No such file or directory

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc37f259d0 /* 7 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55969af2dd18 /* 7 vars */) = 0
11    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=11, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
12    execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.go"], 0x55969af2dd38 /* 7 vars */) = 0
12    +++ exited with 0 +++
10    --- 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("/usr/bin/go", ["/usr/bin/go", "build", "-o", "/tmp/code", "/tmp/code.go"], 0x55969cede028 /* 7 vars */) = 0
20    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000310410 /* 25 vars */) = 0
21    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000325d40 /* 25 vars */) = 0
23    +++ exited with 0 +++
24    +++ exited with 0 +++
22    +++ exited with 0 +++
20    +++ exited with 0 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
25    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000310680 /* 25 vars */) = 0
29    +++ exited with 0 +++
28    +++ exited with 0 +++
30    +++ exited with 0 +++
31    +++ exited with 0 +++
21    +++ exited with 0 +++
19    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
32    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0003108f0 /* 25 vars */) = 0
35    +++ exited with 0 +++
34    +++ exited with 0 +++
33    +++ exited with 0 +++
25    +++ exited with 0 +++
27    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
39    ????( <unfinished ...>
38    +++ exited with 0 +++
39    +++ exited with 0 +++
37    +++ exited with 0 +++
36    +++ exited with 0 +++
32    +++ exited with 0 +++
27    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=32, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
40    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build206588583/b001/_pkg"..., "-trimpath", "/tmp/go-build206588583/b001=>", "-p", "main", "-complete", "-buildid", "-ThNnv-2kBVglptjr5if/-ThNnv-2kBV"..., "-goversion", "go1.13.10", "-D", "_/tmp", "-importcfg", "/tmp/go-build206588583/b001/impo"..., "-pack", "-c=2", "/tmp/code.go"], 0xc0001344e0 /* 25 vars */) = 0
44    +++ exited with 2 +++
42    +++ exited with 2 +++
41    +++ exited with 2 +++
43    +++ exited with 2 +++
40    +++ exited with 2 +++
27    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=40, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
26    +++ exited with 2 +++
19    +++ exited with 2 +++
18    +++ exited with 2 +++
17    +++ exited with 2 +++
16    +++ exited with 2 +++
15    +++ exited with 2 +++
14    +++ exited with 2 +++
27    +++ exited with 2 +++
13    +++ exited with 2 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=2, si_utime=5, si_stime=9} ---
45    execve("/bin/cat", ["cat", "-"], 0x55969af2dd08 /* 7 vars */ <unfinished ...>
46    execve("/tmp/code", ["/tmp/code"], 0x55969af2dcf0 /* 7 vars */) = -1 ENOENT (No such file or directory)
45    <... execve resumed>)             = 0
45    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=45, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
46    +++ exited with 127 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=46, si_uid=0, si_status=127, si_utime=0, si_stime=0} ---
47    execve("/bin/rm", ["rm", "/tmp/code.go", "/tmp/code"], 0x55969af2dcf0 /* 7 vars */) = 0
47    +++ exited with 1 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=47, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
10    +++ exited with 1 +++