by@paradigm_9
AC
1390ms
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--?' ':'*')}");}}
77 83
*********************************************************************************** * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ***********************************************************************************
Unhandled Exception: System.DivideByZeroException: Attempted to divide by zero. at A.Main () [0x00013] in <4a4f0e901f7f4d028904154a773e6742>:0 [ERROR] FATAL UNHANDLED EXCEPTION: System.DivideByZeroException: Attempted to divide by zero. at A.Main () [0x00013] in <4a4f0e901f7f4d028904154a773e6742>:0