Result

AC

Duration

1023ms

Code [DL]

<?php for(;$h+=fgets(STDIN);$c=1)echo"*",str_repeat("* "[$c^!--$h],($w+=fgets(STDIN))-2),"*
";

stdin

92
16

stdout

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

stderr

PHP Notice:  Undefined variable: h in /volume/CODE on line 1
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 1
PHP Notice:  Undefined variable: c in /volume/CODE on line 1
PHP Notice:  Undefined variable: w in /volume/CODE on line 1
PHP Notice:  A non well formed numeric value encountered in /volume/CODE on line 1