Result

AC

Duration

1811ms

Code [DL]

$i=$Input.Split("\n")
0..31|ForEach{
$s=$i[$_]
if($s[1] -eq $s[2]){echo($s[2])}else{echo($s[4])}
}

stdin

755 552
134 424
623 228
288 819
114 723
126 629
894 536
751 116
391 915
855 334
199 299
535 755
982 845
322 282
488 456
395 995
483 335
882 345
319 889
331 737
281 812
516 139
566 261
844 515
155 558
211 443
253 116
748 847
569 914
411 839
249 692
965 966

stdout

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

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd806a1c40 /* 6 vars */) = 0
12    execve("/usr/bin/pwsh", ["/usr/bin/pwsh", "/volume/CODE"], 0x55bb85a73c28 /* 6 vars */ <unfinished ...>
11    execve("/bin/cat", ["cat", "-"], 0x55bb85a73c10 /* 6 vars */ <unfinished ...>
12    <... execve resumed> )            = 0
11    <... 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 +++
27    +++ exited with 0 +++
26    +++ 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=48, si_stime=22} ---
10    +++ exited with 0 +++