Result

WA

Duration

1396ms

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()
if s[1]==s[2]{
print(s[2]-'0')
}else{
print(s[4]-'0')
}}}

stdin

311 141
284 842
361 626
211 334
211 115
755 799
282 887
831 128
183 331
692 329
742 451
625 532
638 889
966 632
831 637
834 339
355 552
539 932
364 495
966 168
955 516
452 194
714 534
424 426
933 669
659 599
742 324
926 335
641 641
544 124
383 557
144 844

stdout

stderr

18611581334586635946515435336454

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffdb7c8aed0 /* 7 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x556eab3d7d18 /* 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"], 0x556eab3d7d38 /* 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"], 0x556ead31b028 /* 7 vars */) = 0
19    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002da270 /* 25 vars */) = 0
20    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002bf2b0 /* 25 vars */) = 0
23    +++ exited with 0 +++
24    +++ exited with 0 +++
21    +++ exited with 0 +++
22    +++ exited with 0 +++
19    +++ exited with 0 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, 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"], 0xc0002da410 /* 25 vars */) = 0
27    +++ exited with 0 +++
28    +++ exited with 0 +++
29    +++ exited with 0 +++
20    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
32    +++ exited with 0 +++
34    +++ exited with 0 +++
33    +++ exited with 0 +++
31    +++ exited with 0 +++
25    +++ exited with 0 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
30    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002bf450 /* 25 vars */) = 0
37    +++ exited with 0 +++
36    +++ exited with 0 +++
38    +++ exited with 0 +++
35    +++ exited with 0 +++
30    +++ exited with 0 +++
26    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=30, 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-build273313966/b001/_pkg"..., "-trimpath", "/tmp/go-build273313966/b001=>", "-p", "main", "-complete", "-buildid", "TLs3KevRcOEk4MZhsU_X/TLs3KevRcOE"..., "-goversion", "go1.13.10", "-D", "_/tmp", "-importcfg", "/tmp/go-build273313966/b001/impo"..., "-pack", "-c=2", "/tmp/code.go"], 0xc0003f84e0 /* 25 vars */) = 0
44    +++ exited with 0 +++
43    +++ exited with 0 +++
42    +++ exited with 0 +++
41    +++ exited with 0 +++
40    +++ exited with 0 +++
26    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=40, si_uid=0, si_status=0, si_utime=0, si_stime=1} ---
45    execve("/usr/lib/go/pkg/tool/linux_amd64/link", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000100270 /* 25 vars */) = 0
47    +++ exited with 0 +++
46    +++ exited with 0 +++
48    +++ exited with 0 +++
45    +++ exited with 0 +++
26    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=45, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
49    execve("/usr/lib/go/pkg/tool/linux_amd64/link", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build273313966/b001/exe/"..., "-importcfg", "/tmp/go-build273313966/b001/impo"..., "-buildmode=exe", "-buildid=gH2URNAeI1wRhs_MAwnc/TL"..., "-extld=gcc", "/tmp/go-build273313966/b001/_pkg"...], 0xc0003f89c0 /* 25 vars */) = 0
51    +++ exited with 0 +++
50    +++ exited with 0 +++
52    +++ exited with 0 +++
53    +++ exited with 0 +++
49    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=49, si_uid=0, si_status=0, si_utime=10, si_stime=4} ---
39    +++ exited with 0 +++
14    +++ exited with 0 +++
17    +++ exited with 0 +++
15    +++ exited with 0 +++
18    +++ exited with 0 +++
16    +++ exited with 0 +++
26    +++ exited with 0 +++
13    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=3, si_stime=10} ---
54    execve("/bin/cat", ["cat", "-"], 0x556eab3d7d08 /* 7 vars */) = 0
55    execve("/tmp/code", ["/tmp/code"], 0x556eab3d7cf0 /* 7 vars */) = 0
54    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=54, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
59    +++ exited with 0 +++
58    +++ exited with 0 +++
57    +++ exited with 0 +++
56    +++ exited with 0 +++
55    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=55, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
60    execve("/bin/rm", ["rm", "/tmp/code.go", "/tmp/code"], 0x556eab3d7cf0 /* 7 vars */) = 0
60    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=60, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++