Result

AC

Duration

533ms

Code [DL]

$<.reduce(?a){p _1>_2 ? 1:0;[_1,_2].min}

stdin

65
37
46
99
71
92
19
72
89
55
23
86
50
76
29
33
85
14
22
36
52
38
83
18
42
47
62
60
74
93
11
82
16
70
32
67
69
45
31
61
56
39
51
10
12
90
17
84
20
80

stdout

1
1
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0
0
0
0
0
0
0
1
0
0
0
0
0
0

stderr

strace

17    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffe86480f58 /* 9 vars */) = 0
19    execve("/usr/local/ruby-latest/bin/ruby", ["/usr/local/ruby-latest/bin/ruby", "/volume/CODE"], 0x7fa034e49260 /* 9 vars */ <unfinished ...>
18    execve("/bin/cat", ["cat", "-"], 0x7fa034e49240 /* 9 vars */ <unfinished ...>
19    <... execve resumed>)             = 0
18    <... execve resumed>)             = 0
18    +++ exited with 0 +++
17    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
19    +++ exited with 0 +++
17    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=5, si_stime=0} ---
17    +++ exited with 0 +++