Result

AC

Duration

1872ms

Code [DL]

package main
import."fmt"
func main(){s,t,i:="","",0;for i<32{Scan(&s, &t);if s[1]==s[2]{t=s[1:]};Print(t[0]-48);i++}}

stdin

688 818
633 667
586 884
185 457
437 739
912 228
164 657
377 771
412 128
886 256
667 639
789 997
437 337
672 261
733 593
258 851
177 276
519 792
861 717
274 672
593 336
166 765
866 953
369 952
997 553
489 761
847 991
672 672
822 669
941 415
588 883
377 716

stdout

83847267126932387776366957962487

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffeaee1e8e0 /* 7 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x56441d836d18 /* 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"], 0x56441d836d38 /* 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"], 0x56441f2f7028 /* 7 vars */) = 0
20    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0001105b0 /* 25 vars */) = 0
21    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002b1d40 /* 25 vars */) = 0
24    +++ exited with 0 +++
25    +++ exited with 0 +++
26    +++ 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} ---
28    +++ exited with 0 +++
27    +++ exited with 0 +++
29    +++ exited with 0 +++
21    +++ exited with 0 +++
23    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, 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"], 0xc000110820 /* 25 vars */) = 0
31    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002b1ee0 /* 25 vars */) = 0
34    +++ exited with 0 +++
38    +++ exited with 0 +++
32    +++ exited with 0 +++
37    +++ exited with 0 +++
36    +++ exited with 0 +++
35    +++ exited with 0 +++
31    +++ exited with 0 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=31, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
33    +++ exited with 0 +++
30    +++ exited with 0 +++
23    --- 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-build604261098/b001/_pkg"..., "-trimpath", "/tmp/go-build604261098/b001=>", "-p", "main", "-complete", "-buildid", "PeXjegKSKkw0iZcG1B4b/PeXjegKSKkw"..., "-goversion", "go1.13.10", "-D", "_/tmp", "-importcfg", "/tmp/go-build604261098/b001/impo"..., "-pack", "-c=2", "/tmp/code.go"], 0xc0000824e0 /* 25 vars */) = 0
42    +++ exited with 0 +++
41    +++ exited with 0 +++
40    +++ exited with 0 +++
43    +++ 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=0, si_stime=1} ---
44    execve("/usr/lib/go/pkg/tool/linux_amd64/link", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000082a90 /* 25 vars */) = 0
48    +++ exited with 0 +++
46    +++ exited with 0 +++
45    +++ exited with 0 +++
47    +++ exited with 0 +++
44    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=44, 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-build604261098/b001/exe/"..., "-importcfg", "/tmp/go-build604261098/b001/impo"..., "-buildmode=exe", "-buildid=0-D_mnl8TdXhA-BIRpcD/Pe"..., "-extld=gcc", "/tmp/go-build604261098/b001/_pkg"...], 0xc000083520 /* 25 vars */) = 0
52    +++ exited with 0 +++
51    +++ exited with 0 +++
53    +++ exited with 0 +++
50    +++ 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=25, si_stime=5} ---
22    +++ exited with 0 +++
19    +++ exited with 0 +++
17    +++ exited with 0 +++
16    +++ exited with 0 +++
15    +++ exited with 0 +++
18    +++ exited with 0 +++
14    +++ exited with 0 +++
23    +++ 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=14} ---
54    execve("/bin/cat", ["cat", "-"], 0x56441d836d08 /* 7 vars */ <unfinished ...>
55    execve("/tmp/code", ["/tmp/code"], 0x56441d836cf0 /* 7 vars */) = 0
54    <... execve resumed>)             = 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} ---
57    +++ exited with 0 +++
58    +++ exited with 0 +++
56    +++ exited with 0 +++
59    +++ 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"], 0x56441d836cf0 /* 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 +++