Result

AC

Duration

1399ms

Code [DL]

using S=System.Console;class A{static int r=>int.Parse(S.ReadLine());static void Main(){for(int h=r,w=r,y=h;;)S.Write("*"+"*\n".PadLeft(w,"* "[y%h/y%y--]));}}

stdin

54
59

stdout

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

stderr

Unhandled Exception:
System.DivideByZeroException: Attempted to divide by zero.
  at A.Main () [0x00013] in <614c27b85e024f5385a8e14b1e0f1dca>:0 
[ERROR] FATAL UNHANDLED EXCEPTION: System.DivideByZeroException: Attempted to divide by zero.
  at A.Main () [0x00013] in <614c27b85e024f5385a8e14b1e0f1dca>:0