Result

AC

Duration

1511ms

Code [DL]

$input|%{$_[2+2*($_[1]-ne$_[2])]}

stdin

279 792
378 486
233 393
259 988
244 551
633 336
166 864
291 263
961 665
468 116
822 478
977 987
672 117
944 454
343 334
265 667
171 756
791 199
997 797
843 596
814 743
113 149
955 881
137 778
933 138
369 385
948 246
133 337
937 788
834 827
753 538
445 948

stdout

7
4
3
9
4
3
6
2
6
1
2
7
1
4
3
6
7
1
7
5
7
1
5
7
3
3
2
3
7
8
5
9

stderr

strace

14    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffffc7ff430 /* 6 vars */) = 0
15    execve("/bin/cat", ["cat", "-"], 0x560f821f0c10 /* 6 vars */) = 0
15    +++ exited with 0 +++
16    execve("/usr/bin/pwsh", ["/usr/bin/pwsh", "/volume/CODE"], 0x560f821f0c28 /* 6 vars */ <unfinished ...>
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    <... execve resumed> )            = 0
19    +++ exited with 0 +++
20    +++ exited with 0 +++
16    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
35    +++ exited with 0 +++
27    +++ exited with 0 +++
36    +++ exited with 0 +++
32    +++ exited with 0 +++
33    +++ exited with 0 +++
26    +++ exited with 0 +++
30    +++ exited with 0 +++
31    +++ exited with 0 +++
34    +++ exited with 0 +++
29    +++ exited with 0 +++
25    +++ exited with 0 +++
28    +++ exited with 0 +++
24    +++ exited with 0 +++
23    +++ exited with 0 +++
22    +++ exited with 0 +++
21    +++ exited with 0 +++
18    +++ exited with 0 +++
17    +++ exited with 0 +++
16    +++ exited with 0 +++
14    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=38, si_stime=15} ---
14    +++ exited with 0 +++