Result

AC

Duration

1626ms

Code [DL]

$input|%{$_[$_[4]-eq$_[5]?4:2]}

stdin

678 576
581 138
625 594
314 348
211 325
122 522
433 356
714 889
489 981
176 991
949 442
455 997
597 972
613 334
581 117
576 625
943 436
194 294
388 661
855 559
447 439
881 366
366 715
787 968
313 115
522 124
411 112
471 747
625 959
933 363
427 225
864 466

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe36a28080 /* 6 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x564f4a1c6c10 /* 6 vars */) = 0
12    execve("/usr/bin/pwsh", ["/usr/bin/pwsh", "/volume/CODE"], 0x564f4a1c6c28 /* 6 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} ---
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 +++
26    +++ exited with 0 +++
28    +++ exited with 0 +++
27    +++ exited with 0 +++
29    +++ 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=42, si_stime=18} ---
10    +++ exited with 0 +++