by@taiyoslime
WA
1352ms
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++}}
298 246 477 545 575 467 631 319 735 373 598 873 911 653 631 613 536 355 733 332 661 149 977 479 264 442 211 223 641 449 755 852 874 545 336 578 738 752 488 334 533 336 527 729 142 421 664 667 478 113 837 134 871 575 299 961 779 998 916 611 811 177 991 774
# command-line-arguments /tmp/code.go:3:28: undefined: i /root/script: line 7: /tmp/code: not found rm: can't remove '/tmp/code': No such file or directory
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd059f39e0 /* 7 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x562e9ddf2d18 /* 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"], 0x562e9ddf2d38 /* 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"], 0x562e9f203028 /* 7 vars */) = 0 20 execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0001560d0 /* 25 vars */) = 0 21 execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000421930 /* 25 vars */) = 0 25 +++ exited with 0 +++ 23 +++ exited with 0 +++ 24 +++ exited with 0 +++ 22 +++ 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} --- 29 +++ exited with 0 +++ 30 +++ exited with 0 +++ 31 +++ exited with 0 +++ 28 +++ exited with 0 +++ 21 +++ exited with 0 +++ 26 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, 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"], 0xc000156340 /* 25 vars */) = 0 32 execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0001564e0 /* 25 vars */) = 0 33 ????( <unfinished ...> 33 +++ exited with 0 +++ 34 +++ exited with 0 +++ 35 +++ exited with 0 +++ 36 +++ exited with 0 +++ 27 +++ exited with 0 +++ 19 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=27, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 37 +++ exited with 0 +++ 38 +++ exited with 0 +++ 39 +++ exited with 0 +++ 32 +++ exited with 0 +++ 19 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=32, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 40 execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build118073607/b001/_pkg"..., "-trimpath", "/tmp/go-build118073607/b001=>", "-p", "main", "-complete", "-buildid", "q4O9vCwz9qjKF6AwywzW/q4O9vCwz9qj"..., "-goversion", "go1.13.10", "-D", "_/tmp", "-importcfg", "/tmp/go-build118073607/b001/impo"..., "-pack", "-c=2", "/tmp/code.go"], 0xc000478410 /* 25 vars */) = 0 41 +++ exited with 2 +++ 43 +++ exited with 2 +++ 42 +++ exited with 2 +++ 40 +++ exited with 2 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=40, si_uid=0, si_status=2, si_utime=0, si_stime=0} --- 26 +++ exited with 2 +++ 19 +++ exited with 2 +++ 18 +++ exited with 2 +++ 17 +++ exited with 2 +++ 15 +++ exited with 2 +++ 14 +++ exited with 2 +++ 16 +++ exited with 2 +++ 13 +++ exited with 2 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=2, si_utime=3, si_stime=12} --- 44 execve("/bin/cat", ["cat", "-"], 0x562e9ddf2d08 /* 7 vars */) = 0 45 execve("/tmp/code", ["/tmp/code"], 0x562e9ddf2cf0 /* 7 vars */) = -1 ENOENT (No such file or directory) 45 +++ exited with 127 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=45, si_uid=0, si_status=127, si_utime=0, si_stime=0} --- 44 --- SIGPIPE {si_signo=SIGPIPE, si_code=SI_USER, si_pid=44, si_uid=0} --- 44 +++ killed by SIGPIPE +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_KILLED, si_pid=44, si_uid=0, si_status=SIGPIPE, si_utime=0, si_stime=0} --- 46 execve("/bin/rm", ["rm", "/tmp/code.go", "/tmp/code"], 0x562e9ddf2cf0 /* 7 vars */) = 0 46 +++ exited with 1 +++ 10 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=46, si_uid=0, si_status=1, si_utime=0, si_stime=0} --- 10 +++ exited with 1 +++