Result

AC

Duration

622ms

Code [DL]

require('fs').readFileSync(x=i=(m=999)-m).map(v=>++i%3?x+=v+x*10:console.log((x<m?(m=x)/m:0)+(x=0)))

stdin

52
57
44
38
63
13
75
56
49
51
20
10
67
46
35
87
66
12
19
11
21
36
59
34
58
96
85
33
25
39
77
69
28
84
86
53
90
23
71
98
68
40
37
31
97
80
27
94
93
26

stdout

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

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fffa50f9428 /* 7 vars */) = 0
13    execve("/usr/bin/node", ["/usr/bin/node", "/volume/CODE"], 0x7f4adab9f240 /* 7 vars */ <unfinished ...>
12    execve("/bin/cat", ["cat", "-"], 0x7f4adab9f230 /* 7 vars */ <unfinished ...>
13    <... execve resumed>)             = 0
12    <... execve resumed>)             = 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} ---
15    +++ exited with 0 +++
18    +++ exited with 0 +++
17    +++ exited with 0 +++
16    +++ 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=4, si_stime=0} ---
11    +++ exited with 0 +++