import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
while(sc.hasNext()){
int h = sc.nextInt();
int w = sc.nextInt();
String[] str = new String[h];
for (int i = 0; i < h; i++) {
str[i] = sc.next();
}
int cnt = 0;
for (int i = 0; i < h+2; i++) {
if(i == 0){
for (int j = 0; j < w+2; j++) {
System.out.print("#");
}
System.out.println();
}else if(i == h+1){
for (int j = 0; j < w+2; j++) {
System.out.print("#");
}
System.out.println();
}else {
System.out.print("#");
System.out.print(str[cnt]);
System.out.println("#");
cnt++;
}
}
}
}
}
AtCoder- abc062_b
最新推荐文章于 2024-07-22 14:15:06 发布