by@paradigm_9
AC
1910ms
h,w=`dd`.split.map &.to_i;puts q="*"*w,"*#{" "*(w-2)}* "*(h-2),q
18 49
************************************************* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *************************************************
0+1 records in 0+1 records out 6 bytes copied, 4.7e-05 s, 128 kB/s