node_ids
sequencelengths
4
1.4k
edge_index
sequencelengths
1
2.22k
text
sequencelengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 29, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 18, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 64, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 81, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 50, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 18, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 6, 113 ], [ 113, 114 ] ]
[ "import java.util.Scanner;\n \nclass Main{\n public static void main(String[] arg){\n int H, W;\n\n Scanner in = new Scanner(System.in);\n\n while(true){\n H = in.nextInt();\n W = in.nextInt();\n\n if(H == 0 && W == 0) return;\n \n for(int i=0; i<H; i++){\n for(int j=0; j<W; j++){\n if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] arg){\n int H, W;\n\n Scanner in = new Scanner(System.in);\n\n while(true){\n H = in.nextInt();\n W = in.nextInt();\n\n if(H == 0 && W == 0) return;\n \n for(int i=0; i<H; i++){\n for(int j=0; j<W; j++){\n if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n \n }\n}", "Main", "public static void main(String[] arg){\n int H, W;\n\n Scanner in = new Scanner(System.in);\n\n while(true){\n H = in.nextInt();\n W = in.nextInt();\n\n if(H == 0 && W == 0) return;\n \n for(int i=0; i<H; i++){\n for(int j=0; j<W; j++){\n if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n \n }", "main", "{\n int H, W;\n\n Scanner in = new Scanner(System.in);\n\n while(true){\n H = in.nextInt();\n W = in.nextInt();\n\n if(H == 0 && W == 0) return;\n \n for(int i=0; i<H; i++){\n for(int j=0; j<W; j++){\n if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n \n }", "int H", "H", "W;", "W", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(true){\n H = in.nextInt();\n W = in.nextInt();\n\n if(H == 0 && W == 0) return;\n \n for(int i=0; i<H; i++){\n for(int j=0; j<W; j++){\n if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "true", "{\n H = in.nextInt();\n W = in.nextInt();\n\n if(H == 0 && W == 0) return;\n \n for(int i=0; i<H; i++){\n for(int j=0; j<W; j++){\n if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "H = in.nextInt()", "H", "in.nextInt()", "in.nextInt", "in", "W = in.nextInt()", "W", "in.nextInt()", "in.nextInt", "in", "if(H == 0 && W == 0) return;", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "return;", "for(int i=0; i<H; i++){\n for(int j=0; j<W; j++){\n if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "int i=0;", "int i=0;", "i", "0", "i<H", "i", "H", "i++", "i++", "i", "{\n for(int j=0; j<W; j++){\n if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "{\n for(int j=0; j<W; j++){\n if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "for(int j=0; j<W; j++){\n if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }", "int j=0;", "int j=0;", "j", "0", "j<W", "j", "W", "j++", "j++", "j", "{\n if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }", "{\n if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }", "if(i == 0 || i == H-1)\n System.out.print(\"#\");\n else {\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }", "i == 0 || i == H-1", "i == 0", "i", "0", "i == H-1", "i", "H-1", "H", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }", "if(j == 0 || j == W-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");", "j == 0 || j == W-1", "j == 0", "j", "0", "j == W-1", "j", "W-1", "W", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] arg", "arg" ]
import java.util.Scanner; class Main{ public static void main(String[] arg){ int H, W; Scanner in = new Scanner(System.in); while(true){ H = in.nextInt(); W = in.nextInt(); if(H == 0 && W == 0) return; for(int i=0; i<H; i++){ for(int j=0; j<W; j++){ if(i == 0 || i == H-1) System.out.print("#"); else { if(j == 0 || j == W-1) System.out.print("#"); else System.out.print("."); } } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 63, 62 ], [ 72, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 72, 72 ], [ 72, 73 ], [ 72, 74 ], [ 63, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 60, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 60, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 46, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 14, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 6, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\t\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H==0&&W==0)break;\n\n\tfor ( int i = 0; i < H; i++ ){\n\t\t for ( int j = 0; j < W; j++ ){\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\tSystem.out.println(\"\");\n\t\n\n\t\n\t}\n\t\n\t}\n\t\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\t\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H==0&&W==0)break;\n\n\tfor ( int i = 0; i < H; i++ ){\n\t\t for ( int j = 0; j < W; j++ ){\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\tSystem.out.println(\"\");\n\t\n\n\t\n\t}\n\t\n\t}\n\t\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\t\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H==0&&W==0)break;\n\n\tfor ( int i = 0; i < H; i++ ){\n\t\t for ( int j = 0; j < W; j++ ){\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\tSystem.out.println(\"\");\n\t\n\n\t\n\t}\n\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\t\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H==0&&W==0)break;\n\n\tfor ( int i = 0; i < H; i++ ){\n\t\t for ( int j = 0; j < W; j++ ){\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\tSystem.out.println(\"\");\n\t\n\n\t\n\t}\n\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n\t\t\t\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H==0&&W==0)break;\n\n\tfor ( int i = 0; i < H; i++ ){\n\t\t for ( int j = 0; j < W; j++ ){\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\tSystem.out.println(\"\");\n\t\n\n\t\n\t}", "true", "{\n\t\t\t\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H==0&&W==0)break;\n\n\tfor ( int i = 0; i < H; i++ ){\n\t\t for ( int j = 0; j < W; j++ ){\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\tSystem.out.println(\"\");\n\t\n\n\t\n\t}", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int W = sc.nextInt();", "W", "sc.nextInt()", "sc.nextInt", "sc", "if(H==0&&W==0)break;", "H==0&&W==0", "H==0", "H", "0", "W==0", "W", "0", "break;", "for ( int i = 0; i < H; i++ ){\n\t\t for ( int j = 0; j < W; j++ ){\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n\t\t for ( int j = 0; j < W; j++ ){\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}", "{\n\t\t for ( int j = 0; j < W; j++ ){\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}", "for ( int j = 0; j < W; j++ ){\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }", "{\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }", "if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }", "i!=0&&i!=H-1 && j!=0&&j!=W-1", "j!=0", "i!=0&&i!=H-1 && j!=0&&j!=W-1", "i!=0", "i", "0", "i!=H-1", "i", "H-1", "H", "1", "j!=0", "j", "0", "j!=W-1", "j", "W-1", "W", "1", "{\n\t\t System.out.print(\".\");\n\t\t }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "{\n\t\t System.out.print(\"#\");\n\t\t }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\t\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H==0&&W==0)break;\n\n\tfor ( int i = 0; i < H; i++ ){\n\t\t for ( int j = 0; j < W; j++ ){\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\tSystem.out.println(\"\");\n\t\n\n\t\n\t}\n\t\n\t}\n\t\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\t\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H==0&&W==0)break;\n\n\tfor ( int i = 0; i < H; i++ ){\n\t\t for ( int j = 0; j < W; j++ ){\n\t\t if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){\n\t\t System.out.print(\".\");\n\t\t } else {\n\t\t System.out.print(\"#\");\n\t\t }\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\tSystem.out.println(\"\");\n\t\n\n\t\n\t}\n\t\n\t}\n\t\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(true){ int H = sc.nextInt(); int W = sc.nextInt(); if(H==0&&W==0)break; for ( int i = 0; i < H; i++ ){ for ( int j = 0; j < W; j++ ){ if( i!=0&&i!=H-1 && j!=0&&j!=W-1 ){ System.out.print("."); } else { System.out.print("#"); } } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 17, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 165, 5 ], [ 165, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 23, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 34, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 20, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 55, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 55, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 80, 93 ], [ 94, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 94, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 101, 111 ], [ 111, 112 ], [ 112, 113 ], [ 101, 114 ], [ 115, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 94, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 94, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 55, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 138, 140 ], [ 133, 141 ], [ 141, 142 ], [ 142, 143 ], [ 133, 144 ], [ 145, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 55, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 20, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 6, 162 ], [ 162, 163 ], [ 0, 164 ], [ 164, 165 ], [ 164, 166 ] ]
[ "import java.io.*;\n\npublic class Main{\n public static void main(String[]args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String crlf = System.getProperty(\"line.separator\");\n \n \n \n while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n \n if(h==0 && w==0){\n break;\n }else{\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //底辺\n }\n \n System.out.println();\n \n for(int i=0;i<h-2;i++){\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //上辺\n }\n System.out.println();\n }\n System.out.println();\n \n }\n \n \n \n \n }\n}", "import java.io.*;", "io.*", "java", "public class Main{\n public static void main(String[]args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String crlf = System.getProperty(\"line.separator\");\n \n \n \n while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n \n if(h==0 && w==0){\n break;\n }else{\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //底辺\n }\n \n System.out.println();\n \n for(int i=0;i<h-2;i++){\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //上辺\n }\n System.out.println();\n }\n System.out.println();\n \n }\n \n \n \n \n }\n}", "Main", "public static void main(String[]args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String crlf = System.getProperty(\"line.separator\");\n \n \n \n while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n \n if(h==0 && w==0){\n break;\n }else{\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //底辺\n }\n \n System.out.println();\n \n for(int i=0;i<h-2;i++){\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //上辺\n }\n System.out.println();\n }\n System.out.println();\n \n }\n \n \n \n \n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String crlf = System.getProperty(\"line.separator\");\n \n \n \n while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n \n if(h==0 && w==0){\n break;\n }else{\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //底辺\n }\n \n System.out.println();\n \n for(int i=0;i<h-2;i++){\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //上辺\n }\n System.out.println();\n }\n System.out.println();\n \n }\n \n \n \n \n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String crlf = System.getProperty(\"line.separator\");", "crlf", "System.getProperty(\"line.separator\")", "System.getProperty", "System", "\"line.separator\"", "while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n \n if(h==0 && w==0){\n break;\n }else{\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //底辺\n }\n \n System.out.println();\n \n for(int i=0;i<h-2;i++){\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //上辺\n }\n System.out.println();\n }\n System.out.println();\n \n }", "true", "{\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n \n if(h==0 && w==0){\n break;\n }else{\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //底辺\n }\n \n System.out.println();\n \n for(int i=0;i<h-2;i++){\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //上辺\n }\n System.out.println();\n }\n System.out.println();\n \n }", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int h = Integer.parseInt(str[0]);", "h", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "int w = Integer.parseInt(str[1]);", "w", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "if(h==0 && w==0){\n break;\n }else{\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //底辺\n }\n \n System.out.println();\n \n for(int i=0;i<h-2;i++){\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //上辺\n }\n System.out.println();\n }", "h==0 && w==0", "h==0", "h", "0", "w==0", "w", "0", "{\n break;\n }", "break;", "{\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //底辺\n }\n \n System.out.println();\n \n for(int i=0;i<h-2;i++){\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //上辺\n }\n System.out.println();\n }", "for(int i=0;i<w;i++){\n System.out.print(\"#\"); //底辺\n }", "int i=0;", "int i=0;", "i", "0", "i<w", "i", "w", "i++", "i++", "i", "{\n System.out.print(\"#\"); //底辺\n }", "{\n System.out.print(\"#\"); //底辺\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for(int i=0;i<h-2;i++){\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }", "int i=0;", "int i=0;", "i", "0", "i<h-2", "i", "h-2", "h", "2", "i++", "i++", "i", "{\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }", "{\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }", "int j=0;", "int j=0;", "j", "0", "j<w-2", "j", "w-2", "w", "2", "j++", "j++", "j", "{\n System.out.print(\".\");\n }", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for(int i=0;i<w;i++){\n System.out.print(\"#\"); //上辺\n }", "int i=0;", "int i=0;", "i", "0", "i<w", "i", "w", "i++", "i++", "i", "{\n System.out.print(\"#\"); //上辺\n }", "{\n System.out.print(\"#\"); //上辺\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[]args", "args", "public class Main{\n public static void main(String[]args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String crlf = System.getProperty(\"line.separator\");\n \n \n \n while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n \n if(h==0 && w==0){\n break;\n }else{\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //底辺\n }\n \n System.out.println();\n \n for(int i=0;i<h-2;i++){\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //上辺\n }\n System.out.println();\n }\n System.out.println();\n \n }\n \n \n \n \n }\n}", "public class Main{\n public static void main(String[]args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String crlf = System.getProperty(\"line.separator\");\n \n \n \n while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n \n if(h==0 && w==0){\n break;\n }else{\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //底辺\n }\n \n System.out.println();\n \n for(int i=0;i<h-2;i++){\n System.out.print(\"#\");\n for(int j=0;j<w-2;j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\"); \n System.out.println();\n }\n \n for(int i=0;i<w;i++){\n System.out.print(\"#\"); //上辺\n }\n System.out.println();\n }\n System.out.println();\n \n }\n \n \n \n \n }\n}", "Main" ]
import java.io.*; public class Main{ public static void main(String[]args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String crlf = System.getProperty("line.separator"); while(true){ String[] str = br.readLine().split(" "); int h = Integer.parseInt(str[0]); int w = Integer.parseInt(str[1]); if(h==0 && w==0){ break; }else{ for(int i=0;i<w;i++){ System.out.print("#"); //底辺 } System.out.println(); for(int i=0;i<h-2;i++){ System.out.print("#"); for(int j=0;j<w-2;j++){ System.out.print("."); } System.out.print("#"); System.out.println(); } for(int i=0;i<w;i++){ System.out.print("#"); //上辺 } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 35, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 35, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 60, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 74, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 81, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 74, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 35, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 113, 114 ], [ 113, 115 ], [ 108, 116 ], [ 116, 117 ], [ 117, 118 ], [ 108, 119 ], [ 120, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 35, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 35, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 6, 137 ], [ 137, 138 ] ]
[ "import java.util.Scanner;\n\n class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n\n while(true){\n\n int h =scan.nextInt();\n int w =scan.nextInt();\n\n\n if(h==0&&w==0){\n break;\n } else {\n\n\n\n for(int f =0;f<w;f++){\n System.out.print(\"#\");\n }\n System.out.println();\n\n\n for(int h1 =0;h1<h-2;h1++){\n System.out.print(\"#\");\n\n for(int w1 =0;w1<w-2;w1++){\n System.out.print(\".\");\n }\n\n System.out.println(\"#\");\n }\n\n\n for(int e =0;e<w;e++){\n System.out.print(\"#\");\n }\n System.out.println();\n System.out.println();\n\n }\n }\n }\n }\n\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n\n while(true){\n\n int h =scan.nextInt();\n int w =scan.nextInt();\n\n\n if(h==0&&w==0){\n break;\n } else {\n\n\n\n for(int f =0;f<w;f++){\n System.out.print(\"#\");\n }\n System.out.println();\n\n\n for(int h1 =0;h1<h-2;h1++){\n System.out.print(\"#\");\n\n for(int w1 =0;w1<w-2;w1++){\n System.out.print(\".\");\n }\n\n System.out.println(\"#\");\n }\n\n\n for(int e =0;e<w;e++){\n System.out.print(\"#\");\n }\n System.out.println();\n System.out.println();\n\n }\n }\n }\n }", "Main", "public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n\n while(true){\n\n int h =scan.nextInt();\n int w =scan.nextInt();\n\n\n if(h==0&&w==0){\n break;\n } else {\n\n\n\n for(int f =0;f<w;f++){\n System.out.print(\"#\");\n }\n System.out.println();\n\n\n for(int h1 =0;h1<h-2;h1++){\n System.out.print(\"#\");\n\n for(int w1 =0;w1<w-2;w1++){\n System.out.print(\".\");\n }\n\n System.out.println(\"#\");\n }\n\n\n for(int e =0;e<w;e++){\n System.out.print(\"#\");\n }\n System.out.println();\n System.out.println();\n\n }\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n\n while(true){\n\n int h =scan.nextInt();\n int w =scan.nextInt();\n\n\n if(h==0&&w==0){\n break;\n } else {\n\n\n\n for(int f =0;f<w;f++){\n System.out.print(\"#\");\n }\n System.out.println();\n\n\n for(int h1 =0;h1<h-2;h1++){\n System.out.print(\"#\");\n\n for(int w1 =0;w1<w-2;w1++){\n System.out.print(\".\");\n }\n\n System.out.println(\"#\");\n }\n\n\n for(int e =0;e<w;e++){\n System.out.print(\"#\");\n }\n System.out.println();\n System.out.println();\n\n }\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n\n int h =scan.nextInt();\n int w =scan.nextInt();\n\n\n if(h==0&&w==0){\n break;\n } else {\n\n\n\n for(int f =0;f<w;f++){\n System.out.print(\"#\");\n }\n System.out.println();\n\n\n for(int h1 =0;h1<h-2;h1++){\n System.out.print(\"#\");\n\n for(int w1 =0;w1<w-2;w1++){\n System.out.print(\".\");\n }\n\n System.out.println(\"#\");\n }\n\n\n for(int e =0;e<w;e++){\n System.out.print(\"#\");\n }\n System.out.println();\n System.out.println();\n\n }\n }", "true", "{\n\n int h =scan.nextInt();\n int w =scan.nextInt();\n\n\n if(h==0&&w==0){\n break;\n } else {\n\n\n\n for(int f =0;f<w;f++){\n System.out.print(\"#\");\n }\n System.out.println();\n\n\n for(int h1 =0;h1<h-2;h1++){\n System.out.print(\"#\");\n\n for(int w1 =0;w1<w-2;w1++){\n System.out.print(\".\");\n }\n\n System.out.println(\"#\");\n }\n\n\n for(int e =0;e<w;e++){\n System.out.print(\"#\");\n }\n System.out.println();\n System.out.println();\n\n }\n }", "int h =scan.nextInt();", "h", "scan.nextInt()", "scan.nextInt", "scan", "int w =scan.nextInt();", "w", "scan.nextInt()", "scan.nextInt", "scan", "if(h==0&&w==0){\n break;\n } else {\n\n\n\n for(int f =0;f<w;f++){\n System.out.print(\"#\");\n }\n System.out.println();\n\n\n for(int h1 =0;h1<h-2;h1++){\n System.out.print(\"#\");\n\n for(int w1 =0;w1<w-2;w1++){\n System.out.print(\".\");\n }\n\n System.out.println(\"#\");\n }\n\n\n for(int e =0;e<w;e++){\n System.out.print(\"#\");\n }\n System.out.println();\n System.out.println();\n\n }", "h==0&&w==0", "h==0", "h", "0", "w==0", "w", "0", "{\n break;\n }", "break;", "{\n\n\n\n for(int f =0;f<w;f++){\n System.out.print(\"#\");\n }\n System.out.println();\n\n\n for(int h1 =0;h1<h-2;h1++){\n System.out.print(\"#\");\n\n for(int w1 =0;w1<w-2;w1++){\n System.out.print(\".\");\n }\n\n System.out.println(\"#\");\n }\n\n\n for(int e =0;e<w;e++){\n System.out.print(\"#\");\n }\n System.out.println();\n System.out.println();\n\n }", "for(int f =0;f<w;f++){\n System.out.print(\"#\");\n }", "int f =0;", "int f =0;", "f", "0", "f<w", "f", "w", "f++", "f++", "f", "{\n System.out.print(\"#\");\n }", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for(int h1 =0;h1<h-2;h1++){\n System.out.print(\"#\");\n\n for(int w1 =0;w1<w-2;w1++){\n System.out.print(\".\");\n }\n\n System.out.println(\"#\");\n }", "int h1 =0;", "int h1 =0;", "h1", "0", "h1<h-2", "h1", "h-2", "h", "2", "h1++", "h1++", "h1", "{\n System.out.print(\"#\");\n\n for(int w1 =0;w1<w-2;w1++){\n System.out.print(\".\");\n }\n\n System.out.println(\"#\");\n }", "{\n System.out.print(\"#\");\n\n for(int w1 =0;w1<w-2;w1++){\n System.out.print(\".\");\n }\n\n System.out.println(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for(int w1 =0;w1<w-2;w1++){\n System.out.print(\".\");\n }", "int w1 =0;", "int w1 =0;", "w1", "0", "w1<w-2", "w1", "w-2", "w", "2", "w1++", "w1++", "w1", "{\n System.out.print(\".\");\n }", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\"", "for(int e =0;e<w;e++){\n System.out.print(\"#\");\n }", "int e =0;", "int e =0;", "e", "0", "e<w", "e", "w", "e++", "e++", "e", "{\n System.out.print(\"#\");\n }", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String args[]", "args" ]
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner scan = new Scanner(System.in); while(true){ int h =scan.nextInt(); int w =scan.nextInt(); if(h==0&&w==0){ break; } else { for(int f =0;f<w;f++){ System.out.print("#"); } System.out.println(); for(int h1 =0;h1<h-2;h1++){ System.out.print("#"); for(int w1 =0;w1<w-2;w1++){ System.out.print("."); } System.out.println("#"); } for(int e =0;e<w;e++){ System.out.print("#"); } System.out.println(); System.out.println(); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 17, 41, 13, 20, 42, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 21, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 71, 70 ], [ 80, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 80, 80 ], [ 80, 81 ], [ 80, 82 ], [ 71, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 68, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 68, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 54, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 21, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 6, 112 ], [ 112, 113 ] ]
[ "import java.util.Scanner;\n\nclass Main\n{\n public static void main(String[] args)\n {\n\t int l,w;\n\t boolean t=true;\n\t Scanner in=new Scanner(System.in);\n\t \n\t while(t)\n { l=in.nextInt();\n\t w=in.nextInt();\n\t\t\n\t\tif(l==0 && w==0)\n\t\t{ \n\t\t\tbreak;\n\t\t}\n\t\t\n for(int i=0;i<l;i++)\n {\n\t\t for(int j=0;j<w;j++)\n\t\t {\n\t\t\t\tif(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }\n\t\tSystem.out.println(\"\");\n\t\t\n\t }\t\t\n\t \n\n \n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main\n{\n public static void main(String[] args)\n {\n\t int l,w;\n\t boolean t=true;\n\t Scanner in=new Scanner(System.in);\n\t \n\t while(t)\n { l=in.nextInt();\n\t w=in.nextInt();\n\t\t\n\t\tif(l==0 && w==0)\n\t\t{ \n\t\t\tbreak;\n\t\t}\n\t\t\n for(int i=0;i<l;i++)\n {\n\t\t for(int j=0;j<w;j++)\n\t\t {\n\t\t\t\tif(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }\n\t\tSystem.out.println(\"\");\n\t\t\n\t }\t\t\n\t \n\n \n }\n\n}", "Main", "public static void main(String[] args)\n {\n\t int l,w;\n\t boolean t=true;\n\t Scanner in=new Scanner(System.in);\n\t \n\t while(t)\n { l=in.nextInt();\n\t w=in.nextInt();\n\t\t\n\t\tif(l==0 && w==0)\n\t\t{ \n\t\t\tbreak;\n\t\t}\n\t\t\n for(int i=0;i<l;i++)\n {\n\t\t for(int j=0;j<w;j++)\n\t\t {\n\t\t\t\tif(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }\n\t\tSystem.out.println(\"\");\n\t\t\n\t }\t\t\n\t \n\n \n }", "main", "{\n\t int l,w;\n\t boolean t=true;\n\t Scanner in=new Scanner(System.in);\n\t \n\t while(t)\n { l=in.nextInt();\n\t w=in.nextInt();\n\t\t\n\t\tif(l==0 && w==0)\n\t\t{ \n\t\t\tbreak;\n\t\t}\n\t\t\n for(int i=0;i<l;i++)\n {\n\t\t for(int j=0;j<w;j++)\n\t\t {\n\t\t\t\tif(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }\n\t\tSystem.out.println(\"\");\n\t\t\n\t }\t\t\n\t \n\n \n }", "int l", "l", "w;", "w", "boolean t=true;", "t", "true", "Scanner in=new Scanner(System.in);", "in", "new Scanner(System.in)", "while(t)\n { l=in.nextInt();\n\t w=in.nextInt();\n\t\t\n\t\tif(l==0 && w==0)\n\t\t{ \n\t\t\tbreak;\n\t\t}\n\t\t\n for(int i=0;i<l;i++)\n {\n\t\t for(int j=0;j<w;j++)\n\t\t {\n\t\t\t\tif(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }\n\t\tSystem.out.println(\"\");\n\t\t\n\t }", "t", "{ l=in.nextInt();\n\t w=in.nextInt();\n\t\t\n\t\tif(l==0 && w==0)\n\t\t{ \n\t\t\tbreak;\n\t\t}\n\t\t\n for(int i=0;i<l;i++)\n {\n\t\t for(int j=0;j<w;j++)\n\t\t {\n\t\t\t\tif(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }\n\t\tSystem.out.println(\"\");\n\t\t\n\t }", "l=in.nextInt()", "l", "in.nextInt()", "in.nextInt", "in", "w=in.nextInt()", "w", "in.nextInt()", "in.nextInt", "in", "if(l==0 && w==0)\n\t\t{ \n\t\t\tbreak;\n\t\t}", "l==0 && w==0", "l==0", "l", "0", "w==0", "w", "0", "{ \n\t\t\tbreak;\n\t\t}", "break;", "for(int i=0;i<l;i++)\n {\n\t\t for(int j=0;j<w;j++)\n\t\t {\n\t\t\t\tif(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }", "int i=0;", "int i=0;", "i", "0", "i<l", "i", "l", "i++", "i++", "i", "{\n\t\t for(int j=0;j<w;j++)\n\t\t {\n\t\t\t\tif(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }", "{\n\t\t for(int j=0;j<w;j++)\n\t\t {\n\t\t\t\tif(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }", "for(int j=0;j<w;j++)\n\t\t {\n\t\t\t\tif(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");\n\t\t }", "int j=0;", "int j=0;", "j", "0", "j<w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\tif(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");\n\t\t }", "{\n\t\t\t\tif(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");\n\t\t }", "if(i==0 || i==l-1 || j==0 || j==w-1)\n\t\t\t System.out.print(\"#\");\n\t\t\t else\n\t\t\t\t System.out.print(\".\");", "i==0 || i==l-1 || j==0 || j==w-1", "j==0", "i==0 || i==l-1 || j==0 || j==w-1", "i==0", "i", "0", "i==l-1", "i", "l-1", "l", "1", "j==0", "j", "0", "j==w-1", "j", "w-1", "w", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { int l,w; boolean t=true; Scanner in=new Scanner(System.in); while(t) { l=in.nextInt(); w=in.nextInt(); if(l==0 && w==0) { break; } for(int i=0;i<l;i++) { for(int j=0;j<w;j++) { if(i==0 || i==l-1 || j==0 || j==w-1) System.out.print("#"); else System.out.print("."); } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 8, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 17, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 25, 31 ], [ 14, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 64, 65 ], [ 75, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 75, 75 ], [ 75, 76 ], [ 75, 77 ], [ 64, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 63, 83 ], [ 63, 84 ], [ 44, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 14, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 9, 95 ], [ 95, 96 ] ]
[ "import java.util.*;\nclass Main{\n\tstatic Scanner s = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\twhile(true){\n\t\t\tint h=s.nextInt(),\n\t\t\t w=s.nextInt();\n\t\t\tif((h|w)==0)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tSystem.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main{\n\tstatic Scanner s = new Scanner(System.in);\n\tpublic static void main(String[] args){\n\t\twhile(true){\n\t\t\tint h=s.nextInt(),\n\t\t\t w=s.nextInt();\n\t\t\tif((h|w)==0)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tSystem.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "static Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "public static void main(String[] args){\n\t\twhile(true){\n\t\t\tint h=s.nextInt(),\n\t\t\t w=s.nextInt();\n\t\t\tif((h|w)==0)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tSystem.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\twhile(true){\n\t\t\tint h=s.nextInt(),\n\t\t\t w=s.nextInt();\n\t\t\tif((h|w)==0)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tSystem.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "while(true){\n\t\t\tint h=s.nextInt(),\n\t\t\t w=s.nextInt();\n\t\t\tif((h|w)==0)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tSystem.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tint h=s.nextInt(),\n\t\t\t w=s.nextInt();\n\t\t\tif((h|w)==0)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tSystem.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int h=s.nextInt()", "h", "s.nextInt()", "s.nextInt", "s", "w=s.nextInt();", "w", "s.nextInt()", "s.nextInt", "s", "if((h|w)==0)\n\t\t\t\tbreak;", "(h|w)==0", "(h|w)", "h", "w", "0", "break;", "for(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tSystem.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<h", "i", "h", "i++", "i++", "i", "{\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tSystem.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tSystem.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for(int j=0;j<w;j++){\n\t\t\t\t\tSystem.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\");\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\tSystem.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\");\n\t\t\t\t}", "System.out.print((i==0||i==h-1||j==0||j==w-1)?\"#\":\".\")", "System.out.print", "System.out", "System", "System.out", "(i==0||i==h-1||j==0||j==w-1)?\"#\":\".\"", "(i==0||i==h-1||j==0||j==w-1)", "j==0", "i==0||i==h-1||j==0||j==w-1", "i==0", "i", "0", "i==h-1", "i", "h-1", "h", "1", "j==0", "j", "0", "j==w-1", "j", "w-1", "w", "1", "\"#\"", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args" ]
import java.util.*; class Main{ static Scanner s = new Scanner(System.in); public static void main(String[] args){ while(true){ int h=s.nextInt(), w=s.nextInt(); if((h|w)==0) break; for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ System.out.print((i==0||i==h-1||j==0||j==w-1)?"#":"."); } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 4, 18, 13, 17, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 4, 18, 13, 42, 2, 4, 18, 13, 17, 17, 30, 0, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 18, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 18, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 4, 18, 13, 18, 13, 17, 17, 2, 13, 17, 2, 13, 2, 4, 18, 13, 18, 13, 17, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 17, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 160, 8 ], [ 160, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 160, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 18, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 28, 35 ], [ 35, 36 ], [ 28, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 28, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 42, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 49, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 66, 68 ], [ 56, 69 ], [ 69, 70 ], [ 70, 71 ], [ 56, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 84, 86 ], [ 74, 87 ], [ 87, 88 ], [ 88, 89 ], [ 74, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 95, 94 ], [ 109, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 105, 106 ], [ 105, 107 ], [ 101, 108 ], [ 109, 109 ], [ 109, 110 ], [ 109, 111 ], [ 95, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 118, 120 ], [ 114, 121 ], [ 92, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 92, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 73, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 49, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 49, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 142, 146 ], [ 146, 147 ], [ 147, 148 ], [ 49, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 28, 154 ], [ 154, 155 ], [ 155, 156 ], [ 15, 157 ], [ 157, 158 ], [ 0, 159 ], [ 159, 160 ], [ 159, 161 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tprivate static final String BR = System.getProperty(\"line.separator\");\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\t\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\tString[] strArray;\t\n\t\t\tString line = br.readLine();\n\t\t\t\n\t\t\twhile(line.equals(\"0 0\") == false){\t\n\t\t\t\tstrArray = line.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < Integer.parseInt(strArray[0]); i++) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.delete(0, s.length());\n\t\t\t\tline = br.readLine();\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tprivate static final String BR = System.getProperty(\"line.separator\");\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\t\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\tString[] strArray;\t\n\t\t\tString line = br.readLine();\n\t\t\t\n\t\t\twhile(line.equals(\"0 0\") == false){\t\n\t\t\t\tstrArray = line.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < Integer.parseInt(strArray[0]); i++) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.delete(0, s.length());\n\t\t\t\tline = br.readLine();\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}", "Main", "private static final String BR = System.getProperty(\"line.separator\");", "BR", "System.getProperty(\"line.separator\")", "System.getProperty", "System", "\"line.separator\"", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\t\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\tString[] strArray;\t\n\t\t\tString line = br.readLine();\n\t\t\t\n\t\t\twhile(line.equals(\"0 0\") == false){\t\n\t\t\t\tstrArray = line.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < Integer.parseInt(strArray[0]); i++) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.delete(0, s.length());\n\t\t\t\tline = br.readLine();\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}", "main", "{\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\t\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\tString[] strArray;\t\n\t\t\tString line = br.readLine();\n\t\t\t\n\t\t\twhile(line.equals(\"0 0\") == false){\t\n\t\t\t\tstrArray = line.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < Integer.parseInt(strArray[0]); i++) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.delete(0, s.length());\n\t\t\t\tline = br.readLine();\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}", "try {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\t\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\tString[] strArray;\t\n\t\t\tString line = br.readLine();\n\t\t\t\n\t\t\twhile(line.equals(\"0 0\") == false){\t\n\t\t\t\tstrArray = line.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < Integer.parseInt(strArray[0]); i++) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.delete(0, s.length());\n\t\t\t\tline = br.readLine();\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}", "catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}", "Exception e", "{\n\t\t\tSystem.err.println(e);\n\t\t}", "System.err.println(e)", "System.err.println", "System.err", "System", "System.err", "e", "{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\t\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\tString[] strArray;\t\n\t\t\tString line = br.readLine();\n\t\t\t\n\t\t\twhile(line.equals(\"0 0\") == false){\t\n\t\t\t\tstrArray = line.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < Integer.parseInt(strArray[0]); i++) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.delete(0, s.length());\n\t\t\t\tline = br.readLine();\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\tbr.close();\n\t\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));", "br", "new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in))", "StringBuilder s = new StringBuilder();", "s", "new StringBuilder()", "String[] strArray;", "strArray", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "while(line.equals(\"0 0\") == false){\t\n\t\t\t\tstrArray = line.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < Integer.parseInt(strArray[0]); i++) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.delete(0, s.length());\n\t\t\t\tline = br.readLine();\t\t\t\n\t\t\t}", "line.equals(\"0 0\") == false", "line.equals(\"0 0\")", "line.equals", "line", "\"0 0\"", "false", "{\t\n\t\t\t\tstrArray = line.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < Integer.parseInt(strArray[0]); i++) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.delete(0, s.length());\n\t\t\t\tline = br.readLine();\t\t\t\n\t\t\t}", "strArray = line.split(\"\\\\s\")", "strArray", "line.split(\"\\\\s\")", "line.split", "line", "\"\\\\s\"", "for (int i = 0; i < Integer.parseInt(strArray[0]); i++) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < Integer.parseInt(strArray[0])", "i", "Integer.parseInt(strArray[0])", "Integer.parseInt", "Integer", "strArray[0]", "strArray", "0", "i++", "i++", "i", "{\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}", "{\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}", "for (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < Integer.parseInt(strArray[1])", "j", "Integer.parseInt(strArray[1])", "Integer.parseInt", "Integer", "strArray[1]", "strArray", "1", "j++", "j++", "j", "{\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}", "i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1", "j == 0", "i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1", "i == 0", "i", "0", "i == Integer.parseInt(strArray[0]) - 1", "i", "Integer.parseInt(strArray[0]) - 1", "Integer.parseInt(strArray[0])", "Integer.parseInt", "Integer", "strArray[0]", "strArray", "0", "1", "j == 0", "j", "0", "j == Integer.parseInt(strArray[1]) - 1", "j", "Integer.parseInt(strArray[1]) - 1", "Integer.parseInt(strArray[1])", "Integer.parseInt", "Integer", "strArray[1]", "strArray", "1", "1", "{\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}", "s.append(\"#\")", "s.append", "s", "\"#\"", "{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}", "s.append(\".\")", "s.append", "s", "\".\"", "s.append(BR)", "s.append", "s", "BR", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "s.delete(0, s.length())", "s.delete", "s", "0", "s.length()", "s.length", "s", "line = br.readLine()", "line", "br.readLine()", "br.readLine", "br", "br.close()", "br.close", "br", "String[] args", "args", "public class Main {\n\tprivate static final String BR = System.getProperty(\"line.separator\");\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\t\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\tString[] strArray;\t\n\t\t\tString line = br.readLine();\n\t\t\t\n\t\t\twhile(line.equals(\"0 0\") == false){\t\n\t\t\t\tstrArray = line.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < Integer.parseInt(strArray[0]); i++) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.delete(0, s.length());\n\t\t\t\tline = br.readLine();\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}", "public class Main {\n\tprivate static final String BR = System.getProperty(\"line.separator\");\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\t\n\t\t\tStringBuilder s = new StringBuilder();\n\t\t\tString[] strArray;\t\n\t\t\tString line = br.readLine();\n\t\t\t\n\t\t\twhile(line.equals(\"0 0\") == false){\t\n\t\t\t\tstrArray = line.split(\"\\\\s\");\n\t\t\t\tfor (int i = 0; i < Integer.parseInt(strArray[0]); i++) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strArray[1]); j++) {\n\t\t\t\t\t\tif(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){\n\t\t\t\t\t\t\ts.append(\"#\");\t\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\ts.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\ts.append(BR);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(s);\n\t\t\t\ts.delete(0, s.length());\n\t\t\t\tline = br.readLine();\t\t\t\n\t\t\t}\t\t\t\t\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { private static final String BR = System.getProperty("line.separator"); public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader( System.in)); StringBuilder s = new StringBuilder(); String[] strArray; String line = br.readLine(); while(line.equals("0 0") == false){ strArray = line.split("\\s"); for (int i = 0; i < Integer.parseInt(strArray[0]); i++) { for (int j = 0; j < Integer.parseInt(strArray[1]); j++) { if(i == 0 ||i == Integer.parseInt(strArray[0]) - 1 || j == 0 || j == Integer.parseInt(strArray[1]) - 1){ s.append("#"); }else{ s.append("."); } } s.append(BR); } System.out.println(s); s.delete(0, s.length()); line = br.readLine(); } br.close(); } catch (Exception e) { System.err.println(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 13, 13, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 148, 8 ], [ 148, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 15, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 19, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 36, 38 ], [ 19, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 44, 46 ], [ 19, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 19, 57 ], [ 57, 58 ], [ 57, 59 ], [ 19, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 60, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 74, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 81, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 74, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 19, 108 ], [ 108, 109 ], [ 108, 110 ], [ 19, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 9, 116 ], [ 116, 117 ], [ 148, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 126, 127 ], [ 126, 128 ], [ 121, 129 ], [ 129, 130 ], [ 130, 131 ], [ 121, 132 ], [ 133, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 120, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 118, 145 ], [ 145, 146 ], [ 0, 147 ], [ 147, 148 ], [ 147, 149 ] ]
[ "import java.util.Scanner;\nimport java.lang.Math;\npublic class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\twhile (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t String[] inputs = input.split(\" \");\n\t int height = Integer.parseInt(inputs[0]);\n\t int width = Integer.parseInt(inputs[1]);\n\t if (height == 0 && width == 0) {\n\t\tbreak;\n\t }\n\t printsharp(width);\n\t for (int i = 0; i < height - 2; i++) {\n\t\tSystem.out.print(\"#\");\n\t\tfor (int j = 0; j < width - 2; j++) {\n\t\t System.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(\"#\");\n\t }\n\t printsharp(width);\n\t System.out.println();\n\t}\n }\n public static void printsharp(int width) {\n\tfor (int i = 0; i < width; i++) {\n\t System.out.print(\"#\");\n\t}\n\tSystem.out.println();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.lang.Math;", "Math", "java.lang", "public class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\twhile (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t String[] inputs = input.split(\" \");\n\t int height = Integer.parseInt(inputs[0]);\n\t int width = Integer.parseInt(inputs[1]);\n\t if (height == 0 && width == 0) {\n\t\tbreak;\n\t }\n\t printsharp(width);\n\t for (int i = 0; i < height - 2; i++) {\n\t\tSystem.out.print(\"#\");\n\t\tfor (int j = 0; j < width - 2; j++) {\n\t\t System.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(\"#\");\n\t }\n\t printsharp(width);\n\t System.out.println();\n\t}\n }\n public static void printsharp(int width) {\n\tfor (int i = 0; i < width; i++) {\n\t System.out.print(\"#\");\n\t}\n\tSystem.out.println();\n }\n}", "Main", "public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\twhile (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t String[] inputs = input.split(\" \");\n\t int height = Integer.parseInt(inputs[0]);\n\t int width = Integer.parseInt(inputs[1]);\n\t if (height == 0 && width == 0) {\n\t\tbreak;\n\t }\n\t printsharp(width);\n\t for (int i = 0; i < height - 2; i++) {\n\t\tSystem.out.print(\"#\");\n\t\tfor (int j = 0; j < width - 2; j++) {\n\t\t System.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(\"#\");\n\t }\n\t printsharp(width);\n\t System.out.println();\n\t}\n }", "main", "{\n\tScanner scan = new Scanner(System.in);\n\twhile (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t String[] inputs = input.split(\" \");\n\t int height = Integer.parseInt(inputs[0]);\n\t int width = Integer.parseInt(inputs[1]);\n\t if (height == 0 && width == 0) {\n\t\tbreak;\n\t }\n\t printsharp(width);\n\t for (int i = 0; i < height - 2; i++) {\n\t\tSystem.out.print(\"#\");\n\t\tfor (int j = 0; j < width - 2; j++) {\n\t\t System.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(\"#\");\n\t }\n\t printsharp(width);\n\t System.out.println();\n\t}\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t String[] inputs = input.split(\" \");\n\t int height = Integer.parseInt(inputs[0]);\n\t int width = Integer.parseInt(inputs[1]);\n\t if (height == 0 && width == 0) {\n\t\tbreak;\n\t }\n\t printsharp(width);\n\t for (int i = 0; i < height - 2; i++) {\n\t\tSystem.out.print(\"#\");\n\t\tfor (int j = 0; j < width - 2; j++) {\n\t\t System.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(\"#\");\n\t }\n\t printsharp(width);\n\t System.out.println();\n\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t String input = scan.nextLine();\n\t String[] inputs = input.split(\" \");\n\t int height = Integer.parseInt(inputs[0]);\n\t int width = Integer.parseInt(inputs[1]);\n\t if (height == 0 && width == 0) {\n\t\tbreak;\n\t }\n\t printsharp(width);\n\t for (int i = 0; i < height - 2; i++) {\n\t\tSystem.out.print(\"#\");\n\t\tfor (int j = 0; j < width - 2; j++) {\n\t\t System.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(\"#\");\n\t }\n\t printsharp(width);\n\t System.out.println();\n\t}", "String input = scan.nextLine();", "input", "scan.nextLine()", "scan.nextLine", "scan", "String[] inputs = input.split(\" \");", "inputs", "input.split(\" \")", "input.split", "input", "\" \"", "int height = Integer.parseInt(inputs[0]);", "height", "Integer.parseInt(inputs[0])", "Integer.parseInt", "Integer", "inputs[0]", "inputs", "0", "int width = Integer.parseInt(inputs[1]);", "width", "Integer.parseInt(inputs[1])", "Integer.parseInt", "Integer", "inputs[1]", "inputs", "1", "if (height == 0 && width == 0) {\n\t\tbreak;\n\t }", "height == 0 && width == 0", "height == 0", "height", "0", "width == 0", "width", "0", "{\n\t\tbreak;\n\t }", "break;", "printsharp(width)", "printsharp", "width", "for (int i = 0; i < height - 2; i++) {\n\t\tSystem.out.print(\"#\");\n\t\tfor (int j = 0; j < width - 2; j++) {\n\t\t System.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(\"#\");\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < height - 2", "i", "height - 2", "height", "2", "i++", "i++", "i", "{\n\t\tSystem.out.print(\"#\");\n\t\tfor (int j = 0; j < width - 2; j++) {\n\t\t System.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(\"#\");\n\t }", "{\n\t\tSystem.out.print(\"#\");\n\t\tfor (int j = 0; j < width - 2; j++) {\n\t\t System.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(\"#\");\n\t }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for (int j = 0; j < width - 2; j++) {\n\t\t System.out.print(\".\");\n\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < width - 2", "j", "width - 2", "width", "2", "j++", "j++", "j", "{\n\t\t System.out.print(\".\");\n\t\t}", "{\n\t\t System.out.print(\".\");\n\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\"", "printsharp(width)", "printsharp", "width", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public static void printsharp(int width) {\n\tfor (int i = 0; i < width; i++) {\n\t System.out.print(\"#\");\n\t}\n\tSystem.out.println();\n }", "printsharp", "{\n\tfor (int i = 0; i < width; i++) {\n\t System.out.print(\"#\");\n\t}\n\tSystem.out.println();\n }", "for (int i = 0; i < width; i++) {\n\t System.out.print(\"#\");\n\t}", "int i = 0;", "int i = 0;", "i", "0", "i < width", "i", "width", "i++", "i++", "i", "{\n\t System.out.print(\"#\");\n\t}", "{\n\t System.out.print(\"#\");\n\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int width", "width", "public class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\twhile (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t String[] inputs = input.split(\" \");\n\t int height = Integer.parseInt(inputs[0]);\n\t int width = Integer.parseInt(inputs[1]);\n\t if (height == 0 && width == 0) {\n\t\tbreak;\n\t }\n\t printsharp(width);\n\t for (int i = 0; i < height - 2; i++) {\n\t\tSystem.out.print(\"#\");\n\t\tfor (int j = 0; j < width - 2; j++) {\n\t\t System.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(\"#\");\n\t }\n\t printsharp(width);\n\t System.out.println();\n\t}\n }\n public static void printsharp(int width) {\n\tfor (int i = 0; i < width; i++) {\n\t System.out.print(\"#\");\n\t}\n\tSystem.out.println();\n }\n}", "public class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\twhile (scan.hasNext()) {\n\t String input = scan.nextLine();\n\t String[] inputs = input.split(\" \");\n\t int height = Integer.parseInt(inputs[0]);\n\t int width = Integer.parseInt(inputs[1]);\n\t if (height == 0 && width == 0) {\n\t\tbreak;\n\t }\n\t printsharp(width);\n\t for (int i = 0; i < height - 2; i++) {\n\t\tSystem.out.print(\"#\");\n\t\tfor (int j = 0; j < width - 2; j++) {\n\t\t System.out.print(\".\");\n\t\t}\n\t\tSystem.out.println(\"#\");\n\t }\n\t printsharp(width);\n\t System.out.println();\n\t}\n }\n public static void printsharp(int width) {\n\tfor (int i = 0; i < width; i++) {\n\t System.out.print(\"#\");\n\t}\n\tSystem.out.println();\n }\n}", "Main" ]
import java.util.Scanner; import java.lang.Math; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (scan.hasNext()) { String input = scan.nextLine(); String[] inputs = input.split(" "); int height = Integer.parseInt(inputs[0]); int width = Integer.parseInt(inputs[1]); if (height == 0 && width == 0) { break; } printsharp(width); for (int i = 0; i < height - 2; i++) { System.out.print("#"); for (int j = 0; j < width - 2; j++) { System.out.print("."); } System.out.println("#"); } printsharp(width); System.out.println(); } } public static void printsharp(int width) { for (int i = 0; i < width; i++) { System.out.print("#"); } System.out.println(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 147, 11 ], [ 147, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 26, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 43, 45 ], [ 26, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 51, 53 ], [ 26, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 26, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 77, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 92, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 92, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 109, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 109, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 76, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 26, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 12, 144 ], [ 144, 145 ], [ 0, 146 ], [ 146, 147 ], [ 146, 148 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tint H = 0;\n\t\tint W = 0;\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] num = str.split(\" \");\n\n\t\t\tH = Integer.parseInt(num[0]);\n\t\t\tW = Integer.parseInt(num[1]);\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W - 1; j++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\");\n\t\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tint H = 0;\n\t\tint W = 0;\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] num = str.split(\" \");\n\n\t\t\tH = Integer.parseInt(num[0]);\n\t\t\tW = Integer.parseInt(num[1]);\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W - 1; j++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\");\n\t\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tint H = 0;\n\t\tint W = 0;\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] num = str.split(\" \");\n\n\t\t\tH = Integer.parseInt(num[0]);\n\t\t\tW = Integer.parseInt(num[1]);\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W - 1; j++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\");\n\t\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "main", "{\n\t\t\n\t\tint H = 0;\n\t\tint W = 0;\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] num = str.split(\" \");\n\n\t\t\tH = Integer.parseInt(num[0]);\n\t\t\tW = Integer.parseInt(num[1]);\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W - 1; j++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\");\n\t\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "int H = 0;", "H", "0", "int W = 0;", "W", "0", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] num = str.split(\" \");\n\n\t\t\tH = Integer.parseInt(num[0]);\n\t\t\tW = Integer.parseInt(num[1]);\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W - 1; j++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\");\n\t\t\t}\n\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tString str = br.readLine();\n\t\t\tString[] num = str.split(\" \");\n\n\t\t\tH = Integer.parseInt(num[0]);\n\t\t\tW = Integer.parseInt(num[1]);\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W - 1; j++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\");\n\t\t\t}\n\t\tSystem.out.println();\n\t\t}", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "String[] num = str.split(\" \");", "num", "str.split(\" \")", "str.split", "str", "\" \"", "H = Integer.parseInt(num[0])", "H", "Integer.parseInt(num[0])", "Integer.parseInt", "Integer", "num[0]", "num", "0", "W = Integer.parseInt(num[1])", "W", "Integer.parseInt(num[1])", "Integer.parseInt", "Integer", "num[1]", "num", "1", "if (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W - 1; j++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\tfor (int j = 0; j < W - 1; j++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\");\n\t\t\t}", "{\n\t\t\t\tfor (int j = 0; j < W - 1; j++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\");\n\t\t\t}", "for (int j = 0; j < W - 1; j++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W - 1", "j", "W - 1", "W", "1", "j++", "j++", "j", "{\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "if (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "i == 0 || i == H - 1", "i == 0", "i", "0", "i == H - 1", "i", "H - 1", "H", "1", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "j == 0 || j == W - 1", "j == 0", "j", "0", "j == W - 1", "j", "W - 1", "W", "1", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tint H = 0;\n\t\tint W = 0;\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] num = str.split(\" \");\n\n\t\t\tH = Integer.parseInt(num[0]);\n\t\t\tW = Integer.parseInt(num[1]);\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W - 1; j++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\");\n\t\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tint H = 0;\n\t\tint W = 0;\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] num = str.split(\" \");\n\n\t\t\tH = Integer.parseInt(num[0]);\n\t\t\tW = Integer.parseInt(num[1]);\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W - 1; j++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else if (j == 0 || j == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"#\");\n\t\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { int H = 0; int W = 0; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true) { String str = br.readLine(); String[] num = str.split(" "); H = Integer.parseInt(num[0]); W = Integer.parseInt(num[1]); if (H == 0 && W == 0) { break; } for (int i = 0; i < H; i++) { for (int j = 0; j < W - 1; j++) { if (i == 0 || i == H - 1) { System.out.print("#"); } else if (j == 0 || j == W - 1) { System.out.print("#"); } else { System.out.print("."); } } System.out.println("#"); } System.out.println(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 17, 13, 3, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 177, 14 ], [ 177, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 26, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 17, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 42, 52 ], [ 52, 53 ], [ 53, 54 ], [ 42, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 59, 65 ], [ 56, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 56, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 56, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 90, 91 ], [ 91, 92 ], [ 82, 93 ], [ 94, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 95, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 111, 112 ], [ 111, 113 ], [ 106, 114 ], [ 114, 115 ], [ 115, 116 ], [ 106, 117 ], [ 118, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 105, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 95, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 130, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 144, 146 ], [ 137, 147 ], [ 147, 148 ], [ 148, 149 ], [ 137, 150 ], [ 151, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 130, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 158, 163 ], [ 130, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 56, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 15, 174 ], [ 174, 175 ], [ 0, 176 ], [ 176, 177 ], [ 176, 178 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tif(\"0 0\".equals(str)) break;\n\t\t\tlist.add(str);\n\t\t}\n\t\tfor(int i = 0 ; i <list.size() ; i++){\n\t\t\tString[] stra = list.get(i).split(\" \");\n\t\t\tint h = Integer.parseInt(stra[0]);\n\t\t\tint w = Integer.parseInt(stra[1]);\n\t\t\tfor (int j = 0 ; j < h ;j++){\n\t\t\t\tif( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tif(\"0 0\".equals(str)) break;\n\t\t\tlist.add(str);\n\t\t}\n\t\tfor(int i = 0 ; i <list.size() ; i++){\n\t\t\tString[] stra = list.get(i).split(\" \");\n\t\t\tint h = Integer.parseInt(stra[0]);\n\t\t\tint w = Integer.parseInt(stra[1]);\n\t\t\tfor (int j = 0 ; j < h ;j++){\n\t\t\t\tif( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tif(\"0 0\".equals(str)) break;\n\t\t\tlist.add(str);\n\t\t}\n\t\tfor(int i = 0 ; i <list.size() ; i++){\n\t\t\tString[] stra = list.get(i).split(\" \");\n\t\t\tint h = Integer.parseInt(stra[0]);\n\t\t\tint w = Integer.parseInt(stra[1]);\n\t\t\tfor (int j = 0 ; j < h ;j++){\n\t\t\t\tif( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tif(\"0 0\".equals(str)) break;\n\t\t\tlist.add(str);\n\t\t}\n\t\tfor(int i = 0 ; i <list.size() ; i++){\n\t\t\tString[] stra = list.get(i).split(\" \");\n\t\t\tint h = Integer.parseInt(stra[0]);\n\t\t\tint w = Integer.parseInt(stra[1]);\n\t\t\tfor (int j = 0 ; j < h ;j++){\n\t\t\t\tif( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "BufferedReader br =new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "ArrayList<String> list = new ArrayList<String>();", "list", "new ArrayList<String>()", "while(true){\n\t\t\tString str = br.readLine();\n\t\t\tif(\"0 0\".equals(str)) break;\n\t\t\tlist.add(str);\n\t\t}", "true", "{\n\t\t\tString str = br.readLine();\n\t\t\tif(\"0 0\".equals(str)) break;\n\t\t\tlist.add(str);\n\t\t}", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "if(\"0 0\".equals(str)) break;", "\"0 0\".equals(str)", "\"0 0\".equals", "\"0 0\"", "str", "break;", "list.add(str)", "list.add", "list", "str", "for(int i = 0 ; i <list.size() ; i++){\n\t\t\tString[] stra = list.get(i).split(\" \");\n\t\t\tint h = Integer.parseInt(stra[0]);\n\t\t\tint w = Integer.parseInt(stra[1]);\n\t\t\tfor (int j = 0 ; j < h ;j++){\n\t\t\t\tif( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i = 0 ;", "int i = 0 ;", "i", "0", "i <list.size()", "i", "list.size()", "list.size", "list", "i++", "i++", "i", "{\n\t\t\tString[] stra = list.get(i).split(\" \");\n\t\t\tint h = Integer.parseInt(stra[0]);\n\t\t\tint w = Integer.parseInt(stra[1]);\n\t\t\tfor (int j = 0 ; j < h ;j++){\n\t\t\t\tif( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tString[] stra = list.get(i).split(\" \");\n\t\t\tint h = Integer.parseInt(stra[0]);\n\t\t\tint w = Integer.parseInt(stra[1]);\n\t\t\tfor (int j = 0 ; j < h ;j++){\n\t\t\t\tif( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "String[] stra = list.get(i).split(\" \");", "stra", "list.get(i).split(\" \")", "list.get(i).split", "list.get(i)", "list.get", "list", "i", "\" \"", "int h = Integer.parseInt(stra[0]);", "h", "Integer.parseInt(stra[0])", "Integer.parseInt", "Integer", "stra[0]", "stra", "0", "int w = Integer.parseInt(stra[1]);", "w", "Integer.parseInt(stra[1])", "Integer.parseInt", "Integer", "stra[1]", "stra", "1", "for (int j = 0 ; j < h ;j++){\n\t\t\t\tif( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}", "int j = 0 ;", "int j = 0 ;", "j", "0", "j < h", "j", "h", "j++", "j++", "j", "{\n\t\t\t\tif( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}", "if( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "j == 0 || j == h-1", "j == 0", "j", "0", "j == h-1", "j", "h-1", "h", "1", "{\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "for(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "int k = 0 ;", "int k = 0 ;", "k", "0", "k < w", "k", "w", "k++", "k++", "k", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "int l = 0 ;", "int l = 0 ;", "l", "0", "l < w-2", "l", "w-2", "w", "2", "l++", "l++", "l", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tif(\"0 0\".equals(str)) break;\n\t\t\tlist.add(str);\n\t\t}\n\t\tfor(int i = 0 ; i <list.size() ; i++){\n\t\t\tString[] stra = list.get(i).split(\" \");\n\t\t\tint h = Integer.parseInt(stra[0]);\n\t\t\tint w = Integer.parseInt(stra[1]);\n\t\t\tfor (int j = 0 ; j < h ;j++){\n\t\t\t\tif( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tif(\"0 0\".equals(str)) break;\n\t\t\tlist.add(str);\n\t\t}\n\t\tfor(int i = 0 ; i <list.size() ; i++){\n\t\t\tString[] stra = list.get(i).split(\" \");\n\t\t\tint h = Integer.parseInt(stra[0]);\n\t\t\tint w = Integer.parseInt(stra[1]);\n\t\t\tfor (int j = 0 ; j < h ;j++){\n\t\t\t\tif( j == 0 || j == h-1 ){\n\t\t\t\t\tfor(int k = 0 ; k < w ; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0 ; l < w-2 ; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { public static void main(String[] args) throws IOException{ BufferedReader br =new BufferedReader(new InputStreamReader(System.in)); ArrayList<String> list = new ArrayList<String>(); while(true){ String str = br.readLine(); if("0 0".equals(str)) break; list.add(str); } for(int i = 0 ; i <list.size() ; i++){ String[] stra = list.get(i).split(" "); int h = Integer.parseInt(stra[0]); int w = Integer.parseInt(stra[1]); for (int j = 0 ; j < h ;j++){ if( j == 0 || j == h-1 ){ for(int k = 0 ; k < w ; k++){ System.out.print("#"); } System.out.println(); }else{ System.out.print("#"); for(int l = 0 ; l < w-2 ; l++){ System.out.print("."); } System.out.print("#"); System.out.println(); } } System.out.println(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 13, 13, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 29, 4, 18, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 163, 8 ], [ 163, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 36, 38 ], [ 20, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 44, 46 ], [ 20, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 20, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 81, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 70, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 101, 112 ], [ 113, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 114, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 114, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 69, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 20, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 9, 150 ], [ 150, 151 ], [ 163, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 156, 159 ], [ 152, 160 ], [ 160, 161 ], [ 0, 162 ], [ 162, 163 ], [ 162, 164 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\n\t\t\tString[] num = getElement(str);\n\n\t\t\tint h = Integer.parseInt(num[0]);\n\t\t\tint w = Integer.parseInt(num[1]);\n\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif(i==0||i==h-1){\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t}\n\n\t}\n\n\t//??????????????????????????????????????????\n\tpublic static String[] getElement(String element) {\n\t\treturn (element.split(\" \"));\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\n\t\t\tString[] num = getElement(str);\n\n\t\t\tint h = Integer.parseInt(num[0]);\n\t\t\tint w = Integer.parseInt(num[1]);\n\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif(i==0||i==h-1){\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t}\n\n\t}\n\n\t//??????????????????????????????????????????\n\tpublic static String[] getElement(String element) {\n\t\treturn (element.split(\" \"));\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\n\t\t\tString[] num = getElement(str);\n\n\t\t\tint h = Integer.parseInt(num[0]);\n\t\t\tint w = Integer.parseInt(num[1]);\n\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif(i==0||i==h-1){\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t}\n\n\t}", "main", "{\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\n\t\t\tString[] num = getElement(str);\n\n\t\t\tint h = Integer.parseInt(num[0]);\n\t\t\tint w = Integer.parseInt(num[1]);\n\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif(i==0||i==h-1){\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t}\n\n\t}", "InputStreamReader is = new InputStreamReader(System.in);", "is", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(is);", "br", "new BufferedReader(is)", "while (true) {\n\t\t\tString str = br.readLine();\n\n\t\t\tString[] num = getElement(str);\n\n\t\t\tint h = Integer.parseInt(num[0]);\n\t\t\tint w = Integer.parseInt(num[1]);\n\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif(i==0||i==h-1){\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t}", "true", "{\n\t\t\tString str = br.readLine();\n\n\t\t\tString[] num = getElement(str);\n\n\t\t\tint h = Integer.parseInt(num[0]);\n\t\t\tint w = Integer.parseInt(num[1]);\n\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif(i==0||i==h-1){\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t}", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "String[] num = getElement(str);", "num", "getElement(str)", "getElement", "str", "int h = Integer.parseInt(num[0]);", "h", "Integer.parseInt(num[0])", "Integer.parseInt", "Integer", "num[0]", "num", "0", "int w = Integer.parseInt(num[1]);", "w", "Integer.parseInt(num[1])", "Integer.parseInt", "Integer", "num[1]", "num", "1", "if (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (int i = 0; i < h; i++) {\n\t\t\t\tif(i==0||i==h-1){\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n\t\t\t\tif(i==0||i==h-1){\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t}", "{\n\t\t\t\tif(i==0||i==h-1){\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t}", "if(i==0||i==h-1){\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "i==0||i==h-1", "i==0", "i", "0", "i==h-1", "i", "h-1", "h", "1", "{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "j==0||j==w-1", "j==0", "j", "0", "j==w-1", "j", "w-1", "w", "1", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.print(\"\\r\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\r\\n\"", "System.out.print(\"\\r\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\r\\n\"", "String[] args", "args", "//??????????????????????????????????????????\n\tpublic static String[] getElement(String element) {\n\t\treturn (element.split(\" \"));\n\t}", "getElement", "{\n\t\treturn (element.split(\" \"));\n\t}", "return (element.split(\" \"));", "(element.split(\" \"))", "element.split", "element", "\" \"", "String element", "element", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\n\t\t\tString[] num = getElement(str);\n\n\t\t\tint h = Integer.parseInt(num[0]);\n\t\t\tint w = Integer.parseInt(num[1]);\n\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif(i==0||i==h-1){\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t}\n\n\t}\n\n\t//??????????????????????????????????????????\n\tpublic static String[] getElement(String element) {\n\t\treturn (element.split(\" \"));\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\n\t\t\tString[] num = getElement(str);\n\n\t\t\tint h = Integer.parseInt(num[0]);\n\t\t\tint w = Integer.parseInt(num[1]);\n\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif(i==0||i==h-1){\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif(j==0||j==w-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\r\\n\");\n\t\t}\n\n\t}\n\n\t//??????????????????????????????????????????\n\tpublic static String[] getElement(String element) {\n\t\treturn (element.split(\" \"));\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); while (true) { String str = br.readLine(); String[] num = getElement(str); int h = Integer.parseInt(num[0]); int w = Integer.parseInt(num[1]); if (h == 0 && w == 0) { break; } for (int i = 0; i < h; i++) { if(i==0||i==h-1){ for (int j = 0; j < w; j++) { System.out.print("#"); } }else{ for (int j = 0; j < w; j++) { if(j==0||j==w-1){ System.out.print("#"); }else{ System.out.print("."); } } } System.out.print("\r\n"); } System.out.print("\r\n"); } } //?????????????????????????????????????????? public static String[] getElement(String element) { return (element.split(" ")); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 42, 17, 30, 41, 13, 20, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 4, 18, 13, 13, 40, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 13, 41, 13, 20, 41, 13, 20, 42, 2, 13, 17, 30, 4, 18, 13, 17, 40, 13, 0, 13, 13, 4, 18, 13, 17, 42, 2, 2, 13, 17, 17, 30, 4, 18, 13, 17, 40, 13, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 42, 2, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 172, 8 ], [ 172, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 11, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 23, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 23, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 23, 43 ], [ 43, 44 ], [ 11, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 69, 75 ], [ 57, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 81, 83 ], [ 57, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 89, 91 ], [ 57, 92 ], [ 92, 93 ], [ 92, 94 ], [ 57, 95 ], [ 95, 96 ], [ 95, 97 ], [ 57, 98 ], [ 98, 99 ], [ 98, 100 ], [ 57, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 105, 110 ], [ 110, 111 ], [ 57, 112 ], [ 112, 113 ], [ 112, 114 ], [ 57, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 57, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 119, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 125, 130 ], [ 130, 131 ], [ 57, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 57, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 57, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 142, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 148, 155 ], [ 155, 156 ], [ 57, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 57, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 163, 168 ], [ 9, 169 ], [ 169, 170 ], [ 0, 171 ], [ 171, 172 ], [ 171, 173 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tint in = 0;\n\n\t\twhile (true) {\n\t\t\tString string = new String();\n\t\t\tstring = sc.nextLine();\n\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}\n\n\t\tfor (int i = 0; i < in; i++) {\n\t\t\tint h = 0;\n\t\t\tint w = 0;\n\t\t\tint v = 0;\n\t\t\tString[] str = lines.get(i).split(\" \");\n\t\t\th = Integer.parseInt(str[0]);\n\t\t\tw = Integer.parseInt(str[1]);\n\t\t\tv = w;\n\n\t\t\tStringBuilder str01 = new StringBuilder();\n\t\t\tStringBuilder str02 = new StringBuilder();\n\n\t\t\twhile (w > 0) {\n\t\t\t\tstr01.append(\"#\");\n\t\t\t\tw--;\n\t\t\t}\n\n\t\t\tw = v;\n\n\t\t\tstr02.append(\"#\");\n\t\t\twhile (w - 2 > 0) {\n\t\t\t\tstr02.append(\".\");\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tstr02.append(\"#\");\n\n\t\t\tSystem.out.println(str01);\n\t\t\twhile (h - 2 > 0) {\n\t\t\t\tSystem.out.println(str02);\n\t\t\t\th--;\n\t\t\t}\n\t\t\tSystem.out.println(str01);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tint in = 0;\n\n\t\twhile (true) {\n\t\t\tString string = new String();\n\t\t\tstring = sc.nextLine();\n\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}\n\n\t\tfor (int i = 0; i < in; i++) {\n\t\t\tint h = 0;\n\t\t\tint w = 0;\n\t\t\tint v = 0;\n\t\t\tString[] str = lines.get(i).split(\" \");\n\t\t\th = Integer.parseInt(str[0]);\n\t\t\tw = Integer.parseInt(str[1]);\n\t\t\tv = w;\n\n\t\t\tStringBuilder str01 = new StringBuilder();\n\t\t\tStringBuilder str02 = new StringBuilder();\n\n\t\t\twhile (w > 0) {\n\t\t\t\tstr01.append(\"#\");\n\t\t\t\tw--;\n\t\t\t}\n\n\t\t\tw = v;\n\n\t\t\tstr02.append(\"#\");\n\t\t\twhile (w - 2 > 0) {\n\t\t\t\tstr02.append(\".\");\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tstr02.append(\"#\");\n\n\t\t\tSystem.out.println(str01);\n\t\t\twhile (h - 2 > 0) {\n\t\t\t\tSystem.out.println(str02);\n\t\t\t\th--;\n\t\t\t}\n\t\t\tSystem.out.println(str01);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tint in = 0;\n\n\t\twhile (true) {\n\t\t\tString string = new String();\n\t\t\tstring = sc.nextLine();\n\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}\n\n\t\tfor (int i = 0; i < in; i++) {\n\t\t\tint h = 0;\n\t\t\tint w = 0;\n\t\t\tint v = 0;\n\t\t\tString[] str = lines.get(i).split(\" \");\n\t\t\th = Integer.parseInt(str[0]);\n\t\t\tw = Integer.parseInt(str[1]);\n\t\t\tv = w;\n\n\t\t\tStringBuilder str01 = new StringBuilder();\n\t\t\tStringBuilder str02 = new StringBuilder();\n\n\t\t\twhile (w > 0) {\n\t\t\t\tstr01.append(\"#\");\n\t\t\t\tw--;\n\t\t\t}\n\n\t\t\tw = v;\n\n\t\t\tstr02.append(\"#\");\n\t\t\twhile (w - 2 > 0) {\n\t\t\t\tstr02.append(\".\");\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tstr02.append(\"#\");\n\n\t\t\tSystem.out.println(str01);\n\t\t\twhile (h - 2 > 0) {\n\t\t\t\tSystem.out.println(str02);\n\t\t\t\th--;\n\t\t\t}\n\t\t\tSystem.out.println(str01);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tint in = 0;\n\n\t\twhile (true) {\n\t\t\tString string = new String();\n\t\t\tstring = sc.nextLine();\n\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}\n\n\t\tfor (int i = 0; i < in; i++) {\n\t\t\tint h = 0;\n\t\t\tint w = 0;\n\t\t\tint v = 0;\n\t\t\tString[] str = lines.get(i).split(\" \");\n\t\t\th = Integer.parseInt(str[0]);\n\t\t\tw = Integer.parseInt(str[1]);\n\t\t\tv = w;\n\n\t\t\tStringBuilder str01 = new StringBuilder();\n\t\t\tStringBuilder str02 = new StringBuilder();\n\n\t\t\twhile (w > 0) {\n\t\t\t\tstr01.append(\"#\");\n\t\t\t\tw--;\n\t\t\t}\n\n\t\t\tw = v;\n\n\t\t\tstr02.append(\"#\");\n\t\t\twhile (w - 2 > 0) {\n\t\t\t\tstr02.append(\".\");\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tstr02.append(\"#\");\n\n\t\t\tSystem.out.println(str01);\n\t\t\twhile (h - 2 > 0) {\n\t\t\t\tSystem.out.println(str02);\n\t\t\t\th--;\n\t\t\t}\n\t\t\tSystem.out.println(str01);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<String> lines = new ArrayList<String>();", "lines", "new ArrayList<String>()", "int in = 0;", "in", "0", "while (true) {\n\t\t\tString string = new String();\n\t\t\tstring = sc.nextLine();\n\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}", "true", "{\n\t\t\tString string = new String();\n\t\t\tstring = sc.nextLine();\n\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}", "String string = new String();", "string", "new String()", "string = sc.nextLine()", "string", "sc.nextLine()", "sc.nextLine", "sc", "if (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}", "string.equals(\"0 0\")", "string.equals", "string", "\"0 0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "lines.add(string)", "lines.add", "lines", "string", "in++", "in", "for (int i = 0; i < in; i++) {\n\t\t\tint h = 0;\n\t\t\tint w = 0;\n\t\t\tint v = 0;\n\t\t\tString[] str = lines.get(i).split(\" \");\n\t\t\th = Integer.parseInt(str[0]);\n\t\t\tw = Integer.parseInt(str[1]);\n\t\t\tv = w;\n\n\t\t\tStringBuilder str01 = new StringBuilder();\n\t\t\tStringBuilder str02 = new StringBuilder();\n\n\t\t\twhile (w > 0) {\n\t\t\t\tstr01.append(\"#\");\n\t\t\t\tw--;\n\t\t\t}\n\n\t\t\tw = v;\n\n\t\t\tstr02.append(\"#\");\n\t\t\twhile (w - 2 > 0) {\n\t\t\t\tstr02.append(\".\");\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tstr02.append(\"#\");\n\n\t\t\tSystem.out.println(str01);\n\t\t\twhile (h - 2 > 0) {\n\t\t\t\tSystem.out.println(str02);\n\t\t\t\th--;\n\t\t\t}\n\t\t\tSystem.out.println(str01);\n\t\t\tSystem.out.println(\"\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < in", "i", "in", "i++", "i++", "i", "{\n\t\t\tint h = 0;\n\t\t\tint w = 0;\n\t\t\tint v = 0;\n\t\t\tString[] str = lines.get(i).split(\" \");\n\t\t\th = Integer.parseInt(str[0]);\n\t\t\tw = Integer.parseInt(str[1]);\n\t\t\tv = w;\n\n\t\t\tStringBuilder str01 = new StringBuilder();\n\t\t\tStringBuilder str02 = new StringBuilder();\n\n\t\t\twhile (w > 0) {\n\t\t\t\tstr01.append(\"#\");\n\t\t\t\tw--;\n\t\t\t}\n\n\t\t\tw = v;\n\n\t\t\tstr02.append(\"#\");\n\t\t\twhile (w - 2 > 0) {\n\t\t\t\tstr02.append(\".\");\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tstr02.append(\"#\");\n\n\t\t\tSystem.out.println(str01);\n\t\t\twhile (h - 2 > 0) {\n\t\t\t\tSystem.out.println(str02);\n\t\t\t\th--;\n\t\t\t}\n\t\t\tSystem.out.println(str01);\n\t\t\tSystem.out.println(\"\");\n\t\t}", "{\n\t\t\tint h = 0;\n\t\t\tint w = 0;\n\t\t\tint v = 0;\n\t\t\tString[] str = lines.get(i).split(\" \");\n\t\t\th = Integer.parseInt(str[0]);\n\t\t\tw = Integer.parseInt(str[1]);\n\t\t\tv = w;\n\n\t\t\tStringBuilder str01 = new StringBuilder();\n\t\t\tStringBuilder str02 = new StringBuilder();\n\n\t\t\twhile (w > 0) {\n\t\t\t\tstr01.append(\"#\");\n\t\t\t\tw--;\n\t\t\t}\n\n\t\t\tw = v;\n\n\t\t\tstr02.append(\"#\");\n\t\t\twhile (w - 2 > 0) {\n\t\t\t\tstr02.append(\".\");\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tstr02.append(\"#\");\n\n\t\t\tSystem.out.println(str01);\n\t\t\twhile (h - 2 > 0) {\n\t\t\t\tSystem.out.println(str02);\n\t\t\t\th--;\n\t\t\t}\n\t\t\tSystem.out.println(str01);\n\t\t\tSystem.out.println(\"\");\n\t\t}", "int h = 0;", "h", "0", "int w = 0;", "w", "0", "int v = 0;", "v", "0", "String[] str = lines.get(i).split(\" \");", "str", "lines.get(i).split(\" \")", "lines.get(i).split", "lines.get(i)", "lines.get", "lines", "i", "\" \"", "h = Integer.parseInt(str[0])", "h", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "w = Integer.parseInt(str[1])", "w", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "v = w", "v", "w", "StringBuilder str01 = new StringBuilder();", "str01", "new StringBuilder()", "StringBuilder str02 = new StringBuilder();", "str02", "new StringBuilder()", "while (w > 0) {\n\t\t\t\tstr01.append(\"#\");\n\t\t\t\tw--;\n\t\t\t}", "w > 0", "w", "0", "{\n\t\t\t\tstr01.append(\"#\");\n\t\t\t\tw--;\n\t\t\t}", "str01.append(\"#\")", "str01.append", "str01", "\"#\"", "w--", "w", "w = v", "w", "v", "str02.append(\"#\")", "str02.append", "str02", "\"#\"", "while (w - 2 > 0) {\n\t\t\t\tstr02.append(\".\");\n\t\t\t\tw--;\n\t\t\t}", "w - 2 > 0", "w - 2", "w", "2", "0", "{\n\t\t\t\tstr02.append(\".\");\n\t\t\t\tw--;\n\t\t\t}", "str02.append(\".\")", "str02.append", "str02", "\".\"", "w--", "w", "str02.append(\"#\")", "str02.append", "str02", "\"#\"", "System.out.println(str01)", "System.out.println", "System.out", "System", "System.out", "str01", "while (h - 2 > 0) {\n\t\t\t\tSystem.out.println(str02);\n\t\t\t\th--;\n\t\t\t}", "h - 2 > 0", "h - 2", "h", "2", "0", "{\n\t\t\t\tSystem.out.println(str02);\n\t\t\t\th--;\n\t\t\t}", "System.out.println(str02)", "System.out.println", "System.out", "System", "System.out", "str02", "h--", "h", "System.out.println(str01)", "System.out.println", "System.out", "System", "System.out", "str01", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tint in = 0;\n\n\t\twhile (true) {\n\t\t\tString string = new String();\n\t\t\tstring = sc.nextLine();\n\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}\n\n\t\tfor (int i = 0; i < in; i++) {\n\t\t\tint h = 0;\n\t\t\tint w = 0;\n\t\t\tint v = 0;\n\t\t\tString[] str = lines.get(i).split(\" \");\n\t\t\th = Integer.parseInt(str[0]);\n\t\t\tw = Integer.parseInt(str[1]);\n\t\t\tv = w;\n\n\t\t\tStringBuilder str01 = new StringBuilder();\n\t\t\tStringBuilder str02 = new StringBuilder();\n\n\t\t\twhile (w > 0) {\n\t\t\t\tstr01.append(\"#\");\n\t\t\t\tw--;\n\t\t\t}\n\n\t\t\tw = v;\n\n\t\t\tstr02.append(\"#\");\n\t\t\twhile (w - 2 > 0) {\n\t\t\t\tstr02.append(\".\");\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tstr02.append(\"#\");\n\n\t\t\tSystem.out.println(str01);\n\t\t\twhile (h - 2 > 0) {\n\t\t\t\tSystem.out.println(str02);\n\t\t\t\th--;\n\t\t\t}\n\t\t\tSystem.out.println(str01);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tArrayList<String> lines = new ArrayList<String>();\n\t\tint in = 0;\n\n\t\twhile (true) {\n\t\t\tString string = new String();\n\t\t\tstring = sc.nextLine();\n\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tlines.add(string);\n\t\t\tin++;\n\t\t}\n\n\t\tfor (int i = 0; i < in; i++) {\n\t\t\tint h = 0;\n\t\t\tint w = 0;\n\t\t\tint v = 0;\n\t\t\tString[] str = lines.get(i).split(\" \");\n\t\t\th = Integer.parseInt(str[0]);\n\t\t\tw = Integer.parseInt(str[1]);\n\t\t\tv = w;\n\n\t\t\tStringBuilder str01 = new StringBuilder();\n\t\t\tStringBuilder str02 = new StringBuilder();\n\n\t\t\twhile (w > 0) {\n\t\t\t\tstr01.append(\"#\");\n\t\t\t\tw--;\n\t\t\t}\n\n\t\t\tw = v;\n\n\t\t\tstr02.append(\"#\");\n\t\t\twhile (w - 2 > 0) {\n\t\t\t\tstr02.append(\".\");\n\t\t\t\tw--;\n\t\t\t}\n\t\t\tstr02.append(\"#\");\n\n\t\t\tSystem.out.println(str01);\n\t\t\twhile (h - 2 > 0) {\n\t\t\t\tSystem.out.println(str02);\n\t\t\t\th--;\n\t\t\t}\n\t\t\tSystem.out.println(str01);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner sc = new Scanner(System.in); ArrayList<String> lines = new ArrayList<String>(); int in = 0; while (true) { String string = new String(); string = sc.nextLine(); if (string.equals("0 0")) { break; } lines.add(string); in++; } for (int i = 0; i < in; i++) { int h = 0; int w = 0; int v = 0; String[] str = lines.get(i).split(" "); h = Integer.parseInt(str[0]); w = Integer.parseInt(str[1]); v = w; StringBuilder str01 = new StringBuilder(); StringBuilder str02 = new StringBuilder(); while (w > 0) { str01.append("#"); w--; } w = v; str02.append("#"); while (w - 2 > 0) { str02.append("."); w--; } str02.append("#"); System.out.println(str01); while (h - 2 > 0) { System.out.println(str02); h--; } System.out.println(str01); System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 13, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 139, 5 ], [ 139, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 66, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 65, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 57, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 96, 97 ], [ 96, 98 ], [ 91, 99 ], [ 99, 100 ], [ 100, 101 ], [ 91, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 104, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 90, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 43, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 6, 136 ], [ 136, 137 ], [ 0, 138 ], [ 138, 139 ], [ 138, 140 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tint W,H,a,b;\n\t\tScanner br = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tH=br.nextInt();\n\t\t\tW=br.nextInt();\n\t\t\tif(H==0 && W==0 ){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(a=1;a<=H;a++){\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tint W,H,a,b;\n\t\tScanner br = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tH=br.nextInt();\n\t\t\tW=br.nextInt();\n\t\t\tif(H==0 && W==0 ){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(a=1;a<=H;a++){\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tint W,H,a,b;\n\t\tScanner br = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tH=br.nextInt();\n\t\t\tW=br.nextInt();\n\t\t\tif(H==0 && W==0 ){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(a=1;a<=H;a++){\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tint W,H,a,b;\n\t\tScanner br = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tH=br.nextInt();\n\t\t\tW=br.nextInt();\n\t\t\tif(H==0 && W==0 ){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(a=1;a<=H;a++){\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}", "int W", "W", "H", "H", "a", "a", "b;", "b", "Scanner br = new Scanner(System.in);", "br", "new Scanner(System.in)", "while(true){\n\t\t\tH=br.nextInt();\n\t\t\tW=br.nextInt();\n\t\t\tif(H==0 && W==0 ){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(a=1;a<=H;a++){\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tH=br.nextInt();\n\t\t\tW=br.nextInt();\n\t\t\tif(H==0 && W==0 ){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(a=1;a<=H;a++){\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "H=br.nextInt()", "H", "br.nextInt()", "br.nextInt", "br", "W=br.nextInt()", "W", "br.nextInt()", "br.nextInt", "br", "if(H==0 && W==0 ){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(a=1;a<=H;a++){\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "H==0 && W==0", "H==0", "H", "0", "W==0", "W", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tfor(a=1;a<=H;a++){\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for(a=1;a<=H;a++){\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}", "a=1;", "a=1", "a", "1", "a<=H", "a", "H", "a++", "a++", "a", "{\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}", "if(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}", "a==1 || a==H", "a==1", "a", "1", "a==H", "a", "H", "{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}", "for(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "b=1;", "b=1", "b", "1", "b<=W", "b", "W", "b++", "b++", "b", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}", "for(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "b=1;", "b=1", "b", "1", "b<=W", "b", "W", "b++", "b++", "b", "{\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "if(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}", "b==1 || b==W", "b==1", "b", "1", "b==W", "b", "W", "{\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tint W,H,a,b;\n\t\tScanner br = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tH=br.nextInt();\n\t\t\tW=br.nextInt();\n\t\t\tif(H==0 && W==0 ){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(a=1;a<=H;a++){\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tint W,H,a,b;\n\t\tScanner br = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tH=br.nextInt();\n\t\t\tW=br.nextInt();\n\t\t\tif(H==0 && W==0 ){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(a=1;a<=H;a++){\n\t\t\t\t\tif(a==1 || a==H){\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}else{\n\t\t\t\t\t\tfor(b=1;b<=W;b++){\n\t\t\t\t\t\t\tif(b==1 || b==W){\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { int W,H,a,b; Scanner br = new Scanner(System.in); while(true){ H=br.nextInt(); W=br.nextInt(); if(H==0 && W==0 ){ break; }else{ for(a=1;a<=H;a++){ if(a==1 || a==H){ for(b=1;b<=W;b++){ System.out.print("#"); } System.out.println(); }else{ for(b=1;b<=W;b++){ if(b==1 || b==W){ System.out.print("#"); }else{ System.out.print("."); } } System.out.println(); } } System.out.println(); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 61, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 61, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 78, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 47, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 14, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 6, 114 ], [ 114, 115 ] ]
[ "import java.util.Scanner; \nclass Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n while(true){\n int h = in.nextInt();\n int w = in.nextInt();\n if(h == 0 && w == 0){\n break;\n }\n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }\n }\n} ", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n while(true){\n int h = in.nextInt();\n int w = in.nextInt();\n if(h == 0 && w == 0){\n break;\n }\n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner in = new Scanner(System.in);\n while(true){\n int h = in.nextInt();\n int w = in.nextInt();\n if(h == 0 && w == 0){\n break;\n }\n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }\n }", "main", "{\n Scanner in = new Scanner(System.in);\n while(true){\n int h = in.nextInt();\n int w = in.nextInt();\n if(h == 0 && w == 0){\n break;\n }\n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(true){\n int h = in.nextInt();\n int w = in.nextInt();\n if(h == 0 && w == 0){\n break;\n }\n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }", "true", "{\n int h = in.nextInt();\n int w = in.nextInt();\n if(h == 0 && w == 0){\n break;\n }\n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }", "int h = in.nextInt();", "h", "in.nextInt()", "in.nextInt", "in", "int w = in.nextInt();", "w", "in.nextInt()", "in.nextInt", "in", "if(h == 0 && w == 0){\n break;\n }", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n break;\n }", "break;", "for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.print(\"\\n\");\n }", "int i=0;", "int i=0;", "i", "0", "i<h", "i", "h", "i++", "i++", "i", "{\n for(int j=0; j<w; j++){\n if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.print(\"\\n\");\n }", "{\n for(int j=0; j<w; j++){\n if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.print(\"\\n\");\n }", "for(int j=0; j<w; j++){\n if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }", "int j=0;", "int j=0;", "j", "0", "j<w", "j", "w", "j++", "j++", "j", "{\n if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }", "{\n if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }", "if(i == 0 || i == h-1){\n System.out.print(\"#\");\n }else if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }", "i == 0 || i == h-1", "i == 0", "i", "0", "i == h-1", "i", "h-1", "h", "1", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if(j == 0 || j == w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }", "j == 0 || j == w-1", "j == 0", "j", "0", "j == w-1", "j", "w-1", "w", "1", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner in = new Scanner(System.in); while(true){ int h = in.nextInt(); int w = in.nextInt(); if(h == 0 && w == 0){ break; } for(int i=0; i<h; i++){ for(int j=0; j<w; j++){ if(i == 0 || i == h-1){ System.out.print("#"); }else if(j == 0 || j == w-1){ System.out.print("#"); }else{ System.out.print("."); } } System.out.print("\n"); } System.out.print("\n"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 115, 5 ], [ 115, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 47, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 59, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 75, 74 ], [ 84, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 84, 84 ], [ 84, 85 ], [ 84, 86 ], [ 75, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 72, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 72, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 14, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 6, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n while(true){\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n if(a == 0 && b == 0){\n break;\n }\n\n for(int j = 0; j < a; j++){\n if(j != 0){\n System.out.print(\"\\n\");\n }\n for(int k = 0; k < b; k++){\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }\n }\n System.out.print(\"\\n\\n\");\n }\n }\n }", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n while(true){\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n if(a == 0 && b == 0){\n break;\n }\n\n for(int j = 0; j < a; j++){\n if(j != 0){\n System.out.print(\"\\n\");\n }\n for(int k = 0; k < b; k++){\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }\n }\n System.out.print(\"\\n\\n\");\n }\n }\n }", "Main", "public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n while(true){\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n if(a == 0 && b == 0){\n break;\n }\n\n for(int j = 0; j < a; j++){\n if(j != 0){\n System.out.print(\"\\n\");\n }\n for(int k = 0; k < b; k++){\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }\n }\n System.out.print(\"\\n\\n\");\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n while(true){\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n if(a == 0 && b == 0){\n break;\n }\n\n for(int j = 0; j < a; j++){\n if(j != 0){\n System.out.print(\"\\n\");\n }\n for(int k = 0; k < b; k++){\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }\n }\n System.out.print(\"\\n\\n\");\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while(true){\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n if(a == 0 && b == 0){\n break;\n }\n\n for(int j = 0; j < a; j++){\n if(j != 0){\n System.out.print(\"\\n\");\n }\n for(int k = 0; k < b; k++){\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }\n }\n System.out.print(\"\\n\\n\");\n }", "true", "{\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n if(a == 0 && b == 0){\n break;\n }\n\n for(int j = 0; j < a; j++){\n if(j != 0){\n System.out.print(\"\\n\");\n }\n for(int k = 0; k < b; k++){\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }\n }\n System.out.print(\"\\n\\n\");\n }", "int a = scanner.nextInt();", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "int b = scanner.nextInt();", "b", "scanner.nextInt()", "scanner.nextInt", "scanner", "if(a == 0 && b == 0){\n break;\n }", "a == 0 && b == 0", "a == 0", "a", "0", "b == 0", "b", "0", "{\n break;\n }", "break;", "for(int j = 0; j < a; j++){\n if(j != 0){\n System.out.print(\"\\n\");\n }\n for(int k = 0; k < b; k++){\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < a", "j", "a", "j++", "j++", "j", "{\n if(j != 0){\n System.out.print(\"\\n\");\n }\n for(int k = 0; k < b; k++){\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }\n }", "{\n if(j != 0){\n System.out.print(\"\\n\");\n }\n for(int k = 0; k < b; k++){\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }\n }", "if(j != 0){\n System.out.print(\"\\n\");\n }", "j != 0", "j", "0", "{\n System.out.print(\"\\n\");\n }", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "for(int k = 0; k < b; k++){\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }", "int k = 0;", "int k = 0;", "k", "0", "k < b", "k", "b", "k++", "k++", "k", "{\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }", "{\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }", "if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }", "j == 0 || j == a - 1 || k == 0 || k == b - 1", "k == 0", "j == 0 || j == a - 1 || k == 0 || k == b - 1", "j == 0", "j", "0", "j == a - 1", "j", "a - 1", "a", "1", "k == 0", "k", "0", "k == b - 1", "k", "b - 1", "b", "1", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.print(\"\\n\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\\n\"", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n while(true){\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n if(a == 0 && b == 0){\n break;\n }\n\n for(int j = 0; j < a; j++){\n if(j != 0){\n System.out.print(\"\\n\");\n }\n for(int k = 0; k < b; k++){\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }\n }\n System.out.print(\"\\n\\n\");\n }\n }\n }", "public class Main{\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n while(true){\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n if(a == 0 && b == 0){\n break;\n }\n\n for(int j = 0; j < a; j++){\n if(j != 0){\n System.out.print(\"\\n\");\n }\n for(int k = 0; k < b; k++){\n if(j == 0 || j == a - 1 || k == 0 || k == b - 1){\n System.out.print(\"#\");\n }\n else{\n System.out.print(\".\");\n }\n }\n }\n System.out.print(\"\\n\\n\");\n }\n }\n }", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); while(true){ int a = scanner.nextInt(); int b = scanner.nextInt(); if(a == 0 && b == 0){ break; } for(int j = 0; j < a; j++){ if(j != 0){ System.out.print("\n"); } for(int k = 0; k < b; k++){ if(j == 0 || j == a - 1 || k == 0 || k == b - 1){ System.out.print("#"); } else{ System.out.print("."); } } } System.out.print("\n\n"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 4, 18, 13, 13, 4, 18, 13, 13, 30, 0, 13, 17, 3, 14, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 4, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 2, 4, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 193, 11 ], [ 193, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 29, 50 ], [ 50, 51 ], [ 53, 52 ], [ 60, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 60, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 63, 65 ], [ 50, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 66, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 50, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 14, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 85, 95 ], [ 95, 96 ], [ 96, 97 ], [ 85, 98 ], [ 99, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 100, 111 ], [ 111, 112 ], [ 112, 113 ], [ 100, 114 ], [ 115, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 116, 127 ], [ 127, 128 ], [ 128, 129 ], [ 116, 130 ], [ 131, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 139, 144 ], [ 132, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 132, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 160, 165 ], [ 153, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 167, 172 ], [ 153, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 115, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 99, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 12, 190 ], [ 190, 191 ], [ 0, 192 ], [ 192, 193 ], [ 192, 194 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tList<Integer> rows = new ArrayList<>();\n\t\tList<Integer> columns = new ArrayList<>();\n\t\tboolean flag=true;\n\t\t\n\t\twhile (true) {\n\t\t\tint h = s.nextInt();\n\t\t\tint w = s.nextInt();\n\t\t\tif(h==0 && w==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(h>=3 && w>=1 && h<=300 && w<=300) {\n\t\t\t\trows.add(h);\n\t\t\t\tcolumns.add(w);\n\t\t\t}else {\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag == true) {\n\t\t\tfor(int i=0;i<rows.size();i++) {\n\t\t\t\tfor(int r=0;r<rows.get(i);r++) {\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t}\n\n\t}\n\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tList<Integer> rows = new ArrayList<>();\n\t\tList<Integer> columns = new ArrayList<>();\n\t\tboolean flag=true;\n\t\t\n\t\twhile (true) {\n\t\t\tint h = s.nextInt();\n\t\t\tint w = s.nextInt();\n\t\t\tif(h==0 && w==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(h>=3 && w>=1 && h<=300 && w<=300) {\n\t\t\t\trows.add(h);\n\t\t\t\tcolumns.add(w);\n\t\t\t}else {\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag == true) {\n\t\t\tfor(int i=0;i<rows.size();i++) {\n\t\t\t\tfor(int r=0;r<rows.get(i);r++) {\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tList<Integer> rows = new ArrayList<>();\n\t\tList<Integer> columns = new ArrayList<>();\n\t\tboolean flag=true;\n\t\t\n\t\twhile (true) {\n\t\t\tint h = s.nextInt();\n\t\t\tint w = s.nextInt();\n\t\t\tif(h==0 && w==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(h>=3 && w>=1 && h<=300 && w<=300) {\n\t\t\t\trows.add(h);\n\t\t\t\tcolumns.add(w);\n\t\t\t}else {\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag == true) {\n\t\t\tfor(int i=0;i<rows.size();i++) {\n\t\t\t\tfor(int r=0;r<rows.get(i);r++) {\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t}\n\n\t}", "main", "{\n\t\tScanner s = new Scanner(System.in);\n\t\tList<Integer> rows = new ArrayList<>();\n\t\tList<Integer> columns = new ArrayList<>();\n\t\tboolean flag=true;\n\t\t\n\t\twhile (true) {\n\t\t\tint h = s.nextInt();\n\t\t\tint w = s.nextInt();\n\t\t\tif(h==0 && w==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(h>=3 && w>=1 && h<=300 && w<=300) {\n\t\t\t\trows.add(h);\n\t\t\t\tcolumns.add(w);\n\t\t\t}else {\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag == true) {\n\t\t\tfor(int i=0;i<rows.size();i++) {\n\t\t\t\tfor(int r=0;r<rows.get(i);r++) {\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t}\n\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "List<Integer> rows = new ArrayList<>();", "rows", "new ArrayList<>()", "List<Integer> columns = new ArrayList<>();", "columns", "new ArrayList<>()", "boolean flag=true;", "flag", "true", "while (true) {\n\t\t\tint h = s.nextInt();\n\t\t\tint w = s.nextInt();\n\t\t\tif(h==0 && w==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(h>=3 && w>=1 && h<=300 && w<=300) {\n\t\t\t\trows.add(h);\n\t\t\t\tcolumns.add(w);\n\t\t\t}else {\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tint h = s.nextInt();\n\t\t\tint w = s.nextInt();\n\t\t\tif(h==0 && w==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(h>=3 && w>=1 && h<=300 && w<=300) {\n\t\t\t\trows.add(h);\n\t\t\t\tcolumns.add(w);\n\t\t\t}else {\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int h = s.nextInt();", "h", "s.nextInt()", "s.nextInt", "s", "int w = s.nextInt();", "w", "s.nextInt()", "s.nextInt", "s", "if(h==0 && w==0) {\n\t\t\t\tbreak;\n\t\t\t}", "h==0 && w==0", "h==0", "h", "0", "w==0", "w", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if(h>=3 && w>=1 && h<=300 && w<=300) {\n\t\t\t\trows.add(h);\n\t\t\t\tcolumns.add(w);\n\t\t\t}else {\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}", "h>=3 && w>=1 && h<=300 && w<=300", "h<=300", "h>=3 && w>=1 && h<=300 && w<=300", "h>=3", "h", "3", "w>=1", "w", "1", "h<=300", "h", "300", "w<=300", "w", "300", "{\n\t\t\t\trows.add(h);\n\t\t\t\tcolumns.add(w);\n\t\t\t}", "rows.add(h)", "rows.add", "rows", "h", "columns.add(w)", "columns.add", "columns", "w", "{\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}", "flag = false", "flag", "false", "break;", "if(flag == true) {\n\t\t\tfor(int i=0;i<rows.size();i++) {\n\t\t\t\tfor(int r=0;r<rows.get(i);r++) {\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t}", "flag == true", "flag", "true", "{\n\t\t\tfor(int i=0;i<rows.size();i++) {\n\t\t\t\tfor(int r=0;r<rows.get(i);r++) {\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t}", "for(int i=0;i<rows.size();i++) {\n\t\t\t\tfor(int r=0;r<rows.get(i);r++) {\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<rows.size()", "i", "rows.size()", "rows.size", "rows", "i++", "i++", "i", "{\n\t\t\t\tfor(int r=0;r<rows.get(i);r++) {\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor(int r=0;r<rows.get(i);r++) {\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for(int r=0;r<rows.get(i);r++) {\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "int r=0;", "int r=0;", "r", "0", "r<rows.get(i)", "r", "rows.get(i)", "rows.get", "rows", "i", "r++", "r++", "r", "{\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "{\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "for(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}", "int c=0;", "int c=0;", "c", "0", "c<columns.get(i)", "c", "columns.get(i)", "columns.get", "columns", "i", "c++", "c++", "c", "{\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}", "if(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "r==0 || r==rows.get(i)-1", "r==0", "r", "0", "r==rows.get(i)-1", "r", "rows.get(i)-1", "rows.get(i)", "rows.get", "rows", "i", "1", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "if(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}", "c==0 || c==columns.get(i)-1", "c==0", "c", "0", "c==columns.get(i)-1", "c", "columns.get(i)-1", "columns.get(i)", "columns.get", "columns", "i", "1", "{\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tList<Integer> rows = new ArrayList<>();\n\t\tList<Integer> columns = new ArrayList<>();\n\t\tboolean flag=true;\n\t\t\n\t\twhile (true) {\n\t\t\tint h = s.nextInt();\n\t\t\tint w = s.nextInt();\n\t\t\tif(h==0 && w==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(h>=3 && w>=1 && h<=300 && w<=300) {\n\t\t\t\trows.add(h);\n\t\t\t\tcolumns.add(w);\n\t\t\t}else {\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag == true) {\n\t\t\tfor(int i=0;i<rows.size();i++) {\n\t\t\t\tfor(int r=0;r<rows.get(i);r++) {\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tList<Integer> rows = new ArrayList<>();\n\t\tList<Integer> columns = new ArrayList<>();\n\t\tboolean flag=true;\n\t\t\n\t\twhile (true) {\n\t\t\tint h = s.nextInt();\n\t\t\tint w = s.nextInt();\n\t\t\tif(h==0 && w==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(h>=3 && w>=1 && h<=300 && w<=300) {\n\t\t\t\trows.add(h);\n\t\t\t\tcolumns.add(w);\n\t\t\t}else {\n\t\t\t\tflag = false;\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tif(flag == true) {\n\t\t\tfor(int i=0;i<rows.size();i++) {\n\t\t\t\tfor(int r=0;r<rows.get(i);r++) {\n\t\t\t\t\tfor(int c=0;c<columns.get(i);c++) {\n\t\t\t\t\t\tif(r==0 || r==rows.get(i)-1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\tif(c==0 || c==columns.get(i)-1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); List<Integer> rows = new ArrayList<>(); List<Integer> columns = new ArrayList<>(); boolean flag=true; while (true) { int h = s.nextInt(); int w = s.nextInt(); if(h==0 && w==0) { break; } if(h>=3 && w>=1 && h<=300 && w<=300) { rows.add(h); columns.add(w); }else { flag = false; break; } } if(flag == true) { for(int i=0;i<rows.size();i++) { for(int r=0;r<rows.get(i);r++) { for(int c=0;c<columns.get(i);c++) { if(r==0 || r==rows.get(i)-1) { System.out.print("#"); }else { if(c==0 || c==columns.get(i)-1) { System.out.print("#"); }else { System.out.print("."); } } } System.out.println(); } System.out.println(); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 64, 63 ], [ 71, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 71, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 64, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 61, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 61, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 47, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 14, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 6, 107 ], [ 107, 108 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n while(true){\n int H = sc.nextInt();\n int W = sc.nextInt();\n if(H == 0 && W == 0){\n break;\n }\n for(int x = 0; x < H; x++){\n for(int y = 0; y < W; y++){\n if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n while(true){\n int H = sc.nextInt();\n int W = sc.nextInt();\n if(H == 0 && W == 0){\n break;\n }\n for(int x = 0; x < H; x++){\n for(int y = 0; y < W; y++){\n if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n }\n}", "Main", "public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n while(true){\n int H = sc.nextInt();\n int W = sc.nextInt();\n if(H == 0 && W == 0){\n break;\n }\n for(int x = 0; x < H; x++){\n for(int y = 0; y < W; y++){\n if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(true){\n int H = sc.nextInt();\n int W = sc.nextInt();\n if(H == 0 && W == 0){\n break;\n }\n for(int x = 0; x < H; x++){\n for(int y = 0; y < W; y++){\n if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int H = sc.nextInt();\n int W = sc.nextInt();\n if(H == 0 && W == 0){\n break;\n }\n for(int x = 0; x < H; x++){\n for(int y = 0; y < W; y++){\n if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }", "true", "{\n int H = sc.nextInt();\n int W = sc.nextInt();\n if(H == 0 && W == 0){\n break;\n }\n for(int x = 0; x < H; x++){\n for(int y = 0; y < W; y++){\n if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int W = sc.nextInt();", "W", "sc.nextInt()", "sc.nextInt", "sc", "if(H == 0 && W == 0){\n break;\n }", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n break;\n }", "break;", "for(int x = 0; x < H; x++){\n for(int y = 0; y < W; y++){\n if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }", "int x = 0;", "int x = 0;", "x", "0", "x < H", "x", "H", "x++", "x++", "x", "{\n for(int y = 0; y < W; y++){\n if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }", "{\n for(int y = 0; y < W; y++){\n if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }", "for(int y = 0; y < W; y++){\n if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }", "int y = 0;", "int y = 0;", "y", "0", "y < W", "y", "W", "y++", "y++", "y", "{\n if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }", "{\n if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }", "if(x == 0 || y == 0 || x == H-1 || y == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }", "x == 0 || y == 0 || x == H-1 || y == W-1", "x == H-1", "x == 0 || y == 0 || x == H-1 || y == W-1", "x == 0", "x", "0", "y == 0", "y", "0", "x == H-1", "x", "H-1", "H", "1", "y == W-1", "y", "W-1", "W", "1", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String args[]", "args" ]
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); while(true){ int H = sc.nextInt(); int W = sc.nextInt(); if(H == 0 && W == 0){ break; } for(int x = 0; x < H; x++){ for(int y = 0; y < W; y++){ if(x == 0 || y == 0 || x == H-1 || y == W-1){ System.out.print("#"); }else{ System.out.print("."); } } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 17, 41, 13, 2, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 13, 2, 13, 17, 2, 13, 13, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 113, 5 ], [ 113, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 14, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 77, 76 ], [ 84, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 84, 84 ], [ 84, 85 ], [ 84, 86 ], [ 77, 87 ], [ 87, 88 ], [ 87, 89 ], [ 74, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 74, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 57, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 14, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 6, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\n\t\t//????????¨?¨???????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint intH = sc.nextInt();\n\t\t\tint intW = sc.nextInt();\n\t\t\tint h = intH - 1;\n\t\t\tint w = intW - 1;\n\n\t\t\t//??????H???W???0?????£???????????????????????????\n\t\t\tif((intH == 0) && (intW == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????\n\n\t\t\tfor (int i = 0; i < intH; i++) {\n\t\t\t\tString A = \"\";\n\t\t\t\tfor (int j = 0; j < intW; j++) {\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(A);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//????????¨?¨???????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint intH = sc.nextInt();\n\t\t\tint intW = sc.nextInt();\n\t\t\tint h = intH - 1;\n\t\t\tint w = intW - 1;\n\n\t\t\t//??????H???W???0?????£???????????????????????????\n\t\t\tif((intH == 0) && (intW == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????\n\n\t\t\tfor (int i = 0; i < intH; i++) {\n\t\t\t\tString A = \"\";\n\t\t\t\tfor (int j = 0; j < intW; j++) {\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(A);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main", "public static void main(String args[]){\n\n\t\t//????????¨?¨???????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint intH = sc.nextInt();\n\t\t\tint intW = sc.nextInt();\n\t\t\tint h = intH - 1;\n\t\t\tint w = intW - 1;\n\n\t\t\t//??????H???W???0?????£???????????????????????????\n\t\t\tif((intH == 0) && (intW == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????\n\n\t\t\tfor (int i = 0; i < intH; i++) {\n\t\t\t\tString A = \"\";\n\t\t\t\tfor (int j = 0; j < intW; j++) {\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(A);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "main", "{\n\n\t\t//????????¨?¨???????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint intH = sc.nextInt();\n\t\t\tint intW = sc.nextInt();\n\t\t\tint h = intH - 1;\n\t\t\tint w = intW - 1;\n\n\t\t\t//??????H???W???0?????£???????????????????????????\n\t\t\tif((intH == 0) && (intW == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????\n\n\t\t\tfor (int i = 0; i < intH; i++) {\n\t\t\t\tString A = \"\";\n\t\t\t\tfor (int j = 0; j < intW; j++) {\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(A);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n\t\t\tint intH = sc.nextInt();\n\t\t\tint intW = sc.nextInt();\n\t\t\tint h = intH - 1;\n\t\t\tint w = intW - 1;\n\n\t\t\t//??????H???W???0?????£???????????????????????????\n\t\t\tif((intH == 0) && (intW == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????\n\n\t\t\tfor (int i = 0; i < intH; i++) {\n\t\t\t\tString A = \"\";\n\t\t\t\tfor (int j = 0; j < intW; j++) {\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(A);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "true", "{\n\t\t\tint intH = sc.nextInt();\n\t\t\tint intW = sc.nextInt();\n\t\t\tint h = intH - 1;\n\t\t\tint w = intW - 1;\n\n\t\t\t//??????H???W???0?????£???????????????????????????\n\t\t\tif((intH == 0) && (intW == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????\n\n\t\t\tfor (int i = 0; i < intH; i++) {\n\t\t\t\tString A = \"\";\n\t\t\t\tfor (int j = 0; j < intW; j++) {\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(A);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "int intH = sc.nextInt();", "intH", "sc.nextInt()", "sc.nextInt", "sc", "int intW = sc.nextInt();", "intW", "sc.nextInt()", "sc.nextInt", "sc", "int h = intH - 1;", "h", "intH - 1", "intH", "1", "int w = intW - 1;", "w", "intW - 1", "intW", "1", "if((intH == 0) && (intW == 0)){\n\t\t\t\tbreak;\n\t\t\t}", "(intH == 0) && (intW == 0)", "(intH == 0)", "intH", "0", "(intW == 0)", "intW", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (int i = 0; i < intH; i++) {\n\t\t\t\tString A = \"\";\n\t\t\t\tfor (int j = 0; j < intW; j++) {\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(A);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intH", "i", "intH", "i++", "i++", "i", "{\n\t\t\t\tString A = \"\";\n\t\t\t\tfor (int j = 0; j < intW; j++) {\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(A);\n\t\t\t}", "{\n\t\t\t\tString A = \"\";\n\t\t\t\tfor (int j = 0; j < intW; j++) {\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(A);\n\t\t\t}", "String A = \"\";", "A", "\"\"", "for (int j = 0; j < intW; j++) {\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < intW", "j", "intW", "j++", "j++", "j", "{\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}", "if (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}", "i == 0 || i == h || j == 0 || j == w", "j == 0", "i == 0 || i == h || j == 0 || j == w", "i == 0", "i", "0", "i == h", "i", "h", "j == 0", "j", "0", "j == w", "j", "w", "{\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}", "A += \"#\"", "A", "\"#\"", "{\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}", "A += \".\"", "A", "\".\"", "System.out.println(A)", "System.out.println", "System.out", "System", "System.out", "A", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String args[]", "args", "public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//????????¨?¨???????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint intH = sc.nextInt();\n\t\t\tint intW = sc.nextInt();\n\t\t\tint h = intH - 1;\n\t\t\tint w = intW - 1;\n\n\t\t\t//??????H???W???0?????£???????????????????????????\n\t\t\tif((intH == 0) && (intW == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????\n\n\t\t\tfor (int i = 0; i < intH; i++) {\n\t\t\t\tString A = \"\";\n\t\t\t\tfor (int j = 0; j < intW; j++) {\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(A);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String args[]){\n\n\t\t//????????¨?¨???????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint intH = sc.nextInt();\n\t\t\tint intW = sc.nextInt();\n\t\t\tint h = intH - 1;\n\t\t\tint w = intW - 1;\n\n\t\t\t//??????H???W???0?????£???????????????????????????\n\t\t\tif((intH == 0) && (intW == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t//??????\n\n\t\t\tfor (int i = 0; i < intH; i++) {\n\t\t\t\tString A = \"\";\n\t\t\t\tfor (int j = 0; j < intW; j++) {\n\t\t\t\t\tif (i == 0 || i == h || j == 0 || j == w ) {\n\t\t\t\t\t\tA += \"#\";\n\t\t\t\t\t}else {\n\t\t\t\t\t\tA += \".\";\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(A);\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String args[]){ //????????¨?¨??????????????????? Scanner sc = new Scanner(System.in); while(true){ int intH = sc.nextInt(); int intW = sc.nextInt(); int h = intH - 1; int w = intW - 1; //??????H???W???0?????£??????????????????????????? if((intH == 0) && (intW == 0)){ break; } //?????? for (int i = 0; i < intH; i++) { String A = ""; for (int j = 0; j < intW; j++) { if (i == 0 || i == h || j == 0 || j == w ) { A += "#"; }else { A += "."; } } System.out.println(A); } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 63, 62 ], [ 72, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 72, 72 ], [ 72, 73 ], [ 72, 74 ], [ 63, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 60, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 60, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 46, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 14, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 6, 104 ], [ 104, 105 ] ]
[ "import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint H = stdIn.nextInt();\n\t\t\tint W = stdIn.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i=0; i<H; i++) {\n\t\t\t\tfor (int j=0; j<W; j++) {\n\t\t\t\t\tif (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint H = stdIn.nextInt();\n\t\t\tint W = stdIn.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i=0; i<H; i++) {\n\t\t\t\tfor (int j=0; j<W; j++) {\n\t\t\t\t\tif (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint H = stdIn.nextInt();\n\t\t\tint W = stdIn.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i=0; i<H; i++) {\n\t\t\t\tfor (int j=0; j<W; j++) {\n\t\t\t\t\tif (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint H = stdIn.nextInt();\n\t\t\tint W = stdIn.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i=0; i<H; i++) {\n\t\t\t\tfor (int j=0; j<W; j++) {\n\t\t\t\t\tif (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "while(true){\n\t\t\tint H = stdIn.nextInt();\n\t\t\tint W = stdIn.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i=0; i<H; i++) {\n\t\t\t\tfor (int j=0; j<W; j++) {\n\t\t\t\t\tif (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tint H = stdIn.nextInt();\n\t\t\tint W = stdIn.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i=0; i<H; i++) {\n\t\t\t\tfor (int j=0; j<W; j++) {\n\t\t\t\t\tif (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int H = stdIn.nextInt();", "H", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int W = stdIn.nextInt();", "W", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "if(H == 0 && W == 0)\n\t\t\t\tbreak;", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "break;", "for (int i=0; i<H; i++) {\n\t\t\t\tfor (int j=0; j<W; j++) {\n\t\t\t\t\tif (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\tfor (int j=0; j<W; j++) {\n\t\t\t\t\tif (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor (int j=0; j<W; j++) {\n\t\t\t\t\tif (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for (int j=0; j<W; j++) {\n\t\t\t\t\tif (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\tif (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "if (i==0 || i==H-1 || j==0 || j==W-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "i==0 || i==H-1 || j==0 || j==W-1", "j==0", "i==0 || i==H-1 || j==0 || j==W-1", "i==0", "i", "0", "i==H-1", "i", "H-1", "H", "1", "j==0", "j", "0", "j==W-1", "j", "W-1", "W", "1", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); while(true){ int H = stdIn.nextInt(); int W = stdIn.nextInt(); if(H == 0 && W == 0) break; for (int i=0; i<H; i++) { for (int j=0; j<W; j++) { if (i==0 || i==H-1 || j==0 || j==W-1) { System.out.print("#"); }else{ System.out.print("."); } } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 42, 17, 30, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 14, 2, 18, 13, 17, 17, 3, 11, 1, 41, 13, 17, 2, 13, 18, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 2, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 133, 11 ], [ 133, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 30, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 24, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 39, 45 ], [ 24, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 46, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 61, 71 ], [ 71, 72 ], [ 72, 73 ], [ 61, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 76, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 76, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 95, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 95, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 60, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 24, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 12, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.text.*;\nimport java.math.*;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] num= new int[2];\n\n\t\twhile(true) {\n\t\t\tnum[0] = scan.nextInt();\n\t\t\tnum[1] = scan.nextInt();\n\t\t\tif(num[0] == 0) break;\n\t\t\tfor(int i1 = 0; i1 < num[0];i1++) {\n\t\t\t\tfor(int i2 = 0;i2 < num[1];i2++) {\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}\n}", "import java.text.*;", "text.*", "java", "import java.math.*;", "math.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] num= new int[2];\n\n\t\twhile(true) {\n\t\t\tnum[0] = scan.nextInt();\n\t\t\tnum[1] = scan.nextInt();\n\t\t\tif(num[0] == 0) break;\n\t\t\tfor(int i1 = 0; i1 < num[0];i1++) {\n\t\t\t\tfor(int i2 = 0;i2 < num[1];i2++) {\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] num= new int[2];\n\n\t\twhile(true) {\n\t\t\tnum[0] = scan.nextInt();\n\t\t\tnum[1] = scan.nextInt();\n\t\t\tif(num[0] == 0) break;\n\t\t\tfor(int i1 = 0; i1 < num[0];i1++) {\n\t\t\t\tfor(int i2 = 0;i2 < num[1];i2++) {\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] num= new int[2];\n\n\t\twhile(true) {\n\t\t\tnum[0] = scan.nextInt();\n\t\t\tnum[1] = scan.nextInt();\n\t\t\tif(num[0] == 0) break;\n\t\t\tfor(int i1 = 0; i1 < num[0];i1++) {\n\t\t\t\tfor(int i2 = 0;i2 < num[1];i2++) {\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int[] num= new int[2];", "num", "new int[2]", "2", "while(true) {\n\t\t\tnum[0] = scan.nextInt();\n\t\t\tnum[1] = scan.nextInt();\n\t\t\tif(num[0] == 0) break;\n\t\t\tfor(int i1 = 0; i1 < num[0];i1++) {\n\t\t\t\tfor(int i2 = 0;i2 < num[1];i2++) {\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tnum[0] = scan.nextInt();\n\t\t\tnum[1] = scan.nextInt();\n\t\t\tif(num[0] == 0) break;\n\t\t\tfor(int i1 = 0; i1 < num[0];i1++) {\n\t\t\t\tfor(int i2 = 0;i2 < num[1];i2++) {\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "num[0] = scan.nextInt()", "num[0]", "num", "0", "scan.nextInt()", "scan.nextInt", "scan", "num[1] = scan.nextInt()", "num[1]", "num", "1", "scan.nextInt()", "scan.nextInt", "scan", "if(num[0] == 0) break;", "num[0] == 0", "num[0]", "num", "0", "0", "break;", "for(int i1 = 0; i1 < num[0];i1++) {\n\t\t\t\tfor(int i2 = 0;i2 < num[1];i2++) {\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i1 = 0;", "int i1 = 0;", "i1", "0", "i1 < num[0]", "i1", "num[0]", "num", "0", "i1++", "i1++", "i1", "{\n\t\t\t\tfor(int i2 = 0;i2 < num[1];i2++) {\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor(int i2 = 0;i2 < num[1];i2++) {\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for(int i2 = 0;i2 < num[1];i2++) {\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}", "int i2 = 0;", "int i2 = 0;", "i2", "0", "i2 < num[1]", "i2", "num[1]", "num", "1", "i2++", "i2++", "i2", "{\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}", "if(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");", "i1 == 0 | i1 == num[0]-1", "i1 == 0", "i1", "0", "i1 == num[0]-1", "i1", "num[0]-1", "num[0]", "num", "0", "1", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");", "i2 == 0|i2 == num[1]-1", "i2 == 0", "i2", "0", "i2 == num[1]-1", "i2", "num[1]-1", "num[1]", "num", "1", "1", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] num= new int[2];\n\n\t\twhile(true) {\n\t\t\tnum[0] = scan.nextInt();\n\t\t\tnum[1] = scan.nextInt();\n\t\t\tif(num[0] == 0) break;\n\t\t\tfor(int i1 = 0; i1 < num[0];i1++) {\n\t\t\t\tfor(int i2 = 0;i2 < num[1];i2++) {\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] num= new int[2];\n\n\t\twhile(true) {\n\t\t\tnum[0] = scan.nextInt();\n\t\t\tnum[1] = scan.nextInt();\n\t\t\tif(num[0] == 0) break;\n\t\t\tfor(int i1 = 0; i1 < num[0];i1++) {\n\t\t\t\tfor(int i2 = 0;i2 < num[1];i2++) {\n\t\t\t\t\tif(i1 == 0 | i1 == num[0]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(i2 == 0|i2 == num[1]-1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\t\n\t}\n}", "Main" ]
import java.text.*; import java.math.*; import java.util.*; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int[] num= new int[2]; while(true) { num[0] = scan.nextInt(); num[1] = scan.nextInt(); if(num[0] == 0) break; for(int i1 = 0; i1 < num[0];i1++) { for(int i2 = 0;i2 < num[1];i2++) { if(i1 == 0 | i1 == num[0]-1) { System.out.print("#"); }else if(i2 == 0|i2 == num[1]-1) { System.out.print("#"); }else System.out.print("."); } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 11, 1, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 19, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 19, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 19, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 69, 68 ], [ 78, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 78, 78 ], [ 78, 79 ], [ 78, 80 ], [ 69, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 66, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 66, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 52, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 19, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 6, 112 ], [ 112, 113 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint H;\n \tint W;\n \t\n \tfor(;;){\n \t\tH = scan.nextInt();\n \tW = scan.nextInt();\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \t\n \tfor(int y = 0; y < H; y++){\n \t\tfor(int x = 0; x < W; x++){\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n \t}\n \t\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint H;\n \tint W;\n \t\n \tfor(;;){\n \t\tH = scan.nextInt();\n \tW = scan.nextInt();\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \t\n \tfor(int y = 0; y < H; y++){\n \t\tfor(int x = 0; x < W; x++){\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n \t}\n \t\n }\n}", "Main", "public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \tint H;\n \tint W;\n \t\n \tfor(;;){\n \t\tH = scan.nextInt();\n \tW = scan.nextInt();\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \t\n \tfor(int y = 0; y < H; y++){\n \t\tfor(int x = 0; x < W; x++){\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n \t}\n \t\n }", "main", "{\n \tScanner scan = new Scanner(System.in);\n \tint H;\n \tint W;\n \t\n \tfor(;;){\n \t\tH = scan.nextInt();\n \tW = scan.nextInt();\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \t\n \tfor(int y = 0; y < H; y++){\n \t\tfor(int x = 0; x < W; x++){\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n \t}\n \t\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int H;", "H", "int W;", "W", "for(;;){\n \t\tH = scan.nextInt();\n \tW = scan.nextInt();\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \t\n \tfor(int y = 0; y < H; y++){\n \t\tfor(int x = 0; x < W; x++){\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n \t}", ";", "{\n \t\tH = scan.nextInt();\n \tW = scan.nextInt();\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \t\n \tfor(int y = 0; y < H; y++){\n \t\tfor(int x = 0; x < W; x++){\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n \t}", "{\n \t\tH = scan.nextInt();\n \tW = scan.nextInt();\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \t\n \tfor(int y = 0; y < H; y++){\n \t\tfor(int x = 0; x < W; x++){\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n \t}", "H = scan.nextInt()", "H", "scan.nextInt()", "scan.nextInt", "scan", "W = scan.nextInt()", "W", "scan.nextInt()", "scan.nextInt", "scan", "if(H == 0 && W == 0){\n \t\tbreak;\n \t}", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n \t\tbreak;\n \t}", "break;", "for(int y = 0; y < H; y++){\n \t\tfor(int x = 0; x < W; x++){\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}", "int y = 0;", "int y = 0;", "y", "0", "y < H", "y", "H", "y++", "y++", "y", "{\n \t\tfor(int x = 0; x < W; x++){\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}", "{\n \t\tfor(int x = 0; x < W; x++){\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}", "for(int x = 0; x < W; x++){\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}", "int x = 0;", "int x = 0;", "x", "0", "x < W", "x", "W", "x++", "x++", "x", "{\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}", "{\n \t\t\tif(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t}", "if(y != 0 && y != H-1 && x != 0 && x != W-1){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}", "y != 0 && y != H-1 && x != 0 && x != W-1", "x != 0", "y != 0 && y != H-1 && x != 0 && x != W-1", "y != 0", "y", "0", "y != H-1", "y", "H-1", "H", "1", "x != 0", "x", "0", "x != W-1", "x", "W-1", "W", "1", "{\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int H; int W; for(;;){ H = scan.nextInt(); W = scan.nextInt(); if(H == 0 && W == 0){ break; } for(int y = 0; y < H; y++){ for(int x = 0; x < W; x++){ if(y != 0 && y != H-1 && x != 0 && x != W-1){ System.out.print("."); }else{ System.out.print("#"); } } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 17, 30, 41, 13, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 29, 8 ], [ 29, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 9, 26 ], [ 26, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ] ]
[ "// Itp1_5_b.java\nimport java.io.*;\nimport java.lang.Integer;\npublic class Main \n{\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\nloop:\t\twhile(true) {\n\t\t\t\tString in = br.readLine() ;\n\t\t\t\tString[] hw = in.split(\" \");\n\t\t\t\tint height = Integer.parseInt(hw[0]);\n\t\t\t\tint width = Integer.parseInt(hw[1]);\n\t\t\t\tif ( height == 0 || width == 0 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor( int i = 1 ; i <= height ; i++ ) {\n\t\t\t\t\tfor( int j = 1 ; j <= width ; j++ ) {\n\t\t\t\t\t\tif ( i == 1 || i == height ) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ( j == 1 || j == width ) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.lang.Integer;", "Integer", "java.lang", "public class Main \n{\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\nloop:\t\twhile(true) {\n\t\t\t\tString in = br.readLine() ;\n\t\t\t\tString[] hw = in.split(\" \");\n\t\t\t\tint height = Integer.parseInt(hw[0]);\n\t\t\t\tint width = Integer.parseInt(hw[1]);\n\t\t\t\tif ( height == 0 || width == 0 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor( int i = 1 ; i <= height ; i++ ) {\n\t\t\t\t\tfor( int j = 1 ; j <= width ; j++ ) {\n\t\t\t\t\t\tif ( i == 1 || i == height ) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ( j == 1 || j == width ) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\nloop:\t\twhile(true) {\n\t\t\t\tString in = br.readLine() ;\n\t\t\t\tString[] hw = in.split(\" \");\n\t\t\t\tint height = Integer.parseInt(hw[0]);\n\t\t\t\tint width = Integer.parseInt(hw[1]);\n\t\t\t\tif ( height == 0 || width == 0 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor( int i = 1 ; i <= height ; i++ ) {\n\t\t\t\t\tfor( int j = 1 ; j <= width ; j++ ) {\n\t\t\t\t\t\tif ( i == 1 || i == height ) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ( j == 1 || j == width ) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}\n\t}", "main", "{\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\nloop:\t\twhile(true) {\n\t\t\t\tString in = br.readLine() ;\n\t\t\t\tString[] hw = in.split(\" \");\n\t\t\t\tint height = Integer.parseInt(hw[0]);\n\t\t\t\tint width = Integer.parseInt(hw[1]);\n\t\t\t\tif ( height == 0 || width == 0 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor( int i = 1 ; i <= height ; i++ ) {\n\t\t\t\t\tfor( int j = 1 ; j <= width ; j++ ) {\n\t\t\t\t\t\tif ( i == 1 || i == height ) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ( j == 1 || j == width ) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}\n\t}", "try {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\nloop:\t\twhile(true) {\n\t\t\t\tString in = br.readLine() ;\n\t\t\t\tString[] hw = in.split(\" \");\n\t\t\t\tint height = Integer.parseInt(hw[0]);\n\t\t\t\tint width = Integer.parseInt(hw[1]);\n\t\t\t\tif ( height == 0 || width == 0 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor( int i = 1 ; i <= height ; i++ ) {\n\t\t\t\t\tfor( int j = 1 ; j <= width ; j++ ) {\n\t\t\t\t\t\tif ( i == 1 || i == height ) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ( j == 1 || j == width ) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}", "catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}", "IOException e", "{\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}", "System.out.println(\"??¨??????????????????????????????\")", "System.out.println", "System.out", "System", "System.out", "\"??¨??????????????????????????????\"", "{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\nloop:\t\twhile(true) {\n\t\t\t\tString in = br.readLine() ;\n\t\t\t\tString[] hw = in.split(\" \");\n\t\t\t\tint height = Integer.parseInt(hw[0]);\n\t\t\t\tint width = Integer.parseInt(hw[1]);\n\t\t\t\tif ( height == 0 || width == 0 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor( int i = 1 ; i <= height ; i++ ) {\n\t\t\t\t\tfor( int j = 1 ; j <= width ; j++ ) {\n\t\t\t\t\t\tif ( i == 1 || i == height ) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ( j == 1 || j == width ) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String[] args", "args", "public class Main \n{\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\nloop:\t\twhile(true) {\n\t\t\t\tString in = br.readLine() ;\n\t\t\t\tString[] hw = in.split(\" \");\n\t\t\t\tint height = Integer.parseInt(hw[0]);\n\t\t\t\tint width = Integer.parseInt(hw[1]);\n\t\t\t\tif ( height == 0 || width == 0 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor( int i = 1 ; i <= height ; i++ ) {\n\t\t\t\t\tfor( int j = 1 ; j <= width ; j++ ) {\n\t\t\t\t\t\tif ( i == 1 || i == height ) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ( j == 1 || j == width ) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}\n\t}\n}", "public class Main \n{\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\nloop:\t\twhile(true) {\n\t\t\t\tString in = br.readLine() ;\n\t\t\t\tString[] hw = in.split(\" \");\n\t\t\t\tint height = Integer.parseInt(hw[0]);\n\t\t\t\tint width = Integer.parseInt(hw[1]);\n\t\t\t\tif ( height == 0 || width == 0 ) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor( int i = 1 ; i <= height ; i++ ) {\n\t\t\t\t\tfor( int j = 1 ; j <= width ; j++ ) {\n\t\t\t\t\t\tif ( i == 1 || i == height ) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tif ( j == 1 || j == width ) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}\n\t}\n}", "Main" ]
// Itp1_5_b.java import java.io.*; import java.lang.Integer; public class Main { public static void main(String[] args) { try { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); loop: while(true) { String in = br.readLine() ; String[] hw = in.split(" "); int height = Integer.parseInt(hw[0]); int width = Integer.parseInt(hw[1]); if ( height == 0 || width == 0 ) { break; } for( int i = 1 ; i <= height ; i++ ) { for( int j = 1 ; j <= width ; j++ ) { if ( i == 1 || i == height ) { System.out.print("#"); } else { if ( j == 1 || j == width ) { System.out.print("#"); } else { System.out.print("."); } } } System.out.println(""); } System.out.println(""); } } catch ( IOException e ) { System.out.println("??¨??????????????????????????????"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 20, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 143, 5 ], [ 143, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 17, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 39 ], [ 39, 40 ], [ 39, 41 ], [ 14, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 14, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 75, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 74, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 64, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 105, 106 ], [ 106, 107 ], [ 97, 108 ], [ 109, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 110, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 110, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 96, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 14, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 6, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "import java.io.*;\n\npublic class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n StringBuilder sb = new StringBuilder();\n\n if( h == 0 && w == 0)break;\n for(int i=0; i<h; i++){\n if(i==0 || i==h-1){\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }else{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }\n }\n System.out.println(sb);\n }\n\n }\n}", "import java.io.*;", "io.*", "java", "public class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n StringBuilder sb = new StringBuilder();\n\n if( h == 0 && w == 0)break;\n for(int i=0; i<h; i++){\n if(i==0 || i==h-1){\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }else{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }\n }\n System.out.println(sb);\n }\n\n }\n}", "Main", "public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n StringBuilder sb = new StringBuilder();\n\n if( h == 0 && w == 0)break;\n for(int i=0; i<h; i++){\n if(i==0 || i==h-1){\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }else{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }\n }\n System.out.println(sb);\n }\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n StringBuilder sb = new StringBuilder();\n\n if( h == 0 && w == 0)break;\n for(int i=0; i<h; i++){\n if(i==0 || i==h-1){\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }else{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }\n }\n System.out.println(sb);\n }\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n StringBuilder sb = new StringBuilder();\n\n if( h == 0 && w == 0)break;\n for(int i=0; i<h; i++){\n if(i==0 || i==h-1){\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }else{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }\n }\n System.out.println(sb);\n }", "true", "{\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n StringBuilder sb = new StringBuilder();\n\n if( h == 0 && w == 0)break;\n for(int i=0; i<h; i++){\n if(i==0 || i==h-1){\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }else{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }\n }\n System.out.println(sb);\n }", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int h = Integer.parseInt(str[0]);", "h", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "int w = Integer.parseInt(str[1]);", "w", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "if( h == 0 && w == 0)break;", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "for(int i=0; i<h; i++){\n if(i==0 || i==h-1){\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }else{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<h", "i", "h", "i++", "i++", "i", "{\n if(i==0 || i==h-1){\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }else{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }\n }", "{\n if(i==0 || i==h-1){\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }else{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }\n }", "if(i==0 || i==h-1){\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }else{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }", "i==0 || i==h-1", "i==0", "i", "0", "i==h-1", "i", "h-1", "h", "1", "{\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }", "for(int k=0; k<w; k++){\n sb.append(\"#\");\n }", "int k=0;", "int k=0;", "k", "0", "k<w", "k", "w", "k++", "k++", "k", "{\n sb.append(\"#\");\n }", "{\n sb.append(\"#\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }", "for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }", "int k=0;", "int k=0;", "k", "0", "k<w", "k", "w", "k++", "k++", "k", "{\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }", "{\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }", "if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }", "k==0 || k==w-1", "k==0", "k", "0", "k==w-1", "k", "w-1", "w", "1", "{\n sb.append(\"#\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "{\n sb.append(\".\");\n }", "sb.append(\".\")", "sb.append", "sb", "\".\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "System.out.println(sb)", "System.out.println", "System.out", "System", "System.out", "sb", "String[]args", "args", "public class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n StringBuilder sb = new StringBuilder();\n\n if( h == 0 && w == 0)break;\n for(int i=0; i<h; i++){\n if(i==0 || i==h-1){\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }else{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }\n }\n System.out.println(sb);\n }\n\n }\n}", "public class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n StringBuilder sb = new StringBuilder();\n\n if( h == 0 && w == 0)break;\n for(int i=0; i<h; i++){\n if(i==0 || i==h-1){\n for(int k=0; k<w; k++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n }else{\n for(int k=0; k<w; k++){\n if(k==0 || k==w-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n }\n }\n System.out.println(sb);\n }\n\n }\n}", "Main" ]
import java.io.*; public class Main{ public static void main(String[]args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ String[] str = br.readLine().split(" "); int h = Integer.parseInt(str[0]); int w = Integer.parseInt(str[1]); StringBuilder sb = new StringBuilder(); if( h == 0 && w == 0)break; for(int i=0; i<h; i++){ if(i==0 || i==h-1){ for(int k=0; k<w; k++){ sb.append("#"); } sb.append("\n"); }else{ for(int k=0; k<w; k++){ if(k==0 || k==w-1){ sb.append("#"); }else{ sb.append("."); } } sb.append("\n"); } } System.out.println(sb); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 18, 4, 18, 13, 17, 17, 41, 13, 4, 18, 13, 18, 4, 18, 13, 17, 17, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 8, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 2, 13, 17, 2, 13, 2, 13, 17, 17, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 126, 11 ], [ 126, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 28, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 28, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 28, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 73, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 92, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 91, 111 ], [ 91, 112 ], [ 72, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 28, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 12, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String readValue;\n while ((readValue = reader.readLine()) != null) {\n int h = Integer.parseInt(readValue.split(\" \")[0]);\n int w = Integer.parseInt(readValue.split(\" \")[1]);\n if (h == 0 && w == 0)\n break;\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String readValue;\n while ((readValue = reader.readLine()) != null) {\n int h = Integer.parseInt(readValue.split(\" \")[0]);\n int w = Integer.parseInt(readValue.split(\" \")[1]);\n if (h == 0 && w == 0)\n break;\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String readValue;\n while ((readValue = reader.readLine()) != null) {\n int h = Integer.parseInt(readValue.split(\" \")[0]);\n int w = Integer.parseInt(readValue.split(\" \")[1]);\n if (h == 0 && w == 0)\n break;\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String readValue;\n while ((readValue = reader.readLine()) != null) {\n int h = Integer.parseInt(readValue.split(\" \")[0]);\n int w = Integer.parseInt(readValue.split(\" \")[1]);\n if (h == 0 && w == 0)\n break;\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String readValue;", "readValue", "while ((readValue = reader.readLine()) != null) {\n int h = Integer.parseInt(readValue.split(\" \")[0]);\n int w = Integer.parseInt(readValue.split(\" \")[1]);\n if (h == 0 && w == 0)\n break;\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }\n System.out.println();\n }\n System.out.println();\n }", "(readValue = reader.readLine()) != null", "(readValue = reader.readLine())", "readValue", "reader.readLine()", "reader.readLine", "reader", "null", "{\n int h = Integer.parseInt(readValue.split(\" \")[0]);\n int w = Integer.parseInt(readValue.split(\" \")[1]);\n if (h == 0 && w == 0)\n break;\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }\n System.out.println();\n }\n System.out.println();\n }", "int h = Integer.parseInt(readValue.split(\" \")[0]);", "h", "Integer.parseInt(readValue.split(\" \")[0])", "Integer.parseInt", "Integer", "readValue.split(\" \")[0]", "readValue.split(\" \")", "readValue.split", "readValue", "\" \"", "0", "int w = Integer.parseInt(readValue.split(\" \")[1]);", "w", "Integer.parseInt(readValue.split(\" \")[1])", "Integer.parseInt", "Integer", "readValue.split(\" \")[1]", "readValue.split(\" \")", "readValue.split", "readValue", "\" \"", "1", "if (h == 0 && w == 0)\n break;", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n for (int j = 0; j < w; j++) {\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }\n System.out.println();\n }", "{\n for (int j = 0; j < w; j++) {\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }\n System.out.println();\n }", "for (int j = 0; j < w; j++) {\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }", "{\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }", "System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\")", "System.out.print", "System.out", "System", "System.out", "(i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\"", "(i == 0 || i == h-1) || (j == 0 || j == w-1)", "(i == 0 || i == h-1)", "i == 0", "i", "0", "i == h-1", "i", "h-1", "h", "1", "(j == 0 || j == w-1)", "j == 0", "j", "0", "j == w-1", "j", "w-1", "w", "1", "\"#\"", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String readValue;\n while ((readValue = reader.readLine()) != null) {\n int h = Integer.parseInt(readValue.split(\" \")[0]);\n int w = Integer.parseInt(readValue.split(\" \")[1]);\n if (h == 0 && w == 0)\n break;\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n String readValue;\n while ((readValue = reader.readLine()) != null) {\n int h = Integer.parseInt(readValue.split(\" \")[0]);\n int w = Integer.parseInt(readValue.split(\" \")[1]);\n if (h == 0 && w == 0)\n break;\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? \"#\": \".\");\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String readValue; while ((readValue = reader.readLine()) != null) { int h = Integer.parseInt(readValue.split(" ")[0]); int w = Integer.parseInt(readValue.split(" ")[1]); if (h == 0 && w == 0) break; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { System.out.print((i == 0 || i == h-1) || (j == 0 || j == w-1) ? "#": "."); } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 14, 2, 2, 2, 2, 17, 13, 2, 13, 17, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 30, 4, 18, 18, 13, 13, 17, 0, 13, 17, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 20, 41, 13, 20, 42, 2, 13, 17, 30, 11, 1, 0, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 4, 18, 13, 2, 13, 17, 4, 18, 13, 13, 4, 18, 13, 13, 14, 2, 4, 13, 13, 13, 17, 30, 3, 14, 2, 4, 13, 13, 13, 17, 30, 4, 18, 13, 17, 0, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 2, 17, 2, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 2, 2, 17, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 4, 18, 13, 2, 17, 2, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 2, 4, 18, 13, 2, 2, 17, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 298, 8 ], [ 298, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 18, 17 ], [ 25, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 18, 22 ], [ 22, 23 ], [ 22, 24 ], [ 25, 25 ], [ 25, 26 ], [ 25, 27 ], [ 18, 28 ], [ 28, 29 ], [ 28, 30 ], [ 15, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 15, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 35, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 47, 54 ], [ 54, 55 ], [ 54, 56 ], [ 11, 57 ], [ 57, 58 ], [ 9, 59 ], [ 59, 60 ], [ 9, 61 ], [ 61, 62 ], [ 298, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 65, 72 ], [ 72, 73 ], [ 72, 74 ], [ 65, 75 ], [ 75, 76 ], [ 75, 77 ], [ 65, 78 ], [ 78, 79 ], [ 78, 80 ], [ 65, 81 ], [ 81, 82 ], [ 81, 83 ], [ 65, 84 ], [ 84, 85 ], [ 84, 86 ], [ 65, 87 ], [ 87, 88 ], [ 87, 89 ], [ 65, 90 ], [ 90, 91 ], [ 90, 92 ], [ 65, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 98, 109 ], [ 110, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 115, 116 ], [ 97, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 97, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 134, 135 ], [ 134, 136 ], [ 97, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 97, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 97, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 147, 150 ], [ 146, 151 ], [ 145, 152 ], [ 152, 153 ], [ 145, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 156, 159 ], [ 155, 160 ], [ 154, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 97, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 168, 170 ], [ 65, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 178, 182 ], [ 171, 183 ], [ 183, 184 ], [ 184, 185 ], [ 171, 186 ], [ 187, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 188, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 196, 197 ], [ 195, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 200, 202 ], [ 188, 203 ], [ 203, 204 ], [ 204, 205 ], [ 188, 206 ], [ 207, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 208, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 216, 217 ], [ 215, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 208, 223 ], [ 223, 224 ], [ 224, 225 ], [ 208, 226 ], [ 227, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 229, 233 ], [ 233, 234 ], [ 233, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 236, 239 ], [ 239, 240 ], [ 239, 241 ], [ 241, 242 ], [ 241, 243 ], [ 235, 244 ], [ 228, 245 ], [ 245, 246 ], [ 246, 247 ], [ 247, 248 ], [ 248, 249 ], [ 248, 250 ], [ 246, 251 ], [ 228, 252 ], [ 252, 253 ], [ 253, 254 ], [ 254, 255 ], [ 254, 256 ], [ 253, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 260, 261 ], [ 261, 262 ], [ 260, 263 ], [ 263, 264 ], [ 264, 265 ], [ 264, 266 ], [ 263, 267 ], [ 259, 268 ], [ 252, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 272, 274 ], [ 270, 275 ], [ 252, 276 ], [ 276, 277 ], [ 277, 278 ], [ 278, 279 ], [ 279, 280 ], [ 279, 281 ], [ 277, 282 ], [ 207, 283 ], [ 283, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 283, 288 ], [ 187, 289 ], [ 289, 290 ], [ 290, 291 ], [ 291, 292 ], [ 291, 293 ], [ 289, 294 ], [ 63, 295 ], [ 295, 296 ], [ 0, 297 ], [ 297, 298 ], [ 297, 299 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\t/**\n\t * ????????????????????????\n\t * @param h\n\t * @param w\n\t * @return\n\t */\n\tpublic static int exception(int h,int w){\n\t\tint result = 0;\n\t\tif(3 <= h && h <= 300 && 3 <= w && w <= 300){ //??????????????????(??\\????¶???????)\n\t\t\tresult = 2;\n\t\t}\n\t\telse if(h == 0 && w == 0){\n\t\t\tresult = 1; //0,0??\\?????§??\\???????????????\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"3~300????????§??\\?????????????????????.???????????????.\");\n\t\t\tresult = 0;\n\t\t}\n\t\treturn result;\n\t}\n\tpublic static void main(String[] args) {\n\t\t/**\n\t\t * ?????°?????£?¨?\n\t\t */\n\t\tint a = 0;\n\t\tint t = 0, inc = 0;\n\t\tint h = 0,w = 0; //height:h width:w\n\t\tint x = 0;\n\t\t/**\n\t\t * ???????????£?¨?\n\t\t */\n\t\tArrayList<String> st = new ArrayList<String>();\n\t\tArrayList<Integer> parse = new ArrayList<Integer>();\n\t\t/**\n\t\t * ????¨???????????????\\???\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(a == 0){\n\t\tfor (t = 0; t < 2; t++){ //??´??°2???????????????\n\t\tst.add(scan.next());\n\t\t}\n\t\th = Integer.parseInt(st.get(inc));\n\t\tw = Integer.parseInt(st.get(inc+1));\n\t\tparse.add(h);\n\t\tparse.add(w);\n\t\tif(exception(h,w) == 1){ //h=w=0?????¨??????????????????????????????\n\t\t\tbreak;\n\t\t}\n\t\telse if(exception(h,w) == 0){ //??????????????????????????????.\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tinc = inc + 2; //???????????§?????°\n\t\t}\n\t\t/**\n\t\t * ??????\n\t\t */\n\t\tfor(int n= 1; n < ((parse.size())/2) ; ++n){ //???????????°??????\n\t\t for(int i = 0; i < parse.get(2*(n-1)); ++i){ //hight\n\t\t\tfor(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t/**\n\t * ????????????????????????\n\t * @param h\n\t * @param w\n\t * @return\n\t */\n\tpublic static int exception(int h,int w){\n\t\tint result = 0;\n\t\tif(3 <= h && h <= 300 && 3 <= w && w <= 300){ //??????????????????(??\\????¶???????)\n\t\t\tresult = 2;\n\t\t}\n\t\telse if(h == 0 && w == 0){\n\t\t\tresult = 1; //0,0??\\?????§??\\???????????????\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"3~300????????§??\\?????????????????????.???????????????.\");\n\t\t\tresult = 0;\n\t\t}\n\t\treturn result;\n\t}\n\tpublic static void main(String[] args) {\n\t\t/**\n\t\t * ?????°?????£?¨?\n\t\t */\n\t\tint a = 0;\n\t\tint t = 0, inc = 0;\n\t\tint h = 0,w = 0; //height:h width:w\n\t\tint x = 0;\n\t\t/**\n\t\t * ???????????£?¨?\n\t\t */\n\t\tArrayList<String> st = new ArrayList<String>();\n\t\tArrayList<Integer> parse = new ArrayList<Integer>();\n\t\t/**\n\t\t * ????¨???????????????\\???\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(a == 0){\n\t\tfor (t = 0; t < 2; t++){ //??´??°2???????????????\n\t\tst.add(scan.next());\n\t\t}\n\t\th = Integer.parseInt(st.get(inc));\n\t\tw = Integer.parseInt(st.get(inc+1));\n\t\tparse.add(h);\n\t\tparse.add(w);\n\t\tif(exception(h,w) == 1){ //h=w=0?????¨??????????????????????????????\n\t\t\tbreak;\n\t\t}\n\t\telse if(exception(h,w) == 0){ //??????????????????????????????.\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tinc = inc + 2; //???????????§?????°\n\t\t}\n\t\t/**\n\t\t * ??????\n\t\t */\n\t\tfor(int n= 1; n < ((parse.size())/2) ; ++n){ //???????????°??????\n\t\t for(int i = 0; i < parse.get(2*(n-1)); ++i){ //hight\n\t\t\tfor(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\t}\n}", "Main", "/**\n\t * ????????????????????????\n\t * @param h\n\t * @param w\n\t * @return\n\t */\n\tpublic static int exception(int h,int w){\n\t\tint result = 0;\n\t\tif(3 <= h && h <= 300 && 3 <= w && w <= 300){ //??????????????????(??\\????¶???????)\n\t\t\tresult = 2;\n\t\t}\n\t\telse if(h == 0 && w == 0){\n\t\t\tresult = 1; //0,0??\\?????§??\\???????????????\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"3~300????????§??\\?????????????????????.???????????????.\");\n\t\t\tresult = 0;\n\t\t}\n\t\treturn result;\n\t}", "exception", "{\n\t\tint result = 0;\n\t\tif(3 <= h && h <= 300 && 3 <= w && w <= 300){ //??????????????????(??\\????¶???????)\n\t\t\tresult = 2;\n\t\t}\n\t\telse if(h == 0 && w == 0){\n\t\t\tresult = 1; //0,0??\\?????§??\\???????????????\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"3~300????????§??\\?????????????????????.???????????????.\");\n\t\t\tresult = 0;\n\t\t}\n\t\treturn result;\n\t}", "int result = 0;", "result", "0", "if(3 <= h && h <= 300 && 3 <= w && w <= 300){ //??????????????????(??\\????¶???????)\n\t\t\tresult = 2;\n\t\t}\n\t\telse if(h == 0 && w == 0){\n\t\t\tresult = 1; //0,0??\\?????§??\\???????????????\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"3~300????????§??\\?????????????????????.???????????????.\");\n\t\t\tresult = 0;\n\t\t}", "3 <= h && h <= 300 && 3 <= w && w <= 300", "3 <= w", "3 <= h && h <= 300 && 3 <= w && w <= 300", "3 <= h", "3", "h", "h <= 300", "h", "300", "3 <= w", "3", "w", "w <= 300", "w", "300", "{ //??????????????????(??\\????¶???????)\n\t\t\tresult = 2;\n\t\t}", "result = 2", "result", "2", "if(h == 0 && w == 0){\n\t\t\tresult = 1; //0,0??\\?????§??\\???????????????\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"3~300????????§??\\?????????????????????.???????????????.\");\n\t\t\tresult = 0;\n\t\t}", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n\t\t\tresult = 1; //0,0??\\?????§??\\???????????????\n\t\t}", "result = 1", "result", "1", "{\n\t\t\tSystem.out.println(\"3~300????????§??\\?????????????????????.???????????????.\");\n\t\t\tresult = 0;\n\t\t}", "System.out.println(\"3~300????????§??\\?????????????????????.???????????????.\")", "System.out.println", "System.out", "System", "System.out", "\"3~300????????§??\\?????????????????????.???????????????.\"", "result = 0", "result", "0", "return result;", "result", "int h", "h", "int w", "w", "public static void main(String[] args) {\n\t\t/**\n\t\t * ?????°?????£?¨?\n\t\t */\n\t\tint a = 0;\n\t\tint t = 0, inc = 0;\n\t\tint h = 0,w = 0; //height:h width:w\n\t\tint x = 0;\n\t\t/**\n\t\t * ???????????£?¨?\n\t\t */\n\t\tArrayList<String> st = new ArrayList<String>();\n\t\tArrayList<Integer> parse = new ArrayList<Integer>();\n\t\t/**\n\t\t * ????¨???????????????\\???\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(a == 0){\n\t\tfor (t = 0; t < 2; t++){ //??´??°2???????????????\n\t\tst.add(scan.next());\n\t\t}\n\t\th = Integer.parseInt(st.get(inc));\n\t\tw = Integer.parseInt(st.get(inc+1));\n\t\tparse.add(h);\n\t\tparse.add(w);\n\t\tif(exception(h,w) == 1){ //h=w=0?????¨??????????????????????????????\n\t\t\tbreak;\n\t\t}\n\t\telse if(exception(h,w) == 0){ //??????????????????????????????.\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tinc = inc + 2; //???????????§?????°\n\t\t}\n\t\t/**\n\t\t * ??????\n\t\t */\n\t\tfor(int n= 1; n < ((parse.size())/2) ; ++n){ //???????????°??????\n\t\t for(int i = 0; i < parse.get(2*(n-1)); ++i){ //hight\n\t\t\tfor(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\t}", "main", "{\n\t\t/**\n\t\t * ?????°?????£?¨?\n\t\t */\n\t\tint a = 0;\n\t\tint t = 0, inc = 0;\n\t\tint h = 0,w = 0; //height:h width:w\n\t\tint x = 0;\n\t\t/**\n\t\t * ???????????£?¨?\n\t\t */\n\t\tArrayList<String> st = new ArrayList<String>();\n\t\tArrayList<Integer> parse = new ArrayList<Integer>();\n\t\t/**\n\t\t * ????¨???????????????\\???\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(a == 0){\n\t\tfor (t = 0; t < 2; t++){ //??´??°2???????????????\n\t\tst.add(scan.next());\n\t\t}\n\t\th = Integer.parseInt(st.get(inc));\n\t\tw = Integer.parseInt(st.get(inc+1));\n\t\tparse.add(h);\n\t\tparse.add(w);\n\t\tif(exception(h,w) == 1){ //h=w=0?????¨??????????????????????????????\n\t\t\tbreak;\n\t\t}\n\t\telse if(exception(h,w) == 0){ //??????????????????????????????.\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tinc = inc + 2; //???????????§?????°\n\t\t}\n\t\t/**\n\t\t * ??????\n\t\t */\n\t\tfor(int n= 1; n < ((parse.size())/2) ; ++n){ //???????????°??????\n\t\t for(int i = 0; i < parse.get(2*(n-1)); ++i){ //hight\n\t\t\tfor(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\t}", "int a = 0;", "a", "0", "int t = 0", "t", "0", "inc = 0;", "inc", "0", "int h = 0", "h", "0", "w = 0;", "w", "0", "int x = 0;", "x", "0", "ArrayList<String> st = new ArrayList<String>();", "st", "new ArrayList<String>()", "ArrayList<Integer> parse = new ArrayList<Integer>();", "parse", "new ArrayList<Integer>()", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(a == 0){\n\t\tfor (t = 0; t < 2; t++){ //??´??°2???????????????\n\t\tst.add(scan.next());\n\t\t}\n\t\th = Integer.parseInt(st.get(inc));\n\t\tw = Integer.parseInt(st.get(inc+1));\n\t\tparse.add(h);\n\t\tparse.add(w);\n\t\tif(exception(h,w) == 1){ //h=w=0?????¨??????????????????????????????\n\t\t\tbreak;\n\t\t}\n\t\telse if(exception(h,w) == 0){ //??????????????????????????????.\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tinc = inc + 2; //???????????§?????°\n\t\t}", "a == 0", "a", "0", "{\n\t\tfor (t = 0; t < 2; t++){ //??´??°2???????????????\n\t\tst.add(scan.next());\n\t\t}\n\t\th = Integer.parseInt(st.get(inc));\n\t\tw = Integer.parseInt(st.get(inc+1));\n\t\tparse.add(h);\n\t\tparse.add(w);\n\t\tif(exception(h,w) == 1){ //h=w=0?????¨??????????????????????????????\n\t\t\tbreak;\n\t\t}\n\t\telse if(exception(h,w) == 0){ //??????????????????????????????.\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tinc = inc + 2; //???????????§?????°\n\t\t}", "for (t = 0; t < 2; t++){ //??´??°2???????????????\n\t\tst.add(scan.next());\n\t\t}", "t = 0;", "t = 0", "t", "0", "t < 2", "t", "2", "t++", "t++", "t", "{ //??´??°2???????????????\n\t\tst.add(scan.next());\n\t\t}", "{ //??´??°2???????????????\n\t\tst.add(scan.next());\n\t\t}", "st.add(scan.next())", "st.add", "st", "scan.next()", "scan.next", "scan", "h = Integer.parseInt(st.get(inc))", "h", "Integer.parseInt(st.get(inc))", "Integer.parseInt", "Integer", "st.get(inc)", "st.get", "st", "inc", "w = Integer.parseInt(st.get(inc+1))", "w", "Integer.parseInt(st.get(inc+1))", "Integer.parseInt", "Integer", "st.get(inc+1)", "st.get", "st", "inc+1", "inc", "1", "parse.add(h)", "parse.add", "parse", "h", "parse.add(w)", "parse.add", "parse", "w", "if(exception(h,w) == 1){ //h=w=0?????¨??????????????????????????????\n\t\t\tbreak;\n\t\t}\n\t\telse if(exception(h,w) == 0){ //??????????????????????????????.\n\t\t\tSystem.exit(0);\n\t\t}", "exception(h,w) == 1", "exception(h,w)", "exception", "h", "w", "1", "{ //h=w=0?????¨??????????????????????????????\n\t\t\tbreak;\n\t\t}", "break;", "if(exception(h,w) == 0){ //??????????????????????????????.\n\t\t\tSystem.exit(0);\n\t\t}", "exception(h,w) == 0", "exception(h,w)", "exception", "h", "w", "0", "{ //??????????????????????????????.\n\t\t\tSystem.exit(0);\n\t\t}", "System.exit(0)", "System.exit", "System", "0", "inc = inc + 2", "inc", "inc + 2", "inc", "2", "for(int n= 1; n < ((parse.size())/2) ; ++n){ //???????????°??????\n\t\t for(int i = 0; i < parse.get(2*(n-1)); ++i){ //hight\n\t\t\tfor(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}", "int n= 1;", "int n= 1;", "n", "1", "n < ((parse.size())/2)", "n", "((parse.size())/2)", "(parse.size())", "parse.size", "parse", "2", "++n", "++n", "n", "{ //???????????°??????\n\t\t for(int i = 0; i < parse.get(2*(n-1)); ++i){ //hight\n\t\t\tfor(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}", "{ //???????????°??????\n\t\t for(int i = 0; i < parse.get(2*(n-1)); ++i){ //hight\n\t\t\tfor(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}", "for(int i = 0; i < parse.get(2*(n-1)); ++i){ //hight\n\t\t\tfor(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t }", "int i = 0;", "int i = 0;", "i", "0", "i < parse.get(2*(n-1))", "i", "parse.get(2*(n-1))", "parse.get", "parse", "2*(n-1)", "2", "(n-1)", "n", "1", "++i", "++i", "i", "{ //hight\n\t\t\tfor(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t }", "{ //hight\n\t\t\tfor(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t }", "for(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < parse.get(2*n-1)", "j", "parse.get(2*n-1)", "parse.get", "parse", "2*n-1", "2*n", "2", "n", "1", "++j", "++j", "j", "{ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}", "{ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}", "if(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "i == 0 || i == parse.get(2*(n-1))-1", "i == 0", "i", "0", "i == parse.get(2*(n-1))-1", "i", "parse.get(2*(n-1))-1", "parse.get(2*(n-1))", "parse.get", "parse", "2*(n-1)", "2", "(n-1)", "n", "1", "1", "{\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "j == 0 || j == parse.get(2*n-1)-1", "j == 0", "j", "0", "j == parse.get(2*n-1)-1", "j", "parse.get(2*n-1)-1", "parse.get(2*n-1)", "parse.get", "parse", "2*n-1", "2*n", "2", "n", "1", "1", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n\t/**\n\t * ????????????????????????\n\t * @param h\n\t * @param w\n\t * @return\n\t */\n\tpublic static int exception(int h,int w){\n\t\tint result = 0;\n\t\tif(3 <= h && h <= 300 && 3 <= w && w <= 300){ //??????????????????(??\\????¶???????)\n\t\t\tresult = 2;\n\t\t}\n\t\telse if(h == 0 && w == 0){\n\t\t\tresult = 1; //0,0??\\?????§??\\???????????????\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"3~300????????§??\\?????????????????????.???????????????.\");\n\t\t\tresult = 0;\n\t\t}\n\t\treturn result;\n\t}\n\tpublic static void main(String[] args) {\n\t\t/**\n\t\t * ?????°?????£?¨?\n\t\t */\n\t\tint a = 0;\n\t\tint t = 0, inc = 0;\n\t\tint h = 0,w = 0; //height:h width:w\n\t\tint x = 0;\n\t\t/**\n\t\t * ???????????£?¨?\n\t\t */\n\t\tArrayList<String> st = new ArrayList<String>();\n\t\tArrayList<Integer> parse = new ArrayList<Integer>();\n\t\t/**\n\t\t * ????¨???????????????\\???\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(a == 0){\n\t\tfor (t = 0; t < 2; t++){ //??´??°2???????????????\n\t\tst.add(scan.next());\n\t\t}\n\t\th = Integer.parseInt(st.get(inc));\n\t\tw = Integer.parseInt(st.get(inc+1));\n\t\tparse.add(h);\n\t\tparse.add(w);\n\t\tif(exception(h,w) == 1){ //h=w=0?????¨??????????????????????????????\n\t\t\tbreak;\n\t\t}\n\t\telse if(exception(h,w) == 0){ //??????????????????????????????.\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tinc = inc + 2; //???????????§?????°\n\t\t}\n\t\t/**\n\t\t * ??????\n\t\t */\n\t\tfor(int n= 1; n < ((parse.size())/2) ; ++n){ //???????????°??????\n\t\t for(int i = 0; i < parse.get(2*(n-1)); ++i){ //hight\n\t\t\tfor(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\t}\n}", "public class Main {\n\t/**\n\t * ????????????????????????\n\t * @param h\n\t * @param w\n\t * @return\n\t */\n\tpublic static int exception(int h,int w){\n\t\tint result = 0;\n\t\tif(3 <= h && h <= 300 && 3 <= w && w <= 300){ //??????????????????(??\\????¶???????)\n\t\t\tresult = 2;\n\t\t}\n\t\telse if(h == 0 && w == 0){\n\t\t\tresult = 1; //0,0??\\?????§??\\???????????????\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"3~300????????§??\\?????????????????????.???????????????.\");\n\t\t\tresult = 0;\n\t\t}\n\t\treturn result;\n\t}\n\tpublic static void main(String[] args) {\n\t\t/**\n\t\t * ?????°?????£?¨?\n\t\t */\n\t\tint a = 0;\n\t\tint t = 0, inc = 0;\n\t\tint h = 0,w = 0; //height:h width:w\n\t\tint x = 0;\n\t\t/**\n\t\t * ???????????£?¨?\n\t\t */\n\t\tArrayList<String> st = new ArrayList<String>();\n\t\tArrayList<Integer> parse = new ArrayList<Integer>();\n\t\t/**\n\t\t * ????¨???????????????\\???\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(a == 0){\n\t\tfor (t = 0; t < 2; t++){ //??´??°2???????????????\n\t\tst.add(scan.next());\n\t\t}\n\t\th = Integer.parseInt(st.get(inc));\n\t\tw = Integer.parseInt(st.get(inc+1));\n\t\tparse.add(h);\n\t\tparse.add(w);\n\t\tif(exception(h,w) == 1){ //h=w=0?????¨??????????????????????????????\n\t\t\tbreak;\n\t\t}\n\t\telse if(exception(h,w) == 0){ //??????????????????????????????.\n\t\t\tSystem.exit(0);\n\t\t}\n\t\tinc = inc + 2; //???????????§?????°\n\t\t}\n\t\t/**\n\t\t * ??????\n\t\t */\n\t\tfor(int n= 1; n < ((parse.size())/2) ; ++n){ //???????????°??????\n\t\t for(int i = 0; i < parse.get(2*(n-1)); ++i){ //hight\n\t\t\tfor(int j = 0; j < parse.get(2*n-1); ++j){ //width\n\t\t\t\tif(i == 0 || i == parse.get(2*(n-1))-1){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse if(j == 0 || j == parse.get(2*n-1)-1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t }\n\t\t System.out.println(\"\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { /** * ???????????????????????? * @param h * @param w * @return */ public static int exception(int h,int w){ int result = 0; if(3 <= h && h <= 300 && 3 <= w && w <= 300){ //??????????????????(??\????¶???????) result = 2; } else if(h == 0 && w == 0){ result = 1; //0,0??\?????§??\??????????????? } else{ System.out.println("3~300????????§??\?????????????????????.???????????????."); result = 0; } return result; } public static void main(String[] args) { /** * ?????°?????£?¨? */ int a = 0; int t = 0, inc = 0; int h = 0,w = 0; //height:h width:w int x = 0; /** * ???????????£?¨? */ ArrayList<String> st = new ArrayList<String>(); ArrayList<Integer> parse = new ArrayList<Integer>(); /** * ????¨???????????????\??? */ Scanner scan = new Scanner(System.in); while(a == 0){ for (t = 0; t < 2; t++){ //??´??°2??????????????? st.add(scan.next()); } h = Integer.parseInt(st.get(inc)); w = Integer.parseInt(st.get(inc+1)); parse.add(h); parse.add(w); if(exception(h,w) == 1){ //h=w=0?????¨?????????????????????????????? break; } else if(exception(h,w) == 0){ //??????????????????????????????. System.exit(0); } inc = inc + 2; //???????????§?????° } /** * ?????? */ for(int n= 1; n < ((parse.size())/2) ; ++n){ //???????????°?????? for(int i = 0; i < parse.get(2*(n-1)); ++i){ //hight for(int j = 0; j < parse.get(2*n-1); ++j){ //width if(i == 0 || i == parse.get(2*(n-1))-1){ System.out.print("#"); } else if(j == 0 || j == parse.get(2*n-1)-1){ System.out.print("#"); } else{ System.out.print("."); } } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 8, 2, 2, 13, 17, 2, 13, 2, 13, 17, 17, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 19, 25 ], [ 18, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 26, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 38, 40 ], [ 26, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 46, 48 ], [ 26, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 26, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 71, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 84, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 84, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 107, 117 ], [ 107, 118 ], [ 70, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 26, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 9, 131 ], [ 131, 132 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nclass Main {\n public static void main(String[] args) throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = null;\n while((line = br.readLine()) != null){\n \tString lines[] = line.split(\" \");\n \tint height = Integer.parseInt(lines[0]);\n \tint width = Integer.parseInt(lines[1]);\n\n \tif(height==0||width==0)break;\n \tfor(int i=0;i<height;i++){\n \t\tfor(int j=0; j<width; j++){\n \t\t\tif(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "class Main {\n public static void main(String[] args) throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = null;\n while((line = br.readLine()) != null){\n \tString lines[] = line.split(\" \");\n \tint height = Integer.parseInt(lines[0]);\n \tint width = Integer.parseInt(lines[1]);\n\n \tif(height==0||width==0)break;\n \tfor(int i=0;i<height;i++){\n \t\tfor(int j=0; j<width; j++){\n \t\t\tif(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = null;\n while((line = br.readLine()) != null){\n \tString lines[] = line.split(\" \");\n \tint height = Integer.parseInt(lines[0]);\n \tint width = Integer.parseInt(lines[1]);\n\n \tif(height==0||width==0)break;\n \tfor(int i=0;i<height;i++){\n \t\tfor(int j=0; j<width; j++){\n \t\t\tif(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = null;\n while((line = br.readLine()) != null){\n \tString lines[] = line.split(\" \");\n \tint height = Integer.parseInt(lines[0]);\n \tint width = Integer.parseInt(lines[1]);\n\n \tif(height==0||width==0)break;\n \tfor(int i=0;i<height;i++){\n \t\tfor(int j=0; j<width; j++){\n \t\t\tif(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line = null;", "line", "null", "while((line = br.readLine()) != null){\n \tString lines[] = line.split(\" \");\n \tint height = Integer.parseInt(lines[0]);\n \tint width = Integer.parseInt(lines[1]);\n\n \tif(height==0||width==0)break;\n \tfor(int i=0;i<height;i++){\n \t\tfor(int j=0; j<width; j++){\n \t\t\tif(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n \tString lines[] = line.split(\" \");\n \tint height = Integer.parseInt(lines[0]);\n \tint width = Integer.parseInt(lines[1]);\n\n \tif(height==0||width==0)break;\n \tfor(int i=0;i<height;i++){\n \t\tfor(int j=0; j<width; j++){\n \t\t\tif(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}\n \tSystem.out.println(\"\");\n }", "String lines[] = line.split(\" \");", "lines", "line.split(\" \")", "line.split", "line", "\" \"", "int height = Integer.parseInt(lines[0]);", "height", "Integer.parseInt(lines[0])", "Integer.parseInt", "Integer", "lines[0]", "lines", "0", "int width = Integer.parseInt(lines[1]);", "width", "Integer.parseInt(lines[1])", "Integer.parseInt", "Integer", "lines[1]", "lines", "1", "if(height==0||width==0)break;", "height==0||width==0", "height==0", "height", "0", "width==0", "width", "0", "break;", "for(int i=0;i<height;i++){\n \t\tfor(int j=0; j<width; j++){\n \t\t\tif(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}", "int i=0;", "int i=0;", "i", "0", "i<height", "i", "height", "i++", "i++", "i", "{\n \t\tfor(int j=0; j<width; j++){\n \t\t\tif(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}", "{\n \t\tfor(int j=0; j<width; j++){\n \t\t\tif(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}\n \t\t}\n \t\tSystem.out.println(\"\");\n \t}", "for(int j=0; j<width; j++){\n \t\t\tif(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}\n \t\t}", "int j=0;", "int j=0;", "j", "0", "j<width", "j", "width", "j++", "j++", "j", "{\n \t\t\tif(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}\n \t\t}", "{\n \t\t\tif(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}\n \t\t}", "if(i==0 || i==height-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}", "i==0 || i==height-1", "i==0", "i", "0", "i==height-1", "i", "height-1", "height", "1", "{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n \t\t\t\tSystem.out.print((j==0 || j==width-1) ? \"#\" : \".\");\n \t\t\t}", "System.out.print((j==0 || j==width-1) ? \"#\" : \".\")", "System.out.print", "System.out", "System", "System.out", "(j==0 || j==width-1) ? \"#\" : \".\"", "(j==0 || j==width-1)", "j==0", "j", "0", "j==width-1", "j", "width-1", "width", "1", "\"#\"", "\".\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = null; while((line = br.readLine()) != null){ String lines[] = line.split(" "); int height = Integer.parseInt(lines[0]); int width = Integer.parseInt(lines[1]); if(height==0||width==0)break; for(int i=0;i<height;i++){ for(int j=0; j<width; j++){ if(i==0 || i==height-1){ System.out.print("#"); }else{ System.out.print((j==0 || j==width-1) ? "#" : "."); } } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 38, 5, 13, 30, 4, 18, 13, 30, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 17, 8, 2, 4, 18, 13, 17, 40, 17, 4, 18, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 2, 4, 18, 13, 17, 17, 41, 13, 4, 18, 13, 4, 18, 13, 17, 8, 2, 4, 18, 13, 17, 40, 17, 4, 18, 13, 4, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 29, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 197, 8 ], [ 197, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 17, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 43, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 33, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 63, 68 ], [ 33, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 79, 84 ], [ 84, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 78, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 33, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 93, 101 ], [ 101, 102 ], [ 33, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 108, 109 ], [ 108, 110 ], [ 103, 111 ], [ 111, 112 ], [ 112, 113 ], [ 103, 114 ], [ 115, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 116, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 132, 133 ], [ 132, 134 ], [ 127, 135 ], [ 135, 136 ], [ 136, 137 ], [ 127, 138 ], [ 139, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 116, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 147, 152 ], [ 152, 153 ], [ 152, 154 ], [ 147, 155 ], [ 155, 156 ], [ 156, 157 ], [ 147, 158 ], [ 159, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 167, 169 ], [ 160, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 160, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 178, 183 ], [ 115, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 33, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 9, 194 ], [ 194, 195 ], [ 0, 196 ], [ 196, 197 ], [ 196, 198 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tInteger H = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tbuffer = buffer.substring(buffer.indexOf(\" \") + 1);\n\t\t\t\tInteger W = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tInteger H = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tbuffer = buffer.substring(buffer.indexOf(\" \") + 1);\n\t\t\t\tInteger W = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tInteger H = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tbuffer = buffer.substring(buffer.indexOf(\" \") + 1);\n\t\t\t\tInteger W = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tInteger H = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tbuffer = buffer.substring(buffer.indexOf(\" \") + 1);\n\t\t\t\tInteger W = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "String buffer;", "buffer", "try {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tInteger H = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tbuffer = buffer.substring(buffer.indexOf(\" \") + 1);\n\t\t\t\tInteger W = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}", "catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}", "Exception ex", "{\n\t\t\tex.printStackTrace();\n\t\t}", "ex.printStackTrace()", "ex.printStackTrace", "ex", "{\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tInteger H = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tbuffer = buffer.substring(buffer.indexOf(\" \") + 1);\n\t\t\t\tInteger W = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "while ((buffer = reader.readLine()) != null) {\n\t\t\t\tInteger H = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tbuffer = buffer.substring(buffer.indexOf(\" \") + 1);\n\t\t\t\tInteger W = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "(buffer = reader.readLine()) != null", "(buffer = reader.readLine())", "buffer", "reader.readLine()", "reader.readLine", "reader", "null", "{\n\t\t\t\tInteger H = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tbuffer = buffer.substring(buffer.indexOf(\" \") + 1);\n\t\t\t\tInteger W = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "Integer H = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));", "H", "Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")))", "Integer.valueOf", "Integer", "buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \"))", "buffer.substring", "buffer", "0", "buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")", "buffer.indexOf(\" \") == -1", "buffer.indexOf(\" \")", "buffer.indexOf", "buffer", "\" \"", "-1", "1", "buffer.length()", "buffer.length", "buffer", "buffer.indexOf(\" \")", "buffer.indexOf", "buffer", "\" \"", "buffer = buffer.substring(buffer.indexOf(\" \") + 1)", "buffer", "buffer.substring(buffer.indexOf(\" \") + 1)", "buffer.substring", "buffer", "buffer.indexOf(\" \") + 1", "buffer.indexOf(\" \")", "buffer.indexOf", "buffer", "\" \"", "1", "Integer W = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));", "W", "Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")))", "Integer.valueOf", "Integer", "buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \"))", "buffer.substring", "buffer", "0", "buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")", "buffer.indexOf(\" \") == -1", "buffer.indexOf(\" \")", "buffer.indexOf", "buffer", "\" \"", "-1", "1", "buffer.length()", "buffer.length", "buffer", "buffer.indexOf(\" \")", "buffer.indexOf", "buffer", "\" \"", "if (H == 0 && W == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n\t\t\t\t\treturn;\n\t\t\t\t}", "return;", "for (int i = 0; i < H; i++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "{\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "if (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "i == 0 || i == H - 1", "i == 0", "i", "0", "i == H - 1", "i", "H - 1", "H", "1", "{\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "for (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "for (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "if (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}", "j == 0 || j == W - 1", "j == 0", "j", "0", "j == W - 1", "j", "W - 1", "W", "1", "{\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tInteger H = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tbuffer = buffer.substring(buffer.indexOf(\" \") + 1);\n\t\t\t\tInteger W = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString buffer;\n\t\ttry {\n\t\t\twhile ((buffer = reader.readLine()) != null) {\n\t\t\t\tInteger H = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tbuffer = buffer.substring(buffer.indexOf(\" \") + 1);\n\t\t\t\tInteger W = Integer.valueOf(buffer.substring(0, buffer.indexOf(\" \") == -1 ? buffer.length() : buffer.indexOf(\" \")));\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\treturn;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\t\tif (i == 0 || i == H - 1) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tif (j == 0 || j == W - 1) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t} catch (Exception ex) {\n\t\t\tex.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); String buffer; try { while ((buffer = reader.readLine()) != null) { Integer H = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))); buffer = buffer.substring(buffer.indexOf(" ") + 1); Integer W = Integer.valueOf(buffer.substring(0, buffer.indexOf(" ") == -1 ? buffer.length() : buffer.indexOf(" "))); if (H == 0 && W == 0) { return; } for (int i = 0; i < H; i++) { if (i == 0 || i == H - 1) { for (int j = 0; j < W; j++) { System.out.print("#"); } } else { for (int j = 0; j < W; j++) { if (j == 0 || j == W - 1) { System.out.print("#"); } else { System.out.print("."); } } } System.out.println(); } System.out.println(); } } catch (Exception ex) { ex.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 14, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 14, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 76, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 75, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 65, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 101, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 108, 118 ], [ 118, 119 ], [ 119, 120 ], [ 108, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 101, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 14, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 6, 141 ], [ 141, 142 ] ]
[ "import java.io.*;\n\nclass Main{\n\n public static void main(String[] args)throws IOException{\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\twhile(true){\n\t String input = br.readLine();\n\t String[] div = input.split(\" \");\n\t int height = Integer.parseInt(div[0]);\n\t int width = Integer.parseInt(div[1]);\n\n\t if(height == 0 && width == 0){\n\t\tbreak;\n\t }\n\n\t for(int i = 0; i < height; i++){\n\t\t\n\t\tif(i == 0 || i == height - 1){\n\t\t \n\t\t for(int j = 0; j < width; j++){\n\t\t\tSystem.out.printf(\"#\");\n\t\t }\n\t\t System.out.printf(\"\\n\");\n\t\t \n\t\t}else{\n\t\t \n\t\t System.out.printf(\"#\");\n\t\t for(int j = 0; j < width - 2; j++){\n\t\t\tSystem.out.printf(\".\");\n\t\t }\n\t\t System.out.printf(\"#\\n\");\n\t\t}\n\t\t\n\t }\n\t System.out.printf(\"\\n\");\n\t \n\t}\n\n }\n\n}", "import java.io.*;", "io.*", "java", "class Main{\n\n public static void main(String[] args)throws IOException{\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\twhile(true){\n\t String input = br.readLine();\n\t String[] div = input.split(\" \");\n\t int height = Integer.parseInt(div[0]);\n\t int width = Integer.parseInt(div[1]);\n\n\t if(height == 0 && width == 0){\n\t\tbreak;\n\t }\n\n\t for(int i = 0; i < height; i++){\n\t\t\n\t\tif(i == 0 || i == height - 1){\n\t\t \n\t\t for(int j = 0; j < width; j++){\n\t\t\tSystem.out.printf(\"#\");\n\t\t }\n\t\t System.out.printf(\"\\n\");\n\t\t \n\t\t}else{\n\t\t \n\t\t System.out.printf(\"#\");\n\t\t for(int j = 0; j < width - 2; j++){\n\t\t\tSystem.out.printf(\".\");\n\t\t }\n\t\t System.out.printf(\"#\\n\");\n\t\t}\n\t\t\n\t }\n\t System.out.printf(\"\\n\");\n\t \n\t}\n\n }\n\n}", "Main", "public static void main(String[] args)throws IOException{\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\twhile(true){\n\t String input = br.readLine();\n\t String[] div = input.split(\" \");\n\t int height = Integer.parseInt(div[0]);\n\t int width = Integer.parseInt(div[1]);\n\n\t if(height == 0 && width == 0){\n\t\tbreak;\n\t }\n\n\t for(int i = 0; i < height; i++){\n\t\t\n\t\tif(i == 0 || i == height - 1){\n\t\t \n\t\t for(int j = 0; j < width; j++){\n\t\t\tSystem.out.printf(\"#\");\n\t\t }\n\t\t System.out.printf(\"\\n\");\n\t\t \n\t\t}else{\n\t\t \n\t\t System.out.printf(\"#\");\n\t\t for(int j = 0; j < width - 2; j++){\n\t\t\tSystem.out.printf(\".\");\n\t\t }\n\t\t System.out.printf(\"#\\n\");\n\t\t}\n\t\t\n\t }\n\t System.out.printf(\"\\n\");\n\t \n\t}\n\n }", "main", "{\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\twhile(true){\n\t String input = br.readLine();\n\t String[] div = input.split(\" \");\n\t int height = Integer.parseInt(div[0]);\n\t int width = Integer.parseInt(div[1]);\n\n\t if(height == 0 && width == 0){\n\t\tbreak;\n\t }\n\n\t for(int i = 0; i < height; i++){\n\t\t\n\t\tif(i == 0 || i == height - 1){\n\t\t \n\t\t for(int j = 0; j < width; j++){\n\t\t\tSystem.out.printf(\"#\");\n\t\t }\n\t\t System.out.printf(\"\\n\");\n\t\t \n\t\t}else{\n\t\t \n\t\t System.out.printf(\"#\");\n\t\t for(int j = 0; j < width - 2; j++){\n\t\t\tSystem.out.printf(\".\");\n\t\t }\n\t\t System.out.printf(\"#\\n\");\n\t\t}\n\t\t\n\t }\n\t System.out.printf(\"\\n\");\n\t \n\t}\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t String input = br.readLine();\n\t String[] div = input.split(\" \");\n\t int height = Integer.parseInt(div[0]);\n\t int width = Integer.parseInt(div[1]);\n\n\t if(height == 0 && width == 0){\n\t\tbreak;\n\t }\n\n\t for(int i = 0; i < height; i++){\n\t\t\n\t\tif(i == 0 || i == height - 1){\n\t\t \n\t\t for(int j = 0; j < width; j++){\n\t\t\tSystem.out.printf(\"#\");\n\t\t }\n\t\t System.out.printf(\"\\n\");\n\t\t \n\t\t}else{\n\t\t \n\t\t System.out.printf(\"#\");\n\t\t for(int j = 0; j < width - 2; j++){\n\t\t\tSystem.out.printf(\".\");\n\t\t }\n\t\t System.out.printf(\"#\\n\");\n\t\t}\n\t\t\n\t }\n\t System.out.printf(\"\\n\");\n\t \n\t}", "true", "{\n\t String input = br.readLine();\n\t String[] div = input.split(\" \");\n\t int height = Integer.parseInt(div[0]);\n\t int width = Integer.parseInt(div[1]);\n\n\t if(height == 0 && width == 0){\n\t\tbreak;\n\t }\n\n\t for(int i = 0; i < height; i++){\n\t\t\n\t\tif(i == 0 || i == height - 1){\n\t\t \n\t\t for(int j = 0; j < width; j++){\n\t\t\tSystem.out.printf(\"#\");\n\t\t }\n\t\t System.out.printf(\"\\n\");\n\t\t \n\t\t}else{\n\t\t \n\t\t System.out.printf(\"#\");\n\t\t for(int j = 0; j < width - 2; j++){\n\t\t\tSystem.out.printf(\".\");\n\t\t }\n\t\t System.out.printf(\"#\\n\");\n\t\t}\n\t\t\n\t }\n\t System.out.printf(\"\\n\");\n\t \n\t}", "String input = br.readLine();", "input", "br.readLine()", "br.readLine", "br", "String[] div = input.split(\" \");", "div", "input.split(\" \")", "input.split", "input", "\" \"", "int height = Integer.parseInt(div[0]);", "height", "Integer.parseInt(div[0])", "Integer.parseInt", "Integer", "div[0]", "div", "0", "int width = Integer.parseInt(div[1]);", "width", "Integer.parseInt(div[1])", "Integer.parseInt", "Integer", "div[1]", "div", "1", "if(height == 0 && width == 0){\n\t\tbreak;\n\t }", "height == 0 && width == 0", "height == 0", "height", "0", "width == 0", "width", "0", "{\n\t\tbreak;\n\t }", "break;", "for(int i = 0; i < height; i++){\n\t\t\n\t\tif(i == 0 || i == height - 1){\n\t\t \n\t\t for(int j = 0; j < width; j++){\n\t\t\tSystem.out.printf(\"#\");\n\t\t }\n\t\t System.out.printf(\"\\n\");\n\t\t \n\t\t}else{\n\t\t \n\t\t System.out.printf(\"#\");\n\t\t for(int j = 0; j < width - 2; j++){\n\t\t\tSystem.out.printf(\".\");\n\t\t }\n\t\t System.out.printf(\"#\\n\");\n\t\t}\n\t\t\n\t }", "int i = 0;", "int i = 0;", "i", "0", "i < height", "i", "height", "i++", "i++", "i", "{\n\t\t\n\t\tif(i == 0 || i == height - 1){\n\t\t \n\t\t for(int j = 0; j < width; j++){\n\t\t\tSystem.out.printf(\"#\");\n\t\t }\n\t\t System.out.printf(\"\\n\");\n\t\t \n\t\t}else{\n\t\t \n\t\t System.out.printf(\"#\");\n\t\t for(int j = 0; j < width - 2; j++){\n\t\t\tSystem.out.printf(\".\");\n\t\t }\n\t\t System.out.printf(\"#\\n\");\n\t\t}\n\t\t\n\t }", "{\n\t\t\n\t\tif(i == 0 || i == height - 1){\n\t\t \n\t\t for(int j = 0; j < width; j++){\n\t\t\tSystem.out.printf(\"#\");\n\t\t }\n\t\t System.out.printf(\"\\n\");\n\t\t \n\t\t}else{\n\t\t \n\t\t System.out.printf(\"#\");\n\t\t for(int j = 0; j < width - 2; j++){\n\t\t\tSystem.out.printf(\".\");\n\t\t }\n\t\t System.out.printf(\"#\\n\");\n\t\t}\n\t\t\n\t }", "if(i == 0 || i == height - 1){\n\t\t \n\t\t for(int j = 0; j < width; j++){\n\t\t\tSystem.out.printf(\"#\");\n\t\t }\n\t\t System.out.printf(\"\\n\");\n\t\t \n\t\t}else{\n\t\t \n\t\t System.out.printf(\"#\");\n\t\t for(int j = 0; j < width - 2; j++){\n\t\t\tSystem.out.printf(\".\");\n\t\t }\n\t\t System.out.printf(\"#\\n\");\n\t\t}", "i == 0 || i == height - 1", "i == 0", "i", "0", "i == height - 1", "i", "height - 1", "height", "1", "{\n\t\t \n\t\t for(int j = 0; j < width; j++){\n\t\t\tSystem.out.printf(\"#\");\n\t\t }\n\t\t System.out.printf(\"\\n\");\n\t\t \n\t\t}", "for(int j = 0; j < width; j++){\n\t\t\tSystem.out.printf(\"#\");\n\t\t }", "int j = 0;", "int j = 0;", "j", "0", "j < width", "j", "width", "j++", "j++", "j", "{\n\t\t\tSystem.out.printf(\"#\");\n\t\t }", "{\n\t\t\tSystem.out.printf(\"#\");\n\t\t }", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "{\n\t\t \n\t\t System.out.printf(\"#\");\n\t\t for(int j = 0; j < width - 2; j++){\n\t\t\tSystem.out.printf(\".\");\n\t\t }\n\t\t System.out.printf(\"#\\n\");\n\t\t}", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "for(int j = 0; j < width - 2; j++){\n\t\t\tSystem.out.printf(\".\");\n\t\t }", "int j = 0;", "int j = 0;", "j", "0", "j < width - 2", "j", "width - 2", "width", "2", "j++", "j++", "j", "{\n\t\t\tSystem.out.printf(\".\");\n\t\t }", "{\n\t\t\tSystem.out.printf(\".\");\n\t\t }", "System.out.printf(\".\")", "System.out.printf", "System.out", "System", "System.out", "\".\"", "System.out.printf(\"#\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"#\\n\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args" ]
import java.io.*; class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ String input = br.readLine(); String[] div = input.split(" "); int height = Integer.parseInt(div[0]); int width = Integer.parseInt(div[1]); if(height == 0 && width == 0){ break; } for(int i = 0; i < height; i++){ if(i == 0 || i == height - 1){ for(int j = 0; j < width; j++){ System.out.printf("#"); } System.out.printf("\n"); }else{ System.out.printf("#"); for(int j = 0; j < width - 2; j++){ System.out.printf("."); } System.out.printf("#\n"); } } System.out.printf("\n"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 114, 5 ], [ 114, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 18, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 68, 67 ], [ 77, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 77, 77 ], [ 77, 78 ], [ 77, 79 ], [ 68, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 65, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 65, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 51, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 18, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 6, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\t\tint H,W;\n\t\tdo{\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\tif(H == 0 && W == 0){break;} // H = 0 W = 0 ??§??????\n\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\tfor(int j = 0;j < W;j++){\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\t\n\t\t}while(true);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\t\tint H,W;\n\t\tdo{\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\tif(H == 0 && W == 0){break;} // H = 0 W = 0 ??§??????\n\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\tfor(int j = 0;j < W;j++){\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\t\n\t\t}while(true);\n\t}\n}", "Main", "public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\t\tint H,W;\n\t\tdo{\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\tif(H == 0 && W == 0){break;} // H = 0 W = 0 ??§??????\n\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\tfor(int j = 0;j < W;j++){\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\t\n\t\t}while(true);\n\t}", "main", "{\n\tScanner scan = new Scanner(System.in);\n\t\tint H,W;\n\t\tdo{\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\tif(H == 0 && W == 0){break;} // H = 0 W = 0 ??§??????\n\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\tfor(int j = 0;j < W;j++){\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\t\n\t\t}while(true);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int H", "H", "W;", "W", "do{\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\tif(H == 0 && W == 0){break;} // H = 0 W = 0 ??§??????\n\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\tfor(int j = 0;j < W;j++){\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\t\n\t\t}while(true);", "true", "{\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\tif(H == 0 && W == 0){break;} // H = 0 W = 0 ??§??????\n\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\tfor(int j = 0;j < W;j++){\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\t\n\t\t}", "H = scan.nextInt()", "H", "scan.nextInt()", "scan.nextInt", "scan", "W = scan.nextInt()", "W", "scan.nextInt()", "scan.nextInt", "scan", "if(H == 0 && W == 0){break;} // H = 0 W = 0 ??§??????", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{break;}", "break;", "for(int i = 0;i < H;i++){\n\t\t\t\tfor(int j = 0;j < W;j++){\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\tfor(int j = 0;j < W;j++){\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "{\n\t\t\t\tfor(int j = 0;j < W;j++){\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "for(int j = 0;j < W;j++){\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "i == 0 || i == H - 1|| j == 0 || j == W - 1", "j == 0", "i == 0 || i == H - 1|| j == 0 || j == W - 1", "i == 0", "i", "0", "i == H - 1", "i", "H - 1", "H", "1", "j == 0", "j", "0", "j == W - 1", "j", "W - 1", "W", "1", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\t\tint H,W;\n\t\tdo{\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\tif(H == 0 && W == 0){break;} // H = 0 W = 0 ??§??????\n\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\tfor(int j = 0;j < W;j++){\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\t\n\t\t}while(true);\n\t}\n}", "public class Main {\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\t\tint H,W;\n\t\tdo{\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\tif(H == 0 && W == 0){break;} // H = 0 W = 0 ??§??????\n\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\tfor(int j = 0;j < W;j++){\n\t\t\t\t\tif(i == 0 || i == H - 1|| j == 0 || j == W - 1){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\t\n\t\t}while(true);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int H,W; do{ H = scan.nextInt(); W = scan.nextInt(); if(H == 0 && W == 0){break;} // H = 0 W = 0 ??§?????? for(int i = 0;i < H;i++){ for(int j = 0;j < W;j++){ if(i == 0 || i == H - 1|| j == 0 || j == W - 1){ System.out.print("#"); } else{ System.out.print("."); } } System.out.print("\n"); } System.out.print("\n"); }while(true); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 9, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 127, 8 ], [ 127, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 17, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 17, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 81, 80 ], [ 90, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 90, 90 ], [ 90, 91 ], [ 90, 92 ], [ 81, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 78, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 98, 105 ], [ 77, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 64, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 17, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 9, 124 ], [ 124, 125 ], [ 0, 126 ], [ 126, 127 ], [ 126, 128 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(str[0]);\n\t\t\tint w = Integer.parseInt(str[1]);\n\t\t\tif (h == 0 & w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(str[0]);\n\t\t\tint w = Integer.parseInt(str[1]);\n\t\t\tif (h == 0 & w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(str[0]);\n\t\t\tint w = Integer.parseInt(str[1]);\n\t\t\tif (h == 0 & w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(str[0]);\n\t\t\tint w = Integer.parseInt(str[1]);\n\t\t\tif (h == 0 & w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(str[0]);\n\t\t\tint w = Integer.parseInt(str[1]);\n\t\t\tif (h == 0 & w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "true", "{\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(str[0]);\n\t\t\tint w = Integer.parseInt(str[1]);\n\t\t\tif (h == 0 & w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int h = Integer.parseInt(str[0]);", "h", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "int w = Integer.parseInt(str[1]);", "w", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "if (h == 0 & w == 0) {\n\t\t\t\tbreak;\n\t\t\t}", "h == 0 & w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "{\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}", "i == 0 | i == h - 1 | j == 0 | j == w - 1", "j == 0", "i == 0 | i == h - 1 | j == 0 | j == w - 1", "i == 0", "i", "0", "i == h - 1", "i", "h - 1", "h", "1", "j == 0", "j", "0", "j == w - 1", "j", "w - 1", "w", "1", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "continue;", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(str[0]);\n\t\t\tint w = Integer.parseInt(str[1]);\n\t\t\tif (h == 0 & w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(str[0]);\n\t\t\tint w = Integer.parseInt(str[1]);\n\t\t\tif (h == 0 & w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true) { String[] str = br.readLine().split(" "); int h = Integer.parseInt(str[0]); int w = Integer.parseInt(str[1]); if (h == 0 & w == 0) { break; } for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { if (i == 0 | i == h - 1 | j == 0 | j == w - 1) { System.out.print("#"); continue; } System.out.print("."); } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 148, 11 ], [ 148, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 22, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 25, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 35, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 52, 54 ], [ 35, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 35, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 71, 72 ], [ 35, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 73, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 86, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 100, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 108, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 99, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 99, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 85, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 35, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 139, 140 ], [ 35, 141 ], [ 141, 142 ], [ 142, 143 ], [ 141, 144 ], [ 12, 145 ], [ 145, 146 ], [ 0, 147 ], [ 147, 148 ], [ 147, 149 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString[] arrStr;\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\n\n\t\t\twhile (true) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tarrStr = str.split(\" \");\n\n\t\t\t\tint h = Integer.parseInt(arrStr[0]);\n\t\t\t\tint w = Integer.parseInt(arrStr[1]);\n\t\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString[] arrStr;\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\n\n\t\t\twhile (true) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tarrStr = str.split(\" \");\n\n\t\t\t\tint h = Integer.parseInt(arrStr[0]);\n\t\t\t\tint w = Integer.parseInt(arrStr[1]);\n\t\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString[] arrStr;\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\n\n\t\t\twhile (true) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tarrStr = str.split(\" \");\n\n\t\t\t\tint h = Integer.parseInt(arrStr[0]);\n\t\t\t\tint w = Integer.parseInt(arrStr[1]);\n\t\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString[] arrStr;\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\n\n\t\t\twhile (true) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tarrStr = str.split(\" \");\n\n\t\t\t\tint h = Integer.parseInt(arrStr[0]);\n\t\t\t\tint w = Integer.parseInt(arrStr[1]);\n\t\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str;", "str", "String[] arrStr;", "arrStr", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "try {\n\n\n\t\t\twhile (true) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tarrStr = str.split(\" \");\n\n\t\t\t\tint h = Integer.parseInt(arrStr[0]);\n\t\t\t\tint w = Integer.parseInt(arrStr[1]);\n\t\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\n\n\t\t\twhile (true) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tarrStr = str.split(\" \");\n\n\t\t\t\tint h = Integer.parseInt(arrStr[0]);\n\t\t\t\tint w = Integer.parseInt(arrStr[1]);\n\t\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\n\t\t}", "while (true) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tarrStr = str.split(\" \");\n\n\t\t\t\tint h = Integer.parseInt(arrStr[0]);\n\t\t\t\tint w = Integer.parseInt(arrStr[1]);\n\t\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t\tsb.setLength(0);\n\t\t\t}", "true", "{\n\t\t\t\tstr = br.readLine();\n\t\t\t\tarrStr = str.split(\" \");\n\n\t\t\t\tint h = Integer.parseInt(arrStr[0]);\n\t\t\t\tint w = Integer.parseInt(arrStr[1]);\n\t\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t\tsb.setLength(0);\n\t\t\t}", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "arrStr = str.split(\" \")", "arrStr", "str.split(\" \")", "str.split", "str", "\" \"", "int h = Integer.parseInt(arrStr[0]);", "h", "Integer.parseInt(arrStr[0])", "Integer.parseInt", "Integer", "arrStr[0]", "arrStr", "0", "int w = Integer.parseInt(arrStr[1]);", "w", "Integer.parseInt(arrStr[1])", "Integer.parseInt", "Integer", "arrStr[1]", "arrStr", "1", "if (h == 0 && w == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "for (int i = 0; i < h; i++) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}", "{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}", "(i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)", "(i == 0 || j == 0)", "i == 0", "i", "0", "j == 0", "j", "0", "((i == h - 1) || j == w - 1)", "(i == h - 1)", "i", "h - 1", "h", "1", "j == w - 1", "j", "w - 1", "w", "1", "{\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}", "sb.append(\".\")", "sb.append", "sb", "\".\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "System.out.println(sb.toString())", "System.out.println", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "sb.setLength(0)", "sb.setLength", "sb", "0", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString[] arrStr;\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\n\n\t\t\twhile (true) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tarrStr = str.split(\" \");\n\n\t\t\t\tint h = Integer.parseInt(arrStr[0]);\n\t\t\t\tint w = Integer.parseInt(arrStr[1]);\n\t\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\t\tString[] arrStr;\n\t\tStringBuilder sb = new StringBuilder();\n\t\ttry {\n\n\n\t\t\twhile (true) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tarrStr = str.split(\" \");\n\n\t\t\t\tint h = Integer.parseInt(arrStr[0]);\n\t\t\t\tint w = Integer.parseInt(arrStr[1]);\n\t\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif ( (i == 0 || j == 0)\n\t\t\t\t\t\t\t|| ((i == h - 1) || j == w - 1)) {\n\t\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(sb.toString());\n\t\t\t\tsb.setLength(0);\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; String[] arrStr; StringBuilder sb = new StringBuilder(); try { while (true) { str = br.readLine(); arrStr = str.split(" "); int h = Integer.parseInt(arrStr[0]); int w = Integer.parseInt(arrStr[1]); if (h == 0 && w == 0) { break; } for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { if ( (i == 0 || j == 0) || ((i == h - 1) || j == w - 1)) { sb.append("#"); }else{ sb.append("."); } } sb.append("\n"); } System.out.println(sb.toString()); sb.setLength(0); } } catch (IOException e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 42, 17, 30, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 0, 13, 4, 18, 13, 0, 18, 13, 17, 17, 0, 18, 13, 17, 17, 0, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 195, 11 ], [ 195, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 34, 36 ], [ 14, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 14, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 59, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 72, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 83, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 82, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 72, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 113, 114 ], [ 113, 115 ], [ 108, 116 ], [ 116, 117 ], [ 117, 118 ], [ 108, 119 ], [ 120, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 128, 130 ], [ 121, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 121, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 107, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 58, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 58, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 58, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 58, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 58, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 173, 174 ], [ 172, 175 ], [ 58, 176 ], [ 176, 177 ], [ 176, 178 ], [ 178, 179 ], [ 179, 180 ], [ 178, 181 ], [ 181, 182 ], [ 181, 183 ], [ 58, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 186, 189 ], [ 189, 190 ], [ 189, 191 ], [ 12, 192 ], [ 192, 193 ], [ 0, 194 ], [ 194, 195 ], [ 194, 196 ] ]
[ "\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\t// ???????????\\???\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString input = br.readLine();\n\t\tString str[] = input.split(\" \");\n\n\t\tint h = Integer.parseInt(str[0]); // ??????\n\t\tint w = Integer.parseInt(str[1]); // ??????\n\n\t\twhile (true) {\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t// ??¨??????0\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// ????????\\???\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t} // ?????¬?????????????????????\n\n\t\t\t\tSystem.out.println();\n\t\t\t\t// ?¬??????\\??????????????????\n\t\t\t\tinput = br.readLine();\n\t\t\t\tstr[0] = null;\n\t\t\t\tstr[1] = null;\n\t\t\t\tstr = input.split(\" \");\n\t\t\t\th = Integer.parseInt(str[0]);\n\t\t\t\tw = Integer.parseInt(str[1]);\n\t\t\t}\n\t\t}\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\t// ???????????\\???\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString input = br.readLine();\n\t\tString str[] = input.split(\" \");\n\n\t\tint h = Integer.parseInt(str[0]); // ??????\n\t\tint w = Integer.parseInt(str[1]); // ??????\n\n\t\twhile (true) {\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t// ??¨??????0\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// ????????\\???\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t} // ?????¬?????????????????????\n\n\t\t\t\tSystem.out.println();\n\t\t\t\t// ?¬??????\\??????????????????\n\t\t\t\tinput = br.readLine();\n\t\t\t\tstr[0] = null;\n\t\t\t\tstr[1] = null;\n\t\t\t\tstr = input.split(\" \");\n\t\t\t\th = Integer.parseInt(str[0]);\n\t\t\t\tw = Integer.parseInt(str[1]);\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t// ???????????\\???\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString input = br.readLine();\n\t\tString str[] = input.split(\" \");\n\n\t\tint h = Integer.parseInt(str[0]); // ??????\n\t\tint w = Integer.parseInt(str[1]); // ??????\n\n\t\twhile (true) {\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t// ??¨??????0\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// ????????\\???\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t} // ?????¬?????????????????????\n\n\t\t\t\tSystem.out.println();\n\t\t\t\t// ?¬??????\\??????????????????\n\t\t\t\tinput = br.readLine();\n\t\t\t\tstr[0] = null;\n\t\t\t\tstr[1] = null;\n\t\t\t\tstr = input.split(\" \");\n\t\t\t\th = Integer.parseInt(str[0]);\n\t\t\t\tw = Integer.parseInt(str[1]);\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\t// ???????????\\???\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString input = br.readLine();\n\t\tString str[] = input.split(\" \");\n\n\t\tint h = Integer.parseInt(str[0]); // ??????\n\t\tint w = Integer.parseInt(str[1]); // ??????\n\n\t\twhile (true) {\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t// ??¨??????0\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// ????????\\???\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t} // ?????¬?????????????????????\n\n\t\t\t\tSystem.out.println();\n\t\t\t\t// ?¬??????\\??????????????????\n\t\t\t\tinput = br.readLine();\n\t\t\t\tstr[0] = null;\n\t\t\t\tstr[1] = null;\n\t\t\t\tstr = input.split(\" \");\n\t\t\t\th = Integer.parseInt(str[0]);\n\t\t\t\tw = Integer.parseInt(str[1]);\n\t\t\t}\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String input = br.readLine();", "input", "br.readLine()", "br.readLine", "br", "String str[] = input.split(\" \");", "str", "input.split(\" \")", "input.split", "input", "\" \"", "int h = Integer.parseInt(str[0]);", "h", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "int w = Integer.parseInt(str[1]);", "w", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "while (true) {\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t// ??¨??????0\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// ????????\\???\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t} // ?????¬?????????????????????\n\n\t\t\t\tSystem.out.println();\n\t\t\t\t// ?¬??????\\??????????????????\n\t\t\t\tinput = br.readLine();\n\t\t\t\tstr[0] = null;\n\t\t\t\tstr[1] = null;\n\t\t\t\tstr = input.split(\" \");\n\t\t\t\th = Integer.parseInt(str[0]);\n\t\t\t\tw = Integer.parseInt(str[1]);\n\t\t\t}\n\t\t}", "true", "{\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t// ??¨??????0\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// ????????\\???\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t} // ?????¬?????????????????????\n\n\t\t\t\tSystem.out.println();\n\t\t\t\t// ?¬??????\\??????????????????\n\t\t\t\tinput = br.readLine();\n\t\t\t\tstr[0] = null;\n\t\t\t\tstr[1] = null;\n\t\t\t\tstr = input.split(\" \");\n\t\t\t\th = Integer.parseInt(str[0]);\n\t\t\t\tw = Integer.parseInt(str[1]);\n\t\t\t}\n\t\t}", "if (h == 0 && w == 0) {\n\t\t\t\t// ??¨??????0\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// ????????\\???\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t} // ?????¬?????????????????????\n\n\t\t\t\tSystem.out.println();\n\t\t\t\t// ?¬??????\\??????????????????\n\t\t\t\tinput = br.readLine();\n\t\t\t\tstr[0] = null;\n\t\t\t\tstr[1] = null;\n\t\t\t\tstr = input.split(\" \");\n\t\t\t\th = Integer.parseInt(str[0]);\n\t\t\t\tw = Integer.parseInt(str[1]);\n\t\t\t}", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n\t\t\t\t// ??¨??????0\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\t// ????????\\???\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t} // ?????¬?????????????????????\n\n\t\t\t\tSystem.out.println();\n\t\t\t\t// ?¬??????\\??????????????????\n\t\t\t\tinput = br.readLine();\n\t\t\t\tstr[0] = null;\n\t\t\t\tstr[1] = null;\n\t\t\t\tstr = input.split(\" \");\n\t\t\t\th = Integer.parseInt(str[0]);\n\t\t\t\tw = Integer.parseInt(str[1]);\n\t\t\t}", "for (int i = 0; i < h; i++) {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t} // ?????¬?????????????????????", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t} // ?????¬?????????????????????", "{\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}", "if (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}", "i == 0 || i == (h - 1)", "i == 0", "i", "0", "i == (h - 1)", "i", "(h - 1)", "h", "1", "{\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "{\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}", "for (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "{// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "if (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}", "j == 0 || j == (w - 1)", "j == 0", "j", "0", "j == (w - 1)", "j", "(w - 1)", "w", "1", "{\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "input = br.readLine()", "input", "br.readLine()", "br.readLine", "br", "str[0] = null", "str[0]", "str", "0", "null", "str[1] = null", "str[1]", "str", "1", "null", "str = input.split(\" \")", "str", "input.split(\" \")", "input.split", "input", "\" \"", "h = Integer.parseInt(str[0])", "h", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "w = Integer.parseInt(str[1])", "w", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\t// ???????????\\???\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString input = br.readLine();\n\t\tString str[] = input.split(\" \");\n\n\t\tint h = Integer.parseInt(str[0]); // ??????\n\t\tint w = Integer.parseInt(str[1]); // ??????\n\n\t\twhile (true) {\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t// ??¨??????0\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// ????????\\???\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t} // ?????¬?????????????????????\n\n\t\t\t\tSystem.out.println();\n\t\t\t\t// ?¬??????\\??????????????????\n\t\t\t\tinput = br.readLine();\n\t\t\t\tstr[0] = null;\n\t\t\t\tstr[1] = null;\n\t\t\t\tstr = input.split(\" \");\n\t\t\t\th = Integer.parseInt(str[0]);\n\t\t\t\tw = Integer.parseInt(str[1]);\n\t\t\t}\n\t\t}\n\t}\n\n}", "public class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\t// ???????????\\???\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString input = br.readLine();\n\t\tString str[] = input.split(\" \");\n\n\t\tint h = Integer.parseInt(str[0]); // ??????\n\t\tint w = Integer.parseInt(str[1]); // ??????\n\n\t\twhile (true) {\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\t// ??¨??????0\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\t// ????????\\???\n\t\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\t// ??????or??????\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\t\t// ??????(#?????????)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t} else {\n\t\t\t\t\t\tfor (int j = 0; j < w; j++) {// ??????(#?????????)\n\t\t\t\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\t// ??????(??????)\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t} // ?????¬?????????????????????\n\n\t\t\t\tSystem.out.println();\n\t\t\t\t// ?¬??????\\??????????????????\n\t\t\t\tinput = br.readLine();\n\t\t\t\tstr[0] = null;\n\t\t\t\tstr[1] = null;\n\t\t\t\tstr = input.split(\" \");\n\t\t\t\th = Integer.parseInt(str[0]);\n\t\t\t\tw = Integer.parseInt(str[1]);\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws IOException { // ???????????\??? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String input = br.readLine(); String str[] = input.split(" "); int h = Integer.parseInt(str[0]); // ?????? int w = Integer.parseInt(str[1]); // ?????? while (true) { if (h == 0 && w == 0) { // ??¨??????0 break; } else { // ????????\??? for (int i = 0; i < h; i++) { if (i == 0 || i == (h - 1)) { // ??????or?????? for (int j = 0; j < w; j++) { // ??????(#?????????) System.out.print("#"); } // ??????(??????) System.out.println(); } else { for (int j = 0; j < w; j++) {// ??????(#?????????) if (j == 0 || j == (w - 1)) { System.out.print("#"); } else { System.out.print("."); } } // ??????(??????) System.out.println(); } } // ?????¬????????????????????? System.out.println(); // ?¬??????\?????????????????? input = br.readLine(); str[0] = null; str[1] = null; str = input.split(" "); h = Integer.parseInt(str[0]); w = Integer.parseInt(str[1]); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 8, 2, 2, 2, 2, 13, 17, 2, 13, 40, 40, 13, 2, 13, 17, 2, 13, 40, 40, 13, 17, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 101, 5 ], [ 101, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 67, 68 ], [ 78, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 78, 78 ], [ 78, 79 ], [ 78, 80 ], [ 67, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 66, 86 ], [ 66, 87 ], [ 47, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 14, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 6, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n while(true) {\n int H = scn.nextInt(), W = scn.nextInt();\n if(H == 0 && W == 0) {\n break;\n }\n for(int i = 0; i < H; i++) {\n for(int j = 0; j < W; j++) {\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n while(true) {\n int H = scn.nextInt(), W = scn.nextInt();\n if(H == 0 && W == 0) {\n break;\n }\n for(int i = 0; i < H; i++) {\n for(int j = 0; j < W; j++) {\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n while(true) {\n int H = scn.nextInt(), W = scn.nextInt();\n if(H == 0 && W == 0) {\n break;\n }\n for(int i = 0; i < H; i++) {\n for(int j = 0; j < W; j++) {\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "main", "{\n Scanner scn = new Scanner(System.in);\n while(true) {\n int H = scn.nextInt(), W = scn.nextInt();\n if(H == 0 && W == 0) {\n break;\n }\n for(int i = 0; i < H; i++) {\n for(int j = 0; j < W; j++) {\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "while(true) {\n int H = scn.nextInt(), W = scn.nextInt();\n if(H == 0 && W == 0) {\n break;\n }\n for(int i = 0; i < H; i++) {\n for(int j = 0; j < W; j++) {\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }\n System.out.println();\n }\n System.out.println();\n }", "true", "{\n int H = scn.nextInt(), W = scn.nextInt();\n if(H == 0 && W == 0) {\n break;\n }\n for(int i = 0; i < H; i++) {\n for(int j = 0; j < W; j++) {\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }\n System.out.println();\n }\n System.out.println();\n }", "int H = scn.nextInt()", "H", "scn.nextInt()", "scn.nextInt", "scn", "W = scn.nextInt();", "W", "scn.nextInt()", "scn.nextInt", "scn", "if(H == 0 && W == 0) {\n break;\n }", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n break;\n }", "break;", "for(int i = 0; i < H; i++) {\n for(int j = 0; j < W; j++) {\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n for(int j = 0; j < W; j++) {\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }\n System.out.println();\n }", "{\n for(int j = 0; j < W; j++) {\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }\n System.out.println();\n }", "for(int j = 0; j < W; j++) {\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }", "{\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }", "System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.')", "System.out.print", "System.out", "System", "System.out", "(i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.'", "(i == 0 || i == ~-H || j == 0 || j == ~-W)", "j == 0", "i == 0 || i == ~-H || j == 0 || j == ~-W", "i == 0", "i", "0", "i == ~-H", "i", "~-H", "-H", "H", "j == 0", "j", "0", "j == ~-W", "j", "~-W", "-W", "W", "'#'", "'.'", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n while(true) {\n int H = scn.nextInt(), W = scn.nextInt();\n if(H == 0 && W == 0) {\n break;\n }\n for(int i = 0; i < H; i++) {\n for(int j = 0; j < W; j++) {\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n while(true) {\n int H = scn.nextInt(), W = scn.nextInt();\n if(H == 0 && W == 0) {\n break;\n }\n for(int i = 0; i < H; i++) {\n for(int j = 0; j < W; j++) {\n System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.');\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner scn = new Scanner(System.in); while(true) { int H = scn.nextInt(), W = scn.nextInt(); if(H == 0 && W == 0) { break; } for(int i = 0; i < H; i++) { for(int j = 0; j < W; j++) { System.out.print((i == 0 || i == ~-H || j == 0 || j == ~-W) ? '#' : '.'); } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 112, 5 ], [ 112, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 63, 62 ], [ 72, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 72, 72 ], [ 72, 73 ], [ 72, 74 ], [ 63, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 60, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 60, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 46, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 14, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 8, 106 ], [ 106, 107 ], [ 107, 108 ], [ 6, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) break;\n\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) break;\n\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) break;\n\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) break;\n\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) break;\n\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }", "true", "{\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) break;\n\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int w = sc.nextInt();", "w", "sc.nextInt()", "sc.nextInt", "sc", "if (h == 0 && w == 0) break;", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }\n System.out.println(\"\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n for (int j = 0; j < w; j++) {\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }\n System.out.println(\"\");\n }", "{\n for (int j = 0; j < w; j++) {\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }\n System.out.println(\"\");\n }", "for (int j = 0; j < w; j++) {\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }", "{\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }", "if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }", "i == 0 | i == h - 1 | j == 0 | j == w - 1", "j == 0", "i == 0 | i == h - 1 | j == 0 | j == w - 1", "i == 0", "i", "0", "i == h - 1", "i", "h - 1", "h", "1", "j == 0", "j", "0", "j == w - 1", "j", "w - 1", "w", "1", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) break;\n\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) break;\n\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i == 0 | i == h - 1 | j == 0 | j == w - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int h = sc.nextInt(); int w = sc.nextInt(); if (h == 0 && w == 0) break; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { if (i == 0 | i == h - 1 | j == 0 | j == w - 1) { System.out.print("#"); } else { System.out.print("."); } } System.out.println(""); } System.out.println(""); } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 24, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 73, 72 ], [ 82, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 82, 82 ], [ 82, 83 ], [ 82, 84 ], [ 73, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 70, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 70, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 56, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 24, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 12, 112 ], [ 112, 113 ] ]
[ "/* package whatever; // don't place package name! */\n\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner sc = new Scanner(System.in);\n\t\tint h,w;\n\t\twhile(true){\n\t\t\th = sc.nextInt();\n\t\t\tw = sc.nextInt();\n\t\t\tif (h == 0 && w == 0) break;\n\t\t\t\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner sc = new Scanner(System.in);\n\t\tint h,w;\n\t\twhile(true){\n\t\t\th = sc.nextInt();\n\t\t\tw = sc.nextInt();\n\t\t\tif (h == 0 && w == 0) break;\n\t\t\t\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\tScanner sc = new Scanner(System.in);\n\t\tint h,w;\n\t\twhile(true){\n\t\t\th = sc.nextInt();\n\t\t\tw = sc.nextInt();\n\t\t\tif (h == 0 && w == 0) break;\n\t\t\t\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\t// your code goes here\n\t\tScanner sc = new Scanner(System.in);\n\t\tint h,w;\n\t\twhile(true){\n\t\t\th = sc.nextInt();\n\t\t\tw = sc.nextInt();\n\t\t\tif (h == 0 && w == 0) break;\n\t\t\t\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int h", "h", "w;", "w", "while(true){\n\t\t\th = sc.nextInt();\n\t\t\tw = sc.nextInt();\n\t\t\tif (h == 0 && w == 0) break;\n\t\t\t\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\th = sc.nextInt();\n\t\t\tw = sc.nextInt();\n\t\t\tif (h == 0 && w == 0) break;\n\t\t\t\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "h = sc.nextInt()", "h", "sc.nextInt()", "sc.nextInt", "sc", "w = sc.nextInt()", "w", "sc.nextInt()", "sc.nextInt", "sc", "if (h == 0 && w == 0) break;", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "for (int i = 0; i < h; i++) {\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\tif ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\t\tif ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\tif ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tif ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}", "if ( i == 0 || i == h - 1 || j == 0 || j == w - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");", "i == 0 || i == h - 1 || j == 0 || j == w - 1", "j == 0", "i == 0 || i == h - 1 || j == 0 || j == w - 1", "i == 0", "i", "0", "i == h - 1", "i", "h - 1", "h", "1", "j == 0", "j", "0", "j == w - 1", "j", "w - 1", "w", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args" ]
/* package whatever; // don't place package name! */ import java.util.*; import java.lang.*; import java.io.*; /* Name of the class has to be "Main" only if the class is public. */ class Main { public static void main (String[] args) throws java.lang.Exception { // your code goes here Scanner sc = new Scanner(System.in); int h,w; while(true){ h = sc.nextInt(); w = sc.nextInt(); if (h == 0 && w == 0) break; for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { if ( i == 0 || i == h - 1 || j == 0 || j == w - 1) System.out.print("#"); else System.out.print("."); } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 5, 13, 30, 4, 18, 18, 13, 13, 17, 30, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 40, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 179, 5 ], [ 179, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 12, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 12, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 34, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 42, 46 ], [ 46, 47 ], [ 34, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 34, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 34, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 75, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 74, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 74, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 99, 109 ], [ 109, 110 ], [ 110, 111 ], [ 99, 112 ], [ 113, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 113, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 120, 130 ], [ 130, 131 ], [ 131, 132 ], [ 120, 133 ], [ 134, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 113, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 74, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 147, 152 ], [ 152, 153 ], [ 152, 154 ], [ 147, 155 ], [ 155, 156 ], [ 156, 157 ], [ 147, 158 ], [ 159, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 74, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 74, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 6, 176 ], [ 176, 177 ], [ 0, 178 ], [ 178, 179 ], [ 178, 180 ] ]
[ "import java.io.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n \twhile(true) {\n \t\tString line = reader.readLine();\n \t\tString[] num = line.split(\" \", -1);\n \t\tint H = Integer.parseInt(num[0]);\n \t\tint W = Integer.parseInt(num[1]);\n \t\t\n \t\tif (H == 0 && W == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tfor (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tSystem.out.println();\n \t\t}\n \t\t\t\n \t}\n } catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n }\n}", "import java.io.*;", "io.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n \twhile(true) {\n \t\tString line = reader.readLine();\n \t\tString[] num = line.split(\" \", -1);\n \t\tint H = Integer.parseInt(num[0]);\n \t\tint W = Integer.parseInt(num[1]);\n \t\t\n \t\tif (H == 0 && W == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tfor (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tSystem.out.println();\n \t\t}\n \t\t\t\n \t}\n } catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n }\n}", "Main", "public static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n \twhile(true) {\n \t\tString line = reader.readLine();\n \t\tString[] num = line.split(\" \", -1);\n \t\tint H = Integer.parseInt(num[0]);\n \t\tint W = Integer.parseInt(num[1]);\n \t\t\n \t\tif (H == 0 && W == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tfor (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tSystem.out.println();\n \t\t}\n \t\t\t\n \t}\n } catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n }", "main", "{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n \twhile(true) {\n \t\tString line = reader.readLine();\n \t\tString[] num = line.split(\" \", -1);\n \t\tint H = Integer.parseInt(num[0]);\n \t\tint W = Integer.parseInt(num[1]);\n \t\t\n \t\tif (H == 0 && W == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tfor (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tSystem.out.println();\n \t\t}\n \t\t\t\n \t}\n } catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "try{\n \twhile(true) {\n \t\tString line = reader.readLine();\n \t\tString[] num = line.split(\" \", -1);\n \t\tint H = Integer.parseInt(num[0]);\n \t\tint W = Integer.parseInt(num[1]);\n \t\t\n \t\tif (H == 0 && W == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tfor (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tSystem.out.println();\n \t\t}\n \t\t\t\n \t}\n } catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }", "catch (IOException e) {\n System.out.println(e);\n }", "IOException e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "catch (NumberFormatException e) {\n System.out.println(\"error\");\n }", "NumberFormatException e", "{\n System.out.println(\"error\");\n }", "System.out.println(\"error\")", "System.out.println", "System.out", "System", "System.out", "\"error\"", "{\n \twhile(true) {\n \t\tString line = reader.readLine();\n \t\tString[] num = line.split(\" \", -1);\n \t\tint H = Integer.parseInt(num[0]);\n \t\tint W = Integer.parseInt(num[1]);\n \t\t\n \t\tif (H == 0 && W == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tfor (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tSystem.out.println();\n \t\t}\n \t\t\t\n \t}\n }", "while(true) {\n \t\tString line = reader.readLine();\n \t\tString[] num = line.split(\" \", -1);\n \t\tint H = Integer.parseInt(num[0]);\n \t\tint W = Integer.parseInt(num[1]);\n \t\t\n \t\tif (H == 0 && W == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tfor (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tSystem.out.println();\n \t\t}\n \t\t\t\n \t}", "true", "{\n \t\tString line = reader.readLine();\n \t\tString[] num = line.split(\" \", -1);\n \t\tint H = Integer.parseInt(num[0]);\n \t\tint W = Integer.parseInt(num[1]);\n \t\t\n \t\tif (H == 0 && W == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tfor (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tSystem.out.println();\n \t\t}\n \t\t\t\n \t}", "String line = reader.readLine();", "line", "reader.readLine()", "reader.readLine", "reader", "String[] num = line.split(\" \", -1);", "num", "line.split(\" \", -1)", "line.split", "line", "\" \"", "-1", "1", "int H = Integer.parseInt(num[0]);", "H", "Integer.parseInt(num[0])", "Integer.parseInt", "Integer", "num[0]", "num", "0", "int W = Integer.parseInt(num[1]);", "W", "Integer.parseInt(num[1])", "Integer.parseInt", "Integer", "num[1]", "num", "1", "if (H == 0 && W == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tfor (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tSystem.out.println();\n \t\t}", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n \t\t\tbreak;\n \t\t}", "break;", "{\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tfor (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tSystem.out.println();\n \t\t}", "for (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}", "{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < (H - 2)", "i", "(H - 2)", "H", "2", "i++", "i++", "i", "{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}", "{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < (W - 2)", "j", "(W - 2)", "W", "2", "j++", "j++", "j", "{\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}", "{\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\"", "for (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}", "{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n \twhile(true) {\n \t\tString line = reader.readLine();\n \t\tString[] num = line.split(\" \", -1);\n \t\tint H = Integer.parseInt(num[0]);\n \t\tint W = Integer.parseInt(num[1]);\n \t\t\n \t\tif (H == 0 && W == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tfor (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tSystem.out.println();\n \t\t}\n \t\t\t\n \t}\n } catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n }\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n \twhile(true) {\n \t\tString line = reader.readLine();\n \t\tString[] num = line.split(\" \", -1);\n \t\tint H = Integer.parseInt(num[0]);\n \t\tint W = Integer.parseInt(num[1]);\n \t\t\n \t\tif (H == 0 && W == 0) {\n \t\t\tbreak;\n \t\t} else {\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tfor (int i = 0; i < (H - 2); i++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t\tfor (int j = 0; j < (W - 2); j++) {\n \t\t\t\t\tSystem.out.print(\".\");\n \t\t\t\t}\n \t\t\t\tSystem.out.println(\"#\");\n \t\t\t}\n \t\t\tfor (int j = 0; j < W; j++) {\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}\n \t\t\tSystem.out.println();\n \t\t\tSystem.out.println();\n \t\t}\n \t\t\t\n \t}\n } catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n }\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args){ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); try{ while(true) { String line = reader.readLine(); String[] num = line.split(" ", -1); int H = Integer.parseInt(num[0]); int W = Integer.parseInt(num[1]); if (H == 0 && W == 0) { break; } else { for (int j = 0; j < W; j++) { System.out.print("#"); } System.out.println(); for (int i = 0; i < (H - 2); i++) { System.out.print("#"); for (int j = 0; j < (W - 2); j++) { System.out.print("."); } System.out.println("#"); } for (int j = 0; j < W; j++) { System.out.print("#"); } System.out.println(); System.out.println(); } } } catch (IOException e) { System.out.println(e); } catch (NumberFormatException e) { System.out.println("error"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 14, 2, 13, 17, 30, 3, 4, 13, 13, 4, 18, 18, 13, 13, 4, 13, 2, 13, 17, 13, 4, 13, 13, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 159, 5 ], [ 159, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 8, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 22, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 22, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 47, 49 ], [ 22, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 22, 56 ], [ 56, 57 ], [ 56, 58 ], [ 22, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 22, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 22, 70 ], [ 70, 71 ], [ 70, 72 ], [ 22, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 6, 79 ], [ 79, 80 ], [ 159, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 89, 90 ], [ 89, 91 ], [ 84, 92 ], [ 92, 93 ], [ 93, 94 ], [ 84, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 81, 103 ], [ 103, 104 ], [ 159, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 113, 114 ], [ 113, 115 ], [ 108, 116 ], [ 116, 117 ], [ 117, 118 ], [ 108, 119 ], [ 120, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 120, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 134, 136 ], [ 127, 137 ], [ 137, 138 ], [ 138, 139 ], [ 127, 140 ], [ 141, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 120, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 105, 154 ], [ 154, 155 ], [ 105, 156 ], [ 156, 157 ], [ 0, 158 ], [ 158, 159 ], [ 158, 160 ] ]
[ "import java.util.*;\n/*\nMain class for AOJ where there is no input.\n*/\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n int height;\n int width;\n \n while(true){\n str = sc.nextLine();\n arr = str.split(\" \");\n height = Integer.parseInt(arr[0]);\n width = Integer.parseInt(arr[1]);\n \n if(height == 0){\n break;\n }\n \n edge(width);\n System.out.println();\n middle(height - 2, width);\n edge(width);\n System.out.println(\"\\n\");\n \n }\n \n \n }//main method \n \n \n public static void edge(int width){\n for(int i = 0; i < width; i++){\n System.out.print(\"#\");\n }\n }\n \n public static void middle(int n,int width){\n for(int i = 0; i < n; i ++){\n System.out.print(\"#\");\n for(int j = 0; j < width - 2; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\\n\");\n }\n }\n}//class", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n int height;\n int width;\n \n while(true){\n str = sc.nextLine();\n arr = str.split(\" \");\n height = Integer.parseInt(arr[0]);\n width = Integer.parseInt(arr[1]);\n \n if(height == 0){\n break;\n }\n \n edge(width);\n System.out.println();\n middle(height - 2, width);\n edge(width);\n System.out.println(\"\\n\");\n \n }\n \n \n }//main method \n \n \n public static void edge(int width){\n for(int i = 0; i < width; i++){\n System.out.print(\"#\");\n }\n }\n \n public static void middle(int n,int width){\n for(int i = 0; i < n; i ++){\n System.out.print(\"#\");\n for(int j = 0; j < width - 2; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\\n\");\n }\n }\n}//class", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n int height;\n int width;\n \n while(true){\n str = sc.nextLine();\n arr = str.split(\" \");\n height = Integer.parseInt(arr[0]);\n width = Integer.parseInt(arr[1]);\n \n if(height == 0){\n break;\n }\n \n edge(width);\n System.out.println();\n middle(height - 2, width);\n edge(width);\n System.out.println(\"\\n\");\n \n }\n \n \n }//main method ", "main", "{\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n int height;\n int width;\n \n while(true){\n str = sc.nextLine();\n arr = str.split(\" \");\n height = Integer.parseInt(arr[0]);\n width = Integer.parseInt(arr[1]);\n \n if(height == 0){\n break;\n }\n \n edge(width);\n System.out.println();\n middle(height - 2, width);\n edge(width);\n System.out.println(\"\\n\");\n \n }\n \n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str;", "str", "String[] arr;", "arr", "int height;", "height", "int width;", "width", "while(true){\n str = sc.nextLine();\n arr = str.split(\" \");\n height = Integer.parseInt(arr[0]);\n width = Integer.parseInt(arr[1]);\n \n if(height == 0){\n break;\n }\n \n edge(width);\n System.out.println();\n middle(height - 2, width);\n edge(width);\n System.out.println(\"\\n\");\n \n }", "true", "{\n str = sc.nextLine();\n arr = str.split(\" \");\n height = Integer.parseInt(arr[0]);\n width = Integer.parseInt(arr[1]);\n \n if(height == 0){\n break;\n }\n \n edge(width);\n System.out.println();\n middle(height - 2, width);\n edge(width);\n System.out.println(\"\\n\");\n \n }", "str = sc.nextLine()", "str", "sc.nextLine()", "sc.nextLine", "sc", "arr = str.split(\" \")", "arr", "str.split(\" \")", "str.split", "str", "\" \"", "height = Integer.parseInt(arr[0])", "height", "Integer.parseInt(arr[0])", "Integer.parseInt", "Integer", "arr[0]", "arr", "0", "width = Integer.parseInt(arr[1])", "width", "Integer.parseInt(arr[1])", "Integer.parseInt", "Integer", "arr[1]", "arr", "1", "if(height == 0){\n break;\n }", "height == 0", "height", "0", "{\n break;\n }", "break;", "edge(width)", "edge", "width", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "middle(height - 2, width)", "middle", "height - 2", "height", "2", "width", "edge(width)", "edge", "width", "System.out.println(\"\\n\")", "System.out.println", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args", "public static void edge(int width){\n for(int i = 0; i < width; i++){\n System.out.print(\"#\");\n }\n }", "edge", "{\n for(int i = 0; i < width; i++){\n System.out.print(\"#\");\n }\n }", "for(int i = 0; i < width; i++){\n System.out.print(\"#\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < width", "i", "width", "i++", "i++", "i", "{\n System.out.print(\"#\");\n }", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "int width", "width", "public static void middle(int n,int width){\n for(int i = 0; i < n; i ++){\n System.out.print(\"#\");\n for(int j = 0; j < width - 2; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\\n\");\n }\n }", "middle", "{\n for(int i = 0; i < n; i ++){\n System.out.print(\"#\");\n for(int j = 0; j < width - 2; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\\n\");\n }\n }", "for(int i = 0; i < n; i ++){\n System.out.print(\"#\");\n for(int j = 0; j < width - 2; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\\n\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i ++", "i ++", "i", "{\n System.out.print(\"#\");\n for(int j = 0; j < width - 2; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\\n\");\n }", "{\n System.out.print(\"#\");\n for(int j = 0; j < width - 2; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\\n\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for(int j = 0; j < width - 2; j++){\n System.out.print(\".\");\n }", "int j = 0;", "int j = 0;", "j", "0", "j < width - 2", "j", "width - 2", "width", "2", "j++", "j++", "j", "{\n System.out.print(\".\");\n }", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.print(\"#\\n\")", "System.out.print", "System.out", "System", "System.out", "\"#\\n\"", "int n", "n", "int width", "width", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n int height;\n int width;\n \n while(true){\n str = sc.nextLine();\n arr = str.split(\" \");\n height = Integer.parseInt(arr[0]);\n width = Integer.parseInt(arr[1]);\n \n if(height == 0){\n break;\n }\n \n edge(width);\n System.out.println();\n middle(height - 2, width);\n edge(width);\n System.out.println(\"\\n\");\n \n }\n \n \n }//main method \n \n \n public static void edge(int width){\n for(int i = 0; i < width; i++){\n System.out.print(\"#\");\n }\n }\n \n public static void middle(int n,int width){\n for(int i = 0; i < n; i ++){\n System.out.print(\"#\");\n for(int j = 0; j < width - 2; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\\n\");\n }\n }\n}//class", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String str;\n String[] arr;\n int height;\n int width;\n \n while(true){\n str = sc.nextLine();\n arr = str.split(\" \");\n height = Integer.parseInt(arr[0]);\n width = Integer.parseInt(arr[1]);\n \n if(height == 0){\n break;\n }\n \n edge(width);\n System.out.println();\n middle(height - 2, width);\n edge(width);\n System.out.println(\"\\n\");\n \n }\n \n \n }//main method \n \n \n public static void edge(int width){\n for(int i = 0; i < width; i++){\n System.out.print(\"#\");\n }\n }\n \n public static void middle(int n,int width){\n for(int i = 0; i < n; i ++){\n System.out.print(\"#\");\n for(int j = 0; j < width - 2; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\\n\");\n }\n }\n}//class", "Main" ]
import java.util.*; /* Main class for AOJ where there is no input. */ public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str; String[] arr; int height; int width; while(true){ str = sc.nextLine(); arr = str.split(" "); height = Integer.parseInt(arr[0]); width = Integer.parseInt(arr[1]); if(height == 0){ break; } edge(width); System.out.println(); middle(height - 2, width); edge(width); System.out.println("\n"); } }//main method public static void edge(int width){ for(int i = 0; i < width; i++){ System.out.print("#"); } } public static void middle(int n,int width){ for(int i = 0; i < n; i ++){ System.out.print("#"); for(int j = 0; j < width - 2; j++){ System.out.print("."); } System.out.print("#\n"); } } }//class
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 18, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 18, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 18, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 64, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 78, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 85, 95 ], [ 95, 96 ], [ 96, 97 ], [ 85, 98 ], [ 99, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 78, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 18, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 112, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 18, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 18, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 6, 141 ], [ 141, 142 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint h, w;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\th = stdIn.nextInt();\n\t\t\tw = stdIn.nextInt();\n\n\t\t\tif((h+w) == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor (int i = 1; i < h-1; i++) {\n\n\t\t\t\tSystem.out.print('#');\n\t\t\t\tfor (int j = 1; j < w-1; j++) {\n\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t}\n\t\t\t\tSystem.out.println('#');\n\t\t\t}\n\t\t\tfor(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tint h, w;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\th = stdIn.nextInt();\n\t\t\tw = stdIn.nextInt();\n\n\t\t\tif((h+w) == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor (int i = 1; i < h-1; i++) {\n\n\t\t\t\tSystem.out.print('#');\n\t\t\t\tfor (int j = 1; j < w-1; j++) {\n\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t}\n\t\t\t\tSystem.out.println('#');\n\t\t\t}\n\t\t\tfor(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tint h, w;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\th = stdIn.nextInt();\n\t\t\tw = stdIn.nextInt();\n\n\t\t\tif((h+w) == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor (int i = 1; i < h-1; i++) {\n\n\t\t\t\tSystem.out.print('#');\n\t\t\t\tfor (int j = 1; j < w-1; j++) {\n\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t}\n\t\t\t\tSystem.out.println('#');\n\t\t\t}\n\t\t\tfor(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}", "main", "{\n\n\t\tint h, w;\n\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\twhile (true) {\n\t\t\th = stdIn.nextInt();\n\t\t\tw = stdIn.nextInt();\n\n\t\t\tif((h+w) == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor (int i = 1; i < h-1; i++) {\n\n\t\t\t\tSystem.out.print('#');\n\t\t\t\tfor (int j = 1; j < w-1; j++) {\n\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t}\n\t\t\t\tSystem.out.println('#');\n\t\t\t}\n\t\t\tfor(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}", "int h", "h", "w;", "w", "Scanner stdIn = new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "while (true) {\n\t\t\th = stdIn.nextInt();\n\t\t\tw = stdIn.nextInt();\n\n\t\t\tif((h+w) == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor (int i = 1; i < h-1; i++) {\n\n\t\t\t\tSystem.out.print('#');\n\t\t\t\tfor (int j = 1; j < w-1; j++) {\n\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t}\n\t\t\t\tSystem.out.println('#');\n\t\t\t}\n\t\t\tfor(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\th = stdIn.nextInt();\n\t\t\tw = stdIn.nextInt();\n\n\t\t\tif((h+w) == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\n\t\t\tfor(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor (int i = 1; i < h-1; i++) {\n\n\t\t\t\tSystem.out.print('#');\n\t\t\t\tfor (int j = 1; j < w-1; j++) {\n\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t}\n\t\t\t\tSystem.out.println('#');\n\t\t\t}\n\t\t\tfor(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tSystem.out.println();\n\t\t}", "h = stdIn.nextInt()", "h", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "w = stdIn.nextInt()", "w", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "if((h+w) == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "(h+w) == 0", "(h+w)", "h", "w", "0", "{\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "System.exit(0)", "System.exit", "System", "0", "for(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "{\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for (int i = 1; i < h-1; i++) {\n\n\t\t\t\tSystem.out.print('#');\n\t\t\t\tfor (int j = 1; j < w-1; j++) {\n\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t}\n\t\t\t\tSystem.out.println('#');\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < h-1", "i", "h-1", "h", "1", "i++", "i++", "i", "{\n\n\t\t\t\tSystem.out.print('#');\n\t\t\t\tfor (int j = 1; j < w-1; j++) {\n\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t}\n\t\t\t\tSystem.out.println('#');\n\t\t\t}", "{\n\n\t\t\t\tSystem.out.print('#');\n\t\t\t\tfor (int j = 1; j < w-1; j++) {\n\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t}\n\t\t\t\tSystem.out.println('#');\n\t\t\t}", "System.out.print('#')", "System.out.print", "System.out", "System", "System.out", "'#'", "for (int j = 1; j < w-1; j++) {\n\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j < w-1", "j", "w-1", "w", "1", "j++", "j++", "j", "{\n\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t}", "System.out.print('.')", "System.out.print", "System.out", "System", "System.out", "'.'", "System.out.println('#')", "System.out.println", "System.out", "System", "System.out", "'#'", "for(int i = 0; i < w; i++) {\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "{\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { int h, w; Scanner stdIn = new Scanner(System.in); while (true) { h = stdIn.nextInt(); w = stdIn.nextInt(); if((h+w) == 0) { System.exit(0); } for(int i = 0; i < w; i++) { System.out.print("#"); } System.out.println(); for (int i = 1; i < h-1; i++) { System.out.print('#'); for (int j = 1; j < w-1; j++) { System.out.print('.'); } System.out.println('#'); } for(int i = 0; i < w; i++) { System.out.print("#"); } System.out.println(); System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 2, 2, 17, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 129, 5 ], [ 129, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 30, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 30, 57 ], [ 57, 58 ], [ 57, 59 ], [ 30, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 60, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 30, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 79, 89 ], [ 89, 90 ], [ 90, 91 ], [ 79, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 100, 100 ], [ 100, 101 ], [ 100, 102 ], [ 100, 103 ], [ 30, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 30, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 30, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 30, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 6, 126 ], [ 126, 127 ], [ 0, 128 ], [ 128, 129 ], [ 128, 130 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int H = scan.nextInt();\n int W = scan.nextInt();\n while(H != 0 || W != 0){\n\tStringBuilder sb2 = new StringBuilder();\n for(int i=0;i<W; i++){\n sb2.append(\"#\");}\n System.out.println(sb2);\n StringBuilder sb = new StringBuilder();\n for(int i=0; i<W-2; i++ ){\n sb.append(\".\");\n }\n for(int j=0; j<H-2; j++){\n System.out.println(\"#\" + sb + \"#\");\n }\n System.out.println(sb2);\n System.out.println(\"\");\n H = scan.nextInt();\n W = scan.nextInt();\n }\n \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int H = scan.nextInt();\n int W = scan.nextInt();\n while(H != 0 || W != 0){\n\tStringBuilder sb2 = new StringBuilder();\n for(int i=0;i<W; i++){\n sb2.append(\"#\");}\n System.out.println(sb2);\n StringBuilder sb = new StringBuilder();\n for(int i=0; i<W-2; i++ ){\n sb.append(\".\");\n }\n for(int j=0; j<H-2; j++){\n System.out.println(\"#\" + sb + \"#\");\n }\n System.out.println(sb2);\n System.out.println(\"\");\n H = scan.nextInt();\n W = scan.nextInt();\n }\n \n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int H = scan.nextInt();\n int W = scan.nextInt();\n while(H != 0 || W != 0){\n\tStringBuilder sb2 = new StringBuilder();\n for(int i=0;i<W; i++){\n sb2.append(\"#\");}\n System.out.println(sb2);\n StringBuilder sb = new StringBuilder();\n for(int i=0; i<W-2; i++ ){\n sb.append(\".\");\n }\n for(int j=0; j<H-2; j++){\n System.out.println(\"#\" + sb + \"#\");\n }\n System.out.println(sb2);\n System.out.println(\"\");\n H = scan.nextInt();\n W = scan.nextInt();\n }\n \n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int H = scan.nextInt();\n int W = scan.nextInt();\n while(H != 0 || W != 0){\n\tStringBuilder sb2 = new StringBuilder();\n for(int i=0;i<W; i++){\n sb2.append(\"#\");}\n System.out.println(sb2);\n StringBuilder sb = new StringBuilder();\n for(int i=0; i<W-2; i++ ){\n sb.append(\".\");\n }\n for(int j=0; j<H-2; j++){\n System.out.println(\"#\" + sb + \"#\");\n }\n System.out.println(sb2);\n System.out.println(\"\");\n H = scan.nextInt();\n W = scan.nextInt();\n }\n \n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int H = scan.nextInt();", "H", "scan.nextInt()", "scan.nextInt", "scan", "int W = scan.nextInt();", "W", "scan.nextInt()", "scan.nextInt", "scan", "while(H != 0 || W != 0){\n\tStringBuilder sb2 = new StringBuilder();\n for(int i=0;i<W; i++){\n sb2.append(\"#\");}\n System.out.println(sb2);\n StringBuilder sb = new StringBuilder();\n for(int i=0; i<W-2; i++ ){\n sb.append(\".\");\n }\n for(int j=0; j<H-2; j++){\n System.out.println(\"#\" + sb + \"#\");\n }\n System.out.println(sb2);\n System.out.println(\"\");\n H = scan.nextInt();\n W = scan.nextInt();\n }", "H != 0 || W != 0", "H != 0", "H", "0", "W != 0", "W", "0", "{\n\tStringBuilder sb2 = new StringBuilder();\n for(int i=0;i<W; i++){\n sb2.append(\"#\");}\n System.out.println(sb2);\n StringBuilder sb = new StringBuilder();\n for(int i=0; i<W-2; i++ ){\n sb.append(\".\");\n }\n for(int j=0; j<H-2; j++){\n System.out.println(\"#\" + sb + \"#\");\n }\n System.out.println(sb2);\n System.out.println(\"\");\n H = scan.nextInt();\n W = scan.nextInt();\n }", "StringBuilder sb2 = new StringBuilder();", "sb2", "new StringBuilder()", "for(int i=0;i<W; i++){\n sb2.append(\"#\");}", "int i=0;", "int i=0;", "i", "0", "i<W", "i", "W", "i++", "i++", "i", "{\n sb2.append(\"#\");}", "{\n sb2.append(\"#\");}", "sb2.append(\"#\")", "sb2.append", "sb2", "\"#\"", "System.out.println(sb2)", "System.out.println", "System.out", "System", "System.out", "sb2", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for(int i=0; i<W-2; i++ ){\n sb.append(\".\");\n }", "int i=0;", "int i=0;", "i", "0", "i<W-2", "i", "W-2", "W", "2", "i++", "i++", "i", "{\n sb.append(\".\");\n }", "{\n sb.append(\".\");\n }", "sb.append(\".\")", "sb.append", "sb", "\".\"", "for(int j=0; j<H-2; j++){\n System.out.println(\"#\" + sb + \"#\");\n }", "int j=0;", "int j=0;", "j", "0", "j<H-2", "j", "H-2", "H", "2", "j++", "j++", "j", "{\n System.out.println(\"#\" + sb + \"#\");\n }", "{\n System.out.println(\"#\" + sb + \"#\");\n }", "System.out.println(\"#\" + sb + \"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\" + sb + \"#\"", "\"#\" + sb + \"#\"", "\"#\"", "sb", "\"#\"", "System.out.println(sb2)", "System.out.println", "System.out", "System", "System.out", "sb2", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "H = scan.nextInt()", "H", "scan.nextInt()", "scan.nextInt", "scan", "W = scan.nextInt()", "W", "scan.nextInt()", "scan.nextInt", "scan", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int H = scan.nextInt();\n int W = scan.nextInt();\n while(H != 0 || W != 0){\n\tStringBuilder sb2 = new StringBuilder();\n for(int i=0;i<W; i++){\n sb2.append(\"#\");}\n System.out.println(sb2);\n StringBuilder sb = new StringBuilder();\n for(int i=0; i<W-2; i++ ){\n sb.append(\".\");\n }\n for(int j=0; j<H-2; j++){\n System.out.println(\"#\" + sb + \"#\");\n }\n System.out.println(sb2);\n System.out.println(\"\");\n H = scan.nextInt();\n W = scan.nextInt();\n }\n \n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int H = scan.nextInt();\n int W = scan.nextInt();\n while(H != 0 || W != 0){\n\tStringBuilder sb2 = new StringBuilder();\n for(int i=0;i<W; i++){\n sb2.append(\"#\");}\n System.out.println(sb2);\n StringBuilder sb = new StringBuilder();\n for(int i=0; i<W-2; i++ ){\n sb.append(\".\");\n }\n for(int j=0; j<H-2; j++){\n System.out.println(\"#\" + sb + \"#\");\n }\n System.out.println(sb2);\n System.out.println(\"\");\n H = scan.nextInt();\n W = scan.nextInt();\n }\n \n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int H = scan.nextInt(); int W = scan.nextInt(); while(H != 0 || W != 0){ StringBuilder sb2 = new StringBuilder(); for(int i=0;i<W; i++){ sb2.append("#");} System.out.println(sb2); StringBuilder sb = new StringBuilder(); for(int i=0; i<W-2; i++ ){ sb.append("."); } for(int j=0; j<H-2; j++){ System.out.println("#" + sb + "#"); } System.out.println(sb2); System.out.println(""); H = scan.nextInt(); W = scan.nextInt(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 41, 13, 20, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 159, 11 ], [ 159, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 22 ], [ 22, 23 ], [ 22, 24 ], [ 14, 25 ], [ 25, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 29, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 46, 48 ], [ 29, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 29, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 29, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 67, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 96, 97 ], [ 96, 98 ], [ 91, 99 ], [ 99, 100 ], [ 100, 101 ], [ 91, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 80, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 109, 120 ], [ 121, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 122, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 122, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 79, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 29, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 14, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 150, 155 ], [ 12, 156 ], [ 156, 157 ], [ 0, 158 ], [ 158, 159 ], [ 158, 160 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strArray = new String[2];\n StringBuilder sb = new StringBuilder();\n String line;\n while (true) {\n line = br.readLine();\n strArray = line.split(\" \");\n int h = Integer.parseInt(strArray[0]);\n int w = Integer.parseInt(strArray[1]);\n if(h == 0 && w == 0) {\n break;\n }\n for (int i = 0;i < h;i++) {\n if (i == 0 || i == (h - 1)) {\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }\n else {\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strArray = new String[2];\n StringBuilder sb = new StringBuilder();\n String line;\n while (true) {\n line = br.readLine();\n strArray = line.split(\" \");\n int h = Integer.parseInt(strArray[0]);\n int w = Integer.parseInt(strArray[1]);\n if(h == 0 && w == 0) {\n break;\n }\n for (int i = 0;i < h;i++) {\n if (i == 0 || i == (h - 1)) {\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }\n else {\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strArray = new String[2];\n StringBuilder sb = new StringBuilder();\n String line;\n while (true) {\n line = br.readLine();\n strArray = line.split(\" \");\n int h = Integer.parseInt(strArray[0]);\n int w = Integer.parseInt(strArray[1]);\n if(h == 0 && w == 0) {\n break;\n }\n for (int i = 0;i < h;i++) {\n if (i == 0 || i == (h - 1)) {\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }\n else {\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strArray = new String[2];\n StringBuilder sb = new StringBuilder();\n String line;\n while (true) {\n line = br.readLine();\n strArray = line.split(\" \");\n int h = Integer.parseInt(strArray[0]);\n int w = Integer.parseInt(strArray[1]);\n if(h == 0 && w == 0) {\n break;\n }\n for (int i = 0;i < h;i++) {\n if (i == 0 || i == (h - 1)) {\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }\n else {\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String[] strArray = new String[2];", "strArray", "new String[2]", "2", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String line;", "line", "while (true) {\n line = br.readLine();\n strArray = line.split(\" \");\n int h = Integer.parseInt(strArray[0]);\n int w = Integer.parseInt(strArray[1]);\n if(h == 0 && w == 0) {\n break;\n }\n for (int i = 0;i < h;i++) {\n if (i == 0 || i == (h - 1)) {\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }\n else {\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }", "true", "{\n line = br.readLine();\n strArray = line.split(\" \");\n int h = Integer.parseInt(strArray[0]);\n int w = Integer.parseInt(strArray[1]);\n if(h == 0 && w == 0) {\n break;\n }\n for (int i = 0;i < h;i++) {\n if (i == 0 || i == (h - 1)) {\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }\n else {\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }", "line = br.readLine()", "line", "br.readLine()", "br.readLine", "br", "strArray = line.split(\" \")", "strArray", "line.split(\" \")", "line.split", "line", "\" \"", "int h = Integer.parseInt(strArray[0]);", "h", "Integer.parseInt(strArray[0])", "Integer.parseInt", "Integer", "strArray[0]", "strArray", "0", "int w = Integer.parseInt(strArray[1]);", "w", "Integer.parseInt(strArray[1])", "Integer.parseInt", "Integer", "strArray[1]", "strArray", "1", "if(h == 0 && w == 0) {\n break;\n }", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n break;\n }", "break;", "for (int i = 0;i < h;i++) {\n if (i == 0 || i == (h - 1)) {\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }\n else {\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n if (i == 0 || i == (h - 1)) {\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }\n else {\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }", "{\n if (i == 0 || i == (h - 1)) {\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }\n else {\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }", "if (i == 0 || i == (h - 1)) {\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }\n else {\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }", "i == 0 || i == (h - 1)", "i == 0", "i", "0", "i == (h - 1)", "i", "(h - 1)", "h", "1", "{\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }", "for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }", "int f = 0;", "int f = 0;", "f", "0", "f < w", "f", "w", "f++", "f++", "f", "{\n sb.append(\"#\");\n }", "{\n sb.append(\"#\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "{\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }", "for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }", "int f = 0;", "int f = 0;", "f", "0", "f < w", "f", "w", "f++", "f++", "f", "{\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }", "{\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }", "if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }", "f == 0 || f == (w - 1)", "f == 0", "f", "0", "f == (w - 1)", "f", "(w - 1)", "w", "1", "{\n sb.append(\"#\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "{\n sb.append(\".\");\n }", "sb.append(\".\")", "sb.append", "sb", "\".\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strArray = new String[2];\n StringBuilder sb = new StringBuilder();\n String line;\n while (true) {\n line = br.readLine();\n strArray = line.split(\" \");\n int h = Integer.parseInt(strArray[0]);\n int w = Integer.parseInt(strArray[1]);\n if(h == 0 && w == 0) {\n break;\n }\n for (int i = 0;i < h;i++) {\n if (i == 0 || i == (h - 1)) {\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }\n else {\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String[] strArray = new String[2];\n StringBuilder sb = new StringBuilder();\n String line;\n while (true) {\n line = br.readLine();\n strArray = line.split(\" \");\n int h = Integer.parseInt(strArray[0]);\n int w = Integer.parseInt(strArray[1]);\n if(h == 0 && w == 0) {\n break;\n }\n for (int i = 0;i < h;i++) {\n if (i == 0 || i == (h - 1)) {\n for (int f = 0;f < w;f++) {\n sb.append(\"#\");\n }\n }\n else {\n for (int f = 0;f < w;f++) {\n if (f == 0 || f == (w - 1)) {\n sb.append(\"#\");\n }\n else {\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String[] strArray = new String[2]; StringBuilder sb = new StringBuilder(); String line; while (true) { line = br.readLine(); strArray = line.split(" "); int h = Integer.parseInt(strArray[0]); int w = Integer.parseInt(strArray[1]); if(h == 0 && w == 0) { break; } for (int i = 0;i < h;i++) { if (i == 0 || i == (h - 1)) { for (int f = 0;f < w;f++) { sb.append("#"); } } else { for (int f = 0;f < w;f++) { if (f == 0 || f == (w - 1)) { sb.append("#"); } else { sb.append("."); } } } sb.append("\n"); } sb.append("\n"); } System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 2, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 18, 18, 13, 13, 17, 13, 0, 18, 18, 13, 13, 17, 13, 40, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 18, 13, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 17, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 18, 13, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 18, 18, 13, 13, 17, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 18, 13, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 18, 18, 13, 13, 17, 17, 30, 4, 18, 18, 13, 13, 13, 30, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 233, 5 ], [ 233, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 35, 36 ], [ 35, 37 ], [ 26, 38 ], [ 38, 39 ], [ 39, 40 ], [ 26, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 42, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 42, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 42, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 42, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 70, 76 ], [ 42, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 77, 83 ], [ 42, 84 ], [ 84, 85 ], [ 8, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 86, 96 ], [ 96, 97 ], [ 97, 98 ], [ 86, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 104, 116 ], [ 116, 117 ], [ 117, 118 ], [ 104, 119 ], [ 120, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 100, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 100, 130 ], [ 130, 131 ], [ 130, 132 ], [ 100, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 133, 145 ], [ 145, 146 ], [ 146, 147 ], [ 133, 148 ], [ 149, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 157, 163 ], [ 150, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 165, 168 ], [ 150, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 170, 173 ], [ 100, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 100, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 179, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 186, 190 ], [ 179, 191 ], [ 191, 192 ], [ 192, 193 ], [ 179, 194 ], [ 195, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 197, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 204, 208 ], [ 203, 209 ], [ 196, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 211, 216 ], [ 196, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 218, 223 ], [ 100, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 226, 228 ], [ 224, 229 ], [ 6, 230 ], [ 230, 231 ], [ 0, 232 ], [ 232, 233 ], [ 232, 234 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[][] ty = new int[10000][2];\n\t\tint t = 1;\n\t\tint y = 1;\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; t != 0 || y != 0; i++) {\n\n\t\t\tString line = sc.nextLine();\n\t\t\tString[] HW = line.split(\" \");\n\t\t\tt = Integer.parseInt(HW[0]);\n\t\t\ty = Integer.parseInt(HW[1]);\n\t\t\tty[i][0] = t;\n\t\t\tty[i][1] = y;\n\n\t\t\tcount++;\n\n\t\t}\n\n\t\tfor (int i = 0; i < count-1; i++) {\n\n\n\n\t\t\t//ここを分岐させる\n\t\t\tStringBuilder x = new StringBuilder();\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\n\t\t\t\tx.append(\"#\");\n\n\n\t\t\t}\n\n\t\t\tString z = x.toString();\n\n\n\t\t\tStringBuilder a = new StringBuilder();\n\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tString b = a.toString();\n\n\n\n\t\t\tfor (int j = 0; j < ty[i][0]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\n\n\t\t}\n\n\t}\n\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[][] ty = new int[10000][2];\n\t\tint t = 1;\n\t\tint y = 1;\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; t != 0 || y != 0; i++) {\n\n\t\t\tString line = sc.nextLine();\n\t\t\tString[] HW = line.split(\" \");\n\t\t\tt = Integer.parseInt(HW[0]);\n\t\t\ty = Integer.parseInt(HW[1]);\n\t\t\tty[i][0] = t;\n\t\t\tty[i][1] = y;\n\n\t\t\tcount++;\n\n\t\t}\n\n\t\tfor (int i = 0; i < count-1; i++) {\n\n\n\n\t\t\t//ここを分岐させる\n\t\t\tStringBuilder x = new StringBuilder();\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\n\t\t\t\tx.append(\"#\");\n\n\n\t\t\t}\n\n\t\t\tString z = x.toString();\n\n\n\t\t\tStringBuilder a = new StringBuilder();\n\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tString b = a.toString();\n\n\n\n\t\t\tfor (int j = 0; j < ty[i][0]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\n\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[][] ty = new int[10000][2];\n\t\tint t = 1;\n\t\tint y = 1;\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; t != 0 || y != 0; i++) {\n\n\t\t\tString line = sc.nextLine();\n\t\t\tString[] HW = line.split(\" \");\n\t\t\tt = Integer.parseInt(HW[0]);\n\t\t\ty = Integer.parseInt(HW[1]);\n\t\t\tty[i][0] = t;\n\t\t\tty[i][1] = y;\n\n\t\t\tcount++;\n\n\t\t}\n\n\t\tfor (int i = 0; i < count-1; i++) {\n\n\n\n\t\t\t//ここを分岐させる\n\t\t\tStringBuilder x = new StringBuilder();\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\n\t\t\t\tx.append(\"#\");\n\n\n\t\t\t}\n\n\t\t\tString z = x.toString();\n\n\n\t\t\tStringBuilder a = new StringBuilder();\n\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tString b = a.toString();\n\n\n\n\t\t\tfor (int j = 0; j < ty[i][0]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\n\n\t\t}\n\n\t}", "main", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[][] ty = new int[10000][2];\n\t\tint t = 1;\n\t\tint y = 1;\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; t != 0 || y != 0; i++) {\n\n\t\t\tString line = sc.nextLine();\n\t\t\tString[] HW = line.split(\" \");\n\t\t\tt = Integer.parseInt(HW[0]);\n\t\t\ty = Integer.parseInt(HW[1]);\n\t\t\tty[i][0] = t;\n\t\t\tty[i][1] = y;\n\n\t\t\tcount++;\n\n\t\t}\n\n\t\tfor (int i = 0; i < count-1; i++) {\n\n\n\n\t\t\t//ここを分岐させる\n\t\t\tStringBuilder x = new StringBuilder();\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\n\t\t\t\tx.append(\"#\");\n\n\n\t\t\t}\n\n\t\t\tString z = x.toString();\n\n\n\t\t\tStringBuilder a = new StringBuilder();\n\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tString b = a.toString();\n\n\n\n\t\t\tfor (int j = 0; j < ty[i][0]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\n\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int[][] ty = new int[10000][2];", "ty", "new int[10000][2]", "10000", "2", "int t = 1;", "t", "1", "int y = 1;", "y", "1", "int count = 0;", "count", "0", "for (int i = 0; t != 0 || y != 0; i++) {\n\n\t\t\tString line = sc.nextLine();\n\t\t\tString[] HW = line.split(\" \");\n\t\t\tt = Integer.parseInt(HW[0]);\n\t\t\ty = Integer.parseInt(HW[1]);\n\t\t\tty[i][0] = t;\n\t\t\tty[i][1] = y;\n\n\t\t\tcount++;\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "t != 0 || y != 0", "t != 0", "t", "0", "y != 0", "y", "0", "i++", "i++", "i", "{\n\n\t\t\tString line = sc.nextLine();\n\t\t\tString[] HW = line.split(\" \");\n\t\t\tt = Integer.parseInt(HW[0]);\n\t\t\ty = Integer.parseInt(HW[1]);\n\t\t\tty[i][0] = t;\n\t\t\tty[i][1] = y;\n\n\t\t\tcount++;\n\n\t\t}", "{\n\n\t\t\tString line = sc.nextLine();\n\t\t\tString[] HW = line.split(\" \");\n\t\t\tt = Integer.parseInt(HW[0]);\n\t\t\ty = Integer.parseInt(HW[1]);\n\t\t\tty[i][0] = t;\n\t\t\tty[i][1] = y;\n\n\t\t\tcount++;\n\n\t\t}", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "String[] HW = line.split(\" \");", "HW", "line.split(\" \")", "line.split", "line", "\" \"", "t = Integer.parseInt(HW[0])", "t", "Integer.parseInt(HW[0])", "Integer.parseInt", "Integer", "HW[0]", "HW", "0", "y = Integer.parseInt(HW[1])", "y", "Integer.parseInt(HW[1])", "Integer.parseInt", "Integer", "HW[1]", "HW", "1", "ty[i][0] = t", "ty[i][0]", "ty[i]", "ty", "i", "0", "t", "ty[i][1] = y", "ty[i][1]", "ty[i]", "ty", "i", "1", "y", "count++", "count", "for (int i = 0; i < count-1; i++) {\n\n\n\n\t\t\t//ここを分岐させる\n\t\t\tStringBuilder x = new StringBuilder();\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\n\t\t\t\tx.append(\"#\");\n\n\n\t\t\t}\n\n\t\t\tString z = x.toString();\n\n\n\t\t\tStringBuilder a = new StringBuilder();\n\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tString b = a.toString();\n\n\n\n\t\t\tfor (int j = 0; j < ty[i][0]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < count-1", "i", "count-1", "count", "1", "i++", "i++", "i", "{\n\n\n\n\t\t\t//ここを分岐させる\n\t\t\tStringBuilder x = new StringBuilder();\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\n\t\t\t\tx.append(\"#\");\n\n\n\t\t\t}\n\n\t\t\tString z = x.toString();\n\n\n\t\t\tStringBuilder a = new StringBuilder();\n\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tString b = a.toString();\n\n\n\n\t\t\tfor (int j = 0; j < ty[i][0]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\n\n\t\t}", "{\n\n\n\n\t\t\t//ここを分岐させる\n\t\t\tStringBuilder x = new StringBuilder();\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\n\t\t\t\tx.append(\"#\");\n\n\n\t\t\t}\n\n\t\t\tString z = x.toString();\n\n\n\t\t\tStringBuilder a = new StringBuilder();\n\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tString b = a.toString();\n\n\n\n\t\t\tfor (int j = 0; j < ty[i][0]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\n\n\t\t}", "StringBuilder x = new StringBuilder();", "x", "new StringBuilder()", "for (int j = 0; j < ty[i][1]; j++) {\n\n\t\t\t\tx.append(\"#\");\n\n\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < ty[i][1]", "j", "ty[i][1]", "ty[i]", "ty", "i", "1", "j++", "j++", "j", "{\n\n\t\t\t\tx.append(\"#\");\n\n\n\t\t\t}", "{\n\n\t\t\t\tx.append(\"#\");\n\n\n\t\t\t}", "x.append(\"#\")", "x.append", "x", "\"#\"", "String z = x.toString();", "z", "x.toString()", "x.toString", "x", "StringBuilder a = new StringBuilder();", "a", "new StringBuilder()", "for (int j = 0; j < ty[i][1]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}\n\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < ty[i][1]", "j", "ty[i][1]", "ty[i]", "ty", "i", "1", "j++", "j++", "j", "{\n\t\t\t\tif (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}\n\n\t\t\t}", "{\n\t\t\t\tif (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}\n\n\t\t\t}", "if (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}", "j == 0 || j== ty[i][1]-1", "j == 0", "j", "0", "j== ty[i][1]-1", "j", "ty[i][1]-1", "ty[i][1]", "ty[i]", "ty", "i", "1", "1", "{\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}", "a.append(\"#\")", "a.append", "a", "\"#\"", "{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}", "a.append(\".\")", "a.append", "a", "\".\"", "String b = a.toString();", "b", "a.toString()", "a.toString", "a", "for (int j = 0; j < ty[i][0]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}\n\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < ty[i][0]", "j", "ty[i][0]", "ty[i]", "ty", "i", "0", "j++", "j++", "j", "{\n\t\t\t\tif (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}\n\n\t\t\t}", "{\n\t\t\t\tif (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}\n\n\t\t\t}", "if (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}", "j == 0 || j== ty[i][0]-1", "j == 0", "j", "0", "j== ty[i][0]-1", "j", "ty[i][0]-1", "ty[i][0]", "ty[i]", "ty", "i", "0", "1", "{\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t}", "System.out.println(z)", "System.out.println", "System.out", "System", "System.out", "z", "{\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}", "System.out.println(b)", "System.out.println", "System.out", "System", "System.out", "b", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[][] ty = new int[10000][2];\n\t\tint t = 1;\n\t\tint y = 1;\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; t != 0 || y != 0; i++) {\n\n\t\t\tString line = sc.nextLine();\n\t\t\tString[] HW = line.split(\" \");\n\t\t\tt = Integer.parseInt(HW[0]);\n\t\t\ty = Integer.parseInt(HW[1]);\n\t\t\tty[i][0] = t;\n\t\t\tty[i][1] = y;\n\n\t\t\tcount++;\n\n\t\t}\n\n\t\tfor (int i = 0; i < count-1; i++) {\n\n\n\n\t\t\t//ここを分岐させる\n\t\t\tStringBuilder x = new StringBuilder();\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\n\t\t\t\tx.append(\"#\");\n\n\n\t\t\t}\n\n\t\t\tString z = x.toString();\n\n\n\t\t\tStringBuilder a = new StringBuilder();\n\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tString b = a.toString();\n\n\n\n\t\t\tfor (int j = 0; j < ty[i][0]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\n\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint[][] ty = new int[10000][2];\n\t\tint t = 1;\n\t\tint y = 1;\n\n\t\tint count = 0;\n\n\t\tfor (int i = 0; t != 0 || y != 0; i++) {\n\n\t\t\tString line = sc.nextLine();\n\t\t\tString[] HW = line.split(\" \");\n\t\t\tt = Integer.parseInt(HW[0]);\n\t\t\ty = Integer.parseInt(HW[1]);\n\t\t\tty[i][0] = t;\n\t\t\tty[i][1] = y;\n\n\t\t\tcount++;\n\n\t\t}\n\n\t\tfor (int i = 0; i < count-1; i++) {\n\n\n\n\t\t\t//ここを分岐させる\n\t\t\tStringBuilder x = new StringBuilder();\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\n\t\t\t\tx.append(\"#\");\n\n\n\t\t\t}\n\n\t\t\tString z = x.toString();\n\n\n\t\t\tStringBuilder a = new StringBuilder();\n\n\t\t\tfor (int j = 0; j < ty[i][1]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][1]-1) {\n\t\t\t\t\ta.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\ta.append(\".\");\n\t\t\t\t}\n\n\t\t\t}\n\n\n\t\t\tString b = a.toString();\n\n\n\n\t\t\tfor (int j = 0; j < ty[i][0]; j++) {\n\t\t\t\tif (j == 0 || j== ty[i][0]-1) {\n\t\t\t\t\tSystem.out.println(z);\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(b);\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\n\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int[][] ty = new int[10000][2]; int t = 1; int y = 1; int count = 0; for (int i = 0; t != 0 || y != 0; i++) { String line = sc.nextLine(); String[] HW = line.split(" "); t = Integer.parseInt(HW[0]); y = Integer.parseInt(HW[1]); ty[i][0] = t; ty[i][1] = y; count++; } for (int i = 0; i < count-1; i++) { //ここを分岐させる StringBuilder x = new StringBuilder(); for (int j = 0; j < ty[i][1]; j++) { x.append("#"); } String z = x.toString(); StringBuilder a = new StringBuilder(); for (int j = 0; j < ty[i][1]; j++) { if (j == 0 || j== ty[i][1]-1) { a.append("#"); }else{ a.append("."); } } String b = a.toString(); for (int j = 0; j < ty[i][0]; j++) { if (j == 0 || j== ty[i][0]-1) { System.out.println(z); } else { System.out.println(b); } } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 106, 5 ], [ 106, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 17, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 73, 75 ], [ 65, 76 ], [ 76, 77 ], [ 76, 78 ], [ 63, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 63, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 49, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 17, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 6, 103 ], [ 103, 104 ], [ 0, 105 ], [ 105, 106 ], [ 105, 107 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t//Scanner scan = new Scanner(System.in);\n\n\n\t\tint H = scan.nextInt();\n\t int W = scan.nextInt();\n\n\n\t if(H == 0 && W == 0)break;\n\t for(int i = 1;i <= H ;i++){\n\t \tfor(int j = 1;j <= W; j++){\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}\n\t \tSystem.out.println();\n\t \t//sb.append(\"\\n\");\n\t }\n\t //sb.append(\"\\n\");\n\t System.out.println();\n\t }\n\t\t//System.out.print(sb);\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t//Scanner scan = new Scanner(System.in);\n\n\n\t\tint H = scan.nextInt();\n\t int W = scan.nextInt();\n\n\n\t if(H == 0 && W == 0)break;\n\t for(int i = 1;i <= H ;i++){\n\t \tfor(int j = 1;j <= W; j++){\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}\n\t \tSystem.out.println();\n\t \t//sb.append(\"\\n\");\n\t }\n\t //sb.append(\"\\n\");\n\t System.out.println();\n\t }\n\t\t//System.out.print(sb);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t//Scanner scan = new Scanner(System.in);\n\n\n\t\tint H = scan.nextInt();\n\t int W = scan.nextInt();\n\n\n\t if(H == 0 && W == 0)break;\n\t for(int i = 1;i <= H ;i++){\n\t \tfor(int j = 1;j <= W; j++){\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}\n\t \tSystem.out.println();\n\t \t//sb.append(\"\\n\");\n\t }\n\t //sb.append(\"\\n\");\n\t System.out.println();\n\t }\n\t\t//System.out.print(sb);\n\n\t}", "main", "{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t//Scanner scan = new Scanner(System.in);\n\n\n\t\tint H = scan.nextInt();\n\t int W = scan.nextInt();\n\n\n\t if(H == 0 && W == 0)break;\n\t for(int i = 1;i <= H ;i++){\n\t \tfor(int j = 1;j <= W; j++){\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}\n\t \tSystem.out.println();\n\t \t//sb.append(\"\\n\");\n\t }\n\t //sb.append(\"\\n\");\n\t System.out.println();\n\t }\n\t\t//System.out.print(sb);\n\n\t}", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n\t\t//Scanner scan = new Scanner(System.in);\n\n\n\t\tint H = scan.nextInt();\n\t int W = scan.nextInt();\n\n\n\t if(H == 0 && W == 0)break;\n\t for(int i = 1;i <= H ;i++){\n\t \tfor(int j = 1;j <= W; j++){\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}\n\t \tSystem.out.println();\n\t \t//sb.append(\"\\n\");\n\t }\n\t //sb.append(\"\\n\");\n\t System.out.println();\n\t }", "true", "{\n\t\t//Scanner scan = new Scanner(System.in);\n\n\n\t\tint H = scan.nextInt();\n\t int W = scan.nextInt();\n\n\n\t if(H == 0 && W == 0)break;\n\t for(int i = 1;i <= H ;i++){\n\t \tfor(int j = 1;j <= W; j++){\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}\n\t \tSystem.out.println();\n\t \t//sb.append(\"\\n\");\n\t }\n\t //sb.append(\"\\n\");\n\t System.out.println();\n\t }", "int H = scan.nextInt();", "H", "scan.nextInt()", "scan.nextInt", "scan", "int W = scan.nextInt();", "W", "scan.nextInt()", "scan.nextInt", "scan", "if(H == 0 && W == 0)break;", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "break;", "for(int i = 1;i <= H ;i++){\n\t \tfor(int j = 1;j <= W; j++){\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}\n\t \tSystem.out.println();\n\t \t//sb.append(\"\\n\");\n\t }", "int i = 1;", "int i = 1;", "i", "1", "i <= H", "i", "H", "i++", "i++", "i", "{\n\t \tfor(int j = 1;j <= W; j++){\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}\n\t \tSystem.out.println();\n\t \t//sb.append(\"\\n\");\n\t }", "{\n\t \tfor(int j = 1;j <= W; j++){\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}\n\t \tSystem.out.println();\n\t \t//sb.append(\"\\n\");\n\t }", "for(int j = 1;j <= W; j++){\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}", "int j = 1;", "int j = 1;", "j", "1", "j <= W", "j", "W", "j++", "j++", "j", "{\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}", "{\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}", "if((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}", "(i == 1 || j == 1) || i == H || j == W", "(i == 1 || j == 1) || i == H || j == W", "(i == 1 || j == 1)", "i == 1", "i", "1", "j == 1", "j", "1", "i == H", "i", "H", "j == W", "j", "W", "{\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t//Scanner scan = new Scanner(System.in);\n\n\n\t\tint H = scan.nextInt();\n\t int W = scan.nextInt();\n\n\n\t if(H == 0 && W == 0)break;\n\t for(int i = 1;i <= H ;i++){\n\t \tfor(int j = 1;j <= W; j++){\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}\n\t \tSystem.out.println();\n\t \t//sb.append(\"\\n\");\n\t }\n\t //sb.append(\"\\n\");\n\t System.out.println();\n\t }\n\t\t//System.out.print(sb);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true){\n\t\t//Scanner scan = new Scanner(System.in);\n\n\n\t\tint H = scan.nextInt();\n\t int W = scan.nextInt();\n\n\n\t if(H == 0 && W == 0)break;\n\t for(int i = 1;i <= H ;i++){\n\t \tfor(int j = 1;j <= W; j++){\n\t \t\tif((i == 1 || j == 1) || i == H || j == W){\n\t \t\t\t//sb.append(\"#\");\n\t \t\t\tSystem.out.print(\"#\");\n\t \t\t}else{\n\t \t\t\t//sb.append(\".\");\n\t \t\t\tSystem.out.print(\".\");\n\t \t\t}\n\n\t \t}\n\t \tSystem.out.println();\n\t \t//sb.append(\"\\n\");\n\t }\n\t //sb.append(\"\\n\");\n\t System.out.println();\n\t }\n\t\t//System.out.print(sb);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { StringBuilder sb = new StringBuilder(); Scanner scan = new Scanner(System.in); while(true){ //Scanner scan = new Scanner(System.in); int H = scan.nextInt(); int W = scan.nextInt(); if(H == 0 && W == 0)break; for(int i = 1;i <= H ;i++){ for(int j = 1;j <= W; j++){ if((i == 1 || j == 1) || i == H || j == W){ //sb.append("#"); System.out.print("#"); }else{ //sb.append("."); System.out.print("."); } } System.out.println(); //sb.append("\n"); } //sb.append("\n"); System.out.println(); } //System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 0, 13, 17, 0, 13, 2, 4, 18, 13, 17, 2, 13, 17, 17, 4, 18, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 118, 5 ], [ 118, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 39, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 46, 54 ], [ 54, 55 ], [ 55, 56 ], [ 46, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 39, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 39, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 39, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 82, 92 ], [ 92, 93 ], [ 93, 94 ], [ 82, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 39, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 39, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 31, 114 ], [ 6, 115 ], [ 115, 116 ], [ 0, 117 ], [ 117, 118 ], [ 117, 119 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint h = Integer.parseInt(std.next());\n\t\t\tint w = Integer.parseInt(std.next());\n\t\t\tif(h!=0 && w!=0){\n\t\t\t\tString line = \"\";\n\t\t\t\tString line2 = \"#\";\n\t\t\t\tfor(int m=1; m<=w; m++){\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}\n\t\t\t\tline2 = line2.substring(0, w-1)+\"#\";\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tfor(int n=2; n<=h-1; n++){\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tSystem.out.println();\n\t\t\t}else break;\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint h = Integer.parseInt(std.next());\n\t\t\tint w = Integer.parseInt(std.next());\n\t\t\tif(h!=0 && w!=0){\n\t\t\t\tString line = \"\";\n\t\t\t\tString line2 = \"#\";\n\t\t\t\tfor(int m=1; m<=w; m++){\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}\n\t\t\t\tline2 = line2.substring(0, w-1)+\"#\";\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tfor(int n=2; n<=h-1; n++){\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tSystem.out.println();\n\t\t\t}else break;\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint h = Integer.parseInt(std.next());\n\t\t\tint w = Integer.parseInt(std.next());\n\t\t\tif(h!=0 && w!=0){\n\t\t\t\tString line = \"\";\n\t\t\t\tString line2 = \"#\";\n\t\t\t\tfor(int m=1; m<=w; m++){\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}\n\t\t\t\tline2 = line2.substring(0, w-1)+\"#\";\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tfor(int n=2; n<=h-1; n++){\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tSystem.out.println();\n\t\t\t}else break;\n\t\t}\n\t}", "main", "{\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint h = Integer.parseInt(std.next());\n\t\t\tint w = Integer.parseInt(std.next());\n\t\t\tif(h!=0 && w!=0){\n\t\t\t\tString line = \"\";\n\t\t\t\tString line2 = \"#\";\n\t\t\t\tfor(int m=1; m<=w; m++){\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}\n\t\t\t\tline2 = line2.substring(0, w-1)+\"#\";\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tfor(int n=2; n<=h-1; n++){\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tSystem.out.println();\n\t\t\t}else break;\n\t\t}\n\t}", "Scanner std = new Scanner(System.in);", "std", "new Scanner(System.in)", "while(true){\n\t\t\tint h = Integer.parseInt(std.next());\n\t\t\tint w = Integer.parseInt(std.next());\n\t\t\tif(h!=0 && w!=0){\n\t\t\t\tString line = \"\";\n\t\t\t\tString line2 = \"#\";\n\t\t\t\tfor(int m=1; m<=w; m++){\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}\n\t\t\t\tline2 = line2.substring(0, w-1)+\"#\";\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tfor(int n=2; n<=h-1; n++){\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tSystem.out.println();\n\t\t\t}else break;\n\t\t}", "true", "{\n\t\t\tint h = Integer.parseInt(std.next());\n\t\t\tint w = Integer.parseInt(std.next());\n\t\t\tif(h!=0 && w!=0){\n\t\t\t\tString line = \"\";\n\t\t\t\tString line2 = \"#\";\n\t\t\t\tfor(int m=1; m<=w; m++){\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}\n\t\t\t\tline2 = line2.substring(0, w-1)+\"#\";\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tfor(int n=2; n<=h-1; n++){\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tSystem.out.println();\n\t\t\t}else break;\n\t\t}", "int h = Integer.parseInt(std.next());", "h", "Integer.parseInt(std.next())", "Integer.parseInt", "Integer", "std.next()", "std.next", "std", "int w = Integer.parseInt(std.next());", "w", "Integer.parseInt(std.next())", "Integer.parseInt", "Integer", "std.next()", "std.next", "std", "if(h!=0 && w!=0){\n\t\t\t\tString line = \"\";\n\t\t\t\tString line2 = \"#\";\n\t\t\t\tfor(int m=1; m<=w; m++){\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}\n\t\t\t\tline2 = line2.substring(0, w-1)+\"#\";\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tfor(int n=2; n<=h-1; n++){\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tSystem.out.println();\n\t\t\t}else break;", "h!=0 && w!=0", "h!=0", "h", "0", "w!=0", "w", "0", "{\n\t\t\t\tString line = \"\";\n\t\t\t\tString line2 = \"#\";\n\t\t\t\tfor(int m=1; m<=w; m++){\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}\n\t\t\t\tline2 = line2.substring(0, w-1)+\"#\";\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tfor(int n=2; n<=h-1; n++){\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tSystem.out.println();\n\t\t\t}", "String line = \"\";", "line", "\"\"", "String line2 = \"#\";", "line2", "\"#\"", "for(int m=1; m<=w; m++){\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}", "int m=1;", "int m=1;", "m", "1", "m<=w", "m", "w", "m++", "m++", "m", "{\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}", "{\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}", "line += \"#\"", "line", "\"#\"", "line2 += \".\"", "line2", "\".\"", "line2 = line2.substring(0, w-1)+\"#\"", "line2", "line2.substring(0, w-1)+\"#\"", "line2.substring(0, w-1)", "line2.substring", "line2", "0", "w-1", "w", "1", "\"#\"", "System.out.println(line)", "System.out.println", "System.out", "System", "System.out", "line", "for(int n=2; n<=h-1; n++){\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}", "int n=2;", "int n=2;", "n", "2", "n<=h-1", "n", "h-1", "h", "1", "n++", "n++", "n", "{\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}", "System.out.println(line2)", "System.out.println", "System.out", "System", "System.out", "line2", "System.out.println(line)", "System.out.println", "System.out", "System", "System.out", "line", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "break;", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint h = Integer.parseInt(std.next());\n\t\t\tint w = Integer.parseInt(std.next());\n\t\t\tif(h!=0 && w!=0){\n\t\t\t\tString line = \"\";\n\t\t\t\tString line2 = \"#\";\n\t\t\t\tfor(int m=1; m<=w; m++){\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}\n\t\t\t\tline2 = line2.substring(0, w-1)+\"#\";\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tfor(int n=2; n<=h-1; n++){\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tSystem.out.println();\n\t\t\t}else break;\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner std = new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint h = Integer.parseInt(std.next());\n\t\t\tint w = Integer.parseInt(std.next());\n\t\t\tif(h!=0 && w!=0){\n\t\t\t\tString line = \"\";\n\t\t\t\tString line2 = \"#\";\n\t\t\t\tfor(int m=1; m<=w; m++){\n\t\t\t\t\tline += \"#\";\n\t\t\t\t\tline2 += \".\";\n\t\t\t\t}\n\t\t\t\tline2 = line2.substring(0, w-1)+\"#\";\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tfor(int n=2; n<=h-1; n++){\n\t\t\t\t\tSystem.out.println(line2);\n\t\t\t\t}\n\t\t\t\tSystem.out.println(line);\n\t\t\t\tSystem.out.println();\n\t\t\t}else break;\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner std = new Scanner(System.in); while(true){ int h = Integer.parseInt(std.next()); int w = Integer.parseInt(std.next()); if(h!=0 && w!=0){ String line = ""; String line2 = "#"; for(int m=1; m<=w; m++){ line += "#"; line2 += "."; } line2 = line2.substring(0, w-1)+"#"; System.out.println(line); for(int n=2; n<=h-1; n++){ System.out.println(line2); } System.out.println(line); System.out.println(); }else break; } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 30, 41, 13, 4, 13, 13, 41, 13, 4, 13, 13, 4, 18, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 17, 0, 13, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 17, 29, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 183, 8 ], [ 183, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 24, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 36, 38 ], [ 24, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 44, 46 ], [ 24, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 57, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 57, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 57, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 74, 84 ], [ 84, 85 ], [ 85, 86 ], [ 74, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 57, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 57, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 24, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 11, 112 ], [ 112, 113 ], [ 113, 114 ], [ 9, 115 ], [ 115, 116 ], [ 183, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 128, 129 ], [ 128, 130 ], [ 123, 131 ], [ 131, 132 ], [ 132, 133 ], [ 123, 134 ], [ 135, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 119, 139 ], [ 139, 140 ], [ 117, 141 ], [ 141, 142 ], [ 183, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 150, 151 ], [ 149, 152 ], [ 145, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 160, 162 ], [ 153, 163 ], [ 163, 164 ], [ 164, 165 ], [ 153, 166 ], [ 167, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 168, 171 ], [ 145, 172 ], [ 172, 173 ], [ 173, 174 ], [ 172, 175 ], [ 145, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 143, 180 ], [ 180, 181 ], [ 0, 182 ], [ 182, 183 ], [ 182, 184 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n while(str != null){\n String[] line = str.split(\"\\\\s\");\n int H = Integer.parseInt(line[0]);\n int W = Integer.parseInt(line[1]);\n //System.out.println(H);\n //System.out.println(W);\n\n if(H ==0 && W == 0){\n break;\n }else{\n String TB = createTB(W);\n String IW = createIW(W);\n \n System.out.println(TB);\n for(int i=0;i<H-2;i++){\n System.out.println(IW);\n }\n System.out.println(TB);\n System.out.println(\"\");\n }\n str =br.readLine();\n }\n br.close();\n }\n\n public static String createTB(int W){\n String temp =\"\";\n for(int i =0;i<W;i++){\n temp +=\"#\";\n }\n return temp;\n }\n \n public static String createIW(int W){\n StringBuilder temp = new StringBuilder();\n temp.append(\"#\");\n for(int i=0;i<W-2;i++){\n temp.append(\".\");\n }\n temp.append(\"#\");\n return temp.toString();\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n while(str != null){\n String[] line = str.split(\"\\\\s\");\n int H = Integer.parseInt(line[0]);\n int W = Integer.parseInt(line[1]);\n //System.out.println(H);\n //System.out.println(W);\n\n if(H ==0 && W == 0){\n break;\n }else{\n String TB = createTB(W);\n String IW = createIW(W);\n \n System.out.println(TB);\n for(int i=0;i<H-2;i++){\n System.out.println(IW);\n }\n System.out.println(TB);\n System.out.println(\"\");\n }\n str =br.readLine();\n }\n br.close();\n }\n\n public static String createTB(int W){\n String temp =\"\";\n for(int i =0;i<W;i++){\n temp +=\"#\";\n }\n return temp;\n }\n \n public static String createIW(int W){\n StringBuilder temp = new StringBuilder();\n temp.append(\"#\");\n for(int i=0;i<W-2;i++){\n temp.append(\".\");\n }\n temp.append(\"#\");\n return temp.toString();\n }\n}", "Main", "public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n while(str != null){\n String[] line = str.split(\"\\\\s\");\n int H = Integer.parseInt(line[0]);\n int W = Integer.parseInt(line[1]);\n //System.out.println(H);\n //System.out.println(W);\n\n if(H ==0 && W == 0){\n break;\n }else{\n String TB = createTB(W);\n String IW = createIW(W);\n \n System.out.println(TB);\n for(int i=0;i<H-2;i++){\n System.out.println(IW);\n }\n System.out.println(TB);\n System.out.println(\"\");\n }\n str =br.readLine();\n }\n br.close();\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n while(str != null){\n String[] line = str.split(\"\\\\s\");\n int H = Integer.parseInt(line[0]);\n int W = Integer.parseInt(line[1]);\n //System.out.println(H);\n //System.out.println(W);\n\n if(H ==0 && W == 0){\n break;\n }else{\n String TB = createTB(W);\n String IW = createIW(W);\n \n System.out.println(TB);\n for(int i=0;i<H-2;i++){\n System.out.println(IW);\n }\n System.out.println(TB);\n System.out.println(\"\");\n }\n str =br.readLine();\n }\n br.close();\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "while(str != null){\n String[] line = str.split(\"\\\\s\");\n int H = Integer.parseInt(line[0]);\n int W = Integer.parseInt(line[1]);\n //System.out.println(H);\n //System.out.println(W);\n\n if(H ==0 && W == 0){\n break;\n }else{\n String TB = createTB(W);\n String IW = createIW(W);\n \n System.out.println(TB);\n for(int i=0;i<H-2;i++){\n System.out.println(IW);\n }\n System.out.println(TB);\n System.out.println(\"\");\n }\n str =br.readLine();\n }", "str != null", "str", "null", "{\n String[] line = str.split(\"\\\\s\");\n int H = Integer.parseInt(line[0]);\n int W = Integer.parseInt(line[1]);\n //System.out.println(H);\n //System.out.println(W);\n\n if(H ==0 && W == 0){\n break;\n }else{\n String TB = createTB(W);\n String IW = createIW(W);\n \n System.out.println(TB);\n for(int i=0;i<H-2;i++){\n System.out.println(IW);\n }\n System.out.println(TB);\n System.out.println(\"\");\n }\n str =br.readLine();\n }", "String[] line = str.split(\"\\\\s\");", "line", "str.split(\"\\\\s\")", "str.split", "str", "\"\\\\s\"", "int H = Integer.parseInt(line[0]);", "H", "Integer.parseInt(line[0])", "Integer.parseInt", "Integer", "line[0]", "line", "0", "int W = Integer.parseInt(line[1]);", "W", "Integer.parseInt(line[1])", "Integer.parseInt", "Integer", "line[1]", "line", "1", "if(H ==0 && W == 0){\n break;\n }else{\n String TB = createTB(W);\n String IW = createIW(W);\n \n System.out.println(TB);\n for(int i=0;i<H-2;i++){\n System.out.println(IW);\n }\n System.out.println(TB);\n System.out.println(\"\");\n }", "H ==0 && W == 0", "H ==0", "H", "0", "W == 0", "W", "0", "{\n break;\n }", "break;", "{\n String TB = createTB(W);\n String IW = createIW(W);\n \n System.out.println(TB);\n for(int i=0;i<H-2;i++){\n System.out.println(IW);\n }\n System.out.println(TB);\n System.out.println(\"\");\n }", "String TB = createTB(W);", "TB", "createTB(W)", "createTB", "W", "String IW = createIW(W);", "IW", "createIW(W)", "createIW", "W", "System.out.println(TB)", "System.out.println", "System.out", "System", "System.out", "TB", "for(int i=0;i<H-2;i++){\n System.out.println(IW);\n }", "int i=0;", "int i=0;", "i", "0", "i<H-2", "i", "H-2", "H", "2", "i++", "i++", "i", "{\n System.out.println(IW);\n }", "{\n System.out.println(IW);\n }", "System.out.println(IW)", "System.out.println", "System.out", "System", "System.out", "IW", "System.out.println(TB)", "System.out.println", "System.out", "System", "System.out", "TB", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "str =br.readLine()", "str", "br.readLine()", "br.readLine", "br", "br.close()", "br.close", "br", "String[] args", "args", "public static String createTB(int W){\n String temp =\"\";\n for(int i =0;i<W;i++){\n temp +=\"#\";\n }\n return temp;\n }", "createTB", "{\n String temp =\"\";\n for(int i =0;i<W;i++){\n temp +=\"#\";\n }\n return temp;\n }", "String temp =\"\";", "temp", "\"\"", "for(int i =0;i<W;i++){\n temp +=\"#\";\n }", "int i =0;", "int i =0;", "i", "0", "i<W", "i", "W", "i++", "i++", "i", "{\n temp +=\"#\";\n }", "{\n temp +=\"#\";\n }", "temp +=\"#\"", "temp", "\"#\"", "return temp;", "temp", "int W", "W", "public static String createIW(int W){\n StringBuilder temp = new StringBuilder();\n temp.append(\"#\");\n for(int i=0;i<W-2;i++){\n temp.append(\".\");\n }\n temp.append(\"#\");\n return temp.toString();\n }", "createIW", "{\n StringBuilder temp = new StringBuilder();\n temp.append(\"#\");\n for(int i=0;i<W-2;i++){\n temp.append(\".\");\n }\n temp.append(\"#\");\n return temp.toString();\n }", "StringBuilder temp = new StringBuilder();", "temp", "new StringBuilder()", "temp.append(\"#\")", "temp.append", "temp", "\"#\"", "for(int i=0;i<W-2;i++){\n temp.append(\".\");\n }", "int i=0;", "int i=0;", "i", "0", "i<W-2", "i", "W-2", "W", "2", "i++", "i++", "i", "{\n temp.append(\".\");\n }", "{\n temp.append(\".\");\n }", "temp.append(\".\")", "temp.append", "temp", "\".\"", "temp.append(\"#\")", "temp.append", "temp", "\"#\"", "return temp.toString();", "temp.toString()", "temp.toString", "temp", "int W", "W", "public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n while(str != null){\n String[] line = str.split(\"\\\\s\");\n int H = Integer.parseInt(line[0]);\n int W = Integer.parseInt(line[1]);\n //System.out.println(H);\n //System.out.println(W);\n\n if(H ==0 && W == 0){\n break;\n }else{\n String TB = createTB(W);\n String IW = createIW(W);\n \n System.out.println(TB);\n for(int i=0;i<H-2;i++){\n System.out.println(IW);\n }\n System.out.println(TB);\n System.out.println(\"\");\n }\n str =br.readLine();\n }\n br.close();\n }\n\n public static String createTB(int W){\n String temp =\"\";\n for(int i =0;i<W;i++){\n temp +=\"#\";\n }\n return temp;\n }\n \n public static String createIW(int W){\n StringBuilder temp = new StringBuilder();\n temp.append(\"#\");\n for(int i=0;i<W-2;i++){\n temp.append(\".\");\n }\n temp.append(\"#\");\n return temp.toString();\n }\n}", "public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \n String str = br.readLine();\n \n while(str != null){\n String[] line = str.split(\"\\\\s\");\n int H = Integer.parseInt(line[0]);\n int W = Integer.parseInt(line[1]);\n //System.out.println(H);\n //System.out.println(W);\n\n if(H ==0 && W == 0){\n break;\n }else{\n String TB = createTB(W);\n String IW = createIW(W);\n \n System.out.println(TB);\n for(int i=0;i<H-2;i++){\n System.out.println(IW);\n }\n System.out.println(TB);\n System.out.println(\"\");\n }\n str =br.readLine();\n }\n br.close();\n }\n\n public static String createTB(int W){\n String temp =\"\";\n for(int i =0;i<W;i++){\n temp +=\"#\";\n }\n return temp;\n }\n \n public static String createIW(int W){\n StringBuilder temp = new StringBuilder();\n temp.append(\"#\");\n for(int i=0;i<W-2;i++){\n temp.append(\".\");\n }\n temp.append(\"#\");\n return temp.toString();\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); while(str != null){ String[] line = str.split("\\s"); int H = Integer.parseInt(line[0]); int W = Integer.parseInt(line[1]); //System.out.println(H); //System.out.println(W); if(H ==0 && W == 0){ break; }else{ String TB = createTB(W); String IW = createIW(W); System.out.println(TB); for(int i=0;i<H-2;i++){ System.out.println(IW); } System.out.println(TB); System.out.println(""); } str =br.readLine(); } br.close(); } public static String createTB(int W){ String temp =""; for(int i =0;i<W;i++){ temp +="#"; } return temp; } public static String createIW(int W){ StringBuilder temp = new StringBuilder(); temp.append("#"); for(int i=0;i<W-2;i++){ temp.append("."); } temp.append("#"); return temp.toString(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 2, 17, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 128, 8 ], [ 128, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 18, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 30, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 59, 60 ], [ 50, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 63, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 79, 78 ], [ 88, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 88, 88 ], [ 88, 89 ], [ 88, 90 ], [ 79, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 76, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 76, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 62, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 30, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 11, 122 ], [ 122, 123 ], [ 123, 124 ], [ 9, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.util.InputMismatchException;\nimport java.util.Scanner;\n\npublic class Main{\n\n\n\tpublic static void main(String[] args){\n\n \tScanner scan = new Scanner(System.in);\n\n\t\t\twhile(true){\n\t\t\t\ttry{\n int H=scan.nextInt();\n\t\t\tint W=scan.nextInt();\n\t\t\tif(H==0&&W==0)break;\n\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }System.out.print('\\n');\n\n\t\t\t\t}catch(InputMismatchException e){\n\t\t\t\t\tSystem.out.println(\"??¨??????:\"+e);\n\n\t\t\t\t}\n\n\t\t\t}\n \tscan.close();\n\n\n\t}\n\n}", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\n\tpublic static void main(String[] args){\n\n \tScanner scan = new Scanner(System.in);\n\n\t\t\twhile(true){\n\t\t\t\ttry{\n int H=scan.nextInt();\n\t\t\tint W=scan.nextInt();\n\t\t\tif(H==0&&W==0)break;\n\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }System.out.print('\\n');\n\n\t\t\t\t}catch(InputMismatchException e){\n\t\t\t\t\tSystem.out.println(\"??¨??????:\"+e);\n\n\t\t\t\t}\n\n\t\t\t}\n \tscan.close();\n\n\n\t}\n\n}", "Main", "public static void main(String[] args){\n\n \tScanner scan = new Scanner(System.in);\n\n\t\t\twhile(true){\n\t\t\t\ttry{\n int H=scan.nextInt();\n\t\t\tint W=scan.nextInt();\n\t\t\tif(H==0&&W==0)break;\n\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }System.out.print('\\n');\n\n\t\t\t\t}catch(InputMismatchException e){\n\t\t\t\t\tSystem.out.println(\"??¨??????:\"+e);\n\n\t\t\t\t}\n\n\t\t\t}\n \tscan.close();\n\n\n\t}", "main", "{\n\n \tScanner scan = new Scanner(System.in);\n\n\t\t\twhile(true){\n\t\t\t\ttry{\n int H=scan.nextInt();\n\t\t\tint W=scan.nextInt();\n\t\t\tif(H==0&&W==0)break;\n\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }System.out.print('\\n');\n\n\t\t\t\t}catch(InputMismatchException e){\n\t\t\t\t\tSystem.out.println(\"??¨??????:\"+e);\n\n\t\t\t\t}\n\n\t\t\t}\n \tscan.close();\n\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n\t\t\t\ttry{\n int H=scan.nextInt();\n\t\t\tint W=scan.nextInt();\n\t\t\tif(H==0&&W==0)break;\n\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }System.out.print('\\n');\n\n\t\t\t\t}catch(InputMismatchException e){\n\t\t\t\t\tSystem.out.println(\"??¨??????:\"+e);\n\n\t\t\t\t}\n\n\t\t\t}", "true", "{\n\t\t\t\ttry{\n int H=scan.nextInt();\n\t\t\tint W=scan.nextInt();\n\t\t\tif(H==0&&W==0)break;\n\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }System.out.print('\\n');\n\n\t\t\t\t}catch(InputMismatchException e){\n\t\t\t\t\tSystem.out.println(\"??¨??????:\"+e);\n\n\t\t\t\t}\n\n\t\t\t}", "try{\n int H=scan.nextInt();\n\t\t\tint W=scan.nextInt();\n\t\t\tif(H==0&&W==0)break;\n\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }System.out.print('\\n');\n\n\t\t\t\t}catch(InputMismatchException e){\n\t\t\t\t\tSystem.out.println(\"??¨??????:\"+e);\n\n\t\t\t\t}", "catch(InputMismatchException e){\n\t\t\t\t\tSystem.out.println(\"??¨??????:\"+e);\n\n\t\t\t\t}", "InputMismatchException e", "{\n\t\t\t\t\tSystem.out.println(\"??¨??????:\"+e);\n\n\t\t\t\t}", "System.out.println(\"??¨??????:\"+e)", "System.out.println", "System.out", "System", "System.out", "\"??¨??????:\"+e", "\"??¨??????:\"", "e", "{\n int H=scan.nextInt();\n\t\t\tint W=scan.nextInt();\n\t\t\tif(H==0&&W==0)break;\n\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }System.out.print('\\n');\n\n\t\t\t\t}", "int H=scan.nextInt();", "H", "scan.nextInt()", "scan.nextInt", "scan", "int W=scan.nextInt();", "W", "scan.nextInt()", "scan.nextInt", "scan", "if(H==0&&W==0)break;", "H==0&&W==0", "H==0", "H", "0", "W==0", "W", "0", "break;", "for(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }", "int i=0;", "int i=0;", "i", "0", "i<H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }", "{\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }", "for(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}", "{\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}", "if(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}", "i==0||i==H-1||j==0||j==W-1", "j==0", "i==0||i==H-1||j==0||j==W-1", "i==0", "i", "0", "i==H-1", "i", "H-1", "H", "1", "j==0", "j", "0", "j==W-1", "j", "W-1", "W", "1", "{System.out.print('#');}", "System.out.print('#')", "System.out.print", "System.out", "System", "System.out", "'#'", "{System.out.print('.');}", "System.out.print('.')", "System.out.print", "System.out", "System", "System.out", "'.'", "System.out.print('\\n')", "System.out.print", "System.out", "System", "System.out", "'\\n'", "System.out.print('\\n')", "System.out.print", "System.out", "System", "System.out", "'\\n'", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main{\n\n\n\tpublic static void main(String[] args){\n\n \tScanner scan = new Scanner(System.in);\n\n\t\t\twhile(true){\n\t\t\t\ttry{\n int H=scan.nextInt();\n\t\t\tint W=scan.nextInt();\n\t\t\tif(H==0&&W==0)break;\n\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }System.out.print('\\n');\n\n\t\t\t\t}catch(InputMismatchException e){\n\t\t\t\t\tSystem.out.println(\"??¨??????:\"+e);\n\n\t\t\t\t}\n\n\t\t\t}\n \tscan.close();\n\n\n\t}\n\n}", "public class Main{\n\n\n\tpublic static void main(String[] args){\n\n \tScanner scan = new Scanner(System.in);\n\n\t\t\twhile(true){\n\t\t\t\ttry{\n int H=scan.nextInt();\n\t\t\tint W=scan.nextInt();\n\t\t\tif(H==0&&W==0)break;\n\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i==0||i==H-1||j==0||j==W-1){System.out.print('#');}\n\t\t\t\t\telse{System.out.print('.');}\n\t\t\t\t}System.out.print('\\n');\n\t\t\t }System.out.print('\\n');\n\n\t\t\t\t}catch(InputMismatchException e){\n\t\t\t\t\tSystem.out.println(\"??¨??????:\"+e);\n\n\t\t\t\t}\n\n\t\t\t}\n \tscan.close();\n\n\n\t}\n\n}", "Main" ]
import java.util.InputMismatchException; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); while(true){ try{ int H=scan.nextInt(); int W=scan.nextInt(); if(H==0&&W==0)break; for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ if(i==0||i==H-1||j==0||j==W-1){System.out.print('#');} else{System.out.print('.');} }System.out.print('\n'); }System.out.print('\n'); }catch(InputMismatchException e){ System.out.println("??¨??????:"+e); } } scan.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 41, 13, 20, 28, 13, 13, 30, 30, 4, 18, 13, 4, 13, 4, 18, 13, 17, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 4, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 18, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 0, 13, 4, 18, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 0, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 17, 4, 18, 13, 13, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 223, 8 ], [ 223, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 38, 39 ], [ 20, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 20, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 20, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 20, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 11, 61 ], [ 61, 62 ], [ 61, 63 ], [ 11, 64 ], [ 64, 65 ], [ 64, 66 ], [ 64, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 72, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 11, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 82, 92 ], [ 92, 93 ], [ 93, 94 ], [ 82, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 97, 110 ], [ 110, 111 ], [ 111, 112 ], [ 97, 113 ], [ 114, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 120, 126 ], [ 96, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 9, 133 ], [ 133, 134 ], [ 223, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 146, 147 ], [ 146, 148 ], [ 141, 149 ], [ 149, 150 ], [ 150, 151 ], [ 141, 152 ], [ 153, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 162, 163 ], [ 162, 164 ], [ 157, 165 ], [ 165, 166 ], [ 166, 167 ], [ 157, 168 ], [ 169, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 177, 179 ], [ 170, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 183, 186 ], [ 170, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 189, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 195, 197 ], [ 188, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 202, 203 ], [ 201, 204 ], [ 188, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 209, 210 ], [ 208, 211 ], [ 153, 212 ], [ 212, 213 ], [ 213, 214 ], [ 212, 215 ], [ 137, 216 ], [ 216, 217 ], [ 135, 218 ], [ 218, 219 ], [ 135, 220 ], [ 220, 221 ], [ 0, 222 ], [ 222, 223 ], [ 222, 224 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\n/**\n * Created 2017/06/04.\n */\npublic class Main {\n public static void main(String[] args) {\n\n //??\\?????¨?????????\n Scanner sc = new Scanner(System.in);\n ArrayList<ArrayList<Integer>> ary_input = new ArrayList<>();\n while (true) {\n ArrayList<Integer> ary = new ArrayList<>();\n int input1 = Integer.parseInt(sc.next());\n int input2 = Integer.parseInt(sc.next());\n if (input1 == 0 && input2 == 0) break;\n ary.add(input1);\n ary.add(input2);\n ary_input.add(ary);\n }\n //System.out.println(ary_input);\n\n //??????????????????????´?????????????????????????\n ArrayList<ArrayList<StringBuilder>> ary_sb = new ArrayList<>();\n\n for (ArrayList<Integer> index : ary_input) {\n ary_sb.add(sisaku(index.get(0), index.get(1)));\n }\n //System.out.println(ary_sb);\n \n //??¨?????¢???????????????\n for (int i = 0; i < ary_sb.size(); i++) {\n for (int j = 0; j < ary_sb.get(i).size(); j++) {\n System.out.println(ary_sb.get(i).get(j));\n }\n System.out.println(\"\");\n }\n }\n\n public static ArrayList<StringBuilder> sisaku(int a, int b) {\n ArrayList<StringBuilder> ary = new ArrayList<>();\n for (int i = 0; i < a; i++) {\n StringBuilder str1 = new StringBuilder(\"\");\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }\n }\n ary.add(str1);\n }\n return ary;\n }\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n\n //??\\?????¨?????????\n Scanner sc = new Scanner(System.in);\n ArrayList<ArrayList<Integer>> ary_input = new ArrayList<>();\n while (true) {\n ArrayList<Integer> ary = new ArrayList<>();\n int input1 = Integer.parseInt(sc.next());\n int input2 = Integer.parseInt(sc.next());\n if (input1 == 0 && input2 == 0) break;\n ary.add(input1);\n ary.add(input2);\n ary_input.add(ary);\n }\n //System.out.println(ary_input);\n\n //??????????????????????´?????????????????????????\n ArrayList<ArrayList<StringBuilder>> ary_sb = new ArrayList<>();\n\n for (ArrayList<Integer> index : ary_input) {\n ary_sb.add(sisaku(index.get(0), index.get(1)));\n }\n //System.out.println(ary_sb);\n \n //??¨?????¢???????????????\n for (int i = 0; i < ary_sb.size(); i++) {\n for (int j = 0; j < ary_sb.get(i).size(); j++) {\n System.out.println(ary_sb.get(i).get(j));\n }\n System.out.println(\"\");\n }\n }\n\n public static ArrayList<StringBuilder> sisaku(int a, int b) {\n ArrayList<StringBuilder> ary = new ArrayList<>();\n for (int i = 0; i < a; i++) {\n StringBuilder str1 = new StringBuilder(\"\");\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }\n }\n ary.add(str1);\n }\n return ary;\n }\n}", "Main", "public static void main(String[] args) {\n\n //??\\?????¨?????????\n Scanner sc = new Scanner(System.in);\n ArrayList<ArrayList<Integer>> ary_input = new ArrayList<>();\n while (true) {\n ArrayList<Integer> ary = new ArrayList<>();\n int input1 = Integer.parseInt(sc.next());\n int input2 = Integer.parseInt(sc.next());\n if (input1 == 0 && input2 == 0) break;\n ary.add(input1);\n ary.add(input2);\n ary_input.add(ary);\n }\n //System.out.println(ary_input);\n\n //??????????????????????´?????????????????????????\n ArrayList<ArrayList<StringBuilder>> ary_sb = new ArrayList<>();\n\n for (ArrayList<Integer> index : ary_input) {\n ary_sb.add(sisaku(index.get(0), index.get(1)));\n }\n //System.out.println(ary_sb);\n \n //??¨?????¢???????????????\n for (int i = 0; i < ary_sb.size(); i++) {\n for (int j = 0; j < ary_sb.get(i).size(); j++) {\n System.out.println(ary_sb.get(i).get(j));\n }\n System.out.println(\"\");\n }\n }", "main", "{\n\n //??\\?????¨?????????\n Scanner sc = new Scanner(System.in);\n ArrayList<ArrayList<Integer>> ary_input = new ArrayList<>();\n while (true) {\n ArrayList<Integer> ary = new ArrayList<>();\n int input1 = Integer.parseInt(sc.next());\n int input2 = Integer.parseInt(sc.next());\n if (input1 == 0 && input2 == 0) break;\n ary.add(input1);\n ary.add(input2);\n ary_input.add(ary);\n }\n //System.out.println(ary_input);\n\n //??????????????????????´?????????????????????????\n ArrayList<ArrayList<StringBuilder>> ary_sb = new ArrayList<>();\n\n for (ArrayList<Integer> index : ary_input) {\n ary_sb.add(sisaku(index.get(0), index.get(1)));\n }\n //System.out.println(ary_sb);\n \n //??¨?????¢???????????????\n for (int i = 0; i < ary_sb.size(); i++) {\n for (int j = 0; j < ary_sb.get(i).size(); j++) {\n System.out.println(ary_sb.get(i).get(j));\n }\n System.out.println(\"\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<ArrayList<Integer>> ary_input = new ArrayList<>();", "ary_input", "new ArrayList<>()", "while (true) {\n ArrayList<Integer> ary = new ArrayList<>();\n int input1 = Integer.parseInt(sc.next());\n int input2 = Integer.parseInt(sc.next());\n if (input1 == 0 && input2 == 0) break;\n ary.add(input1);\n ary.add(input2);\n ary_input.add(ary);\n }", "true", "{\n ArrayList<Integer> ary = new ArrayList<>();\n int input1 = Integer.parseInt(sc.next());\n int input2 = Integer.parseInt(sc.next());\n if (input1 == 0 && input2 == 0) break;\n ary.add(input1);\n ary.add(input2);\n ary_input.add(ary);\n }", "ArrayList<Integer> ary = new ArrayList<>();", "ary", "new ArrayList<>()", "int input1 = Integer.parseInt(sc.next());", "input1", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int input2 = Integer.parseInt(sc.next());", "input2", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "if (input1 == 0 && input2 == 0) break;", "input1 == 0 && input2 == 0", "input1 == 0", "input1", "0", "input2 == 0", "input2", "0", "break;", "ary.add(input1)", "ary.add", "ary", "input1", "ary.add(input2)", "ary.add", "ary", "input2", "ary_input.add(ary)", "ary_input.add", "ary_input", "ary", "ArrayList<ArrayList<StringBuilder>> ary_sb = new ArrayList<>();", "ary_sb", "new ArrayList<>()", "for (ArrayList<Integer> index : ary_input) {\n ary_sb.add(sisaku(index.get(0), index.get(1)));\n }", "ArrayList<Integer> index", "ary_input", "{\n ary_sb.add(sisaku(index.get(0), index.get(1)));\n }", "{\n ary_sb.add(sisaku(index.get(0), index.get(1)));\n }", "ary_sb.add(sisaku(index.get(0), index.get(1)))", "ary_sb.add", "ary_sb", "sisaku(index.get(0), index.get(1))", "sisaku", "index.get(0)", "index.get", "index", "0", "index.get(1)", "index.get", "index", "1", "for (int i = 0; i < ary_sb.size(); i++) {\n for (int j = 0; j < ary_sb.get(i).size(); j++) {\n System.out.println(ary_sb.get(i).get(j));\n }\n System.out.println(\"\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < ary_sb.size()", "i", "ary_sb.size()", "ary_sb.size", "ary_sb", "i++", "i++", "i", "{\n for (int j = 0; j < ary_sb.get(i).size(); j++) {\n System.out.println(ary_sb.get(i).get(j));\n }\n System.out.println(\"\");\n }", "{\n for (int j = 0; j < ary_sb.get(i).size(); j++) {\n System.out.println(ary_sb.get(i).get(j));\n }\n System.out.println(\"\");\n }", "for (int j = 0; j < ary_sb.get(i).size(); j++) {\n System.out.println(ary_sb.get(i).get(j));\n }", "int j = 0;", "int j = 0;", "j", "0", "j < ary_sb.get(i).size()", "j", "ary_sb.get(i).size()", "ary_sb.get(i).size", "ary_sb.get(i)", "ary_sb.get", "ary_sb", "i", "j++", "j++", "j", "{\n System.out.println(ary_sb.get(i).get(j));\n }", "{\n System.out.println(ary_sb.get(i).get(j));\n }", "System.out.println(ary_sb.get(i).get(j))", "System.out.println", "System.out", "System", "System.out", "ary_sb.get(i).get(j)", "ary_sb.get(i).get", "ary_sb.get(i)", "ary_sb.get", "ary_sb", "i", "j", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public static ArrayList<StringBuilder> sisaku(int a, int b) {\n ArrayList<StringBuilder> ary = new ArrayList<>();\n for (int i = 0; i < a; i++) {\n StringBuilder str1 = new StringBuilder(\"\");\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }\n }\n ary.add(str1);\n }\n return ary;\n }", "sisaku", "{\n ArrayList<StringBuilder> ary = new ArrayList<>();\n for (int i = 0; i < a; i++) {\n StringBuilder str1 = new StringBuilder(\"\");\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }\n }\n ary.add(str1);\n }\n return ary;\n }", "ArrayList<StringBuilder> ary = new ArrayList<>();", "ary", "new ArrayList<>()", "for (int i = 0; i < a; i++) {\n StringBuilder str1 = new StringBuilder(\"\");\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }\n }\n ary.add(str1);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < a", "i", "a", "i++", "i++", "i", "{\n StringBuilder str1 = new StringBuilder(\"\");\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }\n }\n ary.add(str1);\n }", "{\n StringBuilder str1 = new StringBuilder(\"\");\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }\n }\n ary.add(str1);\n }", "StringBuilder str1 = new StringBuilder(\"\");", "str1", "new StringBuilder(\"\")", "for (int j = 0; j < b; j++) {\n if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < b", "j", "b", "j++", "j++", "j", "{\n if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }\n }", "{\n if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }\n }", "if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }", "i == 0 || i == (a - 1)", "i == 0", "i", "0", "i == (a - 1)", "i", "(a - 1)", "a", "1", "{\n str1 = str1.append(\"#\");\n }", "str1 = str1.append(\"#\")", "str1", "str1.append(\"#\")", "str1.append", "str1", "\"#\"", "{\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }", "if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }", "j == 0 || j == (b - 1)", "j == 0", "j", "0", "j == (b - 1)", "j", "(b - 1)", "b", "1", "{\n str1 = str1.append(\"#\");\n }", "str1 = str1.append(\"#\")", "str1", "str1.append(\"#\")", "str1.append", "str1", "\"#\"", "{\n str1 = str1.append(\".\");\n }", "str1 = str1.append(\".\")", "str1", "str1.append(\".\")", "str1.append", "str1", "\".\"", "ary.add(str1)", "ary.add", "ary", "str1", "return ary;", "ary", "int a", "a", "int b", "b", "public class Main {\n public static void main(String[] args) {\n\n //??\\?????¨?????????\n Scanner sc = new Scanner(System.in);\n ArrayList<ArrayList<Integer>> ary_input = new ArrayList<>();\n while (true) {\n ArrayList<Integer> ary = new ArrayList<>();\n int input1 = Integer.parseInt(sc.next());\n int input2 = Integer.parseInt(sc.next());\n if (input1 == 0 && input2 == 0) break;\n ary.add(input1);\n ary.add(input2);\n ary_input.add(ary);\n }\n //System.out.println(ary_input);\n\n //??????????????????????´?????????????????????????\n ArrayList<ArrayList<StringBuilder>> ary_sb = new ArrayList<>();\n\n for (ArrayList<Integer> index : ary_input) {\n ary_sb.add(sisaku(index.get(0), index.get(1)));\n }\n //System.out.println(ary_sb);\n \n //??¨?????¢???????????????\n for (int i = 0; i < ary_sb.size(); i++) {\n for (int j = 0; j < ary_sb.get(i).size(); j++) {\n System.out.println(ary_sb.get(i).get(j));\n }\n System.out.println(\"\");\n }\n }\n\n public static ArrayList<StringBuilder> sisaku(int a, int b) {\n ArrayList<StringBuilder> ary = new ArrayList<>();\n for (int i = 0; i < a; i++) {\n StringBuilder str1 = new StringBuilder(\"\");\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }\n }\n ary.add(str1);\n }\n return ary;\n }\n}", "public class Main {\n public static void main(String[] args) {\n\n //??\\?????¨?????????\n Scanner sc = new Scanner(System.in);\n ArrayList<ArrayList<Integer>> ary_input = new ArrayList<>();\n while (true) {\n ArrayList<Integer> ary = new ArrayList<>();\n int input1 = Integer.parseInt(sc.next());\n int input2 = Integer.parseInt(sc.next());\n if (input1 == 0 && input2 == 0) break;\n ary.add(input1);\n ary.add(input2);\n ary_input.add(ary);\n }\n //System.out.println(ary_input);\n\n //??????????????????????´?????????????????????????\n ArrayList<ArrayList<StringBuilder>> ary_sb = new ArrayList<>();\n\n for (ArrayList<Integer> index : ary_input) {\n ary_sb.add(sisaku(index.get(0), index.get(1)));\n }\n //System.out.println(ary_sb);\n \n //??¨?????¢???????????????\n for (int i = 0; i < ary_sb.size(); i++) {\n for (int j = 0; j < ary_sb.get(i).size(); j++) {\n System.out.println(ary_sb.get(i).get(j));\n }\n System.out.println(\"\");\n }\n }\n\n public static ArrayList<StringBuilder> sisaku(int a, int b) {\n ArrayList<StringBuilder> ary = new ArrayList<>();\n for (int i = 0; i < a; i++) {\n StringBuilder str1 = new StringBuilder(\"\");\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == (a - 1)) {\n str1 = str1.append(\"#\");\n } else {\n if (j == 0 || j == (b - 1)) {\n str1 = str1.append(\"#\");\n } else {\n str1 = str1.append(\".\");\n }\n }\n }\n ary.add(str1);\n }\n return ary;\n }\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; /** * Created 2017/06/04. */ public class Main { public static void main(String[] args) { //??\?????¨????????? Scanner sc = new Scanner(System.in); ArrayList<ArrayList<Integer>> ary_input = new ArrayList<>(); while (true) { ArrayList<Integer> ary = new ArrayList<>(); int input1 = Integer.parseInt(sc.next()); int input2 = Integer.parseInt(sc.next()); if (input1 == 0 && input2 == 0) break; ary.add(input1); ary.add(input2); ary_input.add(ary); } //System.out.println(ary_input); //??????????????????????´????????????????????????? ArrayList<ArrayList<StringBuilder>> ary_sb = new ArrayList<>(); for (ArrayList<Integer> index : ary_input) { ary_sb.add(sisaku(index.get(0), index.get(1))); } //System.out.println(ary_sb); //??¨?????¢??????????????? for (int i = 0; i < ary_sb.size(); i++) { for (int j = 0; j < ary_sb.get(i).size(); j++) { System.out.println(ary_sb.get(i).get(j)); } System.out.println(""); } } public static ArrayList<StringBuilder> sisaku(int a, int b) { ArrayList<StringBuilder> ary = new ArrayList<>(); for (int i = 0; i < a; i++) { StringBuilder str1 = new StringBuilder(""); for (int j = 0; j < b; j++) { if (i == 0 || i == (a - 1)) { str1 = str1.append("#"); } else { if (j == 0 || j == (b - 1)) { str1 = str1.append("#"); } else { str1 = str1.append("."); } } } ary.add(str1); } return ary; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 2, 13, 17, 13, 2, 13, 17, 2, 2, 13, 17, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 14, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 43, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 59, 58 ], [ 68, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 68, 68 ], [ 68, 69 ], [ 68, 70 ], [ 59, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 56, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 56, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 42, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 14, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 6, 100 ], [ 100, 101 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n if(h < 3) break;\n \n for(int i = 0; i < h; i++){\n for(int j = 0; j < w; j++){\n \t\n \tif(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}\n \n //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.');\n }\n System.out.println();\n }\n \n System.out.println();\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n if(h < 3) break;\n \n for(int i = 0; i < h; i++){\n for(int j = 0; j < w; j++){\n \t\n \tif(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}\n \n //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.');\n }\n System.out.println();\n }\n \n System.out.println();\n }\n }\n}", "Main", "public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n if(h < 3) break;\n \n for(int i = 0; i < h; i++){\n for(int j = 0; j < w; j++){\n \t\n \tif(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}\n \n //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.');\n }\n System.out.println();\n }\n \n System.out.println();\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n while(true){\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n if(h < 3) break;\n \n for(int i = 0; i < h; i++){\n for(int j = 0; j < w; j++){\n \t\n \tif(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}\n \n //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.');\n }\n System.out.println();\n }\n \n System.out.println();\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n if(h < 3) break;\n \n for(int i = 0; i < h; i++){\n for(int j = 0; j < w; j++){\n \t\n \tif(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}\n \n //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.');\n }\n System.out.println();\n }\n \n System.out.println();\n }", "true", "{\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n if(h < 3) break;\n \n for(int i = 0; i < h; i++){\n for(int j = 0; j < w; j++){\n \t\n \tif(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}\n \n //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.');\n }\n System.out.println();\n }\n \n System.out.println();\n }", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int w = sc.nextInt();", "w", "sc.nextInt()", "sc.nextInt", "sc", "if(h < 3) break;", "h < 3", "h", "3", "break;", "for(int i = 0; i < h; i++){\n for(int j = 0; j < w; j++){\n \t\n \tif(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}\n \n //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.');\n }\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n for(int j = 0; j < w; j++){\n \t\n \tif(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}\n \n //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.');\n }\n System.out.println();\n }", "{\n for(int j = 0; j < w; j++){\n \t\n \tif(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}\n \n //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.');\n }\n System.out.println();\n }", "for(int j = 0; j < w; j++){\n \t\n \tif(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}\n \n //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.');\n }", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n \t\n \tif(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}\n \n //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.');\n }", "{\n \t\n \tif(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}\n \n //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.');\n }", "if(i == 0 || i + 1 == h || j == 0 || j + 1 == w){\n \t\tSystem.out.print(\"#\");\n \t}else{\n \t\tSystem.out.print(\".\");\n \t}", "i == 0 || i + 1 == h || j == 0 || j + 1 == w", "j == 0", "i == 0 || i + 1 == h || j == 0 || j + 1 == w", "i == 0", "i", "0", "i + 1 == h", "i + 1", "i", "1", "h", "j == 0", "j", "0", "j + 1 == w", "j + 1", "j", "1", "w", "{\n \t\tSystem.out.print(\"#\");\n \t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n \t\tSystem.out.print(\".\");\n \t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String [] args", "args" ]
import java.util.Scanner; class Main { public static void main(String [] args){ Scanner sc = new Scanner(System.in); while(true){ int h = sc.nextInt(); int w = sc.nextInt(); if(h < 3) break; for(int i = 0; i < h; i++){ for(int j = 0; j < w; j++){ if(i == 0 || i + 1 == h || j == 0 || j + 1 == w){ System.out.print("#"); }else{ System.out.print("."); } //System.out.print(i == 0 || i + 1 == h || j == 0 || j + 1 == w ? '#' : '.'); } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 4, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 13, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 125, 5 ], [ 125, 6 ], [ 6, 7 ], [ 125, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 18, 38 ], [ 38, 39 ], [ 18, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 40, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 54, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 61, 71 ], [ 71, 72 ], [ 72, 73 ], [ 61, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 54, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 18, 88 ], [ 88, 89 ], [ 18, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 8, 95 ], [ 95, 96 ], [ 125, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 100, 108 ], [ 108, 109 ], [ 109, 110 ], [ 100, 111 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 99, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.util.*;\n\n\npublic class Main {\n\tstatic int w;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNextInt()){\n int h=sc.nextInt();\n w=sc.nextInt();\n if(h==0&&w==0)break;\n mm();\n for(int i=0;i<h-2;i++){\n \t System.out.print(\"#\");\n \t for(int j=0;j<w-2;j++){\n \t \tSystem.out.print(\".\"); \t\n \t}\n \t System.out.println(\"#\"); \n }\n mm();\n System.out.println();\n \n }\n\t\t\t\n }\n static void mm(){\n \tfor(int j=0;j<w;j++){\n \t\tSystem.out.print(\"#\");\n \t\t\n \t}\n \tSystem.out.println();\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tstatic int w;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNextInt()){\n int h=sc.nextInt();\n w=sc.nextInt();\n if(h==0&&w==0)break;\n mm();\n for(int i=0;i<h-2;i++){\n \t System.out.print(\"#\");\n \t for(int j=0;j<w-2;j++){\n \t \tSystem.out.print(\".\"); \t\n \t}\n \t System.out.println(\"#\"); \n }\n mm();\n System.out.println();\n \n }\n\t\t\t\n }\n static void mm(){\n \tfor(int j=0;j<w;j++){\n \t\tSystem.out.print(\"#\");\n \t\t\n \t}\n \tSystem.out.println();\n }\n}", "Main", "static int w;", "w", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNextInt()){\n int h=sc.nextInt();\n w=sc.nextInt();\n if(h==0&&w==0)break;\n mm();\n for(int i=0;i<h-2;i++){\n \t System.out.print(\"#\");\n \t for(int j=0;j<w-2;j++){\n \t \tSystem.out.print(\".\"); \t\n \t}\n \t System.out.println(\"#\"); \n }\n mm();\n System.out.println();\n \n }\n\t\t\t\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while(sc.hasNextInt()){\n int h=sc.nextInt();\n w=sc.nextInt();\n if(h==0&&w==0)break;\n mm();\n for(int i=0;i<h-2;i++){\n \t System.out.print(\"#\");\n \t for(int j=0;j<w-2;j++){\n \t \tSystem.out.print(\".\"); \t\n \t}\n \t System.out.println(\"#\"); \n }\n mm();\n System.out.println();\n \n }\n\t\t\t\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNextInt()){\n int h=sc.nextInt();\n w=sc.nextInt();\n if(h==0&&w==0)break;\n mm();\n for(int i=0;i<h-2;i++){\n \t System.out.print(\"#\");\n \t for(int j=0;j<w-2;j++){\n \t \tSystem.out.print(\".\"); \t\n \t}\n \t System.out.println(\"#\"); \n }\n mm();\n System.out.println();\n \n }", "sc.hasNextInt()", "sc.hasNextInt", "sc", "{\n int h=sc.nextInt();\n w=sc.nextInt();\n if(h==0&&w==0)break;\n mm();\n for(int i=0;i<h-2;i++){\n \t System.out.print(\"#\");\n \t for(int j=0;j<w-2;j++){\n \t \tSystem.out.print(\".\"); \t\n \t}\n \t System.out.println(\"#\"); \n }\n mm();\n System.out.println();\n \n }", "int h=sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "w=sc.nextInt()", "w", "sc.nextInt()", "sc.nextInt", "sc", "if(h==0&&w==0)break;", "h==0&&w==0", "h==0", "h", "0", "w==0", "w", "0", "break;", "mm()", "mm", "for(int i=0;i<h-2;i++){\n \t System.out.print(\"#\");\n \t for(int j=0;j<w-2;j++){\n \t \tSystem.out.print(\".\"); \t\n \t}\n \t System.out.println(\"#\"); \n }", "int i=0;", "int i=0;", "i", "0", "i<h-2", "i", "h-2", "h", "2", "i++", "i++", "i", "{\n \t System.out.print(\"#\");\n \t for(int j=0;j<w-2;j++){\n \t \tSystem.out.print(\".\"); \t\n \t}\n \t System.out.println(\"#\"); \n }", "{\n \t System.out.print(\"#\");\n \t for(int j=0;j<w-2;j++){\n \t \tSystem.out.print(\".\"); \t\n \t}\n \t System.out.println(\"#\"); \n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for(int j=0;j<w-2;j++){\n \t \tSystem.out.print(\".\"); \t\n \t}", "int j=0;", "int j=0;", "j", "0", "j<w-2", "j", "w-2", "w", "2", "j++", "j++", "j", "{\n \t \tSystem.out.print(\".\"); \t\n \t}", "{\n \t \tSystem.out.print(\".\"); \t\n \t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\"", "mm()", "mm", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "static void mm(){\n \tfor(int j=0;j<w;j++){\n \t\tSystem.out.print(\"#\");\n \t\t\n \t}\n \tSystem.out.println();\n }", "mm", "{\n \tfor(int j=0;j<w;j++){\n \t\tSystem.out.print(\"#\");\n \t\t\n \t}\n \tSystem.out.println();\n }", "for(int j=0;j<w;j++){\n \t\tSystem.out.print(\"#\");\n \t\t\n \t}", "int j=0;", "int j=0;", "j", "0", "j<w", "j", "w", "j++", "j++", "j", "{\n \t\tSystem.out.print(\"#\");\n \t\t\n \t}", "{\n \t\tSystem.out.print(\"#\");\n \t\t\n \t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "public class Main {\n\tstatic int w;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNextInt()){\n int h=sc.nextInt();\n w=sc.nextInt();\n if(h==0&&w==0)break;\n mm();\n for(int i=0;i<h-2;i++){\n \t System.out.print(\"#\");\n \t for(int j=0;j<w-2;j++){\n \t \tSystem.out.print(\".\"); \t\n \t}\n \t System.out.println(\"#\"); \n }\n mm();\n System.out.println();\n \n }\n\t\t\t\n }\n static void mm(){\n \tfor(int j=0;j<w;j++){\n \t\tSystem.out.print(\"#\");\n \t\t\n \t}\n \tSystem.out.println();\n }\n}", "public class Main {\n\tstatic int w;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while(sc.hasNextInt()){\n int h=sc.nextInt();\n w=sc.nextInt();\n if(h==0&&w==0)break;\n mm();\n for(int i=0;i<h-2;i++){\n \t System.out.print(\"#\");\n \t for(int j=0;j<w-2;j++){\n \t \tSystem.out.print(\".\"); \t\n \t}\n \t System.out.println(\"#\"); \n }\n mm();\n System.out.println();\n \n }\n\t\t\t\n }\n static void mm(){\n \tfor(int j=0;j<w;j++){\n \t\tSystem.out.print(\"#\");\n \t\t\n \t}\n \tSystem.out.println();\n }\n}", "Main" ]
import java.util.*; public class Main { static int w; public static void main(String[] args) { Scanner sc = new Scanner(System.in); while(sc.hasNextInt()){ int h=sc.nextInt(); w=sc.nextInt(); if(h==0&&w==0)break; mm(); for(int i=0;i<h-2;i++){ System.out.print("#"); for(int j=0;j<w-2;j++){ System.out.print("."); } System.out.println("#"); } mm(); System.out.println(); } } static void mm(){ for(int j=0;j<w;j++){ System.out.print("#"); } System.out.println(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 0, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 3, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 41, 13, 13, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 0, 13, 17, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 193, 11 ], [ 193, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 23, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 34, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 20, 45 ], [ 45, 46 ], [ 45, 47 ], [ 20, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 48, 57 ], [ 57, 58 ], [ 57, 59 ], [ 57, 60 ], [ 12, 61 ], [ 61, 62 ], [ 193, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 77, 78 ], [ 78, 79 ], [ 69, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 65, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 65, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 65, 98 ], [ 98, 99 ], [ 98, 100 ], [ 65, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 65, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 65, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 112, 122 ], [ 122, 123 ], [ 123, 124 ], [ 112, 125 ], [ 126, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 65, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 65, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 65, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 65, 150 ], [ 150, 151 ], [ 151, 152 ], [ 150, 153 ], [ 65, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 161, 163 ], [ 154, 164 ], [ 164, 165 ], [ 165, 166 ], [ 154, 167 ], [ 168, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 169, 172 ], [ 65, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 65, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 177, 182 ], [ 182, 183 ], [ 183, 184 ], [ 65, 185 ], [ 185, 186 ], [ 185, 187 ], [ 63, 188 ], [ 188, 189 ], [ 63, 190 ], [ 190, 191 ], [ 0, 192 ], [ 192, 193 ], [ 192, 194 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] tmp = br.readLine().split(\" \");\n\t\t\tlong h = Long.parseLong(tmp[0]);\n\t\t\tlong w = Long.parseLong(tmp[1]);\n\t\t\ttmp = null;\n\t\t\tif (h == 0 && w == 0)break;\n\t\t\telse write(h, w);\n\t\t}\n\t}\n\n\tprivate static void write(long h, long w) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i = 0;i < w;i++){\n\t\t\tsb.append(\"#\");\n\t\t}\n\t\tsb.append(String.format(\"%n\"));\n\t\tString header = sb.toString();\n\t\tString footer = header;\n\t\t\n\t\tsb.delete(0, sb.length());\n\t\t\n\t\tsb.append(\"#\");\n\t\tfor(int i = 0;i < w - 2;i++){\n\t\t\tsb.append(\".\");\n\t\t}\n\t\tsb.append(String.format(\"#%n\"));\n\t\tString body = sb.toString();\n\t\t\n\t\tsb.delete(0, sb.length());\n\t\t\n\t\tsb.append(header);\n\t\tfor(int i = 0;i < h - 2;i++){\n\t\t\tsb.append(body);\n\t\t}\n\t\tsb.append(footer);\n\t\tSystem.out.println(sb.toString());\n\t\tsb = null;\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] tmp = br.readLine().split(\" \");\n\t\t\tlong h = Long.parseLong(tmp[0]);\n\t\t\tlong w = Long.parseLong(tmp[1]);\n\t\t\ttmp = null;\n\t\t\tif (h == 0 && w == 0)break;\n\t\t\telse write(h, w);\n\t\t}\n\t}\n\n\tprivate static void write(long h, long w) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i = 0;i < w;i++){\n\t\t\tsb.append(\"#\");\n\t\t}\n\t\tsb.append(String.format(\"%n\"));\n\t\tString header = sb.toString();\n\t\tString footer = header;\n\t\t\n\t\tsb.delete(0, sb.length());\n\t\t\n\t\tsb.append(\"#\");\n\t\tfor(int i = 0;i < w - 2;i++){\n\t\t\tsb.append(\".\");\n\t\t}\n\t\tsb.append(String.format(\"#%n\"));\n\t\tString body = sb.toString();\n\t\t\n\t\tsb.delete(0, sb.length());\n\t\t\n\t\tsb.append(header);\n\t\tfor(int i = 0;i < h - 2;i++){\n\t\t\tsb.append(body);\n\t\t}\n\t\tsb.append(footer);\n\t\tSystem.out.println(sb.toString());\n\t\tsb = null;\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] tmp = br.readLine().split(\" \");\n\t\t\tlong h = Long.parseLong(tmp[0]);\n\t\t\tlong w = Long.parseLong(tmp[1]);\n\t\t\ttmp = null;\n\t\t\tif (h == 0 && w == 0)break;\n\t\t\telse write(h, w);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] tmp = br.readLine().split(\" \");\n\t\t\tlong h = Long.parseLong(tmp[0]);\n\t\t\tlong w = Long.parseLong(tmp[1]);\n\t\t\ttmp = null;\n\t\t\tif (h == 0 && w == 0)break;\n\t\t\telse write(h, w);\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\t\t\tString[] tmp = br.readLine().split(\" \");\n\t\t\tlong h = Long.parseLong(tmp[0]);\n\t\t\tlong w = Long.parseLong(tmp[1]);\n\t\t\ttmp = null;\n\t\t\tif (h == 0 && w == 0)break;\n\t\t\telse write(h, w);\n\t\t}", "true", "{\n\t\t\tString[] tmp = br.readLine().split(\" \");\n\t\t\tlong h = Long.parseLong(tmp[0]);\n\t\t\tlong w = Long.parseLong(tmp[1]);\n\t\t\ttmp = null;\n\t\t\tif (h == 0 && w == 0)break;\n\t\t\telse write(h, w);\n\t\t}", "String[] tmp = br.readLine().split(\" \");", "tmp", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "long h = Long.parseLong(tmp[0]);", "h", "Long.parseLong(tmp[0])", "Long.parseLong", "Long", "tmp[0]", "tmp", "0", "long w = Long.parseLong(tmp[1]);", "w", "Long.parseLong(tmp[1])", "Long.parseLong", "Long", "tmp[1]", "tmp", "1", "tmp = null", "tmp", "null", "if (h == 0 && w == 0)break;\n\t\t\telse write(h, w);", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "write(h, w)", "write", "h", "w", "String[] args", "args", "private static void write(long h, long w) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i = 0;i < w;i++){\n\t\t\tsb.append(\"#\");\n\t\t}\n\t\tsb.append(String.format(\"%n\"));\n\t\tString header = sb.toString();\n\t\tString footer = header;\n\t\t\n\t\tsb.delete(0, sb.length());\n\t\t\n\t\tsb.append(\"#\");\n\t\tfor(int i = 0;i < w - 2;i++){\n\t\t\tsb.append(\".\");\n\t\t}\n\t\tsb.append(String.format(\"#%n\"));\n\t\tString body = sb.toString();\n\t\t\n\t\tsb.delete(0, sb.length());\n\t\t\n\t\tsb.append(header);\n\t\tfor(int i = 0;i < h - 2;i++){\n\t\t\tsb.append(body);\n\t\t}\n\t\tsb.append(footer);\n\t\tSystem.out.println(sb.toString());\n\t\tsb = null;\n\t}", "write", "{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i = 0;i < w;i++){\n\t\t\tsb.append(\"#\");\n\t\t}\n\t\tsb.append(String.format(\"%n\"));\n\t\tString header = sb.toString();\n\t\tString footer = header;\n\t\t\n\t\tsb.delete(0, sb.length());\n\t\t\n\t\tsb.append(\"#\");\n\t\tfor(int i = 0;i < w - 2;i++){\n\t\t\tsb.append(\".\");\n\t\t}\n\t\tsb.append(String.format(\"#%n\"));\n\t\tString body = sb.toString();\n\t\t\n\t\tsb.delete(0, sb.length());\n\t\t\n\t\tsb.append(header);\n\t\tfor(int i = 0;i < h - 2;i++){\n\t\t\tsb.append(body);\n\t\t}\n\t\tsb.append(footer);\n\t\tSystem.out.println(sb.toString());\n\t\tsb = null;\n\t}", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for(int i = 0;i < w;i++){\n\t\t\tsb.append(\"#\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "{\n\t\t\tsb.append(\"#\");\n\t\t}", "{\n\t\t\tsb.append(\"#\");\n\t\t}", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "sb.append(String.format(\"%n\"))", "sb.append", "sb", "String.format(\"%n\")", "String.format", "String", "\"%n\"", "String header = sb.toString();", "header", "sb.toString()", "sb.toString", "sb", "String footer = header;", "footer", "header", "sb.delete(0, sb.length())", "sb.delete", "sb", "0", "sb.length()", "sb.length", "sb", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "for(int i = 0;i < w - 2;i++){\n\t\t\tsb.append(\".\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < w - 2", "i", "w - 2", "w", "2", "i++", "i++", "i", "{\n\t\t\tsb.append(\".\");\n\t\t}", "{\n\t\t\tsb.append(\".\");\n\t\t}", "sb.append(\".\")", "sb.append", "sb", "\".\"", "sb.append(String.format(\"#%n\"))", "sb.append", "sb", "String.format(\"#%n\")", "String.format", "String", "\"#%n\"", "String body = sb.toString();", "body", "sb.toString()", "sb.toString", "sb", "sb.delete(0, sb.length())", "sb.delete", "sb", "0", "sb.length()", "sb.length", "sb", "sb.append(header)", "sb.append", "sb", "header", "for(int i = 0;i < h - 2;i++){\n\t\t\tsb.append(body);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < h - 2", "i", "h - 2", "h", "2", "i++", "i++", "i", "{\n\t\t\tsb.append(body);\n\t\t}", "{\n\t\t\tsb.append(body);\n\t\t}", "sb.append(body)", "sb.append", "sb", "body", "sb.append(footer)", "sb.append", "sb", "footer", "System.out.println(sb.toString())", "System.out.println", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "sb = null", "sb", "null", "long h", "h", "long w", "w", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] tmp = br.readLine().split(\" \");\n\t\t\tlong h = Long.parseLong(tmp[0]);\n\t\t\tlong w = Long.parseLong(tmp[1]);\n\t\t\ttmp = null;\n\t\t\tif (h == 0 && w == 0)break;\n\t\t\telse write(h, w);\n\t\t}\n\t}\n\n\tprivate static void write(long h, long w) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i = 0;i < w;i++){\n\t\t\tsb.append(\"#\");\n\t\t}\n\t\tsb.append(String.format(\"%n\"));\n\t\tString header = sb.toString();\n\t\tString footer = header;\n\t\t\n\t\tsb.delete(0, sb.length());\n\t\t\n\t\tsb.append(\"#\");\n\t\tfor(int i = 0;i < w - 2;i++){\n\t\t\tsb.append(\".\");\n\t\t}\n\t\tsb.append(String.format(\"#%n\"));\n\t\tString body = sb.toString();\n\t\t\n\t\tsb.delete(0, sb.length());\n\t\t\n\t\tsb.append(header);\n\t\tfor(int i = 0;i < h - 2;i++){\n\t\t\tsb.append(body);\n\t\t}\n\t\tsb.append(footer);\n\t\tSystem.out.println(sb.toString());\n\t\tsb = null;\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString[] tmp = br.readLine().split(\" \");\n\t\t\tlong h = Long.parseLong(tmp[0]);\n\t\t\tlong w = Long.parseLong(tmp[1]);\n\t\t\ttmp = null;\n\t\t\tif (h == 0 && w == 0)break;\n\t\t\telse write(h, w);\n\t\t}\n\t}\n\n\tprivate static void write(long h, long w) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor(int i = 0;i < w;i++){\n\t\t\tsb.append(\"#\");\n\t\t}\n\t\tsb.append(String.format(\"%n\"));\n\t\tString header = sb.toString();\n\t\tString footer = header;\n\t\t\n\t\tsb.delete(0, sb.length());\n\t\t\n\t\tsb.append(\"#\");\n\t\tfor(int i = 0;i < w - 2;i++){\n\t\t\tsb.append(\".\");\n\t\t}\n\t\tsb.append(String.format(\"#%n\"));\n\t\tString body = sb.toString();\n\t\t\n\t\tsb.delete(0, sb.length());\n\t\t\n\t\tsb.append(header);\n\t\tfor(int i = 0;i < h - 2;i++){\n\t\t\tsb.append(body);\n\t\t}\n\t\tsb.append(footer);\n\t\tSystem.out.println(sb.toString());\n\t\tsb = null;\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true) { String[] tmp = br.readLine().split(" "); long h = Long.parseLong(tmp[0]); long w = Long.parseLong(tmp[1]); tmp = null; if (h == 0 && w == 0)break; else write(h, w); } } private static void write(long h, long w) { StringBuilder sb = new StringBuilder(); for(int i = 0;i < w;i++){ sb.append("#"); } sb.append(String.format("%n")); String header = sb.toString(); String footer = header; sb.delete(0, sb.length()); sb.append("#"); for(int i = 0;i < w - 2;i++){ sb.append("."); } sb.append(String.format("#%n")); String body = sb.toString(); sb.delete(0, sb.length()); sb.append(header); for(int i = 0;i < h - 2;i++){ sb.append(body); } sb.append(footer); System.out.println(sb.toString()); sb = null; } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 4, 13, 13, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 135, 5 ], [ 135, 6 ], [ 6, 7 ], [ 135, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 10, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 32, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 135, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 78, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 96, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 96, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 64, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 51, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 49, 130 ], [ 130, 131 ], [ 49, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tprivate static Scanner sc;\n\n\tpublic static void main(String[] args) {\n\t\tsc = new Scanner(System.in);\n\t\t\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\t\n\t\twhile (H != 0 && W != 0) {\n\t\t\tdisplay(H, W);\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}\n\n\tprivate static void display(int h, int w) {\n\t\tfor (int i = 0; i < h; i++) {\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tprivate static Scanner sc;\n\n\tpublic static void main(String[] args) {\n\t\tsc = new Scanner(System.in);\n\t\t\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\t\n\t\twhile (H != 0 && W != 0) {\n\t\t\tdisplay(H, W);\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}\n\n\tprivate static void display(int h, int w) {\n\t\tfor (int i = 0; i < h; i++) {\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}", "Main", "private static Scanner sc;", "sc", "public static void main(String[] args) {\n\t\tsc = new Scanner(System.in);\n\t\t\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\t\n\t\twhile (H != 0 && W != 0) {\n\t\t\tdisplay(H, W);\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}", "main", "{\n\t\tsc = new Scanner(System.in);\n\t\t\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\t\n\t\twhile (H != 0 && W != 0) {\n\t\t\tdisplay(H, W);\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}", "sc = new Scanner(System.in)", "sc", "new Scanner(System.in)", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int W = sc.nextInt();", "W", "sc.nextInt()", "sc.nextInt", "sc", "while (H != 0 && W != 0) {\n\t\t\tdisplay(H, W);\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}", "H != 0 && W != 0", "H != 0", "H", "0", "W != 0", "W", "0", "{\n\t\t\tdisplay(H, W);\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}", "display(H, W)", "display", "H", "W", "H = sc.nextInt()", "H", "sc.nextInt()", "sc.nextInt", "sc", "W = sc.nextInt()", "W", "sc.nextInt()", "sc.nextInt", "sc", "String[] args", "args", "private static void display(int h, int w) {\n\t\tfor (int i = 0; i < h; i++) {\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}", "display", "{\n\t\tfor (int i = 0; i < h; i++) {\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}", "for (int i = 0; i < h; i++) {\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "if (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "j == 0 || j == (w - 1)", "j == 0", "j", "0", "j == (w - 1)", "j", "(w - 1)", "w", "1", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "if (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "i == 0 || i == (h - 1)", "i == 0", "i", "0", "i == (h - 1)", "i", "(h - 1)", "h", "1", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int h", "h", "int w", "w", "public class Main {\n\tprivate static Scanner sc;\n\n\tpublic static void main(String[] args) {\n\t\tsc = new Scanner(System.in);\n\t\t\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\t\n\t\twhile (H != 0 && W != 0) {\n\t\t\tdisplay(H, W);\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}\n\n\tprivate static void display(int h, int w) {\n\t\tfor (int i = 0; i < h; i++) {\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}", "public class Main {\n\tprivate static Scanner sc;\n\n\tpublic static void main(String[] args) {\n\t\tsc = new Scanner(System.in);\n\t\t\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\t\n\t\twhile (H != 0 && W != 0) {\n\t\t\tdisplay(H, W);\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}\n\n\tprivate static void display(int h, int w) {\n\t\tfor (int i = 0; i < h; i++) {\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tif (j == 0 || j == (w - 1)) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (i == 0 || i == (h - 1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { private static Scanner sc; public static void main(String[] args) { sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); while (H != 0 && W != 0) { display(H, W); H = sc.nextInt(); W = sc.nextInt(); } } private static void display(int h, int w) { for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { if (j == 0 || j == (w - 1)) { System.out.print("#"); } else { if (i == 0 || i == (h - 1)) { System.out.print("#"); } else { System.out.print("."); } } } System.out.println(); } System.out.println(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 153, 5 ], [ 153, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 12, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 33, 35 ], [ 16, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 41, 43 ], [ 16, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 16, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 81, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 70, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 101, 112 ], [ 113, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 114, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 114, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 69, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 16, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 6, 150 ], [ 150, 151 ], [ 0, 152 ], [ 152, 153 ], [ 152, 154 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint h = Integer.parseInt(array[0]);\n\t\t\tint w = Integer.parseInt(array[1]);\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint h = Integer.parseInt(array[0]);\n\t\t\tint w = Integer.parseInt(array[1]);\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint h = Integer.parseInt(array[0]);\n\t\t\tint w = Integer.parseInt(array[1]);\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint h = Integer.parseInt(array[0]);\n\t\t\tint w = Integer.parseInt(array[1]);\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint h = Integer.parseInt(array[0]);\n\t\t\tint w = Integer.parseInt(array[1]);\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tString input = sc.nextLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint h = Integer.parseInt(array[0]);\n\t\t\tint w = Integer.parseInt(array[1]);\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}", "String input = sc.nextLine();", "input", "sc.nextLine()", "sc.nextLine", "sc", "String[] array = input.split(\" \");", "array", "input.split(\" \")", "input.split", "input", "\" \"", "int h = Integer.parseInt(array[0]);", "h", "Integer.parseInt(array[0])", "Integer.parseInt", "Integer", "array[0]", "array", "0", "int w = Integer.parseInt(array[1]);", "w", "Integer.parseInt(array[1])", "Integer.parseInt", "Integer", "array[1]", "array", "1", "if (h == 0 && w == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "System.exit(0)", "System.exit", "System", "0", "for (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "{\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "if (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}", "i == 0 || i == h - 1", "i == 0", "i", "0", "i == h - 1", "i", "h - 1", "h", "1", "{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "j == 0 || j == w - 1", "j == 0", "j", "0", "j == w - 1", "j", "w - 1", "w", "1", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint h = Integer.parseInt(array[0]);\n\t\t\tint w = Integer.parseInt(array[1]);\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext()) {\n\t\t\tString input = sc.nextLine();\n\t\t\tString[] array = input.split(\" \");\n\t\t\tint h = Integer.parseInt(array[0]);\n\t\t\tint w = Integer.parseInt(array[1]);\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (sc.hasNext()) { String input = sc.nextLine(); String[] array = input.split(" "); int h = Integer.parseInt(array[0]); int w = Integer.parseInt(array[1]); if (h == 0 && w == 0) { System.exit(0); } for (int i = 0; i < h; i++) { if (i == 0 || i == h - 1) { for (int j = 0; j < w; j++) { System.out.print("#"); } } else { for (int j = 0; j < w; j++) { if (j == 0 || j == w - 1) { System.out.print("#"); } else { System.out.print("."); } } } System.out.print("\n"); } System.out.print("\n"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 11, 1, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 4, 18, 13, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 152, 5 ], [ 152, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 21, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 21, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 21, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 21, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 50, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 64, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 64, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 77, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 95, 96 ], [ 95, 97 ], [ 90, 98 ], [ 98, 99 ], [ 99, 100 ], [ 90, 101 ], [ 102, 102 ], [ 102, 103 ], [ 103, 104 ], [ 106, 105 ], [ 115, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 115, 115 ], [ 115, 116 ], [ 115, 117 ], [ 106, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 103, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 103, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 89, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 64, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 6, 149 ], [ 149, 150 ], [ 0, 151 ], [ 151, 152 ], [ 151, 153 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> listH = new ArrayList<Integer>();\n\t\tList<Integer> listW = new ArrayList<Integer>();\n\t\tfor(;;){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tif((H == 0) && (W == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlistH.add(H);\n\t\t\tlistW.add(W);\n\t\t}\n\n\t\tfor(int i = 0; i < listH.size(); i++){\n\t\t\tint h = listH.get(i);\n\t\t\tint w = listW.get(i);\n\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\tfor(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> listH = new ArrayList<Integer>();\n\t\tList<Integer> listW = new ArrayList<Integer>();\n\t\tfor(;;){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tif((H == 0) && (W == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlistH.add(H);\n\t\t\tlistW.add(W);\n\t\t}\n\n\t\tfor(int i = 0; i < listH.size(); i++){\n\t\t\tint h = listH.get(i);\n\t\t\tint w = listW.get(i);\n\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\tfor(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> listH = new ArrayList<Integer>();\n\t\tList<Integer> listW = new ArrayList<Integer>();\n\t\tfor(;;){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tif((H == 0) && (W == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlistH.add(H);\n\t\t\tlistW.add(W);\n\t\t}\n\n\t\tfor(int i = 0; i < listH.size(); i++){\n\t\t\tint h = listH.get(i);\n\t\t\tint w = listW.get(i);\n\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\tfor(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> listH = new ArrayList<Integer>();\n\t\tList<Integer> listW = new ArrayList<Integer>();\n\t\tfor(;;){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tif((H == 0) && (W == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlistH.add(H);\n\t\t\tlistW.add(W);\n\t\t}\n\n\t\tfor(int i = 0; i < listH.size(); i++){\n\t\t\tint h = listH.get(i);\n\t\t\tint w = listW.get(i);\n\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\tfor(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "List<Integer> listH = new ArrayList<Integer>();", "listH", "new ArrayList<Integer>()", "List<Integer> listW = new ArrayList<Integer>();", "listW", "new ArrayList<Integer>()", "for(;;){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tif((H == 0) && (W == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlistH.add(H);\n\t\t\tlistW.add(W);\n\t\t}", ";", "{\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tif((H == 0) && (W == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlistH.add(H);\n\t\t\tlistW.add(W);\n\t\t}", "{\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tif((H == 0) && (W == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlistH.add(H);\n\t\t\tlistW.add(W);\n\t\t}", "int H = scan.nextInt();", "H", "scan.nextInt()", "scan.nextInt", "scan", "int W = scan.nextInt();", "W", "scan.nextInt()", "scan.nextInt", "scan", "if((H == 0) && (W == 0)){\n\t\t\t\tbreak;\n\t\t\t}", "(H == 0) && (W == 0)", "(H == 0)", "H", "0", "(W == 0)", "W", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "listH.add(H)", "listH.add", "listH", "H", "listW.add(W)", "listW.add", "listW", "W", "for(int i = 0; i < listH.size(); i++){\n\t\t\tint h = listH.get(i);\n\t\t\tint w = listW.get(i);\n\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\tfor(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < listH.size()", "i", "listH.size()", "listH.size", "listH", "i++", "i++", "i", "{\n\t\t\tint h = listH.get(i);\n\t\t\tint w = listW.get(i);\n\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\tfor(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "{\n\t\t\tint h = listH.get(i);\n\t\t\tint w = listW.get(i);\n\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\tfor(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "int h = listH.get(i);", "h", "listH.get(i)", "listH.get", "listH", "i", "int w = listW.get(i);", "w", "listW.get(i)", "listW.get", "listW", "i", "for(int j = 0; j < h; j++){\n\t\t\t\tfor(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < h", "j", "h", "j++", "j++", "j", "{\n\t\t\t\tfor(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "{\n\t\t\t\tfor(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "for(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < w", "k", "w", "k++", "k++", "k", "{\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "if((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "(j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)", "(k == 0)", "(j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)", "(j == 0)", "j", "0", "(j == h - 1)", "j", "h - 1", "h", "1", "(k == 0)", "k", "0", "(k == w - 1)", "k", "w - 1", "w", "1", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> listH = new ArrayList<Integer>();\n\t\tList<Integer> listW = new ArrayList<Integer>();\n\t\tfor(;;){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tif((H == 0) && (W == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlistH.add(H);\n\t\t\tlistW.add(W);\n\t\t}\n\n\t\tfor(int i = 0; i < listH.size(); i++){\n\t\t\tint h = listH.get(i);\n\t\t\tint w = listW.get(i);\n\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\tfor(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> listH = new ArrayList<Integer>();\n\t\tList<Integer> listW = new ArrayList<Integer>();\n\t\tfor(;;){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tif((H == 0) && (W == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlistH.add(H);\n\t\t\tlistW.add(W);\n\t\t}\n\n\t\tfor(int i = 0; i < listH.size(); i++){\n\t\t\tint h = listH.get(i);\n\t\t\tint w = listW.get(i);\n\t\t\tfor(int j = 0; j < h; j++){\n\t\t\t\tfor(int k = 0; k < w; k++){\n\t\t\t\t\tif((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); List<Integer> listH = new ArrayList<Integer>(); List<Integer> listW = new ArrayList<Integer>(); for(;;){ int H = scan.nextInt(); int W = scan.nextInt(); if((H == 0) && (W == 0)){ break; } listH.add(H); listW.add(W); } for(int i = 0; i < listH.size(); i++){ int h = listH.get(i); int w = listW.get(i); for(int j = 0; j < h; j++){ for(int k = 0; k < w; k++){ if((j == 0) || (j == h - 1) || (k == 0) || (k == w - 1)){ System.out.print("#"); } else{ System.out.print("."); } } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 17, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 133, 5 ], [ 133, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 14, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 53, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 83, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 96, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 96, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 52, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 14, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 6, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tint i = 0;\n\t\t\tint i2 = 0;\n\t\t\t\n\t\t\t// ??\\??????0,0?????¨???\n\t\t\tif ((H==0) && (W==0)) break;\n\t\n\t\t\tfor(i=0; i<H; i++){\n\t\t\t\t//????????¨?????????????????¨???\n\t\t\t\tif ((i==0) || (i==H-1)) {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tint i = 0;\n\t\t\tint i2 = 0;\n\t\t\t\n\t\t\t// ??\\??????0,0?????¨???\n\t\t\tif ((H==0) && (W==0)) break;\n\t\n\t\t\tfor(i=0; i<H; i++){\n\t\t\t\t//????????¨?????????????????¨???\n\t\t\t\tif ((i==0) || (i==H-1)) {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tint i = 0;\n\t\t\tint i2 = 0;\n\t\t\t\n\t\t\t// ??\\??????0,0?????¨???\n\t\t\tif ((H==0) && (W==0)) break;\n\t\n\t\t\tfor(i=0; i<H; i++){\n\t\t\t\t//????????¨?????????????????¨???\n\t\t\t\tif ((i==0) || (i==H-1)) {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tint i = 0;\n\t\t\tint i2 = 0;\n\t\t\t\n\t\t\t// ??\\??????0,0?????¨???\n\t\t\tif ((H==0) && (W==0)) break;\n\t\n\t\t\tfor(i=0; i<H; i++){\n\t\t\t\t//????????¨?????????????????¨???\n\t\t\t\tif ((i==0) || (i==H-1)) {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tint i = 0;\n\t\t\tint i2 = 0;\n\t\t\t\n\t\t\t// ??\\??????0,0?????¨???\n\t\t\tif ((H==0) && (W==0)) break;\n\t\n\t\t\tfor(i=0; i<H; i++){\n\t\t\t\t//????????¨?????????????????¨???\n\t\t\t\tif ((i==0) || (i==H-1)) {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "true", "{\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tint i = 0;\n\t\t\tint i2 = 0;\n\t\t\t\n\t\t\t// ??\\??????0,0?????¨???\n\t\t\tif ((H==0) && (W==0)) break;\n\t\n\t\t\tfor(i=0; i<H; i++){\n\t\t\t\t//????????¨?????????????????¨???\n\t\t\t\tif ((i==0) || (i==H-1)) {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "int H = scan.nextInt();", "H", "scan.nextInt()", "scan.nextInt", "scan", "int W = scan.nextInt();", "W", "scan.nextInt()", "scan.nextInt", "scan", "int i = 0;", "i", "0", "int i2 = 0;", "i2", "0", "if ((H==0) && (W==0)) break;", "(H==0) && (W==0)", "(H==0)", "H", "0", "(W==0)", "W", "0", "break;", "for(i=0; i<H; i++){\n\t\t\t\t//????????¨?????????????????¨???\n\t\t\t\tif ((i==0) || (i==H-1)) {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\t//????????¨?????????????????¨???\n\t\t\t\tif ((i==0) || (i==H-1)) {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "{\n\t\t\t\t//????????¨?????????????????¨???\n\t\t\t\tif ((i==0) || (i==H-1)) {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "if ((i==0) || (i==H-1)) {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "(i==0) || (i==H-1)", "(i==0)", "i", "0", "(i==H-1)", "i", "H-1", "H", "1", "{\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}", "for(i2=0; i2<W; i2++) System.out.print(\"#\");", "i2=0;", "i2=0", "i2", "0", "i2<W", "i2", "W", "i2++", "i2++", "i2", "System.out.print(\"#\");", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "for(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}", "i2=0;", "i2=0", "i2", "0", "i2<W", "i2", "W", "i2++", "i2++", "i2", "{\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}", "if ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");", "(i2==0 || (i2==W-1))", "i2==0", "i2", "0", "(i2==W-1)", "i2", "W-1", "W", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tint i = 0;\n\t\t\tint i2 = 0;\n\t\t\t\n\t\t\t// ??\\??????0,0?????¨???\n\t\t\tif ((H==0) && (W==0)) break;\n\t\n\t\t\tfor(i=0; i<H; i++){\n\t\t\t\t//????????¨?????????????????¨???\n\t\t\t\tif ((i==0) || (i==H-1)) {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\t\t\tint i = 0;\n\t\t\tint i2 = 0;\n\t\t\t\n\t\t\t// ??\\??????0,0?????¨???\n\t\t\tif ((H==0) && (W==0)) break;\n\t\n\t\t\tfor(i=0; i<H; i++){\n\t\t\t\t//????????¨?????????????????¨???\n\t\t\t\tif ((i==0) || (i==H-1)) {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) System.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor(i2=0; i2<W; i2++) {\n\t\t\t\t\t\t//??????????????¨???????????¨???\n\t\t\t\t\t\tif ((i2==0 || (i2==W-1)))System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner scan = new Scanner(System.in); while(true){ int H = scan.nextInt(); int W = scan.nextInt(); int i = 0; int i2 = 0; // ??\??????0,0?????¨??? if ((H==0) && (W==0)) break; for(i=0; i<H; i++){ //????????¨?????????????????¨??? if ((i==0) || (i==H-1)) { for(i2=0; i2<W; i2++) System.out.print("#"); } else { for(i2=0; i2<W; i2++) { //??????????????¨???????????¨??? if ((i2==0 || (i2==W-1)))System.out.print("#"); else System.out.print("."); } } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 5, 13, 30, 4, 18, 18, 13, 13, 17, 30, 41, 13, 20, 41, 13, 17, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 3, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 4, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 18, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 18, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 37, 44 ], [ 44, 45 ], [ 44, 46 ], [ 37, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 60, 61 ], [ 49, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 37, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 66, 76 ], [ 76, 77 ], [ 77, 78 ], [ 66, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 83, 89 ], [ 80, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 95, 97 ], [ 80, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 103, 104 ], [ 103, 105 ], [ 80, 106 ], [ 106, 107 ], [ 106, 108 ], [ 106, 109 ], [ 15, 110 ], [ 110, 111 ], [ 13, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 120, 121 ], [ 120, 122 ], [ 115, 123 ], [ 123, 124 ], [ 124, 125 ], [ 115, 126 ], [ 127, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 133, 134 ], [ 133, 135 ], [ 128, 136 ], [ 136, 137 ], [ 137, 138 ], [ 128, 139 ], [ 140, 140 ], [ 140, 141 ], [ 141, 142 ], [ 144, 143 ], [ 151, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 148, 149 ], [ 148, 150 ], [ 151, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 153, 155 ], [ 144, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 158, 160 ], [ 141, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 141, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 169, 174 ], [ 127, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 175, 180 ], [ 114, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 181, 186 ], [ 112, 187 ], [ 187, 188 ], [ 112, 189 ], [ 189, 190 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\n/**\n * Lesson5B 以下のような、たてH cm よこ W cm の枠を描くプログラム\n##########\n#........#\n#........#\n#........#\n#........#\n##########\n\n * @author 前島佑介\n * @version 2014/12/1\n */\nclass Main {\n\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\n\t\ttry{\n\t\t\t//キーボードからの入力準備\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\t//入力値を格納する場所を初期化\n\t\t\tString strLine = \"\";\n\n\t\t\t//入力値をint型で保存する場所\n\t\t\tArrayList<String> strArray = new ArrayList<String>();\n\n\t\t\t//入力値の取得にループさせる\n\t\t\twhile(true) {\n\n\t\t\t\t//1行読み込む\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t//入力値が\"0 0\"だったら\n\t\t\t\tif(strLine.equals(\"0 0\")) {\n\n\t\t\t\t\t//ループから抜ける\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//入力値を保存\n\t\t\t\tstrArray.add(strLine);\n\t\t\t}\n\n\t\t\t//ループさせる\n\t\t\tfor(int i = 0; i < strArray.size(); i++) {\n\n\t\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]に分けられる\n\t\t\t\tString[] strLineAry = strArray.get(i).split(\" \");\n\n\t\t\t\t//左の値\n\t\t\t\tint intNum1 = Integer.parseInt(strLineAry[0]);\n\n\t\t\t\t//右の値\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[1]);\n\n\t\t\t\t//出力させるメソッド\n\t\t\t\tSharpPaint(intNum1, intNum2);\n\t\t\t}\n\n\t\t//例外処理\n\t\t}catch(IOException e) {\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\t\t}catch(NumberFormatException e) {\n\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}\n\t}\n\t/**\n\t * たてintNum1の分よこintNum2の分の長方形を描くプログラム\n\t * 1 cm × 1cm の長方形を '#'で表す\n\t * @param intNum1\n\t * @param intNum2\n\t */\n\tpublic static void SharpPaint(int intNum1, int intNum2) {\n\n\t\t//たての分 ループ\n\t\tfor(int i = 0; i < intNum1; i++) {\n\n\t\t\t//よこの分 ループ\n\t\t\tfor(int j = 0; j < intNum2; j++) {\n\n\t\t\t\t//近くの周りは#\n\t\t\t\tif(\n\t\t\t\t\t\ti == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1\t) {\t\t//下辺\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//改行\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\t//改行\n\t\tSystem.out.println(\"\");\n\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "class Main {\n\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\n\t\ttry{\n\t\t\t//キーボードからの入力準備\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\t//入力値を格納する場所を初期化\n\t\t\tString strLine = \"\";\n\n\t\t\t//入力値をint型で保存する場所\n\t\t\tArrayList<String> strArray = new ArrayList<String>();\n\n\t\t\t//入力値の取得にループさせる\n\t\t\twhile(true) {\n\n\t\t\t\t//1行読み込む\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t//入力値が\"0 0\"だったら\n\t\t\t\tif(strLine.equals(\"0 0\")) {\n\n\t\t\t\t\t//ループから抜ける\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//入力値を保存\n\t\t\t\tstrArray.add(strLine);\n\t\t\t}\n\n\t\t\t//ループさせる\n\t\t\tfor(int i = 0; i < strArray.size(); i++) {\n\n\t\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]に分けられる\n\t\t\t\tString[] strLineAry = strArray.get(i).split(\" \");\n\n\t\t\t\t//左の値\n\t\t\t\tint intNum1 = Integer.parseInt(strLineAry[0]);\n\n\t\t\t\t//右の値\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[1]);\n\n\t\t\t\t//出力させるメソッド\n\t\t\t\tSharpPaint(intNum1, intNum2);\n\t\t\t}\n\n\t\t//例外処理\n\t\t}catch(IOException e) {\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\t\t}catch(NumberFormatException e) {\n\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}\n\t}\n\t/**\n\t * たてintNum1の分よこintNum2の分の長方形を描くプログラム\n\t * 1 cm × 1cm の長方形を '#'で表す\n\t * @param intNum1\n\t * @param intNum2\n\t */\n\tpublic static void SharpPaint(int intNum1, int intNum2) {\n\n\t\t//たての分 ループ\n\t\tfor(int i = 0; i < intNum1; i++) {\n\n\t\t\t//よこの分 ループ\n\t\t\tfor(int j = 0; j < intNum2; j++) {\n\n\t\t\t\t//近くの周りは#\n\t\t\t\tif(\n\t\t\t\t\t\ti == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1\t) {\t\t//下辺\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//改行\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\t//改行\n\t\tSystem.out.println(\"\");\n\n\t}\n}", "Main", "// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\n\t\ttry{\n\t\t\t//キーボードからの入力準備\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\t//入力値を格納する場所を初期化\n\t\t\tString strLine = \"\";\n\n\t\t\t//入力値をint型で保存する場所\n\t\t\tArrayList<String> strArray = new ArrayList<String>();\n\n\t\t\t//入力値の取得にループさせる\n\t\t\twhile(true) {\n\n\t\t\t\t//1行読み込む\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t//入力値が\"0 0\"だったら\n\t\t\t\tif(strLine.equals(\"0 0\")) {\n\n\t\t\t\t\t//ループから抜ける\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//入力値を保存\n\t\t\t\tstrArray.add(strLine);\n\t\t\t}\n\n\t\t\t//ループさせる\n\t\t\tfor(int i = 0; i < strArray.size(); i++) {\n\n\t\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]に分けられる\n\t\t\t\tString[] strLineAry = strArray.get(i).split(\" \");\n\n\t\t\t\t//左の値\n\t\t\t\tint intNum1 = Integer.parseInt(strLineAry[0]);\n\n\t\t\t\t//右の値\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[1]);\n\n\t\t\t\t//出力させるメソッド\n\t\t\t\tSharpPaint(intNum1, intNum2);\n\t\t\t}\n\n\t\t//例外処理\n\t\t}catch(IOException e) {\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\t\t}catch(NumberFormatException e) {\n\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}\n\t}", "main", "{\n\n\t\ttry{\n\t\t\t//キーボードからの入力準備\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\t//入力値を格納する場所を初期化\n\t\t\tString strLine = \"\";\n\n\t\t\t//入力値をint型で保存する場所\n\t\t\tArrayList<String> strArray = new ArrayList<String>();\n\n\t\t\t//入力値の取得にループさせる\n\t\t\twhile(true) {\n\n\t\t\t\t//1行読み込む\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t//入力値が\"0 0\"だったら\n\t\t\t\tif(strLine.equals(\"0 0\")) {\n\n\t\t\t\t\t//ループから抜ける\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//入力値を保存\n\t\t\t\tstrArray.add(strLine);\n\t\t\t}\n\n\t\t\t//ループさせる\n\t\t\tfor(int i = 0; i < strArray.size(); i++) {\n\n\t\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]に分けられる\n\t\t\t\tString[] strLineAry = strArray.get(i).split(\" \");\n\n\t\t\t\t//左の値\n\t\t\t\tint intNum1 = Integer.parseInt(strLineAry[0]);\n\n\t\t\t\t//右の値\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[1]);\n\n\t\t\t\t//出力させるメソッド\n\t\t\t\tSharpPaint(intNum1, intNum2);\n\t\t\t}\n\n\t\t//例外処理\n\t\t}catch(IOException e) {\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\t\t}catch(NumberFormatException e) {\n\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}\n\t}", "try{\n\t\t\t//キーボードからの入力準備\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\t//入力値を格納する場所を初期化\n\t\t\tString strLine = \"\";\n\n\t\t\t//入力値をint型で保存する場所\n\t\t\tArrayList<String> strArray = new ArrayList<String>();\n\n\t\t\t//入力値の取得にループさせる\n\t\t\twhile(true) {\n\n\t\t\t\t//1行読み込む\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t//入力値が\"0 0\"だったら\n\t\t\t\tif(strLine.equals(\"0 0\")) {\n\n\t\t\t\t\t//ループから抜ける\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//入力値を保存\n\t\t\t\tstrArray.add(strLine);\n\t\t\t}\n\n\t\t\t//ループさせる\n\t\t\tfor(int i = 0; i < strArray.size(); i++) {\n\n\t\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]に分けられる\n\t\t\t\tString[] strLineAry = strArray.get(i).split(\" \");\n\n\t\t\t\t//左の値\n\t\t\t\tint intNum1 = Integer.parseInt(strLineAry[0]);\n\n\t\t\t\t//右の値\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[1]);\n\n\t\t\t\t//出力させるメソッド\n\t\t\t\tSharpPaint(intNum1, intNum2);\n\t\t\t}\n\n\t\t//例外処理\n\t\t}catch(IOException e) {\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\t\t}catch(NumberFormatException e) {\n\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}", "catch(IOException e) {\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\t\t}", "IOException e", "{\n\n\t\t\t//例外時の出力\n\t\t\tSystem.out.println(e);\n\t\t}", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "catch(NumberFormatException e) {\n\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}", "NumberFormatException e", "{\n\n\n\t\t\t//数値以外の入力値で出力\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}", "System.out.println(\"数値で入力して下さい\")", "System.out.println", "System.out", "System", "System.out", "\"数値で入力して下さい\"", "{\n\t\t\t//キーボードからの入力準備\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\t//入力値を格納する場所を初期化\n\t\t\tString strLine = \"\";\n\n\t\t\t//入力値をint型で保存する場所\n\t\t\tArrayList<String> strArray = new ArrayList<String>();\n\n\t\t\t//入力値の取得にループさせる\n\t\t\twhile(true) {\n\n\t\t\t\t//1行読み込む\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t//入力値が\"0 0\"だったら\n\t\t\t\tif(strLine.equals(\"0 0\")) {\n\n\t\t\t\t\t//ループから抜ける\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//入力値を保存\n\t\t\t\tstrArray.add(strLine);\n\t\t\t}\n\n\t\t\t//ループさせる\n\t\t\tfor(int i = 0; i < strArray.size(); i++) {\n\n\t\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]に分けられる\n\t\t\t\tString[] strLineAry = strArray.get(i).split(\" \");\n\n\t\t\t\t//左の値\n\t\t\t\tint intNum1 = Integer.parseInt(strLineAry[0]);\n\n\t\t\t\t//右の値\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[1]);\n\n\t\t\t\t//出力させるメソッド\n\t\t\t\tSharpPaint(intNum1, intNum2);\n\t\t\t}\n\n\t\t//例外処理\n\t\t}", "BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));", "insBR", "new BufferedReader(new InputStreamReader(System.in))", "String strLine = \"\";", "strLine", "\"\"", "ArrayList<String> strArray = new ArrayList<String>();", "strArray", "new ArrayList<String>()", "while(true) {\n\n\t\t\t\t//1行読み込む\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t//入力値が\"0 0\"だったら\n\t\t\t\tif(strLine.equals(\"0 0\")) {\n\n\t\t\t\t\t//ループから抜ける\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//入力値を保存\n\t\t\t\tstrArray.add(strLine);\n\t\t\t}", "true", "{\n\n\t\t\t\t//1行読み込む\n\t\t\t\tstrLine = insBR.readLine();\n\n\t\t\t\t//入力値が\"0 0\"だったら\n\t\t\t\tif(strLine.equals(\"0 0\")) {\n\n\t\t\t\t\t//ループから抜ける\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\t//入力値を保存\n\t\t\t\tstrArray.add(strLine);\n\t\t\t}", "strLine = insBR.readLine()", "strLine", "insBR.readLine()", "insBR.readLine", "insBR", "if(strLine.equals(\"0 0\")) {\n\n\t\t\t\t\t//ループから抜ける\n\t\t\t\t\tbreak;\n\t\t\t\t}", "strLine.equals(\"0 0\")", "strLine.equals", "strLine", "\"0 0\"", "{\n\n\t\t\t\t\t//ループから抜ける\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "strArray.add(strLine)", "strArray.add", "strArray", "strLine", "for(int i = 0; i < strArray.size(); i++) {\n\n\t\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]に分けられる\n\t\t\t\tString[] strLineAry = strArray.get(i).split(\" \");\n\n\t\t\t\t//左の値\n\t\t\t\tint intNum1 = Integer.parseInt(strLineAry[0]);\n\n\t\t\t\t//右の値\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[1]);\n\n\t\t\t\t//出力させるメソッド\n\t\t\t\tSharpPaint(intNum1, intNum2);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < strArray.size()", "i", "strArray.size()", "strArray.size", "strArray", "i++", "i++", "i", "{\n\n\t\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]に分けられる\n\t\t\t\tString[] strLineAry = strArray.get(i).split(\" \");\n\n\t\t\t\t//左の値\n\t\t\t\tint intNum1 = Integer.parseInt(strLineAry[0]);\n\n\t\t\t\t//右の値\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[1]);\n\n\t\t\t\t//出力させるメソッド\n\t\t\t\tSharpPaint(intNum1, intNum2);\n\t\t\t}", "{\n\n\t\t\t\t//文字列の分割:入力値を\" \"で分ける\n\t\t\t\t//分けた文字列はstrLineAry[0]とstrLineAry[1]に分けられる\n\t\t\t\tString[] strLineAry = strArray.get(i).split(\" \");\n\n\t\t\t\t//左の値\n\t\t\t\tint intNum1 = Integer.parseInt(strLineAry[0]);\n\n\t\t\t\t//右の値\n\t\t\t\tint intNum2 = Integer.parseInt(strLineAry[1]);\n\n\t\t\t\t//出力させるメソッド\n\t\t\t\tSharpPaint(intNum1, intNum2);\n\t\t\t}", "String[] strLineAry = strArray.get(i).split(\" \");", "strLineAry", "strArray.get(i).split(\" \")", "strArray.get(i).split", "strArray.get(i)", "strArray.get", "strArray", "i", "\" \"", "int intNum1 = Integer.parseInt(strLineAry[0]);", "intNum1", "Integer.parseInt(strLineAry[0])", "Integer.parseInt", "Integer", "strLineAry[0]", "strLineAry", "0", "int intNum2 = Integer.parseInt(strLineAry[1]);", "intNum2", "Integer.parseInt(strLineAry[1])", "Integer.parseInt", "Integer", "strLineAry[1]", "strLineAry", "1", "SharpPaint(intNum1, intNum2)", "SharpPaint", "intNum1", "intNum2", "String[] args", "args", "/**\n\t * たてintNum1の分よこintNum2の分の長方形を描くプログラム\n\t * 1 cm × 1cm の長方形を '#'で表す\n\t * @param intNum1\n\t * @param intNum2\n\t */\n\tpublic static void SharpPaint(int intNum1, int intNum2) {\n\n\t\t//たての分 ループ\n\t\tfor(int i = 0; i < intNum1; i++) {\n\n\t\t\t//よこの分 ループ\n\t\t\tfor(int j = 0; j < intNum2; j++) {\n\n\t\t\t\t//近くの周りは#\n\t\t\t\tif(\n\t\t\t\t\t\ti == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1\t) {\t\t//下辺\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//改行\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\t//改行\n\t\tSystem.out.println(\"\");\n\n\t}", "SharpPaint", "{\n\n\t\t//たての分 ループ\n\t\tfor(int i = 0; i < intNum1; i++) {\n\n\t\t\t//よこの分 ループ\n\t\t\tfor(int j = 0; j < intNum2; j++) {\n\n\t\t\t\t//近くの周りは#\n\t\t\t\tif(\n\t\t\t\t\t\ti == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1\t) {\t\t//下辺\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//改行\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\n\t\t//改行\n\t\tSystem.out.println(\"\");\n\n\t}", "for(int i = 0; i < intNum1; i++) {\n\n\t\t\t//よこの分 ループ\n\t\t\tfor(int j = 0; j < intNum2; j++) {\n\n\t\t\t\t//近くの周りは#\n\t\t\t\tif(\n\t\t\t\t\t\ti == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1\t) {\t\t//下辺\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//改行\n\t\t\tSystem.out.println(\"\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < intNum1", "i", "intNum1", "i++", "i++", "i", "{\n\n\t\t\t//よこの分 ループ\n\t\t\tfor(int j = 0; j < intNum2; j++) {\n\n\t\t\t\t//近くの周りは#\n\t\t\t\tif(\n\t\t\t\t\t\ti == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1\t) {\t\t//下辺\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//改行\n\t\t\tSystem.out.println(\"\");\n\t\t}", "{\n\n\t\t\t//よこの分 ループ\n\t\t\tfor(int j = 0; j < intNum2; j++) {\n\n\t\t\t\t//近くの周りは#\n\t\t\t\tif(\n\t\t\t\t\t\ti == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1\t) {\t\t//下辺\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t//改行\n\t\t\tSystem.out.println(\"\");\n\t\t}", "for(int j = 0; j < intNum2; j++) {\n\n\t\t\t\t//近くの周りは#\n\t\t\t\tif(\n\t\t\t\t\t\ti == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1\t) {\t\t//下辺\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < intNum2", "j", "intNum2", "j++", "j++", "j", "{\n\n\t\t\t\t//近くの周りは#\n\t\t\t\tif(\n\t\t\t\t\t\ti == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1\t) {\t\t//下辺\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}", "{\n\n\t\t\t\t//近くの周りは#\n\t\t\t\tif(\n\t\t\t\t\t\ti == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1\t) {\t\t//下辺\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}", "if(\n\t\t\t\t\t\ti == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1\t) {\t\t//下辺\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "i == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1", "i == intNum1 - 1", "i == 0 ||\t\t\t\t\t//左辺\n\t\t\t\t\t\tj == 0 ||\t\t\t\t\t//上辺\n\t\t\t\t\t\ti == intNum1 - 1 ||\t\t\t//右辺\n\t\t\t\t\t\tj == intNum2 - 1", "i == 0", "i", "0", "j == 0", "j", "0", "i == intNum1 - 1", "i", "intNum1 - 1", "intNum1", "1", "j == intNum2 - 1", "j", "intNum2 - 1", "intNum2", "1", "{\t\t//下辺\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t//出力\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "int intNum1", "intNum1", "int intNum2", "intNum2" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; /** * Lesson5B 以下のような、たてH cm よこ W cm の枠を描くプログラム ########## #........# #........# #........# #........# ########## * @author 前島佑介 * @version 2014/12/1 */ class Main { // プログラムのエントリポイント public static void main(String[] args) { try{ //キーボードからの入力準備 BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in)); //入力値を格納する場所を初期化 String strLine = ""; //入力値をint型で保存する場所 ArrayList<String> strArray = new ArrayList<String>(); //入力値の取得にループさせる while(true) { //1行読み込む strLine = insBR.readLine(); //入力値が"0 0"だったら if(strLine.equals("0 0")) { //ループから抜ける break; } //入力値を保存 strArray.add(strLine); } //ループさせる for(int i = 0; i < strArray.size(); i++) { //文字列の分割:入力値を" "で分ける //分けた文字列はstrLineAry[0]とstrLineAry[1]に分けられる String[] strLineAry = strArray.get(i).split(" "); //左の値 int intNum1 = Integer.parseInt(strLineAry[0]); //右の値 int intNum2 = Integer.parseInt(strLineAry[1]); //出力させるメソッド SharpPaint(intNum1, intNum2); } //例外処理 }catch(IOException e) { //例外時の出力 System.out.println(e); }catch(NumberFormatException e) { //数値以外の入力値で出力 System.out.println("数値で入力して下さい"); } } /** * たてintNum1の分よこintNum2の分の長方形を描くプログラム * 1 cm × 1cm の長方形を '#'で表す * @param intNum1 * @param intNum2 */ public static void SharpPaint(int intNum1, int intNum2) { //たての分 ループ for(int i = 0; i < intNum1; i++) { //よこの分 ループ for(int j = 0; j < intNum2; j++) { //近くの周りは# if( i == 0 || //左辺 j == 0 || //上辺 i == intNum1 - 1 || //右辺 j == intNum2 - 1 ) { //下辺 //出力 System.out.print("#"); } else { //出力 System.out.print("."); } } //改行 System.out.println(""); } //改行 System.out.println(""); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 17, 13, 2, 17, 13, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 17, 13, 2, 2, 13, 17, 13, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 4, 18, 13, 17, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 17, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 17, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 64, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 69, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 84, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 84, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 64, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 104, 110 ], [ 17, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 8, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 6, 121 ], [ 121, 122 ] ]
[ "import java.io.*;\n\nclass Main\n{\n public static void main (String[ ] args) throws Exception\n {\n BufferedReader br = new BufferedReader (new InputStreamReader (System.in));\n StringBuffer sb = new StringBuffer();\n \n while(true)\n {\n String[] strAry = (br.readLine()).split(\" \");\n int h = Integer.parseInt(strAry[0]);\n int w = Integer.parseInt(strAry[1]);\n \n if(0 == h & 0 == w)\n {\n break;\n }\n\n for(int i = 0; i < h; i++)\n {\n sb.append(\"#\");\n for(int j = 0; j < (w - 2); j++)\n {\n if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }\n }\n sb.append(\"#\").append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "import java.io.*;", "io.*", "java", "class Main\n{\n public static void main (String[ ] args) throws Exception\n {\n BufferedReader br = new BufferedReader (new InputStreamReader (System.in));\n StringBuffer sb = new StringBuffer();\n \n while(true)\n {\n String[] strAry = (br.readLine()).split(\" \");\n int h = Integer.parseInt(strAry[0]);\n int w = Integer.parseInt(strAry[1]);\n \n if(0 == h & 0 == w)\n {\n break;\n }\n\n for(int i = 0; i < h; i++)\n {\n sb.append(\"#\");\n for(int j = 0; j < (w - 2); j++)\n {\n if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }\n }\n sb.append(\"#\").append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "Main", "public static void main (String[ ] args) throws Exception\n {\n BufferedReader br = new BufferedReader (new InputStreamReader (System.in));\n StringBuffer sb = new StringBuffer();\n \n while(true)\n {\n String[] strAry = (br.readLine()).split(\" \");\n int h = Integer.parseInt(strAry[0]);\n int w = Integer.parseInt(strAry[1]);\n \n if(0 == h & 0 == w)\n {\n break;\n }\n\n for(int i = 0; i < h; i++)\n {\n sb.append(\"#\");\n for(int j = 0; j < (w - 2); j++)\n {\n if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }\n }\n sb.append(\"#\").append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }", "main", "{\n BufferedReader br = new BufferedReader (new InputStreamReader (System.in));\n StringBuffer sb = new StringBuffer();\n \n while(true)\n {\n String[] strAry = (br.readLine()).split(\" \");\n int h = Integer.parseInt(strAry[0]);\n int w = Integer.parseInt(strAry[1]);\n \n if(0 == h & 0 == w)\n {\n break;\n }\n\n for(int i = 0; i < h; i++)\n {\n sb.append(\"#\");\n for(int j = 0; j < (w - 2); j++)\n {\n if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }\n }\n sb.append(\"#\").append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }", "BufferedReader br = new BufferedReader (new InputStreamReader (System.in));", "br", "new BufferedReader (new InputStreamReader (System.in))", "StringBuffer sb = new StringBuffer();", "sb", "new StringBuffer()", "while(true)\n {\n String[] strAry = (br.readLine()).split(\" \");\n int h = Integer.parseInt(strAry[0]);\n int w = Integer.parseInt(strAry[1]);\n \n if(0 == h & 0 == w)\n {\n break;\n }\n\n for(int i = 0; i < h; i++)\n {\n sb.append(\"#\");\n for(int j = 0; j < (w - 2); j++)\n {\n if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }\n }\n sb.append(\"#\").append(\"\\n\");\n }\n sb.append(\"\\n\");\n }", "true", "{\n String[] strAry = (br.readLine()).split(\" \");\n int h = Integer.parseInt(strAry[0]);\n int w = Integer.parseInt(strAry[1]);\n \n if(0 == h & 0 == w)\n {\n break;\n }\n\n for(int i = 0; i < h; i++)\n {\n sb.append(\"#\");\n for(int j = 0; j < (w - 2); j++)\n {\n if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }\n }\n sb.append(\"#\").append(\"\\n\");\n }\n sb.append(\"\\n\");\n }", "String[] strAry = (br.readLine()).split(\" \");", "strAry", "(br.readLine()).split(\" \")", "(br.readLine()).split", "(br.readLine())", "br.readLine", "br", "\" \"", "int h = Integer.parseInt(strAry[0]);", "h", "Integer.parseInt(strAry[0])", "Integer.parseInt", "Integer", "strAry[0]", "strAry", "0", "int w = Integer.parseInt(strAry[1]);", "w", "Integer.parseInt(strAry[1])", "Integer.parseInt", "Integer", "strAry[1]", "strAry", "1", "if(0 == h & 0 == w)\n {\n break;\n }", "0 == h & 0 == w", "0 == h", "0", "h", "0 == w", "0", "w", "{\n break;\n }", "break;", "for(int i = 0; i < h; i++)\n {\n sb.append(\"#\");\n for(int j = 0; j < (w - 2); j++)\n {\n if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }\n }\n sb.append(\"#\").append(\"\\n\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n sb.append(\"#\");\n for(int j = 0; j < (w - 2); j++)\n {\n if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }\n }\n sb.append(\"#\").append(\"\\n\");\n }", "{\n sb.append(\"#\");\n for(int j = 0; j < (w - 2); j++)\n {\n if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }\n }\n sb.append(\"#\").append(\"\\n\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "for(int j = 0; j < (w - 2); j++)\n {\n if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < (w - 2)", "j", "(w - 2)", "w", "2", "j++", "j++", "j", "{\n if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }\n }", "{\n if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }\n }", "if(0 == i || (h - 1) == i )\n {\n sb.append(\"#\");\n }\n else\n {\n sb.append(\".\");\n }", "0 == i || (h - 1) == i", "0 == i", "0", "i", "(h - 1) == i", "(h - 1)", "h", "1", "i", "{\n sb.append(\"#\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "{\n sb.append(\".\");\n }", "sb.append(\".\")", "sb.append", "sb", "\".\"", "sb.append(\"#\").append(\"\\n\")", "sb.append(\"#\").append", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "\"\\n\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[ ] args", "args" ]
import java.io.*; class Main { public static void main (String[ ] args) throws Exception { BufferedReader br = new BufferedReader (new InputStreamReader (System.in)); StringBuffer sb = new StringBuffer(); while(true) { String[] strAry = (br.readLine()).split(" "); int h = Integer.parseInt(strAry[0]); int w = Integer.parseInt(strAry[1]); if(0 == h & 0 == w) { break; } for(int i = 0; i < h; i++) { sb.append("#"); for(int j = 0; j < (w - 2); j++) { if(0 == i || (h - 1) == i ) { sb.append("#"); } else { sb.append("."); } } sb.append("#").append("\n"); } sb.append("\n"); } System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 42, 2, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 15, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 27, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 44, 46 ], [ 27, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 52, 54 ], [ 27, 55 ], [ 55, 56 ], [ 58, 57 ], [ 65, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 65, 65 ], [ 65, 66 ], [ 65, 67 ], [ 58, 68 ], [ 68, 69 ], [ 68, 70 ], [ 55, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 72, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 85, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 101, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 96, 107 ], [ 108, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 85, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 115, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 122, 132 ], [ 132, 133 ], [ 133, 134 ], [ 122, 135 ], [ 136, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 115, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 84, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 71, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 55, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 164, 165 ], [ 164, 166 ], [ 159, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 6, 171 ], [ 171, 172 ] ]
[ "import java.io.*;\n\nclass Main {\n public static void main(String[] args) {\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tboolean end = false;\n\t\ttry {\n\t\t\twhile(end == false){\n\t\t\t\t//??\\?????????????????????\n\t\t \tString temp = br.readLine();\n\t\t \tString[] numbers = temp.split(\" \");//????????¨??????????????????\n\t\t \tint H = Integer.parseInt(numbers[0]);;//??????\n\t\t \tint W = Integer.parseInt(numbers[1]);;//???\n\t\t \t\n\t\t \tif(H <= 300 && H >= 3 && W <= 300 && W >= 3){\n\t\t\t \t//????§???¢??????????????????\n\t\t\t \tfor(int i = 0; i < H ; i++){\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}\n\t\t\t \tSystem.out.println();//??????\n\n\t\t \t}else if(H == 0 && W == 0){\n\t\t \t\tend = true;//HW?????????0??????????????????\n\t\t \t}\n\t\t\t}\n\t \t\n\t\t} catch (IOException e) {\n\t\t\t// TODO ????????????????????? catch ????????????\n\t\t\te.printStackTrace();\n\t\t}\n }\n }", "import java.io.*;", "io.*", "java", "class Main {\n public static void main(String[] args) {\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tboolean end = false;\n\t\ttry {\n\t\t\twhile(end == false){\n\t\t\t\t//??\\?????????????????????\n\t\t \tString temp = br.readLine();\n\t\t \tString[] numbers = temp.split(\" \");//????????¨??????????????????\n\t\t \tint H = Integer.parseInt(numbers[0]);;//??????\n\t\t \tint W = Integer.parseInt(numbers[1]);;//???\n\t\t \t\n\t\t \tif(H <= 300 && H >= 3 && W <= 300 && W >= 3){\n\t\t\t \t//????§???¢??????????????????\n\t\t\t \tfor(int i = 0; i < H ; i++){\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}\n\t\t\t \tSystem.out.println();//??????\n\n\t\t \t}else if(H == 0 && W == 0){\n\t\t \t\tend = true;//HW?????????0??????????????????\n\t\t \t}\n\t\t\t}\n\t \t\n\t\t} catch (IOException e) {\n\t\t\t// TODO ????????????????????? catch ????????????\n\t\t\te.printStackTrace();\n\t\t}\n }\n }", "Main", "public static void main(String[] args) {\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tboolean end = false;\n\t\ttry {\n\t\t\twhile(end == false){\n\t\t\t\t//??\\?????????????????????\n\t\t \tString temp = br.readLine();\n\t\t \tString[] numbers = temp.split(\" \");//????????¨??????????????????\n\t\t \tint H = Integer.parseInt(numbers[0]);;//??????\n\t\t \tint W = Integer.parseInt(numbers[1]);;//???\n\t\t \t\n\t\t \tif(H <= 300 && H >= 3 && W <= 300 && W >= 3){\n\t\t\t \t//????§???¢??????????????????\n\t\t\t \tfor(int i = 0; i < H ; i++){\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}\n\t\t\t \tSystem.out.println();//??????\n\n\t\t \t}else if(H == 0 && W == 0){\n\t\t \t\tend = true;//HW?????????0??????????????????\n\t\t \t}\n\t\t\t}\n\t \t\n\t\t} catch (IOException e) {\n\t\t\t// TODO ????????????????????? catch ????????????\n\t\t\te.printStackTrace();\n\t\t}\n }", "main", "{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tboolean end = false;\n\t\ttry {\n\t\t\twhile(end == false){\n\t\t\t\t//??\\?????????????????????\n\t\t \tString temp = br.readLine();\n\t\t \tString[] numbers = temp.split(\" \");//????????¨??????????????????\n\t\t \tint H = Integer.parseInt(numbers[0]);;//??????\n\t\t \tint W = Integer.parseInt(numbers[1]);;//???\n\t\t \t\n\t\t \tif(H <= 300 && H >= 3 && W <= 300 && W >= 3){\n\t\t\t \t//????§???¢??????????????????\n\t\t\t \tfor(int i = 0; i < H ; i++){\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}\n\t\t\t \tSystem.out.println();//??????\n\n\t\t \t}else if(H == 0 && W == 0){\n\t\t \t\tend = true;//HW?????????0??????????????????\n\t\t \t}\n\t\t\t}\n\t \t\n\t\t} catch (IOException e) {\n\t\t\t// TODO ????????????????????? catch ????????????\n\t\t\te.printStackTrace();\n\t\t}\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "boolean end = false;", "end", "false", "try {\n\t\t\twhile(end == false){\n\t\t\t\t//??\\?????????????????????\n\t\t \tString temp = br.readLine();\n\t\t \tString[] numbers = temp.split(\" \");//????????¨??????????????????\n\t\t \tint H = Integer.parseInt(numbers[0]);;//??????\n\t\t \tint W = Integer.parseInt(numbers[1]);;//???\n\t\t \t\n\t\t \tif(H <= 300 && H >= 3 && W <= 300 && W >= 3){\n\t\t\t \t//????§???¢??????????????????\n\t\t\t \tfor(int i = 0; i < H ; i++){\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}\n\t\t\t \tSystem.out.println();//??????\n\n\t\t \t}else if(H == 0 && W == 0){\n\t\t \t\tend = true;//HW?????????0??????????????????\n\t\t \t}\n\t\t\t}\n\t \t\n\t\t} catch (IOException e) {\n\t\t\t// TODO ????????????????????? catch ????????????\n\t\t\te.printStackTrace();\n\t\t}", "catch (IOException e) {\n\t\t\t// TODO ????????????????????? catch ????????????\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\t// TODO ????????????????????? catch ????????????\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\twhile(end == false){\n\t\t\t\t//??\\?????????????????????\n\t\t \tString temp = br.readLine();\n\t\t \tString[] numbers = temp.split(\" \");//????????¨??????????????????\n\t\t \tint H = Integer.parseInt(numbers[0]);;//??????\n\t\t \tint W = Integer.parseInt(numbers[1]);;//???\n\t\t \t\n\t\t \tif(H <= 300 && H >= 3 && W <= 300 && W >= 3){\n\t\t\t \t//????§???¢??????????????????\n\t\t\t \tfor(int i = 0; i < H ; i++){\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}\n\t\t\t \tSystem.out.println();//??????\n\n\t\t \t}else if(H == 0 && W == 0){\n\t\t \t\tend = true;//HW?????????0??????????????????\n\t\t \t}\n\t\t\t}\n\t \t\n\t\t}", "while(end == false){\n\t\t\t\t//??\\?????????????????????\n\t\t \tString temp = br.readLine();\n\t\t \tString[] numbers = temp.split(\" \");//????????¨??????????????????\n\t\t \tint H = Integer.parseInt(numbers[0]);;//??????\n\t\t \tint W = Integer.parseInt(numbers[1]);;//???\n\t\t \t\n\t\t \tif(H <= 300 && H >= 3 && W <= 300 && W >= 3){\n\t\t\t \t//????§???¢??????????????????\n\t\t\t \tfor(int i = 0; i < H ; i++){\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}\n\t\t\t \tSystem.out.println();//??????\n\n\t\t \t}else if(H == 0 && W == 0){\n\t\t \t\tend = true;//HW?????????0??????????????????\n\t\t \t}\n\t\t\t}", "end == false", "end", "false", "{\n\t\t\t\t//??\\?????????????????????\n\t\t \tString temp = br.readLine();\n\t\t \tString[] numbers = temp.split(\" \");//????????¨??????????????????\n\t\t \tint H = Integer.parseInt(numbers[0]);;//??????\n\t\t \tint W = Integer.parseInt(numbers[1]);;//???\n\t\t \t\n\t\t \tif(H <= 300 && H >= 3 && W <= 300 && W >= 3){\n\t\t\t \t//????§???¢??????????????????\n\t\t\t \tfor(int i = 0; i < H ; i++){\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}\n\t\t\t \tSystem.out.println();//??????\n\n\t\t \t}else if(H == 0 && W == 0){\n\t\t \t\tend = true;//HW?????????0??????????????????\n\t\t \t}\n\t\t\t}", "String temp = br.readLine();", "temp", "br.readLine()", "br.readLine", "br", "String[] numbers = temp.split(\" \");", "numbers", "temp.split(\" \")", "temp.split", "temp", "\" \"", "int H = Integer.parseInt(numbers[0]);", "H", "Integer.parseInt(numbers[0])", "Integer.parseInt", "Integer", "numbers[0]", "numbers", "0", "int W = Integer.parseInt(numbers[1]);", "W", "Integer.parseInt(numbers[1])", "Integer.parseInt", "Integer", "numbers[1]", "numbers", "1", "if(H <= 300 && H >= 3 && W <= 300 && W >= 3){\n\t\t\t \t//????§???¢??????????????????\n\t\t\t \tfor(int i = 0; i < H ; i++){\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}\n\t\t\t \tSystem.out.println();//??????\n\n\t\t \t}else if(H == 0 && W == 0){\n\t\t \t\tend = true;//HW?????????0??????????????????\n\t\t \t}", "H <= 300 && H >= 3 && W <= 300 && W >= 3", "W <= 300", "H <= 300 && H >= 3 && W <= 300 && W >= 3", "H <= 300", "H", "300", "H >= 3", "H", "3", "W <= 300", "W", "300", "W >= 3", "W", "3", "{\n\t\t\t \t//????§???¢??????????????????\n\t\t\t \tfor(int i = 0; i < H ; i++){\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}\n\t\t\t \tSystem.out.println();//??????\n\n\t\t \t}", "for(int i = 0; i < H ; i++){\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}", "{\n\t\t\t \t\t\n\t\t\t \t\tif(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}\n\n\t\t\t \t\tSystem.out.println();//?¬??????????\n\t\t\t \t}", "if(i == 0 || i == H - 1){\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}else{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}", "i == 0 || i == H - 1", "i == 0", "i", "0", "i == H - 1", "i", "H - 1", "H", "1", "{\n\t\t\t\t \t\tfor(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}\n\t\t\t \t\t}", "for(int j = 0; j < W ; j++){\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}", "{\n\t\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t \t\t\tSystem.out.print(\"#\");\n\t\t\t\t \t\tfor(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}\n\t\t\t\t \t\tSystem.out.print(\"#\");\n\t\t\t \t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for(int j = 1; j < W - 1; j++){\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}", "int j = 1;", "int j = 1;", "j", "1", "j < W - 1", "j", "W - 1", "W", "1", "j++", "j++", "j", "{\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}", "{\n\t\t\t\t \t\t\tSystem.out.print(\".\");\n\t\t\t\t \t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "if(H == 0 && W == 0){\n\t\t \t\tend = true;//HW?????????0??????????????????\n\t\t \t}", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n\t\t \t\tend = true;//HW?????????0??????????????????\n\t\t \t}", "end = true", "end", "true", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); boolean end = false; try { while(end == false){ //??\????????????????????? String temp = br.readLine(); String[] numbers = temp.split(" ");//????????¨?????????????????? int H = Integer.parseInt(numbers[0]);;//?????? int W = Integer.parseInt(numbers[1]);;//??? if(H <= 300 && H >= 3 && W <= 300 && W >= 3){ //????§???¢?????????????????? for(int i = 0; i < H ; i++){ if(i == 0 || i == H - 1){ for(int j = 0; j < W ; j++){ System.out.print("#"); } }else{ System.out.print("#"); for(int j = 1; j < W - 1; j++){ System.out.print("."); } System.out.print("#"); } System.out.println();//?¬?????????? } System.out.println();//?????? }else if(H == 0 && W == 0){ end = true;//HW?????????0?????????????????? } } } catch (IOException e) { // TODO ????????????????????? catch ???????????? e.printStackTrace(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 42, 17, 30, 14, 2, 2, 13, 17, 2, 13, 17, 3, 41, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 0, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 0, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 0, 13, 4, 18, 13, 0, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 0, 13, 4, 18, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 16, 18 ], [ 11, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 11, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 35, 36 ], [ 36, 37 ], [ 11, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 11, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 48, 58 ], [ 58, 59 ], [ 48, 60 ], [ 60, 61 ], [ 48, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 48, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 48, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 87, 97 ], [ 97, 98 ], [ 98, 99 ], [ 87, 100 ], [ 101, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 101, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 108, 118 ], [ 118, 119 ], [ 119, 120 ], [ 108, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 101, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 48, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 135, 143 ], [ 143, 144 ], [ 144, 145 ], [ 135, 146 ], [ 147, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 48, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 48, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 48, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 48, 171 ], [ 171, 172 ], [ 171, 173 ], [ 48, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 176, 179 ], [ 179, 180 ], [ 180, 181 ], [ 48, 182 ], [ 182, 183 ], [ 182, 184 ], [ 184, 185 ], [ 185, 186 ], [ 184, 187 ], [ 187, 188 ], [ 188, 189 ], [ 9, 190 ], [ 190, 191 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nclass Main{\n public static void main(String[] args)throws IOException{\n int h, w;\n\n InputStreamReader isr =new InputStreamReader(System.in);\n \t\tBufferedReader br =new BufferedReader(isr);\n \tString buf = br.readLine();\n StringTokenizer st = new StringTokenizer(buf,\" \");\n h = Integer.parseInt(st.nextToken());\n w = Integer.parseInt(st.nextToken());\n \n while(true) {\n \tif (h == 0 && w == 0) break;\n \tint i, j;\n\n for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }\n System.out.printf(\"\\n\");\n\n for (i = 1;i < h - 1;i++) {\n System.out.printf(\"#\");\n for (j = 1;j < w - 1;j++) {\n System.out.printf(\".\");\n }\n System.out.printf(\"#\\n\");\n \t }\n\n for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }\n System.out.printf(\"\\n\");\n\n System.out.printf(\"\\n\");\n buf = br.readLine();\n st = new StringTokenizer(buf,\" \");\n h = Integer.parseInt(st.nextToken());\n w = Integer.parseInt(st.nextToken());\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args)throws IOException{\n int h, w;\n\n InputStreamReader isr =new InputStreamReader(System.in);\n \t\tBufferedReader br =new BufferedReader(isr);\n \tString buf = br.readLine();\n StringTokenizer st = new StringTokenizer(buf,\" \");\n h = Integer.parseInt(st.nextToken());\n w = Integer.parseInt(st.nextToken());\n \n while(true) {\n \tif (h == 0 && w == 0) break;\n \tint i, j;\n\n for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }\n System.out.printf(\"\\n\");\n\n for (i = 1;i < h - 1;i++) {\n System.out.printf(\"#\");\n for (j = 1;j < w - 1;j++) {\n System.out.printf(\".\");\n }\n System.out.printf(\"#\\n\");\n \t }\n\n for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }\n System.out.printf(\"\\n\");\n\n System.out.printf(\"\\n\");\n buf = br.readLine();\n st = new StringTokenizer(buf,\" \");\n h = Integer.parseInt(st.nextToken());\n w = Integer.parseInt(st.nextToken());\n }\n }\n}", "Main", "public static void main(String[] args)throws IOException{\n int h, w;\n\n InputStreamReader isr =new InputStreamReader(System.in);\n \t\tBufferedReader br =new BufferedReader(isr);\n \tString buf = br.readLine();\n StringTokenizer st = new StringTokenizer(buf,\" \");\n h = Integer.parseInt(st.nextToken());\n w = Integer.parseInt(st.nextToken());\n \n while(true) {\n \tif (h == 0 && w == 0) break;\n \tint i, j;\n\n for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }\n System.out.printf(\"\\n\");\n\n for (i = 1;i < h - 1;i++) {\n System.out.printf(\"#\");\n for (j = 1;j < w - 1;j++) {\n System.out.printf(\".\");\n }\n System.out.printf(\"#\\n\");\n \t }\n\n for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }\n System.out.printf(\"\\n\");\n\n System.out.printf(\"\\n\");\n buf = br.readLine();\n st = new StringTokenizer(buf,\" \");\n h = Integer.parseInt(st.nextToken());\n w = Integer.parseInt(st.nextToken());\n }\n }", "main", "{\n int h, w;\n\n InputStreamReader isr =new InputStreamReader(System.in);\n \t\tBufferedReader br =new BufferedReader(isr);\n \tString buf = br.readLine();\n StringTokenizer st = new StringTokenizer(buf,\" \");\n h = Integer.parseInt(st.nextToken());\n w = Integer.parseInt(st.nextToken());\n \n while(true) {\n \tif (h == 0 && w == 0) break;\n \tint i, j;\n\n for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }\n System.out.printf(\"\\n\");\n\n for (i = 1;i < h - 1;i++) {\n System.out.printf(\"#\");\n for (j = 1;j < w - 1;j++) {\n System.out.printf(\".\");\n }\n System.out.printf(\"#\\n\");\n \t }\n\n for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }\n System.out.printf(\"\\n\");\n\n System.out.printf(\"\\n\");\n buf = br.readLine();\n st = new StringTokenizer(buf,\" \");\n h = Integer.parseInt(st.nextToken());\n w = Integer.parseInt(st.nextToken());\n }\n }", "int h", "h", "w;", "w", "InputStreamReader isr =new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br =new BufferedReader(isr);", "br", "new BufferedReader(isr)", "String buf = br.readLine();", "buf", "br.readLine()", "br.readLine", "br", "StringTokenizer st = new StringTokenizer(buf,\" \");", "st", "new StringTokenizer(buf,\" \")", "h = Integer.parseInt(st.nextToken())", "h", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "w = Integer.parseInt(st.nextToken())", "w", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "while(true) {\n \tif (h == 0 && w == 0) break;\n \tint i, j;\n\n for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }\n System.out.printf(\"\\n\");\n\n for (i = 1;i < h - 1;i++) {\n System.out.printf(\"#\");\n for (j = 1;j < w - 1;j++) {\n System.out.printf(\".\");\n }\n System.out.printf(\"#\\n\");\n \t }\n\n for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }\n System.out.printf(\"\\n\");\n\n System.out.printf(\"\\n\");\n buf = br.readLine();\n st = new StringTokenizer(buf,\" \");\n h = Integer.parseInt(st.nextToken());\n w = Integer.parseInt(st.nextToken());\n }", "true", "{\n \tif (h == 0 && w == 0) break;\n \tint i, j;\n\n for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }\n System.out.printf(\"\\n\");\n\n for (i = 1;i < h - 1;i++) {\n System.out.printf(\"#\");\n for (j = 1;j < w - 1;j++) {\n System.out.printf(\".\");\n }\n System.out.printf(\"#\\n\");\n \t }\n\n for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }\n System.out.printf(\"\\n\");\n\n System.out.printf(\"\\n\");\n buf = br.readLine();\n st = new StringTokenizer(buf,\" \");\n h = Integer.parseInt(st.nextToken());\n w = Integer.parseInt(st.nextToken());\n }", "if (h == 0 && w == 0) break;", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "int i", "i", "j;", "j", "for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }", "j = 0;", "j = 0", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n System.out.printf(\"#\");\n }", "{\n System.out.printf(\"#\");\n }", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "for (i = 1;i < h - 1;i++) {\n System.out.printf(\"#\");\n for (j = 1;j < w - 1;j++) {\n System.out.printf(\".\");\n }\n System.out.printf(\"#\\n\");\n \t }", "i = 1;", "i = 1", "i", "1", "i < h - 1", "i", "h - 1", "h", "1", "i++", "i++", "i", "{\n System.out.printf(\"#\");\n for (j = 1;j < w - 1;j++) {\n System.out.printf(\".\");\n }\n System.out.printf(\"#\\n\");\n \t }", "{\n System.out.printf(\"#\");\n for (j = 1;j < w - 1;j++) {\n System.out.printf(\".\");\n }\n System.out.printf(\"#\\n\");\n \t }", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "for (j = 1;j < w - 1;j++) {\n System.out.printf(\".\");\n }", "j = 1;", "j = 1", "j", "1", "j < w - 1", "j", "w - 1", "w", "1", "j++", "j++", "j", "{\n System.out.printf(\".\");\n }", "{\n System.out.printf(\".\");\n }", "System.out.printf(\".\")", "System.out.printf", "System.out", "System", "System.out", "\".\"", "System.out.printf(\"#\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"#\\n\"", "for (j = 0;j < w;j++) {\n System.out.printf(\"#\");\n }", "j = 0;", "j = 0", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n System.out.printf(\"#\");\n }", "{\n System.out.printf(\"#\");\n }", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "buf = br.readLine()", "buf", "br.readLine()", "br.readLine", "br", "st = new StringTokenizer(buf,\" \")", "st", "new StringTokenizer(buf,\" \")", "h = Integer.parseInt(st.nextToken())", "h", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "w = Integer.parseInt(st.nextToken())", "w", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "String[] args", "args" ]
import java.io.*; import java.util.*; class Main{ public static void main(String[] args)throws IOException{ int h, w; InputStreamReader isr =new InputStreamReader(System.in); BufferedReader br =new BufferedReader(isr); String buf = br.readLine(); StringTokenizer st = new StringTokenizer(buf," "); h = Integer.parseInt(st.nextToken()); w = Integer.parseInt(st.nextToken()); while(true) { if (h == 0 && w == 0) break; int i, j; for (j = 0;j < w;j++) { System.out.printf("#"); } System.out.printf("\n"); for (i = 1;i < h - 1;i++) { System.out.printf("#"); for (j = 1;j < w - 1;j++) { System.out.printf("."); } System.out.printf("#\n"); } for (j = 0;j < w;j++) { System.out.printf("#"); } System.out.printf("\n"); System.out.printf("\n"); buf = br.readLine(); st = new StringTokenizer(buf," "); h = Integer.parseInt(st.nextToken()); w = Integer.parseInt(st.nextToken()); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 41, 13, 42, 2, 2, 0, 13, 4, 18, 13, 17, 2, 0, 13, 4, 18, 13, 17, 30, 4, 13, 13, 13, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 40, 40, 13, 2, 13, 40, 40, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 117, 5 ], [ 117, 6 ], [ 6, 7 ], [ 6, 8 ], [ 117, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 16, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 9, 42 ], [ 42, 43 ], [ 117, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 76, 75 ], [ 83, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 83, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 76, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 73, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 73, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 59, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 44, 112 ], [ 112, 113 ], [ 44, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import java.util.*;\n\npublic class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int h, w;\n while((h = scn.nextInt()) != 0 | (w = scn.nextInt()) != 0) {\n frame(h, w);\n System.out.println();\n }\n }\n \n private static void frame(int h, int w) {\n for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; j++) {\n if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int h, w;\n while((h = scn.nextInt()) != 0 | (w = scn.nextInt()) != 0) {\n frame(h, w);\n System.out.println();\n }\n }\n \n private static void frame(int h, int w) {\n for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; j++) {\n if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n }\n}", "Main", "private static final Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "public static void main(String[] args) {\n int h, w;\n while((h = scn.nextInt()) != 0 | (w = scn.nextInt()) != 0) {\n frame(h, w);\n System.out.println();\n }\n }", "main", "{\n int h, w;\n while((h = scn.nextInt()) != 0 | (w = scn.nextInt()) != 0) {\n frame(h, w);\n System.out.println();\n }\n }", "int h", "h", "w;", "w", "while((h = scn.nextInt()) != 0 | (w = scn.nextInt()) != 0) {\n frame(h, w);\n System.out.println();\n }", "(h = scn.nextInt()) != 0 | (w = scn.nextInt()) != 0", "(h = scn.nextInt()) != 0", "(h = scn.nextInt())", "h", "scn.nextInt()", "scn.nextInt", "scn", "0", "(w = scn.nextInt()) != 0", "(w = scn.nextInt())", "w", "scn.nextInt()", "scn.nextInt", "scn", "0", "{\n frame(h, w);\n System.out.println();\n }", "frame(h, w)", "frame", "h", "w", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "private static void frame(int h, int w) {\n for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; j++) {\n if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n }", "frame", "{\n for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; j++) {\n if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n }", "for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; j++) {\n if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n for(int j = 0; j < w; j++) {\n if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "{\n for(int j = 0; j < w; j++) {\n if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "for(int j = 0; j < w; j++) {\n if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }", "{\n if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }", "if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }", "i == 0 || j == 0 || i == ~-h || j == ~-w", "i == ~-h", "i == 0 || j == 0 || i == ~-h || j == ~-w", "i == 0", "i", "0", "j == 0", "j", "0", "i == ~-h", "i", "~-h", "-h", "h", "j == ~-w", "j", "~-w", "-w", "w", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int h", "h", "int w", "w", "public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int h, w;\n while((h = scn.nextInt()) != 0 | (w = scn.nextInt()) != 0) {\n frame(h, w);\n System.out.println();\n }\n }\n \n private static void frame(int h, int w) {\n for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; j++) {\n if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n }\n}", "public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n int h, w;\n while((h = scn.nextInt()) != 0 | (w = scn.nextInt()) != 0) {\n frame(h, w);\n System.out.println();\n }\n }\n \n private static void frame(int h, int w) {\n for(int i = 0; i < h; i++) {\n for(int j = 0; j < w; j++) {\n if(i == 0 || j == 0 || i == ~-h || j == ~-w) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n }\n}", "Main" ]
import java.util.*; public class Main { private static final Scanner scn = new Scanner(System.in); public static void main(String[] args) { int h, w; while((h = scn.nextInt()) != 0 | (w = scn.nextInt()) != 0) { frame(h, w); System.out.println(); } } private static void frame(int h, int w) { for(int i = 0; i < h; i++) { for(int j = 0; j < w; j++) { if(i == 0 || j == 0 || i == ~-h || j == ~-w) { System.out.print("#"); } else { System.out.print("."); } } System.out.println(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 40, 17, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 2, 13, 17, 2, 13, 2, 13, 17, 2, 17, 13, 2, 17, 13, 30, 4, 18, 18, 13, 13, 13, 30, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 150, 8 ], [ 150, 9 ], [ 9, 10 ], [ 9, 11 ], [ 150, 12 ], [ 12, 13 ], [ 12, 14 ], [ 150, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 18, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 34, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 41, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 41, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 41, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 41, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 74, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 96, 97 ], [ 87, 98 ], [ 99, 99 ], [ 99, 100 ], [ 100, 101 ], [ 103, 102 ], [ 114, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 103, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 114, 114 ], [ 114, 115 ], [ 114, 116 ], [ 103, 117 ], [ 117, 118 ], [ 117, 119 ], [ 100, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 100, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 86, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 41, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 27, 144 ], [ 144, 145 ], [ 145, 146 ], [ 15, 147 ], [ 147, 148 ], [ 0, 149 ], [ 149, 150 ], [ 149, 151 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n/**\n * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_5_A\n * \n * @author eitatsuro\n * \n */\npublic class Main {\n static final String HASHMARK = \"#\";\n static final String DOTMARK = \".\";\n \n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int h = Integer.valueOf(inputs[0]);\n int w = Integer.valueOf(inputs[1]);\n \n if (h == 0 && w == 0) {\n break;\n // nothing to do.\n }\n \n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n static final String HASHMARK = \"#\";\n static final String DOTMARK = \".\";\n \n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int h = Integer.valueOf(inputs[0]);\n int w = Integer.valueOf(inputs[1]);\n \n if (h == 0 && w == 0) {\n break;\n // nothing to do.\n }\n \n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }\n}", "Main", "static final String HASHMARK = \"#\";", "HASHMARK", "\"#\"", "static final String DOTMARK = \".\";", "DOTMARK", "\".\"", "public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int h = Integer.valueOf(inputs[0]);\n int w = Integer.valueOf(inputs[1]);\n \n if (h == 0 && w == 0) {\n break;\n // nothing to do.\n }\n \n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }", "main", "{\n try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int h = Integer.valueOf(inputs[0]);\n int w = Integer.valueOf(inputs[1]);\n \n if (h == 0 && w == 0) {\n break;\n // nothing to do.\n }\n \n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }", "try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int h = Integer.valueOf(inputs[0]);\n int w = Integer.valueOf(inputs[1]);\n \n if (h == 0 && w == 0) {\n break;\n // nothing to do.\n }\n \n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }", "catch (Exception e) {\n System.exit(-1);\n }", "Exception e", "{\n System.exit(-1);\n }", "System.exit(-1)", "System.exit", "System", "-1", "1", "{\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int h = Integer.valueOf(inputs[0]);\n int w = Integer.valueOf(inputs[1]);\n \n if (h == 0 && w == 0) {\n break;\n // nothing to do.\n }\n \n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n stdReader.close();\n }", "BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));", "stdReader", "new BufferedReader(\n new InputStreamReader(System.in))", "String sStr;", "sStr", "while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int h = Integer.valueOf(inputs[0]);\n int w = Integer.valueOf(inputs[1]);\n \n if (h == 0 && w == 0) {\n break;\n // nothing to do.\n }\n \n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "(sStr = stdReader.readLine()) != null", "(sStr = stdReader.readLine())", "sStr", "stdReader.readLine()", "stdReader.readLine", "stdReader", "null", "{\n String[] inputs = sStr.split(\" \");\n \n int h = Integer.valueOf(inputs[0]);\n int w = Integer.valueOf(inputs[1]);\n \n if (h == 0 && w == 0) {\n break;\n // nothing to do.\n }\n \n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "String[] inputs = sStr.split(\" \");", "inputs", "sStr.split(\" \")", "sStr.split", "sStr", "\" \"", "int h = Integer.valueOf(inputs[0]);", "h", "Integer.valueOf(inputs[0])", "Integer.valueOf", "Integer", "inputs[0]", "inputs", "0", "int w = Integer.valueOf(inputs[1]);", "w", "Integer.valueOf(inputs[1])", "Integer.valueOf", "Integer", "inputs[1]", "inputs", "1", "if (h == 0 && w == 0) {\n break;\n // nothing to do.\n }", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n break;\n // nothing to do.\n }", "break;", "for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }", "{\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }", "for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }", "{\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }", "if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }", "i < h - 1 && j < w - 1 && 0 <i && 0 < j", "0 <i", "i < h - 1 && j < w - 1 && 0 <i && 0 < j", "i < h - 1", "i", "h - 1", "h", "1", "j < w - 1", "j", "w - 1", "w", "1", "0 <i", "0", "i", "0 < j", "0", "j", "{\n System.out.print(DOTMARK);\n }", "System.out.print(DOTMARK)", "System.out.print", "System.out", "System", "System.out", "DOTMARK", "{\n System.out.print(HASHMARK);\n }", "System.out.print(HASHMARK)", "System.out.print", "System.out", "System", "System.out", "HASHMARK", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "stdReader.close()", "stdReader.close", "stdReader", "String[] args", "args", "public class Main {\n static final String HASHMARK = \"#\";\n static final String DOTMARK = \".\";\n \n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int h = Integer.valueOf(inputs[0]);\n int w = Integer.valueOf(inputs[1]);\n \n if (h == 0 && w == 0) {\n break;\n // nothing to do.\n }\n \n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }\n}", "public class Main {\n static final String HASHMARK = \"#\";\n static final String DOTMARK = \".\";\n \n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(\n new InputStreamReader(System.in));\n \n String sStr;\n while ((sStr = stdReader.readLine()) != null) {\n String[] inputs = sStr.split(\" \");\n \n int h = Integer.valueOf(inputs[0]);\n int w = Integer.valueOf(inputs[1]);\n \n if (h == 0 && w == 0) {\n break;\n // nothing to do.\n }\n \n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) {\n System.out.print(DOTMARK);\n } else {\n System.out.print(HASHMARK);\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch (Exception e) {\n System.exit(-1);\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; /** * http://judge.u-aizu.ac.jp/onlinejudge/description.jsp?id=ITP1_5_A * * @author eitatsuro * */ public class Main { static final String HASHMARK = "#"; static final String DOTMARK = "."; public static void main(String[] args) { try { BufferedReader stdReader = new BufferedReader( new InputStreamReader(System.in)); String sStr; while ((sStr = stdReader.readLine()) != null) { String[] inputs = sStr.split(" "); int h = Integer.valueOf(inputs[0]); int w = Integer.valueOf(inputs[1]); if (h == 0 && w == 0) { break; // nothing to do. } for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { if (i < h - 1 && j < w - 1 && 0 <i && 0 < j) { System.out.print(DOTMARK); } else { System.out.print(HASHMARK); } } System.out.println(); } System.out.println(); } stdReader.close(); } catch (Exception e) { System.exit(-1); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 41, 13, 42, 2, 2, 0, 13, 4, 18, 13, 17, 2, 0, 13, 4, 18, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 108, 5 ], [ 108, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 10, 16 ], [ 16, 17 ], [ 10, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 19, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 18, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 64, 63 ], [ 73, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 73, 73 ], [ 73, 74 ], [ 73, 75 ], [ 64, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 61, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 61, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 47, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 34, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 6, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int a, b;\n while ((a = scanner.nextInt()) != 0 && (b = scanner.nextInt()) != 0) {\n for (int i = 0; i < a; i++) {\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int a, b;\n while ((a = scanner.nextInt()) != 0 && (b = scanner.nextInt()) != 0) {\n for (int i = 0; i < a; i++) {\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n }\n}", "Main", "public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int a, b;\n while ((a = scanner.nextInt()) != 0 && (b = scanner.nextInt()) != 0) {\n for (int i = 0; i < a; i++) {\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n }", "main", "{\n try (Scanner scanner = new Scanner(System.in)) {\n int a, b;\n while ((a = scanner.nextInt()) != 0 && (b = scanner.nextInt()) != 0) {\n for (int i = 0; i < a; i++) {\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n }", "try (Scanner scanner = new Scanner(System.in)) {\n int a, b;\n while ((a = scanner.nextInt()) != 0 && (b = scanner.nextInt()) != 0) {\n for (int i = 0; i < a; i++) {\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "{\n int a, b;\n while ((a = scanner.nextInt()) != 0 && (b = scanner.nextInt()) != 0) {\n for (int i = 0; i < a; i++) {\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "Scanner scanner = new Scanner(System.in)", "Scanner scanner = new Scanner(System.in)", "new Scanner(System.in)", "int a", "a", "b;", "b", "while ((a = scanner.nextInt()) != 0 && (b = scanner.nextInt()) != 0) {\n for (int i = 0; i < a; i++) {\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "(a = scanner.nextInt()) != 0 && (b = scanner.nextInt()) != 0", "(a = scanner.nextInt()) != 0", "(a = scanner.nextInt())", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "0", "(b = scanner.nextInt()) != 0", "(b = scanner.nextInt())", "b", "scanner.nextInt()", "scanner.nextInt", "scanner", "0", "{\n for (int i = 0; i < a; i++) {\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "for (int i = 0; i < a; i++) {\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < a", "i", "a", "i++", "i++", "i", "{\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }", "{\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }", "for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < b", "j", "b", "j++", "j++", "j", "{\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }", "{\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }", "if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }", "i == 0 || i == a - 1 || j == 0 || j == b - 1", "j == 0", "i == 0 || i == a - 1 || j == 0 || j == b - 1", "i == 0", "i", "0", "i == a - 1", "i", "a - 1", "a", "1", "j == 0", "j", "0", "j == b - 1", "j", "b - 1", "b", "1", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n System.out.print('.');\n }", "System.out.print('.')", "System.out.print", "System.out", "System", "System.out", "'.'", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int a, b;\n while ((a = scanner.nextInt()) != 0 && (b = scanner.nextInt()) != 0) {\n for (int i = 0; i < a; i++) {\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in)) {\n int a, b;\n while ((a = scanner.nextInt()) != 0 && (b = scanner.nextInt()) != 0) {\n for (int i = 0; i < a; i++) {\n for (int j = 0; j < b; j++) {\n if (i == 0 || i == a - 1 || j == 0 || j == b - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print('.');\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner scanner = new Scanner(System.in)) { int a, b; while ((a = scanner.nextInt()) != 0 && (b = scanner.nextInt()) != 0) { for (int i = 0; i < a; i++) { for (int j = 0; j < b; j++) { if (i == 0 || i == a - 1 || j == 0 || j == b - 1) { System.out.print("#"); } else { System.out.print('.'); } } System.out.println(); } System.out.println(); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 153, 11 ], [ 153, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 23, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 40, 42 ], [ 23, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 23, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 23, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 23, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 23, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 81, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 95, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 100, 110 ], [ 110, 111 ], [ 111, 112 ], [ 100, 113 ], [ 114, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 95, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 23, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 128, 129 ], [ 128, 130 ], [ 123, 131 ], [ 131, 132 ], [ 132, 133 ], [ 123, 134 ], [ 135, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 23, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 14, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 12, 150 ], [ 150, 151 ], [ 0, 152 ], [ 152, 153 ], [ 152, 154 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n \npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n \n while(true){\n String line = input.readLine();\n String [] num = line.split(\" \");\n int tate = Integer.parseInt(num[0]);\n int yoko = Integer.parseInt(num[1]);\n \n if(tate == 0 && yoko == 0) break;\n \n for(int i = 0 ; i < yoko ; i++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n for(int j = 0 ; j < tate-2 ; j++){\n sb.append(\"#\");\n for(int k = 0 ; k < yoko-2 ; k++){\n sb.append(\".\");\n }\n sb.append(\"#\\n\");\n }\n for(int l = 0 ; l < yoko ; l++){\n sb.append(\"#\");\n }\n \n sb.append(\"\\n\\n\");\n }\n System.out.print(sb);\n }\n \n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n \n while(true){\n String line = input.readLine();\n String [] num = line.split(\" \");\n int tate = Integer.parseInt(num[0]);\n int yoko = Integer.parseInt(num[1]);\n \n if(tate == 0 && yoko == 0) break;\n \n for(int i = 0 ; i < yoko ; i++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n for(int j = 0 ; j < tate-2 ; j++){\n sb.append(\"#\");\n for(int k = 0 ; k < yoko-2 ; k++){\n sb.append(\".\");\n }\n sb.append(\"#\\n\");\n }\n for(int l = 0 ; l < yoko ; l++){\n sb.append(\"#\");\n }\n \n sb.append(\"\\n\\n\");\n }\n System.out.print(sb);\n }\n \n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n \n while(true){\n String line = input.readLine();\n String [] num = line.split(\" \");\n int tate = Integer.parseInt(num[0]);\n int yoko = Integer.parseInt(num[1]);\n \n if(tate == 0 && yoko == 0) break;\n \n for(int i = 0 ; i < yoko ; i++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n for(int j = 0 ; j < tate-2 ; j++){\n sb.append(\"#\");\n for(int k = 0 ; k < yoko-2 ; k++){\n sb.append(\".\");\n }\n sb.append(\"#\\n\");\n }\n for(int l = 0 ; l < yoko ; l++){\n sb.append(\"#\");\n }\n \n sb.append(\"\\n\\n\");\n }\n System.out.print(sb);\n }", "main", "{\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n \n while(true){\n String line = input.readLine();\n String [] num = line.split(\" \");\n int tate = Integer.parseInt(num[0]);\n int yoko = Integer.parseInt(num[1]);\n \n if(tate == 0 && yoko == 0) break;\n \n for(int i = 0 ; i < yoko ; i++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n for(int j = 0 ; j < tate-2 ; j++){\n sb.append(\"#\");\n for(int k = 0 ; k < yoko-2 ; k++){\n sb.append(\".\");\n }\n sb.append(\"#\\n\");\n }\n for(int l = 0 ; l < yoko ; l++){\n sb.append(\"#\");\n }\n \n sb.append(\"\\n\\n\");\n }\n System.out.print(sb);\n }", "BufferedReader input = new BufferedReader(new InputStreamReader(System.in));", "input", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while(true){\n String line = input.readLine();\n String [] num = line.split(\" \");\n int tate = Integer.parseInt(num[0]);\n int yoko = Integer.parseInt(num[1]);\n \n if(tate == 0 && yoko == 0) break;\n \n for(int i = 0 ; i < yoko ; i++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n for(int j = 0 ; j < tate-2 ; j++){\n sb.append(\"#\");\n for(int k = 0 ; k < yoko-2 ; k++){\n sb.append(\".\");\n }\n sb.append(\"#\\n\");\n }\n for(int l = 0 ; l < yoko ; l++){\n sb.append(\"#\");\n }\n \n sb.append(\"\\n\\n\");\n }", "true", "{\n String line = input.readLine();\n String [] num = line.split(\" \");\n int tate = Integer.parseInt(num[0]);\n int yoko = Integer.parseInt(num[1]);\n \n if(tate == 0 && yoko == 0) break;\n \n for(int i = 0 ; i < yoko ; i++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n for(int j = 0 ; j < tate-2 ; j++){\n sb.append(\"#\");\n for(int k = 0 ; k < yoko-2 ; k++){\n sb.append(\".\");\n }\n sb.append(\"#\\n\");\n }\n for(int l = 0 ; l < yoko ; l++){\n sb.append(\"#\");\n }\n \n sb.append(\"\\n\\n\");\n }", "String line = input.readLine();", "line", "input.readLine()", "input.readLine", "input", "String [] num = line.split(\" \");", "num", "line.split(\" \")", "line.split", "line", "\" \"", "int tate = Integer.parseInt(num[0]);", "tate", "Integer.parseInt(num[0])", "Integer.parseInt", "Integer", "num[0]", "num", "0", "int yoko = Integer.parseInt(num[1]);", "yoko", "Integer.parseInt(num[1])", "Integer.parseInt", "Integer", "num[1]", "num", "1", "if(tate == 0 && yoko == 0) break;", "tate == 0 && yoko == 0", "tate == 0", "tate", "0", "yoko == 0", "yoko", "0", "break;", "for(int i = 0 ; i < yoko ; i++){\n sb.append(\"#\");\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < yoko", "i", "yoko", "i++", "i++", "i", "{\n sb.append(\"#\");\n }", "{\n sb.append(\"#\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "for(int j = 0 ; j < tate-2 ; j++){\n sb.append(\"#\");\n for(int k = 0 ; k < yoko-2 ; k++){\n sb.append(\".\");\n }\n sb.append(\"#\\n\");\n }", "int j = 0 ;", "int j = 0 ;", "j", "0", "j < tate-2", "j", "tate-2", "tate", "2", "j++", "j++", "j", "{\n sb.append(\"#\");\n for(int k = 0 ; k < yoko-2 ; k++){\n sb.append(\".\");\n }\n sb.append(\"#\\n\");\n }", "{\n sb.append(\"#\");\n for(int k = 0 ; k < yoko-2 ; k++){\n sb.append(\".\");\n }\n sb.append(\"#\\n\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "for(int k = 0 ; k < yoko-2 ; k++){\n sb.append(\".\");\n }", "int k = 0 ;", "int k = 0 ;", "k", "0", "k < yoko-2", "k", "yoko-2", "yoko", "2", "k++", "k++", "k", "{\n sb.append(\".\");\n }", "{\n sb.append(\".\");\n }", "sb.append(\".\")", "sb.append", "sb", "\".\"", "sb.append(\"#\\n\")", "sb.append", "sb", "\"#\\n\"", "for(int l = 0 ; l < yoko ; l++){\n sb.append(\"#\");\n }", "int l = 0 ;", "int l = 0 ;", "l", "0", "l < yoko", "l", "yoko", "l++", "l++", "l", "{\n sb.append(\"#\");\n }", "{\n sb.append(\"#\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "sb.append(\"\\n\\n\")", "sb.append", "sb", "\"\\n\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n \n while(true){\n String line = input.readLine();\n String [] num = line.split(\" \");\n int tate = Integer.parseInt(num[0]);\n int yoko = Integer.parseInt(num[1]);\n \n if(tate == 0 && yoko == 0) break;\n \n for(int i = 0 ; i < yoko ; i++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n for(int j = 0 ; j < tate-2 ; j++){\n sb.append(\"#\");\n for(int k = 0 ; k < yoko-2 ; k++){\n sb.append(\".\");\n }\n sb.append(\"#\\n\");\n }\n for(int l = 0 ; l < yoko ; l++){\n sb.append(\"#\");\n }\n \n sb.append(\"\\n\\n\");\n }\n System.out.print(sb);\n }\n \n}", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n \n while(true){\n String line = input.readLine();\n String [] num = line.split(\" \");\n int tate = Integer.parseInt(num[0]);\n int yoko = Integer.parseInt(num[1]);\n \n if(tate == 0 && yoko == 0) break;\n \n for(int i = 0 ; i < yoko ; i++){\n sb.append(\"#\");\n }\n sb.append(\"\\n\");\n for(int j = 0 ; j < tate-2 ; j++){\n sb.append(\"#\");\n for(int k = 0 ; k < yoko-2 ; k++){\n sb.append(\".\");\n }\n sb.append(\"#\\n\");\n }\n for(int l = 0 ; l < yoko ; l++){\n sb.append(\"#\");\n }\n \n sb.append(\"\\n\\n\");\n }\n System.out.print(sb);\n }\n \n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while(true){ String line = input.readLine(); String [] num = line.split(" "); int tate = Integer.parseInt(num[0]); int yoko = Integer.parseInt(num[1]); if(tate == 0 && yoko == 0) break; for(int i = 0 ; i < yoko ; i++){ sb.append("#"); } sb.append("\n"); for(int j = 0 ; j < tate-2 ; j++){ sb.append("#"); for(int k = 0 ; k < yoko-2 ; k++){ sb.append("."); } sb.append("#\n"); } for(int l = 0 ; l < yoko ; l++){ sb.append("#"); } sb.append("\n\n"); } System.out.print(sb); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 29, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 13, 2, 13, 17, 2, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 21, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 25, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 74, 73 ], [ 81, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 81, 81 ], [ 81, 82 ], [ 81, 83 ], [ 74, 84 ], [ 84, 85 ], [ 84, 86 ], [ 71, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 71, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 57, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 25, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 15, 111 ], [ 111, 112 ] ]
[ "import java.io.*;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) throws IOException {\n Scanner in = new Scanner(System.in);\n\n while(in.hasNextInt()) {\n\t int H = in.nextInt();\n\t int W = in.nextInt();\n\t if(H == 0 && W == 0) return;\n\n\t for(int i=1;i<=H;i++) {\n\t\t for(int j=1;j<=W;j++) {\n\t\t\t if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }\n\t System.out.println(\"\");\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) throws IOException {\n Scanner in = new Scanner(System.in);\n\n while(in.hasNextInt()) {\n\t int H = in.nextInt();\n\t int W = in.nextInt();\n\t if(H == 0 && W == 0) return;\n\n\t for(int i=1;i<=H;i++) {\n\t\t for(int j=1;j<=W;j++) {\n\t\t\t if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }\n\t System.out.println(\"\");\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n Scanner in = new Scanner(System.in);\n\n while(in.hasNextInt()) {\n\t int H = in.nextInt();\n\t int W = in.nextInt();\n\t if(H == 0 && W == 0) return;\n\n\t for(int i=1;i<=H;i++) {\n\t\t for(int j=1;j<=W;j++) {\n\t\t\t if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }\n\t System.out.println(\"\");\n }\n }", "main", "{\n Scanner in = new Scanner(System.in);\n\n while(in.hasNextInt()) {\n\t int H = in.nextInt();\n\t int W = in.nextInt();\n\t if(H == 0 && W == 0) return;\n\n\t for(int i=1;i<=H;i++) {\n\t\t for(int j=1;j<=W;j++) {\n\t\t\t if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }\n\t System.out.println(\"\");\n }\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while(in.hasNextInt()) {\n\t int H = in.nextInt();\n\t int W = in.nextInt();\n\t if(H == 0 && W == 0) return;\n\n\t for(int i=1;i<=H;i++) {\n\t\t for(int j=1;j<=W;j++) {\n\t\t\t if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }\n\t System.out.println(\"\");\n }", "in.hasNextInt()", "in.hasNextInt", "in", "{\n\t int H = in.nextInt();\n\t int W = in.nextInt();\n\t if(H == 0 && W == 0) return;\n\n\t for(int i=1;i<=H;i++) {\n\t\t for(int j=1;j<=W;j++) {\n\t\t\t if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }\n\t System.out.println(\"\");\n }", "int H = in.nextInt();", "H", "in.nextInt()", "in.nextInt", "in", "int W = in.nextInt();", "W", "in.nextInt()", "in.nextInt", "in", "if(H == 0 && W == 0) return;", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "return;", "for(int i=1;i<=H;i++) {\n\t\t for(int j=1;j<=W;j++) {\n\t\t\t if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }", "int i=1;", "int i=1;", "i", "1", "i<=H", "i", "H", "i++", "i++", "i", "{\n\t\t for(int j=1;j<=W;j++) {\n\t\t\t if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }", "{\n\t\t for(int j=1;j<=W;j++) {\n\t\t\t if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");\n\t\t }\n\t\t System.out.println(\"\");\n\t }", "for(int j=1;j<=W;j++) {\n\t\t\t if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");\n\t\t }", "int j=1;", "int j=1;", "j", "1", "j<=W", "j", "W", "j++", "j++", "j", "{\n\t\t\t if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");\n\t\t }", "{\n\t\t\t if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");\n\t\t }", "if(i==1 || i == H || j == 1 || j == W)\n\t\t\t\t System.out.printf(\"#\");\n\t\t\t else\n\t\t\t\t System.out.printf(\".\");", "i==1 || i == H || j == 1 || j == W", "j == 1", "i==1 || i == H || j == 1 || j == W", "i==1", "i", "1", "i == H", "i", "H", "j == 1", "j", "1", "j == W", "j", "W", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "System.out.printf(\".\")", "System.out.printf", "System.out", "System", "System.out", "\".\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args" ]
import java.io.*; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; class Main { public static void main(String[] args) throws IOException { Scanner in = new Scanner(System.in); while(in.hasNextInt()) { int H = in.nextInt(); int W = in.nextInt(); if(H == 0 && W == 0) return; for(int i=1;i<=H;i++) { for(int j=1;j<=W;j++) { if(i==1 || i == H || j == 1 || j == W) System.out.printf("#"); else System.out.printf("."); } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 17, 41, 13, 17, 42, 2, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 14, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 122, 5 ], [ 122, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 12, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 8, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 78, 77 ], [ 85, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 85, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 78, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 75, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 75, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 61, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 48, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 6, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\s\"); //?????????????????´??????????????¨?????±???????????????\\\\???????????????\n\t\tint i = 0;\n\t\twhile(i == 0) {\n\t\t\tint h = scan.nextInt();//??´??°??\\????????????\n\t\t\tint w = scan.nextInt();//??´??°??\\???????¨?)\n\t\t\tif (h == 0 && w == 0) { //h w???0?????¨????????????\n\t\t\t\tbreak;\n\t\t\t} else if (h > 0){ //0??§???????????£?????¨????????????\n\t\t\t\tfor (int j = 0; j < h; j++) { //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}\n\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\s\"); //?????????????????´??????????????¨?????±???????????????\\\\???????????????\n\t\tint i = 0;\n\t\twhile(i == 0) {\n\t\t\tint h = scan.nextInt();//??´??°??\\????????????\n\t\t\tint w = scan.nextInt();//??´??°??\\???????¨?)\n\t\t\tif (h == 0 && w == 0) { //h w???0?????¨????????????\n\t\t\t\tbreak;\n\t\t\t} else if (h > 0){ //0??§???????????£?????¨????????????\n\t\t\t\tfor (int j = 0; j < h; j++) { //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}\n\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\s\"); //?????????????????´??????????????¨?????±???????????????\\\\???????????????\n\t\tint i = 0;\n\t\twhile(i == 0) {\n\t\t\tint h = scan.nextInt();//??´??°??\\????????????\n\t\t\tint w = scan.nextInt();//??´??°??\\???????¨?)\n\t\t\tif (h == 0 && w == 0) { //h w???0?????¨????????????\n\t\t\t\tbreak;\n\t\t\t} else if (h > 0){ //0??§???????????£?????¨????????????\n\t\t\t\tfor (int j = 0; j < h; j++) { //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}\n\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\s\"); //?????????????????´??????????????¨?????±???????????????\\\\???????????????\n\t\tint i = 0;\n\t\twhile(i == 0) {\n\t\t\tint h = scan.nextInt();//??´??°??\\????????????\n\t\t\tint w = scan.nextInt();//??´??°??\\???????¨?)\n\t\t\tif (h == 0 && w == 0) { //h w???0?????¨????????????\n\t\t\t\tbreak;\n\t\t\t} else if (h > 0){ //0??§???????????£?????¨????????????\n\t\t\t\tfor (int j = 0; j < h; j++) { //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}\n\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t}\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "scan.useDelimiter(\"\\\\s\")", "scan.useDelimiter", "scan", "\"\\\\s\"", "int i = 0;", "i", "0", "while(i == 0) {\n\t\t\tint h = scan.nextInt();//??´??°??\\????????????\n\t\t\tint w = scan.nextInt();//??´??°??\\???????¨?)\n\t\t\tif (h == 0 && w == 0) { //h w???0?????¨????????????\n\t\t\t\tbreak;\n\t\t\t} else if (h > 0){ //0??§???????????£?????¨????????????\n\t\t\t\tfor (int j = 0; j < h; j++) { //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}\n\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t}\n\t\t}", "i == 0", "i", "0", "{\n\t\t\tint h = scan.nextInt();//??´??°??\\????????????\n\t\t\tint w = scan.nextInt();//??´??°??\\???????¨?)\n\t\t\tif (h == 0 && w == 0) { //h w???0?????¨????????????\n\t\t\t\tbreak;\n\t\t\t} else if (h > 0){ //0??§???????????£?????¨????????????\n\t\t\t\tfor (int j = 0; j < h; j++) { //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}\n\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t}\n\t\t}", "int h = scan.nextInt();", "h", "scan.nextInt()", "scan.nextInt", "scan", "int w = scan.nextInt();", "w", "scan.nextInt()", "scan.nextInt", "scan", "if (h == 0 && w == 0) { //h w???0?????¨????????????\n\t\t\t\tbreak;\n\t\t\t} else if (h > 0){ //0??§???????????£?????¨????????????\n\t\t\t\tfor (int j = 0; j < h; j++) { //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}\n\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t}", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{ //h w???0?????¨????????????\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if (h > 0){ //0??§???????????£?????¨????????????\n\t\t\t\tfor (int j = 0; j < h; j++) { //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}\n\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t}", "h > 0", "h", "0", "{ //0??§???????????£?????¨????????????\n\t\t\t\tfor (int j = 0; j < h; j++) { //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}\n\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t}", "for (int j = 0; j < h; j++) { //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < h", "j", "h", "j++", "j++", "j", "{ //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}", "{ //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}", "for (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < w", "k", "w", "k++", "k++", "k", "{ //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}", "{ //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}", "if(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}", "j==0 || k==0 || j==h-1 || k==w-1", "j==h-1", "j==0 || k==0 || j==h-1 || k==w-1", "j==0", "j", "0", "k==0", "k", "0", "j==h-1", "j", "h-1", "h", "1", "k==w-1", "k", "w-1", "w", "1", "{\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\s\"); //?????????????????´??????????????¨?????±???????????????\\\\???????????????\n\t\tint i = 0;\n\t\twhile(i == 0) {\n\t\t\tint h = scan.nextInt();//??´??°??\\????????????\n\t\t\tint w = scan.nextInt();//??´??°??\\???????¨?)\n\t\t\tif (h == 0 && w == 0) { //h w???0?????¨????????????\n\t\t\t\tbreak;\n\t\t\t} else if (h > 0){ //0??§???????????£?????¨????????????\n\t\t\t\tfor (int j = 0; j < h; j++) { //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}\n\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tscan.useDelimiter(\"\\\\s\"); //?????????????????´??????????????¨?????±???????????????\\\\???????????????\n\t\tint i = 0;\n\t\twhile(i == 0) {\n\t\t\tint h = scan.nextInt();//??´??°??\\????????????\n\t\t\tint w = scan.nextInt();//??´??°??\\???????¨?)\n\t\t\tif (h == 0 && w == 0) { //h w???0?????¨????????????\n\t\t\t\tbreak;\n\t\t\t} else if (h > 0){ //0??§???????????£?????¨????????????\n\t\t\t\tfor (int j = 0; j < h; j++) { //j???h????????§?????????????????§??????\n\t\t\t\t\tfor (int k = 0; k < w; k++) { //k???w????????§?????????????????§??????\n\t\t\t\t\t\tif(j==0 || k==0 || j==h-1 || k==w-1){\n\t\t\t\t\t\t\t/*\n\t\t\t\t\t\t\t ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£???\n\t\t\t\t\t\t\t ??´???????????????\"#\"\n\t\t\t\t\t\t\t */\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t\t}\n\t\t\t\t\tSystem.out.println();//\\\\s??§??????\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); scan.useDelimiter("\\s"); //?????????????????´??????????????¨?????±???????????????\\??????????????? int i = 0; while(i == 0) { int h = scan.nextInt();//??´??°??\???????????? int w = scan.nextInt();//??´??°??\???????¨?) if (h == 0 && w == 0) { //h w???0?????¨???????????? break; } else if (h > 0){ //0??§???????????£?????¨???????????? for (int j = 0; j < h; j++) { //j???h????????§?????????????????§?????? for (int k = 0; k < w; k++) { //k???w????????§?????????????????§?????? if(j==0 || k==0 || j==h-1 || k==w-1){ /* ??????j???0?????????k???0?????????j???h-1?????????k???w-1?????£??? ??´???????????????"#" */ System.out.print("#"); } else { System.out.print("."); } } System.out.println();//\\s??§?????? } System.out.println();//\\s??§?????? } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 13, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 13, 13, 17, 30, 0, 18, 13, 17, 0, 18, 13, 2, 13, 17, 17, 4, 18, 13, 13, 17, 2, 13, 17, 17, 4, 18, 13, 13, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 12, 13, 30, 4, 18, 20, 23, 13, 6, 13, 41, 13, 17, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 40, 17, 41, 13, 17, 12, 13, 30, 4, 13, 18, 13, 13, 13, 12, 13, 30, 4, 13, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 13, 20, 13, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 4, 18, 13, 30, 0, 13, 4, 18, 13, 13, 0, 13, 17, 12, 13, 30, 29, 13, 12, 13, 30, 29, 2, 2, 17, 13, 2, 13, 17, 23, 13, 12, 13, 30, 29, 2, 13, 17, 23, 13, 12, 13, 30, 40, 13, 4, 13, 12, 13, 30, 29, 18, 4, 13, 20, 17, 17, 12, 13, 30, 4, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 41, 13, 17, 41, 13, 42, 2, 40, 4, 13, 0, 13, 18, 13, 13, 40, 4, 13, 13, 4, 13, 14, 4, 13, 18, 13, 13, 30, 0, 13, 40, 17, 4, 13, 42, 4, 13, 0, 13, 18, 13, 13, 30, 0, 13, 17, 0, 13, 2, 13, 17, 4, 13, 4, 13, 0, 18, 13, 13, 2, 13, 13, 29, 13, 23, 13, 12, 13, 30, 14, 40, 4, 18, 18, 36, 13, 18, 13, 13, 4, 18, 18, 36, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 380, 20 ], [ 380, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 23, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 48, 50 ], [ 43, 51 ], [ 32, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 80, 84 ], [ 69, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 90, 96 ], [ 85, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 97, 101 ], [ 97, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 64, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 32, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 23, 114 ], [ 114, 115 ], [ 115, 116 ], [ 23, 117 ], [ 117, 118 ], [ 118, 119 ], [ 380, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 120, 126 ], [ 126, 127 ], [ 0, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 133, 134 ], [ 128, 135 ], [ 135, 136 ], [ 135, 137 ], [ 128, 138 ], [ 138, 139 ], [ 138, 140 ], [ 128, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 128, 145 ], [ 145, 146 ], [ 145, 147 ], [ 128, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 128, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 157, 166 ], [ 166, 167 ], [ 128, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 171, 174 ], [ 168, 175 ], [ 175, 176 ], [ 128, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 183, 184 ], [ 183, 185 ], [ 177, 186 ], [ 186, 187 ], [ 177, 188 ], [ 188, 189 ], [ 128, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 190, 196 ], [ 196, 197 ], [ 128, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 198, 205 ], [ 205, 206 ], [ 128, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 210, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 211, 215 ], [ 215, 216 ], [ 216, 217 ], [ 210, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 222, 223 ], [ 221, 224 ], [ 218, 225 ], [ 225, 226 ], [ 225, 227 ], [ 128, 228 ], [ 228, 229 ], [ 228, 230 ], [ 230, 231 ], [ 231, 232 ], [ 128, 233 ], [ 233, 234 ], [ 233, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 238, 239 ], [ 238, 240 ], [ 237, 241 ], [ 241, 242 ], [ 241, 243 ], [ 233, 244 ], [ 244, 245 ], [ 128, 246 ], [ 246, 247 ], [ 246, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 246, 253 ], [ 253, 254 ], [ 128, 255 ], [ 255, 256 ], [ 255, 257 ], [ 257, 258 ], [ 258, 259 ], [ 257, 260 ], [ 260, 261 ], [ 128, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 265, 266 ], [ 266, 267 ], [ 267, 268 ], [ 267, 269 ], [ 266, 271 ], [ 128, 272 ], [ 272, 273 ], [ 272, 274 ], [ 274, 275 ], [ 275, 276 ], [ 274, 277 ], [ 277, 278 ], [ 278, 279 ], [ 279, 280 ], [ 279, 281 ], [ 277, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 284, 286 ], [ 277, 287 ], [ 287, 288 ], [ 288, 289 ], [ 277, 290 ], [ 291, 291 ], [ 291, 292 ], [ 292, 293 ], [ 292, 294 ], [ 291, 295 ], [ 295, 296 ], [ 295, 297 ], [ 291, 298 ], [ 298, 299 ], [ 291, 300 ], [ 300, 301 ], [ 301, 302 ], [ 302, 303 ], [ 303, 304 ], [ 303, 305 ], [ 305, 306 ], [ 305, 307 ], [ 307, 308 ], [ 307, 309 ], [ 301, 310 ], [ 310, 311 ], [ 311, 312 ], [ 311, 313 ], [ 300, 314 ], [ 314, 315 ], [ 291, 316 ], [ 316, 317 ], [ 317, 318 ], [ 317, 319 ], [ 319, 320 ], [ 319, 321 ], [ 316, 322 ], [ 322, 323 ], [ 323, 324 ], [ 323, 325 ], [ 325, 326 ], [ 322, 327 ], [ 327, 328 ], [ 291, 329 ], [ 329, 330 ], [ 330, 331 ], [ 330, 332 ], [ 332, 333 ], [ 332, 334 ], [ 334, 335 ], [ 334, 336 ], [ 329, 337 ], [ 337, 338 ], [ 338, 339 ], [ 338, 340 ], [ 337, 341 ], [ 341, 342 ], [ 341, 343 ], [ 343, 344 ], [ 343, 345 ], [ 337, 346 ], [ 346, 347 ], [ 291, 348 ], [ 348, 349 ], [ 291, 350 ], [ 350, 351 ], [ 351, 352 ], [ 351, 353 ], [ 350, 354 ], [ 354, 355 ], [ 354, 356 ], [ 274, 357 ], [ 357, 358 ], [ 272, 359 ], [ 359, 360 ], [ 128, 361 ], [ 361, 362 ], [ 361, 363 ], [ 363, 364 ], [ 364, 365 ], [ 365, 366 ], [ 366, 367 ], [ 367, 368 ], [ 368, 369 ], [ 368, 370 ], [ 366, 371 ], [ 371, 372 ], [ 371, 373 ], [ 364, 374 ], [ 374, 375 ], [ 375, 376 ], [ 376, 377 ], [ 376, 378 ], [ 0, 379 ], [ 379, 380 ], [ 379, 381 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\n\npublic class Main {\n public void exec() throws IOException {\n InputUtil input = new InputUtil();\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n int H = input.nextInt();\n int W = input.nextInt();\n if(H==0 && W==0) break;\n for(int y=0; y<H; y++) {\n \tchar[] cbuf = new char[W];\n \tif(y==0 || y==H-1){\n \tArrays.fill(cbuf, '#');\n \t}else{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}\n \tout.println(cbuf);\n }\n out.println(\"\");\n }\n out.flush();\n input.close();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n\n}\n \n/**\n * --------------------------------------------------\n * Input Utility\n * --------------------------------------------------\n */\nclass InputUtil {\n //Static Fields\n private static final int BUFSIZ = 2100005;\n \n //Fields\n protected InputStream in;\n private char[] buf = null;\n private int ptr = 0;\n private int max = -1;\n private BufferedReader br = null;\n \n //Constructors\n public InputUtil() {this(System.in,BUFSIZ);}\n public InputUtil(int bufsiz) {this(System.in,bufsiz);}\n public InputUtil(InputStream in) {this(in,BUFSIZ);}\n public InputUtil(InputStream in, int bufsiz) {\n initBuf(bufsiz);\n initIn(in);\n }\n \n //Methods\n //Initializer\n protected void initIn(InputStream in) {br = new BufferedReader(new InputStreamReader(this.in = in));}\n protected void initBuf(int bufsiz) {buf = new char[bufsiz];}\n \n //String Input Reader/Parser\n private void readBuf() throws IOException {\n if(ptr >= max && br.ready()) {\n max = br.read(buf);\n ptr = 0;\n }\n }\n \n public BufferedReader getReader() {return br;}\n \n //Number Input Reader/Parser\n private boolean isNum(char b) {return '0' <= b && b <= '9'; }\n private boolean isMinus(char b) {return b=='-'; }\n private void next() throws IOException {ptr++; readBuf();}\n \n \n public int nextInt() throws IOException {return nextInt(new int[1])[0];}\n public int[] nextInt(int[] result) throws IOException {\n readBuf();\n for(int i=0; i<result.length; i++) {\n int sign = 1;\n int res = 0;\n char c;\n while (!isNum(c=buf[ptr]) && !isMinus(c)) \n next();\n if (isMinus(buf[ptr])) {\n sign = -1;\n next();\n }\n while (isNum(c=buf[ptr])) {\n res *= 10;\n res += c - '0' ;\n next();\n }\n next();\n result[i] = sign * res;\n }\n return result;\n }\n \n //Close \n public void close() throws IOException {\n if(!this.in.equals(System.in)) \n this.in.close();\n }\n \n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "public class Main {\n public void exec() throws IOException {\n InputUtil input = new InputUtil();\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n int H = input.nextInt();\n int W = input.nextInt();\n if(H==0 && W==0) break;\n for(int y=0; y<H; y++) {\n \tchar[] cbuf = new char[W];\n \tif(y==0 || y==H-1){\n \tArrays.fill(cbuf, '#');\n \t}else{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}\n \tout.println(cbuf);\n }\n out.println(\"\");\n }\n out.flush();\n input.close();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n\n}", "Main", "public void exec() throws IOException {\n InputUtil input = new InputUtil();\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n int H = input.nextInt();\n int W = input.nextInt();\n if(H==0 && W==0) break;\n for(int y=0; y<H; y++) {\n \tchar[] cbuf = new char[W];\n \tif(y==0 || y==H-1){\n \tArrays.fill(cbuf, '#');\n \t}else{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}\n \tout.println(cbuf);\n }\n out.println(\"\");\n }\n out.flush();\n input.close();\n }", "exec", "{\n InputUtil input = new InputUtil();\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n int H = input.nextInt();\n int W = input.nextInt();\n if(H==0 && W==0) break;\n for(int y=0; y<H; y++) {\n \tchar[] cbuf = new char[W];\n \tif(y==0 || y==H-1){\n \tArrays.fill(cbuf, '#');\n \t}else{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}\n \tout.println(cbuf);\n }\n out.println(\"\");\n }\n out.flush();\n input.close();\n }", "InputUtil input = new InputUtil();", "input", "new InputUtil()", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "while(true) {\n int H = input.nextInt();\n int W = input.nextInt();\n if(H==0 && W==0) break;\n for(int y=0; y<H; y++) {\n \tchar[] cbuf = new char[W];\n \tif(y==0 || y==H-1){\n \tArrays.fill(cbuf, '#');\n \t}else{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}\n \tout.println(cbuf);\n }\n out.println(\"\");\n }", "true", "{\n int H = input.nextInt();\n int W = input.nextInt();\n if(H==0 && W==0) break;\n for(int y=0; y<H; y++) {\n \tchar[] cbuf = new char[W];\n \tif(y==0 || y==H-1){\n \tArrays.fill(cbuf, '#');\n \t}else{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}\n \tout.println(cbuf);\n }\n out.println(\"\");\n }", "int H = input.nextInt();", "H", "input.nextInt()", "input.nextInt", "input", "int W = input.nextInt();", "W", "input.nextInt()", "input.nextInt", "input", "if(H==0 && W==0) break;", "H==0 && W==0", "H==0", "H", "0", "W==0", "W", "0", "break;", "for(int y=0; y<H; y++) {\n \tchar[] cbuf = new char[W];\n \tif(y==0 || y==H-1){\n \tArrays.fill(cbuf, '#');\n \t}else{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}\n \tout.println(cbuf);\n }", "int y=0;", "int y=0;", "y", "0", "y<H", "y", "H", "y++", "y++", "y", "{\n \tchar[] cbuf = new char[W];\n \tif(y==0 || y==H-1){\n \tArrays.fill(cbuf, '#');\n \t}else{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}\n \tout.println(cbuf);\n }", "{\n \tchar[] cbuf = new char[W];\n \tif(y==0 || y==H-1){\n \tArrays.fill(cbuf, '#');\n \t}else{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}\n \tout.println(cbuf);\n }", "char[] cbuf = new char[W];", "cbuf", "new char[W]", "W", "if(y==0 || y==H-1){\n \tArrays.fill(cbuf, '#');\n \t}else{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}", "y==0 || y==H-1", "y==0", "y", "0", "y==H-1", "y", "H-1", "H", "1", "{\n \tArrays.fill(cbuf, '#');\n \t}", "Arrays.fill(cbuf, '#')", "Arrays.fill", "Arrays", "cbuf", "'#'", "{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}", "cbuf[0]=cbuf[W-1]='#'", "cbuf[0]", "cbuf", "0", "cbuf[W-1]='#'", "cbuf[W-1]", "cbuf", "W-1", "W", "1", "'#'", "Arrays.fill(cbuf, 1, W-1, '.')", "Arrays.fill", "Arrays", "cbuf", "1", "W-1", "W", "1", "'.'", "out.println(cbuf)", "out.println", "out", "cbuf", "out.println(\"\")", "out.println", "out", "\"\"", "out.flush()", "out.flush", "out", "input.close()", "input.close", "input", "public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }", "main", "{\n \tnew Main().exec();\n }", "new Main().exec()", "new Main().exec", "new Main()", "String[] args", "args", "class InputUtil {\n //Static Fields\n private static final int BUFSIZ = 2100005;\n \n //Fields\n protected InputStream in;\n private char[] buf = null;\n private int ptr = 0;\n private int max = -1;\n private BufferedReader br = null;\n \n //Constructors\n public InputUtil() {this(System.in,BUFSIZ);}\n public InputUtil(int bufsiz) {this(System.in,bufsiz);}\n public InputUtil(InputStream in) {this(in,BUFSIZ);}\n public InputUtil(InputStream in, int bufsiz) {\n initBuf(bufsiz);\n initIn(in);\n }\n \n //Methods\n //Initializer\n protected void initIn(InputStream in) {br = new BufferedReader(new InputStreamReader(this.in = in));}\n protected void initBuf(int bufsiz) {buf = new char[bufsiz];}\n \n //String Input Reader/Parser\n private void readBuf() throws IOException {\n if(ptr >= max && br.ready()) {\n max = br.read(buf);\n ptr = 0;\n }\n }\n \n public BufferedReader getReader() {return br;}\n \n //Number Input Reader/Parser\n private boolean isNum(char b) {return '0' <= b && b <= '9'; }\n private boolean isMinus(char b) {return b=='-'; }\n private void next() throws IOException {ptr++; readBuf();}\n \n \n public int nextInt() throws IOException {return nextInt(new int[1])[0];}\n public int[] nextInt(int[] result) throws IOException {\n readBuf();\n for(int i=0; i<result.length; i++) {\n int sign = 1;\n int res = 0;\n char c;\n while (!isNum(c=buf[ptr]) && !isMinus(c)) \n next();\n if (isMinus(buf[ptr])) {\n sign = -1;\n next();\n }\n while (isNum(c=buf[ptr])) {\n res *= 10;\n res += c - '0' ;\n next();\n }\n next();\n result[i] = sign * res;\n }\n return result;\n }\n \n //Close \n public void close() throws IOException {\n if(!this.in.equals(System.in)) \n this.in.close();\n }\n \n}", "InputUtil", "//Static Fields\n private static final int BUFSIZ = 2100005;", "BUFSIZ", "2100005", "//Fields\n protected InputStream in;", "in", "private char[] buf = null;", "buf", "null", "private int ptr = 0;", "ptr", "0", "private int max = -1;", "max", "-1", "1", "private BufferedReader br = null;", "br", "null", "//Constructors\n public InputUtil() {this(System.in,BUFSIZ);}", "InputUtil", "{this(System.in,BUFSIZ);}", "this(System.in,BUFSIZ)", "this", "System.in", "System", "System.in", "BUFSIZ", "public InputUtil(int bufsiz) {this(System.in,bufsiz);}", "InputUtil", "{this(System.in,bufsiz);}", "this(System.in,bufsiz)", "this", "System.in", "System", "System.in", "bufsiz", "int bufsiz", "bufsiz", "public InputUtil(InputStream in) {this(in,BUFSIZ);}", "InputUtil", "{this(in,BUFSIZ);}", "this(in,BUFSIZ)", "this", "in", "BUFSIZ", "InputStream in", "in", "public InputUtil(InputStream in, int bufsiz) {\n initBuf(bufsiz);\n initIn(in);\n }", "InputUtil", "{\n initBuf(bufsiz);\n initIn(in);\n }", "initBuf(bufsiz)", "initBuf", "bufsiz", "initIn(in)", "initIn", "in", "InputStream in", "in", "int bufsiz", "bufsiz", "//Methods\n //Initializer\n protected void initIn(InputStream in) {br = new BufferedReader(new InputStreamReader(this.in = in));}", "initIn", "{br = new BufferedReader(new InputStreamReader(this.in = in));}", "br = new BufferedReader(new InputStreamReader(this.in = in))", "br", "new BufferedReader(new InputStreamReader(this.in = in))", "InputStream in", "in", "protected void initBuf(int bufsiz) {buf = new char[bufsiz];}", "initBuf", "{buf = new char[bufsiz];}", "buf = new char[bufsiz]", "buf", "new char[bufsiz]", "bufsiz", "int bufsiz", "bufsiz", "//String Input Reader/Parser\n private void readBuf() throws IOException {\n if(ptr >= max && br.ready()) {\n max = br.read(buf);\n ptr = 0;\n }\n }", "readBuf", "{\n if(ptr >= max && br.ready()) {\n max = br.read(buf);\n ptr = 0;\n }\n }", "if(ptr >= max && br.ready()) {\n max = br.read(buf);\n ptr = 0;\n }", "ptr >= max && br.ready()", "ptr >= max", "ptr", "max", "br.ready()", "br.ready", "br", "{\n max = br.read(buf);\n ptr = 0;\n }", "max = br.read(buf)", "max", "br.read(buf)", "br.read", "br", "buf", "ptr = 0", "ptr", "0", "public BufferedReader getReader() {return br;}", "getReader", "{return br;}", "return br;", "br", "//Number Input Reader/Parser\n private boolean isNum(char b) {return '0' <= b && b <= '9'; }", "isNum", "{return '0' <= b && b <= '9'; }", "return '0' <= b && b <= '9';", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "char b", "b", "private boolean isMinus(char b) {return b=='-'; }", "isMinus", "{return b=='-'; }", "return b=='-';", "b=='-'", "b", "'-'", "char b", "b", "private void next() throws IOException {ptr++; readBuf();}", "next", "{ptr++; readBuf();}", "ptr++", "ptr", "readBuf()", "readBuf", "public int nextInt() throws IOException {return nextInt(new int[1])[0];}", "nextInt", "{return nextInt(new int[1])[0];}", "return nextInt(new int[1])[0];", "nextInt(new int[1])[0]", "nextInt(new int[1])", "nextInt", "new int[1]", "1", "0", "public int[] nextInt(int[] result) throws IOException {\n readBuf();\n for(int i=0; i<result.length; i++) {\n int sign = 1;\n int res = 0;\n char c;\n while (!isNum(c=buf[ptr]) && !isMinus(c)) \n next();\n if (isMinus(buf[ptr])) {\n sign = -1;\n next();\n }\n while (isNum(c=buf[ptr])) {\n res *= 10;\n res += c - '0' ;\n next();\n }\n next();\n result[i] = sign * res;\n }\n return result;\n }", "nextInt", "{\n readBuf();\n for(int i=0; i<result.length; i++) {\n int sign = 1;\n int res = 0;\n char c;\n while (!isNum(c=buf[ptr]) && !isMinus(c)) \n next();\n if (isMinus(buf[ptr])) {\n sign = -1;\n next();\n }\n while (isNum(c=buf[ptr])) {\n res *= 10;\n res += c - '0' ;\n next();\n }\n next();\n result[i] = sign * res;\n }\n return result;\n }", "readBuf()", "readBuf", "for(int i=0; i<result.length; i++) {\n int sign = 1;\n int res = 0;\n char c;\n while (!isNum(c=buf[ptr]) && !isMinus(c)) \n next();\n if (isMinus(buf[ptr])) {\n sign = -1;\n next();\n }\n while (isNum(c=buf[ptr])) {\n res *= 10;\n res += c - '0' ;\n next();\n }\n next();\n result[i] = sign * res;\n }", "int i=0;", "int i=0;", "i", "0", "i<result.length", "i", "result.length", "result", "result.length", "i++", "i++", "i", "{\n int sign = 1;\n int res = 0;\n char c;\n while (!isNum(c=buf[ptr]) && !isMinus(c)) \n next();\n if (isMinus(buf[ptr])) {\n sign = -1;\n next();\n }\n while (isNum(c=buf[ptr])) {\n res *= 10;\n res += c - '0' ;\n next();\n }\n next();\n result[i] = sign * res;\n }", "{\n int sign = 1;\n int res = 0;\n char c;\n while (!isNum(c=buf[ptr]) && !isMinus(c)) \n next();\n if (isMinus(buf[ptr])) {\n sign = -1;\n next();\n }\n while (isNum(c=buf[ptr])) {\n res *= 10;\n res += c - '0' ;\n next();\n }\n next();\n result[i] = sign * res;\n }", "int sign = 1;", "sign", "1", "int res = 0;", "res", "0", "char c;", "c", "while (!isNum(c=buf[ptr]) && !isMinus(c)) \n next();", "!isNum(c=buf[ptr]) && !isMinus(c)", "!isNum(c=buf[ptr])", "isNum(c=buf[ptr])", "isNum", "c=buf[ptr]", "c", "buf[ptr]", "buf", "ptr", "!isMinus(c)", "isMinus(c)", "isMinus", "c", "next()", "next", "if (isMinus(buf[ptr])) {\n sign = -1;\n next();\n }", "isMinus(buf[ptr])", "isMinus", "buf[ptr]", "buf", "ptr", "{\n sign = -1;\n next();\n }", "sign = -1", "sign", "-1", "1", "next()", "next", "while (isNum(c=buf[ptr])) {\n res *= 10;\n res += c - '0' ;\n next();\n }", "isNum(c=buf[ptr])", "isNum", "c=buf[ptr]", "c", "buf[ptr]", "buf", "ptr", "{\n res *= 10;\n res += c - '0' ;\n next();\n }", "res *= 10", "res", "10", "res += c - '0'", "res", "c - '0'", "c", "'0'", "next()", "next", "next()", "next", "result[i] = sign * res", "result[i]", "result", "i", "sign * res", "sign", "res", "return result;", "result", "int[] result", "result", "//Close \n public void close() throws IOException {\n if(!this.in.equals(System.in)) \n this.in.close();\n }", "close", "{\n if(!this.in.equals(System.in)) \n this.in.close();\n }", "if(!this.in.equals(System.in)) \n this.in.close();", "!this.in.equals(System.in)", "this.in.equals(System.in)", "this.in.equals", "this.in", "this", "this.in", "System.in", "System", "System.in", "this.in.close()", "this.in.close", "this.in", "this", "this.in", "public class Main {\n public void exec() throws IOException {\n InputUtil input = new InputUtil();\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n int H = input.nextInt();\n int W = input.nextInt();\n if(H==0 && W==0) break;\n for(int y=0; y<H; y++) {\n \tchar[] cbuf = new char[W];\n \tif(y==0 || y==H-1){\n \tArrays.fill(cbuf, '#');\n \t}else{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}\n \tout.println(cbuf);\n }\n out.println(\"\");\n }\n out.flush();\n input.close();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n\n}", "public class Main {\n public void exec() throws IOException {\n InputUtil input = new InputUtil();\n PrintWriter out = new PrintWriter(System.out);\n while(true) {\n int H = input.nextInt();\n int W = input.nextInt();\n if(H==0 && W==0) break;\n for(int y=0; y<H; y++) {\n \tchar[] cbuf = new char[W];\n \tif(y==0 || y==H-1){\n \tArrays.fill(cbuf, '#');\n \t}else{\n \t\tcbuf[0]=cbuf[W-1]='#';\n \t\tArrays.fill(cbuf, 1, W-1, '.');\n \t}\n \tout.println(cbuf);\n }\n out.println(\"\");\n }\n out.flush();\n input.close();\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Arrays; public class Main { public void exec() throws IOException { InputUtil input = new InputUtil(); PrintWriter out = new PrintWriter(System.out); while(true) { int H = input.nextInt(); int W = input.nextInt(); if(H==0 && W==0) break; for(int y=0; y<H; y++) { char[] cbuf = new char[W]; if(y==0 || y==H-1){ Arrays.fill(cbuf, '#'); }else{ cbuf[0]=cbuf[W-1]='#'; Arrays.fill(cbuf, 1, W-1, '.'); } out.println(cbuf); } out.println(""); } out.flush(); input.close(); } public static void main(String[] args) throws IOException { new Main().exec(); } } /** * -------------------------------------------------- * Input Utility * -------------------------------------------------- */ class InputUtil { //Static Fields private static final int BUFSIZ = 2100005; //Fields protected InputStream in; private char[] buf = null; private int ptr = 0; private int max = -1; private BufferedReader br = null; //Constructors public InputUtil() {this(System.in,BUFSIZ);} public InputUtil(int bufsiz) {this(System.in,bufsiz);} public InputUtil(InputStream in) {this(in,BUFSIZ);} public InputUtil(InputStream in, int bufsiz) { initBuf(bufsiz); initIn(in); } //Methods //Initializer protected void initIn(InputStream in) {br = new BufferedReader(new InputStreamReader(this.in = in));} protected void initBuf(int bufsiz) {buf = new char[bufsiz];} //String Input Reader/Parser private void readBuf() throws IOException { if(ptr >= max && br.ready()) { max = br.read(buf); ptr = 0; } } public BufferedReader getReader() {return br;} //Number Input Reader/Parser private boolean isNum(char b) {return '0' <= b && b <= '9'; } private boolean isMinus(char b) {return b=='-'; } private void next() throws IOException {ptr++; readBuf();} public int nextInt() throws IOException {return nextInt(new int[1])[0];} public int[] nextInt(int[] result) throws IOException { readBuf(); for(int i=0; i<result.length; i++) { int sign = 1; int res = 0; char c; while (!isNum(c=buf[ptr]) && !isMinus(c)) next(); if (isMinus(buf[ptr])) { sign = -1; next(); } while (isNum(c=buf[ptr])) { res *= 10; res += c - '0' ; next(); } next(); result[i] = sign * res; } return result; } //Close public void close() throws IOException { if(!this.in.equals(System.in)) this.in.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 13, 2, 13, 17, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 103, 5 ], [ 103, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 63, 62 ], [ 70, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 70, 70 ], [ 70, 71 ], [ 70, 72 ], [ 63, 73 ], [ 73, 74 ], [ 73, 75 ], [ 60, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 60, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 46, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 14, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 6, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\tif(H==0 && W==0) break;\n\t\tfor(int i = 1;i <= H;i++){\n\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\tif(H==0 && W==0) break;\n\t\tfor(int i = 1;i <= H;i++){\n\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\tif(H==0 && W==0) break;\n\t\tfor(int i = 1;i <= H;i++){\n\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\tif(H==0 && W==0) break;\n\t\tfor(int i = 1;i <= H;i++){\n\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\tif(H==0 && W==0) break;\n\t\tfor(int i = 1;i <= H;i++){\n\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\tif(H==0 && W==0) break;\n\t\tfor(int i = 1;i <= H;i++){\n\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t}", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int W = sc.nextInt();", "W", "sc.nextInt()", "sc.nextInt", "sc", "if(H==0 && W==0) break;", "H==0 && W==0", "H==0", "H", "0", "W==0", "W", "0", "break;", "for(int i = 1;i <= H;i++){\n\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= H", "i", "H", "i++", "i++", "i", "{\n\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "for(int j = 1;j <= W;j++){\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j <= W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}", "if(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "i==1||i==H||j==1||j==W", "j==1", "i==1||i==H||j==1||j==W", "i==1", "i", "1", "i==H", "i", "H", "j==1", "j", "1", "j==W", "j", "W", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\tif(H==0 && W==0) break;\n\t\tfor(int i = 1;i <= H;i++){\n\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(true){\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\tif(H==0 && W==0) break;\n\t\tfor(int i = 1;i <= H;i++){\n\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\tif(i==1||i==H||j==1||j==W){\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ int H = sc.nextInt(); int W = sc.nextInt(); if(H==0 && W==0) break; for(int i = 1;i <= H;i++){ for(int j = 1;j <= W;j++){ if(i==1||i==H||j==1||j==W){ System.out.print("#"); }else{ System.out.print("."); } } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 60, 59 ], [ 69, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 69, 69 ], [ 69, 70 ], [ 69, 71 ], [ 60, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 57, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 57, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 43, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 30, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 30, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 30, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 6, 113 ], [ 113, 114 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\twhile(H!=0&&W!=0){\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\twhile(H!=0&&W!=0){\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\twhile(H!=0&&W!=0){\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\twhile(H!=0&&W!=0){\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int W = sc.nextInt();", "W", "sc.nextInt()", "sc.nextInt", "sc", "while(H!=0&&W!=0){\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}", "H!=0&&W!=0", "H!=0", "H", "0", "W!=0", "W", "0", "{\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}", "for(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "{\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "for(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "i!=0&&i!=H-1&&j!=0&&j!=W-1", "j!=0", "i!=0&&i!=H-1&&j!=0&&j!=W-1", "i!=0", "i", "0", "i!=H-1", "i", "H-1", "H", "1", "j!=0", "j", "0", "j!=W-1", "j", "W-1", "W", "1", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "H = sc.nextInt()", "H", "sc.nextInt()", "sc.nextInt", "sc", "W = sc.nextInt()", "W", "sc.nextInt()", "sc.nextInt", "sc", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); while(H!=0&&W!=0){ for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ if(i!=0&&i!=H-1&&j!=0&&j!=W-1){ System.out.print("."); }else{ System.out.print("#"); } } System.out.println(""); } System.out.println(""); H = sc.nextInt(); W = sc.nextInt(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 119, 5 ], [ 119, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 18, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 65, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 82, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 82, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 51, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 18, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 6, 116 ], [ 116, 117 ], [ 0, 118 ], [ 118, 119 ], [ 118, 120 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String [] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint i,j;\n\t\t\n\t\twhile(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i=0; i<h; i++){\n\t\t\t\tfor(j=0; j<w; j++){\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String [] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint i,j;\n\t\t\n\t\twhile(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i=0; i<h; i++){\n\t\t\t\tfor(j=0; j<w; j++){\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "public static void main(String [] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint i,j;\n\t\t\n\t\twhile(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i=0; i<h; i++){\n\t\t\t\tfor(j=0; j<w; j++){\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint i,j;\n\t\t\n\t\twhile(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i=0; i<h; i++){\n\t\t\t\tfor(j=0; j<w; j++){\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int i", "i", "j;", "j", "while(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i=0; i<h; i++){\n\t\t\t\tfor(j=0; j<w; j++){\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i=0; i<h; i++){\n\t\t\t\tfor(j=0; j<w; j++){\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int h = scan.nextInt();", "h", "scan.nextInt()", "scan.nextInt", "scan", "int w = scan.nextInt();", "w", "scan.nextInt()", "scan.nextInt", "scan", "if(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for(i=0; i<h; i++){\n\t\t\t\tfor(j=0; j<w; j++){\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<h", "i", "h", "i++", "i++", "i", "{\n\t\t\t\tfor(j=0; j<w; j++){\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor(j=0; j<w; j++){\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for(j=0; j<w; j++){\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "j=0;", "j=0", "j", "0", "j<w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "{\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "if(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}", "i==0 || i == (h-1)", "i==0", "i", "0", "i == (h-1)", "i", "(h-1)", "h", "1", "{\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}", "System.out.print('#')", "System.out.print", "System.out", "System", "System.out", "'#'", "if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}", "j==0 || j==(w-1)", "j==0", "j", "0", "j==(w-1)", "j", "(w-1)", "w", "1", "{\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}", "System.out.print('#')", "System.out.print", "System.out", "System", "System.out", "'#'", "{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}", "System.out.print('.')", "System.out.print", "System.out", "System", "System.out", "'.'", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String [] args", "args", "public class Main {\n\tpublic static void main(String [] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint i,j;\n\t\t\n\t\twhile(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i=0; i<h; i++){\n\t\t\t\tfor(j=0; j<w; j++){\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String [] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint i,j;\n\t\t\n\t\twhile(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor(i=0; i<h; i++){\n\t\t\t\tfor(j=0; j<w; j++){\n\t\t\t\t\tif(i==0 || i == (h-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else if(j==0 || j==(w-1)){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String [] args){ Scanner scan = new Scanner(System.in); int i,j; while(true){ int h = scan.nextInt(); int w = scan.nextInt(); if(h == 0 && w == 0){ break; } for(i=0; i<h; i++){ for(j=0; j<w; j++){ if(i==0 || i == (h-1)){ System.out.print('#'); }else if(j==0 || j==(w-1)){ System.out.print('#'); }else{ System.out.print('.'); } } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 122, 5 ], [ 122, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 47, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 76, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 94, 96 ], [ 89, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 89, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 46, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 14, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 6, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tfor(int i = 1;i <= H;i++){\n\t\t\t\tif(i == 1 || i == H){\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tfor(int i = 1;i <= H;i++){\n\t\t\t\tif(i == 1 || i == H){\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tfor(int i = 1;i <= H;i++){\n\t\t\t\tif(i == 1 || i == H){\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tfor(int i = 1;i <= H;i++){\n\t\t\t\tif(i == 1 || i == H){\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(true){\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tfor(int i = 1;i <= H;i++){\n\t\t\t\tif(i == 1 || i == H){\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tfor(int i = 1;i <= H;i++){\n\t\t\t\tif(i == 1 || i == H){\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int W = sc.nextInt();", "W", "sc.nextInt()", "sc.nextInt", "sc", "if(H == 0 && W == 0)\n\t\t\t\tbreak;", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "break;", "for(int i = 1;i <= H;i++){\n\t\t\t\tif(i == 1 || i == H){\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\tif(i == 1 || i == H){\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tif(i == 1 || i == H){\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "if(i == 1 || i == H){\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "i == 1 || i == H", "i == 1", "i", "1", "i == H", "i", "H", "{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "for(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j <= W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "for(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j <= W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "if(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");", "j == 1 || j == W", "j == 1", "j", "1", "j == W", "j", "W", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tfor(int i = 1;i <= H;i++){\n\t\t\t\tif(i == 1 || i == H){\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\twhile(true){\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tfor(int i = 1;i <= H;i++){\n\t\t\t\tif(i == 1 || i == H){\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tfor(int j = 1;j <= W;j++){\n\t\t\t\t\t\tif(j == 1 || j == W)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); while(true){ int H = sc.nextInt(); int W = sc.nextInt(); if(H == 0 && W == 0) break; for(int i = 1;i <= H;i++){ if(i == 1 || i == H){ for(int j = 1;j <= W;j++){ System.out.print("#"); } }else{ for(int j = 1;j <= W;j++){ if(j == 1 || j == W) System.out.print("#"); else System.out.print("."); } } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 17, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 17, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 80, 79 ], [ 89, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 89, 89 ], [ 89, 90 ], [ 89, 91 ], [ 80, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 77, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 77, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 63, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 17, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 8, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 6, 121 ], [ 121, 122 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\twhile(true){\n\t\t\tString[] ary=br.readLine().split(\" \");\n\t\t\tint H=Integer.parseInt(ary[0]);\n\t int W=Integer.parseInt(ary[1]);\n\t\t\tif(H==0&&W==0) break;\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsb.append('\\n');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\twhile(true){\n\t\t\tString[] ary=br.readLine().split(\" \");\n\t\t\tint H=Integer.parseInt(ary[0]);\n\t int W=Integer.parseInt(ary[1]);\n\t\t\tif(H==0&&W==0) break;\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsb.append('\\n');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\twhile(true){\n\t\t\tString[] ary=br.readLine().split(\" \");\n\t\t\tint H=Integer.parseInt(ary[0]);\n\t int W=Integer.parseInt(ary[1]);\n\t\t\tif(H==0&&W==0) break;\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsb.append('\\n');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\twhile(true){\n\t\t\tString[] ary=br.readLine().split(\" \");\n\t\t\tint H=Integer.parseInt(ary[0]);\n\t int W=Integer.parseInt(ary[1]);\n\t\t\tif(H==0&&W==0) break;\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsb.append('\\n');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb=new StringBuilder();", "sb", "new StringBuilder()", "while(true){\n\t\t\tString[] ary=br.readLine().split(\" \");\n\t\t\tint H=Integer.parseInt(ary[0]);\n\t int W=Integer.parseInt(ary[1]);\n\t\t\tif(H==0&&W==0) break;\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsb.append('\\n');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}", "true", "{\n\t\t\tString[] ary=br.readLine().split(\" \");\n\t\t\tint H=Integer.parseInt(ary[0]);\n\t int W=Integer.parseInt(ary[1]);\n\t\t\tif(H==0&&W==0) break;\n\t\t\tfor(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsb.append('\\n');\n\t\t\t}\n\t\t\tsb.append('\\n');\n\t\t}", "String[] ary=br.readLine().split(\" \");", "ary", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int H=Integer.parseInt(ary[0]);", "H", "Integer.parseInt(ary[0])", "Integer.parseInt", "Integer", "ary[0]", "ary", "0", "int W=Integer.parseInt(ary[1]);", "W", "Integer.parseInt(ary[1])", "Integer.parseInt", "Integer", "ary[1]", "ary", "1", "if(H==0&&W==0) break;", "H==0&&W==0", "H==0", "H", "0", "W==0", "W", "0", "break;", "for(int i=0;i<H;i++){\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsb.append('\\n');\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsb.append('\\n');\n\t\t\t}", "{\n\t\t\t\tfor(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tsb.append('\\n');\n\t\t\t}", "for(int j=0;j<W;j++){\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}\n\t\t\t\t}", "if(i!=0&&i!=H-1&&j!=0&&j!=W-1){\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}", "i!=0&&i!=H-1&&j!=0&&j!=W-1", "j!=0", "i!=0&&i!=H-1&&j!=0&&j!=W-1", "i!=0", "i", "0", "i!=H-1", "i", "H-1", "H", "1", "j!=0", "j", "0", "j!=W-1", "j", "W-1", "W", "1", "{\n\t\t\t\t\t\tsb.append('.');\n\t\t\t\t\t}", "sb.append('.')", "sb.append", "sb", "'.'", "{\n\t\t\t\t\t\tsb.append('#');\n\t\t\t\t\t}", "sb.append('#')", "sb.append", "sb", "'#'", "sb.append('\\n')", "sb.append", "sb", "'\\n'", "sb.append('\\n')", "sb.append", "sb", "'\\n'", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) throws Exception { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb=new StringBuilder(); while(true){ String[] ary=br.readLine().split(" "); int H=Integer.parseInt(ary[0]); int W=Integer.parseInt(ary[1]); if(H==0&&W==0) break; for(int i=0;i<H;i++){ for(int j=0;j<W;j++){ if(i!=0&&i!=H-1&&j!=0&&j!=W-1){ sb.append('.'); }else{ sb.append('#'); } } sb.append('\n'); } sb.append('\n'); } System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 112, 5 ], [ 112, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 18, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 68, 67 ], [ 77, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 74, 76 ], [ 77, 77 ], [ 77, 78 ], [ 77, 79 ], [ 68, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 65, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 65, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 51, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 18, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 6, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "import java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H;\n\t\tint W;\n\t\t\n\t\twhile (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\t\n\t\t\t//0 0?????????\n\t\t\tif (H ==0 && W ==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//????????¢???????????????\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//?¬??????????????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//???????????????????????????\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H;\n\t\tint W;\n\t\t\n\t\twhile (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\t\n\t\t\t//0 0?????????\n\t\t\tif (H ==0 && W ==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//????????¢???????????????\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//?¬??????????????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//???????????????????????????\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H;\n\t\tint W;\n\t\t\n\t\twhile (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\t\n\t\t\t//0 0?????????\n\t\t\tif (H ==0 && W ==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//????????¢???????????????\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//?¬??????????????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//???????????????????????????\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H;\n\t\tint W;\n\t\t\n\t\twhile (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\t\n\t\t\t//0 0?????????\n\t\t\tif (H ==0 && W ==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//????????¢???????????????\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//?¬??????????????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//???????????????????????????\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int H;", "H", "int W;", "W", "while (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\t\n\t\t\t//0 0?????????\n\t\t\tif (H ==0 && W ==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//????????¢???????????????\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//?¬??????????????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//???????????????????????????\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\t\n\t\t\t//0 0?????????\n\t\t\tif (H ==0 && W ==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//????????¢???????????????\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//?¬??????????????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//???????????????????????????\n\t\t\tSystem.out.println();\n\t\t}", "H = sc.nextInt()", "H", "sc.nextInt()", "sc.nextInt", "sc", "W = sc.nextInt()", "W", "sc.nextInt()", "sc.nextInt", "sc", "if (H ==0 && W ==0) {\n\t\t\t\tbreak;\n\t\t\t}", "H ==0 && W ==0", "H ==0", "H", "0", "W ==0", "W", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//?¬??????????????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//?¬??????????????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//?¬??????????????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for (int j = 0; j < W; j++) {\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}", "if(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}", "i==0 || i==H-1 || j==0 || j==W-1", "j==0", "i==0 || i==H-1 || j==0 || j==W-1", "i==0", "i", "0", "i==H-1", "i", "H-1", "H", "1", "j==0", "j", "0", "j==W-1", "j", "W-1", "W", "1", "{\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}", "System.out.print('#')", "System.out.print", "System.out", "System", "System.out", "'#'", "{\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}", "System.out.print('.')", "System.out.print", "System.out", "System", "System.out", "'.'", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H;\n\t\tint W;\n\t\t\n\t\twhile (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\t\n\t\t\t//0 0?????????\n\t\t\tif (H ==0 && W ==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//????????¢???????????????\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//?¬??????????????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//???????????????????????????\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H;\n\t\tint W;\n\t\t\n\t\twhile (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\t\n\t\t\t//0 0?????????\n\t\t\tif (H ==0 && W ==0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\t//????????¢???????????????\n\t\t\tfor (int i = 0; i < H; i++) {\n\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif(i==0 || i==H-1 || j==0 || j==W-1){\n\t\t\t\t\t\tSystem.out.print('#');\n\t\t\t\t\t}\n\t\t\t\t\telse {\n\t\t\t\t\t\tSystem.out.print('.');\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\t//?¬??????????????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t//???????????????????????????\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H; int W; while (true) { H = sc.nextInt(); W = sc.nextInt(); //0 0????????? if (H ==0 && W ==0) { break; } //????????¢??????????????? for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { //?????????????????? if(i==0 || i==H-1 || j==0 || j==W-1){ System.out.print('#'); } else { System.out.print('.'); } } //?¬?????????????????????? System.out.println(); } //??????????????????????????? System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 17, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 14, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 77, 76 ], [ 84, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 84, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 77, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 74, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 74, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 60, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 14, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 6, 116 ], [ 116, 117 ] ]
[ "import java.io.*;\n\nclass Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString[] str = buf.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(str[0]);\n\t\t\tint W = Integer.parseInt(str[1]);\n\n\t\t\tif(W==0 && H==0)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0; i<H; i++){\n\t\t\t\tfor(int j=0; j<W; j++){\n\t\t\t\t\tif(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\t\t\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString[] str = buf.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(str[0]);\n\t\t\tint W = Integer.parseInt(str[1]);\n\n\t\t\tif(W==0 && H==0)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0; i<H; i++){\n\t\t\t\tfor(int j=0; j<W; j++){\n\t\t\t\t\tif(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\t\t\n\t}\n}", "Main", "public static void main(String args[]) throws IOException{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString[] str = buf.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(str[0]);\n\t\t\tint W = Integer.parseInt(str[1]);\n\n\t\t\tif(W==0 && H==0)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0; i<H; i++){\n\t\t\t\tfor(int j=0; j<W; j++){\n\t\t\t\t\tif(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\t\t\n\t}", "main", "{\n\t\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString[] str = buf.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(str[0]);\n\t\t\tint W = Integer.parseInt(str[1]);\n\n\t\t\tif(W==0 && H==0)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0; i<H; i++){\n\t\t\t\tfor(int j=0; j<W; j++){\n\t\t\t\t\tif(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\t\t\n\t}", "BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));", "buf", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tString[] str = buf.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(str[0]);\n\t\t\tint W = Integer.parseInt(str[1]);\n\n\t\t\tif(W==0 && H==0)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0; i<H; i++){\n\t\t\t\tfor(int j=0; j<W; j++){\n\t\t\t\t\tif(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tString[] str = buf.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(str[0]);\n\t\t\tint W = Integer.parseInt(str[1]);\n\n\t\t\tif(W==0 && H==0)\n\t\t\t\tbreak;\n\t\t\tfor(int i=0; i<H; i++){\n\t\t\t\tfor(int j=0; j<W; j++){\n\t\t\t\t\tif(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "String[] str = buf.readLine().split(\" \");", "str", "buf.readLine().split(\" \")", "buf.readLine().split", "buf.readLine()", "buf.readLine", "buf", "\" \"", "int H = Integer.parseInt(str[0]);", "H", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "int W = Integer.parseInt(str[1]);", "W", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "if(W==0 && H==0)\n\t\t\t\tbreak;", "W==0 && H==0", "W==0", "W", "0", "H==0", "H", "0", "break;", "for(int i=0; i<H; i++){\n\t\t\t\tfor(int j=0; j<W; j++){\n\t\t\t\t\tif(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\tfor(int j=0; j<W; j++){\n\t\t\t\t\tif(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor(int j=0; j<W; j++){\n\t\t\t\t\tif(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for(int j=0; j<W; j++){\n\t\t\t\t\tif(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\tif(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tif(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "if(i==0 || j==0 || j==W-1 || i==H-1 )\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");", "i==0 || j==0 || j==W-1 || i==H-1", "j==W-1", "i==0 || j==0 || j==W-1 || i==H-1", "i==0", "i", "0", "j==0", "j", "0", "j==W-1", "j", "W-1", "W", "1", "i==H-1", "i", "H-1", "H", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String args[]", "args" ]
import java.io.*; class Main{ public static void main(String args[]) throws IOException{ BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); while(true){ String[] str = buf.readLine().split(" "); int H = Integer.parseInt(str[0]); int W = Integer.parseInt(str[1]); if(W==0 && H==0) break; for(int i=0; i<H; i++){ for(int j=0; j<W; j++){ if(i==0 || j==0 || j==W-1 || i==H-1 ) System.out.print("#"); else System.out.print("."); } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 13, 2, 13, 17, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 131, 8 ], [ 131, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 17, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 47, 49 ], [ 17, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 17, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 73, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 89, 88 ], [ 96, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 96, 96 ], [ 96, 97 ], [ 96, 98 ], [ 89, 99 ], [ 99, 100 ], [ 99, 101 ], [ 86, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 86, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 72, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 17, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 9, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args)throws Exception {\n\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t while(true){\n\t \tString line = br.readLine();\n\t \t//文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除く。\n\t \tline = line.trim();\n\t \t//半角スペースを区切り文字として扱う\n\t \tString[] readLineArray = line.split(\"[\\\\s+]\");\n\t \t//変数に配列を代入\n\t \tint a = Integer.parseInt(readLineArray[0]);\n\t \tint b = Integer.parseInt(readLineArray[1]);\n\t \tif(a == 0 && b == 0){\n\t \t\tbreak;\n\t \t}\n\t \tfor(int i = 1;i <= a;i++){\n\t \t\tfor(int j = 1;j <= b; j++){\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}\n\t \t\tSystem.out.printf(\"\\n\");\n\t \t}\n\t \tSystem.out.printf(\"\\n\");\n\t \t\n\t }\n\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args)throws Exception {\n\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t while(true){\n\t \tString line = br.readLine();\n\t \t//文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除く。\n\t \tline = line.trim();\n\t \t//半角スペースを区切り文字として扱う\n\t \tString[] readLineArray = line.split(\"[\\\\s+]\");\n\t \t//変数に配列を代入\n\t \tint a = Integer.parseInt(readLineArray[0]);\n\t \tint b = Integer.parseInt(readLineArray[1]);\n\t \tif(a == 0 && b == 0){\n\t \t\tbreak;\n\t \t}\n\t \tfor(int i = 1;i <= a;i++){\n\t \t\tfor(int j = 1;j <= b; j++){\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}\n\t \t\tSystem.out.printf(\"\\n\");\n\t \t}\n\t \tSystem.out.printf(\"\\n\");\n\t \t\n\t }\n\n\t}\n\n}", "Main", "public static void main(String[] args)throws Exception {\n\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t while(true){\n\t \tString line = br.readLine();\n\t \t//文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除く。\n\t \tline = line.trim();\n\t \t//半角スペースを区切り文字として扱う\n\t \tString[] readLineArray = line.split(\"[\\\\s+]\");\n\t \t//変数に配列を代入\n\t \tint a = Integer.parseInt(readLineArray[0]);\n\t \tint b = Integer.parseInt(readLineArray[1]);\n\t \tif(a == 0 && b == 0){\n\t \t\tbreak;\n\t \t}\n\t \tfor(int i = 1;i <= a;i++){\n\t \t\tfor(int j = 1;j <= b; j++){\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}\n\t \t\tSystem.out.printf(\"\\n\");\n\t \t}\n\t \tSystem.out.printf(\"\\n\");\n\t \t\n\t }\n\n\t}", "main", "{\n\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t while(true){\n\t \tString line = br.readLine();\n\t \t//文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除く。\n\t \tline = line.trim();\n\t \t//半角スペースを区切り文字として扱う\n\t \tString[] readLineArray = line.split(\"[\\\\s+]\");\n\t \t//変数に配列を代入\n\t \tint a = Integer.parseInt(readLineArray[0]);\n\t \tint b = Integer.parseInt(readLineArray[1]);\n\t \tif(a == 0 && b == 0){\n\t \t\tbreak;\n\t \t}\n\t \tfor(int i = 1;i <= a;i++){\n\t \t\tfor(int j = 1;j <= b; j++){\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}\n\t \t\tSystem.out.printf(\"\\n\");\n\t \t}\n\t \tSystem.out.printf(\"\\n\");\n\t \t\n\t }\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t \tString line = br.readLine();\n\t \t//文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除く。\n\t \tline = line.trim();\n\t \t//半角スペースを区切り文字として扱う\n\t \tString[] readLineArray = line.split(\"[\\\\s+]\");\n\t \t//変数に配列を代入\n\t \tint a = Integer.parseInt(readLineArray[0]);\n\t \tint b = Integer.parseInt(readLineArray[1]);\n\t \tif(a == 0 && b == 0){\n\t \t\tbreak;\n\t \t}\n\t \tfor(int i = 1;i <= a;i++){\n\t \t\tfor(int j = 1;j <= b; j++){\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}\n\t \t\tSystem.out.printf(\"\\n\");\n\t \t}\n\t \tSystem.out.printf(\"\\n\");\n\t \t\n\t }", "true", "{\n\t \tString line = br.readLine();\n\t \t//文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除く。\n\t \tline = line.trim();\n\t \t//半角スペースを区切り文字として扱う\n\t \tString[] readLineArray = line.split(\"[\\\\s+]\");\n\t \t//変数に配列を代入\n\t \tint a = Integer.parseInt(readLineArray[0]);\n\t \tint b = Integer.parseInt(readLineArray[1]);\n\t \tif(a == 0 && b == 0){\n\t \t\tbreak;\n\t \t}\n\t \tfor(int i = 1;i <= a;i++){\n\t \t\tfor(int j = 1;j <= b; j++){\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}\n\t \t\tSystem.out.printf(\"\\n\");\n\t \t}\n\t \tSystem.out.printf(\"\\n\");\n\t \t\n\t }", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "line = line.trim()", "line", "line.trim()", "line.trim", "line", "String[] readLineArray = line.split(\"[\\\\s+]\");", "readLineArray", "line.split(\"[\\\\s+]\")", "line.split", "line", "\"[\\\\s+]\"", "int a = Integer.parseInt(readLineArray[0]);", "a", "Integer.parseInt(readLineArray[0])", "Integer.parseInt", "Integer", "readLineArray[0]", "readLineArray", "0", "int b = Integer.parseInt(readLineArray[1]);", "b", "Integer.parseInt(readLineArray[1])", "Integer.parseInt", "Integer", "readLineArray[1]", "readLineArray", "1", "if(a == 0 && b == 0){\n\t \t\tbreak;\n\t \t}", "a == 0 && b == 0", "a == 0", "a", "0", "b == 0", "b", "0", "{\n\t \t\tbreak;\n\t \t}", "break;", "for(int i = 1;i <= a;i++){\n\t \t\tfor(int j = 1;j <= b; j++){\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}\n\t \t\tSystem.out.printf(\"\\n\");\n\t \t}", "int i = 1;", "int i = 1;", "i", "1", "i <= a", "i", "a", "i++", "i++", "i", "{\n\t \t\tfor(int j = 1;j <= b; j++){\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}\n\t \t\tSystem.out.printf(\"\\n\");\n\t \t}", "{\n\t \t\tfor(int j = 1;j <= b; j++){\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}\n\t \t\tSystem.out.printf(\"\\n\");\n\t \t}", "for(int j = 1;j <= b; j++){\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}", "int j = 1;", "int j = 1;", "j", "1", "j <= b", "j", "b", "j++", "j++", "j", "{\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}", "{\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}", "if(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}", "j == 1 || j == b || i == 1 || i == a", "i == 1", "j == 1 || j == b || i == 1 || i == a", "j == 1", "j", "1", "j == b", "j", "b", "i == 1", "i", "1", "i == a", "i", "a", "{\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "{\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}", "System.out.printf(\".\")", "System.out.printf", "System.out", "System", "System.out", "\".\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args)throws Exception {\n\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t while(true){\n\t \tString line = br.readLine();\n\t \t//文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除く。\n\t \tline = line.trim();\n\t \t//半角スペースを区切り文字として扱う\n\t \tString[] readLineArray = line.split(\"[\\\\s+]\");\n\t \t//変数に配列を代入\n\t \tint a = Integer.parseInt(readLineArray[0]);\n\t \tint b = Integer.parseInt(readLineArray[1]);\n\t \tif(a == 0 && b == 0){\n\t \t\tbreak;\n\t \t}\n\t \tfor(int i = 1;i <= a;i++){\n\t \t\tfor(int j = 1;j <= b; j++){\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}\n\t \t\tSystem.out.printf(\"\\n\");\n\t \t}\n\t \tSystem.out.printf(\"\\n\");\n\t \t\n\t }\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args)throws Exception {\n\n\t\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t while(true){\n\t \tString line = br.readLine();\n\t \t//文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除く。\n\t \tline = line.trim();\n\t \t//半角スペースを区切り文字として扱う\n\t \tString[] readLineArray = line.split(\"[\\\\s+]\");\n\t \t//変数に配列を代入\n\t \tint a = Integer.parseInt(readLineArray[0]);\n\t \tint b = Integer.parseInt(readLineArray[1]);\n\t \tif(a == 0 && b == 0){\n\t \t\tbreak;\n\t \t}\n\t \tfor(int i = 1;i <= a;i++){\n\t \t\tfor(int j = 1;j <= b; j++){\n\t \t\t\tif(j == 1 || j == b || i == 1 || i == a){\n\t \t\t\tSystem.out.printf(\"#\");\n\t \t\t\t}else {\n\t \t\t\tSystem.out.printf(\".\");\n\t \t\t\t}\n\t \t\t}\n\t \t\tSystem.out.printf(\"\\n\");\n\t \t}\n\t \tSystem.out.printf(\"\\n\");\n\t \t\n\t }\n\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args)throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ String line = br.readLine(); //文字列に先頭又は最後に空白文字がくっ付いている場合、それらを全て取り除く。 line = line.trim(); //半角スペースを区切り文字として扱う String[] readLineArray = line.split("[\\s+]"); //変数に配列を代入 int a = Integer.parseInt(readLineArray[0]); int b = Integer.parseInt(readLineArray[1]); if(a == 0 && b == 0){ break; } for(int i = 1;i <= a;i++){ for(int j = 1;j <= b; j++){ if(j == 1 || j == b || i == 1 || i == a){ System.out.printf("#"); }else { System.out.printf("."); } } System.out.printf("\n"); } System.out.printf("\n"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 135, 5 ], [ 135, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 12, 17 ], [ 17, 18 ], [ 17, 19 ], [ 12, 20 ], [ 20, 21 ], [ 21, 22 ], [ 12, 23 ], [ 24, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 24, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 41, 43 ], [ 24, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 24, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 24, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 75, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 91, 90 ], [ 100, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 100, 100 ], [ 100, 101 ], [ 100, 102 ], [ 91, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 88, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 88, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 74, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 24, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 6, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 300; i++) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int H = Integer.parseInt(l[0]);\n int W = Integer.parseInt(l[1]);\n if(H == 0 && W == 0) {\n break;\n }\n\n for(int h = 0; h < H; h++) {\n for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 300; i++) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int H = Integer.parseInt(l[0]);\n int W = Integer.parseInt(l[1]);\n if(H == 0 && W == 0) {\n break;\n }\n\n for(int h = 0; h < H; h++) {\n for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 300; i++) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int H = Integer.parseInt(l[0]);\n int W = Integer.parseInt(l[1]);\n if(H == 0 && W == 0) {\n break;\n }\n\n for(int h = 0; h < H; h++) {\n for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 300; i++) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int H = Integer.parseInt(l[0]);\n int W = Integer.parseInt(l[1]);\n if(H == 0 && W == 0) {\n break;\n }\n\n for(int h = 0; h < H; h++) {\n for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(int i = 0; i < 300; i++) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int H = Integer.parseInt(l[0]);\n int W = Integer.parseInt(l[1]);\n if(H == 0 && W == 0) {\n break;\n }\n\n for(int h = 0; h < H; h++) {\n for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 300", "i", "300", "i++", "i++", "i", "{\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int H = Integer.parseInt(l[0]);\n int W = Integer.parseInt(l[1]);\n if(H == 0 && W == 0) {\n break;\n }\n\n for(int h = 0; h < H; h++) {\n for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "{\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int H = Integer.parseInt(l[0]);\n int W = Integer.parseInt(l[1]);\n if(H == 0 && W == 0) {\n break;\n }\n\n for(int h = 0; h < H; h++) {\n for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "String[] l = line.split(\" \");", "l", "line.split(\" \")", "line.split", "line", "\" \"", "int H = Integer.parseInt(l[0]);", "H", "Integer.parseInt(l[0])", "Integer.parseInt", "Integer", "l[0]", "l", "0", "int W = Integer.parseInt(l[1]);", "W", "Integer.parseInt(l[1])", "Integer.parseInt", "Integer", "l[1]", "l", "1", "if(H == 0 && W == 0) {\n break;\n }", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n break;\n }", "break;", "for(int h = 0; h < H; h++) {\n for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "int h = 0;", "int h = 0;", "h", "0", "h < H", "h", "H", "h++", "h++", "h", "{\n for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "{\n for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }", "int w = 0;", "int w = 0;", "w", "0", "w < W", "w", "W", "w++", "w++", "w", "{\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }", "{\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }", "if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }", "h == 0 || h == H -1 || w == 0 || w == W - 1", "w == 0", "h == 0 || h == H -1 || w == 0 || w == W - 1", "h == 0", "h", "0", "h == H -1", "h", "H -1", "H", "1", "w == 0", "w", "0", "w == W - 1", "w", "W - 1", "W", "1", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 300; i++) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int H = Integer.parseInt(l[0]);\n int W = Integer.parseInt(l[1]);\n if(H == 0 && W == 0) {\n break;\n }\n\n for(int h = 0; h < H; h++) {\n for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n for(int i = 0; i < 300; i++) {\n String line = sc.nextLine();\n String[] l = line.split(\" \");\n int H = Integer.parseInt(l[0]);\n int W = Integer.parseInt(l[1]);\n if(H == 0 && W == 0) {\n break;\n }\n\n for(int h = 0; h < H; h++) {\n for(int w = 0; w < W; w++) {\n if(h == 0 || h == H -1 || w == 0 || w == W - 1) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); for(int i = 0; i < 300; i++) { String line = sc.nextLine(); String[] l = line.split(" "); int H = Integer.parseInt(l[0]); int W = Integer.parseInt(l[1]); if(H == 0 && W == 0) { break; } for(int h = 0; h < H; h++) { for(int w = 0; w < W; w++) { if(h == 0 || h == H -1 || w == 0 || w == W - 1) { System.out.print("#"); } else { System.out.print("."); } } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 20, 42, 2, 13, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 13, 14, 4, 18, 13, 17, 30, 3, 28, 13, 13, 30, 30, 14, 4, 18, 13, 17, 30, 3, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 42, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 40, 13, 30, 4, 18, 18, 13, 13, 17, 40, 13, 42, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 40, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 164, 11 ], [ 164, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 43, 44 ], [ 14, 45 ], [ 45, 46 ], [ 45, 47 ], [ 45, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 56 ], [ 49, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 49, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 49, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 49, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 95, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 110, 117 ], [ 117, 118 ], [ 95, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 119, 126 ], [ 126, 127 ], [ 119, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 128, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 134, 141 ], [ 141, 142 ], [ 119, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 91, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 49, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 12, 161 ], [ 161, 162 ], [ 0, 163 ], [ 163, 164 ], [ 163, 165 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] arges) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i = 0;\n\t\tList<String> klist = new ArrayList<String>();\n\t\twhile (i < 1) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (String string : klist) {\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] k = string.split(\" \");\n\t\t\tint v = Integer.parseInt(k[0]);\n\t\t\tint v2 = Integer.parseInt(k[1]);\n\t\t\tfor (int j = 0; j < v; j++) {\n\n\t\t\t\tint count = 0;\n\t\t\t\tif (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] arges) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i = 0;\n\t\tList<String> klist = new ArrayList<String>();\n\t\twhile (i < 1) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (String string : klist) {\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] k = string.split(\" \");\n\t\t\tint v = Integer.parseInt(k[0]);\n\t\t\tint v2 = Integer.parseInt(k[1]);\n\t\t\tfor (int j = 0; j < v; j++) {\n\n\t\t\t\tint count = 0;\n\t\t\t\tif (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] arges) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i = 0;\n\t\tList<String> klist = new ArrayList<String>();\n\t\twhile (i < 1) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (String string : klist) {\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] k = string.split(\" \");\n\t\t\tint v = Integer.parseInt(k[0]);\n\t\t\tint v2 = Integer.parseInt(k[1]);\n\t\t\tfor (int j = 0; j < v; j++) {\n\n\t\t\t\tint count = 0;\n\t\t\t\tif (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i = 0;\n\t\tList<String> klist = new ArrayList<String>();\n\t\twhile (i < 1) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (String string : klist) {\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] k = string.split(\" \");\n\t\t\tint v = Integer.parseInt(k[0]);\n\t\t\tint v2 = Integer.parseInt(k[1]);\n\t\t\tfor (int j = 0; j < v; j++) {\n\n\t\t\t\tint count = 0;\n\t\t\t\tif (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int i = 0;", "i", "0", "List<String> klist = new ArrayList<String>();", "klist", "new ArrayList<String>()", "while (i < 1) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "i < 1", "i", "1", "{\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "klist.add(line)", "klist.add", "klist", "line", "if (line.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}", "line.equals(\"0 0\")", "line.equals", "line", "\"0 0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (String string : klist) {\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] k = string.split(\" \");\n\t\t\tint v = Integer.parseInt(k[0]);\n\t\t\tint v2 = Integer.parseInt(k[1]);\n\t\t\tfor (int j = 0; j < v; j++) {\n\n\t\t\t\tint count = 0;\n\t\t\t\tif (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t}", "String string", "klist", "{\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] k = string.split(\" \");\n\t\t\tint v = Integer.parseInt(k[0]);\n\t\t\tint v2 = Integer.parseInt(k[1]);\n\t\t\tfor (int j = 0; j < v; j++) {\n\n\t\t\t\tint count = 0;\n\t\t\t\tif (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t}", "{\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] k = string.split(\" \");\n\t\t\tint v = Integer.parseInt(k[0]);\n\t\t\tint v2 = Integer.parseInt(k[1]);\n\t\t\tfor (int j = 0; j < v; j++) {\n\n\t\t\t\tint count = 0;\n\t\t\t\tif (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t}", "if (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}", "string.equals(\"0 0\")", "string.equals", "string", "\"0 0\"", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "String[] k = string.split(\" \");", "k", "string.split(\" \")", "string.split", "string", "\" \"", "int v = Integer.parseInt(k[0]);", "v", "Integer.parseInt(k[0])", "Integer.parseInt", "Integer", "k[0]", "k", "0", "int v2 = Integer.parseInt(k[1]);", "v2", "Integer.parseInt(k[1])", "Integer.parseInt", "Integer", "k[1]", "k", "1", "for (int j = 0; j < v; j++) {\n\n\t\t\t\tint count = 0;\n\t\t\t\tif (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < v", "j", "v", "j++", "j++", "j", "{\n\n\t\t\t\tint count = 0;\n\t\t\t\tif (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}", "{\n\n\t\t\t\tint count = 0;\n\t\t\t\tif (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}", "int count = 0;", "count", "0", "if (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "j == 0 || j == v - 1", "j == 0", "j", "0", "j == v - 1", "j", "v - 1", "v", "1", "{\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t}", "while (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}", "count < v2", "count", "v2", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "count++", "count", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "count++", "count", "while (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}", "count < v2 - 1", "count", "v2 - 1", "v2", "1", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "count++", "count", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] arges", "arges", "public class Main {\n\tpublic static void main(String[] arges) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i = 0;\n\t\tList<String> klist = new ArrayList<String>();\n\t\twhile (i < 1) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (String string : klist) {\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] k = string.split(\" \");\n\t\t\tint v = Integer.parseInt(k[0]);\n\t\t\tint v2 = Integer.parseInt(k[1]);\n\t\t\tfor (int j = 0; j < v; j++) {\n\n\t\t\t\tint count = 0;\n\t\t\t\tif (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] arges) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i = 0;\n\t\tList<String> klist = new ArrayList<String>();\n\t\twhile (i < 1) {\n\t\t\tString line = sc.nextLine();\n\t\t\tklist.add(line);\n\t\t\tif (line.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tfor (String string : klist) {\n\t\t\tif (string.equals(\"0 0\")) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tString[] k = string.split(\" \");\n\t\t\tint v = Integer.parseInt(k[0]);\n\t\t\tint v2 = Integer.parseInt(k[1]);\n\t\t\tfor (int j = 0; j < v; j++) {\n\n\t\t\t\tint count = 0;\n\t\t\t\tif (j == 0 || j == v - 1) {\n\t\t\t\t\twhile (count < v2) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tcount++;\n\t\t\t\t\twhile (count < v2 - 1) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\tcount++;\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\t\t\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] arges) { Scanner sc = new Scanner(System.in); int i = 0; List<String> klist = new ArrayList<String>(); while (i < 1) { String line = sc.nextLine(); klist.add(line); if (line.equals("0 0")) { break; } } for (String string : klist) { if (string.equals("0 0")) { break; } String[] k = string.split(" "); int v = Integer.parseInt(k[0]); int v2 = Integer.parseInt(k[1]); for (int j = 0; j < v; j++) { int count = 0; if (j == 0 || j == v - 1) { while (count < v2) { System.out.print("#"); count++; } } else { System.out.print("#"); count++; while (count < v2 - 1) { System.out.print("."); count++; } System.out.print("#"); } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 111, 5 ], [ 111, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 60, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 76, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 76, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 46, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 14, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 6, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tif (a == 0 & b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tif (a == 0 & b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tif (a == 0 & b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tif (a == 0 & b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tif (a == 0 & b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tif (a == 0 & b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int a = scanner.nextInt();", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "int b = scanner.nextInt();", "b", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (a == 0 & b == 0)\n\t\t\t\tbreak;", "a == 0 & b == 0", "a == 0", "a", "0", "b == 0", "b", "0", "break;", "for (int i = 0; i < a; i++) {\n\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < a", "i", "a", "i++", "i++", "i", "{\n\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for (int j = 0; j < b; j++) {\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < b", "j", "b", "j++", "j++", "j", "{\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "if(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");", "i==0||i == a-1", "i==0", "i", "0", "i == a-1", "i", "a-1", "a", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");", "j==0||j==b-1", "j==0", "j", "0", "j==b-1", "j", "b-1", "b", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tif (a == 0 & b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tif (a == 0 & b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\tif(i==0||i == a-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j==0||j==b-1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (true) { int a = scanner.nextInt(); int b = scanner.nextInt(); if (a == 0 & b == 0) break; for (int i = 0; i < a; i++) { for (int j = 0; j < b; j++) { if(i==0||i == a-1) System.out.print("#"); else if(j==0||j==b-1) System.out.print("#"); else System.out.print("."); } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 116, 5 ], [ 116, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 62, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 79, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 79, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 48, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 35, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 6, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(int a = 0; a < h; a++){\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(int a = 0; a < h; a++){\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(int a = 0; a < h; a++){\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(int a = 0; a < h; a++){\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(int a = 0; a < h; a++){\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "true", "{\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(int a = 0; a < h; a++){\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "int h = scan.nextInt();", "h", "scan.nextInt()", "scan.nextInt", "scan", "int w = scan.nextInt();", "w", "scan.nextInt()", "scan.nextInt", "scan", "if(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(int a = 0; a < h; a++){\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tfor(int a = 0; a < h; a++){\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for(int a = 0; a < h; a++){\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "int a = 0;", "int a = 0;", "a", "0", "a < h", "a", "h", "a++", "a++", "a", "{\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "{\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "for(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "int b = 0;", "int b = 0;", "b", "0", "b < w", "b", "w", "b++", "b++", "b", "{\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "a == 0 || a == h - 1", "a == 0", "a", "0", "a == h - 1", "a", "h - 1", "h", "1", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "b == 0 || b == w - 1", "b == 0", "b", "0", "b == w - 1", "b", "w - 1", "w", "1", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(int a = 0; a < h; a++){\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\t\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}else{\n\t\t\t\tfor(int a = 0; a < h; a++){\n\t\t\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\t\t\tif(a == 0 || a == h - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if(b == 0 || b == w - 1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); while(true){ int h = scan.nextInt(); int w = scan.nextInt(); if(h == 0 && w == 0){ break; }else{ for(int a = 0; a < h; a++){ for(int b = 0; b < w; b++){ if(a == 0 || a == h - 1){ System.out.print("#"); }else if(b == 0 || b == w - 1){ System.out.print("#"); }else{ System.out.print("."); } } System.out.println(); } System.out.println(); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 17, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 17, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 75, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 64, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 100, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 95, 106 ], [ 107, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 108, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 108, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 63, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 17, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 9, 142 ], [ 142, 143 ] ]
[ "import java.util.Scanner;\nimport java.io.IOException;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString[] strAry = scan.nextLine().split(\" \");\n\t\t\tint h = Integer.parseInt(strAry[0]);\n\t\t\tint w = Integer.parseInt(strAry[1]);\n\t\t\t\n\t\t\tif (h == 0 && w == 0) break;\n\t\t\t\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.io.IOException;", "IOException", "java.io", "class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString[] strAry = scan.nextLine().split(\" \");\n\t\t\tint h = Integer.parseInt(strAry[0]);\n\t\t\tint w = Integer.parseInt(strAry[1]);\n\t\t\t\n\t\t\tif (h == 0 && w == 0) break;\n\t\t\t\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString[] strAry = scan.nextLine().split(\" \");\n\t\t\tint h = Integer.parseInt(strAry[0]);\n\t\t\tint w = Integer.parseInt(strAry[1]);\n\t\t\t\n\t\t\tif (h == 0 && w == 0) break;\n\t\t\t\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tString[] strAry = scan.nextLine().split(\" \");\n\t\t\tint h = Integer.parseInt(strAry[0]);\n\t\t\tint w = Integer.parseInt(strAry[1]);\n\t\t\t\n\t\t\tif (h == 0 && w == 0) break;\n\t\t\t\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (true) {\n\t\t\tString[] strAry = scan.nextLine().split(\" \");\n\t\t\tint h = Integer.parseInt(strAry[0]);\n\t\t\tint w = Integer.parseInt(strAry[1]);\n\t\t\t\n\t\t\tif (h == 0 && w == 0) break;\n\t\t\t\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tString[] strAry = scan.nextLine().split(\" \");\n\t\t\tint h = Integer.parseInt(strAry[0]);\n\t\t\tint w = Integer.parseInt(strAry[1]);\n\t\t\t\n\t\t\tif (h == 0 && w == 0) break;\n\t\t\t\n\t\t\tfor (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "String[] strAry = scan.nextLine().split(\" \");", "strAry", "scan.nextLine().split(\" \")", "scan.nextLine().split", "scan.nextLine()", "scan.nextLine", "scan", "\" \"", "int h = Integer.parseInt(strAry[0]);", "h", "Integer.parseInt(strAry[0])", "Integer.parseInt", "Integer", "strAry[0]", "strAry", "0", "int w = Integer.parseInt(strAry[1]);", "w", "Integer.parseInt(strAry[1])", "Integer.parseInt", "Integer", "strAry[1]", "strAry", "1", "if (h == 0 && w == 0) break;", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "for (int i = 0; i < h; i++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "if (i == 0 || i == h - 1) {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "i == 0 || i == h - 1", "i == 0", "i", "0", "i == h - 1", "i", "h - 1", "h", "1", "{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if (j == 0 || j == w - 1) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "j == 0 || j == w - 1", "j == 0", "j", "0", "j == w - 1", "j", "w - 1", "w", "1", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args" ]
import java.util.Scanner; import java.io.IOException; class Main { public static void main(String[] args) throws IOException { Scanner scan = new Scanner(System.in); while (true) { String[] strAry = scan.nextLine().split(" "); int h = Integer.parseInt(strAry[0]); int w = Integer.parseInt(strAry[1]); if (h == 0 && w == 0) break; for (int i = 0; i < h; i++) { if (i == 0 || i == h - 1) { for (int j = 0; j < w; j++) { System.out.print("#"); } } else { for (int j = 0; j < w; j++) { if (j == 0 || j == w - 1) { System.out.print("#"); } else { System.out.print("."); } } } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 14, 2, 2, 2, 2, 17, 13, 2, 13, 17, 2, 17, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 159, 5 ], [ 159, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 38, 37 ], [ 45, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 45, 45 ], [ 45, 46 ], [ 45, 47 ], [ 38, 48 ], [ 48, 49 ], [ 48, 50 ], [ 35, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 51, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 51, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 77, 87 ], [ 87, 88 ], [ 88, 89 ], [ 77, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 91, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 98, 108 ], [ 108, 109 ], [ 109, 110 ], [ 98, 111 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 91, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 51, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 130, 131 ], [ 130, 132 ], [ 125, 133 ], [ 133, 134 ], [ 134, 135 ], [ 125, 136 ], [ 137, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 51, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 14, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 150, 155 ], [ 6, 156 ], [ 156, 157 ], [ 0, 158 ], [ 158, 159 ], [ 158, 160 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t} else if (3 <= h && h <= 300 && 3 <= w && w <= 300) {\n\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}\n\t\t\t\tfor (int l = 0; l < w; l++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\nSystem.out.println(\"\");\n\n\t\t}\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t} else if (3 <= h && h <= 300 && 3 <= w && w <= 300) {\n\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}\n\t\t\t\tfor (int l = 0; l < w; l++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\nSystem.out.println(\"\");\n\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t} else if (3 <= h && h <= 300 && 3 <= w && w <= 300) {\n\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}\n\t\t\t\tfor (int l = 0; l < w; l++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\nSystem.out.println(\"\");\n\n\t\t}\n\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t} else if (3 <= h && h <= 300 && 3 <= w && w <= 300) {\n\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}\n\t\t\t\tfor (int l = 0; l < w; l++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\nSystem.out.println(\"\");\n\n\t\t}\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (true) {\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t} else if (3 <= h && h <= 300 && 3 <= w && w <= 300) {\n\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}\n\t\t\t\tfor (int l = 0; l < w; l++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\nSystem.out.println(\"\");\n\n\t\t}", "true", "{\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t} else if (3 <= h && h <= 300 && 3 <= w && w <= 300) {\n\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}\n\t\t\t\tfor (int l = 0; l < w; l++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\nSystem.out.println(\"\");\n\n\t\t}", "int h = scan.nextInt();", "h", "scan.nextInt()", "scan.nextInt", "scan", "int w = scan.nextInt();", "w", "scan.nextInt()", "scan.nextInt", "scan", "if (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t} else if (3 <= h && h <= 300 && 3 <= w && w <= 300) {\n\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}\n\t\t\t\tfor (int l = 0; l < w; l++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if (3 <= h && h <= 300 && 3 <= w && w <= 300) {\n\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}\n\t\t\t\tfor (int l = 0; l < w; l++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "3 <= h && h <= 300 && 3 <= w && w <= 300", "3 <= w", "3 <= h && h <= 300 && 3 <= w && w <= 300", "3 <= h", "3", "h", "h <= 300", "h", "300", "3 <= w", "3", "w", "w <= 300", "w", "300", "{\n\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}\n\t\t\t\tfor (int l = 0; l < w; l++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "for (int i = 0; i < w; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "for (int j = 0; j < h - 2; j++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < h - 2", "j", "h - 2", "h", "2", "j++", "j++", "j", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < w - 2", "k", "w - 2", "w", "2", "k++", "k++", "k", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\"", "for (int l = 0; l < w; l++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "int l = 0;", "int l = 0;", "l", "0", "l < w", "l", "w", "l++", "l++", "l", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t} else if (3 <= h && h <= 300 && 3 <= w && w <= 300) {\n\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}\n\t\t\t\tfor (int l = 0; l < w; l++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\nSystem.out.println(\"\");\n\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint h = scan.nextInt();\n\t\t\tint w = scan.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t} else if (3 <= h && h <= 300 && 3 <= w && w <= 300) {\n\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int k = 0; k < w - 2; k++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t}\n\t\t\t\tfor (int l = 0; l < w; l++) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\nSystem.out.println(\"\");\n\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (true) { int h = scan.nextInt(); int w = scan.nextInt(); if (h == 0 && w == 0) { break; } else if (3 <= h && h <= 300 && 3 <= w && w <= 300) { for (int i = 0; i < w; i++) { System.out.print("#"); } System.out.println(""); for (int j = 0; j < h - 2; j++) { System.out.print("#"); for (int k = 0; k < w - 2; k++) { System.out.print("."); } System.out.println("#"); } for (int l = 0; l < w; l++) { System.out.print("#"); } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 17, 17, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 18, 13, 18, 13, 13, 0, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 17, 41, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 13, 30, 0, 13, 13, 14, 2, 2, 13, 17, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 0, 13, 17, 4, 18, 18, 13, 13, 17, 30, 3, 30, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 193, 14 ], [ 193, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 17, 30 ], [ 30, 31 ], [ 17, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 61, 65 ], [ 58, 66 ], [ 66, 67 ], [ 66, 68 ], [ 58, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 69, 79 ], [ 79, 80 ], [ 80, 81 ], [ 69, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 58, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 58, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 58, 105 ], [ 105, 106 ], [ 105, 107 ], [ 58, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 113, 115 ], [ 108, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 122, 124 ], [ 117, 125 ], [ 125, 126 ], [ 126, 127 ], [ 117, 128 ], [ 129, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 135, 136 ], [ 135, 137 ], [ 130, 138 ], [ 138, 139 ], [ 139, 140 ], [ 130, 141 ], [ 142, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 148, 149 ], [ 148, 150 ], [ 143, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 143, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 160, 162 ], [ 155, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 155, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 129, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 129, 177 ], [ 177, 178 ], [ 177, 179 ], [ 116, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 180, 185 ], [ 108, 186 ], [ 186, 187 ], [ 54, 188 ], [ 188, 189 ], [ 15, 190 ], [ 190, 191 ], [ 0, 192 ], [ 192, 193 ], [ 192, 194 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//?????£?????????\n\t\tint numH = 0;\n\t\tint numW = 0;\n\n\t\tString cell = \"#\";\n\t\tString con = \".\";\n\n\t\tString[] NumWork;\n\n\t\ttry {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\t\t\t\tString line = br.readLine();\n\n\t\t\t\tif (line != null) {\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tArrayList<Integer> NumList = new ArrayList<Integer>();\n\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}\n\t\t\t\t\tnumH = NumList.get(0);\n\t\t\t\t\tnumW = NumList.get(1);\n\n\t\t\t\t\t// ????????¨(?????????????????????)\n\t\t\t\t\tString outputStr = \"\";\n\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//?????£?????????\n\t\tint numH = 0;\n\t\tint numW = 0;\n\n\t\tString cell = \"#\";\n\t\tString con = \".\";\n\n\t\tString[] NumWork;\n\n\t\ttry {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\t\t\t\tString line = br.readLine();\n\n\t\t\t\tif (line != null) {\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tArrayList<Integer> NumList = new ArrayList<Integer>();\n\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}\n\t\t\t\t\tnumH = NumList.get(0);\n\t\t\t\t\tnumW = NumList.get(1);\n\n\t\t\t\t\t// ????????¨(?????????????????????)\n\t\t\t\t\tString outputStr = \"\";\n\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\n\t\t//?????£?????????\n\t\tint numH = 0;\n\t\tint numW = 0;\n\n\t\tString cell = \"#\";\n\t\tString con = \".\";\n\n\t\tString[] NumWork;\n\n\t\ttry {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\t\t\t\tString line = br.readLine();\n\n\t\t\t\tif (line != null) {\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tArrayList<Integer> NumList = new ArrayList<Integer>();\n\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}\n\t\t\t\t\tnumH = NumList.get(0);\n\t\t\t\t\tnumW = NumList.get(1);\n\n\t\t\t\t\t// ????????¨(?????????????????????)\n\t\t\t\t\tString outputStr = \"\";\n\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}", "main", "{\n\n\t\t//?????£?????????\n\t\tint numH = 0;\n\t\tint numW = 0;\n\n\t\tString cell = \"#\";\n\t\tString con = \".\";\n\n\t\tString[] NumWork;\n\n\t\ttry {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\t\t\t\tString line = br.readLine();\n\n\t\t\t\tif (line != null) {\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tArrayList<Integer> NumList = new ArrayList<Integer>();\n\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}\n\t\t\t\t\tnumH = NumList.get(0);\n\t\t\t\t\tnumW = NumList.get(1);\n\n\t\t\t\t\t// ????????¨(?????????????????????)\n\t\t\t\t\tString outputStr = \"\";\n\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}", "int numH = 0;", "numH", "0", "int numW = 0;", "numW", "0", "String cell = \"#\";", "cell", "\"#\"", "String con = \".\";", "con", "\".\"", "String[] NumWork;", "NumWork", "try {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\t\t\t\tString line = br.readLine();\n\n\t\t\t\tif (line != null) {\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tArrayList<Integer> NumList = new ArrayList<Integer>();\n\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}\n\t\t\t\t\tnumH = NumList.get(0);\n\t\t\t\t\tnumW = NumList.get(1);\n\n\t\t\t\t\t// ????????¨(?????????????????????)\n\t\t\t\t\tString outputStr = \"\";\n\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}", "catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}", "IOException e", "{\n\t\t\tSystem.out.println(e);\n\t\t}", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\t\t\t\tString line = br.readLine();\n\n\t\t\t\tif (line != null) {\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tArrayList<Integer> NumList = new ArrayList<Integer>();\n\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}\n\t\t\t\t\tnumH = NumList.get(0);\n\t\t\t\t\tnumW = NumList.get(1);\n\n\t\t\t\t\t// ????????¨(?????????????????????)\n\t\t\t\t\tString outputStr = \"\";\n\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\t\t\t\tString line = br.readLine();\n\n\t\t\t\tif (line != null) {\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tArrayList<Integer> NumList = new ArrayList<Integer>();\n\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}\n\t\t\t\t\tnumH = NumList.get(0);\n\t\t\t\t\tnumW = NumList.get(1);\n\n\t\t\t\t\t// ????????¨(?????????????????????)\n\t\t\t\t\tString outputStr = \"\";\n\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}", "true", "{\n\t\t\t\tString line = br.readLine();\n\n\t\t\t\tif (line != null) {\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tArrayList<Integer> NumList = new ArrayList<Integer>();\n\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}\n\t\t\t\t\tnumH = NumList.get(0);\n\t\t\t\t\tnumW = NumList.get(1);\n\n\t\t\t\t\t// ????????¨(?????????????????????)\n\t\t\t\t\tString outputStr = \"\";\n\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "if (line != null) {\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tArrayList<Integer> NumList = new ArrayList<Integer>();\n\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}\n\t\t\t\t\tnumH = NumList.get(0);\n\t\t\t\t\tnumW = NumList.get(1);\n\n\t\t\t\t\t// ????????¨(?????????????????????)\n\t\t\t\t\tString outputStr = \"\";\n\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "line != null", "line", "null", "{\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tArrayList<Integer> NumList = new ArrayList<Integer>();\n\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}\n\t\t\t\t\tnumH = NumList.get(0);\n\t\t\t\t\tnumW = NumList.get(1);\n\n\t\t\t\t\t// ????????¨(?????????????????????)\n\t\t\t\t\tString outputStr = \"\";\n\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}", "NumWork = line.split(\" \", 0)", "NumWork", "line.split(\" \", 0)", "line.split", "line", "\" \"", "0", "ArrayList<Integer> NumList = new ArrayList<Integer>();", "NumList", "new ArrayList<Integer>()", "for (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < NumWork.length", "i", "NumWork.length", "NumWork", "NumWork.length", "i++", "i++", "i", "{\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}", "NumList.add(Integer.parseInt(NumWork[i]))", "NumList.add", "NumList", "Integer.parseInt(NumWork[i])", "Integer.parseInt", "Integer", "NumWork[i]", "NumWork", "i", "numH = NumList.get(0)", "numH", "NumList.get(0)", "NumList.get", "NumList", "0", "numW = NumList.get(1)", "numW", "NumList.get(1)", "NumList.get", "NumList", "1", "String outputStr = \"\";", "outputStr", "\"\"", "if (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "numH != 0 || numW != 0", "numH != 0", "numH", "0", "numW != 0", "numW", "0", "{\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}", "for (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= numH", "i", "numH", "i++", "i++", "i", "{\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}", "for (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j <= numW", "j", "numW", "j++", "j++", "j", "{\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "if (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}", "i == 1 || i == numH", "i == 1", "i", "1", "i == numH", "i", "numH", "{\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t}", "outputStr += cell", "outputStr", "cell", "if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}", "j == 1 || j == numW", "j == 1", "j", "1", "j == numW", "j", "numW", "{\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t}", "outputStr += cell", "outputStr", "cell", "{\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}", "outputStr += con", "outputStr", "con", "System.out.println(outputStr)", "System.out.println", "System.out", "System", "System.out", "outputStr", "outputStr = \"\"", "outputStr", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}", "break;", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//?????£?????????\n\t\tint numH = 0;\n\t\tint numW = 0;\n\n\t\tString cell = \"#\";\n\t\tString con = \".\";\n\n\t\tString[] NumWork;\n\n\t\ttry {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\t\t\t\tString line = br.readLine();\n\n\t\t\t\tif (line != null) {\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tArrayList<Integer> NumList = new ArrayList<Integer>();\n\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}\n\t\t\t\t\tnumH = NumList.get(0);\n\t\t\t\t\tnumW = NumList.get(1);\n\n\t\t\t\t\t// ????????¨(?????????????????????)\n\t\t\t\t\tString outputStr = \"\";\n\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t//?????£?????????\n\t\tint numH = 0;\n\t\tint numW = 0;\n\n\t\tString cell = \"#\";\n\t\tString con = \".\";\n\n\t\tString[] NumWork;\n\n\t\ttry {\n\t\t\t//??\\????????????\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\twhile (true) {\n\t\t\t\tString line = br.readLine();\n\n\t\t\t\tif (line != null) {\n\n\t\t\t\t\t//??°??£?????´??°?????????\n\t\t\t\t\tNumWork = line.split(\" \", 0);\n\n\t\t\t\t\t//??´??°?????°??????\n\t\t\t\t\tArrayList<Integer> NumList = new ArrayList<Integer>();\n\n\t\t\t\t\tfor (int i = 0; i < NumWork.length; i++) {\n\t\t\t\t\t\tNumList.add(Integer.parseInt(NumWork[i]));\n\t\t\t\t\t}\n\t\t\t\t\tnumH = NumList.get(0);\n\t\t\t\t\tnumW = NumList.get(1);\n\n\t\t\t\t\t// ????????¨(?????????????????????)\n\t\t\t\t\tString outputStr = \"\";\n\n\t\t\t\t\t//??????????????????\n\t\t\t\t\tif (numH != 0 || numW != 0) {\n\n\t\t\t\t\t\t//????????¢?????????\n\t\t\t\t\t\t//????????????\n\t\t\t\t\t\tfor (int i = 1; i <= numH; i++) {\n\t\t\t\t\t\t\tfor (int j = 1; j <= numW; j++) {\n\t\t\t\t\t\t\t\t// ????????¨????????????(#)\n\t\t\t\t\t\t\t\tif (i == 1 || i == numH){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\n\t\t\t\t\t\t\t\t//??????????????????\n\t\t\t\t\t\t\t\t} else if (j == 1 || j == numW){\n\t\t\t\t\t\t\t\t\toutputStr += cell;\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\toutputStr += con;\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t//?????£???????????????\n\t\t\t\t\t\t\tSystem.out.println(outputStr);\n\t\t\t\t\t\t\toutputStr = \"\";\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { public static void main(String[] args) { //?????£????????? int numH = 0; int numW = 0; String cell = "#"; String con = "."; String[] NumWork; try { //??\???????????? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true) { String line = br.readLine(); if (line != null) { //??°??£?????´??°????????? NumWork = line.split(" ", 0); //??´??°?????°?????? ArrayList<Integer> NumList = new ArrayList<Integer>(); for (int i = 0; i < NumWork.length; i++) { NumList.add(Integer.parseInt(NumWork[i])); } numH = NumList.get(0); numW = NumList.get(1); // ????????¨(?????????????????????) String outputStr = ""; //?????????????????? if (numH != 0 || numW != 0) { //????????¢????????? //???????????? for (int i = 1; i <= numH; i++) { for (int j = 1; j <= numW; j++) { // ????????¨????????????(#) if (i == 1 || i == numH){ outputStr += cell; //?????????????????? } else if (j == 1 || j == numW){ outputStr += cell; } else { outputStr += con; } } //?????£??????????????? System.out.println(outputStr); outputStr = ""; } System.out.println(""); }else{ break; } }else{ break; } } } catch (IOException e) { System.out.println(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 128, 11 ], [ 128, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 23, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 34, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 20, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 20, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 55, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 68, 79 ], [ 80, 80 ], [ 80, 81 ], [ 81, 82 ], [ 84, 83 ], [ 93, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 93, 93 ], [ 93, 94 ], [ 93, 95 ], [ 84, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 81, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 81, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 67, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 20, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 12, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n String[] lines = br.readLine().split(\" \");\n int h = Integer.parseInt(lines[0]);\n int w = Integer.parseInt(lines[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n String[] lines = br.readLine().split(\" \");\n int h = Integer.parseInt(lines[0]);\n int w = Integer.parseInt(lines[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n String[] lines = br.readLine().split(\" \");\n int h = Integer.parseInt(lines[0]);\n int w = Integer.parseInt(lines[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n String[] lines = br.readLine().split(\" \");\n int h = Integer.parseInt(lines[0]);\n int w = Integer.parseInt(lines[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n String[] lines = br.readLine().split(\" \");\n int h = Integer.parseInt(lines[0]);\n int w = Integer.parseInt(lines[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "true", "{\n String[] lines = br.readLine().split(\" \");\n int h = Integer.parseInt(lines[0]);\n int w = Integer.parseInt(lines[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "String[] lines = br.readLine().split(\" \");", "lines", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int h = Integer.parseInt(lines[0]);", "h", "Integer.parseInt(lines[0])", "Integer.parseInt", "Integer", "lines[0]", "lines", "0", "int w = Integer.parseInt(lines[1]);", "w", "Integer.parseInt(lines[1])", "Integer.parseInt", "Integer", "lines[1]", "lines", "1", "if (h == 0 && w == 0) {\n break;\n }", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n break;\n }", "break;", "for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n for (int j = 0; j < w; j++) {\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "{\n for (int j = 0; j < w; j++) {\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "for (int j = 0; j < w; j++) {\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }", "{\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }", "if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }", "i==0||i==h-1||j==0||j==w-1", "j==0", "i==0||i==h-1||j==0||j==w-1", "i==0", "i", "0", "i==h-1", "i", "h-1", "h", "1", "j==0", "j", "0", "j==w-1", "j", "w-1", "w", "1", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n String[] lines = br.readLine().split(\" \");\n int h = Integer.parseInt(lines[0]);\n int w = Integer.parseInt(lines[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n while (true) {\n String[] lines = br.readLine().split(\" \");\n int h = Integer.parseInt(lines[0]);\n int w = Integer.parseInt(lines[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 0; i < h; i++) {\n for (int j = 0; j < w; j++) {\n if(i==0||i==h-1||j==0||j==w-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true) { String[] lines = br.readLine().split(" "); int h = Integer.parseInt(lines[0]); int w = Integer.parseInt(lines[1]); if (h == 0 && w == 0) { break; } for (int i = 0; i < h; i++) { for (int j = 0; j < w; j++) { if(i==0||i==h-1||j==0||j==w-1){ System.out.print("#"); }else{ System.out.print("."); } } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 14, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 14, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 73, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 80, 93 ], [ 94, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 73, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 73, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 14, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 113, 121 ], [ 121, 122 ], [ 122, 123 ], [ 113, 124 ], [ 125, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 14, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 14, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 6, 144 ], [ 144, 145 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main (String[] args){\n Scanner sc = new Scanner(System.in);\n while (true){\n int H = sc.nextInt();\n int W = sc.nextInt();\n if ((H == 0) && (W == 0)) break;\n for(int h = 0; h < W; h++){\n System.out.print(\"#\");\n }\n System.out.println(\"\");\n\n\n for(int i = 0; i < H-2 ; i++){\n System.out.print(\"#\");\n for(int j = 0; j < W-2 ; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n System.out.println(\"\");\n }\n for(int k = 0; k < W; k++){\n System.out.print(\"#\");\n }\n System.out.println(\"\");\n System.out.println(\"\");\n }\n}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main (String[] args){\n Scanner sc = new Scanner(System.in);\n while (true){\n int H = sc.nextInt();\n int W = sc.nextInt();\n if ((H == 0) && (W == 0)) break;\n for(int h = 0; h < W; h++){\n System.out.print(\"#\");\n }\n System.out.println(\"\");\n\n\n for(int i = 0; i < H-2 ; i++){\n System.out.print(\"#\");\n for(int j = 0; j < W-2 ; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n System.out.println(\"\");\n }\n for(int k = 0; k < W; k++){\n System.out.print(\"#\");\n }\n System.out.println(\"\");\n System.out.println(\"\");\n }\n}\n}", "Main", "public static void main (String[] args){\n Scanner sc = new Scanner(System.in);\n while (true){\n int H = sc.nextInt();\n int W = sc.nextInt();\n if ((H == 0) && (W == 0)) break;\n for(int h = 0; h < W; h++){\n System.out.print(\"#\");\n }\n System.out.println(\"\");\n\n\n for(int i = 0; i < H-2 ; i++){\n System.out.print(\"#\");\n for(int j = 0; j < W-2 ; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n System.out.println(\"\");\n }\n for(int k = 0; k < W; k++){\n System.out.print(\"#\");\n }\n System.out.println(\"\");\n System.out.println(\"\");\n }\n}", "main", "{\n Scanner sc = new Scanner(System.in);\n while (true){\n int H = sc.nextInt();\n int W = sc.nextInt();\n if ((H == 0) && (W == 0)) break;\n for(int h = 0; h < W; h++){\n System.out.print(\"#\");\n }\n System.out.println(\"\");\n\n\n for(int i = 0; i < H-2 ; i++){\n System.out.print(\"#\");\n for(int j = 0; j < W-2 ; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n System.out.println(\"\");\n }\n for(int k = 0; k < W; k++){\n System.out.print(\"#\");\n }\n System.out.println(\"\");\n System.out.println(\"\");\n }\n}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true){\n int H = sc.nextInt();\n int W = sc.nextInt();\n if ((H == 0) && (W == 0)) break;\n for(int h = 0; h < W; h++){\n System.out.print(\"#\");\n }\n System.out.println(\"\");\n\n\n for(int i = 0; i < H-2 ; i++){\n System.out.print(\"#\");\n for(int j = 0; j < W-2 ; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n System.out.println(\"\");\n }\n for(int k = 0; k < W; k++){\n System.out.print(\"#\");\n }\n System.out.println(\"\");\n System.out.println(\"\");\n }", "true", "{\n int H = sc.nextInt();\n int W = sc.nextInt();\n if ((H == 0) && (W == 0)) break;\n for(int h = 0; h < W; h++){\n System.out.print(\"#\");\n }\n System.out.println(\"\");\n\n\n for(int i = 0; i < H-2 ; i++){\n System.out.print(\"#\");\n for(int j = 0; j < W-2 ; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n System.out.println(\"\");\n }\n for(int k = 0; k < W; k++){\n System.out.print(\"#\");\n }\n System.out.println(\"\");\n System.out.println(\"\");\n }", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int W = sc.nextInt();", "W", "sc.nextInt()", "sc.nextInt", "sc", "if ((H == 0) && (W == 0)) break;", "(H == 0) && (W == 0)", "(H == 0)", "H", "0", "(W == 0)", "W", "0", "break;", "for(int h = 0; h < W; h++){\n System.out.print(\"#\");\n }", "int h = 0;", "int h = 0;", "h", "0", "h < W", "h", "W", "h++", "h++", "h", "{\n System.out.print(\"#\");\n }", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "for(int i = 0; i < H-2 ; i++){\n System.out.print(\"#\");\n for(int j = 0; j < W-2 ; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n System.out.println(\"\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < H-2", "i", "H-2", "H", "2", "i++", "i++", "i", "{\n System.out.print(\"#\");\n for(int j = 0; j < W-2 ; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n System.out.println(\"\");\n }", "{\n System.out.print(\"#\");\n for(int j = 0; j < W-2 ; j++){\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n System.out.println(\"\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for(int j = 0; j < W-2 ; j++){\n System.out.print(\".\");\n }", "int j = 0;", "int j = 0;", "j", "0", "j < W-2", "j", "W-2", "W", "2", "j++", "j++", "j", "{\n System.out.print(\".\");\n }", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "for(int k = 0; k < W; k++){\n System.out.print(\"#\");\n }", "int k = 0;", "int k = 0;", "k", "0", "k < W", "k", "W", "k++", "k++", "k", "{\n System.out.print(\"#\");\n }", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main (String[] args){ Scanner sc = new Scanner(System.in); while (true){ int H = sc.nextInt(); int W = sc.nextInt(); if ((H == 0) && (W == 0)) break; for(int h = 0; h < W; h++){ System.out.print("#"); } System.out.println(""); for(int i = 0; i < H-2 ; i++){ System.out.print("#"); for(int j = 0; j < W-2 ; j++){ System.out.print("."); } System.out.print("#"); System.out.println(""); } for(int k = 0; k < W; k++){ System.out.print("#"); } System.out.println(""); System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 14, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 14, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 80, 79 ], [ 89, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 89, 89 ], [ 89, 90 ], [ 89, 91 ], [ 80, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 77, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 77, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 63, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 14, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 6, 121 ], [ 121, 122 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String args[]) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile (true) {\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_num = sz_input.split(\" \");\n\t\t\tint H = Integer.parseInt(sz_num[0]);\n\t\t\tint W = Integer.parseInt(sz_num[1]);\n\t\t\t\n\t\t\tif (H == 0 && W == 0) break;\n\t\t\t\n\t\t\tfor (int y = 0; y < H; y++) {\n\t\t\t\tfor (int x = 0; x < W; x++) {\n\t\t\t\t\tif (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String args[]) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile (true) {\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_num = sz_input.split(\" \");\n\t\t\tint H = Integer.parseInt(sz_num[0]);\n\t\t\tint W = Integer.parseInt(sz_num[1]);\n\t\t\t\n\t\t\tif (H == 0 && W == 0) break;\n\t\t\t\n\t\t\tfor (int y = 0; y < H; y++) {\n\t\t\t\tfor (int x = 0; x < W; x++) {\n\t\t\t\t\tif (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "Main", "public static void main(String args[]) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile (true) {\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_num = sz_input.split(\" \");\n\t\t\tint H = Integer.parseInt(sz_num[0]);\n\t\t\tint W = Integer.parseInt(sz_num[1]);\n\t\t\t\n\t\t\tif (H == 0 && W == 0) break;\n\t\t\t\n\t\t\tfor (int y = 0; y < H; y++) {\n\t\t\t\tfor (int x = 0; x < W; x++) {\n\t\t\t\t\tif (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\twhile (true) {\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_num = sz_input.split(\" \");\n\t\t\tint H = Integer.parseInt(sz_num[0]);\n\t\t\tint W = Integer.parseInt(sz_num[1]);\n\t\t\t\n\t\t\tif (H == 0 && W == 0) break;\n\t\t\t\n\t\t\tfor (int y = 0; y < H; y++) {\n\t\t\t\tfor (int x = 0; x < W; x++) {\n\t\t\t\t\tif (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_num = sz_input.split(\" \");\n\t\t\tint H = Integer.parseInt(sz_num[0]);\n\t\t\tint W = Integer.parseInt(sz_num[1]);\n\t\t\t\n\t\t\tif (H == 0 && W == 0) break;\n\t\t\t\n\t\t\tfor (int y = 0; y < H; y++) {\n\t\t\t\tfor (int x = 0; x < W; x++) {\n\t\t\t\t\tif (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tString sz_input = br.readLine();\n\t\t\tString[] sz_num = sz_input.split(\" \");\n\t\t\tint H = Integer.parseInt(sz_num[0]);\n\t\t\tint W = Integer.parseInt(sz_num[1]);\n\t\t\t\n\t\t\tif (H == 0 && W == 0) break;\n\t\t\t\n\t\t\tfor (int y = 0; y < H; y++) {\n\t\t\t\tfor (int x = 0; x < W; x++) {\n\t\t\t\t\tif (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t\tSystem.out.println();\n\t\t}", "String sz_input = br.readLine();", "sz_input", "br.readLine()", "br.readLine", "br", "String[] sz_num = sz_input.split(\" \");", "sz_num", "sz_input.split(\" \")", "sz_input.split", "sz_input", "\" \"", "int H = Integer.parseInt(sz_num[0]);", "H", "Integer.parseInt(sz_num[0])", "Integer.parseInt", "Integer", "sz_num[0]", "sz_num", "0", "int W = Integer.parseInt(sz_num[1]);", "W", "Integer.parseInt(sz_num[1])", "Integer.parseInt", "Integer", "sz_num[1]", "sz_num", "1", "if (H == 0 && W == 0) break;", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "break;", "for (int y = 0; y < H; y++) {\n\t\t\t\tfor (int x = 0; x < W; x++) {\n\t\t\t\t\tif (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int y = 0;", "int y = 0;", "y", "0", "y < H", "y", "H", "y++", "y++", "y", "{\n\t\t\t\tfor (int x = 0; x < W; x++) {\n\t\t\t\t\tif (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor (int x = 0; x < W; x++) {\n\t\t\t\t\tif (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for (int x = 0; x < W; x++) {\n\t\t\t\t\tif (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "int x = 0;", "int x = 0;", "x", "0", "x < W", "x", "W", "x++", "x++", "x", "{\n\t\t\t\t\tif (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "if (y == 0 || y == (H-1) || x == 0 || x == (W-1)) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "y == 0 || y == (H-1) || x == 0 || x == (W-1)", "x == 0", "y == 0 || y == (H-1) || x == 0 || x == (W-1)", "y == 0", "y", "0", "y == (H-1)", "y", "(H-1)", "H", "1", "x == 0", "x", "0", "x == (W-1)", "x", "(W-1)", "W", "1", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String args[]", "args" ]
import java.io.*; class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while (true) { String sz_input = br.readLine(); String[] sz_num = sz_input.split(" "); int H = Integer.parseInt(sz_num[0]); int W = Integer.parseInt(sz_num[1]); if (H == 0 && W == 0) break; for (int y = 0; y < H; y++) { for (int x = 0; x < W; x++) { if (y == 0 || y == (H-1) || x == 0 || x == (W-1)) { System.out.print("#"); } else { System.out.print("."); } } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 30, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 131, 5 ], [ 131, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 15, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 15, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 15, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 47, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 63, 74 ], [ 75, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 76, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 54, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 105, 106 ], [ 106, 107 ], [ 97, 108 ], [ 109, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 47, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 34, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 26, 126 ], [ 126, 127 ], [ 6, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new java.util.Scanner(System.in);\n for(;;){\n int H = scan.nextInt();\n int W = scan.nextInt();\n if(H != 0 && W != 0){\n for(int i = 1; i <= H; i++){\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }else{\n break;\n }\n } \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n Scanner scan = new java.util.Scanner(System.in);\n for(;;){\n int H = scan.nextInt();\n int W = scan.nextInt();\n if(H != 0 && W != 0){\n for(int i = 1; i <= H; i++){\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }else{\n break;\n }\n } \n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new java.util.Scanner(System.in);\n for(;;){\n int H = scan.nextInt();\n int W = scan.nextInt();\n if(H != 0 && W != 0){\n for(int i = 1; i <= H; i++){\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }else{\n break;\n }\n } \n }", "main", "{\n Scanner scan = new java.util.Scanner(System.in);\n for(;;){\n int H = scan.nextInt();\n int W = scan.nextInt();\n if(H != 0 && W != 0){\n for(int i = 1; i <= H; i++){\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }else{\n break;\n }\n } \n }", "Scanner scan = new java.util.Scanner(System.in);", "scan", "new java.util.Scanner(System.in)", "for(;;){\n int H = scan.nextInt();\n int W = scan.nextInt();\n if(H != 0 && W != 0){\n for(int i = 1; i <= H; i++){\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }else{\n break;\n }\n }", ";", "{\n int H = scan.nextInt();\n int W = scan.nextInt();\n if(H != 0 && W != 0){\n for(int i = 1; i <= H; i++){\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }else{\n break;\n }\n }", "{\n int H = scan.nextInt();\n int W = scan.nextInt();\n if(H != 0 && W != 0){\n for(int i = 1; i <= H; i++){\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }else{\n break;\n }\n }", "int H = scan.nextInt();", "H", "scan.nextInt()", "scan.nextInt", "scan", "int W = scan.nextInt();", "W", "scan.nextInt()", "scan.nextInt", "scan", "if(H != 0 && W != 0){\n for(int i = 1; i <= H; i++){\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }else{\n break;\n }", "H != 0 && W != 0", "H != 0", "H", "0", "W != 0", "W", "0", "{\n for(int i = 1; i <= H; i++){\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "for(int i = 1; i <= H; i++){\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }", "int i = 1;", "int i = 1;", "i", "1", "i <= H", "i", "H", "i++", "i++", "i", "{\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }", "{\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }", "i != 1 && i != H", "i != 1", "i", "1", "i != H", "i", "H", "{\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }", "for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }", "int j = 1;", "int j = 1;", "j", "1", "j < W", "j", "W", "j++", "j++", "j", "{\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }", "{\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }", "if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }", "j != W - 1", "j", "W - 1", "W", "1", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }", "for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }", "int j = 1;", "int j = 1;", "j", "1", "j < W", "j", "W", "j++", "j++", "j", "{\n System.out.print(\"#\");\n }", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "{\n break;\n }", "break;", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner scan = new java.util.Scanner(System.in);\n for(;;){\n int H = scan.nextInt();\n int W = scan.nextInt();\n if(H != 0 && W != 0){\n for(int i = 1; i <= H; i++){\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }else{\n break;\n }\n } \n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner scan = new java.util.Scanner(System.in);\n for(;;){\n int H = scan.nextInt();\n int W = scan.nextInt();\n if(H != 0 && W != 0){\n for(int i = 1; i <= H; i++){\n System.out.print(\"#\");\n if(i != 1 && i != H){\n for(int j = 1; j < W; j++){\n if(j != W - 1){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n } \n }\n }else{\n for(int j = 1; j < W; j++){\n System.out.print(\"#\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }else{\n break;\n }\n } \n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner scan = new java.util.Scanner(System.in); for(;;){ int H = scan.nextInt(); int W = scan.nextInt(); if(H != 0 && W != 0){ for(int i = 1; i <= H; i++){ System.out.print("#"); if(i != 1 && i != H){ for(int j = 1; j < W; j++){ if(j != W - 1){ System.out.print("."); }else{ System.out.print("#"); } } }else{ for(int j = 1; j < W; j++){ System.out.print("#"); } } System.out.println(); } System.out.println(); }else{ break; } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 3, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 17, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 14, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 57, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 83, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 83, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 101, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 101, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 69, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 14, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 6, 135 ], [ 135, 136 ] ]
[ "/* ITP1_5_B */\nimport java.io.*;\n\nclass Main\n{\n public static void main(String[] args) throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n //input\n String str[] = br.readLine().split(\" \");\n int height = Integer.parseInt(str[0]);\n int width = Integer.parseInt(str[1]);\n //finish\n if(height == 0 && width == 0) break;\n if(height < 3 && width > 100) break;\n //draw\n for(int i = 0; i < height; i++){ //height\n\n for(int j = 0; j < width; j++){ //width\n\n if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main\n{\n public static void main(String[] args) throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n //input\n String str[] = br.readLine().split(\" \");\n int height = Integer.parseInt(str[0]);\n int width = Integer.parseInt(str[1]);\n //finish\n if(height == 0 && width == 0) break;\n if(height < 3 && width > 100) break;\n //draw\n for(int i = 0; i < height; i++){ //height\n\n for(int j = 0; j < width; j++){ //width\n\n if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n //input\n String str[] = br.readLine().split(\" \");\n int height = Integer.parseInt(str[0]);\n int width = Integer.parseInt(str[1]);\n //finish\n if(height == 0 && width == 0) break;\n if(height < 3 && width > 100) break;\n //draw\n for(int i = 0; i < height; i++){ //height\n\n for(int j = 0; j < width; j++){ //width\n\n if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n while(true){\n //input\n String str[] = br.readLine().split(\" \");\n int height = Integer.parseInt(str[0]);\n int width = Integer.parseInt(str[1]);\n //finish\n if(height == 0 && width == 0) break;\n if(height < 3 && width > 100) break;\n //draw\n for(int i = 0; i < height; i++){ //height\n\n for(int j = 0; j < width; j++){ //width\n\n if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n //input\n String str[] = br.readLine().split(\" \");\n int height = Integer.parseInt(str[0]);\n int width = Integer.parseInt(str[1]);\n //finish\n if(height == 0 && width == 0) break;\n if(height < 3 && width > 100) break;\n //draw\n for(int i = 0; i < height; i++){ //height\n\n for(int j = 0; j < width; j++){ //width\n\n if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }", "true", "{\n //input\n String str[] = br.readLine().split(\" \");\n int height = Integer.parseInt(str[0]);\n int width = Integer.parseInt(str[1]);\n //finish\n if(height == 0 && width == 0) break;\n if(height < 3 && width > 100) break;\n //draw\n for(int i = 0; i < height; i++){ //height\n\n for(int j = 0; j < width; j++){ //width\n\n if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }\n System.out.println(\"\");\n }", "String str[] = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int height = Integer.parseInt(str[0]);", "height", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "int width = Integer.parseInt(str[1]);", "width", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "if(height == 0 && width == 0) break;", "height == 0 && width == 0", "height == 0", "height", "0", "width == 0", "width", "0", "break;", "if(height < 3 && width > 100) break;", "height < 3 && width > 100", "height < 3", "height", "3", "width > 100", "width", "100", "break;", "for(int i = 0; i < height; i++){ //height\n\n for(int j = 0; j < width; j++){ //width\n\n if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < height", "i", "height", "i++", "i++", "i", "{ //height\n\n for(int j = 0; j < width; j++){ //width\n\n if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }", "{ //height\n\n for(int j = 0; j < width; j++){ //width\n\n if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }\n System.out.println(\"\");\n }", "for(int j = 0; j < width; j++){ //width\n\n if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < width", "j", "width", "j++", "j++", "j", "{ //width\n\n if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }", "{ //width\n\n if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n }", "if(i == 0 || i == height-1){\n System.out.print(\"#\");\n\n }else {\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }", "i == 0 || i == height-1", "i == 0", "i", "0", "i == height-1", "i", "height-1", "height", "1", "{\n System.out.print(\"#\");\n\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }", "if(j == 0 || j== width-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");", "j == 0 || j== width-1", "j == 0", "j", "0", "j== width-1", "j", "width-1", "width", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args" ]
/* ITP1_5_B */ import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ //input String str[] = br.readLine().split(" "); int height = Integer.parseInt(str[0]); int width = Integer.parseInt(str[1]); //finish if(height == 0 && width == 0) break; if(height < 3 && width > 100) break; //draw for(int i = 0; i < height; i++){ //height for(int j = 0; j < width; j++){ //width if(i == 0 || i == height-1){ System.out.print("#"); }else { if(j == 0 || j== width-1) System.out.print("#"); else System.out.print("."); } } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 13, 13, 30, 4, 13, 13, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 143, 5 ], [ 143, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 48, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 14, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 6, 72 ], [ 72, 73 ], [ 143, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 77, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 76, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 74, 102 ], [ 102, 103 ], [ 143, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 106, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 113, 123 ], [ 123, 124 ], [ 124, 125 ], [ 113, 126 ], [ 127, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 106, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 104, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner( System.in );\n\t\t\n\t\twhile( true ) {\n\t\t\tint height\t= sc.nextInt();\n\t\t\tint width\t= sc.nextInt();\n\t\t\t\n\t\t\tif (\t\theight\t== 0\n\t\t\t\t\t&&\twidth\t== 0\t) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < height; i++ ) {\n\t\t\t\tif ( i == 0 || i == (height - 1) ) {\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\n\t\t}\n\t}\n\t\n\tpublic static void frame( int width ) {\n\t\tfor ( int j = 0; j < width; j++ ) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\n\t}\n\t\n\tpublic static void content( int width ) {\n\t\tSystem.out.print(\"#\");\n\n\t\tfor ( int j = 0; j < (width - 2); j++ ) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\n\t\tSystem.out.println(\"#\");\t\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner( System.in );\n\t\t\n\t\twhile( true ) {\n\t\t\tint height\t= sc.nextInt();\n\t\t\tint width\t= sc.nextInt();\n\t\t\t\n\t\t\tif (\t\theight\t== 0\n\t\t\t\t\t&&\twidth\t== 0\t) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < height; i++ ) {\n\t\t\t\tif ( i == 0 || i == (height - 1) ) {\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\n\t\t}\n\t}\n\t\n\tpublic static void frame( int width ) {\n\t\tfor ( int j = 0; j < width; j++ ) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\n\t}\n\t\n\tpublic static void content( int width ) {\n\t\tSystem.out.print(\"#\");\n\n\t\tfor ( int j = 0; j < (width - 2); j++ ) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\n\t\tSystem.out.println(\"#\");\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner( System.in );\n\t\t\n\t\twhile( true ) {\n\t\t\tint height\t= sc.nextInt();\n\t\t\tint width\t= sc.nextInt();\n\t\t\t\n\t\t\tif (\t\theight\t== 0\n\t\t\t\t\t&&\twidth\t== 0\t) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < height; i++ ) {\n\t\t\t\tif ( i == 0 || i == (height - 1) ) {\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner( System.in );\n\t\t\n\t\twhile( true ) {\n\t\t\tint height\t= sc.nextInt();\n\t\t\tint width\t= sc.nextInt();\n\t\t\t\n\t\t\tif (\t\theight\t== 0\n\t\t\t\t\t&&\twidth\t== 0\t) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < height; i++ ) {\n\t\t\t\tif ( i == 0 || i == (height - 1) ) {\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\n\t\t}\n\t}", "Scanner sc = new Scanner( System.in );", "sc", "new Scanner( System.in )", "while( true ) {\n\t\t\tint height\t= sc.nextInt();\n\t\t\tint width\t= sc.nextInt();\n\t\t\t\n\t\t\tif (\t\theight\t== 0\n\t\t\t\t\t&&\twidth\t== 0\t) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < height; i++ ) {\n\t\t\t\tif ( i == 0 || i == (height - 1) ) {\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\n\t\t}", "true", "{\n\t\t\tint height\t= sc.nextInt();\n\t\t\tint width\t= sc.nextInt();\n\t\t\t\n\t\t\tif (\t\theight\t== 0\n\t\t\t\t\t&&\twidth\t== 0\t) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < height; i++ ) {\n\t\t\t\tif ( i == 0 || i == (height - 1) ) {\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\n\t\t}", "int height\t= sc.nextInt();", "height", "sc.nextInt()", "sc.nextInt", "sc", "int width\t= sc.nextInt();", "width", "sc.nextInt()", "sc.nextInt", "sc", "if (\t\theight\t== 0\n\t\t\t\t\t&&\twidth\t== 0\t) {\n\t\t\t\tbreak;\n\t\t\t}", "height\t== 0\n\t\t\t\t\t&&\twidth\t== 0", "height\t== 0", "height", "0", "width\t== 0", "width", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (int i = 0; i < height; i++ ) {\n\t\t\t\tif ( i == 0 || i == (height - 1) ) {\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < height", "i", "height", "i++", "i++", "i", "{\n\t\t\t\tif ( i == 0 || i == (height - 1) ) {\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "{\n\t\t\t\tif ( i == 0 || i == (height - 1) ) {\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}", "if ( i == 0 || i == (height - 1) ) {\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}", "i == 0 || i == (height - 1)", "i == 0", "i", "0", "i == (height - 1)", "i", "(height - 1)", "height", "1", "{\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t}", "frame( width )", "frame", "width", "{\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}", "content( width )", "content", "width", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args", "public static void frame( int width ) {\n\t\tfor ( int j = 0; j < width; j++ ) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\n\t}", "frame", "{\n\t\tfor ( int j = 0; j < width; j++ ) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\n\t}", "for ( int j = 0; j < width; j++ ) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < width", "j", "width", "j++", "j++", "j", "{\n\t\t\tSystem.out.print(\"#\");\n\t\t}", "{\n\t\t\tSystem.out.print(\"#\");\n\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "int width", "width", "public static void content( int width ) {\n\t\tSystem.out.print(\"#\");\n\n\t\tfor ( int j = 0; j < (width - 2); j++ ) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\n\t\tSystem.out.println(\"#\");\t\n\t}", "content", "{\n\t\tSystem.out.print(\"#\");\n\n\t\tfor ( int j = 0; j < (width - 2); j++ ) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\n\t\tSystem.out.println(\"#\");\t\n\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for ( int j = 0; j < (width - 2); j++ ) {\n\t\t\tSystem.out.print(\".\");\n\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < (width - 2)", "j", "(width - 2)", "width", "2", "j++", "j++", "j", "{\n\t\t\tSystem.out.print(\".\");\n\t\t}", "{\n\t\t\tSystem.out.print(\".\");\n\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\"", "int width", "width", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner( System.in );\n\t\t\n\t\twhile( true ) {\n\t\t\tint height\t= sc.nextInt();\n\t\t\tint width\t= sc.nextInt();\n\t\t\t\n\t\t\tif (\t\theight\t== 0\n\t\t\t\t\t&&\twidth\t== 0\t) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < height; i++ ) {\n\t\t\t\tif ( i == 0 || i == (height - 1) ) {\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\n\t\t}\n\t}\n\t\n\tpublic static void frame( int width ) {\n\t\tfor ( int j = 0; j < width; j++ ) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\n\t}\n\t\n\tpublic static void content( int width ) {\n\t\tSystem.out.print(\"#\");\n\n\t\tfor ( int j = 0; j < (width - 2); j++ ) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\n\t\tSystem.out.println(\"#\");\t\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner( System.in );\n\t\t\n\t\twhile( true ) {\n\t\t\tint height\t= sc.nextInt();\n\t\t\tint width\t= sc.nextInt();\n\t\t\t\n\t\t\tif (\t\theight\t== 0\n\t\t\t\t\t&&\twidth\t== 0\t) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t\tfor (int i = 0; i < height; i++ ) {\n\t\t\t\tif ( i == 0 || i == (height - 1) ) {\n\t\t\t\t\tframe( width );\n\t\t\t\t\t\n\t\t\t\t} else {\n\t\t\t\t\tcontent( width );\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\n\t\t}\n\t}\n\t\n\tpublic static void frame( int width ) {\n\t\tfor ( int j = 0; j < width; j++ ) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\n\t}\n\t\n\tpublic static void content( int width ) {\n\t\tSystem.out.print(\"#\");\n\n\t\tfor ( int j = 0; j < (width - 2); j++ ) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\n\t\tSystem.out.println(\"#\");\t\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner( System.in ); while( true ) { int height = sc.nextInt(); int width = sc.nextInt(); if ( height == 0 && width == 0 ) { break; } for (int i = 0; i < height; i++ ) { if ( i == 0 || i == (height - 1) ) { frame( width ); } else { content( width ); } } System.out.print("\n"); } } public static void frame( int width ) { for ( int j = 0; j < width; j++ ) { System.out.print("#"); } System.out.print("\n"); } public static void content( int width ) { System.out.print("#"); for ( int j = 0; j < (width - 2); j++ ) { System.out.print("."); } System.out.println("#"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 30, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 176, 5 ], [ 176, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 43, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 36, 49 ], [ 50, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 55, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 50, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 81, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 93, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 105, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 93, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 118, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 50, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 50, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 139, 141 ], [ 136, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 147, 148 ], [ 147, 149 ], [ 142, 150 ], [ 150, 151 ], [ 151, 152 ], [ 142, 153 ], [ 154, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 35, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 14, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 167, 172 ], [ 6, 173 ], [ 173, 174 ], [ 0, 175 ], [ 175, 176 ], [ 175, 177 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < H - 2; i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < H - 2; i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < H - 2; i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < H - 2; i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < H - 2; i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "true", "{\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < H - 2; i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int W = sc.nextInt();", "W", "sc.nextInt()", "sc.nextInt", "sc", "if (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < H - 2; i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tfor (int i = 0; i < H - 2; i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "for (int i = 0; i < H - 2; i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < H - 2", "i", "H - 2", "H", "2", "i++", "i++", "i", "{\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}", "if (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}", "i == 0", "i", "0", "{\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}", "for (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "for (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "if (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "j == 0", "j", "0", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "j < W - 2", "j", "W - 2", "W", "2", "{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "if (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");", "j == W - 2", "j", "W - 2", "W", "2", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "if (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "i == H-3", "i", "H-3", "H", "3", "for (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < H - 2; i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor (int i = 0; i < H - 2; i++) {\n\t\t\t\t\tif (i == 0) {\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif (j == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j < W - 2) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif (j == W - 2)\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\tif (i == H-3)\n\t\t\t\t\t\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int H = sc.nextInt(); int W = sc.nextInt(); if (H == 0 && W == 0) { break; } else { for (int i = 0; i < H - 2; i++) { if (i == 0) { for (int j = 0; j < W; j++) { System.out.print("#"); } System.out.println(""); } for (int j = 0; j < W; j++) { if (j == 0) { System.out.print("#"); } if (j < W - 2) { System.out.print("."); } if (j == W - 2) System.out.print("#"); } System.out.println(""); if (i == H-3) for (int j = 0; j < W; j++) { System.out.print("#"); } } System.out.println(""); } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 17, 0, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 17, 0, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 154, 5 ], [ 154, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 33, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 33, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 33, 61 ], [ 61, 62 ], [ 61, 63 ], [ 33, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 77, 88 ], [ 89, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 76, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 76, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 76, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 76, 108 ], [ 108, 109 ], [ 108, 110 ], [ 33, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 116, 117 ], [ 116, 118 ], [ 111, 119 ], [ 119, 120 ], [ 120, 121 ], [ 111, 122 ], [ 123, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 33, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 33, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 33, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 33, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 33, 148 ], [ 148, 149 ], [ 148, 150 ], [ 6, 151 ], [ 151, 152 ], [ 0, 153 ], [ 153, 154 ], [ 153, 155 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tStringBuilder sb=new StringBuilder(\"\");\n\t\tScanner n=new Scanner(System.in);\n\t\tint a=n.nextInt();\n\t\tint b=n.nextInt();\n\t\twhile (a!=0 || b!=0){\n\t\t\tfor (int c=0;c<b;c++){\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.append(\"\\n\");//改行\n\t\t\tsb=new StringBuilder(\"#\");\n\t\t\tfor (int d=2;d<a;d++){\n\t\t\t\tfor (int e=2;e<b;e++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.append(\"\\n\");//改行\n\t\t\t\tsb=new StringBuilder(\"#\");\n\t\t\t}\n\t\t\tfor (int c=1;c<b;c++){\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\tsb.append(\"\\n\");//改行\n\t\tSystem.out.println(sb);\n\t\ta=n.nextInt();b=n.nextInt();\n\t\tsb=new StringBuilder(\"\");\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tStringBuilder sb=new StringBuilder(\"\");\n\t\tScanner n=new Scanner(System.in);\n\t\tint a=n.nextInt();\n\t\tint b=n.nextInt();\n\t\twhile (a!=0 || b!=0){\n\t\t\tfor (int c=0;c<b;c++){\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.append(\"\\n\");//改行\n\t\t\tsb=new StringBuilder(\"#\");\n\t\t\tfor (int d=2;d<a;d++){\n\t\t\t\tfor (int e=2;e<b;e++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.append(\"\\n\");//改行\n\t\t\t\tsb=new StringBuilder(\"#\");\n\t\t\t}\n\t\t\tfor (int c=1;c<b;c++){\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\tsb.append(\"\\n\");//改行\n\t\tSystem.out.println(sb);\n\t\ta=n.nextInt();b=n.nextInt();\n\t\tsb=new StringBuilder(\"\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tStringBuilder sb=new StringBuilder(\"\");\n\t\tScanner n=new Scanner(System.in);\n\t\tint a=n.nextInt();\n\t\tint b=n.nextInt();\n\t\twhile (a!=0 || b!=0){\n\t\t\tfor (int c=0;c<b;c++){\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.append(\"\\n\");//改行\n\t\t\tsb=new StringBuilder(\"#\");\n\t\t\tfor (int d=2;d<a;d++){\n\t\t\t\tfor (int e=2;e<b;e++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.append(\"\\n\");//改行\n\t\t\t\tsb=new StringBuilder(\"#\");\n\t\t\t}\n\t\t\tfor (int c=1;c<b;c++){\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\tsb.append(\"\\n\");//改行\n\t\tSystem.out.println(sb);\n\t\ta=n.nextInt();b=n.nextInt();\n\t\tsb=new StringBuilder(\"\");\n\t\t}\n\t}", "main", "{\n\t\tStringBuilder sb=new StringBuilder(\"\");\n\t\tScanner n=new Scanner(System.in);\n\t\tint a=n.nextInt();\n\t\tint b=n.nextInt();\n\t\twhile (a!=0 || b!=0){\n\t\t\tfor (int c=0;c<b;c++){\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.append(\"\\n\");//改行\n\t\t\tsb=new StringBuilder(\"#\");\n\t\t\tfor (int d=2;d<a;d++){\n\t\t\t\tfor (int e=2;e<b;e++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.append(\"\\n\");//改行\n\t\t\t\tsb=new StringBuilder(\"#\");\n\t\t\t}\n\t\t\tfor (int c=1;c<b;c++){\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\tsb.append(\"\\n\");//改行\n\t\tSystem.out.println(sb);\n\t\ta=n.nextInt();b=n.nextInt();\n\t\tsb=new StringBuilder(\"\");\n\t\t}\n\t}", "StringBuilder sb=new StringBuilder(\"\");", "sb", "new StringBuilder(\"\")", "Scanner n=new Scanner(System.in);", "n", "new Scanner(System.in)", "int a=n.nextInt();", "a", "n.nextInt()", "n.nextInt", "n", "int b=n.nextInt();", "b", "n.nextInt()", "n.nextInt", "n", "while (a!=0 || b!=0){\n\t\t\tfor (int c=0;c<b;c++){\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.append(\"\\n\");//改行\n\t\t\tsb=new StringBuilder(\"#\");\n\t\t\tfor (int d=2;d<a;d++){\n\t\t\t\tfor (int e=2;e<b;e++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.append(\"\\n\");//改行\n\t\t\t\tsb=new StringBuilder(\"#\");\n\t\t\t}\n\t\t\tfor (int c=1;c<b;c++){\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\tsb.append(\"\\n\");//改行\n\t\tSystem.out.println(sb);\n\t\ta=n.nextInt();b=n.nextInt();\n\t\tsb=new StringBuilder(\"\");\n\t\t}", "a!=0 || b!=0", "a!=0", "a", "0", "b!=0", "b", "0", "{\n\t\t\tfor (int c=0;c<b;c++){\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.append(\"\\n\");//改行\n\t\t\tsb=new StringBuilder(\"#\");\n\t\t\tfor (int d=2;d<a;d++){\n\t\t\t\tfor (int e=2;e<b;e++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.append(\"\\n\");//改行\n\t\t\t\tsb=new StringBuilder(\"#\");\n\t\t\t}\n\t\t\tfor (int c=1;c<b;c++){\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\tsb.append(\"\\n\");//改行\n\t\tSystem.out.println(sb);\n\t\ta=n.nextInt();b=n.nextInt();\n\t\tsb=new StringBuilder(\"\");\n\t\t}", "for (int c=0;c<b;c++){\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t}", "int c=0;", "int c=0;", "c", "0", "c<b", "c", "b", "c++", "c++", "c", "{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t}", "{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t}", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "System.out.println(sb)", "System.out.println", "System.out", "System", "System.out", "sb", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "sb=new StringBuilder(\"#\")", "sb", "new StringBuilder(\"#\")", "for (int d=2;d<a;d++){\n\t\t\t\tfor (int e=2;e<b;e++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.append(\"\\n\");//改行\n\t\t\t\tsb=new StringBuilder(\"#\");\n\t\t\t}", "int d=2;", "int d=2;", "d", "2", "d<a", "d", "a", "d++", "d++", "d", "{\n\t\t\t\tfor (int e=2;e<b;e++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.append(\"\\n\");//改行\n\t\t\t\tsb=new StringBuilder(\"#\");\n\t\t\t}", "{\n\t\t\t\tfor (int e=2;e<b;e++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.append(\"\\n\");//改行\n\t\t\t\tsb=new StringBuilder(\"#\");\n\t\t\t}", "for (int e=2;e<b;e++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}", "int e=2;", "int e=2;", "e", "2", "e<b", "e", "b", "e++", "e++", "e", "{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}", "sb.append(\".\")", "sb.append", "sb", "\".\"", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "System.out.println(sb)", "System.out.println", "System.out", "System", "System.out", "sb", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "sb=new StringBuilder(\"#\")", "sb", "new StringBuilder(\"#\")", "for (int c=1;c<b;c++){\n\t\t\t\tsb.append(\"#\");\n\t\t\t}", "int c=1;", "int c=1;", "c", "1", "c<b", "c", "b", "c++", "c++", "c", "{\n\t\t\t\tsb.append(\"#\");\n\t\t\t}", "{\n\t\t\t\tsb.append(\"#\");\n\t\t\t}", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "System.out.println(sb)", "System.out.println", "System.out", "System", "System.out", "sb", "a=n.nextInt()", "a", "n.nextInt()", "n.nextInt", "n", "b=n.nextInt()", "b", "n.nextInt()", "n.nextInt", "n", "sb=new StringBuilder(\"\")", "sb", "new StringBuilder(\"\")", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tStringBuilder sb=new StringBuilder(\"\");\n\t\tScanner n=new Scanner(System.in);\n\t\tint a=n.nextInt();\n\t\tint b=n.nextInt();\n\t\twhile (a!=0 || b!=0){\n\t\t\tfor (int c=0;c<b;c++){\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.append(\"\\n\");//改行\n\t\t\tsb=new StringBuilder(\"#\");\n\t\t\tfor (int d=2;d<a;d++){\n\t\t\t\tfor (int e=2;e<b;e++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.append(\"\\n\");//改行\n\t\t\t\tsb=new StringBuilder(\"#\");\n\t\t\t}\n\t\t\tfor (int c=1;c<b;c++){\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\tsb.append(\"\\n\");//改行\n\t\tSystem.out.println(sb);\n\t\ta=n.nextInt();b=n.nextInt();\n\t\tsb=new StringBuilder(\"\");\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tStringBuilder sb=new StringBuilder(\"\");\n\t\tScanner n=new Scanner(System.in);\n\t\tint a=n.nextInt();\n\t\tint b=n.nextInt();\n\t\twhile (a!=0 || b!=0){\n\t\t\tfor (int c=0;c<b;c++){\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(sb);\n\t\t\tsb.append(\"\\n\");//改行\n\t\t\tsb=new StringBuilder(\"#\");\n\t\t\tfor (int d=2;d<a;d++){\n\t\t\t\tfor (int e=2;e<b;e++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tSystem.out.println(sb);\n\t\t\t\tsb.append(\"\\n\");//改行\n\t\t\t\tsb=new StringBuilder(\"#\");\n\t\t\t}\n\t\t\tfor (int c=1;c<b;c++){\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\tsb.append(\"\\n\");//改行\n\t\tSystem.out.println(sb);\n\t\ta=n.nextInt();b=n.nextInt();\n\t\tsb=new StringBuilder(\"\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { StringBuilder sb=new StringBuilder(""); Scanner n=new Scanner(System.in); int a=n.nextInt(); int b=n.nextInt(); while (a!=0 || b!=0){ for (int c=0;c<b;c++){ sb.append("#"); } System.out.println(sb); sb.append("\n");//改行 sb=new StringBuilder("#"); for (int d=2;d<a;d++){ for (int e=2;e<b;e++){ sb.append("."); } sb.append("#"); System.out.println(sb); sb.append("\n");//改行 sb=new StringBuilder("#"); } for (int c=1;c<b;c++){ sb.append("#"); } sb.append("\n");//改行 System.out.println(sb); a=n.nextInt();b=n.nextInt(); sb=new StringBuilder(""); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 41, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 0, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 0, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 152, 5 ], [ 152, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 14, 37 ], [ 37, 38 ], [ 14, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 14, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 14, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 64, 74 ], [ 74, 75 ], [ 75, 76 ], [ 64, 77 ], [ 78, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 78, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 85, 95 ], [ 95, 96 ], [ 96, 97 ], [ 85, 98 ], [ 99, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 78, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 78, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 14, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 123, 124 ], [ 123, 125 ], [ 118, 126 ], [ 126, 127 ], [ 127, 128 ], [ 118, 129 ], [ 130, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 14, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 14, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 6, 149 ], [ 149, 150 ], [ 0, 151 ], [ 151, 152 ], [ 151, 153 ] ]
[ "import java.util.Scanner;\npublic class Main {\npublic static void main(String[] args) {\n\nScanner sc = new Scanner(System.in);\n\nwhile (true) {\nint H = sc.nextInt();\nint W = sc.nextInt();\nif (H == 0 && W == 0) {\nbreak;\n\n}int i, j;\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n\nfor ( j = 0 ; j < H-2; j++) {\n System.out.printf(\"#\");\nfor ( i = 0 ; i < W-2; i++){\n System.out.printf(\".\");\n}System.out.printf(\"#\");\nSystem.out.printf(\"\\n\");\n}\n\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n System.out.printf(\"\\n\");\n}\n}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\npublic static void main(String[] args) {\n\nScanner sc = new Scanner(System.in);\n\nwhile (true) {\nint H = sc.nextInt();\nint W = sc.nextInt();\nif (H == 0 && W == 0) {\nbreak;\n\n}int i, j;\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n\nfor ( j = 0 ; j < H-2; j++) {\n System.out.printf(\"#\");\nfor ( i = 0 ; i < W-2; i++){\n System.out.printf(\".\");\n}System.out.printf(\"#\");\nSystem.out.printf(\"\\n\");\n}\n\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n System.out.printf(\"\\n\");\n}\n}\n}", "Main", "public static void main(String[] args) {\n\nScanner sc = new Scanner(System.in);\n\nwhile (true) {\nint H = sc.nextInt();\nint W = sc.nextInt();\nif (H == 0 && W == 0) {\nbreak;\n\n}int i, j;\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n\nfor ( j = 0 ; j < H-2; j++) {\n System.out.printf(\"#\");\nfor ( i = 0 ; i < W-2; i++){\n System.out.printf(\".\");\n}System.out.printf(\"#\");\nSystem.out.printf(\"\\n\");\n}\n\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n System.out.printf(\"\\n\");\n}\n}", "main", "{\n\nScanner sc = new Scanner(System.in);\n\nwhile (true) {\nint H = sc.nextInt();\nint W = sc.nextInt();\nif (H == 0 && W == 0) {\nbreak;\n\n}int i, j;\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n\nfor ( j = 0 ; j < H-2; j++) {\n System.out.printf(\"#\");\nfor ( i = 0 ; i < W-2; i++){\n System.out.printf(\".\");\n}System.out.printf(\"#\");\nSystem.out.printf(\"\\n\");\n}\n\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n System.out.printf(\"\\n\");\n}\n}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\nint H = sc.nextInt();\nint W = sc.nextInt();\nif (H == 0 && W == 0) {\nbreak;\n\n}int i, j;\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n\nfor ( j = 0 ; j < H-2; j++) {\n System.out.printf(\"#\");\nfor ( i = 0 ; i < W-2; i++){\n System.out.printf(\".\");\n}System.out.printf(\"#\");\nSystem.out.printf(\"\\n\");\n}\n\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n System.out.printf(\"\\n\");\n}", "true", "{\nint H = sc.nextInt();\nint W = sc.nextInt();\nif (H == 0 && W == 0) {\nbreak;\n\n}int i, j;\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n\nfor ( j = 0 ; j < H-2; j++) {\n System.out.printf(\"#\");\nfor ( i = 0 ; i < W-2; i++){\n System.out.printf(\".\");\n}System.out.printf(\"#\");\nSystem.out.printf(\"\\n\");\n}\n\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n System.out.printf(\"\\n\");\n}", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int W = sc.nextInt();", "W", "sc.nextInt()", "sc.nextInt", "sc", "if (H == 0 && W == 0) {\nbreak;\n\n}", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\nbreak;\n\n}", "break;", "int i", "i", "j;", "j", "for ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }", "i = 0;", "i = 0", "i", "0", "i < W", "i", "W", "i++", "i++", "i", "{\n System.out.printf(\"#\");\n }", "{\n System.out.printf(\"#\");\n }", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "for ( j = 0 ; j < H-2; j++) {\n System.out.printf(\"#\");\nfor ( i = 0 ; i < W-2; i++){\n System.out.printf(\".\");\n}System.out.printf(\"#\");\nSystem.out.printf(\"\\n\");\n}", "j = 0 ;", "j = 0", "j", "0", "j < H-2", "j", "H-2", "H", "2", "j++", "j++", "j", "{\n System.out.printf(\"#\");\nfor ( i = 0 ; i < W-2; i++){\n System.out.printf(\".\");\n}System.out.printf(\"#\");\nSystem.out.printf(\"\\n\");\n}", "{\n System.out.printf(\"#\");\nfor ( i = 0 ; i < W-2; i++){\n System.out.printf(\".\");\n}System.out.printf(\"#\");\nSystem.out.printf(\"\\n\");\n}", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "for ( i = 0 ; i < W-2; i++){\n System.out.printf(\".\");\n}", "i = 0 ;", "i = 0", "i", "0", "i < W-2", "i", "W-2", "W", "2", "i++", "i++", "i", "{\n System.out.printf(\".\");\n}", "{\n System.out.printf(\".\");\n}", "System.out.printf(\".\")", "System.out.printf", "System.out", "System", "System.out", "\".\"", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "for ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }", "i = 0;", "i = 0", "i", "0", "i < W", "i", "W", "i++", "i++", "i", "{\n System.out.printf(\"#\");\n }", "{\n System.out.printf(\"#\");\n }", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args", "public class Main {\npublic static void main(String[] args) {\n\nScanner sc = new Scanner(System.in);\n\nwhile (true) {\nint H = sc.nextInt();\nint W = sc.nextInt();\nif (H == 0 && W == 0) {\nbreak;\n\n}int i, j;\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n\nfor ( j = 0 ; j < H-2; j++) {\n System.out.printf(\"#\");\nfor ( i = 0 ; i < W-2; i++){\n System.out.printf(\".\");\n}System.out.printf(\"#\");\nSystem.out.printf(\"\\n\");\n}\n\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n System.out.printf(\"\\n\");\n}\n}\n}", "public class Main {\npublic static void main(String[] args) {\n\nScanner sc = new Scanner(System.in);\n\nwhile (true) {\nint H = sc.nextInt();\nint W = sc.nextInt();\nif (H == 0 && W == 0) {\nbreak;\n\n}int i, j;\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n\nfor ( j = 0 ; j < H-2; j++) {\n System.out.printf(\"#\");\nfor ( i = 0 ; i < W-2; i++){\n System.out.printf(\".\");\n}System.out.printf(\"#\");\nSystem.out.printf(\"\\n\");\n}\n\nfor ( i = 0; i < W; i++) {\n System.out.printf(\"#\");\n }System.out.printf(\"\\n\");\n System.out.printf(\"\\n\");\n}\n}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int H = sc.nextInt(); int W = sc.nextInt(); if (H == 0 && W == 0) { break; }int i, j; for ( i = 0; i < W; i++) { System.out.printf("#"); }System.out.printf("\n"); for ( j = 0 ; j < H-2; j++) { System.out.printf("#"); for ( i = 0 ; i < W-2; i++){ System.out.printf("."); }System.out.printf("#"); System.out.printf("\n"); } for ( i = 0; i < W; i++) { System.out.printf("#"); }System.out.printf("\n"); System.out.printf("\n"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 20, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 39, 41 ], [ 17, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 17, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 17, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 17, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 73, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 87, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 92, 102 ], [ 102, 103 ], [ 103, 104 ], [ 92, 105 ], [ 106, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 87, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 87, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 17, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 124, 125 ], [ 124, 126 ], [ 119, 127 ], [ 127, 128 ], [ 128, 129 ], [ 119, 130 ], [ 131, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 17, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 17, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 8, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 6, 150 ], [ 150, 151 ] ]
[ "import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (true) {\n\t\t\tString[] cut = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(cut[0]);\n\t\t\tint W = Integer.parseInt(cut[1]);\n\t\t\tif (H == 0 && W == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tfor (int k = 0; k < H-2; k++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\n\t}\n\n}", "import java.io.*;", "io.*", "java", "class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (true) {\n\t\t\tString[] cut = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(cut[0]);\n\t\t\tint W = Integer.parseInt(cut[1]);\n\t\t\tif (H == 0 && W == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tfor (int k = 0; k < H-2; k++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (true) {\n\t\t\tString[] cut = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(cut[0]);\n\t\t\tint W = Integer.parseInt(cut[1]);\n\t\t\tif (H == 0 && W == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tfor (int k = 0; k < H-2; k++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\twhile (true) {\n\t\t\tString[] cut = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(cut[0]);\n\t\t\tint W = Integer.parseInt(cut[1]);\n\t\t\tif (H == 0 && W == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tfor (int k = 0; k < H-2; k++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while (true) {\n\t\t\tString[] cut = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(cut[0]);\n\t\t\tint W = Integer.parseInt(cut[1]);\n\t\t\tif (H == 0 && W == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tfor (int k = 0; k < H-2; k++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"\\n\");\n\t\t}", "true", "{\n\t\t\tString[] cut = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(cut[0]);\n\t\t\tint W = Integer.parseInt(cut[1]);\n\t\t\tif (H == 0 && W == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tfor (int k = 0; k < H-2; k++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t\tsb.append(\"\\n\");\n\t\t}", "String[] cut = br.readLine().split(\" \");", "cut", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int H = Integer.parseInt(cut[0]);", "H", "Integer.parseInt(cut[0])", "Integer.parseInt", "Integer", "cut[0]", "cut", "0", "int W = Integer.parseInt(cut[1]);", "W", "Integer.parseInt(cut[1])", "Integer.parseInt", "Integer", "cut[1]", "cut", "1", "if (H == 0 && W == 0){\n\t\t\t\tbreak;\n\t\t\t}", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < W", "i", "W", "i++", "i++", "i", "{\n\t\t\t\tsb.append(\"#\");\n\n\t\t\t}", "{\n\t\t\t\tsb.append(\"#\");\n\n\t\t\t}", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "for (int k = 0; k < H-2; k++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < H-2", "k", "H-2", "H", "2", "k++", "k++", "k", "{\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}", "{\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t\tsb.append(\"#\");\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "for (int j = 0; j < W - 2; j++) {\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W - 2", "j", "W - 2", "W", "2", "j++", "j++", "j", "{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}", "sb.append(\".\")", "sb.append", "sb", "\".\"", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "for (int i = 0; i < W; i++) {\n\t\t\t\tsb.append(\"#\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < W", "i", "W", "i++", "i++", "i", "{\n\t\t\t\tsb.append(\"#\");\n\t\t\t}", "{\n\t\t\t\tsb.append(\"#\");\n\t\t\t}", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args" ]
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while (true) { String[] cut = br.readLine().split(" "); int H = Integer.parseInt(cut[0]); int W = Integer.parseInt(cut[1]); if (H == 0 && W == 0){ break; } for (int i = 0; i < W; i++) { sb.append("#"); } sb.append("\n"); for (int k = 0; k < H-2; k++) { sb.append("#"); for (int j = 0; j < W - 2; j++) { sb.append("."); } sb.append("#"); sb.append("\n"); } for (int i = 0; i < W; i++) { sb.append("#"); } sb.append("\n"); sb.append("\n"); } System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 118, 5 ], [ 118, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 29, 35 ], [ 18, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 62, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 62, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 80, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 80, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 48, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 18, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 8, 112 ], [ 112, 113 ], [ 113, 114 ], [ 6, 115 ], [ 115, 116 ], [ 0, 117 ], [ 117, 118 ], [ 117, 119 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tint g,r;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true)\n\t\t{\n\t\t\tg = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\n\t\t\tif( (g|r) == 0) break;\n\n\t\t\tfor(int i=0; i<g; i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j<r; j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\n\t\t}\n\n\t\tscan.close();\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tint g,r;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true)\n\t\t{\n\t\t\tg = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\n\t\t\tif( (g|r) == 0) break;\n\n\t\t\tfor(int i=0; i<g; i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j<r; j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\n\t\t}\n\n\t\tscan.close();\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tint g,r;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true)\n\t\t{\n\t\t\tg = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\n\t\t\tif( (g|r) == 0) break;\n\n\t\t\tfor(int i=0; i<g; i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j<r; j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\n\t\t}\n\n\t\tscan.close();\n\n\t}", "main", "{\n\n\t\tint g,r;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true)\n\t\t{\n\t\t\tg = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\n\t\t\tif( (g|r) == 0) break;\n\n\t\t\tfor(int i=0; i<g; i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j<r; j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\n\t\t}\n\n\t\tscan.close();\n\n\t}", "int g", "g", "r;", "r", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true)\n\t\t{\n\t\t\tg = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\n\t\t\tif( (g|r) == 0) break;\n\n\t\t\tfor(int i=0; i<g; i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j<r; j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\n\t\t}", "true", "{\n\t\t\tg = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\n\t\t\tif( (g|r) == 0) break;\n\n\t\t\tfor(int i=0; i<g; i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j<r; j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\n\t\t}", "g = scan.nextInt()", "g", "scan.nextInt()", "scan.nextInt", "scan", "r = scan.nextInt()", "r", "scan.nextInt()", "scan.nextInt", "scan", "if( (g|r) == 0) break;", "(g|r) == 0", "(g|r)", "g", "r", "0", "break;", "for(int i=0; i<g; i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j<r; j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<g", "i", "g", "i++", "i++", "i", "{\n\t\t\t\tfor(int j=0; j<r; j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor(int j=0; j<r; j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for(int j=0; j<r; j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<r", "j", "r", "j++", "j++", "j", "{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}", "i==0 || i==(g-1)", "i==0", "i", "0", "i==(g-1)", "i", "(g-1)", "g", "1", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}", "if(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");", "j==0 || j==(r-1)", "j==0", "j", "0", "j==(r-1)", "j", "(r-1)", "r", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tint g,r;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true)\n\t\t{\n\t\t\tg = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\n\t\t\tif( (g|r) == 0) break;\n\n\t\t\tfor(int i=0; i<g; i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j<r; j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\n\t\t}\n\n\t\tscan.close();\n\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\n\t\tint g,r;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true)\n\t\t{\n\t\t\tg = scan.nextInt();\n\t\t\tr = scan.nextInt();\n\n\t\t\tif( (g|r) == 0) break;\n\n\t\t\tfor(int i=0; i<g; i++)\n\t\t\t{\n\t\t\t\tfor(int j=0; j<r; j++)\n\t\t\t\t{\n\t\t\t\t\tif(i==0 || i==(g-1) )//Line0 or LastLine\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tif(j==0 || j==(r-1) ) System.out.print(\"#\");\n\t\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\n\t\t}\n\n\t\tscan.close();\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { int g,r; Scanner scan = new Scanner(System.in); while(true) { g = scan.nextInt(); r = scan.nextInt(); if( (g|r) == 0) break; for(int i=0; i<g; i++) { for(int j=0; j<r; j++) { if(i==0 || i==(g-1) )//Line0 or LastLine { System.out.print("#"); } else { if(j==0 || j==(r-1) ) System.out.print("#"); else System.out.print("."); } } System.out.println(); } System.out.println(); } scan.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 0, 13, 8, 2, 2, 13, 17, 2, 13, 2, 13, 17, 17, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 8, 2, 2, 13, 17, 2, 13, 2, 13, 17, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 18, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 18, 38 ], [ 38, 39 ], [ 38, 40 ], [ 18, 41 ], [ 41, 42 ], [ 41, 43 ], [ 18, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 62, 72 ], [ 62, 73 ], [ 18, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 74, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 92, 102 ], [ 92, 103 ], [ 18, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 9, 109 ], [ 109, 110 ] ]
[ "import java.util.*;\nimport java.text.*;\n\nclass Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n for(;;) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if(h == 0 && w == 0) break;\n String s = \"\";\n String t = \"\";\n for(int i = 0; i < w; i++) {\n s += \"#\";\n t += (i == 0 || i == (w-1)) ? \"#\" : \".\";\n }\n for(int i = 0; i < h; i++) {\n System.out.println((i == 0 || i == (h-1)) ? s : t);\n }\n System.out.println();\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.text.*;", "text.*", "java", "class Main {\n public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n for(;;) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if(h == 0 && w == 0) break;\n String s = \"\";\n String t = \"\";\n for(int i = 0; i < w; i++) {\n s += \"#\";\n t += (i == 0 || i == (w-1)) ? \"#\" : \".\";\n }\n for(int i = 0; i < h; i++) {\n System.out.println((i == 0 || i == (h-1)) ? s : t);\n }\n System.out.println();\n }\n }\n}", "Main", "public static void main(String[]args)throws Exception {\n Scanner sc = new Scanner(System.in);\n for(;;) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if(h == 0 && w == 0) break;\n String s = \"\";\n String t = \"\";\n for(int i = 0; i < w; i++) {\n s += \"#\";\n t += (i == 0 || i == (w-1)) ? \"#\" : \".\";\n }\n for(int i = 0; i < h; i++) {\n System.out.println((i == 0 || i == (h-1)) ? s : t);\n }\n System.out.println();\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n for(;;) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if(h == 0 && w == 0) break;\n String s = \"\";\n String t = \"\";\n for(int i = 0; i < w; i++) {\n s += \"#\";\n t += (i == 0 || i == (w-1)) ? \"#\" : \".\";\n }\n for(int i = 0; i < h; i++) {\n System.out.println((i == 0 || i == (h-1)) ? s : t);\n }\n System.out.println();\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(;;) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if(h == 0 && w == 0) break;\n String s = \"\";\n String t = \"\";\n for(int i = 0; i < w; i++) {\n s += \"#\";\n t += (i == 0 || i == (w-1)) ? \"#\" : \".\";\n }\n for(int i = 0; i < h; i++) {\n System.out.println((i == 0 || i == (h-1)) ? s : t);\n }\n System.out.println();\n }", ";", "{\n int h = sc.nextInt();\n int w = sc.nextInt();\n if(h == 0 && w == 0) break;\n String s = \"\";\n String t = \"\";\n for(int i = 0; i < w; i++) {\n s += \"#\";\n t += (i == 0 || i == (w-1)) ? \"#\" : \".\";\n }\n for(int i = 0; i < h; i++) {\n System.out.println((i == 0 || i == (h-1)) ? s : t);\n }\n System.out.println();\n }", "{\n int h = sc.nextInt();\n int w = sc.nextInt();\n if(h == 0 && w == 0) break;\n String s = \"\";\n String t = \"\";\n for(int i = 0; i < w; i++) {\n s += \"#\";\n t += (i == 0 || i == (w-1)) ? \"#\" : \".\";\n }\n for(int i = 0; i < h; i++) {\n System.out.println((i == 0 || i == (h-1)) ? s : t);\n }\n System.out.println();\n }", "int h = sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int w = sc.nextInt();", "w", "sc.nextInt()", "sc.nextInt", "sc", "if(h == 0 && w == 0) break;", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "String s = \"\";", "s", "\"\"", "String t = \"\";", "t", "\"\"", "for(int i = 0; i < w; i++) {\n s += \"#\";\n t += (i == 0 || i == (w-1)) ? \"#\" : \".\";\n }", "int i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "{\n s += \"#\";\n t += (i == 0 || i == (w-1)) ? \"#\" : \".\";\n }", "{\n s += \"#\";\n t += (i == 0 || i == (w-1)) ? \"#\" : \".\";\n }", "s += \"#\"", "s", "\"#\"", "t += (i == 0 || i == (w-1)) ? \"#\" : \".\"", "t", "(i == 0 || i == (w-1)) ? \"#\" : \".\"", "(i == 0 || i == (w-1))", "i == 0", "i", "0", "i == (w-1)", "i", "(w-1)", "w", "1", "\"#\"", "\".\"", "for(int i = 0; i < h; i++) {\n System.out.println((i == 0 || i == (h-1)) ? s : t);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n System.out.println((i == 0 || i == (h-1)) ? s : t);\n }", "{\n System.out.println((i == 0 || i == (h-1)) ? s : t);\n }", "System.out.println((i == 0 || i == (h-1)) ? s : t)", "System.out.println", "System.out", "System", "System.out", "(i == 0 || i == (h-1)) ? s : t", "(i == 0 || i == (h-1))", "i == 0", "i", "0", "i == (h-1)", "i", "(h-1)", "h", "1", "s", "t", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[]args", "args" ]
import java.util.*; import java.text.*; class Main { public static void main(String[]args)throws Exception { Scanner sc = new Scanner(System.in); for(;;) { int h = sc.nextInt(); int w = sc.nextInt(); if(h == 0 && w == 0) break; String s = ""; String t = ""; for(int i = 0; i < w; i++) { s += "#"; t += (i == 0 || i == (w-1)) ? "#" : "."; } for(int i = 0; i < h; i++) { System.out.println((i == 0 || i == (h-1)) ? s : t); } System.out.println(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 4, 18, 13, 4, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 13, 4, 18, 13, 13, 14, 2, 2, 13, 17, 2, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 17, 4, 18, 13, 17, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 157, 11 ], [ 157, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 23, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 40, 42 ], [ 23, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 23, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 59, 60 ], [ 23, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 64, 67 ], [ 14, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 12, 74 ], [ 74, 75 ], [ 157, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 78, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 88, 96 ], [ 96, 97 ], [ 97, 98 ], [ 88, 99 ], [ 100, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 101, 112 ], [ 113, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 114, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 114, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 131, 133 ], [ 126, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 126, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 100, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 78, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 78, 150 ], [ 150, 151 ], [ 76, 152 ], [ 152, 153 ], [ 76, 154 ], [ 154, 155 ], [ 0, 156 ], [ 156, 157 ], [ 156, 158 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main (String[] args ) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n \n while(true) {\n String line = reader.readLine();\n String[] column = line.split(\" \");\n int y = Integer.parseInt(column[0]);\n int x = Integer.parseInt(column[1]);\n \n if ( y == 0 && x == 0 ) {\n break;\n }\n builder.append(StringUtilsRepeat(x,y));\n }\n System.out.print(builder);\n }\n public static StringBuilder StringUtilsRepeat(int x,int y) {\n StringBuilder line = new StringBuilder();\n String str = \"#\";\n String strin = \".\";\n for ( int j = 1; j <= y; j++ ){\n for ( int i = 1; i <= x ; i++ ) {\n if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);\n }\n line.append(\"\\n\");\n }\n line.append(\"\\n\");\n return line;\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main (String[] args ) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n \n while(true) {\n String line = reader.readLine();\n String[] column = line.split(\" \");\n int y = Integer.parseInt(column[0]);\n int x = Integer.parseInt(column[1]);\n \n if ( y == 0 && x == 0 ) {\n break;\n }\n builder.append(StringUtilsRepeat(x,y));\n }\n System.out.print(builder);\n }\n public static StringBuilder StringUtilsRepeat(int x,int y) {\n StringBuilder line = new StringBuilder();\n String str = \"#\";\n String strin = \".\";\n for ( int j = 1; j <= y; j++ ){\n for ( int i = 1; i <= x ; i++ ) {\n if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);\n }\n line.append(\"\\n\");\n }\n line.append(\"\\n\");\n return line;\n }\n}", "Main", "public static void main (String[] args ) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n \n while(true) {\n String line = reader.readLine();\n String[] column = line.split(\" \");\n int y = Integer.parseInt(column[0]);\n int x = Integer.parseInt(column[1]);\n \n if ( y == 0 && x == 0 ) {\n break;\n }\n builder.append(StringUtilsRepeat(x,y));\n }\n System.out.print(builder);\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n \n while(true) {\n String line = reader.readLine();\n String[] column = line.split(\" \");\n int y = Integer.parseInt(column[0]);\n int x = Integer.parseInt(column[1]);\n \n if ( y == 0 && x == 0 ) {\n break;\n }\n builder.append(StringUtilsRepeat(x,y));\n }\n System.out.print(builder);\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "while(true) {\n String line = reader.readLine();\n String[] column = line.split(\" \");\n int y = Integer.parseInt(column[0]);\n int x = Integer.parseInt(column[1]);\n \n if ( y == 0 && x == 0 ) {\n break;\n }\n builder.append(StringUtilsRepeat(x,y));\n }", "true", "{\n String line = reader.readLine();\n String[] column = line.split(\" \");\n int y = Integer.parseInt(column[0]);\n int x = Integer.parseInt(column[1]);\n \n if ( y == 0 && x == 0 ) {\n break;\n }\n builder.append(StringUtilsRepeat(x,y));\n }", "String line = reader.readLine();", "line", "reader.readLine()", "reader.readLine", "reader", "String[] column = line.split(\" \");", "column", "line.split(\" \")", "line.split", "line", "\" \"", "int y = Integer.parseInt(column[0]);", "y", "Integer.parseInt(column[0])", "Integer.parseInt", "Integer", "column[0]", "column", "0", "int x = Integer.parseInt(column[1]);", "x", "Integer.parseInt(column[1])", "Integer.parseInt", "Integer", "column[1]", "column", "1", "if ( y == 0 && x == 0 ) {\n break;\n }", "y == 0 && x == 0", "y == 0", "y", "0", "x == 0", "x", "0", "{\n break;\n }", "break;", "builder.append(StringUtilsRepeat(x,y))", "builder.append", "builder", "StringUtilsRepeat(x,y)", "StringUtilsRepeat", "x", "y", "System.out.print(builder)", "System.out.print", "System.out", "System", "System.out", "builder", "String[] args", "args", "public static StringBuilder StringUtilsRepeat(int x,int y) {\n StringBuilder line = new StringBuilder();\n String str = \"#\";\n String strin = \".\";\n for ( int j = 1; j <= y; j++ ){\n for ( int i = 1; i <= x ; i++ ) {\n if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);\n }\n line.append(\"\\n\");\n }\n line.append(\"\\n\");\n return line;\n }", "StringUtilsRepeat", "{\n StringBuilder line = new StringBuilder();\n String str = \"#\";\n String strin = \".\";\n for ( int j = 1; j <= y; j++ ){\n for ( int i = 1; i <= x ; i++ ) {\n if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);\n }\n line.append(\"\\n\");\n }\n line.append(\"\\n\");\n return line;\n }", "StringBuilder line = new StringBuilder();", "line", "new StringBuilder()", "String str = \"#\";", "str", "\"#\"", "String strin = \".\";", "strin", "\".\"", "for ( int j = 1; j <= y; j++ ){\n for ( int i = 1; i <= x ; i++ ) {\n if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);\n }\n line.append(\"\\n\");\n }", "int j = 1;", "int j = 1;", "j", "1", "j <= y", "j", "y", "j++", "j++", "j", "{\n for ( int i = 1; i <= x ; i++ ) {\n if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);\n }\n line.append(\"\\n\");\n }", "{\n for ( int i = 1; i <= x ; i++ ) {\n if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);\n }\n line.append(\"\\n\");\n }", "for ( int i = 1; i <= x ; i++ ) {\n if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);\n }", "int i = 1;", "int i = 1;", "i", "1", "i <= x", "i", "x", "i++", "i++", "i", "{\n if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);\n }", "{\n if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);\n }", "if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);", "j == 1 || j == y", "j == 1", "j", "1", "j == y", "j", "y", "line.append(str)", "line.append", "line", "str", "if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);", "i == 1 || i == x", "i == 1", "i", "1", "i == x", "i", "x", "line.append(str)", "line.append", "line", "str", "line.append(strin)", "line.append", "line", "strin", "line.append(\"\\n\")", "line.append", "line", "\"\\n\"", "line.append(\"\\n\")", "line.append", "line", "\"\\n\"", "return line;", "line", "int x", "x", "int y", "y", "public class Main {\n public static void main (String[] args ) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n \n while(true) {\n String line = reader.readLine();\n String[] column = line.split(\" \");\n int y = Integer.parseInt(column[0]);\n int x = Integer.parseInt(column[1]);\n \n if ( y == 0 && x == 0 ) {\n break;\n }\n builder.append(StringUtilsRepeat(x,y));\n }\n System.out.print(builder);\n }\n public static StringBuilder StringUtilsRepeat(int x,int y) {\n StringBuilder line = new StringBuilder();\n String str = \"#\";\n String strin = \".\";\n for ( int j = 1; j <= y; j++ ){\n for ( int i = 1; i <= x ; i++ ) {\n if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);\n }\n line.append(\"\\n\");\n }\n line.append(\"\\n\");\n return line;\n }\n}", "public class Main {\n public static void main (String[] args ) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n \n while(true) {\n String line = reader.readLine();\n String[] column = line.split(\" \");\n int y = Integer.parseInt(column[0]);\n int x = Integer.parseInt(column[1]);\n \n if ( y == 0 && x == 0 ) {\n break;\n }\n builder.append(StringUtilsRepeat(x,y));\n }\n System.out.print(builder);\n }\n public static StringBuilder StringUtilsRepeat(int x,int y) {\n StringBuilder line = new StringBuilder();\n String str = \"#\";\n String strin = \".\";\n for ( int j = 1; j <= y; j++ ){\n for ( int i = 1; i <= x ; i++ ) {\n if (j == 1 || j == y)\n line.append(str);\n else if (i == 1 || i == x)\n line.append(str);\n else\n line.append(strin);\n }\n line.append(\"\\n\");\n }\n line.append(\"\\n\");\n return line;\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main (String[] args ) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); StringBuilder builder = new StringBuilder(); while(true) { String line = reader.readLine(); String[] column = line.split(" "); int y = Integer.parseInt(column[0]); int x = Integer.parseInt(column[1]); if ( y == 0 && x == 0 ) { break; } builder.append(StringUtilsRepeat(x,y)); } System.out.print(builder); } public static StringBuilder StringUtilsRepeat(int x,int y) { StringBuilder line = new StringBuilder(); String str = "#"; String strin = "."; for ( int j = 1; j <= y; j++ ){ for ( int i = 1; i <= x ; i++ ) { if (j == 1 || j == y) line.append(str); else if (i == 1 || i == x) line.append(str); else line.append(strin); } line.append("\n"); } line.append("\n"); return line; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 42, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 4, 13, 13, 13, 23, 13, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 3, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 159, 5 ], [ 159, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 8, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 18, 38 ], [ 38, 39 ], [ 38, 40 ], [ 38, 41 ], [ 6, 42 ], [ 42, 43 ], [ 159, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 46, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 46, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 83, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 96, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 106, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 112, 119 ], [ 95, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 46, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 131, 133 ], [ 126, 134 ], [ 134, 135 ], [ 135, 136 ], [ 126, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 46, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 46, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 44, 154 ], [ 154, 155 ], [ 44, 156 ], [ 156, 157 ], [ 0, 158 ], [ 158, 159 ], [ 158, 160 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H, W;\n\t\twhile (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tprintFrame(H,W);\n\n\t\t}\n\t}\n\n\tpublic static void printFrame(int H, int W) {\n\t\tfor (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");\n\n\t\tSystem.out.println();\n\n\t\tfor (int i = 2; i < H; i++) {\n\t\t\tfor (int j = 1; j < W; j++) {\n\t\t\t\tif (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H, W;\n\t\twhile (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tprintFrame(H,W);\n\n\t\t}\n\t}\n\n\tpublic static void printFrame(int H, int W) {\n\t\tfor (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");\n\n\t\tSystem.out.println();\n\n\t\tfor (int i = 2; i < H; i++) {\n\t\t\tfor (int j = 1; j < W; j++) {\n\t\t\t\tif (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H, W;\n\t\twhile (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tprintFrame(H,W);\n\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H, W;\n\t\twhile (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tprintFrame(H,W);\n\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int H", "H", "W;", "W", "while (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tprintFrame(H,W);\n\n\t\t}", "true", "{\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tprintFrame(H,W);\n\n\t\t}", "H = sc.nextInt()", "H", "sc.nextInt()", "sc.nextInt", "sc", "W = sc.nextInt()", "W", "sc.nextInt()", "sc.nextInt", "sc", "if (H == 0 && W == 0)\n\t\t\t\tbreak;", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "break;", "printFrame(H,W)", "printFrame", "H", "W", "String[] args", "args", "public static void printFrame(int H, int W) {\n\t\tfor (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");\n\n\t\tSystem.out.println();\n\n\t\tfor (int i = 2; i < H; i++) {\n\t\t\tfor (int j = 1; j < W; j++) {\n\t\t\t\tif (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\n\n\t}", "printFrame", "{\n\t\tfor (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");\n\n\t\tSystem.out.println();\n\n\t\tfor (int i = 2; i < H; i++) {\n\t\t\tfor (int j = 1; j < W; j++) {\n\t\t\t\tif (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\n\n\t}", "for (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");", "int i = 0;", "int i = 0;", "i", "0", "i < W", "i", "W", "i++", "i++", "i", "System.out.print(\"#\");", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for (int i = 2; i < H; i++) {\n\t\t\tfor (int j = 1; j < W; j++) {\n\t\t\t\tif (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\n\t\t}", "int i = 2;", "int i = 2;", "i", "2", "i < H", "i", "H", "i++", "i++", "i", "{\n\t\t\tfor (int j = 1; j < W; j++) {\n\t\t\t\tif (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\n\t\t}", "{\n\t\t\tfor (int j = 1; j < W; j++) {\n\t\t\t\tif (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\n\t\t}", "for (int j = 1; j < W; j++) {\n\t\t\t\tif (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j < W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\tif (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}", "{\n\t\t\t\tif (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}", "if (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}", "j == 1", "j", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}", "j == (W - 1)", "j", "(W - 1)", "W", "1", "{\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}", "System.out.println(\"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\"", "break;", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "for (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");", "int i = 0;", "int i = 0;", "i", "0", "i < W", "i", "W", "i++", "i++", "i", "System.out.print(\"#\");", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int H", "H", "int W", "W", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H, W;\n\t\twhile (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tprintFrame(H,W);\n\n\t\t}\n\t}\n\n\tpublic static void printFrame(int H, int W) {\n\t\tfor (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");\n\n\t\tSystem.out.println();\n\n\t\tfor (int i = 2; i < H; i++) {\n\t\t\tfor (int j = 1; j < W; j++) {\n\t\t\t\tif (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint H, W;\n\t\twhile (true) {\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\t\n\t\t\tprintFrame(H,W);\n\n\t\t}\n\t}\n\n\tpublic static void printFrame(int H, int W) {\n\t\tfor (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");\n\n\t\tSystem.out.println();\n\n\t\tfor (int i = 2; i < H; i++) {\n\t\t\tfor (int j = 1; j < W; j++) {\n\t\t\t\tif (j == 1)\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\telse if (j == (W - 1)){\n\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\n\t\t}\n\t\tfor (int i = 0; i < W; i++)\n\t\t\tSystem.out.print(\"#\");\n\t\t\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int H, W; while (true) { H = sc.nextInt(); W = sc.nextInt(); if (H == 0 && W == 0) break; printFrame(H,W); } } public static void printFrame(int H, int W) { for (int i = 0; i < W; i++) System.out.print("#"); System.out.println(); for (int i = 2; i < H; i++) { for (int j = 1; j < W; j++) { if (j == 1) System.out.print("#"); else if (j == (W - 1)){ System.out.println("#"); break; } System.out.print("."); } } for (int i = 0; i < W; i++) System.out.print("#"); System.out.println(); System.out.println(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 44, 46 ], [ 31, 47 ], [ 14, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 48, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 82, 84 ], [ 75, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 74, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 74, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 60, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 14, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 6, 118 ], [ 118, 119 ] ]
[ "import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int H = Integer.parseInt(sc.next());\n int W = Integer.parseInt(sc.next());\n if ((H > 300 || W > 300) || (H == 0 && W == 0)) break;\n for (int i = 0; i < H; i++) {\n for (int j = 0; j < W; j++) {\n if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int H = Integer.parseInt(sc.next());\n int W = Integer.parseInt(sc.next());\n if ((H > 300 || W > 300) || (H == 0 && W == 0)) break;\n for (int i = 0; i < H; i++) {\n for (int j = 0; j < W; j++) {\n if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int H = Integer.parseInt(sc.next());\n int W = Integer.parseInt(sc.next());\n if ((H > 300 || W > 300) || (H == 0 && W == 0)) break;\n for (int i = 0; i < H; i++) {\n for (int j = 0; j < W; j++) {\n if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while (true) {\n int H = Integer.parseInt(sc.next());\n int W = Integer.parseInt(sc.next());\n if ((H > 300 || W > 300) || (H == 0 && W == 0)) break;\n for (int i = 0; i < H; i++) {\n for (int j = 0; j < W; j++) {\n if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n int H = Integer.parseInt(sc.next());\n int W = Integer.parseInt(sc.next());\n if ((H > 300 || W > 300) || (H == 0 && W == 0)) break;\n for (int i = 0; i < H; i++) {\n for (int j = 0; j < W; j++) {\n if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "true", "{\n int H = Integer.parseInt(sc.next());\n int W = Integer.parseInt(sc.next());\n if ((H > 300 || W > 300) || (H == 0 && W == 0)) break;\n for (int i = 0; i < H; i++) {\n for (int j = 0; j < W; j++) {\n if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }\n System.out.println();\n }", "int H = Integer.parseInt(sc.next());", "H", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "int W = Integer.parseInt(sc.next());", "W", "Integer.parseInt(sc.next())", "Integer.parseInt", "Integer", "sc.next()", "sc.next", "sc", "if ((H > 300 || W > 300) || (H == 0 && W == 0)) break;", "(H > 300 || W > 300) || (H == 0 && W == 0)", "(H > 300 || W > 300)", "H > 300", "H", "300", "W > 300", "W", "300", "(H == 0 && W == 0)", "H == 0", "H", "0", "W == 0", "W", "0", "break;", "for (int i = 0; i < H; i++) {\n for (int j = 0; j < W; j++) {\n if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n for (int j = 0; j < W; j++) {\n if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "{\n for (int j = 0; j < W; j++) {\n if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "for (int j = 0; j < W; j++) {\n if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }", "{\n if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }", "if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }", "(i == 0 || i == H - 1) || (j == 0 || j == W - 1)", "(i == 0 || i == H - 1)", "i == 0", "i", "0", "i == H - 1", "i", "H - 1", "H", "1", "(j == 0 || j == W - 1)", "j == 0", "j", "0", "j == W - 1", "j", "W - 1", "W", "1", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n System.out.print(\".\");\n }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); while (true) { int H = Integer.parseInt(sc.next()); int W = Integer.parseInt(sc.next()); if ((H > 300 || W > 300) || (H == 0 && W == 0)) break; for (int i = 0; i < H; i++) { for (int j = 0; j < W; j++) { if ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) { System.out.print("#"); } else { System.out.print("."); } } System.out.println(); } System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 13, 41, 13, 13, 41, 13, 2, 13, 17, 42, 2, 2, 13, 17, 2, 13, 17, 30, 42, 2, 17, 13, 30, 14, 2, 2, 13, 17, 2, 13, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 30, 42, 2, 17, 13, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 40, 13, 40, 13, 4, 18, 18, 13, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 13, 0, 13, 13, 0, 13, 2, 13, 17, 12, 13, 30, 4, 18, 20, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 65, 66 ], [ 56, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 55, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 47, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 85, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 92, 102 ], [ 102, 103 ], [ 103, 104 ], [ 92, 105 ], [ 106, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 85, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 85, 119 ], [ 119, 120 ], [ 46, 121 ], [ 121, 122 ], [ 41, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 41, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 41, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 136, 137 ], [ 41, 138 ], [ 138, 139 ], [ 138, 140 ], [ 41, 141 ], [ 141, 142 ], [ 141, 143 ], [ 41, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 146, 148 ], [ 4, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 149, 155 ], [ 155, 156 ] ]
[ "import java.util.Scanner;\nclass Main {\n\tpublic void kami() {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\tint H2 = H;\n\t\tint W2 = W;\n\t\tint H3 = H - 2;\n\t\twhile(H != 0 || W != 0){\n\t\t\twhile(0 < H){\n\t\t\t\tif(H == 1 || H == H2){\n\t\t\t\t\tfor(int i = 1; i <= W; i++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\twhile(0 < H3){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tfor(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\tH3--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tH--;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tH2 = H;\n\t\t\tW2 = W;\n\t\t\tH3 = H - 2;\n\t\t}\n\t\t\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tnew Main().kami();\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic void kami() {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\tint H2 = H;\n\t\tint W2 = W;\n\t\tint H3 = H - 2;\n\t\twhile(H != 0 || W != 0){\n\t\t\twhile(0 < H){\n\t\t\t\tif(H == 1 || H == H2){\n\t\t\t\t\tfor(int i = 1; i <= W; i++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\twhile(0 < H3){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tfor(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\tH3--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tH--;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tH2 = H;\n\t\t\tW2 = W;\n\t\t\tH3 = H - 2;\n\t\t}\n\t\t\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tnew Main().kami();\n\t}\n\n}", "Main", "public void kami() {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\tint H2 = H;\n\t\tint W2 = W;\n\t\tint H3 = H - 2;\n\t\twhile(H != 0 || W != 0){\n\t\t\twhile(0 < H){\n\t\t\t\tif(H == 1 || H == H2){\n\t\t\t\t\tfor(int i = 1; i <= W; i++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\twhile(0 < H3){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tfor(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\tH3--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tH--;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tH2 = H;\n\t\t\tW2 = W;\n\t\t\tH3 = H - 2;\n\t\t}\n\t\t\n\t}", "kami", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint H = sc.nextInt();\n\t\tint W = sc.nextInt();\n\t\tint H2 = H;\n\t\tint W2 = W;\n\t\tint H3 = H - 2;\n\t\twhile(H != 0 || W != 0){\n\t\t\twhile(0 < H){\n\t\t\t\tif(H == 1 || H == H2){\n\t\t\t\t\tfor(int i = 1; i <= W; i++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\twhile(0 < H3){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tfor(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\tH3--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tH--;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tH2 = H;\n\t\t\tW2 = W;\n\t\t\tH3 = H - 2;\n\t\t}\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int H = sc.nextInt();", "H", "sc.nextInt()", "sc.nextInt", "sc", "int W = sc.nextInt();", "W", "sc.nextInt()", "sc.nextInt", "sc", "int H2 = H;", "H2", "H", "int W2 = W;", "W2", "W", "int H3 = H - 2;", "H3", "H - 2", "H", "2", "while(H != 0 || W != 0){\n\t\t\twhile(0 < H){\n\t\t\t\tif(H == 1 || H == H2){\n\t\t\t\t\tfor(int i = 1; i <= W; i++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\twhile(0 < H3){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tfor(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\tH3--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tH--;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tH2 = H;\n\t\t\tW2 = W;\n\t\t\tH3 = H - 2;\n\t\t}", "H != 0 || W != 0", "H != 0", "H", "0", "W != 0", "W", "0", "{\n\t\t\twhile(0 < H){\n\t\t\t\tif(H == 1 || H == H2){\n\t\t\t\t\tfor(int i = 1; i <= W; i++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\twhile(0 < H3){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tfor(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\tH3--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tH--;\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tH2 = H;\n\t\t\tW2 = W;\n\t\t\tH3 = H - 2;\n\t\t}", "while(0 < H){\n\t\t\t\tif(H == 1 || H == H2){\n\t\t\t\t\tfor(int i = 1; i <= W; i++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\twhile(0 < H3){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tfor(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\tH3--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tH--;\n\t\t\t\t\n\t\t\t}", "0 < H", "0", "H", "{\n\t\t\t\tif(H == 1 || H == H2){\n\t\t\t\t\tfor(int i = 1; i <= W; i++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\twhile(0 < H3){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tfor(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\tH3--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t\tH--;\n\t\t\t\t\n\t\t\t}", "if(H == 1 || H == H2){\n\t\t\t\t\tfor(int i = 1; i <= W; i++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}else{\n\t\t\t\t\t\n\t\t\t\t\twhile(0 < H3){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tfor(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\tH3--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "H == 1 || H == H2", "H == 1", "H", "1", "H == H2", "H", "H2", "{\n\t\t\t\t\tfor(int i = 1; i <= W; i++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "for(int i = 1; i <= W; i++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= W", "i", "W", "i++", "i++", "i", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "{\n\t\t\t\t\t\n\t\t\t\t\twhile(0 < H3){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tfor(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\tH3--;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}", "while(0 < H3){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tfor(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\tH3--;\n\t\t\t\t\t}", "0 < H3", "0", "H3", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tfor(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\tH3--;\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for(int i = 1; i <= W2 - 2; i++){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= W2 - 2", "i", "W2 - 2", "W2", "2", "i++", "i++", "i", "{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println(\"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\"", "H3--", "H3", "H--", "H", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "H = sc.nextInt()", "H", "sc.nextInt()", "sc.nextInt", "sc", "W = sc.nextInt()", "W", "sc.nextInt()", "sc.nextInt", "sc", "H2 = H", "H2", "H", "W2 = W", "W2", "W", "H3 = H - 2", "H3", "H - 2", "H", "2", "public static void main(String[] args) {\n\n\t\tnew Main().kami();\n\t}", "main", "{\n\n\t\tnew Main().kami();\n\t}", "new Main().kami()", "new Main().kami", "new Main()", "String[] args", "args" ]
import java.util.Scanner; class Main { public void kami() { Scanner sc = new Scanner(System.in); int H = sc.nextInt(); int W = sc.nextInt(); int H2 = H; int W2 = W; int H3 = H - 2; while(H != 0 || W != 0){ while(0 < H){ if(H == 1 || H == H2){ for(int i = 1; i <= W; i++){ System.out.print("#"); } System.out.println(); }else{ while(0 < H3){ System.out.print("#"); for(int i = 1; i <= W2 - 2; i++){ System.out.print("."); } System.out.println("#"); H3--; } } H--; } System.out.println(); H = sc.nextInt(); W = sc.nextInt(); H2 = H; W2 = W; H3 = H - 2; } } public static void main(String[] args) { new Main().kami(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 40, 13, 11, 1, 0, 13, 2, 13, 17, 2, 2, 13, 2, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 12, 13, 30, 4, 18, 20, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 4, 12 ], [ 12, 13 ], [ 12, 14 ], [ 4, 15 ], [ 15, 16 ], [ 15, 17 ], [ 4, 18 ], [ 18, 19 ], [ 18, 20 ], [ 4, 21 ], [ 21, 22 ], [ 21, 23 ], [ 4, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 26, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 26, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 62, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 77, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 75, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 75, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 98, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 111, 118 ], [ 118, 119 ], [ 98, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 120, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 130, 132 ], [ 127, 133 ], [ 133, 134 ], [ 133, 135 ], [ 120, 136 ], [ 136, 137 ], [ 137, 138 ], [ 120, 139 ], [ 140, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 74, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 150, 152 ], [ 147, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 48, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 48, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 48, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 172, 173 ], [ 4, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 174, 180 ], [ 180, 181 ] ]
[ "import java.util.Scanner;\nclass Main {\n\tint W = 0,H = 0,I = 0,F = 0,A = 0,Z = 0;\n\tpublic void pr() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tH = sc.nextInt();\n\t\tW = sc.nextInt();\n\t\twhile(H != 0 || W != 0) {\n\t\t\tfor(I = 0;I < H; I++) {\n\t\t\t\tfor(F = 0;F < W; F++) {\n\t\t\t\t\tif(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().pr();\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tint W = 0,H = 0,I = 0,F = 0,A = 0,Z = 0;\n\tpublic void pr() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tH = sc.nextInt();\n\t\tW = sc.nextInt();\n\t\twhile(H != 0 || W != 0) {\n\t\t\tfor(I = 0;I < H; I++) {\n\t\t\t\tfor(F = 0;F < W; F++) {\n\t\t\t\t\tif(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().pr();\n\t}\n}", "Main", "int W = 0", "W", "0", "H = 0", "H", "0", "I = 0", "I", "0", "F = 0", "F", "0", "A = 0", "A", "0", "Z = 0;", "Z", "0", "public void pr() {\n\t\tScanner sc = new Scanner(System.in);\n\t\tH = sc.nextInt();\n\t\tW = sc.nextInt();\n\t\twhile(H != 0 || W != 0) {\n\t\t\tfor(I = 0;I < H; I++) {\n\t\t\t\tfor(F = 0;F < W; F++) {\n\t\t\t\t\tif(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}", "pr", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tH = sc.nextInt();\n\t\tW = sc.nextInt();\n\t\twhile(H != 0 || W != 0) {\n\t\t\tfor(I = 0;I < H; I++) {\n\t\t\t\tfor(F = 0;F < W; F++) {\n\t\t\t\t\tif(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "H = sc.nextInt()", "H", "sc.nextInt()", "sc.nextInt", "sc", "W = sc.nextInt()", "W", "sc.nextInt()", "sc.nextInt", "sc", "while(H != 0 || W != 0) {\n\t\t\tfor(I = 0;I < H; I++) {\n\t\t\t\tfor(F = 0;F < W; F++) {\n\t\t\t\t\tif(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}", "H != 0 || W != 0", "H != 0", "H", "0", "W != 0", "W", "0", "{\n\t\t\tfor(I = 0;I < H; I++) {\n\t\t\t\tfor(F = 0;F < W; F++) {\n\t\t\t\t\tif(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t}", "for(I = 0;I < H; I++) {\n\t\t\t\tfor(F = 0;F < W; F++) {\n\t\t\t\t\tif(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "I = 0;", "I = 0", "I", "0", "I < H", "I", "H", "I++", "I++", "I", "{\n\t\t\t\tfor(F = 0;F < W; F++) {\n\t\t\t\t\tif(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfor(F = 0;F < W; F++) {\n\t\t\t\t\tif(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "for(F = 0;F < W; F++) {\n\t\t\t\t\tif(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}", "F = 0;", "F = 0", "F", "0", "F < W", "F", "W", "F++", "F++", "F", "{\n\t\t\t\t\tif(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t\tif(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}\n\t\t\t\t}", "if(I == 0||I == H - 1||F == W - 1) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "I == 0||I == H - 1||F == W - 1", "I == 0||I == H - 1||F == W - 1", "I == 0", "I", "0", "I == H - 1", "I", "H - 1", "H", "1", "F == W - 1", "F", "W - 1", "W", "1", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\t\tif(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tif(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tfor(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if(F == 0) {\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}", "F == 0", "F", "0", "{\n\t\t\t\t\t\t\tZ = 0;\n\t\t\t\t\t\t}", "Z = 0", "Z", "0", "if(Z == 0) {\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}", "Z == 0", "Z", "0", "{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t\tZ++;\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "Z++", "Z", "for(A = W - 3;A < W-2&&F != 0;A++) {\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "A = W - 3;", "A = W - 3", "A", "W - 3", "W", "3", "A < W-2&&F != 0", "A < W-2", "A", "W-2", "W", "2", "F != 0", "F", "0", "A++", "A++", "A", "{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "if(F == W - 1) {\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}", "F == W - 1", "F", "W - 1", "W", "1", "{\n\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t}", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "H = sc.nextInt()", "H", "sc.nextInt()", "sc.nextInt", "sc", "W = sc.nextInt()", "W", "sc.nextInt()", "sc.nextInt", "sc", "public static void main(String[] args) {\n\t\tnew Main().pr();\n\t}", "main", "{\n\t\tnew Main().pr();\n\t}", "new Main().pr()", "new Main().pr", "new Main()", "String[] args", "args" ]
import java.util.Scanner; class Main { int W = 0,H = 0,I = 0,F = 0,A = 0,Z = 0; public void pr() { Scanner sc = new Scanner(System.in); H = sc.nextInt(); W = sc.nextInt(); while(H != 0 || W != 0) { for(I = 0;I < H; I++) { for(F = 0;F < W; F++) { if(I == 0||I == H - 1||F == W - 1) { System.out.print("#"); } else { if(F == 0) { Z = 0; } if(Z == 0) { System.out.print("#"); Z++; } for(A = W - 3;A < W-2&&F != 0;A++) { System.out.print("."); } } if(F == W - 1) { System.out.println(); } } } System.out.println(); H = sc.nextInt(); W = sc.nextInt(); } } public static void main(String[] args) { new Main().pr(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 14, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 63, 62 ], [ 72, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 69, 70 ], [ 69, 71 ], [ 72, 72 ], [ 72, 73 ], [ 72, 74 ], [ 63, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 60, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 60, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 46, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 14, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 4, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 102, 108 ], [ 108, 109 ] ]
[ "import java.util.*;\nclass Main{\n\tScanner sc=new Scanner(System.in);\n\tvoid aa(){\n\t\twhile(true){\n\t\t\tint h=sc.nextInt();\n\t\t\tint w=sc.nextInt();\n\t\t\tif(h==0&&w==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tif(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\tpublic static void main(String[]arg){\n\t\tnew Main().aa();\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main{\n\tScanner sc=new Scanner(System.in);\n\tvoid aa(){\n\t\twhile(true){\n\t\t\tint h=sc.nextInt();\n\t\t\tint w=sc.nextInt();\n\t\t\tif(h==0&&w==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tif(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\tpublic static void main(String[]arg){\n\t\tnew Main().aa();\n\t}\n}", "Main", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "void aa(){\n\t\twhile(true){\n\t\t\tint h=sc.nextInt();\n\t\t\tint w=sc.nextInt();\n\t\t\tif(h==0&&w==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tif(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "aa", "{\n\t\twhile(true){\n\t\t\tint h=sc.nextInt();\n\t\t\tint w=sc.nextInt();\n\t\t\tif(h==0&&w==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tif(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "while(true){\n\t\t\tint h=sc.nextInt();\n\t\t\tint w=sc.nextInt();\n\t\t\tif(h==0&&w==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tif(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tint h=sc.nextInt();\n\t\t\tint w=sc.nextInt();\n\t\t\tif(h==0&&w==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tif(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int h=sc.nextInt();", "h", "sc.nextInt()", "sc.nextInt", "sc", "int w=sc.nextInt();", "w", "sc.nextInt()", "sc.nextInt", "sc", "if(h==0&&w==0)break;", "h==0&&w==0", "h==0", "h", "0", "w==0", "w", "0", "break;", "for(int i=0;i<h;i++){\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tif(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<h", "i", "h", "i++", "i++", "i", "{\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tif(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{\n\t\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\t\tif(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for(int j=0;j<w;j++){\n\t\t\t\t\tif(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\tif(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tif(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}", "if(i==0||i==h-1||j==0||j==w-1)System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");", "i==0||i==h-1||j==0||j==w-1", "j==0", "i==0||i==h-1||j==0||j==w-1", "i==0", "i", "0", "i==h-1", "i", "h-1", "h", "1", "j==0", "j", "0", "j==w-1", "j", "w-1", "w", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "public static void main(String[]arg){\n\t\tnew Main().aa();\n\t}", "main", "{\n\t\tnew Main().aa();\n\t}", "new Main().aa()", "new Main().aa", "new Main()", "String[]arg", "arg" ]
import java.util.*; class Main{ Scanner sc=new Scanner(System.in); void aa(){ while(true){ int h=sc.nextInt(); int w=sc.nextInt(); if(h==0&&w==0)break; for(int i=0;i<h;i++){ for(int j=0;j<w;j++){ if(i==0||i==h-1||j==0||j==w-1)System.out.print("#"); else System.out.print("."); } System.out.println(); } System.out.println(); } } public static void main(String[]arg){ new Main().aa(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 20, 17, 42, 17, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 4, 18, 13, 17, 14, 2, 4, 18, 18, 13, 17, 17, 4, 18, 18, 13, 17, 17, 3, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 183, 11 ], [ 183, 12 ], [ 12, 13 ], [ 12, 14 ], [ 183, 15 ], [ 15, 16 ], [ 15, 17 ], [ 183, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 20, 28 ], [ 28, 29 ], [ 28, 30 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 35, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 45, 50 ], [ 42, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 52, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 51, 65 ], [ 42, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 42, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 42, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 90, 91 ], [ 91, 92 ], [ 82, 93 ], [ 94, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 42, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 42, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 107, 117 ], [ 117, 118 ], [ 118, 119 ], [ 107, 120 ], [ 121, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 121, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 128, 138 ], [ 138, 139 ], [ 139, 140 ], [ 128, 141 ], [ 142, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 121, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 42, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 160, 161 ], [ 160, 162 ], [ 155, 163 ], [ 163, 164 ], [ 164, 165 ], [ 155, 166 ], [ 167, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 168, 173 ], [ 42, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 18, 180 ], [ 180, 181 ], [ 0, 182 ], [ 182, 183 ], [ 182, 184 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint H,W;\n\t\tString work[] = new String[2];\n\n\t\twhile(true){\n\n\t\t\ttry {\n\t\t\t\twork = br.readLine().split(\"[\\\\s]+\");\n\n\t\t\t\tif(work[0].equals(\"0\") && work[1].equals(\"0\"))break;\n\n\t\t\t\tH = Integer.parseInt(work[0]);\n\t\t\t\tW = Integer.parseInt(work[1]);\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t\t\tfor(int row = 1; row <= H-2; row++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}\n\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint H,W;\n\t\tString work[] = new String[2];\n\n\t\twhile(true){\n\n\t\t\ttry {\n\t\t\t\twork = br.readLine().split(\"[\\\\s]+\");\n\n\t\t\t\tif(work[0].equals(\"0\") && work[1].equals(\"0\"))break;\n\n\t\t\t\tH = Integer.parseInt(work[0]);\n\t\t\t\tW = Integer.parseInt(work[1]);\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t\t\tfor(int row = 1; row <= H-2; row++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static final int BIG_NUM = 2000000000;", "BIG_NUM", "2000000000", "public static final int MOD = 1000000007;", "MOD", "1000000007", "public static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint H,W;\n\t\tString work[] = new String[2];\n\n\t\twhile(true){\n\n\t\t\ttry {\n\t\t\t\twork = br.readLine().split(\"[\\\\s]+\");\n\n\t\t\t\tif(work[0].equals(\"0\") && work[1].equals(\"0\"))break;\n\n\t\t\t\tH = Integer.parseInt(work[0]);\n\t\t\t\tW = Integer.parseInt(work[1]);\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t\t\tfor(int row = 1; row <= H-2; row++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint H,W;\n\t\tString work[] = new String[2];\n\n\t\twhile(true){\n\n\t\t\ttry {\n\t\t\t\twork = br.readLine().split(\"[\\\\s]+\");\n\n\t\t\t\tif(work[0].equals(\"0\") && work[1].equals(\"0\"))break;\n\n\t\t\t\tH = Integer.parseInt(work[0]);\n\t\t\t\tW = Integer.parseInt(work[1]);\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t\t\tfor(int row = 1; row <= H-2; row++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int H", "H", "W;", "W", "String work[] = new String[2];", "work", "new String[2]", "2", "while(true){\n\n\t\t\ttry {\n\t\t\t\twork = br.readLine().split(\"[\\\\s]+\");\n\n\t\t\t\tif(work[0].equals(\"0\") && work[1].equals(\"0\"))break;\n\n\t\t\t\tH = Integer.parseInt(work[0]);\n\t\t\t\tW = Integer.parseInt(work[1]);\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t\t\tfor(int row = 1; row <= H-2; row++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "true", "{\n\n\t\t\ttry {\n\t\t\t\twork = br.readLine().split(\"[\\\\s]+\");\n\n\t\t\t\tif(work[0].equals(\"0\") && work[1].equals(\"0\"))break;\n\n\t\t\t\tH = Integer.parseInt(work[0]);\n\t\t\t\tW = Integer.parseInt(work[1]);\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t\t\tfor(int row = 1; row <= H-2; row++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}", "try {\n\t\t\t\twork = br.readLine().split(\"[\\\\s]+\");\n\n\t\t\t\tif(work[0].equals(\"0\") && work[1].equals(\"0\"))break;\n\n\t\t\t\tH = Integer.parseInt(work[0]);\n\t\t\t\tW = Integer.parseInt(work[1]);\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t\t\tfor(int row = 1; row <= H-2; row++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}", "catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}", "IOException e", "{\n\n\t\t\t\te.printStackTrace();\n\t\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\t\twork = br.readLine().split(\"[\\\\s]+\");\n\n\t\t\t\tif(work[0].equals(\"0\") && work[1].equals(\"0\"))break;\n\n\t\t\t\tH = Integer.parseInt(work[0]);\n\t\t\t\tW = Integer.parseInt(work[1]);\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t\t\tfor(int row = 1; row <= H-2; row++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\n\t\t\t}", "work = br.readLine().split(\"[\\\\s]+\")", "work", "br.readLine().split(\"[\\\\s]+\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"[\\\\s]+\"", "if(work[0].equals(\"0\") && work[1].equals(\"0\"))break;", "work[0].equals(\"0\") && work[1].equals(\"0\")", "work[0].equals(\"0\")", "work[0].equals", "work[0]", "work", "0", "\"0\"", "work[1].equals(\"0\")", "work[1].equals", "work[1]", "work", "1", "\"0\"", "break;", "H = Integer.parseInt(work[0])", "H", "Integer.parseInt(work[0])", "Integer.parseInt", "Integer", "work[0]", "work", "0", "W = Integer.parseInt(work[1])", "W", "Integer.parseInt(work[1])", "Integer.parseInt", "Integer", "work[1]", "work", "1", "for(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}", "int col = 0;", "int col = 0;", "col", "0", "col < W", "col", "W", "col++", "col++", "col", "{\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "for(int row = 1; row <= H-2; row++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}", "int row = 1;", "int row = 1;", "row", "1", "row <= H-2", "row", "H-2", "H", "2", "row++", "row++", "row", "{\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "for(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}", "int col = 1;", "int col = 1;", "col", "1", "col <= W-2", "col", "W-2", "W", "2", "col++", "col++", "col", "{\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}", "System.out.printf(\".\")", "System.out.printf", "System.out", "System", "System.out", "\".\"", "System.out.printf(\"#\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"#\\n\"", "for(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}", "int col = 0;", "int col = 0;", "col", "0", "col < W", "col", "W", "col++", "col++", "col", "{\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "System.out.printf(\"\\n\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\\n\"", "String[] args", "args", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint H,W;\n\t\tString work[] = new String[2];\n\n\t\twhile(true){\n\n\t\t\ttry {\n\t\t\t\twork = br.readLine().split(\"[\\\\s]+\");\n\n\t\t\t\tif(work[0].equals(\"0\") && work[1].equals(\"0\"))break;\n\n\t\t\t\tH = Integer.parseInt(work[0]);\n\t\t\t\tW = Integer.parseInt(work[1]);\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t\t\tfor(int row = 1; row <= H-2; row++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static final int BIG_NUM = 2000000000;\n\tpublic static final int MOD = 1000000007;\n\n\tpublic static void main(String[] args) {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint H,W;\n\t\tString work[] = new String[2];\n\n\t\twhile(true){\n\n\t\t\ttry {\n\t\t\t\twork = br.readLine().split(\"[\\\\s]+\");\n\n\t\t\t\tif(work[0].equals(\"0\") && work[1].equals(\"0\"))break;\n\n\t\t\t\tH = Integer.parseInt(work[0]);\n\t\t\t\tW = Integer.parseInt(work[1]);\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\n\t\t\t\tfor(int row = 1; row <= H-2; row++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\tfor(int col = 1; col <= W-2; col++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t}\n\n\t\t\t\tfor(int col = 0; col < W; col++){\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\\n\");\n\n\n\t\t\t} catch (IOException e) {\n\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static final int BIG_NUM = 2000000000; public static final int MOD = 1000000007; public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int H,W; String work[] = new String[2]; while(true){ try { work = br.readLine().split("[\\s]+"); if(work[0].equals("0") && work[1].equals("0"))break; H = Integer.parseInt(work[0]); W = Integer.parseInt(work[1]); for(int col = 0; col < W; col++){ System.out.printf("#"); } System.out.printf("\n"); for(int row = 1; row <= H-2; row++){ System.out.printf("#"); for(int col = 1; col <= W-2; col++){ System.out.printf("."); } System.out.printf("#\n"); } for(int col = 0; col < W; col++){ System.out.printf("#"); } System.out.printf("\n\n"); } catch (IOException e) { e.printStackTrace(); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 41, 13, 20, 41, 13, 20, 42, 2, 13, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 4, 18, 13, 20, 4, 18, 13, 20, 40, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 17, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 20, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 20, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 4, 18, 13, 20, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 2, 4, 18, 13, 20, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 179, 8 ], [ 179, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 16, 18 ], [ 11, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 51, 53 ], [ 46, 54 ], [ 35, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 35, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 35, 63 ], [ 63, 64 ], [ 11, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 65, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 77, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 88, 99 ], [ 99, 100 ], [ 100, 101 ], [ 88, 102 ], [ 103, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 104, 115 ], [ 115, 116 ], [ 116, 117 ], [ 104, 118 ], [ 119, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 127, 132 ], [ 120, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 120, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 146, 151 ], [ 139, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 139, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 158, 163 ], [ 103, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 11, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 9, 176 ], [ 176, 177 ], [ 0, 178 ], [ 178, 179 ], [ 178, 180 ] ]
[ "\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint H, W, a = 0, cnt = 0;\n\t\tArrayList<Integer> h = new ArrayList<Integer>();\n\t\tArrayList<Integer> w = new ArrayList<Integer>();\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(a < 300){\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\th.add(new Integer(H));\n\t\t\tw.add(new Integer(W));\n\t\t\ta++;\n\t\t}\n\t\tfor(cnt = 0; a > cnt; cnt++){\n\t\t\tif(cnt != 0)\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\tfor(int i = 0; i != h.get(new Integer(cnt)); i++){\n\t\t\t\tfor(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tint H, W, a = 0, cnt = 0;\n\t\tArrayList<Integer> h = new ArrayList<Integer>();\n\t\tArrayList<Integer> w = new ArrayList<Integer>();\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(a < 300){\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\th.add(new Integer(H));\n\t\t\tw.add(new Integer(W));\n\t\t\ta++;\n\t\t}\n\t\tfor(cnt = 0; a > cnt; cnt++){\n\t\t\tif(cnt != 0)\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\tfor(int i = 0; i != h.get(new Integer(cnt)); i++){\n\t\t\t\tfor(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tint H, W, a = 0, cnt = 0;\n\t\tArrayList<Integer> h = new ArrayList<Integer>();\n\t\tArrayList<Integer> w = new ArrayList<Integer>();\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(a < 300){\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\th.add(new Integer(H));\n\t\t\tw.add(new Integer(W));\n\t\t\ta++;\n\t\t}\n\t\tfor(cnt = 0; a > cnt; cnt++){\n\t\t\tif(cnt != 0)\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\tfor(int i = 0; i != h.get(new Integer(cnt)); i++){\n\t\t\t\tfor(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}", "main", "{\n\t\tint H, W, a = 0, cnt = 0;\n\t\tArrayList<Integer> h = new ArrayList<Integer>();\n\t\tArrayList<Integer> w = new ArrayList<Integer>();\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(a < 300){\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\th.add(new Integer(H));\n\t\t\tw.add(new Integer(W));\n\t\t\ta++;\n\t\t}\n\t\tfor(cnt = 0; a > cnt; cnt++){\n\t\t\tif(cnt != 0)\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\tfor(int i = 0; i != h.get(new Integer(cnt)); i++){\n\t\t\t\tfor(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}", "int H", "H", "W", "W", "a = 0", "a", "0", "cnt = 0;", "cnt", "0", "ArrayList<Integer> h = new ArrayList<Integer>();", "h", "new ArrayList<Integer>()", "ArrayList<Integer> w = new ArrayList<Integer>();", "w", "new ArrayList<Integer>()", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(a < 300){\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\th.add(new Integer(H));\n\t\t\tw.add(new Integer(W));\n\t\t\ta++;\n\t\t}", "a < 300", "a", "300", "{\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\th.add(new Integer(H));\n\t\t\tw.add(new Integer(W));\n\t\t\ta++;\n\t\t}", "H = sc.nextInt()", "H", "sc.nextInt()", "sc.nextInt", "sc", "W = sc.nextInt()", "W", "sc.nextInt()", "sc.nextInt", "sc", "if(H == 0 && W == 0)\n\t\t\t\tbreak;", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "break;", "h.add(new Integer(H))", "h.add", "h", "new Integer(H)", "w.add(new Integer(W))", "w.add", "w", "new Integer(W)", "a++", "a", "for(cnt = 0; a > cnt; cnt++){\n\t\t\tif(cnt != 0)\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\tfor(int i = 0; i != h.get(new Integer(cnt)); i++){\n\t\t\t\tfor(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}", "cnt = 0;", "cnt = 0", "cnt", "0", "a > cnt", "a", "cnt", "cnt++", "cnt++", "cnt", "{\n\t\t\tif(cnt != 0)\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\tfor(int i = 0; i != h.get(new Integer(cnt)); i++){\n\t\t\t\tfor(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}", "{\n\t\t\tif(cnt != 0)\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\tfor(int i = 0; i != h.get(new Integer(cnt)); i++){\n\t\t\t\tfor(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}", "if(cnt != 0)\n\t\t\t\tSystem.out.print(\"\\n\");", "cnt != 0", "cnt", "0", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "for(int i = 0; i != h.get(new Integer(cnt)); i++){\n\t\t\t\tfor(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i != h.get(new Integer(cnt))", "i", "h.get(new Integer(cnt))", "h.get", "h", "new Integer(cnt)", "i++", "i++", "i", "{\n\t\t\t\tfor(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "{\n\t\t\t\tfor(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "for(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j != w.get(new Integer(cnt))", "j", "w.get(new Integer(cnt))", "w.get", "w", "new Integer(cnt)", "j++", "j++", "j", "{\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "if(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");", "i == 0 || i == h.get(new Integer(cnt)) - 1", "i == 0", "i", "0", "i == h.get(new Integer(cnt)) - 1", "i", "h.get(new Integer(cnt)) - 1", "h.get(new Integer(cnt))", "h.get", "h", "new Integer(cnt)", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");", "j == 0 || j == w.get(new Integer(cnt)) - 1", "j == 0", "j", "0", "j == w.get(new Integer(cnt)) - 1", "j", "w.get(new Integer(cnt)) - 1", "w.get(new Integer(cnt))", "w.get", "w", "new Integer(cnt)", "1", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tint H, W, a = 0, cnt = 0;\n\t\tArrayList<Integer> h = new ArrayList<Integer>();\n\t\tArrayList<Integer> w = new ArrayList<Integer>();\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(a < 300){\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\th.add(new Integer(H));\n\t\t\tw.add(new Integer(W));\n\t\t\ta++;\n\t\t}\n\t\tfor(cnt = 0; a > cnt; cnt++){\n\t\t\tif(cnt != 0)\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\tfor(int i = 0; i != h.get(new Integer(cnt)); i++){\n\t\t\t\tfor(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tint H, W, a = 0, cnt = 0;\n\t\tArrayList<Integer> h = new ArrayList<Integer>();\n\t\tArrayList<Integer> w = new ArrayList<Integer>();\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(a < 300){\n\t\t\tH = sc.nextInt();\n\t\t\tW = sc.nextInt();\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\t\t\th.add(new Integer(H));\n\t\t\tw.add(new Integer(W));\n\t\t\ta++;\n\t\t}\n\t\tfor(cnt = 0; a > cnt; cnt++){\n\t\t\tif(cnt != 0)\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\tfor(int i = 0; i != h.get(new Integer(cnt)); i++){\n\t\t\t\tfor(int j = 0; j != w.get(new Integer(cnt)); j++){\n\t\t\t\t\tif(i == 0 || i == h.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse if(j == 0 || j == w.get(new Integer(cnt)) - 1)\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { int H, W, a = 0, cnt = 0; ArrayList<Integer> h = new ArrayList<Integer>(); ArrayList<Integer> w = new ArrayList<Integer>(); Scanner sc = new Scanner(System.in); while(a < 300){ H = sc.nextInt(); W = sc.nextInt(); if(H == 0 && W == 0) break; h.add(new Integer(H)); w.add(new Integer(W)); a++; } for(cnt = 0; a > cnt; cnt++){ if(cnt != 0) System.out.print("\n"); for(int i = 0; i != h.get(new Integer(cnt)); i++){ for(int j = 0; j != w.get(new Integer(cnt)); j++){ if(i == 0 || i == h.get(new Integer(cnt)) - 1) System.out.print("#"); else if(j == 0 || j == w.get(new Integer(cnt)) - 1) System.out.print("#"); else System.out.print("."); } System.out.print("\n"); } } System.out.print("\n"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 152, 11 ], [ 152, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 23, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 40, 42 ], [ 23, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 48, 49 ], [ 48, 50 ], [ 23, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 51, 59 ], [ 23, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 89, 90 ], [ 89, 91 ], [ 84, 92 ], [ 92, 93 ], [ 93, 94 ], [ 84, 95 ], [ 96, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 73, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 107, 109 ], [ 102, 110 ], [ 110, 111 ], [ 111, 112 ], [ 102, 113 ], [ 114, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 122, 124 ], [ 115, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 115, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 72, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 23, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 14, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 12, 149 ], [ 149, 150 ], [ 0, 151 ], [ 151, 152 ], [ 151, 153 ] ]
[ "import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while (true){\n String line = br.readLine();\n String[] ln = line.split(\" \");\n int H = Integer.parseInt(ln[0]);\n int W = Integer.parseInt(ln[1]);\n if (H==0 && W==0) break;\n for (int j=0; j<H; j++){\n if (j==0|j==H-1){\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }else{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while (true){\n String line = br.readLine();\n String[] ln = line.split(\" \");\n int H = Integer.parseInt(ln[0]);\n int W = Integer.parseInt(ln[1]);\n if (H==0 && W==0) break;\n for (int j=0; j<H; j++){\n if (j==0|j==H-1){\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }else{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while (true){\n String line = br.readLine();\n String[] ln = line.split(\" \");\n int H = Integer.parseInt(ln[0]);\n int W = Integer.parseInt(ln[1]);\n if (H==0 && W==0) break;\n for (int j=0; j<H; j++){\n if (j==0|j==H-1){\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }else{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while (true){\n String line = br.readLine();\n String[] ln = line.split(\" \");\n int H = Integer.parseInt(ln[0]);\n int W = Integer.parseInt(ln[1]);\n if (H==0 && W==0) break;\n for (int j=0; j<H; j++){\n if (j==0|j==H-1){\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }else{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while (true){\n String line = br.readLine();\n String[] ln = line.split(\" \");\n int H = Integer.parseInt(ln[0]);\n int W = Integer.parseInt(ln[1]);\n if (H==0 && W==0) break;\n for (int j=0; j<H; j++){\n if (j==0|j==H-1){\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }else{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }", "true", "{\n String line = br.readLine();\n String[] ln = line.split(\" \");\n int H = Integer.parseInt(ln[0]);\n int W = Integer.parseInt(ln[1]);\n if (H==0 && W==0) break;\n for (int j=0; j<H; j++){\n if (j==0|j==H-1){\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }else{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "String[] ln = line.split(\" \");", "ln", "line.split(\" \")", "line.split", "line", "\" \"", "int H = Integer.parseInt(ln[0]);", "H", "Integer.parseInt(ln[0])", "Integer.parseInt", "Integer", "ln[0]", "ln", "0", "int W = Integer.parseInt(ln[1]);", "W", "Integer.parseInt(ln[1])", "Integer.parseInt", "Integer", "ln[1]", "ln", "1", "if (H==0 && W==0) break;", "H==0 && W==0", "H==0", "H", "0", "W==0", "W", "0", "break;", "for (int j=0; j<H; j++){\n if (j==0|j==H-1){\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }else{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }", "int j=0;", "int j=0;", "j", "0", "j<H", "j", "H", "j++", "j++", "j", "{\n if (j==0|j==H-1){\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }else{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }", "{\n if (j==0|j==H-1){\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }else{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }", "if (j==0|j==H-1){\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }else{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }", "j==0|j==H-1", "j==0", "j", "0", "j==H-1", "j", "H-1", "H", "1", "{\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }", "for (int i=0; i<W; i++){\n sb.append(\"#\");\n }", "int i=0;", "int i=0;", "i", "0", "i<W", "i", "W", "i++", "i++", "i", "{\n sb.append(\"#\");\n }", "{\n sb.append(\"#\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }", "for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<W", "i", "W", "i++", "i++", "i", "{\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }", "{\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }", "if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }", "i==0|i==W-1", "i==0", "i", "0", "i==W-1", "i", "W-1", "W", "1", "{\n sb.append(\"#\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "{\n sb.append(\".\");\n }", "sb.append(\".\")", "sb.append", "sb", "\".\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while (true){\n String line = br.readLine();\n String[] ln = line.split(\" \");\n int H = Integer.parseInt(ln[0]);\n int W = Integer.parseInt(ln[1]);\n if (H==0 && W==0) break;\n for (int j=0; j<H; j++){\n if (j==0|j==H-1){\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }else{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n while (true){\n String line = br.readLine();\n String[] ln = line.split(\" \");\n int H = Integer.parseInt(ln[0]);\n int W = Integer.parseInt(ln[1]);\n if (H==0 && W==0) break;\n for (int j=0; j<H; j++){\n if (j==0|j==H-1){\n for (int i=0; i<W; i++){\n sb.append(\"#\");\n }\n }else{\n for (int i=0; i<W; i++){\n if (i==0|i==W-1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n System.out.print(sb);\n }\n}", "Main" ]
import java.io.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while (true){ String line = br.readLine(); String[] ln = line.split(" "); int H = Integer.parseInt(ln[0]); int W = Integer.parseInt(ln[1]); if (H==0 && W==0) break; for (int j=0; j<H; j++){ if (j==0|j==H-1){ for (int i=0; i<W; i++){ sb.append("#"); } }else{ for (int i=0; i<W; i++){ if (i==0|i==W-1){ sb.append("#"); }else{ sb.append("."); } } } sb.append("\n"); } sb.append("\n"); } System.out.print(sb); } }