Result

WA

Duration

1308ms

Code [DL]

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

stdin

877 886
936 584
249 949
433 639
453 551
267 278
499 696
362 966
856 567
488 996
955 554
226 726
758 553
752 339
437 774
845 417
714 881
577 776
717 612
466 327
511 125
495 579
628 839
855 519
122 981
694 543
182 873
852 252
415 156
621 845
671 117
313 117

stdout

stderr

# command-line-arguments
/tmp/code.go:2:12: syntax error: unexpected func, expecting semicolon or newline
/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"], 0x7ffda9dc0a00 /* 7 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x56500a147d18 /* 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"], 0x56500a147d38 /* 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"], 0x56500b9c2028 /* 7 vars */) = 0
20    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002bc270 /* 25 vars */) = 0
21    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002bf110 /* 25 vars */) = 0
24    +++ exited with 0 +++
22    +++ exited with 0 +++
23    +++ exited with 0 +++
25    +++ 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} ---
26    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002bc410 /* 25 vars */) = 0
28    +++ exited with 0 +++
27    +++ exited with 0 +++
29    +++ exited with 0 +++
30    +++ exited with 0 +++
21    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
31    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002bc680 /* 25 vars */) = 0
39    +++ exited with 0 +++
38    +++ exited with 0 +++
37    +++ exited with 0 +++
40    +++ exited with 0 +++
31    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
32    +++ exited with 0 +++
34    +++ exited with 0 +++
35    +++ exited with 0 +++
36    +++ exited with 0 +++
26    +++ exited with 0 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
41    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build592578173/b001/_pkg"..., "-trimpath", "/tmp/go-build592578173/b001=>", "-p", "main", "-complete", "-buildid", "iqyyh1gg66j2_bqcPO4e/iqyyh1gg66j"..., "-goversion", "go1.13.10", "-D", "_/tmp", "-importcfg", "/tmp/go-build592578173/b001/impo"..., "-pack", "-c=2", "/tmp/code.go"], 0xc00014c5b0 /* 25 vars */) = 0
42    +++ exited with 2 +++
44    +++ exited with 2 +++
43    +++ exited with 2 +++
41    +++ exited with 2 +++
19    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=41, si_uid=0, si_status=2, si_utime=0, si_stime=1} ---
33    +++ 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 +++
13    +++ exited with 2 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=2, si_utime=4, si_stime=6} ---
46    execve("/tmp/code", ["/tmp/code"], 0x56500a147cf0 /* 7 vars */ <unfinished ...>
45    execve("/bin/cat", ["cat", "-"], 0x56500a147d08 /* 7 vars */ <unfinished ...>
46    <... execve resumed>)             = -1 ENOENT (No such file or directory)
45    <... execve resumed>)             = 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} ---
45    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=45, si_uid=0} ---
45    +++ killed by SIGPIPE +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=45, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} ---
47    execve("/bin/rm", ["rm", "/tmp/code.go", "/tmp/code"], 0x56500a147cf0 /* 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 +++