Result

AC

Duration

1001ms

Code [DL]

let m=String.make let()=let a=read_int()in let b=read_int()in for i=1 to a do if i=1||i=a then print_endline(m b '*')else print_endline("*"^m(b-2)' '^"*")done

stdin

63
99

stdout

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

stderr