Result

AC

Duration

814ms

Code [DL]

\def~#1#2#3#4#5#6{\if#2#3#3\else#4\fi}\loop\ifnum\fam<32\read0to\i\immediate\write0{\expandafter~\i}\advance\fam1\repeat\end

stdin

275 757
611 195
288 384
513 634
122 229
451 259
527 537
733 914
356 644
223 322
284 829
852 414
588 613
722 665
218 556
217 177
711 179
883 631
895 553
531 158
133 838
251 156
266 663
382 113
599 339
535 951
884 319
729 262
763 667
356 451
234 443
229 228

stdout

7 
1 
8 
6 
2 
2 
5 
3 
6 
3 
8 
4 
8 
2 
5 
1 
1 
6 
5 
1 
3 
1 
6 
1 
9 
9 
3 
2 
6 
4 
4 
2 

stderr

rm: cannot remove 'code.dvi': No such file or directory

strace

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