Result

AC

Duration

611ms

Code [DL]

console.log((''+require(x='fs').readFileSync(0)).replace(/.+/g,a=>a<x&&(x=a)?1:0))

stdin

81
82
46
59
64
85
66
74
92
62
54
31
38
51
94
52
20
83
11
21
58
33
99
16
69
42
25
32
37
63
35
88
48
18
76
27
26
68
12
73
28
61
57
13
41
60
24
29
36
79

stdout

1
0
1
0
0
0
0
0
0
0
0
1
0
0
0
0
1
0
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

stderr

strace

13    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffffd2d5558 /* 7 vars */) = 0
15    execve("/usr/bin/node", ["/usr/bin/node", "/volume/CODE"], 0x7f9a5aa66240 /* 7 vars */ <unfinished ...>
14    execve("/bin/cat", ["cat", "-"], 0x7f9a5aa66230 /* 7 vars */ <unfinished ...>
15    <... execve resumed>)             = 0
14    <... execve resumed>)             = 0
14    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=14, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
18    +++ exited with 0 +++
20    +++ exited with 0 +++
19    +++ exited with 0 +++
16    +++ exited with 0 +++
17    +++ exited with 0 +++
21    +++ exited with 0 +++
15    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=5, si_stime=0} ---
13    +++ exited with 0 +++