Result

AC

Duration

1667ms

Code [DL]

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

stdin

599 992
137 773
736 366
325 351
265 661
487 275
578 447
577 114
233 334
511 828
953 228
671 177
676 873
458 588
917 624
495 548
933 837
288 815
327 771
488 716
466 887
579 654
815 417
288 891
867 663
347 746
536 386
591 935
169 984
422 251
933 738
714 729

stdout

97336247312185653878664867399237

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fffdc904550 /* 7 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55587b722d18 /* 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"], 0x55587b722d38 /* 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"], 0x55587c5ed028 /* 7 vars */) = 0
20    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc00016f5f0 /* 25 vars */) = 0
21    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc00038ef70 /* 25 vars */) = 0
27    +++ exited with 0 +++
23    +++ exited with 0 +++
25    +++ exited with 0 +++
20    +++ exited with 0 +++
18    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
26    +++ exited with 0 +++
22    +++ exited with 0 +++
24    +++ 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=1} ---
29    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc00038f110 /* 25 vars */) = 0
30    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc00016f860 /* 25 vars */) = 0
31    ????( <unfinished ...>
31    +++ exited with 0 +++
32    +++ exited with 0 +++
33    +++ exited with 0 +++
34    +++ exited with 0 +++
29    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=29, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
36    +++ exited with 0 +++
37    +++ exited with 0 +++
35    +++ exited with 0 +++
38    +++ exited with 0 +++
30    +++ exited with 0 +++
19    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=30, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
39    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build995166955/b001/_pkg"..., "-trimpath", "/tmp/go-build995166955/b001=>", "-p", "main", "-complete", "-buildid", "HU-W4-RopwwFDtMkI2nA/HU-W4-Ropww"..., "-goversion", "go1.13.10", "-D", "_/tmp", "-importcfg", "/tmp/go-build995166955/b001/impo"..., "-pack", "-c=2", "/tmp/code.go"], 0xc0004244e0 /* 25 vars */) = 0
41    +++ exited with 0 +++
40    +++ exited with 0 +++
42    +++ exited with 0 +++
39    +++ exited with 0 +++
18    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=39, si_uid=0, si_status=0, si_utime=2, si_stime=0} ---
43    execve("/usr/lib/go/pkg/tool/linux_amd64/link", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002ec4e0 /* 25 vars */) = 0
45    +++ exited with 0 +++
44    +++ exited with 0 +++
46    +++ exited with 0 +++
43    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=43, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
47    execve("/usr/lib/go/pkg/tool/linux_amd64/link", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build995166955/b001/exe/"..., "-importcfg", "/tmp/go-build995166955/b001/impo"..., "-buildmode=exe", "-buildid=HU7eWekJUiO8QzqZ40yf/HU"..., "-extld=gcc", "/tmp/go-build995166955/b001/_pkg"...], 0xc0002ec9c0 /* 25 vars */) = 0
49    +++ exited with 0 +++
51    +++ exited with 0 +++
48    +++ exited with 0 +++
50    +++ exited with 0 +++
47    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=47, si_uid=0, si_status=0, si_utime=22, si_stime=4} ---
28    +++ exited with 0 +++
19    +++ exited with 0 +++
18    +++ exited with 0 +++
17    +++ exited with 0 +++
15    +++ exited with 0 +++
14    +++ exited with 0 +++
16    +++ 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=6, si_stime=13} ---
52    execve("/bin/cat", ["cat", "-"], 0x55587b722d08 /* 7 vars */ <unfinished ...>
53    execve("/tmp/code", ["/tmp/code"], 0x55587b722cf0 /* 7 vars */) = 0
52    <... execve resumed>)             = 0
52    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=52, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
56    +++ exited with 0 +++
55    +++ exited with 0 +++
57    +++ exited with 0 +++
54    +++ exited with 0 +++
53    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=53, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
58    execve("/bin/rm", ["rm", "/tmp/code.go", "/tmp/code"], 0x55587b722cf0 /* 7 vars */) = 0
58    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=58, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++