Result

AC

Duration

647ms

Code [DL]

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

stdin

53
16
28
40
92
73
25
85
47
98
49
11
75
68
56
20
59
97
10
29
82
80
63
33
51
88
45
42
66
71
84
93
65
41
91
78
22
44
24
43
96
76
60
77
95
52
70
23
86
55

stdout

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

stderr

strace

12    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffdea83cca8 /* 7 vars */) = 0
13    execve("/bin/cat", ["cat", "-"], 0x7fdce1001230 /* 7 vars */) = 0
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("/usr/bin/node", ["/usr/bin/node", "/volume/CODE"], 0x7fdce1001240 /* 7 vars */) = 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=0} ---
12    +++ exited with 0 +++