Result

AC

Duration

1022ms

Code [DL]

\def\p#1#2#3#4#5#6{\if#2#3#3\else#4\fi}\loop\ifnum\pageno<33\read0to\i\immediate\write0{\expandafter\p\i}\advance\pageno1\repeat\end

stdin

149 846
344 338
957 528
299 992
847 148
186 836
236 337
432 675
184 718
178 831
611 113
196 441
433 433
186 612
951 317
288 588
211 124
339 931
142 243
463 569
855 885
792 224
639 665
986 661
911 131
166 214
868 665
382 721
766 148
124 241
659 599
797 993

stdout

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

stderr

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

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffd78e437a0 /* 6 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55f76dbd1be0 /* 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} ---
13    execve("/bin/cat", ["cat", "-", "/volume/CODE"], 0x55f76f5df5d0 /* 6 vars */) = 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    +++ 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} ---
18    execve("/bin/sed", ["sed", "-e", "$d"], 0x55f76f5df898 /* 7 vars */) = 0
17    execve("/bin/sed", ["sed", "-e", "$d"], 0x55f76f5df898 /* 7 vars */) = 0
16    execve("/bin/sed", ["sed", "-e", "$d"], 0x55f76f5df898 /* 7 vars */) = 0
15    execve("/bin/sed", ["sed", "-e", "1,2d"], 0x55f76f5df898 /* 7 vars */) = 0
14    execve("/usr/local/texlive/2020/bin/x86_64-linux/tex", ["/usr/local/texlive/2020/bin/x86_"..., "code.tex"], 0x55f76f5df868 /* 7 vars */) = 0
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} ---
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} ---
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} ---
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} ---
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=0} ---
19    execve("/bin/rm", ["rm", "code.log"], 0x55f76dbd1b78 /* 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"], 0x55f76dbd1b78 /* 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"], 0x55f76dbd1b78 /* 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"], 0x55f76dbd1b78 /* 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 +++