Result

AC

Duration

970ms

Code [DL]

y=gets.to_i
x=gets.to_i
puts ?**x,*[?*+" "*(x-2)+?*]*(y-2),?**x

stdin

36
18

stdout

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

stderr