Result

AC

Duration

973ms

Code [DL]

with x(i,j,k)as(select v+0 i,substr(v,length(-v))-2 j,1 k from i union select i,j,k+1 from x where i-k)select printf('*%.'||j||'c*',case when(k=1 or k=i)then'*'else' 'end)from x

stdin

65
63

stdout

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

stderr