by@eto_nagisa
WA
1580ms
$input|%{if($_[2] -eq $_[4]){$_[2]}else{$_[4]}}
178 993 673 717 675 574 747 448 955 557 234 996 542 665 931 167 835 674 896 717 481 819 198 982 626 622 899 633 677 748 732 626 414 246 936 835 665 861 397 516 655 229 144 464 293 313 788 885 238 889 511 442 717 779 522 573 944 346 599 598 749 447 831 374
9 7 5 4 5 9 6 1 6 7 8 9 6 6 7 6 2 8 8 5 2 4 3 8 8 4 7 5 3 5 4 3
10 execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffdd5b19010 /* 6 vars */) = 0 11 execve("/bin/cat", ["cat", "-"], 0x560f3d16bc10 /* 6 vars */ <unfinished ...> 12 execve("/usr/bin/pwsh", ["/usr/bin/pwsh", "/volume/CODE"], 0x560f3d16bc28 /* 6 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} --- 15 +++ exited with 0 +++ 16 +++ exited with 0 +++ 12 --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} --- 31 +++ exited with 0 +++ 32 +++ exited with 0 +++ 30 +++ exited with 0 +++ 29 +++ exited with 0 +++ 28 +++ exited with 0 +++ 26 +++ exited with 0 +++ 27 +++ exited with 0 +++ 25 +++ exited with 0 +++ 24 +++ exited with 0 +++ 23 +++ exited with 0 +++ 22 +++ exited with 0 +++ 21 +++ exited with 0 +++ 20 +++ exited with 0 +++ 19 +++ exited with 0 +++ 18 +++ exited with 0 +++ 17 +++ exited with 0 +++ 14 +++ exited with 0 +++ 13 +++ exited with 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=40, si_stime=15} --- 10 +++ exited with 0 +++