Result

AC

Duration

1887ms

Code [DL]

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

stdin

229 945
744 364
565 557
373 371
855 558
877 712
574 672
388 992
785 847
622 147
638 383
847 697
581 762
135 141
795 996
833 233
517 514
522 928
865 859
894 987
633 334
181 112
386 224
495 592
437 373
696 156
757 273
377 885
847 751
171 553
899 935
139 339

stdout

94535768823671935289312531277593

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fff36074470 /* 7 vars */) = 0
11    execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x55cbfc904d18 /* 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"], 0x55cbfc904d38 /* 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"], 0x55cbfcb3a028 /* 7 vars */) = 0
20    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000136f70 /* 25 vars */) = 0
21    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000139450 /* 25 vars */) = 0
25    +++ exited with 0 +++
24    +++ exited with 0 +++
26    +++ exited with 0 +++
20    +++ exited with 0 +++
19    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
27    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0001371e0 /* 25 vars */) = 0
29    +++ exited with 0 +++
30    +++ exited with 0 +++
31    +++ exited with 0 +++
28    +++ 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} ---
36    +++ exited with 0 +++
35    +++ exited with 0 +++
34    +++ exited with 0 +++
32    +++ exited with 0 +++
27    +++ exited with 0 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=27, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
33    execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0001396c0 /* 25 vars */) = 0
38    +++ exited with 0 +++
39    +++ exited with 0 +++
37    +++ exited with 0 +++
40    +++ exited with 0 +++
33    +++ exited with 0 +++
15    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=33, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
41    execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build109615979/b001/_pkg"..., "-trimpath", "/tmp/go-build109615979/b001=>", "-p", "main", "-complete", "-buildid", "1_Jf6F9_a5t7Gi0ogm9i/1_Jf6F9_a5t"..., "-goversion", "go1.13.10", "-D", "_/tmp", "-importcfg", "/tmp/go-build109615979/b001/impo"..., "-pack", "-c=2", "/tmp/code.go"], 0xc0003904e0 /* 25 vars */) = 0
43    +++ exited with 0 +++
45    +++ exited with 0 +++
44    +++ exited with 0 +++
42    +++ exited with 0 +++
41    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=41, si_uid=0, si_status=0, si_utime=1, si_stime=0} ---
46    execve("/usr/lib/go/pkg/tool/linux_amd64/link", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0002dc270 /* 25 vars */) = 0
49    ????( <unfinished ...>
49    +++ exited with 0 +++
48    +++ exited with 0 +++
47    +++ exited with 0 +++
46    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=46, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
50    execve("/usr/lib/go/pkg/tool/linux_amd64/link", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build109615979/b001/exe/"..., "-importcfg", "/tmp/go-build109615979/b001/impo"..., "-buildmode=exe", "-buildid=RwNhu2i6p4has8qKXn9x/1_"..., "-extld=gcc", "/tmp/go-build109615979/b001/_pkg"...], 0xc0002dc750 /* 25 vars */) = 0
54    +++ exited with 0 +++
53    +++ exited with 0 +++
52    +++ exited with 0 +++
51    +++ exited with 0 +++
50    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=50, si_uid=0, si_status=0, si_utime=19, si_stime=3} ---
23    +++ exited with 0 +++
22    +++ exited with 0 +++
19    +++ 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=5, si_stime=12} ---
55    execve("/bin/cat", ["cat", "-"], 0x55cbfc904d08 /* 7 vars */) = 0
56    execve("/tmp/code", ["/tmp/code"], 0x55cbfc904cf0 /* 7 vars */) = 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} ---
57    +++ exited with 0 +++
59    +++ exited with 0 +++
58    +++ exited with 0 +++
56    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=56, si_uid=0, si_status=0, si_utime=0, si_stime=1} ---
60    execve("/bin/rm", ["rm", "/tmp/code.go", "/tmp/code"], 0x55cbfc904cf0 /* 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 +++