Result

AC

Duration

1123ms

Code [DL]

JS{{{process.stdin.on('data',s=>{let[h,w]=(''+s).split(`
`)
for(s=h;s--;)console.log("*"+(s>0&s<h-1?" ":"*").repeat(w-2)+"*")})}}}

stdin

25
91

stdout

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

stderr