Result

AC

Duration

563ms

Code [DL]

x=?a
$<.map{p _1<x ? (x=_1;1):0}

stdin

83
34
99
15
10
18
89
74
76
72
61
62
67
14
60
57
88
65
17
53
93
71
50
49
26
27
12
70
68
98
30
43
59
28
66
77
38
90
32
39
82
19
55
45
16
47
80
63
48
13

stdout

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

stderr

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd8a9436a8 /* 9 vars */) = 0
13    execve("/bin/cat", ["cat", "-"], 0x7fe4dfe1d240 /* 9 vars */) = 0
14    execve("/usr/local/ruby-latest/bin/ruby", ["/usr/local/ruby-latest/bin/ruby", "/volume/CODE"], 0x7fe4dfe1d260 /* 9 vars */ <unfinished ...>
13    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
14    <... execve resumed>)             = 0
14    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=4, si_stime=1} ---
12    +++ exited with 0 +++