by@taiyoslime
WA
1359ms
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]+t};Print(t[0]-48);i++}}
319 415 125 825 225 522 943 428 916 563 688 585 144 926 725 576 795 881 863 636 965 663 144 997 318 992 494 492 765 553 276 729 181 117 471 778 377 274 238 439 256 962 644 441 665 653 477 538 233 331 244 484 864 381 515 587 335 717 544 451 633 887 838 918
# command-line-arguments /tmp/code.go:3:78: invalid operation: s[1] + t (mismatched types byte and string) /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"], 0x7ffe2c11f0a0 /* 7 vars */) = 0 11 execve("/usr/bin/realpath", ["realpath", "/volume/CODE"], 0x56405f863d18 /* 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"], 0x56405f863d38 /* 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"], 0x56406143e028 /* 7 vars */) = 0 20 execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc0001301a0 /* 25 vars */) = 0 21 execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc00012dad0 /* 25 vars */) = 0 23 ????( <unfinished ...> 25 +++ exited with 0 +++ 24 +++ exited with 0 +++ 23 +++ exited with 0 +++ 20 +++ exited with 0 +++ 18 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 26 execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc000130340 /* 25 vars */) = 0 29 +++ exited with 0 +++ 28 +++ exited with 0 +++ 27 +++ exited with 0 +++ 30 +++ exited with 0 +++ 21 +++ exited with 0 +++ 18 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 33 +++ exited with 0 +++ 34 +++ exited with 0 +++ 35 +++ exited with 0 +++ 32 +++ exited with 0 +++ 26 +++ exited with 0 +++ 18 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=26, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 31 execve("/usr/lib/go/pkg/tool/linux_amd64/asm", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-V=full"], 0xc00012dd40 /* 25 vars */) = 0 37 +++ exited with 0 +++ 36 +++ exited with 0 +++ 38 +++ 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} --- 39 execve("/usr/lib/go/pkg/tool/linux_amd64/compile", ["/usr/lib/go/pkg/tool/linux_amd64"..., "-o", "/tmp/go-build927957948/b001/_pkg"..., "-trimpath", "/tmp/go-build927957948/b001=>", "-p", "main", "-complete", "-buildid", "blMigI8Wl8ByxNVdFvwI/blMigI8Wl8B"..., "-goversion", "go1.13.10", "-D", "_/tmp", "-importcfg", "/tmp/go-build927957948/b001/impo"..., "-pack", "-c=2", "/tmp/code.go"], 0xc0003b0410 /* 25 vars */) = 0 42 +++ exited with 2 +++ 41 +++ exited with 2 +++ 40 +++ exited with 2 +++ 43 +++ exited with 2 +++ 39 +++ exited with 2 +++ 13 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=39, si_uid=0, si_status=2, si_utime=0, si_stime=1} --- 22 +++ exited with 2 +++ 19 +++ exited with 2 +++ 18 +++ exited with 2 +++ 17 +++ exited with 2 +++ 16 +++ exited with 2 +++ 15 +++ exited with 2 +++ 14 +++ 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=4, si_stime=12} --- 44 execve("/bin/cat", ["cat", "-"], 0x56405f863d08 /* 7 vars */) = 0 45 execve("/tmp/code", ["/tmp/code"], 0x56405f863cf0 /* 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"], 0x56405f863cf0 /* 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 +++