Result

WA

Duration

1241ms

Code [DL]

package main
import (b "bufio"
"os")
func main(){
s:=b.NewScanner(os.Stdin)
for i:=0;i<32;i++{
s.Scan()
s:=s.Text()
ifs[1]==s[2]{
print(s[2]-'0')
}else{
print(s[4]-'0')
}}}

stdin

312 121
259 929
945 441
766 652
457 753
158 129
644 441
989 873
344 448
791 911
636 447
266 644
389 225
786 668
796 869
773 932
147 442
677 574
817 779
851 252
822 667
122 826
427 523
198 856
713 594
662 679
299 169
688 998
414 416
436 957
362 127
755 817

stdout

stderr

# command-line-arguments
/tmp/code.go:9:13: syntax error: unexpected { at end of statement
/tmp/code.go:11:2: syntax error: unexpected else at end of statement
/tmp/code.go:13:2: syntax error: unexpected } after top level declaration
/root/script: line 7: /tmp/code: not found
rm: can't remove '/tmp/code': No such file or directory

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc858b03e0 /* 7 vars */) = 0
12    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x56457f2a4d18 /* 7 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.go"], 0x56457f2a4d38 /* 7 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/go", ["/usr/bin/go", "build", "-o", "/tmp/code", "/tmp/code.go"], 0x56457f45e028 /* 7 vars */) = 0
20    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc00031dba0 /* 25 vars */) = 0
21    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000328ea0 /* 25 vars */) = 0
25    +++ exited with 0 +++
23    +++ exited with 0 +++
22    +++ exited with 0 +++
24    +++ exited with 0 +++
20    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
27    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000329110 /* 25 vars */) = 0
28    +++ exited with 0 +++
29    +++ exited with 0 +++
30    +++ exited with 0 +++
21    +++ exited with 0 +++
14    --- 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"], 0xc0003292b0 /* 25 vars */) = 0
34    +++ exited with 0 +++
35    +++ exited with 0 +++
33    +++ exited with 0 +++
27    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=27, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
37    +++ exited with 0 +++
36    +++ exited with 0 +++
38    +++ exited with 0 +++
39    +++ 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} ---
40    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build038087300/b001/_pkg"..., "-trimpath", "/tmp/go-build038087300/b001=>", "-p", "main", "-complete", "-buildid", "LG_MtaP-YXMy49gTFldR/LG_MtaP-YXM"..., "-goversion", "go1.13.10", "-D", "_/tmp", "-importcfg", "/tmp/go-build038087300/b001/impo"..., "-pack", "-c=2", "/tmp/code.go"], 0xc0004564e0 /* 25 vars */) = 0
41    +++ exited with 2 +++
43    +++ exited with 2 +++
42    +++ exited with 2 +++
40    +++ exited with 2 +++
17    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=40, si_uid=0, si_status=2, si_utime=0, si_stime=0} ---
32    +++ exited with 2 +++
26    +++ exited with 2 +++
18    +++ exited with 2 +++
17    +++ exited with 2 +++
16    +++ exited with 2 +++
15    +++ exited with 2 +++
19    +++ 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=6, si_stime=9} ---
44    execve("/bin/cat", ["cat", "-"], 0x56457f2a4d08 /* 7 vars */) = 0
45    execve("/tmp/code", ["/tmp/code"], 0x56457f2a4cf0 /* 7 vars */) = -1 ENOENT (No such file or directory)
45    +++ exited with 127 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=45, si_uid=0, si_status=127, si_utime=0, si_stime=0} ---
44    --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=44, si_uid=0} ---
44    +++ killed by SIGPIPE +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=44, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} ---
46    execve("/bin/rm", ["rm", "/tmp/code.go", "/tmp/code"], 0x56457f2a4cf0 /* 7 vars */) = 0
46    +++ exited with 1 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=46, si_uid=0, si_status=1, si_utime=0, si_stime=0} ---
11    +++ exited with 1 +++