Result

AC

Duration

1399ms

Code [DL]

using C=System.Console;class Y{static int R=>int.Parse(C.ReadLine());static void Main(){for(int o=R,a=R,n=o-1;o-->0;)C.Write("*"+"*\n".PadLeft(a,o%n==0?'*':' '));}}

stdin

58
99

stdout

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

stderr