Result

WA

Duration

2049ms

Code [DL]

package main
import (
    "bufio"
    "fmt"
    "os"
)

var sc = bufio.NewScanner(os.Stdin)

func nextLine() string {
    sc.Scan()
    return sc.Text()
}

func main() {
    for i := 0; i < 32; i++ {
    	s := nextLine()
	if s[1] == s[2] {
	    fmt.Print(s[2]-'0')
	} else {
	    fmt.Print(s[4]-'0')
	}
    }
}

stdin

379 993
799 926
878 842
854 448
133 637
419 918
842 421
215 685
325 459
266 963
597 991
878 271
295 989
433 773
211 443
347 447
421 121
295 875
981 284
144 146
788 853
276 769
515 771
911 454
655 557
673 793
657 995
566 661
262 216
362 928
744 818
791 188

stdout

99843946469293141824877157962941

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc50308f00 /* 7 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55cfb394ed18 /* 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"], 0x55cfb394ed38 /* 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"], 0x55cfb3fb6028 /* 7 vars */) = 0
19    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000145c70 /* 25 vars */) = 0
20    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000149e10 /* 25 vars */) = 0
25    +++ exited with 0 +++
26    +++ exited with 0 +++
27    +++ exited with 0 +++
28    +++ exited with 0 +++
29    +++ exited with 0 +++
23    +++ exited with 0 +++
19    +++ exited with 0 +++
21    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=1, si_stime=1} ---
24    +++ exited with 0 +++
20    +++ exited with 0 +++
21    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=1} ---
30    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc00017e000 /* 25 vars */) = 0
31    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000145e10 /* 25 vars */) = 0
34    +++ exited with 0 +++
36    +++ exited with 0 +++
32    +++ exited with 0 +++
30    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=30, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
37    +++ exited with 0 +++
35    +++ exited with 0 +++
33    +++ exited with 0 +++
31    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
38    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build889775076/b001/_pkg"..., "-trimpath", "/tmp/go-build889775076/b001=>", "-p", "main", "-complete", "-buildid", "njZ6aVh59NyQYJ36GM_8/njZ6aVh59Ny"..., "-goversion", "go1.13.10", "-D", "_/tmp", "-importcfg", "/tmp/go-build889775076/b001/impo"..., "-pack", "-c=2", "/tmp/code.go"], 0xc0003905b0 /* 25 vars */) = 0
42    +++ exited with 0 +++
40    +++ exited with 0 +++
39    +++ exited with 0 +++
41    +++ exited with 0 +++
38    +++ exited with 0 +++
21    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=38, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
43    execve("/usr/lib/go/pkg/tool/linux_amd64/link", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0003909c0 /* 25 vars */) = 0
45    +++ exited with 0 +++
46    +++ exited with 0 +++
44    +++ exited with 0 +++
47    +++ 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} ---
48    execve("/usr/lib/go/pkg/tool/linux_amd64/link", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build889775076/b001/exe/"..., "-importcfg", "/tmp/go-build889775076/b001/impo"..., "-buildmode=exe", "-buildid=yxWfc7Yq5mV8D2zgZV1v/nj"..., "-extld=gcc", "/tmp/go-build889775076/b001/_pkg"...], 0xc0002925b0 /* 25 vars */) = 0
52    +++ exited with 0 +++
50    +++ exited with 0 +++
49    +++ exited with 0 +++
51    +++ exited with 0 +++
48    +++ exited with 0 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=48, si_uid=0, si_status=0, si_utime=21, si_stime=4} ---
22    +++ exited with 0 +++
21    +++ exited with 0 +++
18    +++ exited with 0 +++
17    +++ exited with 0 +++
16    +++ exited with 0 +++
15    +++ exited with 0 +++
14    +++ 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=4, si_stime=17} ---
53    execve("/bin/cat", ["cat", "-"], 0x55cfb394ed08 /* 7 vars */) = 0
54    execve("/tmp/code", ["/tmp/code"], 0x55cfb394ecf0 /* 7 vars */) = 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} ---
55    +++ exited with 0 +++
56    +++ exited with 0 +++
58    +++ exited with 0 +++
57    +++ exited with 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    execve("/bin/rm", ["rm", "/tmp/code.go", "/tmp/code"], 0x55cfb394ecf0 /* 7 vars */) = 0
59    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=59, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
10    +++ exited with 0 +++