Result

AC

Duration

982ms

Code [DL]

(puts $_[1]==$_[2]?$_[2]:$_[4])while gets

stdin

883 244
597 289
225 771
798 788
488 883
729 299
886 856
637 714
579 975
154 472
511 993
734 437
841 197
587 285
788 839
977 975
711 868
439 337
138 363
244 448
144 184
844 143
437 371
733 996
529 995
546 793
919 992
653 956
915 112
573 135
899 958
296 221

stdout

2
2
7
7
8
2
8
7
9
4
1
4
1
2
8
7
1
3
3
4
4
4
3
3
9
7
9
9
1
1
9
2

stderr

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd5d4415c0 /* 9 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55888c62ad40 /* 9 vars */) = 0
12    execve("/usr/local/ruby-2.7.1/bin/ruby", ["/usr/local/ruby-2.7.1/bin/ruby", "/volume/CODE"], 0x55888c62ad60 /* 9 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} ---
12    +++ exited with 0 +++
10    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=7, si_stime=1} ---
10    +++ exited with 0 +++