Result

WA

Duration

1664ms

Code [DL]

class A{public static void main(String[]a){var s=new java.util.Scanner(System.in);int h=s.nextInt()-2,w=s.nextInt();System.out.println("#".repeat(w));while(h-->0)System.out.println("#"+" ".repeat(w-2)+"#");System.out.println("#".repeat(w));}}

stdin

60
13

stdout

#############
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#           #
#############

stderr