Result

WA

Duration

810ms

Code [DL]

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

stdin

311 418
488 887
477 779
288 416
459 595
832 839
224 923
353 319
947 523
588 995
823 356
762 635
832 561
633 321
292 992
244 219
542 221
388 281
982 772
536 621
587 578
219 147
855 224
717 774
671 991
984 846
232 236
558 552
422 736
215 515
143 635
922 232

stdout

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

stderr

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

strace

10    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7ffc860c2950 /* 6 vars */) = 0
11    execve("/bin/cat", ["cat", "-"], 0x55c4b0b99be0 /* 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"], 0x55c4b1ffe5d0 /* 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"], 0x55c4b1ffe868 /* 7 vars */ <unfinished ...>
15    execve("/bin/sed", ["sed", "-e", "1,2d"], 0x55c4b1ffe898 /* 7 vars */ <unfinished ...>
16    execve("/bin/sed", ["sed", "-e", "$d"], 0x55c4b1ffe898 /* 7 vars */ <unfinished ...>
17    execve("/bin/sed", ["sed", "-e", "$d"], 0x55c4b1ffe898 /* 7 vars */ <unfinished ...>
16    <... execve resumed> )            = 0
17    <... execve resumed> )            = 0
18    execve("/bin/sed", ["sed", "-e", "$d"], 0x55c4b1ffe898 /* 7 vars */ <unfinished ...>
15    <... execve resumed> )            = 0
14    <... execve resumed> )            = 0
18    <... execve resumed> )            = 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} ---
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} ---
19    execve("/bin/rm", ["rm", "code.log"], 0x55c4b0b99b78 /* 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"], 0x55c4b0b99b78 /* 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"], 0x55c4b0b99b78 /* 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"], 0x55c4b0b99b78 /* 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 +++