by@eto_nagisa
WA
1713ms
$input|%{$_[$_.4 -eq $_[5]?4:2]}
733 262 615 334 588 887 219 194 199 793 141 113 765 342 192 291 191 119 611 718 466 617 617 147 513 135 586 685 915 534 799 991 233 382 366 157 178 414 722 554 657 118 173 574 246 631 447 623 456 684 746 968 548 441 641 715 879 577 399 664 989 884 417 151
3 5 8 9 9 1 5 2 1 1 6 7 3 6 5 9 3 6 8 2 7 3 6 7 6 6 8 1 9 9 9 7
15 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe889a38f0 /* 6 vars */) = 0 17 execve("/usr/bin/pwsh", ["/usr/bin/pwsh", "/volume/CODE"], 0x558087281c28 /* 6 vars */) = 0 16 execve("/bin/cat", ["cat", "-"], 0x558087281c10 /* 6 vars */) = 0 16 +++ exited with 0 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 20 +++ exited with 0 +++ 17 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 22 +++ exited with 0 +++ 17 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 36 +++ exited with 0 +++ 37 +++ exited with 0 +++ 35 +++ exited with 0 +++ 34 +++ exited with 0 +++ 33 +++ exited with 0 +++ 30 +++ exited with 0 +++ 28 +++ exited with 0 +++ 29 +++ exited with 0 +++ 27 +++ exited with 0 +++ 25 +++ exited with 0 +++ 32 +++ exited with 0 +++ 26 +++ exited with 0 +++ 24 +++ exited with 0 +++ 31 +++ exited with 0 +++ 23 +++ exited with 0 +++ 21 +++ exited with 0 +++ 19 +++ exited with 0 +++ 18 +++ exited with 0 +++ 17 +++ exited with 0 +++ 15 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=43, si_stime=12} --- 15 +++ exited with 0 +++