Result

AC

Duration

2087ms

Code [DL]

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

stdin

648 164
826 129
155 556
855 758
233 449
614 221
344 814
915 515
966 667
251 384
366 624
199 886
723 992
421 314
761 123
867 469
873 336
311 133
362 793
954 547
964 659
547 475
775 575
944 123
669 975
312 221
538 365
692 991
277 477
286 161
745 623
549 442

stdout

11553245636993143175645492397164

stderr

strace

14    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe5d6689c0 /* 7 vars */) = 0
15    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55f56a92bd18 /* 7 vars */) = 0
15    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    execve("/bin/ln", ["ln", "-sf", "/volume/CODE", "/tmp/code.go"], 0x55f56a92bd38 /* 7 vars */) = 0
16    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
17    execve("/usr/bin/go", ["/usr/bin/go", "build", "-o", "/tmp/code", "/tmp/code.go"], 0x55f56c808028 /* 7 vars */) = 0
24    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000430b60 /* 25 vars */) = 0
25    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc00043e1a0 /* 25 vars */) = 0
30    +++ exited with 0 +++
29    +++ exited with 0 +++
28    +++ exited with 0 +++
34    +++ exited with 0 +++
33    +++ exited with 0 +++
31    +++ exited with 0 +++
24    +++ exited with 0 +++
17    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=24, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
32    +++ exited with 0 +++
35    +++ exited with 0 +++
25    +++ exited with 0 +++
22    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=25, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
36    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc00043e410 /* 25 vars */) = 0
37    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000430dd0 /* 25 vars */) = 0
40    +++ exited with 0 +++
39    +++ exited with 0 +++
38    +++ exited with 0 +++
41    +++ exited with 0 +++
36    +++ exited with 0 +++
17    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=36, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
44    +++ exited with 0 +++
43    +++ exited with 0 +++
42    +++ exited with 0 +++
45    +++ exited with 0 +++
37    +++ exited with 0 +++
17    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=37, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
46    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build486370940/b001/_pkg"..., "-trimpath", "/tmp/go-build486370940/b001=>", "-p", "main", "-complete", "-buildid", "cSKEDf2mgNJ56EScYoc_/cSKEDf2mgNJ"..., "-goversion", "go1.13.10", "-D", "_/tmp", "-importcfg", "/tmp/go-build486370940/b001/impo"..., "-pack", "-c=2", "/tmp/code.go"], 0xc0002f8410 /* 25 vars */) = 0
49    +++ exited with 0 +++
47    +++ exited with 0 +++
48    +++ exited with 0 +++
50    +++ exited with 0 +++
46    +++ exited with 0 +++
22    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=46, si_uid=0, si_status=0, si_utime=2, si_stime=0} ---
51    execve("/usr/lib/go/pkg/tool/linux_amd64/link", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002f8820 /* 25 vars */) = 0
54    +++ exited with 0 +++
53    +++ exited with 0 +++
55    +++ exited with 0 +++
52    +++ exited with 0 +++
51    +++ exited with 0 +++
17    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=51, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
56    execve("/usr/lib/go/pkg/tool/linux_amd64/link", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build486370940/b001/exe/"..., "-importcfg", "/tmp/go-build486370940/b001/impo"..., "-buildmode=exe", "-buildid=_Z-A4esVGII8Ghp_SIdF/cS"..., "-extld=gcc", "/tmp/go-build486370940/b001/_pkg"...], 0xc0002f8dd0 /* 25 vars */) = 0
60    +++ exited with 0 +++
59    +++ exited with 0 +++
58    +++ exited with 0 +++
57    +++ exited with 0 +++
56    +++ exited with 0 +++
18    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=56, si_uid=0, si_status=0, si_utime=27, si_stime=5} ---
27    +++ exited with 0 +++
26    +++ exited with 0 +++
23    +++ exited with 0 +++
22    +++ exited with 0 +++
21    +++ exited with 0 +++
20    +++ exited with 0 +++
19    +++ exited with 0 +++
18    +++ exited with 0 +++
17    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=8, si_stime=12} ---
61    execve("/bin/cat", ["cat", "-"], 0x55f56a92bd08 /* 7 vars */) = 0
62    execve("/tmp/code", ["/tmp/code"], 0x55f56a92bcf0 /* 7 vars */) = 0
61    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=61, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
65    +++ exited with 0 +++
64    +++ exited with 0 +++
66    +++ exited with 0 +++
63    +++ exited with 0 +++
62    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=62, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
67    execve("/bin/rm", ["rm", "/tmp/code.go", "/tmp/code"], 0x55f56a92bcf0 /* 7 vars */) = 0
67    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=67, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    +++ exited with 0 +++