Result

AC

Duration

508ms

Code [DL]

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

stdin

57
60
86
19
72
27
25
15
94
39
23
97
21
91
50
90
54
48
22
99
88
47
33
46
92
12
35
81
20
17
42
67
55
89
68
93
62
61
49
83
58
13
87
82
38
95
28
65
18
43

stdout

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

stderr

strace

13    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffdf3766048 /* 6 vars */) = 0
14    execve("/bin/cat", ["cat", "-"], 0x56225b534c00 /* 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"], 0x56225cca85f0 /* 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"], 0x56225cca8888 /* 7 vars */ <unfinished ...>
18    execve("/bin/sed", ["sed", "-e", "1,2d"], 0x56225cca88b8 /* 7 vars */ <unfinished ...>
17    <... execve resumed>)             = 0
18    <... execve resumed>)             = 0
19    execve("/bin/sed", ["sed", "-e", "$d"], 0x56225cca88b8 /* 7 vars */ <unfinished ...>
20    execve("/bin/sed", ["sed", "-e", "$d"], 0x56225cca88b8 /* 7 vars */) = 0
19    <... execve resumed>)             = 0
21    execve("/bin/sed", ["sed", "-e", "$d"], 0x56225cca88b8 /* 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=1, si_stime=0} ---
19    +++ exited with 0 +++
13    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=19, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
20    +++ exited with 0 +++
18    +++ 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"], 0x56225cca8658 /* 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 +++