Result

AC

Duration

915ms

Code [DL]

$h=<>;$w=<>-2;print"*".($i++&&$i<$h?" ":"*")x$w."*
"for(1..$h)

stdin

18
51

stdout

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

stderr