Result

WA

Duration

1660ms

Code [DL]

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

stdin

13
61

stdout

stderr

Error: Could not find or load main class A
Caused by: java.lang.ClassNotFoundException: A
rm: can't remove '/tmp/A.class': No such file or directory