Result

AC

Duration

508ms

Code [DL]

\newcount\m\newcount\i\m=100\loop\ifnum\i<50\read0to\a\immediate\write1{\ifnum\a<\m1\else0\fi}\ifnum\a<\m\m=\a\fi\advance\i1\repeat\end

stdin

63
47
91
43
83
46
36
78
94
29
40
88
93
70
64
27
41
79
53
90
86
55
37
98
68
67
38
10
45
58
11
56
21
59
69
71
22
96
35
49
33
60
52
77
16
73
85
26
12
84

stdout

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

stderr

strace

13    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc864b5938 /* 6 vars */) = 0
14    execve("/bin/cat", ["cat", "-"], 0x5651c3d1cc00 /* 6 vars */) = 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} ---
15    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=15, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
16    execve("/bin/cat", ["cat", "-", "/volume/CODE"], 0x5651c4e885f0 /* 6 vars */) = 0
16    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=16, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
17    execve("/usr/local/texlive/2020/bin/x86_64-linux/tex", ["/usr/local/texlive/2020/bin/x86_"..., "code.tex"], 0x5651c4e88888 /* 7 vars */) = 0
18    execve("/bin/sed", ["sed", "-e", "1,2d"], 0x5651c4e888b8 /* 7 vars */) = 0
20    execve("/bin/sed", ["sed", "-e", "$d"], 0x5651c4e888b8 /* 7 vars */) = 0
21    execve("/bin/sed", ["sed", "-e", "$d"], 0x5651c4e888b8 /* 7 vars */) = 0
19    execve("/bin/sed", ["sed", "-e", "$d"], 0x5651c4e888b8 /* 7 vars */) = 0
17    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=0, si_stime=1} ---
18    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=18, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
20    +++ exited with 0 +++
19    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=20, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
21    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=21, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
22    execve("/bin/rm", ["rm", "-f", "code.log", "code.dvi", "code.tex", "stdin.tex"], 0x5651c4e88658 /* 7 vars */) = 0
22    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=22, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
13    +++ exited with 0 +++