Result

AC

Duration

1084ms

Code [DL]

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

stdin

369 974
855 341
134 721
378 757
718 559
813 191
362 993
188 893
994 487
486 863
252 527
499 991
136 678
597 596
872 522
355 452
346 668
977 717
677 115
229 992
323 228
788 887
322 997
673 778
178 874
217 715
899 243
853 132
237 916
544 344
672 977
673 279

stdout

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

stderr

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

strace

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