Result

AC

Duration

740ms

Code [DL]

`define STDIN 32'h8000_0000

module cat;
	integer c, i=0, s=0, e=0, k=0;
	initial begin
		c = $fgetc(`STDIN);
		while (c != -1) begin
			if(c[4]) begin
				s = i;
			end else if(c[6]) begin
				e = i;
			end
			i += 1;
			c = $fgetc(`STDIN);
		end
		for(i=0; i<=e/51; i++) begin
			for(c=0; c<51; c++) begin
				if(c==s%51||(i==e/51&&c>=e%51&&c<=s%51)) begin
					k = 8'h2a;
				end else begin
					k = 8'h20;
				end
				$write("%c", k);
			end
			$write("%c", 8'h0a);
		end
	end
endmodule

stdin

                                                T 
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                                  
                                            K     

stdout

                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                                *  
                                            *****  

stderr

strace

11    execve("/bin/sh", ["/bin/sh", "/root/script", "/volume/CODE"], 0x7fffd7e17500 /* 9 vars */) = 0
12    execve("/usr/local/bin/iverilog", ["/usr/local/bin/iverilog", "-o", "/tmp/code", "/volume/CODE"], 0x55939bf3ed50 /* 9 vars */) = 0
13    execve("/bin/sh", ["sh", "-c", "/usr/local/lib/ivl/ivlpp  -L -F\""...], 0x7ffc72fe8b60 /* 9 vars */) = 0
15    execve("/usr/local/lib/ivl/ivl", ["/usr/local/lib/ivl/ivl", "-C/tmp/ivrlh65c2bef9", "-C/usr/local/lib/ivl/vvp.conf", "--", "-"], 0x5614487bf2d0 /* 9 vars */) = 0
14    execve("/usr/local/lib/ivl/ivlpp", ["/usr/local/lib/ivl/ivlpp", "-L", "-F/tmp/ivrlg265c2bef9", "-f/tmp/ivrlg65c2bef9", "-p/tmp/ivrli65c2bef9"], 0x5614487bf2e8 /* 9 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} ---
13    +++ exited with 0 +++
12    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=13, si_uid=0, si_status=0, si_utime=0, si_stime=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} ---
17    execve("/tmp/code", ["/tmp/code"], 0x55939bf3ecf0 /* 9 vars */) = 0
16    execve("/bin/cat", ["cat", "-"], 0x55939bf3ed08 /* 9 vars */) = 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} ---
17    +++ exited with 0 +++
11    --- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=17, si_uid=0, si_status=0, si_utime=1, si_stime=0} ---
18    execve("/bin/rm", ["rm", "/tmp/code"], 0x55939bf3ec98 /* 9 vars */) = 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} ---
11    +++ exited with 0 +++