by@kotatsugame_t
WA
811ms
for x in io.lines()do print(x:match("(%d) ?%1")or 1)end
611 135 188 998 931 338 722 818 277 379 144 448 262 246 157 551 441 174 771 744 295 957 656 867 864 778 165 557 294 986 337 832 639 996 211 441 717 721 122 225 362 778 568 585 633 927 899 191 972 414 741 418 877 783 331 134 827 322 276 624 285 582 643 278
1 8 3 2 7 4 2 5 4 7 1 1 7 5 1 3 9 1 7 2 7 1 3 9 1 1 7 3 2 6 5 1
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffef8864440 /* 7 vars */) = 0 11 execve("/bin/cat", ["cat", "-"], 0x5584dff42d30 /* 7 vars */ <unfinished ...> 12 execve("/usr/bin/lua5.3", ["/usr/bin/lua5.3", "/volume/CODE"], 0x5584dff42d40 /* 7 vars */ <unfinished ...> 11 <... execve resumed>) = 0 12 <... execve resumed>) = 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 +++ 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} --- 10 +++ exited with 0 +++