Result

AC

Duration

1134ms

Code [DL]

JS{{{var[a,b,i]=(0+require('fs').readFileSync(0)).split(`
`)
for(;i<a;)console.log(`*${'* '[i++&&i<a&1].repeat(b-2)}*`)

stdin

29
83

stdout

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

stderr