Result

AC

Duration

1176ms

Code [DL]

SHELL=bash
a:
	@read h w<<<'$(STDIN:\n= )';for((;h;)){ printf \\$$[++i%w/2*c?40:i>w?c=--h-1,i=0,12:52];}

stdin

46
58

stdout

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

stderr