Result

AC

Duration

616ms

Code [DL]

(''+require('fs').readFileSync(x=0)).split`
`.map(Number).map(a=>console.log(x&&a>=x?0:(x=a)&&1))

stdin

76
64
85
86
71
20
54
23
49
66
12
99
38
47
18
15
89
50
87
93
96
79
98
25
80
56
19
53
21
63
45
52
39
62
46
42
95
67
68
70
74
40
22
92
37
84
51
82
34
26

stdout

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

stderr

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc5e6ab548 /* 7 vars */) = 0
13    execve("/bin/cat", ["cat", "-"], 0x7fb37b283230 /* 7 vars */) = 0
13    +++ exited with 0 +++
14    execve("/usr/bin/node", ["/usr/bin/node", "/volume/CODE"], 0x7fb37b283240 /* 7 vars */ <unfinished ...>
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
19    +++ exited with 0 +++
16    +++ exited with 0 +++
18    +++ exited with 0 +++
17    +++ exited with 0 +++
15    +++ exited with 0 +++
20    +++ exited with 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=5, si_stime=1} ---
12    +++ exited with 0 +++