by@drafear
WA
1308ms
f()for((;--w>0;)){ s=$c$s } read h read w c=' ' f c="*$s* " s= x=${c// /*} w=$h f echo "$x$s$x"
10 62
*************************************************************** * * * * * * * * * * * * * * * * * * ***************************************************************