Result

AC

Duration

785ms

Code [DL]

j=99;console.log((""+require("fs").readFileSync(0)).split('\n').map(i=>parseInt(i)).map(n=>j>n?(j=n,1):0).slice(0,-1).join(''))

stdin

14
55
44
93
27
89
65
64
26
31
46
54
33
37
57
95
20
42
32
60
51
45
80
18
25
48
22
34
91
49
86
75
21
35
98
56
63
71
15
30
43
62
88
17
94
52
79
87
41
68

stdout

10000000000000000000000000000000000000000000000000

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc17b55ab0 /* 7 vars */) = 0
12    execve("/bin/cat", ["cat", "-"], 0x55cba40c6d30 /* 7 vars */) = 0
12    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=12, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    execve("/usr/bin/node", ["/usr/bin/node", "/volume/CODE"], 0x55cba40c6d40 /* 7 vars */) = 0
15    +++ exited with 0 +++
17    +++ exited with 0 +++
16    +++ exited with 0 +++
18    +++ exited with 0 +++
14    +++ exited with 0 +++
19    +++ exited with 0 +++
13    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=5, si_stime=1} ---
11    +++ exited with 0 +++