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, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 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, 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, 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, 4, 18, 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 ], [ 158, 11 ], [ 158, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 18, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 15, 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 ], [ 44, 48 ], [ 41, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 41, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 41, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 41, 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 ], [ 93, 94 ], [ 93, 95 ], [ 88, 96 ], [ 96, 97 ], [ 97, 98 ], [ 88, 99 ], [ 100, 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 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 101, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 125, 127 ], [ 118, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 118, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 87, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 41, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 27, 152 ], [ 152, 153 ], [ 153, 154 ], [ 12, 155 ], [ 155, 156 ], [ 0, 157 ], [ 157, 158 ], [ 157, 159 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.Math;\n\npublic class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int h = Integer.parseInt(input[0]);\n int w = Integer.parseInt(input[1]);\n \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 // ??????????????¨????????????????????????#\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.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.lang.Math;", "Math", "java.lang", "public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int h = Integer.parseInt(input[0]);\n int w = Integer.parseInt(input[1]);\n \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 // ??????????????¨????????????????????????#\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.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }\n }\n}", "Main", "public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int h = Integer.parseInt(input[0]);\n int w = Integer.parseInt(input[1]);\n \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 // ??????????????¨????????????????????????#\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.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }\n }", "main", "{\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int h = Integer.parseInt(input[0]);\n int w = Integer.parseInt(input[1]);\n \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 // ??????????????¨????????????????????????#\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.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }\n }", "try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int h = Integer.parseInt(input[0]);\n int w = Integer.parseInt(input[1]);\n \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 // ??????????????¨????????????????????????#\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.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }", "catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }", "Exception e", "{\n e.getStackTrace();\n System.exit(-1);\n }", "e.getStackTrace()", "e.getStackTrace", "e", "System.exit(-1)", "System.exit", "System", "-1", "1", "{\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int h = Integer.parseInt(input[0]);\n int w = Integer.parseInt(input[1]);\n \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 // ??????????????¨????????????????????????#\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.println();\n }\n System.out.println();\n }\n stdReader.close();\n }", "BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));", "stdReader", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int h = Integer.parseInt(input[0]);\n int w = Integer.parseInt(input[1]);\n \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 // ??????????????¨????????????????????????#\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.println();\n }\n System.out.println();\n }", "(line = stdReader.readLine()) != null", "(line = stdReader.readLine())", "line", "stdReader.readLine()", "stdReader.readLine", "stdReader", "null", "{\n String[] input = line.split(\" \", 0);\n int h = Integer.parseInt(input[0]);\n int w = Integer.parseInt(input[1]);\n \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 // ??????????????¨????????????????????????#\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.println();\n }\n System.out.println();\n }", "String[] input = line.split(\" \", 0);", "input", "line.split(\" \", 0)", "line.split", "line", "\" \"", "0", "int h = Integer.parseInt(input[0]);", "h", "Integer.parseInt(input[0])", "Integer.parseInt", "Integer", "input[0]", "input", "0", "int w = Integer.parseInt(input[1]);", "w", "Integer.parseInt(input[1])", "Integer.parseInt", "Integer", "input[1]", "input", "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 // ??????????????¨????????????????????????#\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.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 // ??????????????¨????????????????????????#\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.println();\n }", "{\n for(int j = 0; j < w; j++) {\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 }\n System.out.println();\n }", "for(int j = 0; j < w; j++) {\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 }", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\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 }", "{\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.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 public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int h = Integer.parseInt(input[0]);\n int w = Integer.parseInt(input[1]);\n \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 // ??????????????¨????????????????????????#\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.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n String[] input = line.split(\" \", 0);\n int h = Integer.parseInt(input[0]);\n int w = Integer.parseInt(input[1]);\n \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 // ??????????????¨????????????????????????#\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.println();\n }\n System.out.println();\n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.lang.Math; public class Main { public static void main(String[] args) { try { BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in)); String line; while((line = stdReader.readLine()) != null) { String[] input = line.split(" ", 0); int h = Integer.parseInt(input[0]); int w = Integer.parseInt(input[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)) { System.out.print("#"); } else if(j == 0 || j == (w - 1)) { System.out.print("#"); } else { System.out.print("."); } } System.out.println(); } System.out.println(); } stdReader.close(); } catch(Exception e) { e.getStackTrace(); System.exit(-1); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 41, 13, 20, 42, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 17, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 42, 2, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 13, 30, 42, 2, 13, 13, 30, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 0, 13, 2, 13, 17, 30, 42, 2, 13, 13, 30, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 0, 13, 2, 13, 17, 0, 13, 2, 13, 17, 0, 13, 17, 0, 13, 2, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 167, 8 ], [ 167, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 31, 33 ], [ 11, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 42, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 53, 54 ], [ 53, 55 ], [ 42, 56 ], [ 56, 57 ], [ 56, 58 ], [ 42, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 42, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 88, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 87, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 74, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 117, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 128, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 116, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 73, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 153, 155 ], [ 73, 156 ], [ 156, 157 ], [ 156, 158 ], [ 42, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 161, 163 ], [ 9, 164 ], [ 164, 165 ], [ 0, 166 ], [ 166, 167 ], [ 166, 168 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tint a,b,c,d,e;\n\t\t a=1;b=1;e=1;\n\t Scanner sc = new Scanner(System.in);\n\t while (a!=0 || b!=0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = 1;\n\t d = 1;\n\t if (e != 1){\n\t \t System.out.println();\n\t }\n\t \n\t while(c<=a){\n\t \t \n\t \t if(c==1||c==a){\n\t \t\t \n\t \t\t while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }\n\t \t\t \n\t \t }\n\t \t \n\t \t else{\n\t \t\t \n\t \t while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }\n\t \t \n\t \t }\n\t \t \n\t \t c = c+1;\n\t \t d = 1;\n\t }\n\t e=e+1;\n\t }\n\t\t}\n\n }", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tint a,b,c,d,e;\n\t\t a=1;b=1;e=1;\n\t Scanner sc = new Scanner(System.in);\n\t while (a!=0 || b!=0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = 1;\n\t d = 1;\n\t if (e != 1){\n\t \t System.out.println();\n\t }\n\t \n\t while(c<=a){\n\t \t \n\t \t if(c==1||c==a){\n\t \t\t \n\t \t\t while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }\n\t \t\t \n\t \t }\n\t \t \n\t \t else{\n\t \t\t \n\t \t while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }\n\t \t \n\t \t }\n\t \t \n\t \t c = c+1;\n\t \t d = 1;\n\t }\n\t e=e+1;\n\t }\n\t\t}\n\n }", "Main", "public static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tint a,b,c,d,e;\n\t\t a=1;b=1;e=1;\n\t Scanner sc = new Scanner(System.in);\n\t while (a!=0 || b!=0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = 1;\n\t d = 1;\n\t if (e != 1){\n\t \t System.out.println();\n\t }\n\t \n\t while(c<=a){\n\t \t \n\t \t if(c==1||c==a){\n\t \t\t \n\t \t\t while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }\n\t \t\t \n\t \t }\n\t \t \n\t \t else{\n\t \t\t \n\t \t while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }\n\t \t \n\t \t }\n\t \t \n\t \t c = c+1;\n\t \t d = 1;\n\t }\n\t e=e+1;\n\t }\n\t\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tint a,b,c,d,e;\n\t\t a=1;b=1;e=1;\n\t Scanner sc = new Scanner(System.in);\n\t while (a!=0 || b!=0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = 1;\n\t d = 1;\n\t if (e != 1){\n\t \t System.out.println();\n\t }\n\t \n\t while(c<=a){\n\t \t \n\t \t if(c==1||c==a){\n\t \t\t \n\t \t\t while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }\n\t \t\t \n\t \t }\n\t \t \n\t \t else{\n\t \t\t \n\t \t while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }\n\t \t \n\t \t }\n\t \t \n\t \t c = c+1;\n\t \t d = 1;\n\t }\n\t e=e+1;\n\t }\n\t\t}", "int a", "a", "b", "b", "c", "c", "d", "d", "e;", "e", "a=1", "a", "1", "b=1", "b", "1", "e=1", "e", "1", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (a!=0 || b!=0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = 1;\n\t d = 1;\n\t if (e != 1){\n\t \t System.out.println();\n\t }\n\t \n\t while(c<=a){\n\t \t \n\t \t if(c==1||c==a){\n\t \t\t \n\t \t\t while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }\n\t \t\t \n\t \t }\n\t \t \n\t \t else{\n\t \t\t \n\t \t while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }\n\t \t \n\t \t }\n\t \t \n\t \t c = c+1;\n\t \t d = 1;\n\t }\n\t e=e+1;\n\t }", "a!=0 || b!=0", "a!=0", "a", "0", "b!=0", "b", "0", "{\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = 1;\n\t d = 1;\n\t if (e != 1){\n\t \t System.out.println();\n\t }\n\t \n\t while(c<=a){\n\t \t \n\t \t if(c==1||c==a){\n\t \t\t \n\t \t\t while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }\n\t \t\t \n\t \t }\n\t \t \n\t \t else{\n\t \t\t \n\t \t while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }\n\t \t \n\t \t }\n\t \t \n\t \t c = c+1;\n\t \t d = 1;\n\t }\n\t e=e+1;\n\t }", "a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b = sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "c = 1", "c", "1", "d = 1", "d", "1", "if (e != 1){\n\t \t System.out.println();\n\t }", "e != 1", "e", "1", "{\n\t \t System.out.println();\n\t }", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "while(c<=a){\n\t \t \n\t \t if(c==1||c==a){\n\t \t\t \n\t \t\t while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }\n\t \t\t \n\t \t }\n\t \t \n\t \t else{\n\t \t\t \n\t \t while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }\n\t \t \n\t \t }\n\t \t \n\t \t c = c+1;\n\t \t d = 1;\n\t }", "c<=a", "c", "a", "{\n\t \t \n\t \t if(c==1||c==a){\n\t \t\t \n\t \t\t while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }\n\t \t\t \n\t \t }\n\t \t \n\t \t else{\n\t \t\t \n\t \t while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }\n\t \t \n\t \t }\n\t \t \n\t \t c = c+1;\n\t \t d = 1;\n\t }", "if(c==1||c==a){\n\t \t\t \n\t \t\t while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }\n\t \t\t \n\t \t }\n\t \t \n\t \t else{\n\t \t\t \n\t \t while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }\n\t \t \n\t \t }", "c==1||c==a", "c==1", "c", "1", "c==a", "c", "a", "{\n\t \t\t \n\t \t\t while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }\n\t \t\t \n\t \t }", "while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }", "d<=b", "d", "b", "{\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }", "if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }", "d!=b", "d", "b", "{\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }", "System.out.println(\"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\"", "d=d+1", "d", "d+1", "d", "1", "{\n\t \t\t \n\t \t while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }\n\t \t \n\t \t }", "while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }", "d<=b", "d", "b", "{\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }", "if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }", "d==1", "d", "1", "{\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }", "d==b", "d", "b", "{\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }", "System.out.println(\"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\"", "{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }", "System.out.print(\".\")", "System.out.print", "System.out", "System", "System.out", "\".\"", "d = d+1", "d", "d+1", "d", "1", "c = c+1", "c", "c+1", "c", "1", "d = 1", "d", "1", "e=e+1", "e", "e+1", "e", "1", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tint a,b,c,d,e;\n\t\t a=1;b=1;e=1;\n\t Scanner sc = new Scanner(System.in);\n\t while (a!=0 || b!=0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = 1;\n\t d = 1;\n\t if (e != 1){\n\t \t System.out.println();\n\t }\n\t \n\t while(c<=a){\n\t \t \n\t \t if(c==1||c==a){\n\t \t\t \n\t \t\t while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }\n\t \t\t \n\t \t }\n\t \t \n\t \t else{\n\t \t\t \n\t \t while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }\n\t \t \n\t \t }\n\t \t \n\t \t c = c+1;\n\t \t d = 1;\n\t }\n\t e=e+1;\n\t }\n\t\t}\n\n }", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tint a,b,c,d,e;\n\t\t a=1;b=1;e=1;\n\t Scanner sc = new Scanner(System.in);\n\t while (a!=0 || b!=0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = 1;\n\t d = 1;\n\t if (e != 1){\n\t \t System.out.println();\n\t }\n\t \n\t while(c<=a){\n\t \t \n\t \t if(c==1||c==a){\n\t \t\t \n\t \t\t while(d<=b){\n\t \t\t\t if(d!=b){\n\t \t\t\t\t System.out.print(\"#\");\n\t \t\t\t }\n\t \t\t\t else{\n\t \t\t\t\t System.out.println(\"#\");\n\t \t\t\t }\n\t \t\t d=d+1;\n\t \t\t }\n\t \t\t \n\t \t }\n\t \t \n\t \t else{\n\t \t\t \n\t \t while(d<=b){\n\t \t\t \n\t \t\t if(d==1){\n\t \t\t\t System.out.print(\"#\");\n\t \t\t }else if(d==b){\n\t \t\t\t System.out.println(\"#\");\n\t \t\t }\n\t \t\t else{\n\t \t\t\t System.out.print(\".\");\n\t \t\t }\n\t \t\t \n\t \t\t d = d+1;\n\t \t }\n\t \t \n\t \t }\n\t \t \n\t \t c = c+1;\n\t \t d = 1;\n\t }\n\t e=e+1;\n\t }\n\t\t}\n\n }", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? int a,b,c,d,e; a=1;b=1;e=1; Scanner sc = new Scanner(System.in); while (a!=0 || b!=0){ a = sc.nextInt(); b = sc.nextInt(); c = 1; d = 1; if (e != 1){ System.out.println(); } while(c<=a){ if(c==1||c==a){ while(d<=b){ if(d!=b){ System.out.print("#"); } else{ System.out.println("#"); } d=d+1; } } else{ while(d<=b){ if(d==1){ System.out.print("#"); }else if(d==b){ System.out.println("#"); } else{ System.out.print("."); } d = d+1; } } c = c+1; d = 1; } e=e+1; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 11, 1, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 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, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 13, 30, 14, 2, 2, 13, 17, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 17, 2, 13, 13, 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 ], [ 134, 5 ], [ 134, 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 ], [ 19, 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 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 65, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 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 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 89, 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 ], [ 51, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 19, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 6, 131 ], [ 131, 132 ], [ 0, 133 ], [ 133, 134 ], [ 133, 135 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i,v;\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\tfor(i = 1; i <= h; ++i){\n\t\t\t\t\tfor(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t}\n}\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\tint i,v;\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\tfor(i = 1; i <= h; ++i){\n\t\t\t\t\tfor(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t}\n}\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i,v;\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\tfor(i = 1; i <= h; ++i){\n\t\t\t\t\tfor(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t}\n}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i,v;\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\tfor(i = 1; i <= h; ++i){\n\t\t\t\t\tfor(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t}\n}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int i", "i", "v;", "v", "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\tfor(i = 1; i <= h; ++i){\n\t\t\t\t\tfor(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\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\tfor(i = 1; i <= h; ++i){\n\t\t\t\t\tfor(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\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\tfor(i = 1; i <= h; ++i){\n\t\t\t\t\tfor(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\t\tSystem.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)\n\t\t\t\tbreak;", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "for(i = 1; i <= h; ++i){\n\t\t\t\t\tfor(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tSystem.out.println(\"\");\n\t\t}", "i = 1;", "i = 1", "i", "1", "i <= h", "i", "h", "++i", "++i", "i", "{\n\t\t\t\t\tfor(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tSystem.out.println(\"\");\n\t\t}", "{\n\t\t\t\t\tfor(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tSystem.out.println(\"\");\n\t\t}", "for(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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}", "v = 1;", "v = 1", "v", "1", "v <= w", "v", "w", "++v", "++v", "v", "{\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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}", "if(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "i == h || i == 1", "i == h", "i", "h", "i == 1", "i", "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(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "i != 1 || i != h", "i != 1", "i", "1", "i != h", "i", "h", "{\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "v == 1 || v == w", "v == 1", "v", "1", "v == w", "v", "w", "{\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(v != 1 || v != w){\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "v != 1 || v != w", "v != 1", "v", "1", "v != w", "v", "w", "{\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 scan = new Scanner(System.in);\n\t\tint i,v;\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\tfor(i = 1; i <= h; ++i){\n\t\t\t\t\tfor(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t}\n}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint i,v;\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\tfor(i = 1; i <= h; ++i){\n\t\t\t\t\tfor(v = 1; v <= w; ++v){\n\t\t\t\t\tif(i == h || i == 1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i != 1 || i != h){\n\t\t\t\t\t\tif(v == 1 || v == w){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\telse if(v != 1 || v != w){\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\t\tSystem.out.println(\"\");\n\t\t}\n\t\t\t\tSystem.out.println(\"\");\n\t}\n}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int i,v; for(;;){ int h = scan.nextInt(); int w = scan.nextInt(); if(h == 0 && w == 0) break; for(i = 1; i <= h; ++i){ for(v = 1; v <= w; ++v){ if(i == h || i == 1){ System.out.print("#"); } else if(i != 1 || i != h){ if(v == 1 || v == w){ System.out.print("#"); } else if(v != 1 || v != w){ 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, 0, 13, 4, 18, 13, 0, 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, 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, 17, 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 ], [ 118, 5 ], [ 118, 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 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 8, 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 ], [ 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 ], [ 83, 85 ], [ 81, 86 ], [ 61, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 47, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 34, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 34, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 34, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 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 scan = new Scanner(System.in);\n\t\tint H,W;\n\t\tH = scan.nextInt();\n\t\tW = scan.nextInt();\n\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 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\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\tint H,W;\n\t\tH = scan.nextInt();\n\t\tW = scan.nextInt();\n\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 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint H,W;\n\t\tH = scan.nextInt();\n\t\tW = scan.nextInt();\n\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 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint H,W;\n\t\tH = scan.nextInt();\n\t\tW = scan.nextInt();\n\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 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int H", "H", "W;", "W", "H = scan.nextInt()", "H", "scan.nextInt()", "scan.nextInt", "scan", "W = scan.nextInt()", "W", "scan.nextInt()", "scan.nextInt", "scan", "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 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.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 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.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 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\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 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\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 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}", "for(int j = 0; j < W; j++){\n\t\t\t\t\tif(i == 0 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\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 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tif(i == 0 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}", "if(i == 0 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");", "i == 0 || j == 0 || i == H-1 || j == W-1", "i == H-1", "i == 0 || j == 0 || i == H-1 || j == W-1", "i == 0", "i", "0", "j == 0", "j", "0", "i == H-1", "i", "H-1", "H", "1", "j == W-1", "j", "W-1", "W", "1", "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\"", "System.out.printf(\"\\n\")", "System.out.printf", "System.out", "System", "System.out", "\"\\n\"", "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\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint H,W;\n\t\tH = scan.nextInt();\n\t\tW = scan.nextInt();\n\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 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\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 H,W;\n\t\tH = scan.nextInt();\n\t\tW = scan.nextInt();\n\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 || j == 0 || i == H-1 || j == W-1)\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\telse\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\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 H,W; H = scan.nextInt(); W = scan.nextInt(); while(H != 0 && W != 0){ 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) System.out.printf("#"); else System.out.printf("."); } System.out.printf("\n"); } System.out.printf("\n"); H = scan.nextInt(); W = scan.nextInt(); } } }
[ 7, 15, 13, 17, 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, 41, 13, 41, 13, 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, 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, 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 ], [ 138, 8 ], [ 138, 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 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 38, 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 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 66, 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 ], [ 80, 85 ], [ 56, 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 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 100, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 100, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 55, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 17, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 9, 135 ], [ 135, 136 ], [ 0, 137 ], [ 137, 138 ], [ 137, 139 ] ]
[ "import java.io.*;\nimport java.util.*;\npublic class Main{\n\tpublic static void main(String args[]) throws Exception{\n\t\tScanner cin= new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint H= cin.nextInt();\n\t\t\tint W= cin.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\telse{\n\t\t\t\tint i,j;\n\t\t\t\tfor(i=0;i<H;i++){\n\t\t\t\t\tif( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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.print(\"\\n\");\n\t\t\t\t}\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\tScanner cin= new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint H= cin.nextInt();\n\t\t\tint W= cin.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\telse{\n\t\t\t\tint i,j;\n\t\t\t\tfor(i=0;i<H;i++){\n\t\t\t\t\tif( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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.print(\"\\n\");\n\t\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 Exception{\n\t\tScanner cin= new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint H= cin.nextInt();\n\t\t\tint W= cin.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\telse{\n\t\t\t\tint i,j;\n\t\t\t\tfor(i=0;i<H;i++){\n\t\t\t\t\tif( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner cin= new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint H= cin.nextInt();\n\t\t\tint W= cin.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\telse{\n\t\t\t\tint i,j;\n\t\t\t\tfor(i=0;i<H;i++){\n\t\t\t\t\tif( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner cin= new Scanner(System.in);", "cin", "new Scanner(System.in)", "while(true){\n\t\t\tint H= cin.nextInt();\n\t\t\tint W= cin.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\telse{\n\t\t\t\tint i,j;\n\t\t\t\tfor(i=0;i<H;i++){\n\t\t\t\t\tif( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tint H= cin.nextInt();\n\t\t\tint W= cin.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\telse{\n\t\t\t\tint i,j;\n\t\t\t\tfor(i=0;i<H;i++){\n\t\t\t\t\tif( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "int H= cin.nextInt();", "H", "cin.nextInt()", "cin.nextInt", "cin", "int W= cin.nextInt();", "W", "cin.nextInt()", "cin.nextInt", "cin", "if( H==0 && W==0 ){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint i,j;\n\t\t\t\tfor(i=0;i<H;i++){\n\t\t\t\t\tif( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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.print(\"\\n\");\n\t\t\t\t}\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\tint i,j;\n\t\t\t\tfor(i=0;i<H;i++){\n\t\t\t\t\tif( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}", "int i", "i", "j;", "j", "for(i=0;i<H;i++){\n\t\t\t\t\tif( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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.print(\"\\n\");\n\t\t\t\t}", "i=0;", "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(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(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.print(\"\\n\");\n\t\t\t\t}", "{\n\t\t\t\t\tif( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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.print(\"\\n\");\n\t\t\t\t}", "if( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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(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(j=0;j<W;j++){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "j=0;", "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(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(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}", "j=0;", "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.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "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\tScanner cin= new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint H= cin.nextInt();\n\t\t\tint W= cin.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\telse{\n\t\t\t\tint i,j;\n\t\t\t\tfor(i=0;i<H;i++){\n\t\t\t\t\tif( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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.print(\"\\n\");\n\t\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[]) throws Exception{\n\t\tScanner cin= new Scanner(System.in);\n\t\twhile(true){\n\t\t\tint H= cin.nextInt();\n\t\t\tint W= cin.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\telse{\n\t\t\t\tint i,j;\n\t\t\t\tfor(i=0;i<H;i++){\n\t\t\t\t\tif( i==0 || i==H-1 ){\n\t\t\t\t\t\tfor(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(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.print(\"\\n\");\n\t\t\t\t}\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{ Scanner cin= new Scanner(System.in); while(true){ int H= cin.nextInt(); int W= cin.nextInt(); if( H==0 && W==0 ){ break; } else{ int i,j; for(i=0;i<H;i++){ if( i==0 || i==H-1 ){ for(j=0;j<W;j++){ System.out.print("#"); } } else{ for(j=0;j<W;j++){ if( j==0 || j==W-1 ){ System.out.print("#"); } else{ System.out.print("."); } } } System.out.print("\n"); } } 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, 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, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 123, 5 ], [ 123, 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 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 57, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 74, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 74, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 43, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 30, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 30, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 30, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 6, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint height = scan.nextInt();\n\t\tint width = scan.nextInt();\n\t\t\n\t\twhile(height != 0 || height != 0)\n\t\t{\n\t\t\tfor(int i = 0;i < height;i++)\n\t\t\t{\n\t\t\t\tfor(int j = 0;j < width;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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\theight = scan.nextInt();\n\t\t\twidth = scan.nextInt();\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{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint height = scan.nextInt();\n\t\tint width = scan.nextInt();\n\t\t\n\t\twhile(height != 0 || height != 0)\n\t\t{\n\t\t\tfor(int i = 0;i < height;i++)\n\t\t\t{\n\t\t\t\tfor(int j = 0;j < width;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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\theight = scan.nextInt();\n\t\t\twidth = scan.nextInt();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint height = scan.nextInt();\n\t\tint width = scan.nextInt();\n\t\t\n\t\twhile(height != 0 || height != 0)\n\t\t{\n\t\t\tfor(int i = 0;i < height;i++)\n\t\t\t{\n\t\t\t\tfor(int j = 0;j < width;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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\theight = scan.nextInt();\n\t\t\twidth = scan.nextInt();\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint height = scan.nextInt();\n\t\tint width = scan.nextInt();\n\t\t\n\t\twhile(height != 0 || height != 0)\n\t\t{\n\t\t\tfor(int i = 0;i < height;i++)\n\t\t\t{\n\t\t\t\tfor(int j = 0;j < width;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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\theight = scan.nextInt();\n\t\t\twidth = scan.nextInt();\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int height = scan.nextInt();", "height", "scan.nextInt()", "scan.nextInt", "scan", "int width = scan.nextInt();", "width", "scan.nextInt()", "scan.nextInt", "scan", "while(height != 0 || height != 0)\n\t\t{\n\t\t\tfor(int i = 0;i < height;i++)\n\t\t\t{\n\t\t\t\tfor(int j = 0;j < width;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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\theight = scan.nextInt();\n\t\t\twidth = scan.nextInt();\n\t\t}", "height != 0 || height != 0", "height != 0", "height", "0", "height != 0", "height", "0", "{\n\t\t\tfor(int i = 0;i < height;i++)\n\t\t\t{\n\t\t\t\tfor(int j = 0;j < width;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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\theight = scan.nextInt();\n\t\t\twidth = scan.nextInt();\n\t\t}", "for(int i = 0;i < height;i++)\n\t\t\t{\n\t\t\t\tfor(int j = 0;j < width;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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}", "int i = 0;", "int i = 0;", "i", "0", "i < height", "i", "height", "i++", "i++", "i", "{\n\t\t\t\tfor(int j = 0;j < width;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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(int j = 0;j < width;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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(int j = 0;j < width;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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}", "int j = 0;", "int j = 0;", "j", "0", "j < width", "j", "width", "j++", "j++", "j", "{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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 == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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 == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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 == height - 1", "i == 0", "i", "0", "i == height - 1", "i", "height - 1", "height", "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 == width - 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 == width - 1", "j == 0", "j", "0", "j == width - 1", "j", "width - 1", "width", "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", "\"\"", "height = scan.nextInt()", "height", "scan.nextInt()", "scan.nextInt", "scan", "width = scan.nextInt()", "width", "scan.nextInt()", "scan.nextInt", "scan", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint height = scan.nextInt();\n\t\tint width = scan.nextInt();\n\t\t\n\t\twhile(height != 0 || height != 0)\n\t\t{\n\t\t\tfor(int i = 0;i < height;i++)\n\t\t\t{\n\t\t\t\tfor(int j = 0;j < width;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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\theight = scan.nextInt();\n\t\t\twidth = scan.nextInt();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint height = scan.nextInt();\n\t\tint width = scan.nextInt();\n\t\t\n\t\twhile(height != 0 || height != 0)\n\t\t{\n\t\t\tfor(int i = 0;i < height;i++)\n\t\t\t{\n\t\t\t\tfor(int j = 0;j < width;j++)\n\t\t\t\t{\n\t\t\t\t\tif(i == 0 || i == height - 1)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(j == 0 || j == width - 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\theight = scan.nextInt();\n\t\t\twidth = scan.nextInt();\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 height = scan.nextInt(); int width = scan.nextInt(); while(height != 0 || height != 0) { for(int i = 0;i < height;i++) { for(int j = 0;j < width;j++) { 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(""); height = scan.nextInt(); width = scan.nextInt(); } } }
[ 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, 17, 2, 13, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 13, 17, 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 ], [ 122, 5 ], [ 122, 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 ], [ 87, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 87, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 80, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 77, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 77, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 63, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 17, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 8, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 6, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "import java.io.*;\npublic class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sbu=new StringBuilder();\n \n while(true){\n String[] num=buf.readLine().split(\" \");\n int x=Integer.parseInt(num[0]);\n int y=Integer.parseInt(num[1]);\n \n if(x==0 && y==0)break;\n \n for(int i=0; i<x; i++){\n for(int j=0; j<y;j++){\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }\n sbu.append(\"\\n\");\n }\n sbu.append(\"\\n\");\n }\n System.out.print(sbu);\n }\n}", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sbu=new StringBuilder();\n \n while(true){\n String[] num=buf.readLine().split(\" \");\n int x=Integer.parseInt(num[0]);\n int y=Integer.parseInt(num[1]);\n \n if(x==0 && y==0)break;\n \n for(int i=0; i<x; i++){\n for(int j=0; j<y;j++){\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }\n sbu.append(\"\\n\");\n }\n sbu.append(\"\\n\");\n }\n System.out.print(sbu);\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sbu=new StringBuilder();\n \n while(true){\n String[] num=buf.readLine().split(\" \");\n int x=Integer.parseInt(num[0]);\n int y=Integer.parseInt(num[1]);\n \n if(x==0 && y==0)break;\n \n for(int i=0; i<x; i++){\n for(int j=0; j<y;j++){\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }\n sbu.append(\"\\n\");\n }\n sbu.append(\"\\n\");\n }\n System.out.print(sbu);\n }", "main", "{\n BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sbu=new StringBuilder();\n \n while(true){\n String[] num=buf.readLine().split(\" \");\n int x=Integer.parseInt(num[0]);\n int y=Integer.parseInt(num[1]);\n \n if(x==0 && y==0)break;\n \n for(int i=0; i<x; i++){\n for(int j=0; j<y;j++){\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }\n sbu.append(\"\\n\");\n }\n sbu.append(\"\\n\");\n }\n System.out.print(sbu);\n }", "BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));", "buf", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sbu=new StringBuilder();", "sbu", "new StringBuilder()", "while(true){\n String[] num=buf.readLine().split(\" \");\n int x=Integer.parseInt(num[0]);\n int y=Integer.parseInt(num[1]);\n \n if(x==0 && y==0)break;\n \n for(int i=0; i<x; i++){\n for(int j=0; j<y;j++){\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }\n sbu.append(\"\\n\");\n }\n sbu.append(\"\\n\");\n }", "true", "{\n String[] num=buf.readLine().split(\" \");\n int x=Integer.parseInt(num[0]);\n int y=Integer.parseInt(num[1]);\n \n if(x==0 && y==0)break;\n \n for(int i=0; i<x; i++){\n for(int j=0; j<y;j++){\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }\n sbu.append(\"\\n\");\n }\n sbu.append(\"\\n\");\n }", "String[] num=buf.readLine().split(\" \");", "num", "buf.readLine().split(\" \")", "buf.readLine().split", "buf.readLine()", "buf.readLine", "buf", "\" \"", "int x=Integer.parseInt(num[0]);", "x", "Integer.parseInt(num[0])", "Integer.parseInt", "Integer", "num[0]", "num", "0", "int y=Integer.parseInt(num[1]);", "y", "Integer.parseInt(num[1])", "Integer.parseInt", "Integer", "num[1]", "num", "1", "if(x==0 && y==0)break;", "x==0 && y==0", "x==0", "x", "0", "y==0", "y", "0", "break;", "for(int i=0; i<x; i++){\n for(int j=0; j<y;j++){\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }\n sbu.append(\"\\n\");\n }", "int i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n for(int j=0; j<y;j++){\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }\n sbu.append(\"\\n\");\n }", "{\n for(int j=0; j<y;j++){\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }\n sbu.append(\"\\n\");\n }", "for(int j=0; j<y;j++){\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }", "int j=0;", "int j=0;", "j", "0", "j<y", "j", "y", "j++", "j++", "j", "{\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }", "{\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }", "if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");", "j==0 || i==0 || j==y-1 || i==x-1", "j==y-1", "j==0 || i==0 || j==y-1 || i==x-1", "j==0", "j", "0", "i==0", "i", "0", "j==y-1", "j", "y-1", "y", "1", "i==x-1", "i", "x-1", "x", "1", "sbu.append(\"#\")", "sbu.append", "sbu", "\"#\"", "sbu.append(\".\")", "sbu.append", "sbu", "\".\"", "sbu.append(\"\\n\")", "sbu.append", "sbu", "\"\\n\"", "sbu.append(\"\\n\")", "sbu.append", "sbu", "\"\\n\"", "System.out.print(sbu)", "System.out.print", "System.out", "System", "System.out", "sbu", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sbu=new StringBuilder();\n \n while(true){\n String[] num=buf.readLine().split(\" \");\n int x=Integer.parseInt(num[0]);\n int y=Integer.parseInt(num[1]);\n \n if(x==0 && y==0)break;\n \n for(int i=0; i<x; i++){\n for(int j=0; j<y;j++){\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }\n sbu.append(\"\\n\");\n }\n sbu.append(\"\\n\");\n }\n System.out.print(sbu);\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException{\n BufferedReader buf=new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sbu=new StringBuilder();\n \n while(true){\n String[] num=buf.readLine().split(\" \");\n int x=Integer.parseInt(num[0]);\n int y=Integer.parseInt(num[1]);\n \n if(x==0 && y==0)break;\n \n for(int i=0; i<x; i++){\n for(int j=0; j<y;j++){\n if(j==0 || i==0 || j==y-1 || i==x-1)\n sbu.append(\"#\");\n else\n sbu.append(\".\");\n }\n sbu.append(\"\\n\");\n }\n sbu.append(\"\\n\");\n }\n System.out.print(sbu);\n }\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException{ BufferedReader buf=new BufferedReader(new InputStreamReader(System.in)); StringBuilder sbu=new StringBuilder(); while(true){ String[] num=buf.readLine().split(" "); int x=Integer.parseInt(num[0]); int y=Integer.parseInt(num[1]); if(x==0 && y==0)break; for(int i=0; i<x; i++){ for(int j=0; j<y;j++){ if(j==0 || i==0 || j==y-1 || i==x-1) sbu.append("#"); else sbu.append("."); } sbu.append("\n"); } sbu.append("\n"); } System.out.print(sbu); } }
[ 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, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 2, 2, 13, 2, 13, 17, 2, 2, 13, 17, 2, 2, 13, 17, 13, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 2, 2, 13, 2, 13, 17, 2, 13, 17, 2, 2, 13, 17, 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 ], [ 132, 5 ], [ 132, 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 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 56, 72 ], [ 72, 73 ], [ 72, 74 ], [ 51, 75 ], [ 75, 76 ], [ 76, 77 ], [ 51, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 50, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 98, 99 ], [ 98, 100 ], [ 92, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 86, 106 ], [ 106, 107 ], [ 107, 108 ], [ 86, 109 ], [ 110, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 50, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 18, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 6, 129 ], [ 129, 130 ], [ 0, 131 ], [ 131, 132 ], [ 131, 133 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tint H,W;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true)\n\t\t{\n\t\t\tH=scan.nextInt();\n\t\t\tW=scan.nextInt();\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\t\n\t\t\t\tfor(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) {\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tfor(int k=0;k<W-2&&i!=0&&i+1!=H;k++) {\n\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t\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\t// TODO ?????????????????????????????????????????????\n\t\tint H,W;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true)\n\t\t{\n\t\t\tH=scan.nextInt();\n\t\t\tW=scan.nextInt();\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\t\n\t\t\t\tfor(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) {\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tfor(int k=0;k<W-2&&i!=0&&i+1!=H;k++) {\n\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t\n\t\t}\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tint H,W;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true)\n\t\t{\n\t\t\tH=scan.nextInt();\n\t\t\tW=scan.nextInt();\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\t\n\t\t\t\tfor(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) {\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tfor(int k=0;k<W-2&&i!=0&&i+1!=H;k++) {\n\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t\n\t\t}\n\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tint H,W;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true)\n\t\t{\n\t\t\tH=scan.nextInt();\n\t\t\tW=scan.nextInt();\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\t\n\t\t\t\tfor(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) {\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tfor(int k=0;k<W-2&&i!=0&&i+1!=H;k++) {\n\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t\n\t\t}\n\n\t}", "int H", "H", "W;", "W", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true)\n\t\t{\n\t\t\tH=scan.nextInt();\n\t\t\tW=scan.nextInt();\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\t\n\t\t\t\tfor(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) {\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tfor(int k=0;k<W-2&&i!=0&&i+1!=H;k++) {\n\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t\n\t\t}", "true", "{\n\t\t\tH=scan.nextInt();\n\t\t\tW=scan.nextInt();\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\t\n\t\t\t\tfor(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) {\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tfor(int k=0;k<W-2&&i!=0&&i+1!=H;k++) {\n\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\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)\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\t\n\t\t\t\tfor(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) {\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tfor(int k=0;k<W-2&&i!=0&&i+1!=H;k++) {\n\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t\n\t\t\t}", "int i=0;", "int i=0;", "i", "0", "i<H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\t\n\t\t\t\tfor(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) {\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tfor(int k=0;k<W-2&&i!=0&&i+1!=H;k++) {\n\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t\n\t\t\t}", "{\n\t\t\t\t\n\t\t\t\tfor(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) {\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tfor(int k=0;k<W-2&&i!=0&&i+1!=H;k++) {\n\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t\n\t\t\t}", "for(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) {\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<W-1&&(i==0||i+1==H)||j==0", "j<W-1&&(i==0||i+1==H)", "j<W-1", "j", "W-1", "W", "1", "(i==0||i+1==H)", "i==0", "i", "0", "i+1==H", "i+1", "i", "1", "H", "j==0", "j", "0", "j++", "j++", "j", "{\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", "\"#\"", "for(int k=0;k<W-2&&i!=0&&i+1!=H;k++) {\n\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<W-2&&i!=0&&i+1!=H", "k<W-2&&i!=0&&i+1!=H", "k<W-2", "k", "W-2", "W", "2", "i!=0", "i", "0", "i+1!=H", "i+1", "i", "1", "H", "k++", "k++", "k", "{\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\"", "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) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tint H,W;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true)\n\t\t{\n\t\t\tH=scan.nextInt();\n\t\t\tW=scan.nextInt();\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\t\n\t\t\t\tfor(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) {\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tfor(int k=0;k<W-2&&i!=0&&i+1!=H;k++) {\n\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t\n\t\t}\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tint H,W;\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\twhile(true)\n\t\t{\n\t\t\tH=scan.nextInt();\n\t\t\tW=scan.nextInt();\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\t\n\t\t\t\tfor(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) {\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}\n\t\t\t\tfor(int k=0;k<W-2&&i!=0&&i+1!=H;k++) {\n\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"#\\n\");\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? int H,W; Scanner scan = new Scanner(System.in); while(true) { H=scan.nextInt(); W=scan.nextInt(); if(H==0&&W==0) break; for(int i=0;i<H;i++) { for(int j=0;j<W-1&&(i==0||i+1==H)||j==0;j++) { System.out.printf("#"); } for(int k=0;k<W-2&&i!=0&&i+1!=H;k++) { System.out.printf("."); } System.out.printf("#\n"); } System.out.printf("\n"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 17, 41, 13, 20, 41, 13, 4, 18, 13, 42, 13, 30, 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, 0, 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, 13, 17, 2, 13, 17, 2, 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, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 145, 8 ], [ 145, 9 ], [ 9, 10 ], [ 9, 11 ], [ 145, 12 ], [ 12, 13 ], [ 12, 14 ], [ 145, 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 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 31, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 43, 45 ], [ 31, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 51, 53 ], [ 31, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 54, 66 ], [ 66, 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 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 80, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 94, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 102, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 93, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 93, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 79, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 66, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 31, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 15, 142 ], [ 142, 143 ], [ 0, 144 ], [ 144, 145 ], [ 144, 146 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tstatic int height = 0;\n\tstatic int weight = 0;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean zeroFlag = true;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\n\t\twhile (zeroFlag) {\n\t\t\tString[] nyuryokuStr = line.split(\"[\\\\s]+\");\n\t\t\theight = Integer.parseInt(nyuryokuStr[0]);\n\t\t\tweight = Integer.parseInt(nyuryokuStr[1]);\n\t\t\tif (height == 0 && weight == 0) {\n\t\t\t\tzeroFlag = false;\n\t\t\t} else {\n\t\t\t\tfor (int h = 0; h < height; h++) {\n\t\t\t\t\tfor (int w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\tline = br.readLine();\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\tstatic int height = 0;\n\tstatic int weight = 0;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean zeroFlag = true;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\n\t\twhile (zeroFlag) {\n\t\t\tString[] nyuryokuStr = line.split(\"[\\\\s]+\");\n\t\t\theight = Integer.parseInt(nyuryokuStr[0]);\n\t\t\tweight = Integer.parseInt(nyuryokuStr[1]);\n\t\t\tif (height == 0 && weight == 0) {\n\t\t\t\tzeroFlag = false;\n\t\t\t} else {\n\t\t\t\tfor (int h = 0; h < height; h++) {\n\t\t\t\t\tfor (int w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\tline = br.readLine();\n\t\t}\n\t}\n}", "Main", "static int height = 0;", "height", "0", "static int weight = 0;", "weight", "0", "public static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean zeroFlag = true;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\n\t\twhile (zeroFlag) {\n\t\t\tString[] nyuryokuStr = line.split(\"[\\\\s]+\");\n\t\t\theight = Integer.parseInt(nyuryokuStr[0]);\n\t\t\tweight = Integer.parseInt(nyuryokuStr[1]);\n\t\t\tif (height == 0 && weight == 0) {\n\t\t\t\tzeroFlag = false;\n\t\t\t} else {\n\t\t\t\tfor (int h = 0; h < height; h++) {\n\t\t\t\t\tfor (int w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\tline = br.readLine();\n\t\t}\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean zeroFlag = true;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\n\t\twhile (zeroFlag) {\n\t\t\tString[] nyuryokuStr = line.split(\"[\\\\s]+\");\n\t\t\theight = Integer.parseInt(nyuryokuStr[0]);\n\t\t\tweight = Integer.parseInt(nyuryokuStr[1]);\n\t\t\tif (height == 0 && weight == 0) {\n\t\t\t\tzeroFlag = false;\n\t\t\t} else {\n\t\t\t\tfor (int h = 0; h < height; h++) {\n\t\t\t\t\tfor (int w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\tline = br.readLine();\n\t\t}\n\t}", "boolean zeroFlag = true;", "zeroFlag", "true", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "while (zeroFlag) {\n\t\t\tString[] nyuryokuStr = line.split(\"[\\\\s]+\");\n\t\t\theight = Integer.parseInt(nyuryokuStr[0]);\n\t\t\tweight = Integer.parseInt(nyuryokuStr[1]);\n\t\t\tif (height == 0 && weight == 0) {\n\t\t\t\tzeroFlag = false;\n\t\t\t} else {\n\t\t\t\tfor (int h = 0; h < height; h++) {\n\t\t\t\t\tfor (int w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\tline = br.readLine();\n\t\t}", "zeroFlag", "{\n\t\t\tString[] nyuryokuStr = line.split(\"[\\\\s]+\");\n\t\t\theight = Integer.parseInt(nyuryokuStr[0]);\n\t\t\tweight = Integer.parseInt(nyuryokuStr[1]);\n\t\t\tif (height == 0 && weight == 0) {\n\t\t\t\tzeroFlag = false;\n\t\t\t} else {\n\t\t\t\tfor (int h = 0; h < height; h++) {\n\t\t\t\t\tfor (int w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\tline = br.readLine();\n\t\t}", "String[] nyuryokuStr = line.split(\"[\\\\s]+\");", "nyuryokuStr", "line.split(\"[\\\\s]+\")", "line.split", "line", "\"[\\\\s]+\"", "height = Integer.parseInt(nyuryokuStr[0])", "height", "Integer.parseInt(nyuryokuStr[0])", "Integer.parseInt", "Integer", "nyuryokuStr[0]", "nyuryokuStr", "0", "weight = Integer.parseInt(nyuryokuStr[1])", "weight", "Integer.parseInt(nyuryokuStr[1])", "Integer.parseInt", "Integer", "nyuryokuStr[1]", "nyuryokuStr", "1", "if (height == 0 && weight == 0) {\n\t\t\t\tzeroFlag = false;\n\t\t\t} else {\n\t\t\t\tfor (int h = 0; h < height; h++) {\n\t\t\t\t\tfor (int w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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}", "height == 0 && weight == 0", "height == 0", "height", "0", "weight == 0", "weight", "0", "{\n\t\t\t\tzeroFlag = false;\n\t\t\t}", "zeroFlag = false", "zeroFlag", "false", "{\n\t\t\t\tfor (int h = 0; h < height; h++) {\n\t\t\t\t\tfor (int w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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 h = 0; h < height; h++) {\n\t\t\t\t\tfor (int w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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 h = 0;", "int h = 0;", "h", "0", "h < height", "h", "height", "h++", "h++", "h", "{\n\t\t\t\t\tfor (int w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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 w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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 w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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 w = 0;", "int w = 0;", "w", "0", "w < weight", "w", "weight", "w++", "w++", "w", "{\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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}", "(w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)", "(w == 0 || h == 0)", "w == 0", "w", "0", "h == 0", "h", "0", "(w == weight - 1 || h == height - 1)", "w == weight - 1", "w", "weight - 1", "weight", "1", "h == height - 1", "h", "height - 1", "height", "1", "{\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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", "line = br.readLine()", "line", "br.readLine()", "br.readLine", "br", "String[] args", "args", "public class Main {\n\tstatic int height = 0;\n\tstatic int weight = 0;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean zeroFlag = true;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\n\t\twhile (zeroFlag) {\n\t\t\tString[] nyuryokuStr = line.split(\"[\\\\s]+\");\n\t\t\theight = Integer.parseInt(nyuryokuStr[0]);\n\t\t\tweight = Integer.parseInt(nyuryokuStr[1]);\n\t\t\tif (height == 0 && weight == 0) {\n\t\t\t\tzeroFlag = false;\n\t\t\t} else {\n\t\t\t\tfor (int h = 0; h < height; h++) {\n\t\t\t\t\tfor (int w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\tline = br.readLine();\n\t\t}\n\t}\n}", "public class Main {\n\tstatic int height = 0;\n\tstatic int weight = 0;\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean zeroFlag = true;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\n\t\twhile (zeroFlag) {\n\t\t\tString[] nyuryokuStr = line.split(\"[\\\\s]+\");\n\t\t\theight = Integer.parseInt(nyuryokuStr[0]);\n\t\t\tweight = Integer.parseInt(nyuryokuStr[1]);\n\t\t\tif (height == 0 && weight == 0) {\n\t\t\t\tzeroFlag = false;\n\t\t\t} else {\n\t\t\t\tfor (int h = 0; h < height; h++) {\n\t\t\t\t\tfor (int w = 0; w < weight; w++) {\n\t\t\t\t\t\tif( (w == 0 || h == 0) ||\n\t\t\t\t\t\t\t (w == weight - 1 || h == height - 1)) {\n\t\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\tline = br.readLine();\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { static int height = 0; static int weight = 0; public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? boolean zeroFlag = true; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); while (zeroFlag) { String[] nyuryokuStr = line.split("[\\s]+"); height = Integer.parseInt(nyuryokuStr[0]); weight = Integer.parseInt(nyuryokuStr[1]); if (height == 0 && weight == 0) { zeroFlag = false; } else { for (int h = 0; h < height; h++) { for (int w = 0; w < weight; w++) { if( (w == 0 || h == 0) || (w == weight - 1 || h == height - 1)) { System.out.print("#"); } else { System.out.print("."); } } System.out.println(); } System.out.println(); } line = br.readLine(); } } }
[ 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, 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, 17, 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, 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 ], [ 131, 11 ], [ 131, 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 ], [ 28, 29 ], [ 29, 30 ], [ 26, 31 ], [ 23, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 37, 39 ], [ 23, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 23, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 23, 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 ], [ 87, 86 ], [ 94, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 94, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 87, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 84, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 84, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 70, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 23, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 14, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 12, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "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\tStringBuilder sb = new StringBuilder();\n\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 || j == 0 || i == H -1 || 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.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\tStringBuilder sb = new StringBuilder();\n\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 || j == 0 || i == H -1 || 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 IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\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 || j == 0 || i == H -1 || 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\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 || j == 0 || i == H -1 || 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[] 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 || j == 0 || i == H -1 || 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[] 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 || j == 0 || i == H -1 || 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[] 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 || j == 0 || i == H -1 || 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 || j == 0 || i == H -1 || 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 || j == 0 || i == H -1 || 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 || j == 0 || i == H -1 || 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 || j == 0 || i == H -1 || 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 || j == 0 || i == H -1 || 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 || j == 0 || i == H -1 || 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 || j == 0 || i == H -1 || j == W - 1", "i == H -1", "i == 0 || j == 0 || i == H -1 || j == W - 1", "i == 0", "i", "0", "j == 0", "j", "0", "i == H -1", "i", "H -1", "H", "1", "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", "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\tStringBuilder sb = new StringBuilder();\n\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 || j == 0 || i == H -1 || 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}", "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\tStringBuilder sb = new StringBuilder();\n\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 || j == 0 || i == H -1 || 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" ]
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)); StringBuilder sb = new StringBuilder(); 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 || j == 0 || i == H -1 || 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, 17, 42, 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, 0, 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, 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 ]
[ [ 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 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 34, 36 ], [ 17, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 17, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 53, 55 ], [ 45, 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 ], [ 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 ], [ 86, 85 ], [ 93, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 93, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 86, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 83, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 83, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 69, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 56, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 8, 125 ], [ 125, 126 ], [ 126, 127 ], [ 6, 128 ], [ 128, 129 ] ]
[ "import java.io.*;\nclass Main{\npublic static void main(String[] args)throws IOException{\nBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\nboolean i=true;\nwhile(i){\nString str=br.readLine();\nString[] arr=str.split(\" \");\nint h=Integer.parseInt(arr[0]);\nint w=Integer.parseInt(arr[1]);\nif(h==0 && w==0) i=false;\nelse{\nfor(int k=0; k<h; k++){\nfor(int j=0; j<w; j++){\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}\nSystem.out.println();\n}\nSystem.out.println();\n}\n}\nbr.close();\n}\n}", "import java.io.*;", "io.*", "java", "class Main{\npublic static void main(String[] args)throws IOException{\nBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\nboolean i=true;\nwhile(i){\nString str=br.readLine();\nString[] arr=str.split(\" \");\nint h=Integer.parseInt(arr[0]);\nint w=Integer.parseInt(arr[1]);\nif(h==0 && w==0) i=false;\nelse{\nfor(int k=0; k<h; k++){\nfor(int j=0; j<w; j++){\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}\nSystem.out.println();\n}\nSystem.out.println();\n}\n}\nbr.close();\n}\n}", "Main", "public static void main(String[] args)throws IOException{\nBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\nboolean i=true;\nwhile(i){\nString str=br.readLine();\nString[] arr=str.split(\" \");\nint h=Integer.parseInt(arr[0]);\nint w=Integer.parseInt(arr[1]);\nif(h==0 && w==0) i=false;\nelse{\nfor(int k=0; k<h; k++){\nfor(int j=0; j<w; j++){\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}\nSystem.out.println();\n}\nSystem.out.println();\n}\n}\nbr.close();\n}", "main", "{\nBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\nboolean i=true;\nwhile(i){\nString str=br.readLine();\nString[] arr=str.split(\" \");\nint h=Integer.parseInt(arr[0]);\nint w=Integer.parseInt(arr[1]);\nif(h==0 && w==0) i=false;\nelse{\nfor(int k=0; k<h; k++){\nfor(int j=0; j<w; j++){\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}\nSystem.out.println();\n}\nSystem.out.println();\n}\n}\nbr.close();\n}", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "boolean i=true;", "i", "true", "while(i){\nString str=br.readLine();\nString[] arr=str.split(\" \");\nint h=Integer.parseInt(arr[0]);\nint w=Integer.parseInt(arr[1]);\nif(h==0 && w==0) i=false;\nelse{\nfor(int k=0; k<h; k++){\nfor(int j=0; j<w; j++){\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}\nSystem.out.println();\n}\nSystem.out.println();\n}\n}", "i", "{\nString str=br.readLine();\nString[] arr=str.split(\" \");\nint h=Integer.parseInt(arr[0]);\nint w=Integer.parseInt(arr[1]);\nif(h==0 && w==0) i=false;\nelse{\nfor(int k=0; k<h; k++){\nfor(int j=0; j<w; j++){\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}\nSystem.out.println();\n}\nSystem.out.println();\n}\n}", "String str=br.readLine();", "str", "br.readLine()", "br.readLine", "br", "String[] arr=str.split(\" \");", "arr", "str.split(\" \")", "str.split", "str", "\" \"", "int h=Integer.parseInt(arr[0]);", "h", "Integer.parseInt(arr[0])", "Integer.parseInt", "Integer", "arr[0]", "arr", "0", "int w=Integer.parseInt(arr[1]);", "w", "Integer.parseInt(arr[1])", "Integer.parseInt", "Integer", "arr[1]", "arr", "1", "if(h==0 && w==0) i=false;\nelse{\nfor(int k=0; k<h; k++){\nfor(int j=0; j<w; j++){\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}\nSystem.out.println();\n}\nSystem.out.println();\n}", "h==0 && w==0", "h==0", "h", "0", "w==0", "w", "0", "i=false", "i", "false", "{\nfor(int k=0; k<h; k++){\nfor(int j=0; j<w; j++){\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}\nSystem.out.println();\n}\nSystem.out.println();\n}", "for(int k=0; k<h; k++){\nfor(int j=0; j<w; j++){\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}\nSystem.out.println();\n}", "int k=0;", "int k=0;", "k", "0", "k<h", "k", "h", "k++", "k++", "k", "{\nfor(int j=0; j<w; j++){\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}\nSystem.out.println();\n}", "{\nfor(int j=0; j<w; j++){\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}\nSystem.out.println();\n}", "for(int j=0; j<w; j++){\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}", "int j=0;", "int j=0;", "j", "0", "j<w", "j", "w", "j++", "j++", "j", "{\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}", "{\nif(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");\n}", "if(k==0||j==0||k==h-1||j==w-1) System.out.print(\"#\");\nelse System.out.print(\".\");", "k==0||j==0||k==h-1||j==w-1", "k==h-1", "k==0||j==0||k==h-1||j==w-1", "k==0", "k", "0", "j==0", "j", "0", "k==h-1", "k", "h-1", "h", "1", "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", "br.close()", "br.close", "br", "String[] args", "args" ]
import java.io.*; class Main{ public static void main(String[] args)throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); boolean i=true; while(i){ String str=br.readLine(); String[] arr=str.split(" "); int h=Integer.parseInt(arr[0]); int w=Integer.parseInt(arr[1]); if(h==0 && w==0) i=false; else{ for(int k=0; k<h; k++){ for(int j=0; j<w; j++){ if(k==0||j==0||k==h-1||j==w-1) System.out.print("#"); else System.out.print("."); } System.out.println(); } System.out.println(); } } br.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 42, 4, 18, 13, 30, 0, 13, 20, 17, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 14, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 4, 18, 13, 13, 30, 4, 18, 13, 3, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 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, 11, 1, 41, 13, 17, 2, 13, 18, 13, 17, 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, 18, 13, 17, 17, 1, 40, 13, 30, 30, 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 ], [ 192, 8 ], [ 192, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 20, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 34, 35 ], [ 24, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 24, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 43, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 43, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 60, 64 ], [ 11, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 65, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 79, 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 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 101, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 114, 124 ], [ 124, 125 ], [ 125, 126 ], [ 114, 127 ], [ 128, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 113, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 101, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 141, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 148, 160 ], [ 160, 161 ], [ 161, 162 ], [ 148, 163 ], [ 164, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 165, 170 ], [ 141, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 141, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 177, 182 ], [ 79, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 183, 188 ], [ 9, 189 ], [ 189, 190 ], [ 0, 191 ], [ 191, 192 ], [ 191, 193 ] ]
[ "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\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Integer[]> list = new ArrayList<Integer[]>();\n\n\t\tInteger[] ary;\n\n\t\twhile(scan.hasNext()){\n\n\t\t\tary = new Integer[2];\n\t\t\t//???H\n\t\t\tary[0] = scan.nextInt();\n\t\t\t//?¨?W\n\t\t\tary[1] = scan.nextInt();\n\n\t\t\tif(ary[0] != 0 && ary[1] != 0){\n\n\t\t\t\tlist.add(ary);\n\t\t\t}else{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0; i < list.size(); i++){\n\n\t\t\tary = list.get(i);\n\t\t\t//???\n\t\t\tfor(int j = 0; j < ary[0]; j++){\n\n\t\t\t\tif(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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\n\t\t\t}\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\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Integer[]> list = new ArrayList<Integer[]>();\n\n\t\tInteger[] ary;\n\n\t\twhile(scan.hasNext()){\n\n\t\t\tary = new Integer[2];\n\t\t\t//???H\n\t\t\tary[0] = scan.nextInt();\n\t\t\t//?¨?W\n\t\t\tary[1] = scan.nextInt();\n\n\t\t\tif(ary[0] != 0 && ary[1] != 0){\n\n\t\t\t\tlist.add(ary);\n\t\t\t}else{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0; i < list.size(); i++){\n\n\t\t\tary = list.get(i);\n\t\t\t//???\n\t\t\tfor(int j = 0; j < ary[0]; j++){\n\n\t\t\t\tif(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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\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\t// TODO ?????????????????????????????????????????????\n\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Integer[]> list = new ArrayList<Integer[]>();\n\n\t\tInteger[] ary;\n\n\t\twhile(scan.hasNext()){\n\n\t\t\tary = new Integer[2];\n\t\t\t//???H\n\t\t\tary[0] = scan.nextInt();\n\t\t\t//?¨?W\n\t\t\tary[1] = scan.nextInt();\n\n\t\t\tif(ary[0] != 0 && ary[1] != 0){\n\n\t\t\t\tlist.add(ary);\n\t\t\t}else{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0; i < list.size(); i++){\n\n\t\t\tary = list.get(i);\n\t\t\t//???\n\t\t\tfor(int j = 0; j < ary[0]; j++){\n\n\t\t\t\tif(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Integer[]> list = new ArrayList<Integer[]>();\n\n\t\tInteger[] ary;\n\n\t\twhile(scan.hasNext()){\n\n\t\t\tary = new Integer[2];\n\t\t\t//???H\n\t\t\tary[0] = scan.nextInt();\n\t\t\t//?¨?W\n\t\t\tary[1] = scan.nextInt();\n\n\t\t\tif(ary[0] != 0 && ary[1] != 0){\n\n\t\t\t\tlist.add(ary);\n\t\t\t}else{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0; i < list.size(); i++){\n\n\t\t\tary = list.get(i);\n\t\t\t//???\n\t\t\tfor(int j = 0; j < ary[0]; j++){\n\n\t\t\t\tif(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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\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)", "ArrayList<Integer[]> list = new ArrayList<Integer[]>();", "list", "new ArrayList<Integer[]>()", "Integer[] ary;", "ary", "while(scan.hasNext()){\n\n\t\t\tary = new Integer[2];\n\t\t\t//???H\n\t\t\tary[0] = scan.nextInt();\n\t\t\t//?¨?W\n\t\t\tary[1] = scan.nextInt();\n\n\t\t\tif(ary[0] != 0 && ary[1] != 0){\n\n\t\t\t\tlist.add(ary);\n\t\t\t}else{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\n\t\t\tary = new Integer[2];\n\t\t\t//???H\n\t\t\tary[0] = scan.nextInt();\n\t\t\t//?¨?W\n\t\t\tary[1] = scan.nextInt();\n\n\t\t\tif(ary[0] != 0 && ary[1] != 0){\n\n\t\t\t\tlist.add(ary);\n\t\t\t}else{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "ary = new Integer[2]", "ary", "new Integer[2]", "2", "ary[0] = scan.nextInt()", "ary[0]", "ary", "0", "scan.nextInt()", "scan.nextInt", "scan", "ary[1] = scan.nextInt()", "ary[1]", "ary", "1", "scan.nextInt()", "scan.nextInt", "scan", "if(ary[0] != 0 && ary[1] != 0){\n\n\t\t\t\tlist.add(ary);\n\t\t\t}else{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}", "ary[0] != 0 && ary[1] != 0", "ary[0] != 0", "ary[0]", "ary", "0", "0", "ary[1] != 0", "ary[1]", "ary", "1", "0", "{\n\n\t\t\t\tlist.add(ary);\n\t\t\t}", "list.add(ary)", "list.add", "list", "ary", "{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}", "scan.close()", "scan.close", "scan", "break;", "for(int i = 0; i < list.size(); i++){\n\n\t\t\tary = list.get(i);\n\t\t\t//???\n\t\t\tfor(int j = 0; j < ary[0]; j++){\n\n\t\t\t\tif(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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\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\n\t\t\tary = list.get(i);\n\t\t\t//???\n\t\t\tfor(int j = 0; j < ary[0]; j++){\n\n\t\t\t\tif(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "{\n\n\t\t\tary = list.get(i);\n\t\t\t//???\n\t\t\tfor(int j = 0; j < ary[0]; j++){\n\n\t\t\t\tif(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "ary = list.get(i)", "ary", "list.get(i)", "list.get", "list", "i", "for(int j = 0; j < ary[0]; j++){\n\n\t\t\t\tif(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < ary[0]", "j", "ary[0]", "ary", "0", "j++", "j++", "j", "{\n\n\t\t\t\tif(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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\n\t\t\t}", "{\n\n\t\t\t\tif(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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\n\t\t\t}", "if(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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 == ary[0] - 1", "j == 0", "j", "0", "j == ary[0] - 1", "j", "ary[0] - 1", "ary[0]", "ary", "0", "1", "{\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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 < ary[1]; 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 < ary[1]", "k", "ary[1]", "ary", "1", "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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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 < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t}", "int l = 0;", "int l = 0;", "l", "0", "l < ary[1] - 2", "l", "ary[1] - 2", "ary[1]", "ary", "1", "2", "l++", "l++", "l", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Integer[]> list = new ArrayList<Integer[]>();\n\n\t\tInteger[] ary;\n\n\t\twhile(scan.hasNext()){\n\n\t\t\tary = new Integer[2];\n\t\t\t//???H\n\t\t\tary[0] = scan.nextInt();\n\t\t\t//?¨?W\n\t\t\tary[1] = scan.nextInt();\n\n\t\t\tif(ary[0] != 0 && ary[1] != 0){\n\n\t\t\t\tlist.add(ary);\n\t\t\t}else{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0; i < list.size(); i++){\n\n\t\t\tary = list.get(i);\n\t\t\t//???\n\t\t\tfor(int j = 0; j < ary[0]; j++){\n\n\t\t\t\tif(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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\n\t\t\t}\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\n\t\tScanner scan = new Scanner(System.in);\n\t\tArrayList<Integer[]> list = new ArrayList<Integer[]>();\n\n\t\tInteger[] ary;\n\n\t\twhile(scan.hasNext()){\n\n\t\t\tary = new Integer[2];\n\t\t\t//???H\n\t\t\tary[0] = scan.nextInt();\n\t\t\t//?¨?W\n\t\t\tary[1] = scan.nextInt();\n\n\t\t\tif(ary[0] != 0 && ary[1] != 0){\n\n\t\t\t\tlist.add(ary);\n\t\t\t}else{\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t\tfor(int i = 0; i < list.size(); i++){\n\n\t\t\tary = list.get(i);\n\t\t\t//???\n\t\t\tfor(int j = 0; j < ary[0]; j++){\n\n\t\t\t\tif(j == 0 || j == ary[0] - 1){\n\n\t\t\t\t\t//?¨????????????¨???????????°?????????\n\t\t\t\t\tfor(int k = 0; k < ary[1]; 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\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int l = 0; l < ary[1] - 2; l++){\n\t\t\t\t\t\tSystem.out.print(\".\");\n\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\n\t\t\t}\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 scan = new Scanner(System.in); ArrayList<Integer[]> list = new ArrayList<Integer[]>(); Integer[] ary; while(scan.hasNext()){ ary = new Integer[2]; //???H ary[0] = scan.nextInt(); //?¨?W ary[1] = scan.nextInt(); if(ary[0] != 0 && ary[1] != 0){ list.add(ary); }else{ scan.close(); break; } } for(int i = 0; i < list.size(); i++){ ary = list.get(i); //??? for(int j = 0; j < ary[0]; j++){ if(j == 0 || j == ary[0] - 1){ //?¨????????????¨???????????°????????? for(int k = 0; k < ary[1]; k++){ System.out.print("#"); } System.out.println(""); }else{ System.out.print("#"); for(int l = 0; l < ary[1] - 2; l++){ System.out.print("."); } System.out.print("#"); System.out.println(""); } } System.out.println(""); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 42, 4, 18, 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, 41, 13, 20, 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, 18, 13, 13, 4, 18, 13, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 112, 5 ], [ 112, 6 ], [ 6, 7 ], [ 6, 8 ], [ 112, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 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 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 16, 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 ], [ 49, 51 ], [ 48, 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 ], [ 86, 89 ], [ 65, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 48, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 101, 102 ], [ 16, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 9, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n while (sc.hasNext()) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n for (int i = 0; i < h; i++) {\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < w; j++) {\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }\n System.out.println(sb.toString());\n }\n System.out.println(\"\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n while (sc.hasNext()) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n for (int i = 0; i < h; i++) {\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < w; j++) {\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }\n System.out.println(sb.toString());\n }\n System.out.println(\"\");\n }\n }\n}", "Main", "public static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) throws Exception {\n while (sc.hasNext()) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n for (int i = 0; i < h; i++) {\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < w; j++) {\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }\n System.out.println(sb.toString());\n }\n System.out.println(\"\");\n }\n }", "main", "{\n while (sc.hasNext()) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n for (int i = 0; i < h; i++) {\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < w; j++) {\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }\n System.out.println(sb.toString());\n }\n System.out.println(\"\");\n }\n }", "while (sc.hasNext()) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n for (int i = 0; i < h; i++) {\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < w; j++) {\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }\n System.out.println(sb.toString());\n }\n System.out.println(\"\");\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n for (int i = 0; i < h; i++) {\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < w; j++) {\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }\n System.out.println(sb.toString());\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 StringBuilder sb = new StringBuilder();\n for (int j = 0; j < w; j++) {\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }\n System.out.println(sb.toString());\n }", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < w; j++) {\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }\n System.out.println(sb.toString());\n }", "{\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < w; j++) {\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }\n System.out.println(sb.toString());\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for (int j = 0; j < w; j++) {\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\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 sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }", "{\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }", "if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\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 sb.append(\"#\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "{\n sb.append(\".\");\n }", "sb.append(\".\")", "sb.append", "sb", "\".\"", "System.out.println(sb.toString())", "System.out.println", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n while (sc.hasNext()) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n for (int i = 0; i < h; i++) {\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < w; j++) {\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }\n System.out.println(sb.toString());\n }\n System.out.println(\"\");\n }\n }\n}", "public class Main {\n public static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n while (sc.hasNext()) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n for (int i = 0; i < h; i++) {\n StringBuilder sb = new StringBuilder();\n for (int j = 0; j < w; j++) {\n if (i == 0 || i == h-1 || j == 0 || j == w-1) {\n sb.append(\"#\");\n } else {\n sb.append(\".\");\n }\n }\n System.out.println(sb.toString());\n }\n System.out.println(\"\");\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { while (sc.hasNext()) { int h = sc.nextInt(); int w = sc.nextInt(); if (h == 0 && w == 0) break; for (int i = 0; i < h; i++) { StringBuilder sb = new StringBuilder(); for (int j = 0; j < w; j++) { if (i == 0 || i == h-1 || j == 0 || j == w-1) { sb.append("#"); } else { sb.append("."); } } System.out.println(sb.toString()); } 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, 17, 41, 13, 20, 41, 13, 20, 42, 13, 30, 41, 13, 4, 18, 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, 0, 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, 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 ], [ 143, 11 ], [ 143, 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 ], [ 14, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 35, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 46, 48 ], [ 32, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 32, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 57, 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 ], [ 83, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 83, 94 ], [ 95, 95 ], [ 95, 96 ], [ 96, 97 ], [ 99, 98 ], [ 108, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 108, 108 ], [ 108, 109 ], [ 108, 110 ], [ 99, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 96, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 96, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 82, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 69, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 14, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 12, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "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 int xLine = 0;\n int yLine = 0;\n Boolean flg = true;\n \n BufferedReader br =\n \t\tnew BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb =\n \t\tnew StringBuilder();\n \n \n while(flg){\n String str[] = br.readLine().split(\" \");\n yLine = Integer.parseInt(str[0]);\n xLine = Integer.parseInt(str[1]);\n\n if(xLine==0 && yLine==0) {\n \t\tflg = false;\n\n \t}\n \telse {\n\n \t\tfor(int i=0; i<yLine; i++){\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n \t\n }\n System.out.print(sb);\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 int xLine = 0;\n int yLine = 0;\n Boolean flg = true;\n \n BufferedReader br =\n \t\tnew BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb =\n \t\tnew StringBuilder();\n \n \n while(flg){\n String str[] = br.readLine().split(\" \");\n yLine = Integer.parseInt(str[0]);\n xLine = Integer.parseInt(str[1]);\n\n if(xLine==0 && yLine==0) {\n \t\tflg = false;\n\n \t}\n \telse {\n\n \t\tfor(int i=0; i<yLine; i++){\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n \t\n }\n System.out.print(sb);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n int xLine = 0;\n int yLine = 0;\n Boolean flg = true;\n \n BufferedReader br =\n \t\tnew BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb =\n \t\tnew StringBuilder();\n \n \n while(flg){\n String str[] = br.readLine().split(\" \");\n yLine = Integer.parseInt(str[0]);\n xLine = Integer.parseInt(str[1]);\n\n if(xLine==0 && yLine==0) {\n \t\tflg = false;\n\n \t}\n \telse {\n\n \t\tfor(int i=0; i<yLine; i++){\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n \t\n }\n System.out.print(sb);\n }", "main", "{\n int xLine = 0;\n int yLine = 0;\n Boolean flg = true;\n \n BufferedReader br =\n \t\tnew BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb =\n \t\tnew StringBuilder();\n \n \n while(flg){\n String str[] = br.readLine().split(\" \");\n yLine = Integer.parseInt(str[0]);\n xLine = Integer.parseInt(str[1]);\n\n if(xLine==0 && yLine==0) {\n \t\tflg = false;\n\n \t}\n \telse {\n\n \t\tfor(int i=0; i<yLine; i++){\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n \t\n }\n System.out.print(sb);\n }", "int xLine = 0;", "xLine", "0", "int yLine = 0;", "yLine", "0", "Boolean flg = true;", "flg", "true", "BufferedReader br =\n \t\tnew BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb =\n \t\tnew StringBuilder();", "sb", "new StringBuilder()", "while(flg){\n String str[] = br.readLine().split(\" \");\n yLine = Integer.parseInt(str[0]);\n xLine = Integer.parseInt(str[1]);\n\n if(xLine==0 && yLine==0) {\n \t\tflg = false;\n\n \t}\n \telse {\n\n \t\tfor(int i=0; i<yLine; i++){\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n \t\n }", "flg", "{\n String str[] = br.readLine().split(\" \");\n yLine = Integer.parseInt(str[0]);\n xLine = Integer.parseInt(str[1]);\n\n if(xLine==0 && yLine==0) {\n \t\tflg = false;\n\n \t}\n \telse {\n\n \t\tfor(int i=0; i<yLine; i++){\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n \t\n }", "String str[] = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "yLine = Integer.parseInt(str[0])", "yLine", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "xLine = Integer.parseInt(str[1])", "xLine", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "if(xLine==0 && yLine==0) {\n \t\tflg = false;\n\n \t}\n \telse {\n\n \t\tfor(int i=0; i<yLine; i++){\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }", "xLine==0 && yLine==0", "xLine==0", "xLine", "0", "yLine==0", "yLine", "0", "{\n \t\tflg = false;\n\n \t}", "flg = false", "flg", "false", "{\n\n \t\tfor(int i=0; i<yLine; i++){\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }", "for(int i=0; i<yLine; i++){\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }", "int i=0;", "int i=0;", "i", "0", "i<yLine", "i", "yLine", "i++", "i++", "i", "{\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }", "{\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }", "for(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }", "int j=0;", "int j=0;", "j", "0", "j<xLine", "j", "xLine", "j++", "j++", "j", "{\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }", "{\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }", "if(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}", "j>=1 && i<yLine-1 && i>=1 && j<xLine-1", "i>=1", "j>=1 && i<yLine-1 && i>=1 && j<xLine-1", "j>=1", "j", "1", "i<yLine-1", "i", "yLine-1", "yLine", "1", "i>=1", "i", "1", "j<xLine-1", "j", "xLine-1", "xLine", "1", "{\n \t\tsb.append(\".\");\n \t\t}", "sb.append(\".\")", "sb.append", "sb", "\".\"", "{\n \t\tsb.append(\"#\");\n \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", "public class Main{\n public static void main(String[] args) throws IOException {\n int xLine = 0;\n int yLine = 0;\n Boolean flg = true;\n \n BufferedReader br =\n \t\tnew BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb =\n \t\tnew StringBuilder();\n \n \n while(flg){\n String str[] = br.readLine().split(\" \");\n yLine = Integer.parseInt(str[0]);\n xLine = Integer.parseInt(str[1]);\n\n if(xLine==0 && yLine==0) {\n \t\tflg = false;\n\n \t}\n \telse {\n\n \t\tfor(int i=0; i<yLine; i++){\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n \t\n }\n System.out.print(sb);\n }\n}", "public class Main{\n public static void main(String[] args) throws IOException {\n int xLine = 0;\n int yLine = 0;\n Boolean flg = true;\n \n BufferedReader br =\n \t\tnew BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb =\n \t\tnew StringBuilder();\n \n \n while(flg){\n String str[] = br.readLine().split(\" \");\n yLine = Integer.parseInt(str[0]);\n xLine = Integer.parseInt(str[1]);\n\n if(xLine==0 && yLine==0) {\n \t\tflg = false;\n\n \t}\n \telse {\n\n \t\tfor(int i=0; i<yLine; i++){\n \t\t\tfor(int j=0; j<xLine; j++){\n \tif(j>=1 && i<yLine-1 && i>=1 && j<xLine-1 ){\n \t\tsb.append(\".\");\n \t\t}\n \telse {\n \t\tsb.append(\"#\");\n \t\t}\n }\n sb.append(\"\\n\");\n }\n sb.append(\"\\n\");\n }\n \t\n }\n System.out.print(sb);\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 { int xLine = 0; int yLine = 0; Boolean flg = true; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); while(flg){ String str[] = br.readLine().split(" "); yLine = Integer.parseInt(str[0]); xLine = Integer.parseInt(str[1]); if(xLine==0 && yLine==0) { flg = false; } else { for(int i=0; i<yLine; i++){ for(int j=0; j<xLine; j++){ if(j>=1 && i<yLine-1 && i>=1 && j<xLine-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, 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, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 13, 13, 30, 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, 12, 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, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 155, 5 ], [ 155, 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 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 53, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 53, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 19, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 6, 76 ], [ 76, 77 ], [ 155, 78 ], [ 78, 79 ], [ 78, 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 ], [ 80, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 78, 105 ], [ 105, 106 ], [ 155, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 110, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 130, 132 ], [ 123, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 123, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 141, 146 ], [ 109, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 107, 152 ], [ 152, 153 ], [ 0, 154 ], [ 154, 155 ], [ 154, 156 ] ]
[ "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 H, W;\n\t\t\n\t\tfor(;;){\n\n\t\t\tH = scan.nextInt();\n\t\t\tW = 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\tfor(int i = 0; i < H; i++){\n\t\t\t\tif(i == 0 || i == H - 1){\n\t\t\t\t\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\n\tstatic void sharpLine(int w){\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}\n\t\n\tstatic void sharpDotLine(int w){\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tif(i == 0 || i == 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}", "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 H, W;\n\t\t\n\t\tfor(;;){\n\n\t\t\tH = scan.nextInt();\n\t\t\tW = 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\tfor(int i = 0; i < H; i++){\n\t\t\t\tif(i == 0 || i == H - 1){\n\t\t\t\t\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\n\tstatic void sharpLine(int w){\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}\n\t\n\tstatic void sharpDotLine(int w){\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tif(i == 0 || i == 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}", "Main", "public static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in); \n\t\t\n\t\tint H, W;\n\t\t\n\t\tfor(;;){\n\n\t\t\tH = scan.nextInt();\n\t\t\tW = 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\tfor(int i = 0; i < H; i++){\n\t\t\t\tif(i == 0 || i == H - 1){\n\t\t\t\t\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}\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 H, W;\n\t\t\n\t\tfor(;;){\n\n\t\t\tH = scan.nextInt();\n\t\t\tW = 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\tfor(int i = 0; i < H; i++){\n\t\t\t\tif(i == 0 || i == H - 1){\n\t\t\t\t\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}\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 H", "H", "W;", "W", "for(;;){\n\n\t\t\tH = scan.nextInt();\n\t\t\tW = 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\tfor(int i = 0; i < H; i++){\n\t\t\t\tif(i == 0 || i == H - 1){\n\t\t\t\t\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", ";", "{\n\n\t\t\tH = scan.nextInt();\n\t\t\tW = 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\tfor(int i = 0; i < H; i++){\n\t\t\t\tif(i == 0 || i == H - 1){\n\t\t\t\t\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "{\n\n\t\t\tH = scan.nextInt();\n\t\t\tW = 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\tfor(int i = 0; i < H; i++){\n\t\t\t\tif(i == 0 || i == H - 1){\n\t\t\t\t\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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){\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\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}\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\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(i == 0 || i == H - 1){\n\t\t\t\t\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}\n\t\t\t}", "if(i == 0 || i == H - 1){\n\t\t\t\t\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\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\tsharpLine(W);\n\t\t\t\t}", "sharpLine(W)", "sharpLine", "W", "{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}", "sharpDotLine(W)", "sharpDotLine", "W", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String args[]", "args", "static void sharpLine(int w){\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}", "sharpLine", "{\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}", "for(int i = 0; i < w; i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "{\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 w", "w", "static void sharpDotLine(int w){\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tif(i == 0 || i == 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}", "sharpDotLine", "{\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tif(i == 0 || i == 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 i = 0; i < w; i++){\n\t\t\tif(i == 0 || i == 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 i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "{\n\t\t\tif(i == 0 || i == 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(i == 0 || i == 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(i == 0 || i == 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}", "i == 0 || i == w - 1", "i == 0", "i", "0", "i == w - 1", "i", "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", "int w", "w", "public class Main {\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in); \n\t\t\n\t\tint H, W;\n\t\t\n\t\tfor(;;){\n\n\t\t\tH = scan.nextInt();\n\t\t\tW = 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\tfor(int i = 0; i < H; i++){\n\t\t\t\tif(i == 0 || i == H - 1){\n\t\t\t\t\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\n\tstatic void sharpLine(int w){\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}\n\t\n\tstatic void sharpDotLine(int w){\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tif(i == 0 || i == 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}", "public class Main {\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in); \n\t\t\n\t\tint H, W;\n\t\t\n\t\tfor(;;){\n\n\t\t\tH = scan.nextInt();\n\t\t\tW = 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\tfor(int i = 0; i < H; i++){\n\t\t\t\tif(i == 0 || i == H - 1){\n\t\t\t\t\tsharpLine(W);\n\t\t\t\t}else{\n\t\t\t\t\tsharpDotLine(W);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n\t\n\tstatic void sharpLine(int w){\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}\n\t\n\tstatic void sharpDotLine(int w){\n\t\tfor(int i = 0; i < w; i++){\n\t\t\tif(i == 0 || i == 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}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner scan = new Scanner(System.in); int H, W; for(;;){ H = scan.nextInt(); W = scan.nextInt(); if(H == 0 && W == 0){ break; } for(int i = 0; i < H; i++){ if(i == 0 || i == H - 1){ sharpLine(W); }else{ sharpDotLine(W); } } System.out.println(); } } static void sharpLine(int w){ for(int i = 0; i < w; i++){ System.out.print("#"); } System.out.println(); } static void sharpDotLine(int w){ for(int i = 0; i < w; i++){ if(i == 0 || i == w - 1){ System.out.print("#"); }else{ System.out.print("."); } } 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, 41, 13, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 17, 41, 13, 17, 42, 17, 30, 38, 5, 13, 30, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 41, 13, 20, 42, 4, 18, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 40, 13, 0, 13, 17, 14, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 4, 18, 13, 17, 14, 2, 18, 13, 17, 17, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 17, 1, 40, 13, 30, 30, 0, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 17, 17, 1, 40, 13, 30, 30, 0, 13, 2, 13, 17, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 17, 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, 17, 0, 13, 17, 14, 2, 18, 13, 17, 17, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 17, 1, 40, 13, 30, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 18, 13, 13, 17, 0, 13, 17, 0, 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 ], [ 17, 23 ], [ 23, 24 ], [ 17, 25 ], [ 25, 26 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 17, 30 ], [ 30, 31 ], [ 30, 32 ], [ 17, 33 ], [ 33, 34 ], [ 33, 35 ], [ 17, 37 ], [ 37, 38 ], [ 37, 39 ], [ 17, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 43, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 51, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 75, 76 ], [ 51, 77 ], [ 77, 78 ], [ 77, 79 ], [ 51, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 80, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 80, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 104, 114 ], [ 114, 115 ], [ 115, 116 ], [ 104, 117 ], [ 118, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 103, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 124, 136 ], [ 136, 137 ], [ 137, 138 ], [ 124, 139 ], [ 140, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 143, 145 ], [ 103, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 103, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 103, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 157, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 157, 169 ], [ 169, 170 ], [ 170, 171 ], [ 157, 172 ], [ 173, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 174, 179 ], [ 103, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 180, 185 ], [ 103, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 186, 191 ], [ 103, 192 ], [ 192, 193 ], [ 192, 194 ], [ 103, 195 ], [ 195, 196 ], [ 195, 197 ], [ 97, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 199, 203 ], [ 198, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 205, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 212, 214 ], [ 205, 215 ], [ 215, 216 ], [ 216, 217 ], [ 205, 218 ], [ 219, 219 ], [ 219, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 222, 224 ], [ 204, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 225, 230 ], [ 204, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 231, 236 ], [ 204, 237 ], [ 237, 238 ], [ 237, 239 ], [ 204, 240 ], [ 240, 241 ], [ 240, 242 ], [ 15, 243 ], [ 243, 244 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\n\nclass Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name;\n\t\tint num;\n\t\tint compare;\n\t\tString waku=\"\";\n\t\tString wk2=\"#\";\n\n\t\tint[] a=new int[2];\n\t\tint i=0;\n\t\twhile(true){\n\n\t\t\ttry{\n\t\t\t\tname=br.readLine();\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\ta[i]=Integer.parseInt(st.nextToken());\n\t\t\t\t\ti++;\n\t\t\t\t}i=0;\n\n\t\t\t\tif(a[0]==0 && a[1]==0){\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\telse if(a[0] != 1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(int k=0; k<a[1]-2; k++){\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}wk2=wk2+\"#\";\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tfor(int j=0; j<a[0]-2; j++){\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\n\t\t\t\telse if(a[0]==1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\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", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name;\n\t\tint num;\n\t\tint compare;\n\t\tString waku=\"\";\n\t\tString wk2=\"#\";\n\n\t\tint[] a=new int[2];\n\t\tint i=0;\n\t\twhile(true){\n\n\t\t\ttry{\n\t\t\t\tname=br.readLine();\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\ta[i]=Integer.parseInt(st.nextToken());\n\t\t\t\t\ti++;\n\t\t\t\t}i=0;\n\n\t\t\t\tif(a[0]==0 && a[1]==0){\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\telse if(a[0] != 1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(int k=0; k<a[1]-2; k++){\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}wk2=wk2+\"#\";\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tfor(int j=0; j<a[0]-2; j++){\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\n\t\t\t\telse if(a[0]==1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\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\tString name;\n\t\tint num;\n\t\tint compare;\n\t\tString waku=\"\";\n\t\tString wk2=\"#\";\n\n\t\tint[] a=new int[2];\n\t\tint i=0;\n\t\twhile(true){\n\n\t\t\ttry{\n\t\t\t\tname=br.readLine();\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\ta[i]=Integer.parseInt(st.nextToken());\n\t\t\t\t\ti++;\n\t\t\t\t}i=0;\n\n\t\t\t\tif(a[0]==0 && a[1]==0){\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\telse if(a[0] != 1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(int k=0; k<a[1]-2; k++){\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}wk2=wk2+\"#\";\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tfor(int j=0; j<a[0]-2; j++){\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\n\t\t\t\telse if(a[0]==1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name;\n\t\tint num;\n\t\tint compare;\n\t\tString waku=\"\";\n\t\tString wk2=\"#\";\n\n\t\tint[] a=new int[2];\n\t\tint i=0;\n\t\twhile(true){\n\n\t\t\ttry{\n\t\t\t\tname=br.readLine();\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\ta[i]=Integer.parseInt(st.nextToken());\n\t\t\t\t\ti++;\n\t\t\t\t}i=0;\n\n\t\t\t\tif(a[0]==0 && a[1]==0){\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\telse if(a[0] != 1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(int k=0; k<a[1]-2; k++){\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}wk2=wk2+\"#\";\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tfor(int j=0; j<a[0]-2; j++){\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\n\t\t\t\telse if(a[0]==1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\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 name;", "name", "int num;", "num", "int compare;", "compare", "String waku=\"\";", "waku", "\"\"", "String wk2=\"#\";", "wk2", "\"#\"", "int[] a=new int[2];", "a", "new int[2]", "2", "int i=0;", "i", "0", "while(true){\n\n\t\t\ttry{\n\t\t\t\tname=br.readLine();\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\ta[i]=Integer.parseInt(st.nextToken());\n\t\t\t\t\ti++;\n\t\t\t\t}i=0;\n\n\t\t\t\tif(a[0]==0 && a[1]==0){\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\telse if(a[0] != 1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(int k=0; k<a[1]-2; k++){\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}wk2=wk2+\"#\";\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tfor(int j=0; j<a[0]-2; j++){\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\n\t\t\t\telse if(a[0]==1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}", "true", "{\n\n\t\t\ttry{\n\t\t\t\tname=br.readLine();\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\ta[i]=Integer.parseInt(st.nextToken());\n\t\t\t\t\ti++;\n\t\t\t\t}i=0;\n\n\t\t\t\tif(a[0]==0 && a[1]==0){\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\telse if(a[0] != 1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(int k=0; k<a[1]-2; k++){\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}wk2=wk2+\"#\";\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tfor(int j=0; j<a[0]-2; j++){\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\n\t\t\t\telse if(a[0]==1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}", "try{\n\t\t\t\tname=br.readLine();\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\ta[i]=Integer.parseInt(st.nextToken());\n\t\t\t\t\ti++;\n\t\t\t\t}i=0;\n\n\t\t\t\tif(a[0]==0 && a[1]==0){\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\telse if(a[0] != 1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(int k=0; k<a[1]-2; k++){\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}wk2=wk2+\"#\";\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tfor(int j=0; j<a[0]-2; j++){\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\n\t\t\t\telse if(a[0]==1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "catch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "Exception e", "{\n\t\t\t\tSystem.exit(0);\n\t\t\t}", "System.exit(0)", "System.exit", "System", "0", "{\n\t\t\t\tname=br.readLine();\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t\twhile (st.hasMoreTokens()) {\n\t\t\t\t\ta[i]=Integer.parseInt(st.nextToken());\n\t\t\t\t\ti++;\n\t\t\t\t}i=0;\n\n\t\t\t\tif(a[0]==0 && a[1]==0){\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\telse if(a[0] != 1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(int k=0; k<a[1]-2; k++){\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}wk2=wk2+\"#\";\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tfor(int j=0; j<a[0]-2; j++){\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\n\t\t\t\telse if(a[0]==1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\t\t\t}", "name=br.readLine()", "name", "br.readLine()", "br.readLine", "br", "StringTokenizer st=new StringTokenizer(name,\" \");", "st", "new StringTokenizer(name,\" \")", "while (st.hasMoreTokens()) {\n\t\t\t\t\ta[i]=Integer.parseInt(st.nextToken());\n\t\t\t\t\ti++;\n\t\t\t\t}", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n\t\t\t\t\ta[i]=Integer.parseInt(st.nextToken());\n\t\t\t\t\ti++;\n\t\t\t\t}", "a[i]=Integer.parseInt(st.nextToken())", "a[i]", "a", "i", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "i++", "i", "i=0", "i", "0", "if(a[0]==0 && a[1]==0){\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}\n\n\t\t\t\telse if(a[0] != 1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(int k=0; k<a[1]-2; k++){\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}wk2=wk2+\"#\";\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tfor(int j=0; j<a[0]-2; j++){\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\n\t\t\t\telse if(a[0]==1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}", "a[0]==0 && a[1]==0", "a[0]==0", "a[0]", "a", "0", "0", "a[1]==0", "a[1]", "a", "1", "0", "{\n\t\t\t\t\tSystem.exit(0);\n\t\t\t\t}", "System.exit(0)", "System.exit", "System", "0", "if(a[0] != 1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(int k=0; k<a[1]-2; k++){\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}wk2=wk2+\"#\";\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tfor(int j=0; j<a[0]-2; j++){\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}\n\n\t\t\t\telse if(a[0]==1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}", "a[0] != 1", "a[0]", "a", "0", "1", "{\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tfor(int k=0; k<a[1]-2; k++){\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}wk2=wk2+\"#\";\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tfor(int j=0; j<a[0]-2; j++){\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}", "for(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<a[1]", "k", "a[1]", "a", "1", "k++", "k++", "k", "{\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}", "{\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}", "waku=waku+\"#\"", "waku", "waku+\"#\"", "waku", "\"#\"", "for(int k=0; k<a[1]-2; k++){\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<a[1]-2", "k", "a[1]-2", "a[1]", "a", "1", "2", "k++", "k++", "k", "{\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}", "{\n\t\t\t\t\t\twk2=wk2+\".\";\n\t\t\t\t\t}", "wk2=wk2+\".\"", "wk2", "wk2+\".\"", "wk2", "\".\"", "wk2=wk2+\"#\"", "wk2", "wk2+\"#\"", "wk2", "\"#\"", "System.out.println(waku)", "System.out.println", "System.out", "System", "System.out", "waku", "for(int j=0; j<a[0]-2; j++){\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<a[0]-2", "j", "a[0]-2", "a[0]", "a", "0", "2", "j++", "j++", "j", "{\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tSystem.out.println(wk2);\n\t\t\t\t\t}", "System.out.println(wk2)", "System.out.println", "System.out", "System", "System.out", "wk2", "System.out.println(waku)", "System.out.println", "System.out", "System", "System.out", "waku", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "waku=\"\"", "waku", "\"\"", "wk2=\"#\"", "wk2", "\"#\"", "if(a[0]==1){\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}", "a[0]==1", "a[0]", "a", "0", "1", "{\n\t\t\t\t\tfor(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println(waku);\n\t\t\t\t\tSystem.out.println(\"\");\n\t\t\t\t\twaku=\"\";\n\t\t\t\t\twk2=\"#\";\n\t\t\t\t}", "for(int k=0; k<a[1]; k++){\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}", "int k=0;", "int k=0;", "k", "0", "k<a[1]", "k", "a[1]", "a", "1", "k++", "k++", "k", "{\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}", "{\n\t\t\t\t\t\twaku=waku+\"#\";\n\t\t\t\t\t}", "waku=waku+\"#\"", "waku", "waku+\"#\"", "waku", "\"#\"", "System.out.println(waku)", "System.out.println", "System.out", "System", "System.out", "waku", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "waku=\"\"", "waku", "\"\"", "wk2=\"#\"", "wk2", "\"#\"", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; class Main{ public static void main(String[] args)throws IOException{ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); String name; int num; int compare; String waku=""; String wk2="#"; int[] a=new int[2]; int i=0; while(true){ try{ name=br.readLine(); StringTokenizer st=new StringTokenizer(name," "); while (st.hasMoreTokens()) { a[i]=Integer.parseInt(st.nextToken()); i++; }i=0; if(a[0]==0 && a[1]==0){ System.exit(0); } else if(a[0] != 1){ for(int k=0; k<a[1]; k++){ waku=waku+"#"; } for(int k=0; k<a[1]-2; k++){ wk2=wk2+"."; }wk2=wk2+"#"; System.out.println(waku); for(int j=0; j<a[0]-2; j++){ System.out.println(wk2); } System.out.println(waku); System.out.println(""); waku=""; wk2="#"; } else if(a[0]==1){ for(int k=0; k<a[1]; k++){ waku=waku+"#"; } System.out.println(waku); System.out.println(""); waku=""; wk2="#"; } } catch(Exception e){ System.exit(0); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 13, 0, 13, 4, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 30, 4, 18, 13, 13, 4, 18, 13, 13, 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, 4, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 4, 18, 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, 4, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 14, 2, 13, 17, 30, 4, 18, 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 ], [ 183, 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 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 29, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 46, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 14, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 72, 83 ], [ 83, 84 ], [ 84, 85 ], [ 72, 86 ], [ 87, 87 ], [ 87, 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 ], [ 105, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 104, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 104, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 123, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 123, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 142, 147 ], [ 87, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 71, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 154, 159 ], [ 14, 160 ], [ 160, 161 ], [ 12, 162 ], [ 162, 163 ], [ 183, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 183, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 174, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 0, 182 ], [ 182, 183 ], [ 182, 184 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tArrayList<Integer> hList = new ArrayList<Integer>();\n\t\tArrayList<Integer> wList = new ArrayList<Integer>();\n\t\tint H = 0;\n\t\tint W = 0;\n\n\t\twhile (true) {\n\n\t\t\tH = input();\n\t\t\tW = input();\n\n\t\t\tif (H == 0 && W == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\thList.add(H);\n\t\t\t\twList.add(W);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < hList.size(); i++) {\n\n\t\t\tfor (int j = 1; j <= hList.get(i); j++) {\n\n\t\t\t\tfor (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\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 Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tArrayList<Integer> hList = new ArrayList<Integer>();\n\t\tArrayList<Integer> wList = new ArrayList<Integer>();\n\t\tint H = 0;\n\t\tint W = 0;\n\n\t\twhile (true) {\n\n\t\t\tH = input();\n\t\t\tW = input();\n\n\t\t\tif (H == 0 && W == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\thList.add(H);\n\t\t\t\twList.add(W);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < hList.size(); i++) {\n\n\t\t\tfor (int j = 1; j <= hList.get(i); j++) {\n\n\t\t\t\tfor (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "Main", "public static Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "public static void main(String[] args) {\n\n\t\tArrayList<Integer> hList = new ArrayList<Integer>();\n\t\tArrayList<Integer> wList = new ArrayList<Integer>();\n\t\tint H = 0;\n\t\tint W = 0;\n\n\t\twhile (true) {\n\n\t\t\tH = input();\n\t\t\tW = input();\n\n\t\t\tif (H == 0 && W == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\thList.add(H);\n\t\t\t\twList.add(W);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < hList.size(); i++) {\n\n\t\t\tfor (int j = 1; j <= hList.get(i); j++) {\n\n\t\t\t\tfor (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t}\n\n\t\tclose();\n\n\t}", "main", "{\n\n\t\tArrayList<Integer> hList = new ArrayList<Integer>();\n\t\tArrayList<Integer> wList = new ArrayList<Integer>();\n\t\tint H = 0;\n\t\tint W = 0;\n\n\t\twhile (true) {\n\n\t\t\tH = input();\n\t\t\tW = input();\n\n\t\t\tif (H == 0 && W == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\thList.add(H);\n\t\t\t\twList.add(W);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < hList.size(); i++) {\n\n\t\t\tfor (int j = 1; j <= hList.get(i); j++) {\n\n\t\t\t\tfor (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t}\n\n\t\tclose();\n\n\t}", "ArrayList<Integer> hList = new ArrayList<Integer>();", "hList", "new ArrayList<Integer>()", "ArrayList<Integer> wList = new ArrayList<Integer>();", "wList", "new ArrayList<Integer>()", "int H = 0;", "H", "0", "int W = 0;", "W", "0", "while (true) {\n\n\t\t\tH = input();\n\t\t\tW = input();\n\n\t\t\tif (H == 0 && W == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\thList.add(H);\n\t\t\t\twList.add(W);\n\n\t\t\t}\n\t\t}", "true", "{\n\n\t\t\tH = input();\n\t\t\tW = input();\n\n\t\t\tif (H == 0 && W == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\thList.add(H);\n\t\t\t\twList.add(W);\n\n\t\t\t}\n\t\t}", "H = input()", "H", "input()", "input", "W = input()", "W", "input()", "input", "if (H == 0 && W == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\thList.add(H);\n\t\t\t\twList.add(W);\n\n\t\t\t}", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n\n\t\t\t\tbreak;\n\n\t\t\t}", "break;", "{\n\n\t\t\t\thList.add(H);\n\t\t\t\twList.add(W);\n\n\t\t\t}", "hList.add(H)", "hList.add", "hList", "H", "wList.add(W)", "wList.add", "wList", "W", "for (int i = 0; i < hList.size(); i++) {\n\n\t\t\tfor (int j = 1; j <= hList.get(i); j++) {\n\n\t\t\t\tfor (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < hList.size()", "i", "hList.size()", "hList.size", "hList", "i++", "i++", "i", "{\n\n\t\t\tfor (int j = 1; j <= hList.get(i); j++) {\n\n\t\t\t\tfor (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t}", "{\n\n\t\t\tfor (int j = 1; j <= hList.get(i); j++) {\n\n\t\t\t\tfor (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t}", "for (int j = 1; j <= hList.get(i); j++) {\n\n\t\t\t\tfor (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j <= hList.get(i)", "j", "hList.get(i)", "hList.get", "hList", "i", "j++", "j++", "j", "{\n\n\t\t\t\tfor (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}", "{\n\n\t\t\t\tfor (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}", "for (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "int k = 1;", "int k = 1;", "k", "1", "k <=wList.get(i)", "k", "wList.get(i)", "wList.get", "wList", "i", "k++", "k++", "k", "{\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "if (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "j == 1 || j == hList.get(i)", "j == 1", "j", "1", "j == hList.get(i)", "j", "hList.get(i)", "hList.get", "hList", "i", "{\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}", "k == 1 || k == wList.get(i)", "k == 1", "k", "1", "k == wList.get(i)", "k", "wList.get(i)", "wList.get", "wList", "i", "{\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\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", "\"\"", "close()", "close", "String[] args", "args", "public static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}", "input", "{\n\n\t\treturn scanner.nextInt();\n\n\t}", "return scanner.nextInt();", "scanner.nextInt()", "scanner.nextInt", "scanner", "public static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}", "close", "{\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}", "if (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}", "scanner != null", "scanner", "null", "{\n\n\t\t\tscanner.close();\n\n\t\t}", "scanner.close()", "scanner.close", "scanner", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tArrayList<Integer> hList = new ArrayList<Integer>();\n\t\tArrayList<Integer> wList = new ArrayList<Integer>();\n\t\tint H = 0;\n\t\tint W = 0;\n\n\t\twhile (true) {\n\n\t\t\tH = input();\n\t\t\tW = input();\n\n\t\t\tif (H == 0 && W == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\thList.add(H);\n\t\t\t\twList.add(W);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < hList.size(); i++) {\n\n\t\t\tfor (int j = 1; j <= hList.get(i); j++) {\n\n\t\t\t\tfor (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tArrayList<Integer> hList = new ArrayList<Integer>();\n\t\tArrayList<Integer> wList = new ArrayList<Integer>();\n\t\tint H = 0;\n\t\tint W = 0;\n\n\t\twhile (true) {\n\n\t\t\tH = input();\n\t\t\tW = input();\n\n\t\t\tif (H == 0 && W == 0) {\n\n\t\t\t\tbreak;\n\n\t\t\t} else {\n\n\t\t\t\thList.add(H);\n\t\t\t\twList.add(W);\n\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < hList.size(); i++) {\n\n\t\t\tfor (int j = 1; j <= hList.get(i); j++) {\n\n\t\t\t\tfor (int k = 1; k <=wList.get(i) ; k++) {\n\n\t\t\t\t\tif (j == 1 || j == hList.get(i)) {\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (k == 1 || k == wList.get(i)) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\t} else {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main { public static Scanner scanner = new Scanner(System.in); public static void main(String[] args) { ArrayList<Integer> hList = new ArrayList<Integer>(); ArrayList<Integer> wList = new ArrayList<Integer>(); int H = 0; int W = 0; while (true) { H = input(); W = input(); if (H == 0 && W == 0) { break; } else { hList.add(H); wList.add(W); } } for (int i = 0; i < hList.size(); i++) { for (int j = 1; j <= hList.get(i); j++) { for (int k = 1; k <=wList.get(i) ; k++) { if (j == 1 || j == hList.get(i)) { System.out.print("#"); } else { if (k == 1 || k == wList.get(i)) { System.out.print("#"); } else { System.out.print("."); } } } System.out.println(""); } System.out.println(""); } close(); } public static int input() { return scanner.nextInt(); } public static void close() { if (scanner != null) { scanner.close(); } } }
[ 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, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 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, 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 ], [ 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 ], [ 63, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 70, 80 ], [ 80, 81 ], [ 81, 82 ], [ 70, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 86, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 85, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 85, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 63, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 17, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 9, 131 ], [ 131, 132 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nclass Main{\n public static void main(String args[])throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n while(true){\n //String s = br.readLine();\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n if(h == 0 || w == 0) break;\n for(int i=0;i<h; i++){\n System.out.print(\"\");\n for(int j=0; j<w-1; j++){\n if((j>0 && j<w-1) && (i>0 && i<h-1)){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }\n System.out.println(\"#\");\n }\n System.out.print(\"\\n\");\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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n while(true){\n //String s = br.readLine();\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n if(h == 0 || w == 0) break;\n for(int i=0;i<h; i++){\n System.out.print(\"\");\n for(int j=0; j<w-1; j++){\n if((j>0 && j<w-1) && (i>0 && i<h-1)){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }\n System.out.println(\"#\");\n }\n System.out.print(\"\\n\");\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 s = br.readLine();\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n if(h == 0 || w == 0) break;\n for(int i=0;i<h; i++){\n System.out.print(\"\");\n for(int j=0; j<w-1; j++){\n if((j>0 && j<w-1) && (i>0 && i<h-1)){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }\n System.out.println(\"#\");\n }\n System.out.print(\"\\n\");\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n while(true){\n //String s = br.readLine();\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n if(h == 0 || w == 0) break;\n for(int i=0;i<h; i++){\n System.out.print(\"\");\n for(int j=0; j<w-1; j++){\n if((j>0 && j<w-1) && (i>0 && i<h-1)){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }\n System.out.println(\"#\");\n }\n System.out.print(\"\\n\");\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n //String s = br.readLine();\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n if(h == 0 || w == 0) break;\n for(int i=0;i<h; i++){\n System.out.print(\"\");\n for(int j=0; j<w-1; j++){\n if((j>0 && j<w-1) && (i>0 && i<h-1)){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }\n System.out.println(\"#\");\n }\n System.out.print(\"\\n\");\n }", "true", "{\n //String s = br.readLine();\n String[] str = br.readLine().split(\" \");\n int h = Integer.parseInt(str[0]);\n int w = Integer.parseInt(str[1]);\n if(h == 0 || w == 0) break;\n for(int i=0;i<h; i++){\n System.out.print(\"\");\n for(int j=0; j<w-1; j++){\n if((j>0 && j<w-1) && (i>0 && i<h-1)){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }\n System.out.println(\"#\");\n }\n System.out.print(\"\\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) break;", "h == 0 || w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "for(int i=0;i<h; i++){\n System.out.print(\"\");\n for(int j=0; j<w-1; j++){\n if((j>0 && j<w-1) && (i>0 && i<h-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 System.out.print(\"\");\n for(int j=0; j<w-1; j++){\n if((j>0 && j<w-1) && (i>0 && i<h-1)){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }\n System.out.println(\"#\");\n }", "{\n System.out.print(\"\");\n for(int j=0; j<w-1; j++){\n if((j>0 && j<w-1) && (i>0 && i<h-1)){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }\n System.out.println(\"#\");\n }", "System.out.print(\"\")", "System.out.print", "System.out", "System", "System.out", "\"\"", "for(int j=0; j<w-1; j++){\n if((j>0 && j<w-1) && (i>0 && i<h-1)){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }", "int j=0;", "int j=0;", "j", "0", "j<w-1", "j", "w-1", "w", "1", "j++", "j++", "j", "{\n if((j>0 && j<w-1) && (i>0 && i<h-1)){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }", "{\n if((j>0 && j<w-1) && (i>0 && i<h-1)){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }", "if((j>0 && j<w-1) && (i>0 && i<h-1)){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }", "(j>0 && j<w-1) && (i>0 && i<h-1)", "(j>0 && j<w-1)", "j>0", "j", "0", "j<w-1", "j", "w-1", "w", "1", "(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", "\".\"", "{\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.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "String args[]", "args" ]
import java.io.*; import java.util.*; class Main{ public static void main(String args[])throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ //String s = br.readLine(); 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++){ System.out.print(""); for(int j=0; j<w-1; j++){ if((j>0 && j<w-1) && (i>0 && i<h-1)){ System.out.print("."); }else{ System.out.print("#"); } } System.out.println("#"); } System.out.print("\n"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 4, 13, 13, 23, 13, 12, 13, 30, 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, 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 111, 5 ], [ 111, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 6, 17 ], [ 17, 18 ], [ 111, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 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 ], [ 43, 44 ], [ 24, 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 ], [ 57, 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 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 84, 94 ], [ 84, 95 ], [ 57, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 24, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 19, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner 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 System.out.print(\"#\");\n for (int j = 1; j < W - 1; j++) {\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\n }\n System.out.print(\"#\\n\");\n }\n System.out.print(\"\\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 in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner 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 System.out.print(\"#\");\n for (int j = 1; j < W - 1; j++) {\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\n }\n System.out.print(\"#\\n\");\n }\n System.out.print(\"\\n\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }", "main", "{\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }", "try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }", "{\n solve(in);\n }", "Scanner in = new Scanner(System.in)", "Scanner in = new Scanner(System.in)", "new Scanner(System.in)", "solve(in)", "solve", "in", "String[] args", "args", "private static void solve(Scanner 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 System.out.print(\"#\");\n for (int j = 1; j < W - 1; j++) {\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\n }\n System.out.print(\"#\\n\");\n }\n System.out.print(\"\\n\");\n }\n }", "solve", "{\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 System.out.print(\"#\");\n for (int j = 1; j < W - 1; j++) {\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\n }\n System.out.print(\"#\\n\");\n }\n System.out.print(\"\\n\");\n }\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 System.out.print(\"#\");\n for (int j = 1; j < W - 1; j++) {\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\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 System.out.print(\"#\");\n for (int j = 1; j < W - 1; j++) {\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\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 System.out.print(\"#\");\n for (int j = 1; j < W - 1; j++) {\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\n }\n System.out.print(\"#\\n\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n System.out.print(\"#\");\n for (int j = 1; j < W - 1; j++) {\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\n }\n System.out.print(\"#\\n\");\n }", "{\n System.out.print(\"#\");\n for (int j = 1; j < W - 1; j++) {\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\n }\n System.out.print(\"#\\n\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for (int j = 1; j < W - 1; j++) {\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\n }", "int j = 1;", "int j = 1;", "j", "1", "j < W - 1", "j", "W - 1", "W", "1", "j++", "j++", "j", "{\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\n }", "{\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\n }", "System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\")", "System.out.print", "System.out", "System", "System.out", "i == 0 || i == H - 1 ? \"#\" : \".\"", "i == 0 || i == H - 1", "i == 0", "i", "0", "i == H - 1", "i", "H - 1", "H", "1", "\"#\"", "\".\"", "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\"", "Scanner in", "in", "public class Main {\n\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner 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 System.out.print(\"#\");\n for (int j = 1; j < W - 1; j++) {\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\n }\n System.out.print(\"#\\n\");\n }\n System.out.print(\"\\n\");\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner 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 System.out.print(\"#\");\n for (int j = 1; j < W - 1; j++) {\n System.out.print(i == 0 || i == H - 1 ? \"#\" : \".\");\n }\n System.out.print(\"#\\n\");\n }\n System.out.print(\"\\n\");\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner in = new Scanner(System.in)) { solve(in); } } private static void solve(Scanner in) { while (true) { int H = in.nextInt(); int W = in.nextInt(); if (H == 0 && W == 0) { break; } for (int i = 0; i < H; i++) { System.out.print("#"); for (int j = 1; j < W - 1; j++) { System.out.print(i == 0 || i == H - 1 ? "#" : "."); } 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, 17, 11, 1, 30, 30, 0, 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, 4, 18, 18, 13, 13, 17, 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, 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 ], [ 129, 11 ], [ 129, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 24, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 27, 32 ], [ 24, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 38, 40 ], [ 24, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 46, 48 ], [ 24, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 24, 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 ], [ 70, 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 ], [ 109, 114 ], [ 70, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 24, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 12, 126 ], [ 126, 127 ], [ 0, 128 ], [ 128, 129 ], [ 128, 130 ] ]
[ "import 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\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = null;\n\t\tfor(;;) {\n\t\t\tstr = 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(w==0&&h==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\tfor(int l=0;l<w-2;l++){\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}System.out.println(\"#\");\n\t\t\t\t}System.out.println();\n\t\t}\n\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", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = null;\n\t\tfor(;;) {\n\t\t\tstr = 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(w==0&&h==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\tfor(int l=0;l<w-2;l++){\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}System.out.println(\"#\");\n\t\t\t\t}System.out.println();\n\t\t}\n\n\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = null;\n\t\tfor(;;) {\n\t\t\tstr = 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(w==0&&h==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\tfor(int l=0;l<w-2;l++){\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}System.out.println(\"#\");\n\t\t\t\t}System.out.println();\n\t\t}\n\n\n\t}", "main", "{\n\t\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = null;\n\t\tfor(;;) {\n\t\t\tstr = 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(w==0&&h==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\tfor(int l=0;l<w-2;l++){\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}System.out.println(\"#\");\n\t\t\t\t}System.out.println();\n\t\t}\n\n\n\t}", "BufferedReader br =new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String[] str = null;", "str", "null", "for(;;) {\n\t\t\tstr = 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(w==0&&h==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\tfor(int l=0;l<w-2;l++){\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}System.out.println(\"#\");\n\t\t\t\t}System.out.println();\n\t\t}", ";", "{\n\t\t\tstr = 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(w==0&&h==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\tfor(int l=0;l<w-2;l++){\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}System.out.println(\"#\");\n\t\t\t\t}System.out.println();\n\t\t}", "{\n\t\t\tstr = 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(w==0&&h==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\tfor(int l=0;l<w-2;l++){\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}System.out.println(\"#\");\n\t\t\t\t}System.out.println();\n\t\t}", "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(w==0&&h==0)break;", "w==0&&h==0", "w==0", "w", "0", "h==0", "h", "0", "break;", "for(int i=0;i<h;i++){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\tfor(int l=0;l<w-2;l++){\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}System.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\tSystem.out.print(\"#\");\n\t\t\t\tfor(int l=0;l<w-2;l++){\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}System.out.println(\"#\");\n\t\t\t\t}", "{\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\tfor(int l=0;l<w-2;l++){\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}System.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\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\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\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}", "if(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");", "i==0|i==h-1", "i==0", "i", "0", "i==h-1", "i", "h-1", "h", "1", "{System.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) throws IOException {\n\t\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = null;\n\t\tfor(;;) {\n\t\t\tstr = 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(w==0&&h==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\tfor(int l=0;l<w-2;l++){\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}System.out.println(\"#\");\n\t\t\t\t}System.out.println();\n\t\t}\n\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br =new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] str = null;\n\t\tfor(;;) {\n\t\t\tstr = 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(w==0&&h==0)break;\n\t\t\tfor(int i=0;i<h;i++){\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\tfor(int l=0;l<w-2;l++){\n\t\t\t\t\tif(i==0|i==h-1){System.out.print(\"#\");\n\t\t\t\t\t}else System.out.print(\".\");\n\t\t\t\t}System.out.println(\"#\");\n\t\t\t\t}System.out.println();\n\t\t}\n\n\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)); String[] str = null; for(;;) { str = br.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++){ System.out.print("#"); for(int l=0;l<w-2;l++){ 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, 41, 13, 41, 13, 41, 13, 41, 13, 42, 17, 30, 0, 13, 20, 0, 13, 4, 18, 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, 30, 4, 18, 18, 13, 13, 4, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 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, 0, 13, 17, 30, 0, 13, 17, 4, 18, 13, 13, 4, 18, 13, 17, 29, 4, 18, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 151, 5 ], [ 151, 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 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 28, 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 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 55, 57 ], [ 50, 58 ], [ 58, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 66, 67 ], [ 66, 68 ], [ 66, 69 ], [ 6, 70 ], [ 70, 71 ], [ 151, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 74, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 80, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 98, 99 ], [ 98, 100 ], [ 93, 101 ], [ 101, 102 ], [ 102, 103 ], [ 93, 104 ], [ 105, 105 ], [ 105, 106 ], [ 106, 107 ], [ 109, 108 ], [ 118, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 118, 118 ], [ 118, 119 ], [ 118, 120 ], [ 109, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 106, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 106, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 105, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 92, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 74, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 72, 146 ], [ 146, 147 ], [ 72, 148 ], [ 148, 149 ], [ 0, 150 ], [ 150, 151 ], [ 150, 152 ] ]
[ "import java.io.*;\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\tStringBuilder sb;\n\t\tString[] strs;\n\t\tint height, width;\n\t\tdo {\n\t\t\tsb\t\t= new StringBuilder();\n\t\t\tstrs\t= br.readLine().split(\"\\\\s+\");\n\t\t\theight\t= Integer.parseInt(strs[0]);\n\t\t\twidth\t= Integer.parseInt(strs[1]);\n\t\t\t\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(getFrame(height, width));\n\t\t\t}\n\t\t} while (true);\n\t}\n\t\n\tpublic static String getFrame(int height, int width) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\t\t\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}\n\t\t\t\tsb.append(str);\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\treturn sb.toString();\n\t}\n}", "import java.io.*;", "io.*", "java", "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\tStringBuilder sb;\n\t\tString[] strs;\n\t\tint height, width;\n\t\tdo {\n\t\t\tsb\t\t= new StringBuilder();\n\t\t\tstrs\t= br.readLine().split(\"\\\\s+\");\n\t\t\theight\t= Integer.parseInt(strs[0]);\n\t\t\twidth\t= Integer.parseInt(strs[1]);\n\t\t\t\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(getFrame(height, width));\n\t\t\t}\n\t\t} while (true);\n\t}\n\t\n\tpublic static String getFrame(int height, int width) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\t\t\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}\n\t\t\t\tsb.append(str);\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\treturn sb.toString();\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb;\n\t\tString[] strs;\n\t\tint height, width;\n\t\tdo {\n\t\t\tsb\t\t= new StringBuilder();\n\t\t\tstrs\t= br.readLine().split(\"\\\\s+\");\n\t\t\theight\t= Integer.parseInt(strs[0]);\n\t\t\twidth\t= Integer.parseInt(strs[1]);\n\t\t\t\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(getFrame(height, width));\n\t\t\t}\n\t\t} while (true);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb;\n\t\tString[] strs;\n\t\tint height, width;\n\t\tdo {\n\t\t\tsb\t\t= new StringBuilder();\n\t\t\tstrs\t= br.readLine().split(\"\\\\s+\");\n\t\t\theight\t= Integer.parseInt(strs[0]);\n\t\t\twidth\t= Integer.parseInt(strs[1]);\n\t\t\t\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(getFrame(height, width));\n\t\t\t}\n\t\t} while (true);\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb;", "sb", "String[] strs;", "strs", "int height", "height", "width;", "width", "do {\n\t\t\tsb\t\t= new StringBuilder();\n\t\t\tstrs\t= br.readLine().split(\"\\\\s+\");\n\t\t\theight\t= Integer.parseInt(strs[0]);\n\t\t\twidth\t= Integer.parseInt(strs[1]);\n\t\t\t\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(getFrame(height, width));\n\t\t\t}\n\t\t} while (true);", "true", "{\n\t\t\tsb\t\t= new StringBuilder();\n\t\t\tstrs\t= br.readLine().split(\"\\\\s+\");\n\t\t\theight\t= Integer.parseInt(strs[0]);\n\t\t\twidth\t= Integer.parseInt(strs[1]);\n\t\t\t\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(getFrame(height, width));\n\t\t\t}\n\t\t}", "sb\t\t= new StringBuilder()", "sb", "new StringBuilder()", "strs\t= br.readLine().split(\"\\\\s+\")", "strs", "br.readLine().split(\"\\\\s+\")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\"\\\\s+\"", "height\t= Integer.parseInt(strs[0])", "height", "Integer.parseInt(strs[0])", "Integer.parseInt", "Integer", "strs[0]", "strs", "0", "width\t= Integer.parseInt(strs[1])", "width", "Integer.parseInt(strs[1])", "Integer.parseInt", "Integer", "strs[1]", "strs", "1", "if (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(getFrame(height, width));\n\t\t\t}", "height == 0 && width == 0", "height == 0", "height", "0", "width == 0", "width", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tSystem.out.println(getFrame(height, width));\n\t\t\t}", "System.out.println(getFrame(height, width))", "System.out.println", "System.out", "System", "System.out", "getFrame(height, width)", "getFrame", "height", "width", "String[] args", "args", "public static String getFrame(int height, int width) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\t\t\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}\n\t\t\t\tsb.append(str);\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\treturn sb.toString();\n\t}", "getFrame", "{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\t\t\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}\n\t\t\t\tsb.append(str);\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\treturn sb.toString();\n\t}", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String str;", "str", "for (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}\n\t\t\t\tsb.append(str);\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < height", "i", "height", "i++", "i++", "i", "{\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}\n\t\t\t\tsb.append(str);\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}", "{\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}\n\t\t\t\tsb.append(str);\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}", "for (int j = 0; j < width; j++) {\n\t\t\t\tif (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}\n\t\t\t\tsb.append(str);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < width", "j", "width", "j++", "j++", "j", "{\n\t\t\t\tif (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}\n\t\t\t\tsb.append(str);\n\t\t\t}", "{\n\t\t\t\tif (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}\n\t\t\t\tsb.append(str);\n\t\t\t}", "if (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}", "i == 0 || i == (height - 1) || j == 0 || j == (width - 1)", "j == 0", "i == 0 || i == (height - 1) || j == 0 || j == (width - 1)", "i == 0", "i", "0", "i == (height - 1)", "i", "(height - 1)", "height", "1", "j == 0", "j", "0", "j == (width - 1)", "j", "(width - 1)", "width", "1", "{\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t}", "str = \"#\"", "str", "\"#\"", "{\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}", "str = \".\"", "str", "\".\"", "sb.append(str)", "sb.append", "sb", "str", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "int height", "height", "int width", "width", "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\tStringBuilder sb;\n\t\tString[] strs;\n\t\tint height, width;\n\t\tdo {\n\t\t\tsb\t\t= new StringBuilder();\n\t\t\tstrs\t= br.readLine().split(\"\\\\s+\");\n\t\t\theight\t= Integer.parseInt(strs[0]);\n\t\t\twidth\t= Integer.parseInt(strs[1]);\n\t\t\t\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(getFrame(height, width));\n\t\t\t}\n\t\t} while (true);\n\t}\n\t\n\tpublic static String getFrame(int height, int width) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\t\t\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}\n\t\t\t\tsb.append(str);\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\treturn sb.toString();\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\tStringBuilder sb;\n\t\tString[] strs;\n\t\tint height, width;\n\t\tdo {\n\t\t\tsb\t\t= new StringBuilder();\n\t\t\tstrs\t= br.readLine().split(\"\\\\s+\");\n\t\t\theight\t= Integer.parseInt(strs[0]);\n\t\t\twidth\t= Integer.parseInt(strs[1]);\n\t\t\t\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tSystem.out.println(getFrame(height, width));\n\t\t\t}\n\t\t} while (true);\n\t}\n\t\n\tpublic static String getFrame(int height, int width) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\t\t\n\t\tfor (int i = 0; i < height; i++) {\n\t\t\tfor (int j = 0; j < width; j++) {\n\t\t\t\tif (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) {\n\t\t\t\t\tstr = \"#\";\n\t\t\t\t} else {\n\t\t\t\t\tstr = \".\";\n\t\t\t\t}\n\t\t\t\tsb.append(str);\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\n\t\treturn sb.toString();\n\t}\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb; String[] strs; int height, width; do { sb = new StringBuilder(); strs = br.readLine().split("\\s+"); height = Integer.parseInt(strs[0]); width = Integer.parseInt(strs[1]); if (height == 0 && width == 0) { break; } else { System.out.println(getFrame(height, width)); } } while (true); } public static String getFrame(int height, int width) { StringBuilder sb = new StringBuilder(); String str; for (int i = 0; i < height; i++) { for (int j = 0; j < width; j++) { if (i == 0 || i == (height - 1) || j == 0 || j == (width - 1)) { str = "#"; } else { str = "."; } sb.append(str); } sb.append("\n"); } return sb.toString(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 42, 17, 30, 0, 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, 14, 2, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 8, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 19, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 30, 31 ], [ 30, 32 ], [ 16, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 38, 40 ], [ 16, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 16, 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 ], [ 97, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 104, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 77, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 16, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 6, 128 ], [ 128, 129 ] ]
[ "\nimport java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc =new Scanner(System.in);\n\t\tString[] input;\n\n\t\twhile(true){\n\t\t\tinput=sc.nextLine().split(\" \");\n\t\t\tint H = Integer.parseInt(input[0]);\n\t\t\tint W = Integer.parseInt(input[1]);\n\t\t\tif(H==0 && W==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int in1=0;in1<H;in1++){\n\t\t\t\tfor(int in2 =0; in2<W; in2++){\n\t\t\t\t\tif(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}\n\t\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", "class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc =new Scanner(System.in);\n\t\tString[] input;\n\n\t\twhile(true){\n\t\t\tinput=sc.nextLine().split(\" \");\n\t\t\tint H = Integer.parseInt(input[0]);\n\t\t\tint W = Integer.parseInt(input[1]);\n\t\t\tif(H==0 && W==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int in1=0;in1<H;in1++){\n\t\t\t\tfor(int in2 =0; in2<W; in2++){\n\t\t\t\t\tif(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}\n\t\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\tString[] input;\n\n\t\twhile(true){\n\t\t\tinput=sc.nextLine().split(\" \");\n\t\t\tint H = Integer.parseInt(input[0]);\n\t\t\tint W = Integer.parseInt(input[1]);\n\t\t\tif(H==0 && W==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int in1=0;in1<H;in1++){\n\t\t\t\tfor(int in2 =0; in2<W; in2++){\n\t\t\t\t\tif(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}\n\t\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\tString[] input;\n\n\t\twhile(true){\n\t\t\tinput=sc.nextLine().split(\" \");\n\t\t\tint H = Integer.parseInt(input[0]);\n\t\t\tint W = Integer.parseInt(input[1]);\n\t\t\tif(H==0 && W==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int in1=0;in1<H;in1++){\n\t\t\t\tfor(int in2 =0; in2<W; in2++){\n\t\t\t\t\tif(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}\n\t\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)", "String[] input;", "input", "while(true){\n\t\t\tinput=sc.nextLine().split(\" \");\n\t\t\tint H = Integer.parseInt(input[0]);\n\t\t\tint W = Integer.parseInt(input[1]);\n\t\t\tif(H==0 && W==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int in1=0;in1<H;in1++){\n\t\t\t\tfor(int in2 =0; in2<W; in2++){\n\t\t\t\t\tif(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tinput=sc.nextLine().split(\" \");\n\t\t\tint H = Integer.parseInt(input[0]);\n\t\t\tint W = Integer.parseInt(input[1]);\n\t\t\tif(H==0 && W==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int in1=0;in1<H;in1++){\n\t\t\t\tfor(int in2 =0; in2<W; in2++){\n\t\t\t\t\tif(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "input=sc.nextLine().split(\" \")", "input", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "int H = Integer.parseInt(input[0]);", "H", "Integer.parseInt(input[0])", "Integer.parseInt", "Integer", "input[0]", "input", "0", "int W = Integer.parseInt(input[1]);", "W", "Integer.parseInt(input[1])", "Integer.parseInt", "Integer", "input[1]", "input", "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 in1=0;in1<H;in1++){\n\t\t\t\tfor(int in2 =0; in2<W; in2++){\n\t\t\t\t\tif(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}\n\t\t\t\t}\n\t\t\t}", "int in1=0;", "int in1=0;", "in1", "0", "in1<H", "in1", "H", "in1++", "in1++", "in1", "{\n\t\t\t\tfor(int in2 =0; in2<W; in2++){\n\t\t\t\t\tif(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfor(int in2 =0; in2<W; in2++){\n\t\t\t\t\tif(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}\n\t\t\t\t}\n\t\t\t}", "for(int in2 =0; in2<W; in2++){\n\t\t\t\t\tif(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}\n\t\t\t\t}", "int in2 =0;", "int in2 =0;", "in2", "0", "in2<W", "in2", "W", "in2++", "in2++", "in2", "{\n\t\t\t\t\tif(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}\n\t\t\t\t}", "{\n\t\t\t\t\tif(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}\n\t\t\t\t}", "if(in1==0 || in1==H-1 || in2==0 || in2==W-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\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}", "in1==0 || in1==H-1 || in2==0 || in2==W-1", "in2==0", "in1==0 || in1==H-1 || in2==0 || in2==W-1", "in1==0", "in1", "0", "in1==H-1", "in1", "H-1", "H", "1", "in2==0", "in2", "0", "in2==W-1", "in2", "W-1", "W", "1", "{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\tif(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "if(in2==W-1){\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}", "in2==W-1", "in2", "W-1", "W", "1", "{\n\t\t\t\t\t\t\tSystem.out.println();\n\t\t\t\t\t\t}", "System.out.println()", "System.out.println", "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", "String args[]", "args" ]
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc =new Scanner(System.in); String[] input; while(true){ input=sc.nextLine().split(" "); int H = Integer.parseInt(input[0]); int W = Integer.parseInt(input[1]); if(H==0 && W==0){ break; } for(int in1=0;in1<H;in1++){ for(int in2 =0; in2<W; in2++){ if(in1==0 || in1==H-1 || in2==0 || in2==W-1){ System.out.print("#"); if(in2==W-1){ System.out.println(); } }else{ System.out.print("."); } } } System.out.println(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 20, 11, 1, 30, 30, 0, 13, 4, 18, 4, 18, 13, 17, 11, 1, 0, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 14, 2, 2, 18, 13, 17, 18, 13, 17, 17, 3, 11, 1, 0, 13, 17, 2, 13, 18, 13, 17, 1, 40, 13, 30, 30, 11, 1, 0, 13, 17, 2, 13, 18, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 18, 13, 17, 17, 2, 13, 17, 2, 13, 2, 18, 13, 17, 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 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 11, 16 ], [ 16, 17 ], [ 16, 18 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 24, 26 ], [ 11, 27 ], [ 27, 28 ], [ 27, 29 ], [ 30, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 33, 38 ], [ 30, 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 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 59, 61 ], [ 30, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 63, 71 ], [ 62, 72 ], [ 30, 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 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 88, 98 ], [ 98, 99 ], [ 99, 100 ], [ 88, 101 ], [ 102, 102 ], [ 102, 103 ], [ 103, 104 ], [ 106, 105 ], [ 117, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 117, 117 ], [ 117, 118 ], [ 117, 119 ], [ 106, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 103, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 103, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 87, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 30, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 9, 149 ], [ 149, 150 ] ]
[ "import java.io.*;\nimport java.util.Arrays;\nclass Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tint i,j;\n\t\tint[] n = new int[990];\n\t\tString[] str = new String[990];\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tfor(;;){\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tfor(i=0;i<2;i++){\n\t\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tif(n[0]+n[1]==0) break;\n\t\t\tfor(i=0;i<n[0];i++){\n\t\t\t\tfor(j=0;j<n[1];j++){\n\t\t\t\t\tif(i==0 || i==n[0]-1 || j==0 || j==n[1]-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.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tint i,j;\n\t\tint[] n = new int[990];\n\t\tString[] str = new String[990];\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tfor(;;){\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tfor(i=0;i<2;i++){\n\t\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tif(n[0]+n[1]==0) break;\n\t\t\tfor(i=0;i<n[0];i++){\n\t\t\t\tfor(j=0;j<n[1];j++){\n\t\t\t\t\tif(i==0 || i==n[0]-1 || j==0 || j==n[1]-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) throws IOException {\n\t\tint i,j;\n\t\tint[] n = new int[990];\n\t\tString[] str = new String[990];\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tfor(;;){\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tfor(i=0;i<2;i++){\n\t\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tif(n[0]+n[1]==0) break;\n\t\t\tfor(i=0;i<n[0];i++){\n\t\t\t\tfor(j=0;j<n[1];j++){\n\t\t\t\t\tif(i==0 || i==n[0]-1 || j==0 || j==n[1]-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\tint i,j;\n\t\tint[] n = new int[990];\n\t\tString[] str = new String[990];\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tfor(;;){\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tfor(i=0;i<2;i++){\n\t\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tif(n[0]+n[1]==0) break;\n\t\t\tfor(i=0;i<n[0];i++){\n\t\t\t\tfor(j=0;j<n[1];j++){\n\t\t\t\t\tif(i==0 || i==n[0]-1 || j==0 || j==n[1]-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}", "int i", "i", "j;", "j", "int[] n = new int[990];", "n", "new int[990]", "990", "String[] str = new String[990];", "str", "new String[990]", "990", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "for(;;){\n\t\t\tstr = in.readLine().split(\" \");\n\t\t\tfor(i=0;i<2;i++){\n\t\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tif(n[0]+n[1]==0) break;\n\t\t\tfor(i=0;i<n[0];i++){\n\t\t\t\tfor(j=0;j<n[1];j++){\n\t\t\t\t\tif(i==0 || i==n[0]-1 || j==0 || j==n[1]-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\t\tstr = in.readLine().split(\" \");\n\t\t\tfor(i=0;i<2;i++){\n\t\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tif(n[0]+n[1]==0) break;\n\t\t\tfor(i=0;i<n[0];i++){\n\t\t\t\tfor(j=0;j<n[1];j++){\n\t\t\t\t\tif(i==0 || i==n[0]-1 || j==0 || j==n[1]-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\t\tstr = in.readLine().split(\" \");\n\t\t\tfor(i=0;i<2;i++){\n\t\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t\t}\n\t\t\tif(n[0]+n[1]==0) break;\n\t\t\tfor(i=0;i<n[0];i++){\n\t\t\t\tfor(j=0;j<n[1];j++){\n\t\t\t\t\tif(i==0 || i==n[0]-1 || j==0 || j==n[1]-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}", "str = in.readLine().split(\" \")", "str", "in.readLine().split(\" \")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\" \"", "for(i=0;i<2;i++){\n\t\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t\t}", "i=0;", "i=0", "i", "0", "i<2", "i", "2", "i++", "i++", "i", "{\n\t\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t\t}", "{\n\t\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t\t}", "n[i] = Integer.parseInt(str[i])", "n[i]", "n", "i", "Integer.parseInt(str[i])", "Integer.parseInt", "Integer", "str[i]", "str", "i", "if(n[0]+n[1]==0) break;", "n[0]+n[1]==0", "n[0]+n[1]", "n[0]", "n", "0", "n[1]", "n", "1", "0", "break;", "for(i=0;i<n[0];i++){\n\t\t\t\tfor(j=0;j<n[1];j++){\n\t\t\t\t\tif(i==0 || i==n[0]-1 || j==0 || j==n[1]-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}", "i=0;", "i=0", "i", "0", "i<n[0]", "i", "n[0]", "n", "0", "i++", "i++", "i", "{\n\t\t\t\tfor(j=0;j<n[1];j++){\n\t\t\t\t\tif(i==0 || i==n[0]-1 || j==0 || j==n[1]-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(j=0;j<n[1];j++){\n\t\t\t\t\tif(i==0 || i==n[0]-1 || j==0 || j==n[1]-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(j=0;j<n[1];j++){\n\t\t\t\t\tif(i==0 || i==n[0]-1 || j==0 || j==n[1]-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}", "j=0;", "j=0", "j", "0", "j<n[1]", "j", "n[1]", "n", "1", "j++", "j++", "j", "{\n\t\t\t\t\tif(i==0 || i==n[0]-1 || j==0 || j==n[1]-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==n[0]-1 || j==0 || j==n[1]-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==n[0]-1 || j==0 || j==n[1]-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==n[0]-1 || j==0 || j==n[1]-1", "j==0", "i==0 || i==n[0]-1 || j==0 || j==n[1]-1", "i==0", "i", "0", "i==n[0]-1", "i", "n[0]-1", "n[0]", "n", "0", "1", "j==0", "j", "0", "j==n[1]-1", "j", "n[1]-1", "n[1]", "n", "1", "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.*; import java.util.Arrays; class Main{ public static void main(String[] args) throws IOException { int i,j; int[] n = new int[990]; String[] str = new String[990]; BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); for(;;){ str = in.readLine().split(" "); for(i=0;i<2;i++){ n[i] = Integer.parseInt(str[i]); } if(n[0]+n[1]==0) break; for(i=0;i<n[0];i++){ for(j=0;j<n[1];j++){ if(i==0 || i==n[0]-1 || j==0 || j==n[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, 42, 17, 30, 41, 13, 20, 14, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 3, 41, 13, 20, 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, 2, 2, 13, 17, 2, 13, 2, 18, 13, 17, 17, 2, 13, 17, 2, 13, 2, 18, 13, 17, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 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 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 19, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 18, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 42, 44 ], [ 35, 45 ], [ 45, 46 ], [ 46, 47 ], [ 35, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 50, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 68, 67 ], [ 79, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 79, 79 ], [ 79, 80 ], [ 79, 81 ], [ 68, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 65, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 65, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 49, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 14, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 108, 109 ], [ 109, 110 ], [ 6, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int[] a = new int[]{sc.nextInt(), sc.nextInt()};\n if (a[0] == 0 && a[1] == 0) {\n break;\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < a[0]; i++) {\n for (int j = 0; j < a[1]; j++) {\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }\n sb.append(\"\\n\");\n }\n System.out.println(sb.toString());\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int[] a = new int[]{sc.nextInt(), sc.nextInt()};\n if (a[0] == 0 && a[1] == 0) {\n break;\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < a[0]; i++) {\n for (int j = 0; j < a[1]; j++) {\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }\n sb.append(\"\\n\");\n }\n System.out.println(sb.toString());\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int[] a = new int[]{sc.nextInt(), sc.nextInt()};\n if (a[0] == 0 && a[1] == 0) {\n break;\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < a[0]; i++) {\n for (int j = 0; j < a[1]; j++) {\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }\n sb.append(\"\\n\");\n }\n System.out.println(sb.toString());\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n while (true) {\n int[] a = new int[]{sc.nextInt(), sc.nextInt()};\n if (a[0] == 0 && a[1] == 0) {\n break;\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < a[0]; i++) {\n for (int j = 0; j < a[1]; j++) {\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }\n sb.append(\"\\n\");\n }\n System.out.println(sb.toString());\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n int[] a = new int[]{sc.nextInt(), sc.nextInt()};\n if (a[0] == 0 && a[1] == 0) {\n break;\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < a[0]; i++) {\n for (int j = 0; j < a[1]; j++) {\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }\n sb.append(\"\\n\");\n }\n System.out.println(sb.toString());\n }", "true", "{\n int[] a = new int[]{sc.nextInt(), sc.nextInt()};\n if (a[0] == 0 && a[1] == 0) {\n break;\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < a[0]; i++) {\n for (int j = 0; j < a[1]; j++) {\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }\n sb.append(\"\\n\");\n }\n System.out.println(sb.toString());\n }", "int[] a = new int[]{sc.nextInt(), sc.nextInt()};", "a", "new int[]{sc.nextInt(), sc.nextInt()}", "if (a[0] == 0 && a[1] == 0) {\n break;\n }", "a[0] == 0 && a[1] == 0", "a[0] == 0", "a[0]", "a", "0", "0", "a[1] == 0", "a[1]", "a", "1", "0", "{\n break;\n }", "break;", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for (int i = 0; i < a[0]; i++) {\n for (int j = 0; j < a[1]; j++) {\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }\n sb.append(\"\\n\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < a[0]", "i", "a[0]", "a", "0", "i++", "i++", "i", "{\n for (int j = 0; j < a[1]; j++) {\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }\n sb.append(\"\\n\");\n }", "{\n for (int j = 0; j < a[1]; j++) {\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }\n sb.append(\"\\n\");\n }", "for (int j = 0; j < a[1]; j++) {\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < a[1]", "j", "a[1]", "a", "1", "j++", "j++", "j", "{\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }", "{\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }", "if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }", "i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1", "j != 0", "i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1", "i != 0", "i", "0", "i != a[0] - 1", "i", "a[0] - 1", "a[0]", "a", "0", "1", "j != 0", "j", "0", "j != a[1] - 1", "j", "a[1] - 1", "a[1]", "a", "1", "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.toString())", "System.out.println", "System.out", "System", "System.out", "sb.toString()", "sb.toString", "sb", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int[] a = new int[]{sc.nextInt(), sc.nextInt()};\n if (a[0] == 0 && a[1] == 0) {\n break;\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < a[0]; i++) {\n for (int j = 0; j < a[1]; j++) {\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }\n sb.append(\"\\n\");\n }\n System.out.println(sb.toString());\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n while (true) {\n int[] a = new int[]{sc.nextInt(), sc.nextInt()};\n if (a[0] == 0 && a[1] == 0) {\n break;\n }\n StringBuilder sb = new StringBuilder();\n for (int i = 0; i < a[0]; i++) {\n for (int j = 0; j < a[1]; j++) {\n if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) {\n sb.append(\".\");\n } else {\n sb.append(\"#\");\n }\n }\n sb.append(\"\\n\");\n }\n System.out.println(sb.toString());\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[] a = new int[]{sc.nextInt(), sc.nextInt()}; if (a[0] == 0 && a[1] == 0) { break; } StringBuilder sb = new StringBuilder(); for (int i = 0; i < a[0]; i++) { for (int j = 0; j < a[1]; j++) { if (i != 0 && i != a[0] - 1 && j != 0 && j != a[1] - 1) { sb.append("."); } else { sb.append("#"); } } sb.append("\n"); } System.out.println(sb.toString()); } } }
[ 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, 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, 4, 18, 18, 13, 13, 17, 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 ], [ 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 ], [ 14, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 54, 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 ], [ 78, 83 ], [ 64, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 54, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 90, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 97, 107 ], [ 107, 108 ], [ 108, 109 ], [ 97, 110 ], [ 111, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 90, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 90, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 14, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 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\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint H = Integer.parseInt(sc.next());\n\t\t\tint W = Integer.parseInt(sc.next());\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < H; i++) {\n\n\t\t\t\tif (i == 0 || i == H - 1) {\n\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\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\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 = Integer.parseInt(sc.next());\n\t\t\tint W = Integer.parseInt(sc.next());\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < H; i++) {\n\n\t\t\t\tif (i == 0 || i == H - 1) {\n\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\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\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 = Integer.parseInt(sc.next());\n\t\t\tint W = Integer.parseInt(sc.next());\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < H; i++) {\n\n\t\t\t\tif (i == 0 || i == H - 1) {\n\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\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint H = Integer.parseInt(sc.next());\n\t\t\tint W = Integer.parseInt(sc.next());\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < H; i++) {\n\n\t\t\t\tif (i == 0 || i == H - 1) {\n\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\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\t\t\tint H = Integer.parseInt(sc.next());\n\t\t\tint W = Integer.parseInt(sc.next());\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < H; i++) {\n\n\t\t\t\tif (i == 0 || i == H - 1) {\n\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\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}", "true", "{\n\t\t\tint H = Integer.parseInt(sc.next());\n\t\t\tint W = Integer.parseInt(sc.next());\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < H; i++) {\n\n\t\t\t\tif (i == 0 || i == H - 1) {\n\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\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}", "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 == 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\n\t\t\t\tif (i == 0 || i == H - 1) {\n\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\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n\n\t\t\t\tif (i == 0 || i == H - 1) {\n\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\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}", "{\n\n\t\t\t\tif (i == 0 || i == H - 1) {\n\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\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}", "if (i == 0 || i == H - 1) {\n\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\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}", "i == 0 || i == H - 1", "i == 0", "i", "0", "i == H - 1", "i", "H - 1", "H", "1", "{\n\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\tSystem.out.print(\"\\n\");\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", "\"#\"", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\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\t\tSystem.out.print(\".\");\n\t\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\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.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 (true) {\n\t\t\tint H = Integer.parseInt(sc.next());\n\t\t\tint W = Integer.parseInt(sc.next());\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < H; i++) {\n\n\t\t\t\tif (i == 0 || i == H - 1) {\n\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\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\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 = Integer.parseInt(sc.next());\n\t\t\tint W = Integer.parseInt(sc.next());\n\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < H; i++) {\n\n\t\t\t\tif (i == 0 || i == H - 1) {\n\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\tSystem.out.print(\"\\n\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor (int j = 0; j < W - 2; j++) {\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\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 = Integer.parseInt(sc.next()); int W = Integer.parseInt(sc.next()); 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("#"); } System.out.print("\n"); } else { System.out.print("#"); for (int j = 0; j < W - 2; j++) { System.out.print("."); } System.out.print("#"); System.out.print("\n"); } } System.out.print("\n"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 38, 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, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 136, 8 ], [ 136, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 30, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 30, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 50, 52 ], [ 30, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 30, 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 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 85, 86 ], [ 76, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 92, 91 ], [ 99, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 99, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 92, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 89, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 89, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 75, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 30, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 9, 133 ], [ 133, 134 ], [ 0, 135 ], [ 135, 136 ], [ 135, 137 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tString[] str=line.split(\" \");\n \tint x=Integer.parseInt(str[0]);\n \tint y=Integer.parseInt(str[1]);\n\n \tif(x==0&&y==0){\n \t\tbreak;\n \t}\n \tfor(int i=0;i<x;i++){\n \t\tfor(int j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 }\n }\n }\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 // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tString[] str=line.split(\" \");\n \tint x=Integer.parseInt(str[0]);\n \tint y=Integer.parseInt(str[1]);\n\n \tif(x==0&&y==0){\n \t\tbreak;\n \t}\n \tfor(int i=0;i<x;i++){\n \t\tfor(int j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 }\n }\n }\n\n}", "Main", "public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tString[] str=line.split(\" \");\n \tint x=Integer.parseInt(str[0]);\n \tint y=Integer.parseInt(str[1]);\n\n \tif(x==0&&y==0){\n \t\tbreak;\n \t}\n \tfor(int i=0;i<x;i++){\n \t\tfor(int j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 }\n }\n }", "main", "{\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tString[] str=line.split(\" \");\n \tint x=Integer.parseInt(str[0]);\n \tint y=Integer.parseInt(str[1]);\n\n \tif(x==0&&y==0){\n \t\tbreak;\n \t}\n \tfor(int i=0;i<x;i++){\n \t\tfor(int j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 }\n }\n }", "boolean first=true;", "first", "true", "try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tString[] str=line.split(\" \");\n \tint x=Integer.parseInt(str[0]);\n \tint y=Integer.parseInt(str[1]);\n\n \tif(x==0&&y==0){\n \t\tbreak;\n \t}\n \tfor(int i=0;i<x;i++){\n \t\tfor(int j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 }\n }", "{\n String line;\n while ((line = br.readLine()) != null) {\n \tString[] str=line.split(\" \");\n \tint x=Integer.parseInt(str[0]);\n \tint y=Integer.parseInt(str[1]);\n\n \tif(x==0&&y==0){\n \t\tbreak;\n \t}\n \tfor(int i=0;i<x;i++){\n \t\tfor(int j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "String line;", "line", "while ((line = br.readLine()) != null) {\n \tString[] str=line.split(\" \");\n \tint x=Integer.parseInt(str[0]);\n \tint y=Integer.parseInt(str[1]);\n\n \tif(x==0&&y==0){\n \t\tbreak;\n \t}\n \tfor(int i=0;i<x;i++){\n \t\tfor(int j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n \tString[] str=line.split(\" \");\n \tint x=Integer.parseInt(str[0]);\n \tint y=Integer.parseInt(str[1]);\n\n \tif(x==0&&y==0){\n \t\tbreak;\n \t}\n \tfor(int i=0;i<x;i++){\n \t\tfor(int j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 }", "String[] str=line.split(\" \");", "str", "line.split(\" \")", "line.split", "line", "\" \"", "int x=Integer.parseInt(str[0]);", "x", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "int y=Integer.parseInt(str[1]);", "y", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "if(x==0&&y==0){\n \t\tbreak;\n \t}", "x==0&&y==0", "x==0", "x", "0", "y==0", "y", "0", "{\n \t\tbreak;\n \t}", "break;", "for(int i=0;i<x;i++){\n \t\tfor(int j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n \t\tfor(int j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 j=0;", "int j=0;", "j", "0", "j<y", "j", "y", "j++", "j++", "j", "{\n \t\t\tif(i==0||j==0||i==x-1||j==y-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(i==0||j==0||i==x-1||j==y-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(i==0||j==0||i==x-1||j==y-1){\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}", "i==0||j==0||i==x-1||j==y-1", "i==x-1", "i==0||j==0||i==x-1||j==y-1", "i==0", "i", "0", "j==0", "j", "0", "i==x-1", "i", "x-1", "x", "1", "j==y-1", "j", "y-1", "y", "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", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tString[] str=line.split(\" \");\n \tint x=Integer.parseInt(str[0]);\n \tint y=Integer.parseInt(str[1]);\n\n \tif(x==0&&y==0){\n \t\tbreak;\n \t}\n \tfor(int i=0;i<x;i++){\n \t\tfor(int j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 }\n }\n }\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n boolean first=true;\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tString[] str=line.split(\" \");\n \tint x=Integer.parseInt(str[0]);\n \tint y=Integer.parseInt(str[1]);\n\n \tif(x==0&&y==0){\n \t\tbreak;\n \t}\n \tfor(int i=0;i<x;i++){\n \t\tfor(int j=0;j<y;j++){\n \t\t\tif(i==0||j==0||i==x-1||j==y-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 }\n }\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? boolean first=true; try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { String line; while ((line = br.readLine()) != null) { String[] str=line.split(" "); int x=Integer.parseInt(str[0]); int y=Integer.parseInt(str[1]); if(x==0&&y==0){ break; } for(int i=0;i<x;i++){ for(int j=0;j<y;j++){ if(i==0||j==0||i==x-1||j==y-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, 42, 2, 2, 13, 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, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 4, 18, 18, 13, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 110, 5 ], [ 110, 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 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 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 ], [ 58, 57 ], [ 67, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 67, 67 ], [ 67, 68 ], [ 67, 69 ], [ 58, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 55, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 55, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 41, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 28, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 28, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 28, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 6, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n while (h + w > 0) {\n \n \n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(j==0||j==w-1||i==0||i==h-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 h = scanner.nextInt();\n w = scanner.nextInt();\n }\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n while (h + w > 0) {\n \n \n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(j==0||j==w-1||i==0||i==h-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 h = scanner.nextInt();\n w = scanner.nextInt();\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n while (h + w > 0) {\n \n \n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(j==0||j==w-1||i==0||i==h-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 h = scanner.nextInt();\n w = scanner.nextInt();\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n while (h + w > 0) {\n \n \n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(j==0||j==w-1||i==0||i==h-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 h = scanner.nextInt();\n w = scanner.nextInt();\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int h = scanner.nextInt();", "h", "scanner.nextInt()", "scanner.nextInt", "scanner", "int w = scanner.nextInt();", "w", "scanner.nextInt()", "scanner.nextInt", "scanner", "while (h + w > 0) {\n \n \n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(j==0||j==w-1||i==0||i==h-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 h = scanner.nextInt();\n w = scanner.nextInt();\n }", "h + w > 0", "h + w", "h", "w", "0", "{\n \n \n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(j==0||j==w-1||i==0||i==h-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 h = scanner.nextInt();\n w = scanner.nextInt();\n }", "for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(j==0||j==w-1||i==0||i==h-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(j==0||j==w-1||i==0||i==h-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(j==0||j==w-1||i==0||i==h-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(j==0||j==w-1||i==0||i==h-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(j==0||j==w-1||i==0||i==h-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\"); \n \n }", "{\n if(j==0||j==w-1||i==0||i==h-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\"); \n \n }", "if(j==0||j==w-1||i==0||i==h-1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");", "j==0||j==w-1||i==0||i==h-1", "i==0", "j==0||j==w-1||i==0||i==h-1", "j==0", "j", "0", "j==w-1", "j", "w-1", "w", "1", "i==0", "i", "0", "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", "h = scanner.nextInt()", "h", "scanner.nextInt()", "scanner.nextInt", "scanner", "w = scanner.nextInt()", "w", "scanner.nextInt()", "scanner.nextInt", "scanner", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n while (h + w > 0) {\n \n \n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(j==0||j==w-1||i==0||i==h-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 h = scanner.nextInt();\n w = scanner.nextInt();\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n while (h + w > 0) {\n \n \n for(int i=0; i<h; i++){\n for(int j=0; j<w; j++){\n if(j==0||j==w-1||i==0||i==h-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 h = scanner.nextInt();\n w = scanner.nextInt();\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int h = scanner.nextInt(); int w = scanner.nextInt(); while (h + w > 0) { for(int i=0; i<h; i++){ for(int j=0; j<w; j++){ if(j==0||j==w-1||i==0||i==h-1) System.out.print("#"); else System.out.print("."); } System.out.println(); } System.out.println(); h = scanner.nextInt(); w = scanner.nextInt(); } } }
[ 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, 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, 17, 4, 18, 18, 13, 13, 17, 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 ], [ 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 ], [ 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 ], [ 120, 125 ], [ 14, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 6, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "import java.io.*;\n\npublic class Main{\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 line = br.readLine();\n\t\t\tString[] str = line.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 ){ //??\\????????¨??????0\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < h ; i++ ) {\n\t\t\t\tfor (int k = 0; k < w ; k++ ) {\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\tif ( k == 0 || k == (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\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main{\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 line = br.readLine();\n\t\t\tString[] str = line.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 ){ //??\\????????¨??????0\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < h ; i++ ) {\n\t\t\t\tfor (int k = 0; k < w ; k++ ) {\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\tif ( k == 0 || k == (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\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\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\twhile(true){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.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 ){ //??\\????????¨??????0\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < h ; i++ ) {\n\t\t\t\tfor (int k = 0; k < w ; k++ ) {\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\tif ( k == 0 || k == (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\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.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 ){ //??\\????????¨??????0\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < h ; i++ ) {\n\t\t\t\tfor (int k = 0; k < w ; k++ ) {\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\tif ( k == 0 || k == (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\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\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 line = br.readLine();\n\t\t\tString[] str = line.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 ){ //??\\????????¨??????0\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < h ; i++ ) {\n\t\t\t\tfor (int k = 0; k < w ; k++ ) {\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\tif ( k == 0 || k == (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\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}", "true", "{\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.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 ){ //??\\????????¨??????0\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < h ; i++ ) {\n\t\t\t\tfor (int k = 0; k < w ; k++ ) {\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\tif ( k == 0 || k == (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\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "String[] str = line.split(\" \");", "str", "line.split(\" \")", "line.split", "line", "\" \"", "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 ){ //??\\????????¨??????0\n\t\t\t\tbreak;\n\t\t\t}", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{ //??\\????????¨??????0\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (int i = 0; i < h ; i++ ) {\n\t\t\t\tfor (int k = 0; k < w ; k++ ) {\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\tif ( k == 0 || k == (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\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 k = 0; k < w ; k++ ) {\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\tif ( k == 0 || k == (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\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "{\n\t\t\t\tfor (int k = 0; k < w ; k++ ) {\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\tif ( k == 0 || k == (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\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "for (int k = 0; k < w ; k++ ) {\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\tif ( k == 0 || k == (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}", "int k = 0;", "int k = 0;", "k", "0", "k < w", "k", "w", "k++", "k++", "k", "{\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\tif ( k == 0 || k == (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\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\tif ( k == 0 || k == (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}", "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\tif ( k == 0 || k == (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}", "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\tif ( k == 0 || k == (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 ( k == 0 || k == (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}", "k == 0 || k == (w-1)", "k == 0", "k", "0", "k == (w-1)", "k", "(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) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.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 ){ //??\\????????¨??????0\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < h ; i++ ) {\n\t\t\t\tfor (int k = 0; k < w ; k++ ) {\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\tif ( k == 0 || k == (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\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}\n}", "public class Main{\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 line = br.readLine();\n\t\t\tString[] str = line.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 ){ //??\\????????¨??????0\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor (int i = 0; i < h ; i++ ) {\n\t\t\t\tfor (int k = 0; k < w ; k++ ) {\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\tif ( k == 0 || k == (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\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}\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 line = br.readLine(); String[] str = line.split(" "); int h = Integer.parseInt(str[0]); int w = Integer.parseInt(str[1]); if ( h == 0 && w == 0 ){ //??\????????¨??????0 break; } for (int i = 0; i < h ; i++ ) { for (int k = 0; k < w ; k++ ) { if ( i == 0 || i == (h-1)) { System.out.print("#"); }else{ if ( k == 0 || k == (w-1)) { System.out.print("#"); }else{ System.out.print("."); } } } System.out.print("\n"); } System.out.print("\n"); } } }
[ 7, 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, 13, 17, 2, 13, 13, 30, 4, 18, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 13, 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 ], [ 109, 2 ], [ 109, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 9, 11 ], [ 5, 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 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 60, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 74, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 46, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 14, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 5, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 3, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tint h = sc.nextInt();\n\t\t\tint w = sc.nextInt();\n\n\t\t\tif (h == 0 && w == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor (int i = 1; i <= h; i++) {\n\n\t\t\t\tfor (int j = 1; j <= w; j++) {\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tint h = sc.nextInt();\n\t\t\tint w = sc.nextInt();\n\n\t\t\tif (h == 0 && w == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor (int i = 1; i <= h; i++) {\n\n\t\t\t\tfor (int j = 1; j <= w; j++) {\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tint h = sc.nextInt();\n\t\t\tint w = sc.nextInt();\n\n\t\t\tif (h == 0 && w == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor (int i = 1; i <= h; i++) {\n\n\t\t\t\tfor (int j = 1; j <= w; j++) {\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tint h = sc.nextInt();\n\t\t\tint w = sc.nextInt();\n\n\t\t\tif (h == 0 && w == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor (int i = 1; i <= h; i++) {\n\n\t\t\t\tfor (int j = 1; j <= w; j++) {\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}", "java.util.Scanner sc = new java.util.Scanner(System.in);", "sc", "new java.util.Scanner(System.in)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while (true) {\n\t\t\tint h = sc.nextInt();\n\t\t\tint w = sc.nextInt();\n\n\t\t\tif (h == 0 && w == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor (int i = 1; i <= h; i++) {\n\n\t\t\t\tfor (int j = 1; j <= w; j++) {\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}", "true", "{\n\t\t\tint h = sc.nextInt();\n\t\t\tint w = sc.nextInt();\n\n\t\t\tif (h == 0 && w == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor (int i = 1; i <= h; i++) {\n\n\t\t\t\tfor (int j = 1; j <= w; j++) {\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\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\n\t\t\t\tfor (int j = 1; j <= w; j++) {\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= h", "i", "h", "i++", "i++", "i", "{\n\n\t\t\t\tfor (int j = 1; j <= w; j++) {\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}", "{\n\n\t\t\t\tfor (int j = 1; j <= w; j++) {\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}", "for (int j = 1; j <= w; j++) {\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j <= w", "j", "w", "j++", "j++", "j", "{\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}", "{\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}", "if (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}", "i == 1 || i == h", "i == 1", "i", "1", "i == h", "i", "h", "{\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t}", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "{\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}", "if (j == 1 || j == w) {\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}", "j == 1 || j == w", "j == 1", "j", "1", "j == w", "j", "w", "{\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\"", "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\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tint h = sc.nextInt();\n\t\t\tint w = sc.nextInt();\n\n\t\t\tif (h == 0 && w == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor (int i = 1; i <= h; i++) {\n\n\t\t\t\tfor (int j = 1; j <= w; j++) {\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\twhile (true) {\n\t\t\tint h = sc.nextInt();\n\t\t\tint w = sc.nextInt();\n\n\t\t\tif (h == 0 && w == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor (int i = 1; i <= h; i++) {\n\n\t\t\t\tfor (int j = 1; j <= w; j++) {\n\n\t\t\t\t\tif (i == 1 || i == h) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tif (j == 1 || j == w) {\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\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\n\t\tSystem.out.print(sb);\n\t}\n}", "Main" ]
public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? java.util.Scanner sc = new java.util.Scanner(System.in); StringBuilder sb = new StringBuilder(); 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) { sb.append("#"); } else { if (j == 1 || j == w) { 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, 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, 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 ], [ 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 ], [ 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 ] ]
[ "import java.util.*;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tint H, W;\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\t\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 k=0; k<W; k++){\n\t\t\t\t\tif(k==0 || k ==(W-1) || i==0 || i==(H-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\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\tint H, W;\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\t\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 k=0; k<W; k++){\n\t\t\t\t\tif(k==0 || k ==(W-1) || i==0 || i==(H-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\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\tint H, W;\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\t\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 k=0; k<W; k++){\n\t\t\t\t\tif(k==0 || k ==(W-1) || i==0 || i==(H-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\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "main", "{\n\t\tint H, W;\n\t\tScanner scan = new Scanner(System.in);\n\n\t\twhile(true){\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\t\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 k=0; k<W; k++){\n\t\t\t\t\tif(k==0 || k ==(W-1) || i==0 || i==(H-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\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t}", "int H", "H", "W;", "W", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true){\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\t\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 k=0; k<W; k++){\n\t\t\t\t\tif(k==0 || k ==(W-1) || i==0 || i==(H-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\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "true", "{\n\t\t\tH = scan.nextInt();\n\t\t\tW = scan.nextInt();\n\t\t\t\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 k=0; k<W; k++){\n\t\t\t\t\tif(k==0 || k ==(W-1) || i==0 || i==(H-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\tSystem.out.println(\"\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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", "H", "0", "W == 0", "W", "0", "{break;}", "break;", "for(int i=0; i<H; i++){\n\t\t\t\tfor(int k=0; k<W; k++){\n\t\t\t\t\tif(k==0 || k ==(W-1) || i==0 || i==(H-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\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 k=0; k<W; k++){\n\t\t\t\t\tif(k==0 || k ==(W-1) || i==0 || i==(H-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\tSystem.out.println(\"\");\n\t\t\t}", "{\n\t\t\t\tfor(int k=0; k<W; k++){\n\t\t\t\t\tif(k==0 || k ==(W-1) || i==0 || i==(H-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\tSystem.out.println(\"\");\n\t\t\t}", "for(int k=0; k<W; k++){\n\t\t\t\t\tif(k==0 || k ==(W-1) || i==0 || i==(H-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 k=0;", "int k=0;", "k", "0", "k<W", "k", "W", "k++", "k++", "k", "{\n\t\t\t\t\tif(k==0 || k ==(W-1) || i==0 || i==(H-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\tif(k==0 || k ==(W-1) || i==0 || i==(H-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(k==0 || k ==(W-1) || i==0 || i==(H-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}", "k==0 || k ==(W-1) || i==0 || i==(H-1)", "i==0", "k==0 || k ==(W-1) || i==0 || i==(H-1)", "k==0", "k", "0", "k ==(W-1)", "k", "(W-1)", "W", "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", "\"\"", "String args[]", "args" ]
import java.util.*; class Main{ public static void main(String args[]){ int H, W; Scanner scan = new Scanner(System.in); while(true){ H = scan.nextInt(); W = scan.nextInt(); if(H == 0 && W == 0){break;} for(int i=0; i<H; i++){ for(int k=0; k<W; k++){ if(k==0 || k ==(W-1) || i==0 || i==(H-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, 41, 13, 41, 13, 17, 41, 13, 17, 42, 17, 30, 0, 13, 4, 18, 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, 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, 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 ], [ 135, 11 ], [ 135, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 34, 39 ], [ 31, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 31, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 31, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 31, 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 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 95, 94 ], [ 102, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 102, 102 ], [ 102, 103 ], [ 102, 104 ], [ 95, 105 ], [ 105, 106 ], [ 105, 107 ], [ 92, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 92, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 78, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 31, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 14, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 12, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "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 StringBuilder strb = new StringBuilder();\n String[] data;\n int h = 0;\n int w = 0;\n while (true) {\n data = br.readLine().split(\" \");\n h = Integer.parseInt(data[0]);\n w = Integer.parseInt(data[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 1; i <= h; i++) {\n for (int j = 1; j <= w; j++) {\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }\n strb.append(\"\\n\");\n }\n strb.append(\"\\n\");\n }\n System.out.print(strb);\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 StringBuilder strb = new StringBuilder();\n String[] data;\n int h = 0;\n int w = 0;\n while (true) {\n data = br.readLine().split(\" \");\n h = Integer.parseInt(data[0]);\n w = Integer.parseInt(data[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 1; i <= h; i++) {\n for (int j = 1; j <= w; j++) {\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }\n strb.append(\"\\n\");\n }\n strb.append(\"\\n\");\n }\n System.out.print(strb);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder strb = new StringBuilder();\n String[] data;\n int h = 0;\n int w = 0;\n while (true) {\n data = br.readLine().split(\" \");\n h = Integer.parseInt(data[0]);\n w = Integer.parseInt(data[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 1; i <= h; i++) {\n for (int j = 1; j <= w; j++) {\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }\n strb.append(\"\\n\");\n }\n strb.append(\"\\n\");\n }\n System.out.print(strb);\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder strb = new StringBuilder();\n String[] data;\n int h = 0;\n int w = 0;\n while (true) {\n data = br.readLine().split(\" \");\n h = Integer.parseInt(data[0]);\n w = Integer.parseInt(data[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 1; i <= h; i++) {\n for (int j = 1; j <= w; j++) {\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }\n strb.append(\"\\n\");\n }\n strb.append(\"\\n\");\n }\n System.out.print(strb);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder strb = new StringBuilder();", "strb", "new StringBuilder()", "String[] data;", "data", "int h = 0;", "h", "0", "int w = 0;", "w", "0", "while (true) {\n data = br.readLine().split(\" \");\n h = Integer.parseInt(data[0]);\n w = Integer.parseInt(data[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 1; i <= h; i++) {\n for (int j = 1; j <= w; j++) {\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }\n strb.append(\"\\n\");\n }\n strb.append(\"\\n\");\n }", "true", "{\n data = br.readLine().split(\" \");\n h = Integer.parseInt(data[0]);\n w = Integer.parseInt(data[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 1; i <= h; i++) {\n for (int j = 1; j <= w; j++) {\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }\n strb.append(\"\\n\");\n }\n strb.append(\"\\n\");\n }", "data = br.readLine().split(\" \")", "data", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "h = Integer.parseInt(data[0])", "h", "Integer.parseInt(data[0])", "Integer.parseInt", "Integer", "data[0]", "data", "0", "w = Integer.parseInt(data[1])", "w", "Integer.parseInt(data[1])", "Integer.parseInt", "Integer", "data[1]", "data", "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 = 1; i <= h; i++) {\n for (int j = 1; j <= w; j++) {\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }\n strb.append(\"\\n\");\n }", "int i = 1;", "int i = 1;", "i", "1", "i <= h", "i", "h", "i++", "i++", "i", "{\n for (int j = 1; j <= w; j++) {\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }\n strb.append(\"\\n\");\n }", "{\n for (int j = 1; j <= w; j++) {\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }\n strb.append(\"\\n\");\n }", "for (int j = 1; j <= w; j++) {\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }", "int j = 1;", "int j = 1;", "j", "1", "j <= w", "j", "w", "j++", "j++", "j", "{\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }", "{\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }", "if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }", "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 strb.append(\"#\");\n }", "strb.append(\"#\")", "strb.append", "strb", "\"#\"", "{\n strb.append(\".\");\n }", "strb.append(\".\")", "strb.append", "strb", "\".\"", "strb.append(\"\\n\")", "strb.append", "strb", "\"\\n\"", "strb.append(\"\\n\")", "strb.append", "strb", "\"\\n\"", "System.out.print(strb)", "System.out.print", "System.out", "System", "System.out", "strb", "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 StringBuilder strb = new StringBuilder();\n String[] data;\n int h = 0;\n int w = 0;\n while (true) {\n data = br.readLine().split(\" \");\n h = Integer.parseInt(data[0]);\n w = Integer.parseInt(data[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 1; i <= h; i++) {\n for (int j = 1; j <= w; j++) {\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }\n strb.append(\"\\n\");\n }\n strb.append(\"\\n\");\n }\n System.out.print(strb);\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 StringBuilder strb = new StringBuilder();\n String[] data;\n int h = 0;\n int w = 0;\n while (true) {\n data = br.readLine().split(\" \");\n h = Integer.parseInt(data[0]);\n w = Integer.parseInt(data[1]);\n if (h == 0 && w == 0) {\n break;\n }\n for (int i = 1; i <= h; i++) {\n for (int j = 1; j <= w; j++) {\n if (i == 1 || i == h || j == 1 || j == w) {\n strb.append(\"#\");\n } else {\n strb.append(\".\");\n }\n }\n strb.append(\"\\n\");\n }\n strb.append(\"\\n\");\n }\n System.out.print(strb);\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)); StringBuilder strb = new StringBuilder(); String[] data; int h = 0; int w = 0; while (true) { data = br.readLine().split(" "); h = Integer.parseInt(data[0]); w = Integer.parseInt(data[1]); 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) { strb.append("#"); } else { strb.append("."); } } strb.append("\n"); } strb.append("\n"); } System.out.print(strb); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 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, 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, 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, 17, 4, 18, 18, 13, 13, 17, 23, 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 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 17, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 17, 54 ], [ 54, 55 ], [ 54, 56 ], [ 54, 57 ], [ 9, 58 ], [ 58, 59 ], [ 148, 60 ], [ 60, 61 ], [ 60, 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 ], [ 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 ], [ 96, 97 ], [ 96, 98 ], [ 89, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 89, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 107, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 107, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 75, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 62, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 60, 143 ], [ 143, 144 ], [ 60, 145 ], [ 145, 146 ], [ 0, 147 ], [ 147, 148 ], [ 147, 149 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t while (true) {\n\t\t String line = br.readLine();\n\t\t int H = Integer.parseInt(line.split(\" \")[0]);\n\t\t int W = Integer.parseInt(line.split(\" \")[1]);\n\n\t\t if (H == 0 && W == 0) break;\n\n\t\t display(H, W);\n\t }\n\t}\n\n\tpublic 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 (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tSystem.out.println(\"\");\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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t while (true) {\n\t\t String line = br.readLine();\n\t\t int H = Integer.parseInt(line.split(\" \")[0]);\n\t\t int W = Integer.parseInt(line.split(\" \")[1]);\n\n\t\t if (H == 0 && W == 0) break;\n\n\t\t display(H, W);\n\t }\n\t}\n\n\tpublic 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 (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t while (true) {\n\t\t String line = br.readLine();\n\t\t int H = Integer.parseInt(line.split(\" \")[0]);\n\t\t int W = Integer.parseInt(line.split(\" \")[1]);\n\n\t\t if (H == 0 && W == 0) break;\n\n\t\t display(H, W);\n\t }\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t while (true) {\n\t\t String line = br.readLine();\n\t\t int H = Integer.parseInt(line.split(\" \")[0]);\n\t\t int W = Integer.parseInt(line.split(\" \")[1]);\n\n\t\t if (H == 0 && W == 0) break;\n\n\t\t display(H, W);\n\t }\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\t\t String line = br.readLine();\n\t\t int H = Integer.parseInt(line.split(\" \")[0]);\n\t\t int W = Integer.parseInt(line.split(\" \")[1]);\n\n\t\t if (H == 0 && W == 0) break;\n\n\t\t display(H, W);\n\t }", "true", "{\n\t\t String line = br.readLine();\n\t\t int H = Integer.parseInt(line.split(\" \")[0]);\n\t\t int W = Integer.parseInt(line.split(\" \")[1]);\n\n\t\t if (H == 0 && W == 0) break;\n\n\t\t display(H, W);\n\t }", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "int H = Integer.parseInt(line.split(\" \")[0]);", "H", "Integer.parseInt(line.split(\" \")[0])", "Integer.parseInt", "Integer", "line.split(\" \")[0]", "line.split(\" \")", "line.split", "line", "\" \"", "0", "int W = Integer.parseInt(line.split(\" \")[1]);", "W", "Integer.parseInt(line.split(\" \")[1])", "Integer.parseInt", "Integer", "line.split(\" \")[1]", "line.split(\" \")", "line.split", "line", "\" \"", "1", "if (H == 0 && W == 0) break;", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "break;", "display(H, W)", "display", "H", "W", "String[] args", "args", "public 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 (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}\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 (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}\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 (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}\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 (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "{\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}\n\t\t\tSystem.out.println(\"\");\n\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}", "{\n\t\t\t\tif (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}", "if (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}", "i == 0 || i == h - 1", "i == 0", "i", "0", "i == h - 1", "i", "h - 1", "h", "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 (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 (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", "\"\"", "int h", "h", "int w", "w", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t while (true) {\n\t\t String line = br.readLine();\n\t\t int H = Integer.parseInt(line.split(\" \")[0]);\n\t\t int W = Integer.parseInt(line.split(\" \")[1]);\n\n\t\t if (H == 0 && W == 0) break;\n\n\t\t display(H, W);\n\t }\n\t}\n\n\tpublic 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 (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tSystem.out.println(\"\");\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\n\t while (true) {\n\t\t String line = br.readLine();\n\t\t int H = Integer.parseInt(line.split(\" \")[0]);\n\t\t int W = Integer.parseInt(line.split(\" \")[1]);\n\n\t\t if (H == 0 && W == 0) break;\n\n\t\t display(H, W);\n\t }\n\t}\n\n\tpublic 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 (i == 0 || i == h - 1) {\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t} else {\n\t\t\t\t\tif (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}\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\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(); int H = Integer.parseInt(line.split(" ")[0]); int W = Integer.parseInt(line.split(" ")[1]); if (H == 0 && W == 0) break; display(H, W); } } public static void display(int h, int w) { 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, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 42, 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, 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, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 17, 12, 13, 30, 4, 18, 20, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 4, 8 ], [ 8, 9 ], [ 4, 10 ], [ 10, 11 ], [ 4, 12 ], [ 12, 13 ], [ 4, 14 ], [ 14, 15 ], [ 14, 16 ], [ 4, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 19, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 19, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 19, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 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 ], [ 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 ], [ 49, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 49, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 49, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 49, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 135, 136 ], [ 135, 137 ], [ 130, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 4, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 142, 148 ], [ 148, 149 ] ]
[ "import java.util.Scanner;\nclass Main{\n int H,W,i,r;\n boolean x = true;\n public void solve(){\n Scanner sc = new Scanner(System.in);\n H = sc.nextInt();\n W = sc.nextInt();\n if(H == 0 && W == 0){\n x = false;\n }\n while(x == true){\n for(i = 0; i < H; i++){\n for(r = 0; r < W; r++){\n if(i == 0 || i == H-1 || r == 0 || r == 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 = sc.nextInt();\n W = sc.nextInt();\n if(H == 0 && W == 0){\n x = false;\n }\n }\n }\n public static void main(String[] args){\n new Main().solve();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n int H,W,i,r;\n boolean x = true;\n public void solve(){\n Scanner sc = new Scanner(System.in);\n H = sc.nextInt();\n W = sc.nextInt();\n if(H == 0 && W == 0){\n x = false;\n }\n while(x == true){\n for(i = 0; i < H; i++){\n for(r = 0; r < W; r++){\n if(i == 0 || i == H-1 || r == 0 || r == 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 = sc.nextInt();\n W = sc.nextInt();\n if(H == 0 && W == 0){\n x = false;\n }\n }\n }\n public static void main(String[] args){\n new Main().solve();\n }\n}", "Main", "int H", "H", "W", "W", "i", "i", "r;", "r", "boolean x = true;", "x", "true", "public void solve(){\n Scanner sc = new Scanner(System.in);\n H = sc.nextInt();\n W = sc.nextInt();\n if(H == 0 && W == 0){\n x = false;\n }\n while(x == true){\n for(i = 0; i < H; i++){\n for(r = 0; r < W; r++){\n if(i == 0 || i == H-1 || r == 0 || r == 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 = sc.nextInt();\n W = sc.nextInt();\n if(H == 0 && W == 0){\n x = false;\n }\n }\n }", "solve", "{\n Scanner sc = new Scanner(System.in);\n H = sc.nextInt();\n W = sc.nextInt();\n if(H == 0 && W == 0){\n x = false;\n }\n while(x == true){\n for(i = 0; i < H; i++){\n for(r = 0; r < W; r++){\n if(i == 0 || i == H-1 || r == 0 || r == 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 = sc.nextInt();\n W = sc.nextInt();\n if(H == 0 && W == 0){\n x = false;\n }\n }\n }", "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", "if(H == 0 && W == 0){\n x = false;\n }", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n x = false;\n }", "x = false", "x", "false", "while(x == true){\n for(i = 0; i < H; i++){\n for(r = 0; r < W; r++){\n if(i == 0 || i == H-1 || r == 0 || r == 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 = sc.nextInt();\n W = sc.nextInt();\n if(H == 0 && W == 0){\n x = false;\n }\n }", "x == true", "x", "true", "{\n for(i = 0; i < H; i++){\n for(r = 0; r < W; r++){\n if(i == 0 || i == H-1 || r == 0 || r == 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 = sc.nextInt();\n W = sc.nextInt();\n if(H == 0 && W == 0){\n x = false;\n }\n }", "for(i = 0; i < H; i++){\n for(r = 0; r < W; r++){\n if(i == 0 || i == H-1 || r == 0 || r == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "i = 0;", "i = 0", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n for(r = 0; r < W; r++){\n if(i == 0 || i == H-1 || r == 0 || r == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "{\n for(r = 0; r < W; r++){\n if(i == 0 || i == H-1 || r == 0 || r == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }\n System.out.println();\n }", "for(r = 0; r < W; r++){\n if(i == 0 || i == H-1 || r == 0 || r == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }", "r = 0;", "r = 0", "r", "0", "r < W", "r", "W", "r++", "r++", "r", "{\n if(i == 0 || i == H-1 || r == 0 || r == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }", "{\n if(i == 0 || i == H-1 || r == 0 || r == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }\n }", "if(i == 0 || i == H-1 || r == 0 || r == W-1){\n System.out.print(\"#\");\n }else{\n System.out.print(\".\");\n }", "i == 0 || i == H-1 || r == 0 || r == W-1", "r == 0", "i == 0 || i == H-1 || r == 0 || r == W-1", "i == 0", "i", "0", "i == H-1", "i", "H-1", "H", "1", "r == 0", "r", "0", "r == W-1", "r", "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", "H = sc.nextInt()", "H", "sc.nextInt()", "sc.nextInt", "sc", "W = sc.nextInt()", "W", "sc.nextInt()", "sc.nextInt", "sc", "if(H == 0 && W == 0){\n x = false;\n }", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n x = false;\n }", "x = false", "x", "false", "public static void main(String[] args){\n new Main().solve();\n }", "main", "{\n new Main().solve();\n }", "new Main().solve()", "new Main().solve", "new Main()", "String[] args", "args" ]
import java.util.Scanner; class Main{ int H,W,i,r; boolean x = true; public void solve(){ Scanner sc = new Scanner(System.in); H = sc.nextInt(); W = sc.nextInt(); if(H == 0 && W == 0){ x = false; } while(x == true){ for(i = 0; i < H; i++){ for(r = 0; r < W; r++){ if(i == 0 || i == H-1 || r == 0 || r == W-1){ System.out.print("#"); }else{ System.out.print("."); } } System.out.println(); } System.out.println(); H = sc.nextInt(); W = sc.nextInt(); if(H == 0 && W == 0){ x = false; } } } public static void main(String[] args){ new Main().solve(); } }
[ 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, 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 ], [ 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 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 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 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 49, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 80, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 93, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 48, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 35, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 6, 127 ], [ 127, 128 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n do {\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) {\n break;\n } else {\n for (int i = 0; i < h; i++) {\n if (i == 0 || i == h-1) {\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n } else {\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }\n System.out.println();\n }\n\n System.out.println();\n }\n\n } while (true);\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n do {\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) {\n break;\n } else {\n for (int i = 0; i < h; i++) {\n if (i == 0 || i == h-1) {\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n } else {\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }\n System.out.println();\n }\n\n System.out.println();\n }\n\n } while (true);\n }\n\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n do {\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) {\n break;\n } else {\n for (int i = 0; i < h; i++) {\n if (i == 0 || i == h-1) {\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n } else {\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }\n System.out.println();\n }\n\n System.out.println();\n }\n\n } while (true);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n do {\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) {\n break;\n } else {\n for (int i = 0; i < h; i++) {\n if (i == 0 || i == h-1) {\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n } else {\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }\n System.out.println();\n }\n\n System.out.println();\n }\n\n } while (true);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "do {\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) {\n break;\n } else {\n for (int i = 0; i < h; i++) {\n if (i == 0 || i == h-1) {\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n } else {\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }\n System.out.println();\n }\n\n System.out.println();\n }\n\n } while (true);", "true", "{\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0) {\n break;\n } else {\n for (int i = 0; i < h; i++) {\n if (i == 0 || i == h-1) {\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n } else {\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }\n System.out.println();\n }\n\n System.out.println();\n }\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) {\n break;\n } else {\n for (int i = 0; i < h; i++) {\n if (i == 0 || i == h-1) {\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n } else {\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }\n System.out.println();\n }\n\n System.out.println();\n }", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n break;\n }", "break;", "{\n for (int i = 0; i < h; i++) {\n if (i == 0 || i == h-1) {\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n } else {\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }\n System.out.println();\n }\n\n System.out.println();\n }", "for (int i = 0; i < h; i++) {\n if (i == 0 || i == h-1) {\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n } else {\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }\n System.out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n if (i == 0 || i == h-1) {\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n } else {\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }\n System.out.println();\n }", "{\n if (i == 0 || i == h-1) {\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n } else {\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }\n System.out.println();\n }", "if (i == 0 || i == h-1) {\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n } else {\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }", "i == 0 || i == h-1", "i == 0", "i", "0", "i == h-1", "i", "h-1", "h", "1", "{\n\n for (int j = 0; j < w; j++) {\n System.out.print('#');\n }\n\n }", "for (int j = 0; j < w; j++) {\n System.out.print('#');\n }", "int j = 0;", "int j = 0;", "j", "0", "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", "'#'", "{\n \n for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }\n }", "for (int j = 0; j < w; j++) {\n if (j==0 || j==w-1) {\n System.out.print('#');\n \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 (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }", "{\n if (j==0 || j==w-1) {\n System.out.print('#');\n \n } else {\n System.out.print('.');\n }\n \n }", "if (j==0 || j==w-1) {\n System.out.print('#');\n \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 \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); do { int h = sc.nextInt(); int w = sc.nextInt(); if (h == 0 && w == 0) { break; } else { 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(); } } while (true); } }
[ 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, 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, 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, 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 ], [ 141, 8 ], [ 141, 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 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 28, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 28, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 28, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 28, 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 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 92, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 92, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 78, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 28, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 9, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\n\t\ttry{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\twhile(true){\n String input = buf.readLine();\n\tString[] strAry = input.split(\" \");\n int H = Integer.parseInt(strAry[0]);\n int W = Integer.parseInt(strAry[1]);\n\t\n\tif(H == 0 && W == 0){\n\t\tbreak;\n\t}\n\t\n\tfor (int i = 0; i < H; i++) {\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\tSystem.out.printf(\"\\n\");\n\t}\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\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\n\t\ttry{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\twhile(true){\n String input = buf.readLine();\n\tString[] strAry = input.split(\" \");\n int H = Integer.parseInt(strAry[0]);\n int W = Integer.parseInt(strAry[1]);\n\t\n\tif(H == 0 && W == 0){\n\t\tbreak;\n\t}\n\t\n\tfor (int i = 0; i < H; i++) {\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\tSystem.out.printf(\"\\n\");\n\t}\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }\n }", "Main", "public static void main(String[] args) throws Exception {\n\t\n\t\ttry{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\twhile(true){\n String input = buf.readLine();\n\tString[] strAry = input.split(\" \");\n int H = Integer.parseInt(strAry[0]);\n int W = Integer.parseInt(strAry[1]);\n\t\n\tif(H == 0 && W == 0){\n\t\tbreak;\n\t}\n\t\n\tfor (int i = 0; i < H; i++) {\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\tSystem.out.printf(\"\\n\");\n\t}\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }", "main", "{\n\t\n\t\ttry{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\twhile(true){\n String input = buf.readLine();\n\tString[] strAry = input.split(\" \");\n int H = Integer.parseInt(strAry[0]);\n int W = Integer.parseInt(strAry[1]);\n\t\n\tif(H == 0 && W == 0){\n\t\tbreak;\n\t}\n\t\n\tfor (int i = 0; i < H; i++) {\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\tSystem.out.printf(\"\\n\");\n\t}\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }", "try{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\twhile(true){\n String input = buf.readLine();\n\tString[] strAry = input.split(\" \");\n int H = Integer.parseInt(strAry[0]);\n int W = Integer.parseInt(strAry[1]);\n\t\n\tif(H == 0 && W == 0){\n\t\tbreak;\n\t}\n\t\n\tfor (int i = 0; i < H; i++) {\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\tSystem.out.printf(\"\\n\");\n\t}\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}", "catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}", "Exception e", "{\n\n\tSystem.out.println(\"????????????\");\n\t\n}", "System.out.println(\"????????????\")", "System.out.println", "System.out", "System", "System.out", "\"????????????\"", "{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\twhile(true){\n String input = buf.readLine();\n\tString[] strAry = input.split(\" \");\n int H = Integer.parseInt(strAry[0]);\n int W = Integer.parseInt(strAry[1]);\n\t\n\tif(H == 0 && W == 0){\n\t\tbreak;\n\t}\n\t\n\tfor (int i = 0; i < H; i++) {\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\tSystem.out.printf(\"\\n\");\n\t}\n}", "BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));", "buf", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n String input = buf.readLine();\n\tString[] strAry = input.split(\" \");\n int H = Integer.parseInt(strAry[0]);\n int W = Integer.parseInt(strAry[1]);\n\t\n\tif(H == 0 && W == 0){\n\t\tbreak;\n\t}\n\t\n\tfor (int i = 0; i < H; i++) {\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\tSystem.out.printf(\"\\n\");\n\t}", "true", "{\n String input = buf.readLine();\n\tString[] strAry = input.split(\" \");\n int H = Integer.parseInt(strAry[0]);\n int W = Integer.parseInt(strAry[1]);\n\t\n\tif(H == 0 && W == 0){\n\t\tbreak;\n\t}\n\t\n\tfor (int i = 0; i < H; i++) {\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\tSystem.out.printf(\"\\n\");\n\t}", "String input = buf.readLine();", "input", "buf.readLine()", "buf.readLine", "buf", "String[] strAry = input.split(\" \");", "strAry", "input.split(\" \")", "input.split", "input", "\" \"", "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){\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 i = 0; i < H; i++) {\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}", "{\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}", "for(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}", "{\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}", "if((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}", "(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\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\tSystem.out.printf(\".\");\n\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\tpublic static void main(String[] args) throws Exception {\n\t\n\t\ttry{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\twhile(true){\n String input = buf.readLine();\n\tString[] strAry = input.split(\" \");\n int H = Integer.parseInt(strAry[0]);\n int W = Integer.parseInt(strAry[1]);\n\t\n\tif(H == 0 && W == 0){\n\t\tbreak;\n\t}\n\t\n\tfor (int i = 0; i < H; i++) {\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\tSystem.out.printf(\"\\n\");\n\t}\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }\n }", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\n\t\ttry{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\n\twhile(true){\n String input = buf.readLine();\n\tString[] strAry = input.split(\" \");\n int H = Integer.parseInt(strAry[0]);\n int W = Integer.parseInt(strAry[1]);\n\t\n\tif(H == 0 && W == 0){\n\t\tbreak;\n\t}\n\t\n\tfor (int i = 0; i < H; i++) {\n\t\tfor(int j = 0; j < W; j++){\n\t\t\tif((i == 0 || i == H-1) || (j ==0 || j == W-1)){\n\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}else{\n\t\t\tSystem.out.printf(\".\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\tSystem.out.printf(\"\\n\");\n\t}\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }\n }", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { try{ BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); while(true){ String input = buf.readLine(); String[] strAry = input.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++) { for(int j = 0; j < W; j++){ if((i == 0 || i == H-1) || (j ==0 || j == W-1)){ System.out.printf("#"); }else{ System.out.printf("."); } } System.out.printf("\n"); } System.out.printf("\n"); } } catch (Exception e) { 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, 13, 17, 2, 13, 13, 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 ], [ 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 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 62, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 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\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 1; i <= a; i++) {\n\t\t\t\tfor (int c = 1; c <= b; c++) {\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t System.out.println();\n\t\t\t}\n\t\t System.out.println();\n\t\t}\n }\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 a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 1; i <= a; i++) {\n\t\t\t\tfor (int c = 1; c <= b; c++) {\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t System.out.println();\n\t\t\t}\n\t\t System.out.println();\n\t\t}\n }\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 1; i <= a; i++) {\n\t\t\t\tfor (int c = 1; c <= b; c++) {\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t System.out.println();\n\t\t\t}\n\t\t System.out.println();\n\t\t}\n }", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 1; i <= a; i++) {\n\t\t\t\tfor (int c = 1; c <= b; c++) {\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t System.out.println();\n\t\t\t}\n\t\t System.out.println();\n\t\t}\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 1; i <= a; i++) {\n\t\t\t\tfor (int c = 1; c <= b; c++) {\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t System.out.println();\n\t\t\t}\n\t\t System.out.println();\n\t\t}", "true", "{\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 1; i <= a; i++) {\n\t\t\t\tfor (int c = 1; c <= b; c++) {\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t System.out.println();\n\t\t\t}\n\t\t System.out.println();\n\t\t}", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "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 = 1; i <= a; i++) {\n\t\t\t\tfor (int c = 1; c <= b; c++) {\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t System.out.println();\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= a", "i", "a", "i++", "i++", "i", "{\n\t\t\t\tfor (int c = 1; c <= b; c++) {\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t System.out.println();\n\t\t\t}", "{\n\t\t\t\tfor (int c = 1; c <= b; c++) {\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t System.out.println();\n\t\t\t}", "for (int c = 1; c <= b; c++) {\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}", "int c = 1;", "int c = 1;", "c", "1", "c <= b", "c", "b", "c++", "c++", "c", "{\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}", "{\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}", "if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }", "i == 1 || i == a || c == 1 | c == b", "i == 1 || i == a || c == 1 | c == b", "i == 1", "i", "1", "i == a", "i", "a", "c == 1 | c == b", "c == 1", "c", "1", "c == b", "c", "b", "{\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t }", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }", "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", "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 a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 1; i <= a; i++) {\n\t\t\t\tfor (int c = 1; c <= b; c++) {\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t System.out.println();\n\t\t\t}\n\t\t System.out.println();\n\t\t}\n }\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 a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0)\n\t\t\t\tbreak;\n\t\t\tfor (int i = 1; i <= a; i++) {\n\t\t\t\tfor (int c = 1; c <= b; c++) {\n\t\t\t\t if ( i == 1 || i == a || c == 1 | c == b ) {\n\t\t\t\t \t System.out.printf(\"#\");\n\t\t\t\t } else {\n\t\t\t\t \t System.out.printf(\".\");\n\t\t\t\t }\n\t\t\t\t}\n\t\t\t\t System.out.println();\n\t\t\t}\n\t\t System.out.println();\n\t\t}\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 a = sc.nextInt(); int b = sc.nextInt(); if (a == 0 && b == 0) break; for (int i = 1; i <= a; i++) { for (int c = 1; c <= b; c++) { if ( i == 1 || i == a || c == 1 | c == b ) { 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, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 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, 17, 13, 2, 17, 13, 30, 14, 2, 2, 13, 13, 2, 13, 13, 30, 4, 18, 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 ], [ 121, 5 ], [ 121, 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 ], [ 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 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 79, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 70, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 56, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 24, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 6, 118 ], [ 118, 119 ], [ 0, 120 ], [ 120, 121 ], [ 120, 122 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n for(int i=1;i>0; i++){\n int H = scanner.nextInt();\n int W = scanner.nextInt();\n if(H==0&&W==0)break;\n for(int j=1;j<=H; j++){\n for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }\n }\n System.out.println();\n }\n System.out.println();\n } \n}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner scanner = new Scanner(System.in);\n for(int i=1;i>0; i++){\n int H = scanner.nextInt();\n int W = scanner.nextInt();\n if(H==0&&W==0)break;\n for(int j=1;j<=H; j++){\n for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\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 scanner = new Scanner(System.in);\n for(int i=1;i>0; i++){\n int H = scanner.nextInt();\n int W = scanner.nextInt();\n if(H==0&&W==0)break;\n for(int j=1;j<=H; j++){\n for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }\n }\n System.out.println();\n }\n System.out.println();\n } \n}", "main", "{\n Scanner scanner = new Scanner(System.in);\n for(int i=1;i>0; i++){\n int H = scanner.nextInt();\n int W = scanner.nextInt();\n if(H==0&&W==0)break;\n for(int j=1;j<=H; j++){\n for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\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", "new Scanner(System.in)", "for(int i=1;i>0; i++){\n int H = scanner.nextInt();\n int W = scanner.nextInt();\n if(H==0&&W==0)break;\n for(int j=1;j<=H; j++){\n for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }\n }\n System.out.println();\n }\n System.out.println();\n }", "int i=1;", "int i=1;", "i", "1", "i>0", "i", "0", "i++", "i++", "i", "{\n int H = scanner.nextInt();\n int W = scanner.nextInt();\n if(H==0&&W==0)break;\n for(int j=1;j<=H; j++){\n for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }\n }\n System.out.println();\n }\n System.out.println();\n }", "{\n int H = scanner.nextInt();\n int W = scanner.nextInt();\n if(H==0&&W==0)break;\n for(int j=1;j<=H; j++){\n for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }\n }\n System.out.println();\n }\n System.out.println();\n }", "int H = scanner.nextInt();", "H", "scanner.nextInt()", "scanner.nextInt", "scanner", "int W = scanner.nextInt();", "W", "scanner.nextInt()", "scanner.nextInt", "scanner", "if(H==0&&W==0)break;", "H==0&&W==0", "H==0", "H", "0", "W==0", "W", "0", "break;", "for(int j=1;j<=H; j++){\n for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }\n }\n System.out.println();\n }", "int j=1;", "int j=1;", "j", "1", "j<=H", "j", "H", "j++", "j++", "j", "{\n for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }\n }\n System.out.println();\n }", "{\n for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }\n }\n System.out.println();\n }", "for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }\n }", "int k=1;", "int k=1;", "k", "1", "k<=W", "k", "W", "k++", "k++", "k", "{\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }\n }", "{\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }\n }", "if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }", "1<j&&1<k", "1<j", "1", "j", "1<k", "1", "k", "{\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }", "if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }", "j<H&&k<W", "j<H", "j", "H", "k<W", "k", "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", "\"#\"", "{\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 Scanner scanner = new Scanner(System.in);\n for(int i=1;i>0; i++){\n int H = scanner.nextInt();\n int W = scanner.nextInt();\n if(H==0&&W==0)break;\n for(int j=1;j<=H; j++){\n for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\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 Scanner scanner = new Scanner(System.in);\n for(int i=1;i>0; i++){\n int H = scanner.nextInt();\n int W = scanner.nextInt();\n if(H==0&&W==0)break;\n for(int j=1;j<=H; j++){\n for(int k=1;k<=W; k++){\n if(1<j&&1<k){\n if(j<H&&k<W){\n System.out.print(\".\");\n }else{\n System.out.print(\"#\");\n }\n }else{\n System.out.print(\"#\"); \n }\n }\n System.out.println();\n }\n System.out.println();\n } \n}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scanner = new Scanner(System.in); for(int i=1;i>0; i++){ int H = scanner.nextInt(); int W = scanner.nextInt(); if(H==0&&W==0)break; for(int j=1;j<=H; j++){ for(int k=1;k<=W; k++){ if(1<j&&1<k){ if(j<H&&k<W){ System.out.print("."); }else{ 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, 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, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 125, 5 ], [ 125, 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 ], [ 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 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 48, 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 ], [ 47, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 14, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 6, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n while (true) {\n int H = scan.nextInt(), W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int h = 0; h < H; h++) {\n if (h == 0 || h == H - 1) {\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n } else {\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\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 scan = new Scanner(System.in);\n\n while (true) {\n int H = scan.nextInt(), W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int h = 0; h < H; h++) {\n if (h == 0 || h == H - 1) {\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n } else {\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n }\n System.out.println();\n }\n System.out.println();\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n while (true) {\n int H = scan.nextInt(), W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int h = 0; h < H; h++) {\n if (h == 0 || h == H - 1) {\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n } else {\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n\n while (true) {\n int H = scan.nextInt(), W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int h = 0; h < H; h++) {\n if (h == 0 || h == H - 1) {\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n } else {\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n }\n System.out.println();\n }\n System.out.println();\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (true) {\n int H = scan.nextInt(), W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int h = 0; h < H; h++) {\n if (h == 0 || h == H - 1) {\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n } else {\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n }\n System.out.println();\n }\n System.out.println();\n }", "true", "{\n int H = scan.nextInt(), W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int h = 0; h < H; h++) {\n if (h == 0 || h == H - 1) {\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n } else {\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n }\n System.out.println();\n }\n System.out.println();\n }", "int H = scan.nextInt()", "H", "scan.nextInt()", "scan.nextInt", "scan", "W = scan.nextInt();", "W", "scan.nextInt()", "scan.nextInt", "scan", "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 if (h == 0 || h == H - 1) {\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n } else {\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n }\n System.out.println();\n }", "int h = 0;", "int h = 0;", "h", "0", "h < H", "h", "H", "h++", "h++", "h", "{\n if (h == 0 || h == H - 1) {\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n } else {\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n }\n System.out.println();\n }", "{\n if (h == 0 || h == H - 1) {\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n } else {\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n }\n System.out.println();\n }", "if (h == 0 || h == H - 1) {\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n } else {\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n }", "h == 0 || h == H - 1", "h == 0", "h", "0", "h == H - 1", "h", "H - 1", "H", "1", "{\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n }", "for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }", "int w = 0;", "int w = 0;", "w", "0", "w < W", "w", "W", "w++", "w++", "w", "{\n System.out.print(\"#\");\n }", "{\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < W - 2", "i", "W - 2", "W", "2", "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.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 Scanner scan = new Scanner(System.in);\n\n while (true) {\n int H = scan.nextInt(), W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int h = 0; h < H; h++) {\n if (h == 0 || h == H - 1) {\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n } else {\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\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 scan = new Scanner(System.in);\n\n while (true) {\n int H = scan.nextInt(), W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int h = 0; h < H; h++) {\n if (h == 0 || h == H - 1) {\n for (int w = 0; w < W; w++) {\n System.out.print(\"#\");\n }\n } else {\n System.out.print(\"#\");\n for (int i = 0; i < W - 2; i++) {\n System.out.print(\".\");\n }\n System.out.print(\"#\");\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 scan = new Scanner(System.in); while (true) { int H = scan.nextInt(), W = scan.nextInt(); if (H == 0 && W == 0) { break; } for (int h = 0; h < H; h++) { if (h == 0 || h == H - 1) { for (int w = 0; w < W; w++) { System.out.print("#"); } } else { System.out.print("#"); for (int i = 0; i < W - 2; i++) { System.out.print("."); } 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, 13, 13, 14, 2, 2, 18, 13, 17, 17, 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, 13, 2, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 2, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 29, 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 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 28, 40 ], [ 14, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 48, 50 ], [ 41, 51 ], [ 51, 52 ], [ 52, 53 ], [ 41, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 56, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 71, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 71, 86 ], [ 86, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 88, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 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 ], [ 14, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 6, 121 ], [ 121, 122 ], [ 4, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 129, 130 ], [ 129, 131 ], [ 125, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 139, 141 ], [ 132, 142 ], [ 142, 143 ], [ 143, 144 ], [ 132, 145 ], [ 146, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 154, 155 ], [ 154, 156 ], [ 125, 157 ], [ 157, 158 ], [ 123, 159 ], [ 159, 160 ] ]
[ "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\twhile(true){\n\t\t\tString lns[] = br.readLine().split(\" \");\n\t\t\tint ln[] = parseInts(lns);\n\t\t\tif(ln[0]==0 && ln[1]==0) break;\n\t\t\tfor(int x=0; x<ln[0] ;x++){\n\t\t\t\tfor(int y=0; y<ln[1]; y++){\n\t\t\t\t\tif(y==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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}\n\tstatic int[] parseInts(String[] s){\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0;i<s.length;i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\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\twhile(true){\n\t\t\tString lns[] = br.readLine().split(\" \");\n\t\t\tint ln[] = parseInts(lns);\n\t\t\tif(ln[0]==0 && ln[1]==0) break;\n\t\t\tfor(int x=0; x<ln[0] ;x++){\n\t\t\t\tfor(int y=0; y<ln[1]; y++){\n\t\t\t\t\tif(y==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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}\n\tstatic int[] parseInts(String[] s){\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0;i<s.length;i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\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 lns[] = br.readLine().split(\" \");\n\t\t\tint ln[] = parseInts(lns);\n\t\t\tif(ln[0]==0 && ln[1]==0) break;\n\t\t\tfor(int x=0; x<ln[0] ;x++){\n\t\t\t\tfor(int y=0; y<ln[1]; y++){\n\t\t\t\t\tif(y==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile(true){\n\t\t\tString lns[] = br.readLine().split(\" \");\n\t\t\tint ln[] = parseInts(lns);\n\t\t\tif(ln[0]==0 && ln[1]==0) break;\n\t\t\tfor(int x=0; x<ln[0] ;x++){\n\t\t\t\tfor(int y=0; y<ln[1]; y++){\n\t\t\t\t\tif(y==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tString lns[] = br.readLine().split(\" \");\n\t\t\tint ln[] = parseInts(lns);\n\t\t\tif(ln[0]==0 && ln[1]==0) break;\n\t\t\tfor(int x=0; x<ln[0] ;x++){\n\t\t\t\tfor(int y=0; y<ln[1]; y++){\n\t\t\t\t\tif(y==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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}", "true", "{\n\t\t\tString lns[] = br.readLine().split(\" \");\n\t\t\tint ln[] = parseInts(lns);\n\t\t\tif(ln[0]==0 && ln[1]==0) break;\n\t\t\tfor(int x=0; x<ln[0] ;x++){\n\t\t\t\tfor(int y=0; y<ln[1]; y++){\n\t\t\t\t\tif(y==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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}", "String lns[] = br.readLine().split(\" \");", "lns", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int ln[] = parseInts(lns);", "ln", "parseInts(lns)", "parseInts", "lns", "if(ln[0]==0 && ln[1]==0) break;", "ln[0]==0 && ln[1]==0", "ln[0]==0", "ln[0]", "ln", "0", "0", "ln[1]==0", "ln[1]", "ln", "1", "0", "break;", "for(int x=0; x<ln[0] ;x++){\n\t\t\t\tfor(int y=0; y<ln[1]; y++){\n\t\t\t\t\tif(y==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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 x=0;", "int x=0;", "x", "0", "x<ln[0]", "x", "ln[0]", "ln", "0", "x++", "x++", "x", "{\n\t\t\t\tfor(int y=0; y<ln[1]; y++){\n\t\t\t\t\tif(y==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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\tfor(int y=0; y<ln[1]; y++){\n\t\t\t\t\tif(y==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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}", "for(int y=0; y<ln[1]; y++){\n\t\t\t\t\tif(y==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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 y=0;", "int y=0;", "y", "0", "y<ln[1]", "y", "ln[1]", "ln", "1", "y++", "y++", "y", "{\n\t\t\t\t\tif(y==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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==ln[1]-1){\n\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t}else if(y==0 || x==0 || x==ln[0]-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==ln[1]-1", "y", "ln[1]-1", "ln[1]", "ln", "1", "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", "\"#\"", "if(y==0 || x==0 || x==ln[0]-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 || x==0 || x==ln[0]-1", "y==0 || x==0 || x==ln[0]-1", "y==0", "y", "0", "x==0", "x", "0", "x==ln[0]-1", "x", "ln[0]-1", "ln[0]", "ln", "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", "\"#\"", "{\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", "String[] args", "args", "static int[] parseInts(String[] s){\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0;i<s.length;i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}", "parseInts", "{\n\t\tint[] x = new int[s.length];\n\t\tfor(int i=0;i<s.length;i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}\n\t\treturn x;\n\t}", "int[] x = new int[s.length];", "x", "new int[s.length]", "s.length", "s", "s.length", "for(int i=0;i<s.length;i++){\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}", "{\n\t\t\tx[i] = Integer.parseInt(s[i]);\n\t\t}", "x[i] = Integer.parseInt(s[i])", "x[i]", "x", "i", "Integer.parseInt(s[i])", "Integer.parseInt", "Integer", "s[i]", "s", "i", "return x;", "x", "String[] s", "s" ]
import java.io.*; class Main{ public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ String lns[] = br.readLine().split(" "); int ln[] = parseInts(lns); if(ln[0]==0 && ln[1]==0) break; for(int x=0; x<ln[0] ;x++){ for(int y=0; y<ln[1]; y++){ if(y==ln[1]-1){ System.out.println("#"); }else if(y==0 || x==0 || x==ln[0]-1){ System.out.print("#"); }else{ System.out.print("."); } } } System.out.println(); } } static int[] parseInts(String[] s){ int[] x = new int[s.length]; for(int i=0;i<s.length;i++){ x[i] = Integer.parseInt(s[i]); } return x; } }
[ 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, 13, 41, 13, 4, 18, 13, 17, 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, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 155, 11 ], [ 155, 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 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 28, 32 ], [ 20, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 38, 40 ], [ 20, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 46, 47 ], [ 46, 48 ], [ 20, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 49, 57 ], [ 57, 58 ], [ 20, 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 ], [ 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 ], [ 72, 102 ], [ 102, 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 ], [ 116, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 71, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 20, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 12, 152 ], [ 152, 153 ], [ 0, 154 ], [ 154, 155 ], [ 154, 156 ] ]
[ "import 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\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] w_h = str.split(\" \", 0);\n\t\t\tint h = Integer.parseInt(w_h[0]);\n\t\t\tint w = Integer.parseInt(w_h[1]);\n\t\t\tif (w == 0 && h == 0) {\n\t\t\t\tbreak;\n\t\t\t}\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 i = 0; i < w; i++) {\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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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.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\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] w_h = str.split(\" \", 0);\n\t\t\tint h = Integer.parseInt(w_h[0]);\n\t\t\tint w = Integer.parseInt(w_h[1]);\n\t\t\tif (w == 0 && h == 0) {\n\t\t\t\tbreak;\n\t\t\t}\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 i = 0; i < w; i++) {\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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] w_h = str.split(\" \", 0);\n\t\t\tint h = Integer.parseInt(w_h[0]);\n\t\t\tint w = Integer.parseInt(w_h[1]);\n\t\t\tif (w == 0 && h == 0) {\n\t\t\t\tbreak;\n\t\t\t}\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 i = 0; i < w; i++) {\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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] w_h = str.split(\" \", 0);\n\t\t\tint h = Integer.parseInt(w_h[0]);\n\t\t\tint w = Integer.parseInt(w_h[1]);\n\t\t\tif (w == 0 && h == 0) {\n\t\t\t\tbreak;\n\t\t\t}\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 i = 0; i < w; i++) {\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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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}", "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[] w_h = str.split(\" \", 0);\n\t\t\tint h = Integer.parseInt(w_h[0]);\n\t\t\tint w = Integer.parseInt(w_h[1]);\n\t\t\tif (w == 0 && h == 0) {\n\t\t\t\tbreak;\n\t\t\t}\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 i = 0; i < w; i++) {\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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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 str = br.readLine();\n\t\t\tString[] w_h = str.split(\" \", 0);\n\t\t\tint h = Integer.parseInt(w_h[0]);\n\t\t\tint w = Integer.parseInt(w_h[1]);\n\t\t\tif (w == 0 && h == 0) {\n\t\t\t\tbreak;\n\t\t\t}\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 i = 0; i < w; i++) {\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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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 str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "String[] w_h = str.split(\" \", 0);", "w_h", "str.split(\" \", 0)", "str.split", "str", "\" \"", "0", "int h = Integer.parseInt(w_h[0]);", "h", "Integer.parseInt(w_h[0])", "Integer.parseInt", "Integer", "w_h[0]", "w_h", "0", "int w = Integer.parseInt(w_h[1]);", "w", "Integer.parseInt(w_h[1])", "Integer.parseInt", "Integer", "w_h[1]", "w_h", "1", "if (w == 0 && h == 0) {\n\t\t\t\tbreak;\n\t\t\t}", "w == 0 && h == 0", "w == 0", "w", "0", "h == 0", "h", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (int j = 0; j < h; j++) {\n\t\t\t\tif (j == 0 || j == (h - 1)) {\n\t\t\t\t\tfor (int i = 0; i < w; i++) {\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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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 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 i = 0; i < w; i++) {\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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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 (j == 0 || j == (h - 1)) {\n\t\t\t\t\tfor (int i = 0; i < w; i++) {\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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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 (j == 0 || j == (h - 1)) {\n\t\t\t\t\tfor (int i = 0; i < w; i++) {\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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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}", "j == 0 || j == (h - 1)", "j == 0", "j", "0", "j == (h - 1)", "j", "(h - 1)", "h", "1", "{\n\t\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "for (int i = 0; i < w; i++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "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", "\"#\"", "{\n\t\t\t\t\tfor (int i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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 i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "{\n\t\t\t\t\t\tif (i == 0 || i == (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 (i == 0 || i == (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 (i == 0 || i == (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}", "i == 0 || i == (w - 1)", "i == 0", "i", "0", "i == (w - 1)", "i", "(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[]) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] w_h = str.split(\" \", 0);\n\t\t\tint h = Integer.parseInt(w_h[0]);\n\t\t\tint w = Integer.parseInt(w_h[1]);\n\t\t\tif (w == 0 && h == 0) {\n\t\t\t\tbreak;\n\t\t\t}\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 i = 0; i < w; i++) {\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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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}", "public class Main {\n\tpublic static void main(String args[]) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\twhile (true) {\n\t\t\tString str = br.readLine();\n\t\t\tString[] w_h = str.split(\" \", 0);\n\t\t\tint h = Integer.parseInt(w_h[0]);\n\t\t\tint w = Integer.parseInt(w_h[1]);\n\t\t\tif (w == 0 && h == 0) {\n\t\t\t\tbreak;\n\t\t\t}\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 i = 0; i < w; i++) {\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 i = 0; i < w; i++) {\n\t\t\t\t\t\tif (i == 0 || i == (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" ]
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 str = br.readLine(); String[] w_h = str.split(" ", 0); int h = Integer.parseInt(w_h[0]); int w = Integer.parseInt(w_h[1]); if (w == 0 && h == 0) { break; } for (int j = 0; j < h; j++) { if (j == 0 || j == (h - 1)) { for (int i = 0; i < w; i++) { System.out.print("#"); } } else { for (int i = 0; i < w; i++) { if (i == 0 || i == (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, 17, 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, 13, 17, 2, 2, 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 ], [ 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 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 53, 60 ], [ 60, 61 ], [ 60, 62 ], [ 47, 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 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 77, 87 ], [ 87, 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 ], [ 77, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 107, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 114, 124 ], [ 124, 125 ], [ 125, 126 ], [ 114, 127 ], [ 128, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 107, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 135, 140 ], [ 76, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 63, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 47, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 156, 157 ], [ 156, 158 ], [ 151, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 6, 163 ], [ 163, 164 ] ]
[ "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\tboolean end = false;\n\n\t\twhile (end == false) {\n\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\t;// ??????\n\t\t\tint W = Integer.parseInt(numbers[1]);\n\t\t\t;// ???\n\n\t\t\tif (H >= 3 || W <= 100 && H > 0 && W > 0) {\n\t\t\t\t// ????§???¢??????????????????\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\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}\n\n\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\tboolean end = false;\n\n\t\twhile (end == false) {\n\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\t;// ??????\n\t\t\tint W = Integer.parseInt(numbers[1]);\n\t\t\t;// ???\n\n\t\t\tif (H >= 3 || W <= 100 && H > 0 && W > 0) {\n\t\t\t\t// ????§???¢??????????????????\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\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}\n\n\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tboolean end = false;\n\n\t\twhile (end == false) {\n\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\t;// ??????\n\t\t\tint W = Integer.parseInt(numbers[1]);\n\t\t\t;// ???\n\n\t\t\tif (H >= 3 || W <= 100 && H > 0 && W > 0) {\n\t\t\t\t// ????§???¢??????????????????\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\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}\n\n\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tboolean end = false;\n\n\t\twhile (end == false) {\n\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\t;// ??????\n\t\t\tint W = Integer.parseInt(numbers[1]);\n\t\t\t;// ???\n\n\t\t\tif (H >= 3 || W <= 100 && H > 0 && W > 0) {\n\t\t\t\t// ????§???¢??????????????????\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\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}\n\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "boolean end = false;", "end", "false", "while (end == false) {\n\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\t;// ??????\n\t\t\tint W = Integer.parseInt(numbers[1]);\n\t\t\t;// ???\n\n\t\t\tif (H >= 3 || W <= 100 && H > 0 && W > 0) {\n\t\t\t\t// ????§???¢??????????????????\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\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}", "end == false", "end", "false", "{\n\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\t;// ??????\n\t\t\tint W = Integer.parseInt(numbers[1]);\n\t\t\t;// ???\n\n\t\t\tif (H >= 3 || W <= 100 && H > 0 && W > 0) {\n\t\t\t\t// ????§???¢??????????????????\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\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}", "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 >= 3 || W <= 100 && H > 0 && W > 0) {\n\t\t\t\t// ????§???¢??????????????????\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\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 >= 3 || W <= 100 && H > 0 && W > 0", "H >= 3", "H", "3", "W <= 100 && H > 0 && W > 0", "W <= 100 && H > 0 && W > 0", "W <= 100", "W", "100", "H > 0", "H", "0", "W > 0", "W", "0", "{\n\t\t\t\t// ????§???¢??????????????????\n\t\t\t\tfor (int i = 0; i < H; i++) {\n\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\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\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\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) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); boolean end = false; 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 >= 3 || W <= 100 && H > 0 && W > 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 { 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?????????????????? } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 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 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 31, 37 ], [ 37, 38 ], [ 20, 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 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 20, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 20, 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 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 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 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 78, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 78, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 20, 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 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 20, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 20, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 148, 149 ], [ 148, 150 ], [ 20, 151 ], [ 151, 152 ], [ 152, 153 ], [ 151, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 8, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 158, 163 ], [ 6, 164 ], [ 164, 165 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tStringBuilder all = new StringBuilder();\n\t\tStringBuilder out = new StringBuilder();\n\t\t\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 + w) <= 0){break;}\n\t\t\t\n\t\t\t//top\n\t\t\tfor(int t = 0; t < w; t++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}\n\t\t\tout = out.append(\"\\n\");\n\t\t\t\n\t\t\t//center\n\t\t\t\n\t\t\tfor(int j = 0; j < (h-2); j++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tfor(int i = 0; i < (w-2); i++){\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}\n\t\t\tout = out.append(\"\\n\");\n\t\t\t\n\t\t\tall = all.append(out + \"\\n\");\n\t\t\tout.delete(0, out.length());\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.print(all);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\tpublic static void main(String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tStringBuilder all = new StringBuilder();\n\t\tStringBuilder out = new StringBuilder();\n\t\t\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 + w) <= 0){break;}\n\t\t\t\n\t\t\t//top\n\t\t\tfor(int t = 0; t < w; t++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}\n\t\t\tout = out.append(\"\\n\");\n\t\t\t\n\t\t\t//center\n\t\t\t\n\t\t\tfor(int j = 0; j < (h-2); j++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tfor(int i = 0; i < (w-2); i++){\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}\n\t\t\tout = out.append(\"\\n\");\n\t\t\t\n\t\t\tall = all.append(out + \"\\n\");\n\t\t\tout.delete(0, out.length());\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.print(all);\n\t}\n}", "Main", "public static void main(String[] args){\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tStringBuilder all = new StringBuilder();\n\t\tStringBuilder out = new StringBuilder();\n\t\t\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 + w) <= 0){break;}\n\t\t\t\n\t\t\t//top\n\t\t\tfor(int t = 0; t < w; t++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}\n\t\t\tout = out.append(\"\\n\");\n\t\t\t\n\t\t\t//center\n\t\t\t\n\t\t\tfor(int j = 0; j < (h-2); j++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tfor(int i = 0; i < (w-2); i++){\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}\n\t\t\tout = out.append(\"\\n\");\n\t\t\t\n\t\t\tall = all.append(out + \"\\n\");\n\t\t\tout.delete(0, out.length());\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.print(all);\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tStringBuilder all = new StringBuilder();\n\t\tStringBuilder out = new StringBuilder();\n\t\t\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 + w) <= 0){break;}\n\t\t\t\n\t\t\t//top\n\t\t\tfor(int t = 0; t < w; t++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}\n\t\t\tout = out.append(\"\\n\");\n\t\t\t\n\t\t\t//center\n\t\t\t\n\t\t\tfor(int j = 0; j < (h-2); j++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tfor(int i = 0; i < (w-2); i++){\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}\n\t\t\tout = out.append(\"\\n\");\n\t\t\t\n\t\t\tall = all.append(out + \"\\n\");\n\t\t\tout.delete(0, out.length());\n\t\t\t\n\t\t}\n\t\t\n\t\tSystem.out.print(all);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "StringBuilder all = new StringBuilder();", "all", "new StringBuilder()", "StringBuilder out = new StringBuilder();", "out", "new StringBuilder()", "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 + w) <= 0){break;}\n\t\t\t\n\t\t\t//top\n\t\t\tfor(int t = 0; t < w; t++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}\n\t\t\tout = out.append(\"\\n\");\n\t\t\t\n\t\t\t//center\n\t\t\t\n\t\t\tfor(int j = 0; j < (h-2); j++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tfor(int i = 0; i < (w-2); i++){\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}\n\t\t\tout = out.append(\"\\n\");\n\t\t\t\n\t\t\tall = all.append(out + \"\\n\");\n\t\t\tout.delete(0, out.length());\n\t\t\t\n\t\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 + w) <= 0){break;}\n\t\t\t\n\t\t\t//top\n\t\t\tfor(int t = 0; t < w; t++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}\n\t\t\tout = out.append(\"\\n\");\n\t\t\t\n\t\t\t//center\n\t\t\t\n\t\t\tfor(int j = 0; j < (h-2); j++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tfor(int i = 0; i < (w-2); i++){\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\tfor(int b = 0; b < w; b++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}\n\t\t\tout = out.append(\"\\n\");\n\t\t\t\n\t\t\tall = all.append(out + \"\\n\");\n\t\t\tout.delete(0, out.length());\n\t\t\t\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 + w) <= 0){break;}", "(h + w) <= 0", "(h + w)", "h", "w", "0", "{break;}", "break;", "for(int t = 0; t < w; t++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}", "int t = 0;", "int t = 0;", "t", "0", "t < w", "t", "w", "t++", "t++", "t", "{\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}", "{\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}", "out = out.append(\"#\")", "out", "out.append(\"#\")", "out.append", "out", "\"#\"", "out = out.append(\"\\n\")", "out", "out.append(\"\\n\")", "out.append", "out", "\"\\n\"", "for(int j = 0; j < (h-2); j++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tfor(int i = 0; i < (w-2); i++){\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tout = out.append(\"\\n\");\n\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\tout = out.append(\"#\");\n\t\t\t\tfor(int i = 0; i < (w-2); i++){\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}", "{\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tfor(int i = 0; i < (w-2); i++){\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\tout = out.append(\"#\");\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}", "out = out.append(\"#\")", "out", "out.append(\"#\")", "out.append", "out", "\"#\"", "for(int i = 0; i < (w-2); i++){\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < (w-2)", "i", "(w-2)", "w", "2", "i++", "i++", "i", "{\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}", "out = out.append(\".\")", "out", "out.append(\".\")", "out.append", "out", "\".\"", "out = out.append(\"#\")", "out", "out.append(\"#\")", "out.append", "out", "\"#\"", "out = out.append(\"\\n\")", "out", "out.append(\"\\n\")", "out.append", "out", "\"\\n\"", "for(int b = 0; b < w; b++){\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}", "int b = 0;", "int b = 0;", "b", "0", "b < w", "b", "w", "b++", "b++", "b", "{\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}", "{\n\t\t\t\tout = out.append(\"#\");\n\t\t\t}", "out = out.append(\"#\")", "out", "out.append(\"#\")", "out.append", "out", "\"#\"", "out = out.append(\"\\n\")", "out", "out.append(\"\\n\")", "out.append", "out", "\"\\n\"", "all = all.append(out + \"\\n\")", "all", "all.append(out + \"\\n\")", "all.append", "all", "out + \"\\n\"", "out", "\"\\n\"", "out.delete(0, out.length())", "out.delete", "out", "0", "out.length()", "out.length", "out", "System.out.print(all)", "System.out.print", "System.out", "System", "System.out", "all", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); StringBuilder all = new StringBuilder(); StringBuilder out = new StringBuilder(); while(true){ int h = sc.nextInt(); int w = sc.nextInt(); if((h + w) <= 0){break;} //top for(int t = 0; t < w; t++){ out = out.append("#"); } out = out.append("\n"); //center for(int j = 0; j < (h-2); j++){ out = out.append("#"); for(int i = 0; i < (w-2); i++){ out = out.append("."); } out = out.append("#"); out = out.append("\n"); } for(int b = 0; b < w; b++){ out = out.append("#"); } out = out.append("\n"); all = all.append(out + "\n"); out.delete(0, out.length()); } System.out.print(all); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 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 ], [ 6, 12 ], [ 12, 13 ] ]
[ "import java.util.*;\n \nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n label:\n while(sc.hasNextLine()){\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n if(h==0 && w==0) break label;\n for(int j = 1; j<=h; j++){\n for(int i = 1; i<=w; i++){\n if(j == 1 || j == h){\n System.out.print(\"#\");\n }else{\n if(i == 1 || i == w){\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 }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n label:\n while(sc.hasNextLine()){\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n if(h==0 && w==0) break label;\n for(int j = 1; j<=h; j++){\n for(int i = 1; i<=w; i++){\n if(j == 1 || j == h){\n System.out.print(\"#\");\n }else{\n if(i == 1 || i == w){\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 }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n \n label:\n while(sc.hasNextLine()){\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n if(h==0 && w==0) break label;\n for(int j = 1; j<=h; j++){\n for(int i = 1; i<=w; i++){\n if(j == 1 || j == h){\n System.out.print(\"#\");\n }else{\n if(i == 1 || i == w){\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 }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n label:\n while(sc.hasNextLine()){\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n if(h==0 && w==0) break label;\n for(int j = 1; j<=h; j++){\n for(int i = 1; i<=w; i++){\n if(j == 1 || j == h){\n System.out.print(\"#\");\n }else{\n if(i == 1 || i == w){\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 }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); label: while(sc.hasNextLine()){ int h = sc.nextInt(); int w = sc.nextInt(); if(h==0 && w==0) break label; for(int j = 1; j<=h; j++){ for(int i = 1; i<=w; i++){ if(j == 1 || j == h){ System.out.print("#"); }else{ if(i == 1 || i == w){ 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, 4, 18, 13, 42, 40, 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, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 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, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 0, 13, 4, 18, 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 ], [ 145, 11 ], [ 145, 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 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 23, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 29, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 41, 43 ], [ 29, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 29, 52 ], [ 52, 53 ], [ 52, 54 ], [ 29, 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 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 68, 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 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 116, 118 ], [ 109, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 109, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 67, 127 ], [ 127, 128 ], [ 128, 129 ], [ 127, 130 ], [ 29, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 29, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 12, 142 ], [ 142, 143 ], [ 0, 144 ], [ 144, 145 ], [ 144, 146 ] ]
[ "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\n String line = br.readLine();\n\n while(!(line.equals(\"0 0\"))){\n String[] inputs = line.split(\" \");\n int height = Integer.valueOf(inputs[0]);\n int width = Integer.valueOf(inputs[1]);\n StringBuilder result = new StringBuilder();\n\n for(int i = 0; i < height; i++){\n if(i == 0 || i == height-1){\n for(int j = 0; j < width; j++) result.append(\"#\");\n }else{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }\n result.append(\"\\n\");\n }\n\n System.out.println(result);\n \n line = br.readLine();\n }\n\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\n String line = br.readLine();\n\n while(!(line.equals(\"0 0\"))){\n String[] inputs = line.split(\" \");\n int height = Integer.valueOf(inputs[0]);\n int width = Integer.valueOf(inputs[1]);\n StringBuilder result = new StringBuilder();\n\n for(int i = 0; i < height; i++){\n if(i == 0 || i == height-1){\n for(int j = 0; j < width; j++) result.append(\"#\");\n }else{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }\n result.append(\"\\n\");\n }\n\n System.out.println(result);\n \n line = br.readLine();\n }\n\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line = br.readLine();\n\n while(!(line.equals(\"0 0\"))){\n String[] inputs = line.split(\" \");\n int height = Integer.valueOf(inputs[0]);\n int width = Integer.valueOf(inputs[1]);\n StringBuilder result = new StringBuilder();\n\n for(int i = 0; i < height; i++){\n if(i == 0 || i == height-1){\n for(int j = 0; j < width; j++) result.append(\"#\");\n }else{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }\n result.append(\"\\n\");\n }\n\n System.out.println(result);\n \n line = br.readLine();\n }\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n String line = br.readLine();\n\n while(!(line.equals(\"0 0\"))){\n String[] inputs = line.split(\" \");\n int height = Integer.valueOf(inputs[0]);\n int width = Integer.valueOf(inputs[1]);\n StringBuilder result = new StringBuilder();\n\n for(int i = 0; i < height; i++){\n if(i == 0 || i == height-1){\n for(int j = 0; j < width; j++) result.append(\"#\");\n }else{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }\n result.append(\"\\n\");\n }\n\n System.out.println(result);\n \n line = br.readLine();\n }\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "while(!(line.equals(\"0 0\"))){\n String[] inputs = line.split(\" \");\n int height = Integer.valueOf(inputs[0]);\n int width = Integer.valueOf(inputs[1]);\n StringBuilder result = new StringBuilder();\n\n for(int i = 0; i < height; i++){\n if(i == 0 || i == height-1){\n for(int j = 0; j < width; j++) result.append(\"#\");\n }else{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }\n result.append(\"\\n\");\n }\n\n System.out.println(result);\n \n line = br.readLine();\n }", "!(line.equals(\"0 0\"))", "(line.equals(\"0 0\"))", "line.equals", "line", "\"0 0\"", "{\n String[] inputs = line.split(\" \");\n int height = Integer.valueOf(inputs[0]);\n int width = Integer.valueOf(inputs[1]);\n StringBuilder result = new StringBuilder();\n\n for(int i = 0; i < height; i++){\n if(i == 0 || i == height-1){\n for(int j = 0; j < width; j++) result.append(\"#\");\n }else{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }\n result.append(\"\\n\");\n }\n\n System.out.println(result);\n \n line = br.readLine();\n }", "String[] inputs = line.split(\" \");", "inputs", "line.split(\" \")", "line.split", "line", "\" \"", "int height = Integer.valueOf(inputs[0]);", "height", "Integer.valueOf(inputs[0])", "Integer.valueOf", "Integer", "inputs[0]", "inputs", "0", "int width = Integer.valueOf(inputs[1]);", "width", "Integer.valueOf(inputs[1])", "Integer.valueOf", "Integer", "inputs[1]", "inputs", "1", "StringBuilder result = new StringBuilder();", "result", "new StringBuilder()", "for(int i = 0; i < height; i++){\n if(i == 0 || i == height-1){\n for(int j = 0; j < width; j++) result.append(\"#\");\n }else{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }\n result.append(\"\\n\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < height", "i", "height", "i++", "i++", "i", "{\n if(i == 0 || i == height-1){\n for(int j = 0; j < width; j++) result.append(\"#\");\n }else{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }\n result.append(\"\\n\");\n }", "{\n if(i == 0 || i == height-1){\n for(int j = 0; j < width; j++) result.append(\"#\");\n }else{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }\n result.append(\"\\n\");\n }", "if(i == 0 || i == height-1){\n for(int j = 0; j < width; j++) result.append(\"#\");\n }else{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }", "i == 0 || i == height-1", "i == 0", "i", "0", "i == height-1", "i", "height-1", "height", "1", "{\n for(int j = 0; j < width; j++) result.append(\"#\");\n }", "for(int j = 0; j < width; j++) result.append(\"#\");", "int j = 0;", "int j = 0;", "j", "0", "j < width", "j", "width", "j++", "j++", "j", "result.append(\"#\");", "result.append(\"#\")", "result.append", "result", "\"#\"", "{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }", "for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }", "int j = 0;", "int j = 0;", "j", "0", "j < width", "j", "width", "j++", "j++", "j", "{\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }", "{\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }", "if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");", "j == 0 || j == width-1", "j == 0", "j", "0", "j == width-1", "j", "width-1", "width", "1", "result.append(\"#\")", "result.append", "result", "\"#\"", "result.append(\".\")", "result.append", "result", "\".\"", "result.append(\"\\n\")", "result.append", "result", "\"\\n\"", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "line = br.readLine()", "line", "br.readLine()", "br.readLine", "br", "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 String line = br.readLine();\n\n while(!(line.equals(\"0 0\"))){\n String[] inputs = line.split(\" \");\n int height = Integer.valueOf(inputs[0]);\n int width = Integer.valueOf(inputs[1]);\n StringBuilder result = new StringBuilder();\n\n for(int i = 0; i < height; i++){\n if(i == 0 || i == height-1){\n for(int j = 0; j < width; j++) result.append(\"#\");\n }else{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }\n result.append(\"\\n\");\n }\n\n System.out.println(result);\n \n line = br.readLine();\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 String line = br.readLine();\n\n while(!(line.equals(\"0 0\"))){\n String[] inputs = line.split(\" \");\n int height = Integer.valueOf(inputs[0]);\n int width = Integer.valueOf(inputs[1]);\n StringBuilder result = new StringBuilder();\n\n for(int i = 0; i < height; i++){\n if(i == 0 || i == height-1){\n for(int j = 0; j < width; j++) result.append(\"#\");\n }else{\n for(int j = 0; j < width; j++){\n if(j == 0 || j == width-1) result.append(\"#\");\n else result.append(\".\");\n }\n }\n result.append(\"\\n\");\n }\n\n System.out.println(result);\n \n line = br.readLine();\n }\n\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)); String line = br.readLine(); while(!(line.equals("0 0"))){ String[] inputs = line.split(" "); int height = Integer.valueOf(inputs[0]); int width = Integer.valueOf(inputs[1]); StringBuilder result = new StringBuilder(); for(int i = 0; i < height; i++){ if(i == 0 || i == height-1){ for(int j = 0; j < width; j++) result.append("#"); }else{ for(int j = 0; j < width; j++){ if(j == 0 || j == width-1) result.append("#"); else result.append("."); } } result.append("\n"); } System.out.println(result); line = br.readLine(); } } }
[ 7, 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 ], [ 190, 8 ], [ 190, 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 ], [ 11, 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 ], [ 26, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 37, 45 ], [ 45, 46 ], [ 26, 47 ], [ 47, 48 ], [ 50, 49 ], [ 57, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 57, 57 ], [ 57, 58 ], [ 57, 59 ], [ 50, 60 ], [ 60, 61 ], [ 60, 62 ], [ 47, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 63, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 47, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 11, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 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 ], [ 104, 107 ], [ 97, 108 ], [ 108, 109 ], [ 109, 110 ], [ 97, 111 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 113, 124 ], [ 124, 125 ], [ 125, 126 ], [ 113, 127 ], [ 128, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 136, 141 ], [ 129, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 129, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 157, 162 ], [ 150, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 150, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 112, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 96, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 9, 187 ], [ 187, 188 ], [ 0, 189 ], [ 189, 190 ], [ 189, 191 ] ]
[ "import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tArrayList<Integer> rows = new ArrayList<>();\n\t\tArrayList<Integer> columns = new ArrayList<>();\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean flag = true;\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}\n\t\t\tif (H >= 3 && H <= 300 && W >= 3 && 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\tif (flag == true) {\n\t\t\tfor (int i = 0; i < rows.size(); i++) {\n\t\t\t\tfor (int j = 0; j < rows.get(i); j++) {\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\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\tArrayList<Integer> rows = new ArrayList<>();\n\t\tArrayList<Integer> columns = new ArrayList<>();\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean flag = true;\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}\n\t\t\tif (H >= 3 && H <= 300 && W >= 3 && 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\tif (flag == true) {\n\t\t\tfor (int i = 0; i < rows.size(); i++) {\n\t\t\t\tfor (int j = 0; j < rows.get(i); j++) {\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tArrayList<Integer> rows = new ArrayList<>();\n\t\tArrayList<Integer> columns = new ArrayList<>();\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean flag = true;\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}\n\t\t\tif (H >= 3 && H <= 300 && W >= 3 && 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\tif (flag == true) {\n\t\t\tfor (int i = 0; i < rows.size(); i++) {\n\t\t\t\tfor (int j = 0; j < rows.get(i); j++) {\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\n\t}", "main", "{\n\t\tArrayList<Integer> rows = new ArrayList<>();\n\t\tArrayList<Integer> columns = new ArrayList<>();\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean flag = true;\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}\n\t\t\tif (H >= 3 && H <= 300 && W >= 3 && 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\tif (flag == true) {\n\t\t\tfor (int i = 0; i < rows.size(); i++) {\n\t\t\t\tfor (int j = 0; j < rows.get(i); j++) {\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\n\t}", "ArrayList<Integer> rows = new ArrayList<>();", "rows", "new ArrayList<>()", "ArrayList<Integer> columns = new ArrayList<>();", "columns", "new ArrayList<>()", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "boolean flag = true;", "flag", "true", "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}\n\t\t\tif (H >= 3 && H <= 300 && W >= 3 && 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 = 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}\n\t\t\tif (H >= 3 && H <= 300 && W >= 3 && 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 = 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}", "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 && H <= 300 && W >= 3 && 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 && H <= 300 && W >= 3 && W <= 300", "W >= 3", "H >= 3 && H <= 300 && W >= 3 && W <= 300", "H >= 3", "H", "3", "H <= 300", "H", "300", "W >= 3", "W", "3", "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 j = 0; j < rows.get(i); j++) {\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "flag == true", "flag", "true", "{\n\t\t\tfor (int i = 0; i < rows.size(); i++) {\n\t\t\t\tfor (int j = 0; j < rows.get(i); j++) {\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "for (int i = 0; i < rows.size(); i++) {\n\t\t\t\tfor (int j = 0; j < rows.get(i); j++) {\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\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 < rows.size()", "i", "rows.size()", "rows.size", "rows", "i++", "i++", "i", "{\n\t\t\t\tfor (int j = 0; j < rows.get(i); j++) {\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\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 < rows.get(i); j++) {\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for (int j = 0; j < rows.get(i); j++) {\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < rows.get(i)", "j", "rows.get(i)", "rows.get", "rows", "i", "j++", "j++", "j", "{\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\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\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "for (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < columns.get(i)", "k", "columns.get(i)", "columns.get", "columns", "i", "k++", "k++", "k", "{\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}", "j == 0 || j == rows.get(i) - 1", "j == 0", "j", "0", "j == rows.get(i) - 1", "j", "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 (k == 0 || k == 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\n\t\t\t\t\t\t}", "if (k == 0 || k == 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}", "k == 0 || k == columns.get(i) - 1", "k == 0", "k", "0", "k == columns.get(i) - 1", "k", "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\tArrayList<Integer> rows = new ArrayList<>();\n\t\tArrayList<Integer> columns = new ArrayList<>();\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean flag = true;\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}\n\t\t\tif (H >= 3 && H <= 300 && W >= 3 && 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\tif (flag == true) {\n\t\t\tfor (int i = 0; i < rows.size(); i++) {\n\t\t\t\tfor (int j = 0; j < rows.get(i); j++) {\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tArrayList<Integer> rows = new ArrayList<>();\n\t\tArrayList<Integer> columns = new ArrayList<>();\n\t\tScanner sc = new Scanner(System.in);\n\t\tboolean flag = true;\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}\n\t\t\tif (H >= 3 && H <= 300 && W >= 3 && 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\tif (flag == true) {\n\t\t\tfor (int i = 0; i < rows.size(); i++) {\n\t\t\t\tfor (int j = 0; j < rows.get(i); j++) {\n\t\t\t\t\tfor (int k = 0; k < columns.get(i); k++) {\n\t\t\t\t\t\tif (j == 0 || j == 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 (k == 0 || k == 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\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.Scanner; public class Main{ public static void main(String[] args) { ArrayList<Integer> rows = new ArrayList<>(); ArrayList<Integer> columns = new ArrayList<>(); Scanner sc = new Scanner(System.in); boolean flag = true; while (true) { int H = sc.nextInt(); int W = sc.nextInt(); if (H == 0 && W == 0) { break; } if (H >= 3 && H <= 300 && W >= 3 && 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 j = 0; j < rows.get(i); j++) { for (int k = 0; k < columns.get(i); k++) { if (j == 0 || j == rows.get(i) - 1) { System.out.print("#"); } else { if (k == 0 || k == 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, 41, 13, 17, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 3, 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, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 150, 5 ], [ 150, 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 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 20, 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 ], [ 20, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 20, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 65, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 79, 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 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 79, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 20, 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 ], [ 20, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 20, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 8, 144 ], [ 144, 145 ], [ 145, 146 ], [ 6, 147 ], [ 147, 148 ], [ 0, 149 ], [ 149, 150 ], [ 149, 151 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ?????°?????????\n\t\tint cnt1 = 0;\n\t\tint cnt2 = 0;\n\n\t\twhile(true) {\n\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t\tfor(cnt2 = 0; cnt2 < H-2; cnt2++) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\tfor(cnt1 = 0; cnt1 < W-2; cnt1++ ) {\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"#\");\n\n\t\t\t}\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tsc.close();}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ?????°?????????\n\t\tint cnt1 = 0;\n\t\tint cnt2 = 0;\n\n\t\twhile(true) {\n\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t\tfor(cnt2 = 0; cnt2 < H-2; cnt2++) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\tfor(cnt1 = 0; cnt1 < W-2; cnt1++ ) {\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"#\");\n\n\t\t\t}\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tsc.close();}\n}", "Main", "public static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ?????°?????????\n\t\tint cnt1 = 0;\n\t\tint cnt2 = 0;\n\n\t\twhile(true) {\n\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t\tfor(cnt2 = 0; cnt2 < H-2; cnt2++) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\tfor(cnt1 = 0; cnt1 < W-2; cnt1++ ) {\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"#\");\n\n\t\t\t}\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tsc.close();}", "main", "{\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ?????°?????????\n\t\tint cnt1 = 0;\n\t\tint cnt2 = 0;\n\n\t\twhile(true) {\n\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t\tfor(cnt2 = 0; cnt2 < H-2; cnt2++) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\tfor(cnt1 = 0; cnt1 < W-2; cnt1++ ) {\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"#\");\n\n\t\t\t}\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tsc.close();}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int cnt1 = 0;", "cnt1", "0", "int cnt2 = 0;", "cnt2", "0", "while(true) {\n\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t\tfor(cnt2 = 0; cnt2 < H-2; cnt2++) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\tfor(cnt1 = 0; cnt1 < W-2; cnt1++ ) {\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"#\");\n\n\t\t\t}\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"\");\n\t\t}", "true", "{\n\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t\tfor(cnt2 = 0; cnt2 < H-2; cnt2++) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\tfor(cnt1 = 0; cnt1 < W-2; cnt1++ ) {\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"#\");\n\n\t\t\t}\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\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(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}", "cnt1 = 0;", "cnt1 = 0", "cnt1", "0", "cnt1 < W", "cnt1", "W", "cnt1++", "cnt1++", "cnt1", "{\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}", "{\n\n\t\t\t\tSystem.out.print(\"#\");\n\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(cnt2 = 0; cnt2 < H-2; cnt2++) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\tfor(cnt1 = 0; cnt1 < W-2; cnt1++ ) {\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"#\");\n\n\t\t\t}", "cnt2 = 0;", "cnt2 = 0", "cnt2", "0", "cnt2 < H-2", "cnt2", "H-2", "H", "2", "cnt2++", "cnt2++", "cnt2", "{\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\tfor(cnt1 = 0; cnt1 < W-2; cnt1++ ) {\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"#\");\n\n\t\t\t}", "{\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\tfor(cnt1 = 0; cnt1 < W-2; cnt1++ ) {\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"#\");\n\n\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for(cnt1 = 0; cnt1 < W-2; cnt1++ ) {\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}", "cnt1 = 0;", "cnt1 = 0", "cnt1", "0", "cnt1 < W-2", "cnt1", "W-2", "W", "2", "cnt1++", "cnt1++", "cnt1", "{\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}", "{\n\n\t\t\t\t\tSystem.out.print(\".\");\n\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(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}", "cnt1 = 0;", "cnt1 = 0", "cnt1", "0", "cnt1 < W", "cnt1", "W", "cnt1++", "cnt1++", "cnt1", "{\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}", "{\n\n\t\t\t\tSystem.out.print(\"#\");\n\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", "\"\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ?????°?????????\n\t\tint cnt1 = 0;\n\t\tint cnt2 = 0;\n\n\t\twhile(true) {\n\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t\tfor(cnt2 = 0; cnt2 < H-2; cnt2++) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\tfor(cnt1 = 0; cnt1 < W-2; cnt1++ ) {\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"#\");\n\n\t\t\t}\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tsc.close();}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ?????????????????\\????????????\n\t\tScanner sc = new Scanner(System.in);\n\n\t\t// ?????°?????????\n\t\tint cnt1 = 0;\n\t\tint cnt2 = 0;\n\n\t\twhile(true) {\n\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\n\t\t\tif(H == 0 && W == 0)\n\t\t\t\tbreak;\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\n\t\t\tSystem.out.println(\"\");\n\n\t\t\tfor(cnt2 = 0; cnt2 < H-2; cnt2++) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\tfor(cnt1 = 0; cnt1 < W-2; cnt1++ ) {\n\n\t\t\t\t\tSystem.out.print(\".\");\n\n\t\t\t\t}\n\n\t\t\t\tSystem.out.println(\"#\");\n\n\t\t\t}\n\n\t\t\tfor(cnt1 = 0; cnt1 < W; cnt1++ ) {\n\n\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t}\n\t\t\tSystem.out.println(\"\");\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\tsc.close();}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // ?????????????????\???????????? Scanner sc = new Scanner(System.in); // ?????°????????? int cnt1 = 0; int cnt2 = 0; while(true) { int H = sc.nextInt(); int W = sc.nextInt(); if(H == 0 && W == 0) break; for(cnt1 = 0; cnt1 < W; cnt1++ ) { System.out.print("#"); } System.out.println(""); for(cnt2 = 0; cnt2 < H-2; cnt2++) { System.out.print("#"); for(cnt1 = 0; cnt1 < W-2; cnt1++ ) { System.out.print("."); } System.out.println("#"); } for(cnt1 = 0; cnt1 < W; cnt1++ ) { 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, 42, 40, 4, 18, 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, 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 ]
[ [ 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 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 22, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 30, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 30, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 50, 52 ], [ 30, 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 ], [ 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 ], [ 82, 81 ], [ 89, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 89, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 82, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 79, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 79, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 65, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 30, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 12, 123 ], [ 123, 124 ] ]
[ "//Structured Program I - Print a Frame\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input;\n\t\t\n\t\t while (!(input = in.readLine()).equals(\"0 0\")) {\n\n\t\t\t String[] HW = input.split(\" \");\n\n\t\t\t int H = Integer.parseInt(HW[0]);\n\t\t\t int W = Integer.parseInt(HW[1]);\n\n\t\t\t for(int i=0;i<H;i++){\n\t\t\t\t for(int j=0;j<W;j++){\n\t\t\t\t\t \n\t\t\t\t\t if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t }\n\t\t\t System.out.println();\n\t\t\t \n\t\t }\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", "class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input;\n\t\t\n\t\t while (!(input = in.readLine()).equals(\"0 0\")) {\n\n\t\t\t String[] HW = input.split(\" \");\n\n\t\t\t int H = Integer.parseInt(HW[0]);\n\t\t\t int W = Integer.parseInt(HW[1]);\n\n\t\t\t for(int i=0;i<H;i++){\n\t\t\t\t for(int j=0;j<W;j++){\n\t\t\t\t\t \n\t\t\t\t\t if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t }\n\t\t\t System.out.println();\n\t\t\t \n\t\t }\n\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input;\n\t\t\n\t\t while (!(input = in.readLine()).equals(\"0 0\")) {\n\n\t\t\t String[] HW = input.split(\" \");\n\n\t\t\t int H = Integer.parseInt(HW[0]);\n\t\t\t int W = Integer.parseInt(HW[1]);\n\n\t\t\t for(int i=0;i<H;i++){\n\t\t\t\t for(int j=0;j<W;j++){\n\t\t\t\t\t \n\t\t\t\t\t if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t }\n\t\t\t System.out.println();\n\t\t\t \n\t\t }\n\n\t}", "main", "{\n\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString input;\n\t\t\n\t\t while (!(input = in.readLine()).equals(\"0 0\")) {\n\n\t\t\t String[] HW = input.split(\" \");\n\n\t\t\t int H = Integer.parseInt(HW[0]);\n\t\t\t int W = Integer.parseInt(HW[1]);\n\n\t\t\t for(int i=0;i<H;i++){\n\t\t\t\t for(int j=0;j<W;j++){\n\t\t\t\t\t \n\t\t\t\t\t if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t }\n\t\t\t System.out.println();\n\t\t\t \n\t\t }\n\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "String input;", "input", "while (!(input = in.readLine()).equals(\"0 0\")) {\n\n\t\t\t String[] HW = input.split(\" \");\n\n\t\t\t int H = Integer.parseInt(HW[0]);\n\t\t\t int W = Integer.parseInt(HW[1]);\n\n\t\t\t for(int i=0;i<H;i++){\n\t\t\t\t for(int j=0;j<W;j++){\n\t\t\t\t\t \n\t\t\t\t\t if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t }\n\t\t\t System.out.println();\n\t\t\t \n\t\t }", "!(input = in.readLine()).equals(\"0 0\")", "(input = in.readLine()).equals(\"0 0\")", "(input = in.readLine()).equals", "(input = in.readLine())", "input", "in.readLine()", "in.readLine", "in", "\"0 0\"", "{\n\n\t\t\t String[] HW = input.split(\" \");\n\n\t\t\t int H = Integer.parseInt(HW[0]);\n\t\t\t int W = Integer.parseInt(HW[1]);\n\n\t\t\t for(int i=0;i<H;i++){\n\t\t\t\t for(int j=0;j<W;j++){\n\t\t\t\t\t \n\t\t\t\t\t if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t }\n\t\t\t System.out.println();\n\t\t\t \n\t\t }", "String[] HW = input.split(\" \");", "HW", "input.split(\" \")", "input.split", "input", "\" \"", "int H = Integer.parseInt(HW[0]);", "H", "Integer.parseInt(HW[0])", "Integer.parseInt", "Integer", "HW[0]", "HW", "0", "int W = Integer.parseInt(HW[1]);", "W", "Integer.parseInt(HW[1])", "Integer.parseInt", "Integer", "HW[1]", "HW", "1", "for(int i=0;i<H;i++){\n\t\t\t\t for(int j=0;j<W;j++){\n\t\t\t\t\t \n\t\t\t\t\t if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t System.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\t for(int j=0;j<W;j++){\n\t\t\t\t\t \n\t\t\t\t\t if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t }", "{\n\t\t\t\t for(int j=0;j<W;j++){\n\t\t\t\t\t \n\t\t\t\t\t if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t }", "for(int j=0;j<W;j++){\n\t\t\t\t\t \n\t\t\t\t\t if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \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\t if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t }", "{\n\t\t\t\t\t \n\t\t\t\t\t if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \n\t\t\t\t\t }\n\t\t\t\t }", "if(i==0 || j ==0 || i==H-1 || j==W-1 ){\n\t\t\t\t\t\t System.out.print(\"#\");\n\t\t\t\t\t }else{\n\t\t\t\t\t\t System.out.print(\".\");\t\t\t\t\t\t \n\t\t\t\t\t }", "i==0 || j ==0 || i==H-1 || j==W-1", "i==H-1", "i==0 || j ==0 || i==H-1 || j==W-1", "i==0", "i", "0", "j ==0", "j", "0", "i==H-1", "i", "H-1", "H", "1", "j==W-1", "j", "W-1", "W", "1", "{\n\t\t\t\t\t\t System.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\t System.out.print(\".\");\t\t\t\t\t\t \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" ]
//Structured Program I - Print a Frame import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); String input; while (!(input = in.readLine()).equals("0 0")) { String[] HW = input.split(" "); int H = Integer.parseInt(HW[0]); int W = Integer.parseInt(HW[1]); 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 ){ 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, 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, 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, 4, 18, 13, 17, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 137, 5 ], [ 137, 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 ], [ 50, 53 ], [ 17, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 17, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 58, 68 ], [ 68, 69 ], [ 69, 70 ], [ 58, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 72, 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 ], [ 92, 95 ], [ 72, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 72, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 17, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 109, 111 ], [ 104, 112 ], [ 112, 113 ], [ 113, 114 ], [ 104, 115 ], [ 116, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 17, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 121, 127 ], [ 8, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 6, 134 ], [ 134, 135 ], [ 0, 136 ], [ 136, 137 ], [ 136, 138 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tStringBuilder output = new StringBuilder();\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\t\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\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t\tfor (int i = 1; i < H-1; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t\tfor (int j = 1; j < W-1; j++) {\n\t\t\t\t\toutput.append(\".\");\n\t\t\t\t}\n\t\t\t\toutput.append(\"#\");\n\t\t\t\toutput.append('\\n');\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n').append('\\n');\n\t\t}\n\t\t\n\t\tSystem.out.print(output);\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tStringBuilder output = new StringBuilder();\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\t\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\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t\tfor (int i = 1; i < H-1; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t\tfor (int j = 1; j < W-1; j++) {\n\t\t\t\t\toutput.append(\".\");\n\t\t\t\t}\n\t\t\t\toutput.append(\"#\");\n\t\t\t\toutput.append('\\n');\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n').append('\\n');\n\t\t}\n\t\t\n\t\tSystem.out.print(output);\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tStringBuilder output = new StringBuilder();\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\t\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\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t\tfor (int i = 1; i < H-1; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t\tfor (int j = 1; j < W-1; j++) {\n\t\t\t\t\toutput.append(\".\");\n\t\t\t\t}\n\t\t\t\toutput.append(\"#\");\n\t\t\t\toutput.append('\\n');\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n').append('\\n');\n\t\t}\n\t\t\n\t\tSystem.out.print(output);\n\t}", "main", "{\n\t\tStringBuilder output = new StringBuilder();\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\t\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\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t\tfor (int i = 1; i < H-1; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t\tfor (int j = 1; j < W-1; j++) {\n\t\t\t\t\toutput.append(\".\");\n\t\t\t\t}\n\t\t\t\toutput.append(\"#\");\n\t\t\t\toutput.append('\\n');\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n').append('\\n');\n\t\t}\n\t\t\n\t\tSystem.out.print(output);\n\t}", "StringBuilder output = new StringBuilder();", "output", "new StringBuilder()", "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\t\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\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t\tfor (int i = 1; i < H-1; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t\tfor (int j = 1; j < W-1; j++) {\n\t\t\t\t\toutput.append(\".\");\n\t\t\t\t}\n\t\t\t\toutput.append(\"#\");\n\t\t\t\toutput.append('\\n');\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n').append('\\n');\n\t\t}", "true", "{\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\tfor (int i = 0; i < W; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t\tfor (int i = 1; i < H-1; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t\tfor (int j = 1; j < W-1; j++) {\n\t\t\t\t\toutput.append(\".\");\n\t\t\t\t}\n\t\t\t\toutput.append(\"#\");\n\t\t\t\toutput.append('\\n');\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n').append('\\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;", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "break;", "for (int i = 0; i < W; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < W", "i", "W", "i++", "i++", "i", "{\n\t\t\t\toutput.append(\"#\");\n\t\t\t}", "{\n\t\t\t\toutput.append(\"#\");\n\t\t\t}", "output.append(\"#\")", "output.append", "output", "\"#\"", "output.append('\\n')", "output.append", "output", "'\\n'", "for (int i = 1; i < H-1; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t\tfor (int j = 1; j < W-1; j++) {\n\t\t\t\t\toutput.append(\".\");\n\t\t\t\t}\n\t\t\t\toutput.append(\"#\");\n\t\t\t\toutput.append('\\n');\n\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < H-1", "i", "H-1", "H", "1", "i++", "i++", "i", "{\n\t\t\t\toutput.append(\"#\");\n\t\t\t\tfor (int j = 1; j < W-1; j++) {\n\t\t\t\t\toutput.append(\".\");\n\t\t\t\t}\n\t\t\t\toutput.append(\"#\");\n\t\t\t\toutput.append('\\n');\n\t\t\t}", "{\n\t\t\t\toutput.append(\"#\");\n\t\t\t\tfor (int j = 1; j < W-1; j++) {\n\t\t\t\t\toutput.append(\".\");\n\t\t\t\t}\n\t\t\t\toutput.append(\"#\");\n\t\t\t\toutput.append('\\n');\n\t\t\t}", "output.append(\"#\")", "output.append", "output", "\"#\"", "for (int j = 1; j < W-1; j++) {\n\t\t\t\t\toutput.append(\".\");\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\toutput.append(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\toutput.append(\".\");\n\t\t\t\t}", "output.append(\".\")", "output.append", "output", "\".\"", "output.append(\"#\")", "output.append", "output", "\"#\"", "output.append('\\n')", "output.append", "output", "'\\n'", "for (int i = 0; i < W; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < W", "i", "W", "i++", "i++", "i", "{\n\t\t\t\toutput.append(\"#\");\n\t\t\t}", "{\n\t\t\t\toutput.append(\"#\");\n\t\t\t}", "output.append(\"#\")", "output.append", "output", "\"#\"", "output.append('\\n').append('\\n')", "output.append('\\n').append", "output.append('\\n')", "output.append", "output", "'\\n'", "'\\n'", "System.out.print(output)", "System.out.print", "System.out", "System", "System.out", "output", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tStringBuilder output = new StringBuilder();\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\t\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\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t\tfor (int i = 1; i < H-1; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t\tfor (int j = 1; j < W-1; j++) {\n\t\t\t\t\toutput.append(\".\");\n\t\t\t\t}\n\t\t\t\toutput.append(\"#\");\n\t\t\t\toutput.append('\\n');\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n').append('\\n');\n\t\t}\n\t\t\n\t\tSystem.out.print(output);\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tStringBuilder output = new StringBuilder();\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\t\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\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n');\n\t\t\tfor (int i = 1; i < H-1; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t\tfor (int j = 1; j < W-1; j++) {\n\t\t\t\t\toutput.append(\".\");\n\t\t\t\t}\n\t\t\t\toutput.append(\"#\");\n\t\t\t\toutput.append('\\n');\n\t\t\t}\n\t\t\tfor (int i = 0; i < W; i++) {\n\t\t\t\toutput.append(\"#\");\n\t\t\t}\n\t\t\toutput.append('\\n').append('\\n');\n\t\t}\n\t\t\n\t\tSystem.out.print(output);\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { StringBuilder output = new StringBuilder(); Scanner scan = new Scanner(System.in); while(true) { int H = scan.nextInt(); int W = scan.nextInt(); if (H == 0 && W == 0) break; for (int i = 0; i < W; i++) { output.append("#"); } output.append('\n'); for (int i = 1; i < H-1; i++) { output.append("#"); for (int j = 1; j < W-1; j++) { output.append("."); } output.append("#"); output.append('\n'); } for (int i = 0; i < W; i++) { output.append("#"); } output.append('\n').append('\n'); } System.out.print(output); } }
[ 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, 14, 2, 13, 17, 3, 41, 13, 20, 4, 18, 13, 13, 4, 18, 13, 28, 13, 13, 30, 30, 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, 2, 2, 13, 17, 2, 13, 2, 18, 13, 17, 17, 2, 13, 17, 2, 13, 2, 18, 13, 17, 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 ], [ 135, 11 ], [ 135, 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 ], [ 23, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 23, 39 ], [ 39, 40 ], [ 39, 41 ], [ 23, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 14, 46 ], [ 46, 47 ], [ 47, 48 ], [ 14, 49 ], [ 49, 50 ], [ 49, 51 ], [ 49, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 54, 64 ], [ 64, 65 ], [ 65, 66 ], [ 54, 67 ], [ 68, 68 ], [ 68, 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 ], [ 87, 86 ], [ 98, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 98, 98 ], [ 98, 99 ], [ 98, 100 ], [ 87, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 84, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 84, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 68, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 53, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 12, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "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\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tList<int[]> hws = new ArrayList<>();\n\t\twhile(true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H == 0) break;\t// 1 <=H.W<= 300\n\t\t\t\n\t\t\tint[] hw = new int[]{H, W};\n\t\t\thws.add(hw);\n\t\t\t\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(int[] hw : hws) {\n\t\t\t\n\t\t\tfor(int hh = 0; hh < hw[0]; hh++) {\n\t\t\t\tfor(int ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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\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\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tList<int[]> hws = new ArrayList<>();\n\t\twhile(true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H == 0) break;\t// 1 <=H.W<= 300\n\t\t\t\n\t\t\tint[] hw = new int[]{H, W};\n\t\t\thws.add(hw);\n\t\t\t\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(int[] hw : hws) {\n\t\t\t\n\t\t\tfor(int hh = 0; hh < hw[0]; hh++) {\n\t\t\t\tfor(int ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tList<int[]> hws = new ArrayList<>();\n\t\twhile(true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H == 0) break;\t// 1 <=H.W<= 300\n\t\t\t\n\t\t\tint[] hw = new int[]{H, W};\n\t\t\thws.add(hw);\n\t\t\t\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(int[] hw : hws) {\n\t\t\t\n\t\t\tfor(int hh = 0; hh < hw[0]; hh++) {\n\t\t\t\tfor(int ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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\n\t}", "main", "{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tList<int[]> hws = new ArrayList<>();\n\t\twhile(true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H == 0) break;\t// 1 <=H.W<= 300\n\t\t\t\n\t\t\tint[] hw = new int[]{H, W};\n\t\t\thws.add(hw);\n\t\t\t\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(int[] hw : hws) {\n\t\t\t\n\t\t\tfor(int hh = 0; hh < hw[0]; hh++) {\n\t\t\t\tfor(int ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "List<int[]> hws = new ArrayList<>();", "hws", "new ArrayList<>()", "while(true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H == 0) break;\t// 1 <=H.W<= 300\n\t\t\t\n\t\t\tint[] hw = new int[]{H, W};\n\t\t\thws.add(hw);\n\t\t\t\n\t\t}", "true", "{\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H == 0) break;\t// 1 <=H.W<= 300\n\t\t\t\n\t\t\tint[] hw = new int[]{H, W};\n\t\t\thws.add(hw);\n\t\t\t\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) break;\t// 1 <=H.W<= 300", "H == 0", "H", "0", "break;\t// 1 <=H.W<= 300", "int[] hw = new int[]{H, W};", "hw", "new int[]{H, W}", "hws.add(hw)", "hws.add", "hws", "hw", "sc.close()", "sc.close", "sc", "for(int[] hw : hws) {\n\t\t\t\n\t\t\tfor(int hh = 0; hh < hw[0]; hh++) {\n\t\t\t\tfor(int ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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[] hw", "hws", "{\n\t\t\t\n\t\t\tfor(int hh = 0; hh < hw[0]; hh++) {\n\t\t\t\tfor(int ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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\t\n\t\t\tfor(int hh = 0; hh < hw[0]; hh++) {\n\t\t\t\tfor(int ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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}", "for(int hh = 0; hh < hw[0]; hh++) {\n\t\t\t\tfor(int ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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 hh = 0;", "int hh = 0;", "hh", "0", "hh < hw[0]", "hh", "hw[0]", "hw", "0", "hh++", "hh++", "hh", "{\n\t\t\t\tfor(int ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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 ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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 ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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 ww = 0;", "int ww = 0;", "ww", "0", "ww < hw[1]", "ww", "hw[1]", "hw", "1", "ww++", "ww++", "ww", "{\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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 (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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 (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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}", "hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-1", "ww == 0", "hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-1", "hh == 0", "hh", "0", "hh == hw[0]-1", "hh", "hw[0]-1", "hw[0]", "hw", "0", "1", "ww == 0", "ww", "0", "ww == hw[1]-1", "ww", "hw[1]-1", "hw[1]", "hw", "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", "\"#\"", "{\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) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tList<int[]> hws = new ArrayList<>();\n\t\twhile(true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H == 0) break;\t// 1 <=H.W<= 300\n\t\t\t\n\t\t\tint[] hw = new int[]{H, W};\n\t\t\thws.add(hw);\n\t\t\t\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(int[] hw : hws) {\n\t\t\t\n\t\t\tfor(int hh = 0; hh < hw[0]; hh++) {\n\t\t\t\tfor(int ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tList<int[]> hws = new ArrayList<>();\n\t\twhile(true) {\n\t\t\tint H = sc.nextInt();\n\t\t\tint W = sc.nextInt();\n\t\t\t\n\t\t\tif(H == 0) break;\t// 1 <=H.W<= 300\n\t\t\t\n\t\t\tint[] hw = new int[]{H, W};\n\t\t\thws.add(hw);\n\t\t\t\n\t\t}\n\t\tsc.close();\n\t\t\n\t\tfor(int[] hw : hws) {\n\t\t\t\n\t\t\tfor(int hh = 0; hh < hw[0]; hh++) {\n\t\t\t\tfor(int ww = 0; ww < hw[1]; ww++) {\n\t\t\t\t\tif (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[1]-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\n\t}\n}", "Main" ]
import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); List<int[]> hws = new ArrayList<>(); while(true) { int H = sc.nextInt(); int W = sc.nextInt(); if(H == 0) break; // 1 <=H.W<= 300 int[] hw = new int[]{H, W}; hws.add(hw); } sc.close(); for(int[] hw : hws) { for(int hh = 0; hh < hw[0]; hh++) { for(int ww = 0; ww < hw[1]; ww++) { if (hh == 0 || hh == hw[0]-1 || ww == 0 || ww == hw[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, 11, 1, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 13, 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 ], [ 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 ], [ 34, 38 ], [ 15, 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 ], [ 106, 111 ], [ 15, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 6, 118 ], [ 118, 119 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tfor(;;){\n\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\n\t\t\tif(H == 0 && W == 0){\n\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0; i<H; i++){ //縦の列の繰り返し\n\n\t\t\t\tfor(int s=0; s<W; s++){ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tfor(;;){\n\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\n\t\t\tif(H == 0 && W == 0){\n\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0; i<H; i++){ //縦の列の繰り返し\n\n\t\t\t\tfor(int s=0; s<W; s++){ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\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\tfor(;;){\n\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\n\t\t\tif(H == 0 && W == 0){\n\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0; i<H; i++){ //縦の列の繰り返し\n\n\t\t\t\tfor(int s=0; s<W; s++){ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tfor(;;){\n\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\n\t\t\tif(H == 0 && W == 0){\n\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0; i<H; i++){ //縦の列の繰り返し\n\n\t\t\t\tfor(int s=0; s<W; s++){ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "for(;;){\n\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\n\t\t\tif(H == 0 && W == 0){\n\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0; i<H; i++){ //縦の列の繰り返し\n\n\t\t\t\tfor(int s=0; s<W; s++){ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}", ";", "{\n\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\n\t\t\tif(H == 0 && W == 0){\n\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0; i<H; i++){ //縦の列の繰り返し\n\n\t\t\t\tfor(int s=0; s<W; s++){ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}", "{\n\n\t\t\tint H = scan.nextInt();\n\t\t\tint W = scan.nextInt();\n\n\t\t\tif(H == 0 && W == 0){\n\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(int i=0; i<H; i++){ //縦の列の繰り返し\n\n\t\t\t\tfor(int s=0; s<W; s++){ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.print(\"\\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\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n\n\t\t\t\tscan.close();\n\t\t\t\tbreak;\n\t\t\t}", "scan.close()", "scan.close", "scan", "break;", "for(int i=0; i<H; i++){ //縦の列の繰り返し\n\n\t\t\t\tfor(int s=0; s<W; s++){ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}\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\n\t\t\t\tfor(int s=0; s<W; s++){ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "{ //縦の列の繰り返し\n\n\t\t\t\tfor(int s=0; s<W; s++){ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "for(int s=0; s<W; s++){ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}", "int s=0;", "int s=0;", "s", "0", "s<W", "s", "W", "s++", "s++", "s", "{ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}", "{ //横の行の繰り返し\n\n\t\t\t\t\tif(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\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}", "if(i == 0 | i == H-1){ //1行または最終行の指定\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else if(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\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", "{ //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(s == 0 | s == W-1){ //1列または最終列の指定\n\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\t\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t}", "s == 0 | s == W-1", "s == 0", "s", "0", "s == W-1", "s", "W-1", "W", "1", "{ //1列または最終列の指定\n\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\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(\"\\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 scan = new Scanner(System.in); for(;;){ int H = scan.nextInt(); int W = scan.nextInt(); if(H == 0 && W == 0){ scan.close(); break; } for(int i=0; i<H; i++){ //縦の列の繰り返し for(int s=0; s<W; s++){ //横の行の繰り返し if(i == 0 | i == H-1){ //1行または最終行の指定 System.out.print("#"); }else if(s == 0 | s == W-1){ //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, 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, 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 ], [ 132, 5 ], [ 132, 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 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 86, 85 ], [ 95, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 95, 95 ], [ 95, 96 ], [ 95, 97 ], [ 86, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 83, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 83, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 69, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 16, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 6, 129 ], [ 129, 130 ], [ 0, 131 ], [ 131, 132 ], [ 131, 133 ] ]
[ "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 (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\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.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\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.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\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.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\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.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\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.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\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.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\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.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\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.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\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.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\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.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\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.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\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.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++) { 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"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 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, 14, 2, 2, 17, 13, 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, 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 ], [ 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 ], [ 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 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 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 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 86, 97 ], [ 98, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 106, 108 ], [ 99, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 99, 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 ], [ 116, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 85, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 72, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 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\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a = 0;\n\t\tint b = 0;\n\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tif((a == 0)&&(b == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((3 <= a) &&(b <= 300)){\n\n\t\t\t\tfor(int i = 0; i < a; i++){\n\t\t\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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.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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a = 0;\n\t\tint b = 0;\n\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tif((a == 0)&&(b == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((3 <= a) &&(b <= 300)){\n\n\t\t\t\tfor(int i = 0; i < a; i++){\n\t\t\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a = 0;\n\t\tint b = 0;\n\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tif((a == 0)&&(b == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((3 <= a) &&(b <= 300)){\n\n\t\t\t\tfor(int i = 0; i < a; i++){\n\t\t\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a = 0;\n\t\tint b = 0;\n\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tif((a == 0)&&(b == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((3 <= a) &&(b <= 300)){\n\n\t\t\t\tfor(int i = 0; i < a; i++){\n\t\t\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int a = 0;", "a", "0", "int b = 0;", "b", "0", "while(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tif((a == 0)&&(b == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((3 <= a) &&(b <= 300)){\n\n\t\t\t\tfor(int i = 0; i < a; i++){\n\t\t\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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\tString str = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tif((a == 0)&&(b == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((3 <= a) &&(b <= 300)){\n\n\t\t\t\tfor(int i = 0; i < a; i++){\n\t\t\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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}", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "String[] s = str.split(\" \");", "s", "str.split(\" \")", "str.split", "str", "\" \"", "a = Integer.parseInt(s[0])", "a", "Integer.parseInt(s[0])", "Integer.parseInt", "Integer", "s[0]", "s", "0", "b = Integer.parseInt(s[1])", "b", "Integer.parseInt(s[1])", "Integer.parseInt", "Integer", "s[1]", "s", "1", "if((a == 0)&&(b == 0)){\n\t\t\t\tbreak;\n\t\t\t}", "(a == 0)&&(b == 0)", "(a == 0)", "a", "0", "(b == 0)", "b", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "if((3 <= a) &&(b <= 300)){\n\n\t\t\t\tfor(int i = 0; i < a; i++){\n\t\t\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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}", "(3 <= a) &&(b <= 300)", "(3 <= a)", "3", "a", "(b <= 300)", "b", "300", "{\n\n\t\t\t\tfor(int i = 0; i < a; i++){\n\t\t\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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 i = 0; i < a; i++){\n\t\t\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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 i = 0;", "int i = 0;", "i", "0", "i < a", "i", "a", "i++", "i++", "i", "{\n\t\t\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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 j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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 j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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 < b", "j", "b", "j++", "j++", "j", "{\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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}", "(i == 0) || (i ==(a - 1))", "(i == 0)", "i", "0", "(i ==(a - 1))", "i", "(a - 1)", "a", "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((j == 0) || (j == (b - 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 == (b - 1))", "(j == 0)", "j", "0", "(j == (b - 1))", "j", "(b - 1)", "b", "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)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a = 0;\n\t\tint b = 0;\n\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tif((a == 0)&&(b == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((3 <= a) &&(b <= 300)){\n\n\t\t\t\tfor(int i = 0; i < a; i++){\n\t\t\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint a = 0;\n\t\tint b = 0;\n\n\t\twhile(true){\n\t\t\tString str = br.readLine();\n\t\t\tString[] s = str.split(\" \");\n\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tif((a == 0)&&(b == 0)){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif((3 <= a) &&(b <= 300)){\n\n\t\t\t\tfor(int i = 0; i < a; i++){\n\t\t\t\t\tfor(int j = 0; j < b; j++){\n\t\t\t\t\t\tif((i == 0) || (i ==(a - 1))){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else if((j == 0) || (j == (b - 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.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)); int a = 0; int b = 0; while(true){ String str = br.readLine(); String[] s = str.split(" "); a = Integer.parseInt(s[0]); b = Integer.parseInt(s[1]); if((a == 0)&&(b == 0)){ break; } if((3 <= a) &&(b <= 300)){ 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, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 30, 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, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 13, 30, 0, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 13, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 13, 13, 4, 18, 13, 17, 28, 13, 13, 30, 30, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 164, 14 ], [ 164, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 24, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 28, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 28, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 28, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 70, 69 ], [ 77, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 77, 77 ], [ 77, 78 ], [ 77, 79 ], [ 70, 80 ], [ 80, 81 ], [ 80, 82 ], [ 67, 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 ], [ 97, 99 ], [ 96, 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 ], [ 114, 118 ], [ 118, 119 ], [ 118, 120 ], [ 113, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 113, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 131 ], [ 131, 132 ], [ 131, 133 ], [ 126, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 126, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 96, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 83, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 17, 150 ], [ 150, 151 ], [ 150, 152 ], [ 150, 153 ], [ 154, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 15, 161 ], [ 161, 162 ], [ 0, 163 ], [ 163, 164 ], [ 163, 165 ] ]
[ "import java.io.BufferedInputStream;\nimport 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 scan = new Scanner(new BufferedInputStream(System.in));\n\t\tList<String> output = new ArrayList<String>();\n\t\twhile (scan.hasNext()) {\n\t\t\tString input = scan.nextLine();\n\t\t\tString[] in = input.split(\" \");\n\t\t\tint H = Integer.parseInt(in[0]);\n\t\t\tint W = Integer.parseInt(in[1]);\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif (H >= 1 && H <= 300 && W >= 1 && W <= 300) {\n\t\t\t\t\tfor (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}\n\t\t\t\t\toutput.add(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}\n\t}\n}", "import java.io.BufferedInputStream;", "BufferedInputStream", "java.io", "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 scan = new Scanner(new BufferedInputStream(System.in));\n\t\tList<String> output = new ArrayList<String>();\n\t\twhile (scan.hasNext()) {\n\t\t\tString input = scan.nextLine();\n\t\t\tString[] in = input.split(\" \");\n\t\t\tint H = Integer.parseInt(in[0]);\n\t\t\tint W = Integer.parseInt(in[1]);\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif (H >= 1 && H <= 300 && W >= 1 && W <= 300) {\n\t\t\t\t\tfor (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}\n\t\t\t\t\toutput.add(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(new BufferedInputStream(System.in));\n\t\tList<String> output = new ArrayList<String>();\n\t\twhile (scan.hasNext()) {\n\t\t\tString input = scan.nextLine();\n\t\t\tString[] in = input.split(\" \");\n\t\t\tint H = Integer.parseInt(in[0]);\n\t\t\tint W = Integer.parseInt(in[1]);\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif (H >= 1 && H <= 300 && W >= 1 && W <= 300) {\n\t\t\t\t\tfor (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}\n\t\t\t\t\toutput.add(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(new BufferedInputStream(System.in));\n\t\tList<String> output = new ArrayList<String>();\n\t\twhile (scan.hasNext()) {\n\t\t\tString input = scan.nextLine();\n\t\t\tString[] in = input.split(\" \");\n\t\t\tint H = Integer.parseInt(in[0]);\n\t\t\tint W = Integer.parseInt(in[1]);\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif (H >= 1 && H <= 300 && W >= 1 && W <= 300) {\n\t\t\t\t\tfor (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}\n\t\t\t\t\toutput.add(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}\n\t}", "Scanner scan = new Scanner(new BufferedInputStream(System.in));", "scan", "new Scanner(new BufferedInputStream(System.in))", "List<String> output = new ArrayList<String>();", "output", "new ArrayList<String>()", "while (scan.hasNext()) {\n\t\t\tString input = scan.nextLine();\n\t\t\tString[] in = input.split(\" \");\n\t\t\tint H = Integer.parseInt(in[0]);\n\t\t\tint W = Integer.parseInt(in[1]);\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif (H >= 1 && H <= 300 && W >= 1 && W <= 300) {\n\t\t\t\t\tfor (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}\n\t\t\t\t\toutput.add(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tString input = scan.nextLine();\n\t\t\tString[] in = input.split(\" \");\n\t\t\tint H = Integer.parseInt(in[0]);\n\t\t\tint W = Integer.parseInt(in[1]);\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif (H >= 1 && H <= 300 && W >= 1 && W <= 300) {\n\t\t\t\t\tfor (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}\n\t\t\t\t\toutput.add(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}", "String input = scan.nextLine();", "input", "scan.nextLine()", "scan.nextLine", "scan", "String[] in = input.split(\" \");", "in", "input.split(\" \")", "input.split", "input", "\" \"", "int H = Integer.parseInt(in[0]);", "H", "Integer.parseInt(in[0])", "Integer.parseInt", "Integer", "in[0]", "in", "0", "int W = Integer.parseInt(in[1]);", "W", "Integer.parseInt(in[1])", "Integer.parseInt", "Integer", "in[1]", "in", "1", "if (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif (H >= 1 && H <= 300 && W >= 1 && W <= 300) {\n\t\t\t\t\tfor (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}\n\t\t\t\t\toutput.add(\"\");\n\t\t\t\t}\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\tif (H >= 1 && H <= 300 && W >= 1 && W <= 300) {\n\t\t\t\t\tfor (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}\n\t\t\t\t\toutput.add(\"\");\n\t\t\t\t}\n\t\t\t}", "if (H >= 1 && H <= 300 && W >= 1 && W <= 300) {\n\t\t\t\t\tfor (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}\n\t\t\t\t\toutput.add(\"\");\n\t\t\t\t}", "H >= 1 && H <= 300 && W >= 1 && W <= 300", "W >= 1", "H >= 1 && H <= 300 && W >= 1 && W <= 300", "H >= 1", "H", "1", "H <= 300", "H", "300", "W >= 1", "W", "1", "W <= 300", "W", "300", "{\n\t\t\t\t\tfor (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}\n\t\t\t\t\toutput.add(\"\");\n\t\t\t\t}", "for (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i <= H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}", "String result = \"\";", "result", "\"\"", "for (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\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\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}", "if (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "i == 1 || i == H", "i == 1", "i", "1", "i == H", "i", "H", "{\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t}", "result += \"#\"", "result", "\"#\"", "{\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}", "if (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}", "j == 1 || j == W", "j == 1", "j", "1", "j == W", "j", "W", "{\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t}", "result += \"#\"", "result", "\"#\"", "{\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}", "result += \".\"", "result", "\".\"", "output.add(result)", "output.add", "output", "result", "output.add(\"\")", "output.add", "output", "\"\"", "for (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}", "String out", "output", "{\n\t\t\tSystem.out.println(out);\n\t\t}", "{\n\t\t\tSystem.out.println(out);\n\t\t}", "System.out.println(out)", "System.out.println", "System.out", "System", "System.out", "out", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(new BufferedInputStream(System.in));\n\t\tList<String> output = new ArrayList<String>();\n\t\twhile (scan.hasNext()) {\n\t\t\tString input = scan.nextLine();\n\t\t\tString[] in = input.split(\" \");\n\t\t\tint H = Integer.parseInt(in[0]);\n\t\t\tint W = Integer.parseInt(in[1]);\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif (H >= 1 && H <= 300 && W >= 1 && W <= 300) {\n\t\t\t\t\tfor (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}\n\t\t\t\t\toutput.add(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(new BufferedInputStream(System.in));\n\t\tList<String> output = new ArrayList<String>();\n\t\twhile (scan.hasNext()) {\n\t\t\tString input = scan.nextLine();\n\t\t\tString[] in = input.split(\" \");\n\t\t\tint H = Integer.parseInt(in[0]);\n\t\t\tint W = Integer.parseInt(in[1]);\n\t\t\tif (H == 0 && W == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tif (H >= 1 && H <= 300 && W >= 1 && W <= 300) {\n\t\t\t\t\tfor (int i = 1; i <= H; i++) {\n\t\t\t\t\t\tString result = \"\";\n\t\t\t\t\t\tfor (int j = 1; j <= W; j++) {\n\t\t\t\t\t\t\tif (i == 1 || i == H) {\n\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\tif (j == 1 || j == W) {\n\t\t\t\t\t\t\t\t\tresult += \"#\";\n\t\t\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t\t\tresult += \".\";\n\t\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t\toutput.add(result);\n\t\t\t\t\t}\n\t\t\t\t\toutput.add(\"\");\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor (String out : output) {\n\t\t\tSystem.out.println(out);\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedInputStream; import java.util.ArrayList; import java.util.List; import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner scan = new Scanner(new BufferedInputStream(System.in)); List<String> output = new ArrayList<String>(); while (scan.hasNext()) { String input = scan.nextLine(); String[] in = input.split(" "); int H = Integer.parseInt(in[0]); int W = Integer.parseInt(in[1]); if (H == 0 && W == 0) { break; } else { if (H >= 1 && H <= 300 && W >= 1 && W <= 300) { for (int i = 1; i <= H; i++) { String result = ""; for (int j = 1; j <= W; j++) { if (i == 1 || i == H) { result += "#"; } else { if (j == 1 || j == W) { result += "#"; } else { result += "."; } } } output.add(result); } output.add(""); } } } for (String out : output) { System.out.println(out); } } }
[ 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, 13, 17, 2, 13, 13, 30, 4, 18, 13, 17, 30, 14, 2, 2, 13, 17, 2, 13, 13, 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 ], [ 126, 5 ], [ 126, 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 ], [ 62, 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 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 77, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 77, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 91, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 91, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 63, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 17, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 8, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 6, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.io.*;\n\npublic class Main{\n\tpublic static void main(String[] args)throws IOException, NumberFormatException{\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(s[0]);\n\t\t\tint w = Integer.parseInt(s[1]);\n\t\t\tif( h==0 && w==0 ) break;\n\t\t\t\n\t\t\t// ???????????°?????????\n\t\t\tfor( int i=1 ; i<=h ; i++ ){\n\t\t\t\t// ????????°?????????\n\t\t\t\tfor( int j=1 ; j<=w ; j++ ){\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}//??????\n\t\t\tbuilder.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main{\n\tpublic static void main(String[] args)throws IOException, NumberFormatException{\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(s[0]);\n\t\t\tint w = Integer.parseInt(s[1]);\n\t\t\tif( h==0 && w==0 ) break;\n\t\t\t\n\t\t\t// ???????????°?????????\n\t\t\tfor( int i=1 ; i<=h ; i++ ){\n\t\t\t\t// ????????°?????????\n\t\t\t\tfor( int j=1 ; j<=w ; j++ ){\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}//??????\n\t\t\tbuilder.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n}", "Main", "public static void main(String[] args)throws IOException, NumberFormatException{\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(s[0]);\n\t\t\tint w = Integer.parseInt(s[1]);\n\t\t\tif( h==0 && w==0 ) break;\n\t\t\t\n\t\t\t// ???????????°?????????\n\t\t\tfor( int i=1 ; i<=h ; i++ ){\n\t\t\t\t// ????????°?????????\n\t\t\t\tfor( int j=1 ; j<=w ; j++ ){\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}//??????\n\t\t\tbuilder.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(builder);\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(s[0]);\n\t\t\tint w = Integer.parseInt(s[1]);\n\t\t\tif( h==0 && w==0 ) break;\n\t\t\t\n\t\t\t// ???????????°?????????\n\t\t\tfor( int i=1 ; i<=h ; i++ ){\n\t\t\t\t// ????????°?????????\n\t\t\t\tfor( int j=1 ; j<=w ; j++ ){\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}//??????\n\t\t\tbuilder.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(builder);\n\t}", "BufferedReader br = new BufferedReader (new InputStreamReader(System.in));", "br", "new BufferedReader (new InputStreamReader(System.in))", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "while(true){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(s[0]);\n\t\t\tint w = Integer.parseInt(s[1]);\n\t\t\tif( h==0 && w==0 ) break;\n\t\t\t\n\t\t\t// ???????????°?????????\n\t\t\tfor( int i=1 ; i<=h ; i++ ){\n\t\t\t\t// ????????°?????????\n\t\t\t\tfor( int j=1 ; j<=w ; j++ ){\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}//??????\n\t\t\tbuilder.append(\"\\n\");\n\t\t}", "true", "{\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(s[0]);\n\t\t\tint w = Integer.parseInt(s[1]);\n\t\t\tif( h==0 && w==0 ) break;\n\t\t\t\n\t\t\t// ???????????°?????????\n\t\t\tfor( int i=1 ; i<=h ; i++ ){\n\t\t\t\t// ????????°?????????\n\t\t\t\tfor( int j=1 ; j<=w ; j++ ){\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}//??????\n\t\t\tbuilder.append(\"\\n\");\n\t\t}", "String[] s = br.readLine().split(\" \");", "s", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int h = Integer.parseInt(s[0]);", "h", "Integer.parseInt(s[0])", "Integer.parseInt", "Integer", "s[0]", "s", "0", "int w = Integer.parseInt(s[1]);", "w", "Integer.parseInt(s[1])", "Integer.parseInt", "Integer", "s[1]", "s", "1", "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\t\t// ????????°?????????\n\t\t\t\tfor( int j=1 ; j<=w ; j++ ){\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}//??????", "int i=1 ;", "int i=1 ;", "i", "1", "i<=h", "i", "h", "i++", "i++", "i", "{\n\t\t\t\t// ????????°?????????\n\t\t\t\tfor( int j=1 ; j<=w ; j++ ){\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}//??????", "{\n\t\t\t\t// ????????°?????????\n\t\t\t\tfor( int j=1 ; j<=w ; j++ ){\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}", "for( int j=1 ; j<=w ; j++ ){\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???", "int j=1 ;", "int j=1 ;", "j", "1", "j<=w", "j", "w", "j++", "j++", "j", "{\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???", "{\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "if( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "i==1 || i==h", "i==1", "i", "1", "i==h", "i", "h", "{\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}", "builder.append(\"#\")", "builder.append", "builder", "\"#\"", "{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}", "j==1 || j==w", "j==1", "j", "1", "j==w", "j", "w", "{\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}", "builder.append(\"#\")", "builder.append", "builder", "\"#\"", "{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}", "builder.append(\".\")", "builder.append", "builder", "\".\"", "builder.append(\"\\n\")", "builder.append", "builder", "\"\\n\"", "builder.append(\"\\n\")", "builder.append", "builder", "\"\\n\"", "System.out.print(builder)", "System.out.print", "System.out", "System", "System.out", "builder", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args)throws IOException, NumberFormatException{\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(s[0]);\n\t\t\tint w = Integer.parseInt(s[1]);\n\t\t\tif( h==0 && w==0 ) break;\n\t\t\t\n\t\t\t// ???????????°?????????\n\t\t\tfor( int i=1 ; i<=h ; i++ ){\n\t\t\t\t// ????????°?????????\n\t\t\t\tfor( int j=1 ; j<=w ; j++ ){\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}//??????\n\t\t\tbuilder.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args)throws IOException, NumberFormatException{\n\t\tBufferedReader br = new BufferedReader (new InputStreamReader(System.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tint h = Integer.parseInt(s[0]);\n\t\t\tint w = Integer.parseInt(s[1]);\n\t\t\tif( h==0 && w==0 ) break;\n\t\t\t\n\t\t\t// ???????????°?????????\n\t\t\tfor( int i=1 ; i<=h ; i++ ){\n\t\t\t\t// ????????°?????????\n\t\t\t\tfor( int j=1 ; j<=w ; j++ ){\n\t\t\t\t\tif( i==1 || i==h ){\n\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tif( j==1 || j==w ){\n\t\t\t\t\t\t\tbuilder.append(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tbuilder.append(\".\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}//???\n\t\t\t\tbuilder.append(\"\\n\");\n\t\t\t}//??????\n\t\t\tbuilder.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n}", "Main" ]
import java.io.*; public class Main{ public static void main(String[] args)throws IOException, NumberFormatException{ BufferedReader br = new BufferedReader (new InputStreamReader(System.in)); StringBuilder builder = new StringBuilder(); while(true){ String[] s = br.readLine().split(" "); int h = Integer.parseInt(s[0]); int w = Integer.parseInt(s[1]); 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 ){ builder.append("#"); }else{ if( j==1 || j==w ){ builder.append("#"); }else{ builder.append("."); } } }//??? builder.append("\n"); }//?????? builder.append("\n"); } System.out.print(builder); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 17, 2, 13, 13, 2, 13, 13, 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 ], [ 108, 8 ], [ 108, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 11, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 24, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 22, 38 ], [ 38, 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 ], [ 75, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 75, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 78, 80 ], [ 65, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 65, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 51, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 38, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 11, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 9, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.*;\nimport java.lang.StringBuilder;\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint h,w;\n\t\twhile((h=sc.nextInt())!=0&&(w=sc.nextInt())!=0){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tfor(int o=1;o<=w;o++){\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(bu);\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.lang.StringBuilder;", "StringBuilder", "java.lang", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint h,w;\n\t\twhile((h=sc.nextInt())!=0&&(w=sc.nextInt())!=0){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tfor(int o=1;o<=w;o++){\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(bu);\n\t}\n}", "Main", "public static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint h,w;\n\t\twhile((h=sc.nextInt())!=0&&(w=sc.nextInt())!=0){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tfor(int o=1;o<=w;o++){\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(bu);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint h,w;\n\t\twhile((h=sc.nextInt())!=0&&(w=sc.nextInt())!=0){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tfor(int o=1;o<=w;o++){\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(bu);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "StringBuilder bu = new StringBuilder();", "bu", "new StringBuilder()", "int h", "h", "w;", "w", "while((h=sc.nextInt())!=0&&(w=sc.nextInt())!=0){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tfor(int o=1;o<=w;o++){\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"\\n\");\n\t\t}", "(h=sc.nextInt())!=0&&(w=sc.nextInt())!=0", "(h=sc.nextInt())!=0", "(h=sc.nextInt())", "h", "sc.nextInt()", "sc.nextInt", "sc", "0", "(w=sc.nextInt())!=0", "(w=sc.nextInt())", "w", "sc.nextInt()", "sc.nextInt", "sc", "0", "{\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tfor(int o=1;o<=w;o++){\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"\\n\");\n\t\t}", "for(int i=1;i<=h;i++){\n\t\t\t\tfor(int o=1;o<=w;o++){\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}", "int i=1;", "int i=1;", "i", "1", "i<=h", "i", "h", "i++", "i++", "i", "{\n\t\t\t\tfor(int o=1;o<=w;o++){\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}", "{\n\t\t\t\tfor(int o=1;o<=w;o++){\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}", "for(int o=1;o<=w;o++){\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "int o=1;", "int o=1;", "o", "1", "o<=w", "o", "w", "o++", "o++", "o", "{\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}", "i==1||o==1||i==h||o==w", "i==h", "i==1||o==1||i==h||o==w", "i==1", "i", "1", "o==1", "o", "1", "i==h", "i", "h", "o==w", "o", "w", "{\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}", "bu.append(\"#\")", "bu.append", "bu", "\"#\"", "{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}", "bu.append(\".\")", "bu.append", "bu", "\".\"", "bu.append(\"\\n\")", "bu.append", "bu", "\"\\n\"", "bu.append(\"\\n\")", "bu.append", "bu", "\"\\n\"", "System.out.print(bu)", "System.out.print", "System.out", "System", "System.out", "bu", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint h,w;\n\t\twhile((h=sc.nextInt())!=0&&(w=sc.nextInt())!=0){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tfor(int o=1;o<=w;o++){\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(bu);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint h,w;\n\t\twhile((h=sc.nextInt())!=0&&(w=sc.nextInt())!=0){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tfor(int o=1;o<=w;o++){\n\t\t\t\t\tif(i==1||o==1||i==h||o==w){\n\t\t\t\t\t\tbu.append(\"#\");\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbu.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tbu.append(\"\\n\");\n\t\t\t}\n\t\t\tbu.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(bu);\n\t}\n}", "Main" ]
import java.util.*; import java.lang.StringBuilder; public class Main { public static void main(String[] args) throws Exception{ Scanner sc = new Scanner(System.in); StringBuilder bu = new StringBuilder(); int h,w; while((h=sc.nextInt())!=0&&(w=sc.nextInt())!=0){ for(int i=1;i<=h;i++){ for(int o=1;o<=w;o++){ if(i==1||o==1||i==h||o==w){ bu.append("#"); }else{ bu.append("."); } } bu.append("\n"); } bu.append("\n"); } System.out.print(bu); } }
[ 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, 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, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 125, 5 ], [ 125, 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 ], [ 44, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 43, 73 ], [ 73, 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 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 87, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 87, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 42, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 14, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 6, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\npublic 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 < 3 ) break;\n for ( int i = 0; i < H; i++ ){\n \t if(i==0 || i==H-1){\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }\n else{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\n }\n }\n System.out.println(\"\");\n }\n System.out.println();\n }\n}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\npublic 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 < 3 ) break;\n for ( int i = 0; i < H; i++ ){\n \t if(i==0 || i==H-1){\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }\n else{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\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 < 3 ) break;\n for ( int i = 0; i < H; i++ ){\n \t if(i==0 || i==H-1){\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }\n else{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\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 < 3 ) break;\n for ( int i = 0; i < H; i++ ){\n \t if(i==0 || i==H-1){\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }\n else{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\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 < 3 ) break;\n for ( int i = 0; i < H; i++ ){\n \t if(i==0 || i==H-1){\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }\n else{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\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 < 3 ) break;\n for ( int i = 0; i < H; i++ ){\n \t if(i==0 || i==H-1){\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }\n else{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\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 < 3 ) break;", "H < 3", "H", "3", "break;", "for ( int i = 0; i < H; i++ ){\n \t if(i==0 || i==H-1){\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }\n else{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\n }\n }\n System.out.println(\"\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n \t if(i==0 || i==H-1){\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }\n else{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\n }\n }\n System.out.println(\"\");\n }", "{\n \t if(i==0 || i==H-1){\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }\n else{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\n }\n }\n System.out.println(\"\");\n }", "if(i==0 || i==H-1){\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }\n else{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\n }\n }", "i==0 || i==H-1", "i==0", "i", "0", "i==H-1", "i", "H-1", "H", "1", "{\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }", "for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n \n System.out.print(\"#\");\n \n }", "{\n \n System.out.print(\"#\");\n \n }", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\n }\n }", "for ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\n }", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\n }", "{\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\n }", "if(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}", "j==0 || j==W-1", "j==0", "j", "0", "j==W-1", "j", "W-1", "W", "1", "{\n \t\t\tSystem.out.print(\"#\");\n \t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\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", "\"\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public class Main {\n\npublic 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 < 3 ) break;\n for ( int i = 0; i < H; i++ ){\n \t if(i==0 || i==H-1){\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }\n else{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\n }\n }\n System.out.println(\"\");\n }\n System.out.println();\n }\n}\n}", "public class Main {\n\npublic 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 < 3 ) break;\n for ( int i = 0; i < H; i++ ){\n \t if(i==0 || i==H-1){\n for ( int j = 0; j < W; j++ ){\n \n System.out.print(\"#\");\n \n }\n \t }\n else{\n \tfor ( int j = 0; j < W; j++ ){\n \t\tif(j==0 || j==W-1){\n \t\t\tSystem.out.print(\"#\");\n \t\t}\n \t\telse{\n \t\t\tSystem.out.print(\".\");\n \t\t}\n }\n }\n System.out.println(\"\");\n }\n System.out.println();\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 < 3 ) 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, 3, 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, 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, 23, 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 ], [ 34, 36 ], [ 34, 37 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 6, 43 ], [ 43, 44 ], [ 122, 45 ], [ 45, 46 ], [ 45, 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 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 70, 71 ], [ 61, 72 ], [ 73, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 74, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 74, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 90, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 90, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 60, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 45, 117 ], [ 117, 118 ], [ 45, 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\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\tdraw(h, w);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n\tpublic static void draw(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(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.out.print(\".\");\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\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\tdraw(h, w);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n\tpublic static void draw(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(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.out.print(\".\");\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\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\tdraw(h, w);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\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\tdraw(h, w);\n\t\t\tSystem.out.println();\n\t\t}\n\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) break;\n\t\t\tdraw(h, w);\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\tdraw(h, w);\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;", "draw(h, w)", "draw", "h", "w", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "String[] args", "args", "public static void draw(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(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "draw", "{\n\t\tfor (int i = 0; i < h; i++) {\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tif(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "for (int i = 0; i < h; i++) {\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tif(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.out.print(\".\");\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(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.out.print(\".\");\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(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.out.print(\".\");\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(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.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\tif(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.out.print(\".\");\n\t\t\t}", "{\n\t\t\t\tif(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.out.print(\".\");\n\t\t\t}", "if(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.out.print(\".\");", "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", "\"#\"", "if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse 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", "int h", "h", "int w", "w", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\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\tdraw(h, w);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n\tpublic static void draw(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(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.out.print(\".\");\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\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\tdraw(h, w);\n\t\t\tSystem.out.println();\n\t\t}\n\n\t}\n\n\tpublic static void draw(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(i == 0 || i == h-1)System.out.print(\"#\");\n\t\t\t\telse if(j == 0 || j == w-1)System.out.print(\"#\");\n\t\t\t\telse System.out.print(\".\");\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; draw(h, w); System.out.println(); } } public static void draw(int h, int w) { 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(); } } }
[ 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, 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, 2, 13, 17, 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 ], [ 111, 5 ], [ 111, 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 ], [ 36, 37 ], [ 17, 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 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 64, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 64, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 50, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 17, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 8, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 6, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n StringBuilder build = new StringBuilder();\n while(true){\n int h = input.nextInt();\n int w = input.nextInt();\n if(h==0&&w==0){\n break;\n }\n for(int n = 0; n < h; n++){\n for(int i = 0; i < w; i++){\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }\n build.append(\"\\n\");\n }\n build.append(\"\\n\");\n }\n System.out.print(build);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n StringBuilder build = new StringBuilder();\n while(true){\n int h = input.nextInt();\n int w = input.nextInt();\n if(h==0&&w==0){\n break;\n }\n for(int n = 0; n < h; n++){\n for(int i = 0; i < w; i++){\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }\n build.append(\"\\n\");\n }\n build.append(\"\\n\");\n }\n System.out.print(build);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n StringBuilder build = new StringBuilder();\n while(true){\n int h = input.nextInt();\n int w = input.nextInt();\n if(h==0&&w==0){\n break;\n }\n for(int n = 0; n < h; n++){\n for(int i = 0; i < w; i++){\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }\n build.append(\"\\n\");\n }\n build.append(\"\\n\");\n }\n System.out.print(build);\n }", "main", "{\n Scanner input = new Scanner(System.in);\n StringBuilder build = new StringBuilder();\n while(true){\n int h = input.nextInt();\n int w = input.nextInt();\n if(h==0&&w==0){\n break;\n }\n for(int n = 0; n < h; n++){\n for(int i = 0; i < w; i++){\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }\n build.append(\"\\n\");\n }\n build.append(\"\\n\");\n }\n System.out.print(build);\n }", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "StringBuilder build = new StringBuilder();", "build", "new StringBuilder()", "while(true){\n int h = input.nextInt();\n int w = input.nextInt();\n if(h==0&&w==0){\n break;\n }\n for(int n = 0; n < h; n++){\n for(int i = 0; i < w; i++){\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }\n build.append(\"\\n\");\n }\n build.append(\"\\n\");\n }", "true", "{\n int h = input.nextInt();\n int w = input.nextInt();\n if(h==0&&w==0){\n break;\n }\n for(int n = 0; n < h; n++){\n for(int i = 0; i < w; i++){\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }\n build.append(\"\\n\");\n }\n build.append(\"\\n\");\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){\n break;\n }", "h==0&&w==0", "h==0", "h", "0", "w==0", "w", "0", "{\n break;\n }", "break;", "for(int n = 0; n < h; n++){\n for(int i = 0; i < w; i++){\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }\n build.append(\"\\n\");\n }", "int n = 0;", "int n = 0;", "n", "0", "n < h", "n", "h", "n++", "n++", "n", "{\n for(int i = 0; i < w; i++){\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }\n build.append(\"\\n\");\n }", "{\n for(int i = 0; i < w; i++){\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }\n build.append(\"\\n\");\n }", "for(int i = 0; i < w; i++){\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "{\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }", "{\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }", "if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }", "(n == 0 || n == h-1)||(i==0 || i==w-1)", "(n == 0 || n == h-1)", "n == 0", "n", "0", "n == h-1", "n", "h-1", "h", "1", "(i==0 || i==w-1)", "i==0", "i", "0", "i==w-1", "i", "w-1", "w", "1", "{\n build.append(\"#\");\n }", "build.append(\"#\")", "build.append", "build", "\"#\"", "{\n build.append(\".\");\n }", "build.append(\".\")", "build.append", "build", "\".\"", "build.append(\"\\n\")", "build.append", "build", "\"\\n\"", "build.append(\"\\n\")", "build.append", "build", "\"\\n\"", "System.out.print(build)", "System.out.print", "System.out", "System", "System.out", "build", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n StringBuilder build = new StringBuilder();\n while(true){\n int h = input.nextInt();\n int w = input.nextInt();\n if(h==0&&w==0){\n break;\n }\n for(int n = 0; n < h; n++){\n for(int i = 0; i < w; i++){\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }\n build.append(\"\\n\");\n }\n build.append(\"\\n\");\n }\n System.out.print(build);\n }\n}", "public class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n StringBuilder build = new StringBuilder();\n while(true){\n int h = input.nextInt();\n int w = input.nextInt();\n if(h==0&&w==0){\n break;\n }\n for(int n = 0; n < h; n++){\n for(int i = 0; i < w; i++){\n if((n == 0 || n == h-1)||(i==0 || i==w-1)){\n build.append(\"#\");\n }else{\n build.append(\".\");\n }\n }\n build.append(\"\\n\");\n }\n build.append(\"\\n\");\n }\n System.out.print(build);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner input = new Scanner(System.in); StringBuilder build = new StringBuilder(); while(true){ int h = input.nextInt(); int w = input.nextInt(); if(h==0&&w==0){ break; } for(int n = 0; n < h; n++){ for(int i = 0; i < w; i++){ if((n == 0 || n == h-1)||(i==0 || i==w-1)){ build.append("#"); }else{ build.append("."); } } build.append("\n"); } build.append("\n"); } System.out.print(build); } }
[ 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, 41, 13, 4, 18, 13, 14, 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, 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, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 132, 14 ], [ 132, 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 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 26, 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 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 55, 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 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 55, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 84, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 91, 101 ], [ 101, 102 ], [ 102, 103 ], [ 91, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 84, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 54, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 26, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 15, 129 ], [ 129, 130 ], [ 0, 131 ], [ 131, 132 ], [ 131, 133 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.lang.*;\nimport java.math.*;\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(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)\n\t\t\t\tbreak;\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}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\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.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.lang.*;", "lang.*", "java", "import java.math.*;", "math.*", "java", "public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(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)\n\t\t\t\tbreak;\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}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\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 IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(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)\n\t\t\t\tbreak;\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}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\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\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(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)\n\t\t\t\tbreak;\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}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\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}", "Scanner stdIn=new Scanner(System.in);", "stdIn", "new Scanner(System.in)", "BufferedReader br=new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "while(true){\n\t\t\tint h=stdIn.nextInt();\n\t\t\tint w=stdIn.nextInt();\n\t\t\tif(h==0)\n\t\t\t\tbreak;\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}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\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\tint h=stdIn.nextInt();\n\t\t\tint w=stdIn.nextInt();\n\t\t\tif(h==0)\n\t\t\t\tbreak;\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}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\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}", "int h=stdIn.nextInt();", "h", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "int w=stdIn.nextInt();", "w", "stdIn.nextInt()", "stdIn.nextInt", "stdIn", "if(h==0)\n\t\t\t\tbreak;", "h==0", "h", "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}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\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\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}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\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\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}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\tSystem.out.print(\"#\");\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}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\tSystem.out.print(\"#\");\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}", "for(int j=0;j<w;j++)\n\t\t\t\t\t\tSystem.out.print(\"#\");", "int j=0;", "int j=0;", "j", "0", "j<w", "j", "w", "j++", "j++", "j", "System.out.print(\"#\");", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\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\t\tSystem.out.print(\".\");", "int j=0;", "int j=0;", "j", "0", "j<w-2", "j", "w-2", "w", "2", "j++", "j++", "j", "System.out.print(\".\");", "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) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(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)\n\t\t\t\tbreak;\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}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\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 IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(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)\n\t\t\t\tbreak;\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}\n\t\t\t\telse{\n\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\tfor(int j=0;j<w-2;j++)\n\t\t\t\t\t\tSystem.out.print(\".\");\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.util.*; import java.io.*; import java.lang.*; import java.math.*; public class Main{ public static void main(String[] args) throws IOException{ Scanner stdIn=new Scanner(System.in); BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); while(true){ int h=stdIn.nextInt(); int w=stdIn.nextInt(); if(h==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{ System.out.print("#"); for(int j=0;j<w-2;j++) System.out.print("."); 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, 41, 13, 20, 13, 13, 28, 13, 13, 30, 4, 18, 13, 13, 17, 41, 13, 2, 13, 17, 41, 13, 2, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 18, 13, 2, 13, 17, 2, 13, 17, 17, 28, 13, 13, 30, 4, 18, 18, 13, 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 ], [ 34, 36 ], [ 14, 39 ], [ 39, 40 ], [ 39, 41 ], [ 39, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 43, 47 ], [ 14, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 14, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 14, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 63, 64 ], [ 63, 65 ], [ 58, 66 ], [ 66, 67 ], [ 67, 68 ], [ 58, 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 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 89, 90 ], [ 89, 91 ], [ 82, 92 ], [ 14, 93 ], [ 93, 94 ], [ 93, 95 ], [ 93, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 14, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 6, 108 ], [ 108, 109 ], [ 0, 110 ], [ 110, 111 ], [ 110, 112 ] ]
[ "import java.util.*;\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)\n break;\n\n char rect[][] = new char[h][w];\n for (char[] e : rect)\n Arrays.fill(e, '#');\n\n int h2 = h - 2;\n int w2 = w - 2;\n for (int x = 0; x < w2; x++)\n for (int y = 0; y < h2; y++)\n rect[y+1][x+1] = '.';\n\n for (char[] e : rect)\n System.out.println(e);\n System.out.println();\n }\n }\n}", "import java.util.*;", "util.*", "java", "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)\n break;\n\n char rect[][] = new char[h][w];\n for (char[] e : rect)\n Arrays.fill(e, '#');\n\n int h2 = h - 2;\n int w2 = w - 2;\n for (int x = 0; x < w2; x++)\n for (int y = 0; y < h2; y++)\n rect[y+1][x+1] = '.';\n\n for (char[] e : rect)\n System.out.println(e);\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 == 0 && w == 0)\n break;\n\n char rect[][] = new char[h][w];\n for (char[] e : rect)\n Arrays.fill(e, '#');\n\n int h2 = h - 2;\n int w2 = w - 2;\n for (int x = 0; x < w2; x++)\n for (int y = 0; y < h2; y++)\n rect[y+1][x+1] = '.';\n\n for (char[] e : rect)\n System.out.println(e);\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 == 0 && w == 0)\n break;\n\n char rect[][] = new char[h][w];\n for (char[] e : rect)\n Arrays.fill(e, '#');\n\n int h2 = h - 2;\n int w2 = w - 2;\n for (int x = 0; x < w2; x++)\n for (int y = 0; y < h2; y++)\n rect[y+1][x+1] = '.';\n\n for (char[] e : rect)\n System.out.println(e);\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 == 0 && w == 0)\n break;\n\n char rect[][] = new char[h][w];\n for (char[] e : rect)\n Arrays.fill(e, '#');\n\n int h2 = h - 2;\n int w2 = w - 2;\n for (int x = 0; x < w2; x++)\n for (int y = 0; y < h2; y++)\n rect[y+1][x+1] = '.';\n\n for (char[] e : rect)\n System.out.println(e);\n System.out.println();\n }", "true", "{\n int h = sc.nextInt();\n int w = sc.nextInt();\n\n if (h == 0 && w == 0)\n break;\n\n char rect[][] = new char[h][w];\n for (char[] e : rect)\n Arrays.fill(e, '#');\n\n int h2 = h - 2;\n int w2 = w - 2;\n for (int x = 0; x < w2; x++)\n for (int y = 0; y < h2; y++)\n rect[y+1][x+1] = '.';\n\n for (char[] e : rect)\n System.out.println(e);\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;", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "char rect[][] = new char[h][w];", "rect", "new char[h][w]", "h", "w", "for (char[] e : rect)\n Arrays.fill(e, '#');", "char[] e", "rect", "Arrays.fill(e, '#');", "Arrays.fill(e, '#')", "Arrays.fill", "Arrays", "e", "'#'", "int h2 = h - 2;", "h2", "h - 2", "h", "2", "int w2 = w - 2;", "w2", "w - 2", "w", "2", "for (int x = 0; x < w2; x++)\n for (int y = 0; y < h2; y++)\n rect[y+1][x+1] = '.';", "int x = 0;", "int x = 0;", "x", "0", "x < w2", "x", "w2", "x++", "x++", "x", "for (int y = 0; y < h2; y++)\n rect[y+1][x+1] = '.';", "for (int y = 0; y < h2; y++)\n rect[y+1][x+1] = '.';", "int y = 0;", "int y = 0;", "y", "0", "y < h2", "y", "h2", "y++", "y++", "y", "rect[y+1][x+1] = '.';", "rect[y+1][x+1] = '.'", "rect[y+1][x+1]", "rect[y+1]", "rect", "y+1", "y", "1", "x+1", "x", "1", "'.'", "for (char[] e : rect)\n System.out.println(e);", "char[] e", "rect", "System.out.println(e);", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "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 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)\n break;\n\n char rect[][] = new char[h][w];\n for (char[] e : rect)\n Arrays.fill(e, '#');\n\n int h2 = h - 2;\n int w2 = w - 2;\n for (int x = 0; x < w2; x++)\n for (int y = 0; y < h2; y++)\n rect[y+1][x+1] = '.';\n\n for (char[] e : rect)\n System.out.println(e);\n System.out.println();\n }\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)\n break;\n\n char rect[][] = new char[h][w];\n for (char[] e : rect)\n Arrays.fill(e, '#');\n\n int h2 = h - 2;\n int w2 = w - 2;\n for (int x = 0; x < w2; x++)\n for (int y = 0; y < h2; y++)\n rect[y+1][x+1] = '.';\n\n for (char[] e : rect)\n System.out.println(e);\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); while (true) { int h = sc.nextInt(); int w = sc.nextInt(); if (h == 0 && w == 0) break; char rect[][] = new char[h][w]; for (char[] e : rect) Arrays.fill(e, '#'); int h2 = h - 2; int w2 = w - 2; for (int x = 0; x < w2; x++) for (int y = 0; y < h2; y++) rect[y+1][x+1] = '.'; for (char[] e : rect) System.out.println(e); System.out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 112, 5 ], [ 112, 6 ], [ 6, 7 ], [ 112, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 16, 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 ], [ 66, 65 ], [ 73, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 73, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 66, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 80, 82 ], [ 63, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 63, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 49, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 16, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 8, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n private static Scanner scan;\n\n public static void main(String[] args) {\n scan = new Scanner(System.in);\n\n while (true) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n if (x == 0 && y == 0) {\n return;\n }\n for (int i = 0; i < x; i++) {\n for (int p = 0; p < y; p++) {\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 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", "public class Main {\n private static Scanner scan;\n\n public static void main(String[] args) {\n scan = new Scanner(System.in);\n\n while (true) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n if (x == 0 && y == 0) {\n return;\n }\n for (int i = 0; i < x; i++) {\n for (int p = 0; p < y; p++) {\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 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", "private static Scanner scan;", "scan", "public static void main(String[] args) {\n scan = new Scanner(System.in);\n\n while (true) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n if (x == 0 && y == 0) {\n return;\n }\n for (int i = 0; i < x; i++) {\n for (int p = 0; p < y; p++) {\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 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 scan = new Scanner(System.in);\n\n while (true) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n if (x == 0 && y == 0) {\n return;\n }\n for (int i = 0; i < x; i++) {\n for (int p = 0; p < y; p++) {\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 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 }", "scan = new Scanner(System.in)", "scan", "new Scanner(System.in)", "while (true) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n if (x == 0 && y == 0) {\n return;\n }\n for (int i = 0; i < x; i++) {\n for (int p = 0; p < y; p++) {\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 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 x = scan.nextInt();\n int y = scan.nextInt();\n if (x == 0 && y == 0) {\n return;\n }\n for (int i = 0; i < x; i++) {\n for (int p = 0; p < y; p++) {\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 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 x = scan.nextInt();", "x", "scan.nextInt()", "scan.nextInt", "scan", "int y = scan.nextInt();", "y", "scan.nextInt()", "scan.nextInt", "scan", "if (x == 0 && y == 0) {\n return;\n }", "x == 0 && y == 0", "x == 0", "x", "0", "y == 0", "y", "0", "{\n return;\n }", "return;", "for (int i = 0; i < x; i++) {\n for (int p = 0; p < y; p++) {\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 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 < x", "i", "x", "i++", "i++", "i", "{\n for (int p = 0; p < y; p++) {\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.print(\"\\n\");\n }", "{\n for (int p = 0; p < y; p++) {\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }\n System.out.print(\"\\n\");\n }", "for (int p = 0; p < y; p++) {\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }", "int p = 0;", "int p = 0;", "p", "0", "p < y", "p", "y", "p++", "p++", "p", "{\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }", "{\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }\n }", "if (i == 0 || p == 0 || (i == x - 1) || (p == y - 1)) {\n System.out.print(\"#\");\n } else {\n System.out.print(\".\");\n }", "i == 0 || p == 0 || (i == x - 1) || (p == y - 1)", "(i == x - 1)", "i == 0 || p == 0 || (i == x - 1) || (p == y - 1)", "i == 0", "i", "0", "p == 0", "p", "0", "(i == x - 1)", "i", "x - 1", "x", "1", "(p == y - 1)", "p", "y - 1", "y", "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", "public class Main {\n private static Scanner scan;\n\n public static void main(String[] args) {\n scan = new Scanner(System.in);\n\n while (true) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n if (x == 0 && y == 0) {\n return;\n }\n for (int i = 0; i < x; i++) {\n for (int p = 0; p < y; p++) {\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 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}", "public class Main {\n private static Scanner scan;\n\n public static void main(String[] args) {\n scan = new Scanner(System.in);\n\n while (true) {\n int x = scan.nextInt();\n int y = scan.nextInt();\n if (x == 0 && y == 0) {\n return;\n }\n for (int i = 0; i < x; i++) {\n for (int p = 0; p < y; p++) {\n if (i == 0 || p == 0 || (i == x - 1) || (p == y - 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" ]
import java.util.Scanner; public class Main { private static Scanner scan; public static void main(String[] args) { scan = new Scanner(System.in); while (true) { int x = scan.nextInt(); int y = scan.nextInt(); if (x == 0 && y == 0) { return; } for (int i = 0; i < x; i++) { for (int p = 0; p < y; p++) { if (i == 0 || p == 0 || (i == x - 1) || (p == y - 1)) { System.out.print("#"); } else { System.out.print("."); } } System.out.print("\n"); } System.out.print("\n"); } } }
[ 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, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 0, 13, 17, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 0, 13, 17, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 13, 17, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 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 ], [ 112, 8 ], [ 112, 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 ], [ 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 ], [ 49, 51 ], [ 40, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 54, 66 ], [ 67, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 68, 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 ], [ 94, 97 ], [ 83, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 53, 103 ], [ 103, 104 ], [ 104, 105 ], [ 19, 106 ], [ 106, 107 ], [ 107, 108 ], [ 9, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "import static java.lang.System.out;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n while (scan.hasNext()) {\n int H = scan.nextInt();\n int W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int i = 0; i < H; i += 1) {\n for (int j = 0; j < W; j += 1) {\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }\n out.println();\n }\n out.println();\n }\n } \n}", "import static java.lang.System.out;", "import static java.lang.System.out;", "import static java.lang.System.out;", "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 while (scan.hasNext()) {\n int H = scan.nextInt();\n int W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int i = 0; i < H; i += 1) {\n for (int j = 0; j < W; j += 1) {\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }\n out.println();\n }\n out.println();\n }\n } \n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n while (scan.hasNext()) {\n int H = scan.nextInt();\n int W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int i = 0; i < H; i += 1) {\n for (int j = 0; j < W; j += 1) {\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }\n out.println();\n }\n out.println();\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n while (scan.hasNext()) {\n int H = scan.nextInt();\n int W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int i = 0; i < H; i += 1) {\n for (int j = 0; j < W; j += 1) {\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }\n out.println();\n }\n out.println();\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "while (scan.hasNext()) {\n int H = scan.nextInt();\n int W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int i = 0; i < H; i += 1) {\n for (int j = 0; j < W; j += 1) {\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }\n out.println();\n }\n out.println();\n }", "scan.hasNext()", "scan.hasNext", "scan", "{\n int H = scan.nextInt();\n int W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int i = 0; i < H; i += 1) {\n for (int j = 0; j < W; j += 1) {\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }\n out.println();\n }\n out.println();\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 }", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n break;\n }", "break;", "for (int i = 0; i < H; i += 1) {\n for (int j = 0; j < W; j += 1) {\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }\n out.println();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i += 1", "i += 1", "i", "1", "{\n for (int j = 0; j < W; j += 1) {\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }\n out.println();\n }", "{\n for (int j = 0; j < W; j += 1) {\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }\n out.println();\n }", "for (int j = 0; j < W; j += 1) {\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j += 1", "j += 1", "j", "1", "{\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }", "{\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }", "if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }", "i == 0 || i == H - 1", "i == 0", "i", "0", "i == H - 1", "i", "H - 1", "H", "1", "{\n out.print(\"#\");\n }", "out.print(\"#\")", "out.print", "out", "\"#\"", "if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }", "j == 0 || j == W - 1", "j == 0", "j", "0", "j == W - 1", "j", "W - 1", "W", "1", "{ \n out.print(\"#\");\n }", "out.print(\"#\")", "out.print", "out", "\"#\"", "{\n out.print(\".\");\n }", "out.print(\".\")", "out.print", "out", "\".\"", "out.println()", "out.println", "out", "out.println()", "out.println", "out", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n while (scan.hasNext()) {\n int H = scan.nextInt();\n int W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int i = 0; i < H; i += 1) {\n for (int j = 0; j < W; j += 1) {\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }\n out.println();\n }\n out.println();\n }\n } \n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n while (scan.hasNext()) {\n int H = scan.nextInt();\n int W = scan.nextInt();\n if (H == 0 && W == 0) {\n break;\n }\n\n for (int i = 0; i < H; i += 1) {\n for (int j = 0; j < W; j += 1) {\n if (i == 0 || i == H - 1) {\n out.print(\"#\");\n } else if (j == 0 || j == W - 1) { \n out.print(\"#\");\n } else {\n out.print(\".\");\n }\n }\n out.println();\n }\n out.println();\n }\n } \n}", "Main" ]
import static java.lang.System.out; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); while (scan.hasNext()) { int H = scan.nextInt(); int W = scan.nextInt(); if (H == 0 && W == 0) { break; } for (int i = 0; i < H; i += 1) { for (int j = 0; j < W; j += 1) { if (i == 0 || i == H - 1) { out.print("#"); } else if (j == 0 || j == W - 1) { out.print("#"); } else { out.print("."); } } out.println(); } out.println(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 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, 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, 4, 18, 13, 17, 4, 18, 13, 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, 4, 18, 13, 17, 13, 4, 18, 13, 17, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 36, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 45, 55 ], [ 55, 56 ], [ 56, 57 ], [ 45, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 59, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 36, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 36, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 36, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 78, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 36, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 36, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 36, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 110, 114 ], [ 36, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 115, 119 ], [ 36, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 36, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 6, 130 ], [ 130, 131 ], [ 0, 132 ], [ 132, 133 ], [ 132, 134 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tStringBuilder soto=new StringBuilder(\"\");\n\t\tStringBuilder naka=new StringBuilder(\"\");\n\t\tint H=sc.nextInt(),W=sc.nextInt();\n\twhile(H!=0||W!=0){\n\t\t\tsoto.append(\"##\");\n\t\tnaka.append(\"#\");\n\t\tfor(int n=1;n<=W-2;n++){\n\t\t\tnaka.append(\".\");\n\t\t\tsoto.append(\"#\");}\n\t\tnaka.append(\"#\");\n\t\tSystem.out.println(soto);\n\t\tfor(int n=1;n<=H-2;n++){\n\t\t\tSystem.out.println(naka);}\n\t\tSystem.out.println(soto);\n\t\tSystem.out.println();\n\t\tsoto.delete(0,W);naka.delete(0,W);\n\t\tH=sc.nextInt();W=sc.nextInt();\n\t\t\t}\n\t}}", "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\tStringBuilder soto=new StringBuilder(\"\");\n\t\tStringBuilder naka=new StringBuilder(\"\");\n\t\tint H=sc.nextInt(),W=sc.nextInt();\n\twhile(H!=0||W!=0){\n\t\t\tsoto.append(\"##\");\n\t\tnaka.append(\"#\");\n\t\tfor(int n=1;n<=W-2;n++){\n\t\t\tnaka.append(\".\");\n\t\t\tsoto.append(\"#\");}\n\t\tnaka.append(\"#\");\n\t\tSystem.out.println(soto);\n\t\tfor(int n=1;n<=H-2;n++){\n\t\t\tSystem.out.println(naka);}\n\t\tSystem.out.println(soto);\n\t\tSystem.out.println();\n\t\tsoto.delete(0,W);naka.delete(0,W);\n\t\tH=sc.nextInt();W=sc.nextInt();\n\t\t\t}\n\t}}", "Main", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tStringBuilder soto=new StringBuilder(\"\");\n\t\tStringBuilder naka=new StringBuilder(\"\");\n\t\tint H=sc.nextInt(),W=sc.nextInt();\n\twhile(H!=0||W!=0){\n\t\t\tsoto.append(\"##\");\n\t\tnaka.append(\"#\");\n\t\tfor(int n=1;n<=W-2;n++){\n\t\t\tnaka.append(\".\");\n\t\t\tsoto.append(\"#\");}\n\t\tnaka.append(\"#\");\n\t\tSystem.out.println(soto);\n\t\tfor(int n=1;n<=H-2;n++){\n\t\t\tSystem.out.println(naka);}\n\t\tSystem.out.println(soto);\n\t\tSystem.out.println();\n\t\tsoto.delete(0,W);naka.delete(0,W);\n\t\tH=sc.nextInt();W=sc.nextInt();\n\t\t\t}\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tStringBuilder soto=new StringBuilder(\"\");\n\t\tStringBuilder naka=new StringBuilder(\"\");\n\t\tint H=sc.nextInt(),W=sc.nextInt();\n\twhile(H!=0||W!=0){\n\t\t\tsoto.append(\"##\");\n\t\tnaka.append(\"#\");\n\t\tfor(int n=1;n<=W-2;n++){\n\t\t\tnaka.append(\".\");\n\t\t\tsoto.append(\"#\");}\n\t\tnaka.append(\"#\");\n\t\tSystem.out.println(soto);\n\t\tfor(int n=1;n<=H-2;n++){\n\t\t\tSystem.out.println(naka);}\n\t\tSystem.out.println(soto);\n\t\tSystem.out.println();\n\t\tsoto.delete(0,W);naka.delete(0,W);\n\t\tH=sc.nextInt();W=sc.nextInt();\n\t\t\t}\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "StringBuilder soto=new StringBuilder(\"\");", "soto", "new StringBuilder(\"\")", "StringBuilder naka=new StringBuilder(\"\");", "naka", "new StringBuilder(\"\")", "int 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\tsoto.append(\"##\");\n\t\tnaka.append(\"#\");\n\t\tfor(int n=1;n<=W-2;n++){\n\t\t\tnaka.append(\".\");\n\t\t\tsoto.append(\"#\");}\n\t\tnaka.append(\"#\");\n\t\tSystem.out.println(soto);\n\t\tfor(int n=1;n<=H-2;n++){\n\t\t\tSystem.out.println(naka);}\n\t\tSystem.out.println(soto);\n\t\tSystem.out.println();\n\t\tsoto.delete(0,W);naka.delete(0,W);\n\t\tH=sc.nextInt();W=sc.nextInt();\n\t\t\t}", "H!=0||W!=0", "H!=0", "H", "0", "W!=0", "W", "0", "{\n\t\t\tsoto.append(\"##\");\n\t\tnaka.append(\"#\");\n\t\tfor(int n=1;n<=W-2;n++){\n\t\t\tnaka.append(\".\");\n\t\t\tsoto.append(\"#\");}\n\t\tnaka.append(\"#\");\n\t\tSystem.out.println(soto);\n\t\tfor(int n=1;n<=H-2;n++){\n\t\t\tSystem.out.println(naka);}\n\t\tSystem.out.println(soto);\n\t\tSystem.out.println();\n\t\tsoto.delete(0,W);naka.delete(0,W);\n\t\tH=sc.nextInt();W=sc.nextInt();\n\t\t\t}", "soto.append(\"##\")", "soto.append", "soto", "\"##\"", "naka.append(\"#\")", "naka.append", "naka", "\"#\"", "for(int n=1;n<=W-2;n++){\n\t\t\tnaka.append(\".\");\n\t\t\tsoto.append(\"#\");}", "int n=1;", "int n=1;", "n", "1", "n<=W-2", "n", "W-2", "W", "2", "n++", "n++", "n", "{\n\t\t\tnaka.append(\".\");\n\t\t\tsoto.append(\"#\");}", "{\n\t\t\tnaka.append(\".\");\n\t\t\tsoto.append(\"#\");}", "naka.append(\".\")", "naka.append", "naka", "\".\"", "soto.append(\"#\")", "soto.append", "soto", "\"#\"", "naka.append(\"#\")", "naka.append", "naka", "\"#\"", "System.out.println(soto)", "System.out.println", "System.out", "System", "System.out", "soto", "for(int n=1;n<=H-2;n++){\n\t\t\tSystem.out.println(naka);}", "int n=1;", "int n=1;", "n", "1", "n<=H-2", "n", "H-2", "H", "2", "n++", "n++", "n", "{\n\t\t\tSystem.out.println(naka);}", "{\n\t\t\tSystem.out.println(naka);}", "System.out.println(naka)", "System.out.println", "System.out", "System", "System.out", "naka", "System.out.println(soto)", "System.out.println", "System.out", "System", "System.out", "soto", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "soto.delete(0,W)", "soto.delete", "soto", "0", "W", "naka.delete(0,W)", "naka.delete", "naka", "0", "W", "H=sc.nextInt()", "H", "sc.nextInt()", "sc.nextInt", "sc", "W=sc.nextInt()", "W", "sc.nextInt()", "sc.nextInt", "sc", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tStringBuilder soto=new StringBuilder(\"\");\n\t\tStringBuilder naka=new StringBuilder(\"\");\n\t\tint H=sc.nextInt(),W=sc.nextInt();\n\twhile(H!=0||W!=0){\n\t\t\tsoto.append(\"##\");\n\t\tnaka.append(\"#\");\n\t\tfor(int n=1;n<=W-2;n++){\n\t\t\tnaka.append(\".\");\n\t\t\tsoto.append(\"#\");}\n\t\tnaka.append(\"#\");\n\t\tSystem.out.println(soto);\n\t\tfor(int n=1;n<=H-2;n++){\n\t\t\tSystem.out.println(naka);}\n\t\tSystem.out.println(soto);\n\t\tSystem.out.println();\n\t\tsoto.delete(0,W);naka.delete(0,W);\n\t\tH=sc.nextInt();W=sc.nextInt();\n\t\t\t}\n\t}}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tStringBuilder soto=new StringBuilder(\"\");\n\t\tStringBuilder naka=new StringBuilder(\"\");\n\t\tint H=sc.nextInt(),W=sc.nextInt();\n\twhile(H!=0||W!=0){\n\t\t\tsoto.append(\"##\");\n\t\tnaka.append(\"#\");\n\t\tfor(int n=1;n<=W-2;n++){\n\t\t\tnaka.append(\".\");\n\t\t\tsoto.append(\"#\");}\n\t\tnaka.append(\"#\");\n\t\tSystem.out.println(soto);\n\t\tfor(int n=1;n<=H-2;n++){\n\t\t\tSystem.out.println(naka);}\n\t\tSystem.out.println(soto);\n\t\tSystem.out.println();\n\t\tsoto.delete(0,W);naka.delete(0,W);\n\t\tH=sc.nextInt();W=sc.nextInt();\n\t\t\t}\n\t}}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc=new Scanner(System.in); StringBuilder soto=new StringBuilder(""); StringBuilder naka=new StringBuilder(""); int H=sc.nextInt(),W=sc.nextInt(); while(H!=0||W!=0){ soto.append("##"); naka.append("#"); for(int n=1;n<=W-2;n++){ naka.append("."); soto.append("#");} naka.append("#"); System.out.println(soto); for(int n=1;n<=H-2;n++){ System.out.println(naka);} System.out.println(soto); System.out.println(); soto.delete(0,W);naka.delete(0,W); H=sc.nextInt();W=sc.nextInt(); } }}
[ 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, 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, 14, 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, 17, 30, 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, 13, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 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 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 53, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 49, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 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 ], [ 83, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 79, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 110, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 123, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 134, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 35, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 6, 158 ], [ 158, 159 ] ]
[ "import java.util.Scanner;\nclass Main\n{\n\tpublic static void main(String[] args)throws Exception\n\t{\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tint H=scan.nextInt();\t\t\n\t\t\tint W=scan.nextInt();\n\n\t\t\tif(H==0&&W==0)\n\t\t\t{\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(int i=1;i<=H;i++)\n\t\t\t\t{\t\n\t\t\t\t\tif(i==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\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}System.out.print(\"\\n\");\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main\n{\n\tpublic static void main(String[] args)throws Exception\n\t{\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tint H=scan.nextInt();\t\t\n\t\t\tint W=scan.nextInt();\n\n\t\t\tif(H==0&&W==0)\n\t\t\t{\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(int i=1;i<=H;i++)\n\t\t\t\t{\t\n\t\t\t\t\tif(i==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\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}System.out.print(\"\\n\");\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args)throws Exception\n\t{\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tint H=scan.nextInt();\t\t\n\t\t\tint W=scan.nextInt();\n\n\t\t\tif(H==0&&W==0)\n\t\t\t{\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(int i=1;i<=H;i++)\n\t\t\t\t{\t\n\t\t\t\t\tif(i==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\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}System.out.print(\"\\n\");\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\t\n\t\twhile(true)\n\t\t{\n\t\t\tint H=scan.nextInt();\t\t\n\t\t\tint W=scan.nextInt();\n\n\t\t\tif(H==0&&W==0)\n\t\t\t{\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(int i=1;i<=H;i++)\n\t\t\t\t{\t\n\t\t\t\t\tif(i==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\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}System.out.print(\"\\n\");\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t}", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "while(true)\n\t\t{\n\t\t\tint H=scan.nextInt();\t\t\n\t\t\tint W=scan.nextInt();\n\n\t\t\tif(H==0&&W==0)\n\t\t\t{\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(int i=1;i<=H;i++)\n\t\t\t\t{\t\n\t\t\t\t\tif(i==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\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}System.out.print(\"\\n\");\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t}", "true", "{\n\t\t\tint H=scan.nextInt();\t\t\n\t\t\tint W=scan.nextInt();\n\n\t\t\tif(H==0&&W==0)\n\t\t\t{\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(int i=1;i<=H;i++)\n\t\t\t\t{\t\n\t\t\t\t\tif(i==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\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}System.out.print(\"\\n\");\n\t\t\t\n\t\t\t}\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{\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tfor(int i=1;i<=H;i++)\n\t\t\t\t{\t\n\t\t\t\t\tif(i==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\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}System.out.print(\"\\n\");\n\t\t\t\n\t\t\t}", "H==0&&W==0", "H==0", "H", "0", "W==0", "W", "0", "{\n\t\t\t\tbreak;\t\t\t\t\n\t\t\t}", "break;", "{\n\t\t\t\tfor(int i=1;i<=H;i++)\n\t\t\t\t{\t\n\t\t\t\t\tif(i==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\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}System.out.print(\"\\n\");\n\t\t\t\n\t\t\t}", "for(int i=1;i<=H;i++)\n\t\t\t\t{\t\n\t\t\t\t\tif(i==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\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}", "int i=1;", "int i=1;", "i", "1", "i<=H", "i", "H", "i++", "i++", "i", "{\t\n\t\t\t\t\tif(i==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\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}", "{\t\n\t\t\t\t\tif(i==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\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}", "if(i==1)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}\n\t\t\t\t\telse if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "i==1", "i", "1", "{\n\t\t\t\t\t\tfor(int a=1;a<=W;a++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t}", "for(int a=1;a<=W;a++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "int a=1;", "int a=1;", "a", "1", "a<=W", "a", "W", "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", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "if(i==H)\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}\n\t\t\t\t\telse\n\t\t\t\t\t{\n\t\t\t\t\t\tfor(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "i==H", "i", "H", "{\n\t\t\t\t\t\tfor(int b=1;b<=W;b++)\n\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\tSystem.out.println(\"\");\n\t\t\t\t\t\n\t\t\t\t\t}", "for(int b=1;b<=W;b++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "int b=1;", "int 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(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "for(int c=1;c<=W;c++)\n\t\t\t\t\t\t{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}", "int c=1;", "int c=1;", "c", "1", "c<=W", "c", "W", "c++", "c++", "c", "{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\t\tif(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}\t\n\t\t\t\t\t\t}", "if(c==1)\n\t\t\t\t\t\t\t{\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 if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}", "c==1", "c", "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", "\"#\"", "if(c==W)\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\telse\n\t\t\t\t\t\t\t{\n\t\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t\t}", "c==W", "c", "W", "{\n\t\t\t\t\t\t\t\tSystem.out.println(\"#\");\n\t\t\t\t\t\t\t}", "System.out.println(\"#\")", "System.out.println", "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.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)throws Exception { 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 i=1;i<=H;i++) { if(i==1) { for(int a=1;a<=W;a++) { System.out.print("#"); } System.out.println(""); } else if(i==H) { for(int b=1;b<=W;b++) { System.out.print("#"); } System.out.println(""); } else { for(int c=1;c<=W;c++) { if(c==1) { System.out.print("#"); } else if(c==W) { System.out.println("#"); } else { System.out.print("."); } } } }System.out.print("\n"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 17, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 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, 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, 13, 30, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 13, 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 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 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 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 26, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 26, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 26, 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 ], [ 98, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 98, 98 ], [ 98, 99 ], [ 98, 100 ], [ 89, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 86, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 86, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 72, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 26, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 8, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 6, 130 ], [ 130, 131 ] ]
[ "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\tchar s='#',p='.',n='\\n';\n\t\twhile(true){\n\t\t\tString in=br.readLine();\n\t\t\tif(in.equals(\"0 0\")) break;\n\t\t\tString[] a=in.split(\" \");\n\t\t\tint H=Integer.parseInt(a[0]);\n\t int W=Integer.parseInt(a[1]);\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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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\tchar s='#',p='.',n='\\n';\n\t\twhile(true){\n\t\t\tString in=br.readLine();\n\t\t\tif(in.equals(\"0 0\")) break;\n\t\t\tString[] a=in.split(\" \");\n\t\t\tint H=Integer.parseInt(a[0]);\n\t int W=Integer.parseInt(a[1]);\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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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\tchar s='#',p='.',n='\\n';\n\t\twhile(true){\n\t\t\tString in=br.readLine();\n\t\t\tif(in.equals(\"0 0\")) break;\n\t\t\tString[] a=in.split(\" \");\n\t\t\tint H=Integer.parseInt(a[0]);\n\t int W=Integer.parseInt(a[1]);\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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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\tchar s='#',p='.',n='\\n';\n\t\twhile(true){\n\t\t\tString in=br.readLine();\n\t\t\tif(in.equals(\"0 0\")) break;\n\t\t\tString[] a=in.split(\" \");\n\t\t\tint H=Integer.parseInt(a[0]);\n\t int W=Integer.parseInt(a[1]);\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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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()", "char s='#'", "s", "'#'", "p='.'", "p", "'.'", "n='\\n';", "n", "'\\n'", "while(true){\n\t\t\tString in=br.readLine();\n\t\t\tif(in.equals(\"0 0\")) break;\n\t\t\tString[] a=in.split(\" \");\n\t\t\tint H=Integer.parseInt(a[0]);\n\t int W=Integer.parseInt(a[1]);\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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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 in=br.readLine();\n\t\t\tif(in.equals(\"0 0\")) break;\n\t\t\tString[] a=in.split(\" \");\n\t\t\tint H=Integer.parseInt(a[0]);\n\t int W=Integer.parseInt(a[1]);\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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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 in=br.readLine();", "in", "br.readLine()", "br.readLine", "br", "if(in.equals(\"0 0\")) break;", "in.equals(\"0 0\")", "in.equals", "in", "\"0 0\"", "break;", "String[] a=in.split(\" \");", "a", "in.split(\" \")", "in.split", "in", "\" \"", "int H=Integer.parseInt(a[0]);", "H", "Integer.parseInt(a[0])", "Integer.parseInt", "Integer", "a[0]", "a", "0", "int W=Integer.parseInt(a[1]);", "W", "Integer.parseInt(a[1])", "Integer.parseInt", "Integer", "a[1]", "a", "1", "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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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(p);\n\t\t\t\t\t}else{\n\t\t\t\t\t\tsb.append(s);\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(p);\n\t\t\t\t\t}", "sb.append(p)", "sb.append", "sb", "p", "{\n\t\t\t\t\t\tsb.append(s);\n\t\t\t\t\t}", "sb.append(s)", "sb.append", "sb", "s", "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(); char s='#',p='.',n='\n'; while(true){ String in=br.readLine(); if(in.equals("0 0")) break; String[] a=in.split(" "); int H=Integer.parseInt(a[0]); int W=Integer.parseInt(a[1]); 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(p); }else{ sb.append(s); } } 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, 41, 13, 41, 13, 20, 42, 17, 30, 41, 13, 4, 18, 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, 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, 2, 13, 17, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 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, 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 ], [ 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 ], [ 27, 28 ], [ 28, 29 ], [ 25, 30 ], [ 22, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 36, 38 ], [ 22, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 44, 46 ], [ 22, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 22, 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 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 83, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 83, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 100, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 100, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 69, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 22, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 6, 136 ], [ 136, 137 ] ]
[ "import java.io.*;\n \nclass Main{\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tint x,y,i,j;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tx = Integer.parseInt(str[0]);\n\t\t\ty = Integer.parseInt(str[1]);\n\n\t\t\tif(x == 0 && y ==0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor(i = 0; i < x; i++){\n\t\t\t\tfor(j = 0; j < y; j++){\n\t\t\t\t\tif(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t}\n \t}\n}", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String[] args) throws IOException{\n\n\t\tint x,y,i,j;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tx = Integer.parseInt(str[0]);\n\t\t\ty = Integer.parseInt(str[1]);\n\n\t\t\tif(x == 0 && y ==0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor(i = 0; i < x; i++){\n\t\t\t\tfor(j = 0; j < y; j++){\n\t\t\t\t\tif(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t}\n \t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\n\t\tint x,y,i,j;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tx = Integer.parseInt(str[0]);\n\t\t\ty = Integer.parseInt(str[1]);\n\n\t\t\tif(x == 0 && y ==0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor(i = 0; i < x; i++){\n\t\t\t\tfor(j = 0; j < y; j++){\n\t\t\t\t\tif(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t}\n \t}", "main", "{\n\n\t\tint x,y,i,j;\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true){\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tx = Integer.parseInt(str[0]);\n\t\t\ty = Integer.parseInt(str[1]);\n\n\t\t\tif(x == 0 && y ==0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor(i = 0; i < x; i++){\n\t\t\t\tfor(j = 0; j < y; j++){\n\t\t\t\t\tif(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t}\n \t}", "int x", "x", "y", "y", "i", "i", "j;", "j", "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\tx = Integer.parseInt(str[0]);\n\t\t\ty = Integer.parseInt(str[1]);\n\n\t\t\tif(x == 0 && y ==0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor(i = 0; i < x; i++){\n\t\t\t\tfor(j = 0; j < y; j++){\n\t\t\t\t\tif(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t}", "true", "{\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tx = Integer.parseInt(str[0]);\n\t\t\ty = Integer.parseInt(str[1]);\n\n\t\t\tif(x == 0 && y ==0){\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\tfor(i = 0; i < x; i++){\n\t\t\t\tfor(j = 0; j < y; j++){\n\t\t\t\t\tif(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t}", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "x = Integer.parseInt(str[0])", "x", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "y = Integer.parseInt(str[1])", "y", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "if(x == 0 && y ==0){\n\t\t\t\tbreak;\n\t\t\t}", "x == 0 && y ==0", "x == 0", "x", "0", "y ==0", "y", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for(i = 0; i < x; i++){\n\t\t\t\tfor(j = 0; j < y; j++){\n\t\t\t\t\tif(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}", "i = 0;", "i = 0", "i", "0", "i < x", "i", "x", "i++", "i++", "i", "{\n\t\t\t\tfor(j = 0; j < y; j++){\n\t\t\t\t\tif(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}", "{\n\t\t\t\tfor(j = 0; j < y; j++){\n\t\t\t\t\tif(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.printf(\"\\n\");\n\t\t\t}", "for(j = 0; j < y; j++){\n\t\t\t\t\tif(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "j = 0;", "j = 0", "j", "0", "j < y", "j", "y", "j++", "j++", "j", "{\n\t\t\t\t\tif(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(i == 0 || i+1 == x){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}", "i == 0 || i+1 == x", "i == 0", "i", "0", "i+1 == x", "i+1", "i", "1", "x", "{\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", "\"#\"", "if(j ==0 || j+1 == y){\n\t\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t\t}else {\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}", "j ==0 || j+1 == y", "j ==0", "j", "0", "j+1 == y", "j+1", "j", "1", "y", "{\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", "\"#\"", "{\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\"", "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{ int x,y,i,j; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true){ String[] str = br.readLine().split(" "); x = Integer.parseInt(str[0]); y = Integer.parseInt(str[1]); if(x == 0 && y ==0){ break; } for(i = 0; i < x; i++){ for(j = 0; j < y; j++){ if(i == 0 || i+1 == x){ System.out.printf("#"); }else if(j ==0 || j+1 == y){ System.out.printf("#"); }else { System.out.printf("."); } } System.out.printf("\n"); } System.out.printf("\n"); } } }
[ 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, 4, 13, 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, 4, 13, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 2, 13, 17, 1, 40, 13, 30, 4, 18, 13, 17, 4, 18, 13, 17, 29, 4, 18, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 147, 5 ], [ 147, 6 ], [ 6, 7 ], [ 6, 8 ], [ 147, 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 ], [ 34, 36 ], [ 34, 37 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 9, 44 ], [ 44, 45 ], [ 147, 46 ], [ 46, 47 ], [ 46, 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 ], [ 67, 70 ], [ 67, 71 ], [ 46, 72 ], [ 72, 73 ], [ 46, 74 ], [ 74, 75 ], [ 147, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 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 ], [ 98, 99 ], [ 98, 100 ], [ 93, 101 ], [ 101, 102 ], [ 102, 103 ], [ 93, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 82, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 109, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 121, 123 ], [ 114, 124 ], [ 124, 125 ], [ 125, 126 ], [ 114, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 109, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 78, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 76, 140 ], [ 140, 141 ], [ 76, 142 ], [ 142, 143 ], [ 76, 144 ], [ 144, 145 ], [ 0, 146 ], [ 146, 147 ], [ 146, 148 ] ]
[ "import java.util.*;\n\npublic class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n solve(h, w);\n System.out.println(\"\");\n }\n }\n \n private static void solve(int h, int w) {\n for (int i = 0;i < h;i++) {\n System.out.println(line(i, h, w));\n }\n }\n \n private static String line(int idx, int h, int w) {\n StringBuilder sb = new StringBuilder();\n if (idx == 0 || idx == h-1) {\n for (int i = 0;i < w;i++) sb.append(\"#\");\n } else {\n sb.append(\"#\");\n for (int i = 0;i < w-2;i++) sb.append(\".\");\n sb.append(\"#\");\n }\n return sb.toString();\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n solve(h, w);\n System.out.println(\"\");\n }\n }\n \n private static void solve(int h, int w) {\n for (int i = 0;i < h;i++) {\n System.out.println(line(i, h, w));\n }\n }\n \n private static String line(int idx, int h, int w) {\n StringBuilder sb = new StringBuilder();\n if (idx == 0 || idx == h-1) {\n for (int i = 0;i < w;i++) sb.append(\"#\");\n } else {\n sb.append(\"#\");\n for (int i = 0;i < w-2;i++) sb.append(\".\");\n sb.append(\"#\");\n }\n return sb.toString();\n }\n}", "Main", "private static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) throws Exception {\n while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n solve(h, w);\n System.out.println(\"\");\n }\n }", "main", "{\n while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n solve(h, w);\n System.out.println(\"\");\n }\n }", "while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n solve(h, w);\n System.out.println(\"\");\n }", "true", "{\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n solve(h, w);\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;", "solve(h, w)", "solve", "h", "w", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "private static void solve(int h, int w) {\n for (int i = 0;i < h;i++) {\n System.out.println(line(i, h, w));\n }\n }", "solve", "{\n for (int i = 0;i < h;i++) {\n System.out.println(line(i, h, w));\n }\n }", "for (int i = 0;i < h;i++) {\n System.out.println(line(i, h, w));\n }", "int i = 0;", "int i = 0;", "i", "0", "i < h", "i", "h", "i++", "i++", "i", "{\n System.out.println(line(i, h, w));\n }", "{\n System.out.println(line(i, h, w));\n }", "System.out.println(line(i, h, w))", "System.out.println", "System.out", "System", "System.out", "line(i, h, w)", "line", "i", "h", "w", "int h", "h", "int w", "w", "private static String line(int idx, int h, int w) {\n StringBuilder sb = new StringBuilder();\n if (idx == 0 || idx == h-1) {\n for (int i = 0;i < w;i++) sb.append(\"#\");\n } else {\n sb.append(\"#\");\n for (int i = 0;i < w-2;i++) sb.append(\".\");\n sb.append(\"#\");\n }\n return sb.toString();\n }", "line", "{\n StringBuilder sb = new StringBuilder();\n if (idx == 0 || idx == h-1) {\n for (int i = 0;i < w;i++) sb.append(\"#\");\n } else {\n sb.append(\"#\");\n for (int i = 0;i < w-2;i++) sb.append(\".\");\n sb.append(\"#\");\n }\n return sb.toString();\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "if (idx == 0 || idx == h-1) {\n for (int i = 0;i < w;i++) sb.append(\"#\");\n } else {\n sb.append(\"#\");\n for (int i = 0;i < w-2;i++) sb.append(\".\");\n sb.append(\"#\");\n }", "idx == 0 || idx == h-1", "idx == 0", "idx", "0", "idx == h-1", "idx", "h-1", "h", "1", "{\n for (int i = 0;i < w;i++) sb.append(\"#\");\n }", "for (int i = 0;i < w;i++) sb.append(\"#\");", "int i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "sb.append(\"#\");", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "{\n sb.append(\"#\");\n for (int i = 0;i < w-2;i++) sb.append(\".\");\n sb.append(\"#\");\n }", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "for (int i = 0;i < w-2;i++) sb.append(\".\");", "int i = 0;", "int i = 0;", "i", "0", "i < w-2", "i", "w-2", "w", "2", "i++", "i++", "i", "sb.append(\".\");", "sb.append(\".\")", "sb.append", "sb", "\".\"", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "int idx", "idx", "int h", "h", "int w", "w", "public class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n solve(h, w);\n System.out.println(\"\");\n }\n }\n \n private static void solve(int h, int w) {\n for (int i = 0;i < h;i++) {\n System.out.println(line(i, h, w));\n }\n }\n \n private static String line(int idx, int h, int w) {\n StringBuilder sb = new StringBuilder();\n if (idx == 0 || idx == h-1) {\n for (int i = 0;i < w;i++) sb.append(\"#\");\n } else {\n sb.append(\"#\");\n for (int i = 0;i < w-2;i++) sb.append(\".\");\n sb.append(\"#\");\n }\n return sb.toString();\n }\n}", "public class Main {\n private static Scanner sc = new Scanner(System.in);\n public static void main(String[] args) throws Exception {\n while (true) {\n int h = sc.nextInt();\n int w = sc.nextInt();\n if (h == 0 && w == 0) break;\n solve(h, w);\n System.out.println(\"\");\n }\n }\n \n private static void solve(int h, int w) {\n for (int i = 0;i < h;i++) {\n System.out.println(line(i, h, w));\n }\n }\n \n private static String line(int idx, int h, int w) {\n StringBuilder sb = new StringBuilder();\n if (idx == 0 || idx == h-1) {\n for (int i = 0;i < w;i++) sb.append(\"#\");\n } else {\n sb.append(\"#\");\n for (int i = 0;i < w-2;i++) sb.append(\".\");\n sb.append(\"#\");\n }\n return sb.toString();\n }\n}", "Main" ]
import java.util.*; public class Main { private static Scanner sc = new Scanner(System.in); public static void main(String[] args) throws Exception { while (true) { int h = sc.nextInt(); int w = sc.nextInt(); if (h == 0 && w == 0) break; solve(h, w); System.out.println(""); } } private static void solve(int h, int w) { for (int i = 0;i < h;i++) { System.out.println(line(i, h, w)); } } private static String line(int idx, int h, int w) { StringBuilder sb = new StringBuilder(); if (idx == 0 || idx == h-1) { for (int i = 0;i < w;i++) sb.append("#"); } else { sb.append("#"); for (int i = 0;i < w-2;i++) sb.append("."); sb.append("#"); } return sb.toString(); } }
[ 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, 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, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 126, 5 ], [ 126, 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 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 56, 58 ], [ 49, 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 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 49, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 79, 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 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 79, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 48, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 35, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 6, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\t// ????????¢????????¨?¨????????????\\???\n\t\t\tint height = in.nextInt();\n\t\t\tint width = in.nextInt();\n\n\t\t\t// ??\\?????????(0,0)??????????????????\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\n\t\t\t\t// ?????????????????°??????????????????\n\t\t\t\tfor (int count_h = 0; count_h < height; count_h++) {\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\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\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\t// ????????¢????????¨?¨????????????\\???\n\t\t\tint height = in.nextInt();\n\t\t\tint width = in.nextInt();\n\n\t\t\t// ??\\?????????(0,0)??????????????????\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\n\t\t\t\t// ?????????????????°??????????????????\n\t\t\t\tfor (int count_h = 0; count_h < height; count_h++) {\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\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 in = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\t// ????????¢????????¨?¨????????????\\???\n\t\t\tint height = in.nextInt();\n\t\t\tint width = in.nextInt();\n\n\t\t\t// ??\\?????????(0,0)??????????????????\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\n\t\t\t\t// ?????????????????°??????????????????\n\t\t\t\tfor (int count_h = 0; count_h < height; count_h++) {\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\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 in = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\t// ????????¢????????¨?¨????????????\\???\n\t\t\tint height = in.nextInt();\n\t\t\tint width = in.nextInt();\n\n\t\t\t// ??\\?????????(0,0)??????????????????\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\n\t\t\t\t// ?????????????????°??????????????????\n\t\t\t\tfor (int count_h = 0; count_h < height; count_h++) {\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\t// ?????????????????????????????????????????\\\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "while (true) {\n\n\t\t\t// ????????¢????????¨?¨????????????\\???\n\t\t\tint height = in.nextInt();\n\t\t\tint width = in.nextInt();\n\n\t\t\t// ??\\?????????(0,0)??????????????????\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\n\t\t\t\t// ?????????????????°??????????????????\n\t\t\t\tfor (int count_h = 0; count_h < height; count_h++) {\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\t// ?????????????????????????????????????????\\\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "true", "{\n\n\t\t\t// ????????¢????????¨?¨????????????\\???\n\t\t\tint height = in.nextInt();\n\t\t\tint width = in.nextInt();\n\n\t\t\t// ??\\?????????(0,0)??????????????????\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\n\t\t\t\t// ?????????????????°??????????????????\n\t\t\t\tfor (int count_h = 0; count_h < height; count_h++) {\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\t// ?????????????????????????????????????????\\\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t}", "int height = in.nextInt();", "height", "in.nextInt()", "in.nextInt", "in", "int width = in.nextInt();", "width", "in.nextInt()", "in.nextInt", "in", "if (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\n\t\t\t\t// ?????????????????°??????????????????\n\t\t\t\tfor (int count_h = 0; count_h < height; count_h++) {\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\t// ?????????????????????????????????????????\\\n\t\t\t\tSystem.out.println();\n\t\t\t}", "height == 0 && width == 0", "height == 0", "height", "0", "width == 0", "width", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "{\n\n\t\t\t\t// ?????????????????°??????????????????\n\t\t\t\tfor (int count_h = 0; count_h < height; count_h++) {\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\n\t\t\t\t// ?????????????????????????????????????????\\\n\t\t\t\tSystem.out.println();\n\t\t\t}", "for (int count_h = 0; count_h < height; count_h++) {\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "int count_h = 0;", "int count_h = 0;", "count_h", "0", "count_h < height", "count_h", "height", "count_h++", "count_h++", "count_h", "{\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "{\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}", "if(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}", "count_h == 0 || count_h == (height-1)", "count_h == 0", "count_h", "0", "count_h == (height-1)", "count_h", "(height-1)", "height", "1", "{\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}", "for (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "int count_w = 0;", "int count_w = 0;", "count_w", "0", "count_w < width", "count_w", "width", "count_w++", "count_w++", "count_w", "{\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}", "{\n\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\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for (int count_w = 0; count_w < (width-2); count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "int count_w = 0;", "int count_w = 0;", "count_w", "0", "count_w < (width-2)", "count_w", "(width-2)", "width", "2", "count_w++", "count_w++", "count_w", "{\n\n\t\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "{\n\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", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\t// ????????¢????????¨?¨????????????\\???\n\t\t\tint height = in.nextInt();\n\t\t\tint width = in.nextInt();\n\n\t\t\t// ??\\?????????(0,0)??????????????????\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\n\t\t\t\t// ?????????????????°??????????????????\n\t\t\t\tfor (int count_h = 0; count_h < height; count_h++) {\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\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\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\twhile (true) {\n\n\t\t\t// ????????¢????????¨?¨????????????\\???\n\t\t\tint height = in.nextInt();\n\t\t\tint width = in.nextInt();\n\n\t\t\t// ??\\?????????(0,0)??????????????????\n\t\t\tif (height == 0 && width == 0) {\n\t\t\t\tbreak;\n\t\t\t} else {\n\n\t\t\t\t// ?????????????????°??????????????????\n\t\t\t\tfor (int count_h = 0; count_h < height; count_h++) {\n\n\t\t\t\t\tif(count_h == 0 || count_h == (height-1)) {\n\n\t\t\t\t\t\t// ?¨???????????????°??????#?????¨???\n\t\t\t\t\t\tfor (int count_w = 0; count_w < width; count_w++) {\n\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\n\t\t\t\t\t\tfor (int count_w = 0; count_w < (width-2); count_w++) {\n\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\n\t\t\t\t\t}\n\n\t\t\t\t\tSystem.out.println();\n\t\t\t\t}\n\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 in = new Scanner(System.in); while (true) { // ????????¢????????¨?¨????????????\??? int height = in.nextInt(); int width = in.nextInt(); // ??\?????????(0,0)?????????????????? if (height == 0 && width == 0) { break; } else { // ?????????????????°?????????????????? for (int count_h = 0; count_h < height; count_h++) { if(count_h == 0 || count_h == (height-1)) { // ?¨???????????????°??????#?????¨??? for (int count_w = 0; count_w < width; count_w++) { System.out.print("#"); } }else{ System.out.print("#"); for (int count_w = 0; count_w < (width-2); count_w++) { System.out.print("."); } 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, 41, 13, 20, 11, 1, 41, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 13, 17, 3, 11, 1, 41, 13, 17, 1, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 13, 17, 3, 14, 2, 4, 18, 13, 13, 17, 4, 13, 4, 18, 13, 13, 4, 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, 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, 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 ], [ 216, 11 ], [ 216, 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 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 30, 31 ], [ 24, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 41, 45 ], [ 45, 46 ], [ 46, 47 ], [ 33, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 49, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 48, 62 ], [ 14, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 69, 70 ], [ 63, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 75, 80 ], [ 74, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 81, 86 ], [ 73, 87 ], [ 72, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 89, 94 ], [ 88, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 95, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 12, 105 ], [ 105, 106 ], [ 216, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 110, 121 ], [ 122, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 109, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 109, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 141, 143 ], [ 134, 144 ], [ 144, 145 ], [ 145, 146 ], [ 134, 147 ], [ 148, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 148, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 162, 164 ], [ 155, 165 ], [ 165, 166 ], [ 166, 167 ], [ 155, 168 ], [ 169, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 148, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 176, 181 ], [ 109, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 182, 187 ], [ 187, 188 ], [ 187, 189 ], [ 182, 190 ], [ 190, 191 ], [ 191, 192 ], [ 182, 193 ], [ 194, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 195, 200 ], [ 109, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 109, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 107, 211 ], [ 211, 212 ], [ 107, 213 ], [ 213, 214 ], [ 0, 215 ], [ 215, 216 ], [ 215, 217 ] ]
[ "import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> w = new ArrayList<Integer>();\n\t\tList<Integer> h = new ArrayList<Integer>();\n\n\n\t\t for(int i=0;;i++){\n\t\t\t h.add(i, scan.nextInt());\n\t\t\t w.add(i, scan.nextInt());\n\t\t\t if(w.get(i)==0 && h.get(i)==0) break;\n\t\t }\n\n\t\t for(int i=0;;i++){\n\t\t\tif(w.get(i)==0 && h.get(i)==0) break;\n\t\t\tif(/*w.get(i)<=100 &&*/ h.get(i)>=3) printFlame(w.get(i),h.get(i));\n\t\t }\n\t}\n\n\tstatic void printFlame(int w,int h){\n\n\t\tfor(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i=0 ;i< h -2;i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t\tfor(int j=0 ; j < w -2 ;j++){\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(\"#\");\n\t\t}\n\t\t\n\t\tfor(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\n\t\tSystem.out.println();\n\t\tSystem.out.println();\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\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> w = new ArrayList<Integer>();\n\t\tList<Integer> h = new ArrayList<Integer>();\n\n\n\t\t for(int i=0;;i++){\n\t\t\t h.add(i, scan.nextInt());\n\t\t\t w.add(i, scan.nextInt());\n\t\t\t if(w.get(i)==0 && h.get(i)==0) break;\n\t\t }\n\n\t\t for(int i=0;;i++){\n\t\t\tif(w.get(i)==0 && h.get(i)==0) break;\n\t\t\tif(/*w.get(i)<=100 &&*/ h.get(i)>=3) printFlame(w.get(i),h.get(i));\n\t\t }\n\t}\n\n\tstatic void printFlame(int w,int h){\n\n\t\tfor(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i=0 ;i< h -2;i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t\tfor(int j=0 ; j < w -2 ;j++){\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(\"#\");\n\t\t}\n\t\t\n\t\tfor(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> w = new ArrayList<Integer>();\n\t\tList<Integer> h = new ArrayList<Integer>();\n\n\n\t\t for(int i=0;;i++){\n\t\t\t h.add(i, scan.nextInt());\n\t\t\t w.add(i, scan.nextInt());\n\t\t\t if(w.get(i)==0 && h.get(i)==0) break;\n\t\t }\n\n\t\t for(int i=0;;i++){\n\t\t\tif(w.get(i)==0 && h.get(i)==0) break;\n\t\t\tif(/*w.get(i)<=100 &&*/ h.get(i)>=3) printFlame(w.get(i),h.get(i));\n\t\t }\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> w = new ArrayList<Integer>();\n\t\tList<Integer> h = new ArrayList<Integer>();\n\n\n\t\t for(int i=0;;i++){\n\t\t\t h.add(i, scan.nextInt());\n\t\t\t w.add(i, scan.nextInt());\n\t\t\t if(w.get(i)==0 && h.get(i)==0) break;\n\t\t }\n\n\t\t for(int i=0;;i++){\n\t\t\tif(w.get(i)==0 && h.get(i)==0) break;\n\t\t\tif(/*w.get(i)<=100 &&*/ h.get(i)>=3) printFlame(w.get(i),h.get(i));\n\t\t }\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "List<Integer> w = new ArrayList<Integer>();", "w", "new ArrayList<Integer>()", "List<Integer> h = new ArrayList<Integer>();", "h", "new ArrayList<Integer>()", "for(int i=0;;i++){\n\t\t\t h.add(i, scan.nextInt());\n\t\t\t w.add(i, scan.nextInt());\n\t\t\t if(w.get(i)==0 && h.get(i)==0) break;\n\t\t }", "int i=0;", "int i=0;", "i", "0", "i++", "i++", "i", "{\n\t\t\t h.add(i, scan.nextInt());\n\t\t\t w.add(i, scan.nextInt());\n\t\t\t if(w.get(i)==0 && h.get(i)==0) break;\n\t\t }", "{\n\t\t\t h.add(i, scan.nextInt());\n\t\t\t w.add(i, scan.nextInt());\n\t\t\t if(w.get(i)==0 && h.get(i)==0) break;\n\t\t }", "h.add(i, scan.nextInt())", "h.add", "h", "i", "scan.nextInt()", "scan.nextInt", "scan", "w.add(i, scan.nextInt())", "w.add", "w", "i", "scan.nextInt()", "scan.nextInt", "scan", "if(w.get(i)==0 && h.get(i)==0) break;", "w.get(i)==0 && h.get(i)==0", "w.get(i)==0", "w.get(i)", "w.get", "w", "i", "0", "h.get(i)==0", "h.get(i)", "h.get", "h", "i", "0", "break;", "for(int i=0;;i++){\n\t\t\tif(w.get(i)==0 && h.get(i)==0) break;\n\t\t\tif(/*w.get(i)<=100 &&*/ h.get(i)>=3) printFlame(w.get(i),h.get(i));\n\t\t }", "int i=0;", "int i=0;", "i", "0", "i++", "i++", "i", "{\n\t\t\tif(w.get(i)==0 && h.get(i)==0) break;\n\t\t\tif(/*w.get(i)<=100 &&*/ h.get(i)>=3) printFlame(w.get(i),h.get(i));\n\t\t }", "{\n\t\t\tif(w.get(i)==0 && h.get(i)==0) break;\n\t\t\tif(/*w.get(i)<=100 &&*/ h.get(i)>=3) printFlame(w.get(i),h.get(i));\n\t\t }", "if(w.get(i)==0 && h.get(i)==0) break;", "w.get(i)==0 && h.get(i)==0", "w.get(i)==0", "w.get(i)", "w.get", "w", "i", "0", "h.get(i)==0", "h.get(i)", "h.get", "h", "i", "0", "break;", "if(/*w.get(i)<=100 &&*/ h.get(i)>=3) printFlame(w.get(i),h.get(i));", "h.get(i)>=3", "h.get(i)", "h.get", "h", "i", "3", "printFlame(w.get(i),h.get(i))", "printFlame", "w.get(i)", "w.get", "w", "i", "h.get(i)", "h.get", "h", "i", "String[] args", "args", "static void printFlame(int w,int h){\n\n\t\tfor(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i=0 ;i< h -2;i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t\tfor(int j=0 ; j < w -2 ;j++){\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(\"#\");\n\t\t}\n\t\t\n\t\tfor(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\n\t}", "printFlame", "{\n\n\t\tfor(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i=0 ;i< h -2;i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t\tfor(int j=0 ; j < w -2 ;j++){\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(\"#\");\n\t\t}\n\t\t\n\t\tfor(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\n\t}", "for(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}", "int j=0 ;", "int j=0 ;", "j", "0", "j < w", "j", "w", "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", "for(int i=0 ;i< h -2;i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t\tfor(int j=0 ; j < w -2 ;j++){\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(\"#\");\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\tSystem.out.print(\"#\");\n\t\t\tfor(int j=0 ; j < w -2 ;j++){\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(\"#\");\n\t\t}", "{\n\t\t\tSystem.out.print(\"#\");\n\t\t\tfor(int j=0 ; j < w -2 ;j++){\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(\"#\");\n\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\tSystem.out.print(\".\");\n\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\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 j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}", "int j=0 ;", "int j=0 ;", "j", "0", "j < w", "j", "w", "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", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "int w", "w", "int h", "h", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> w = new ArrayList<Integer>();\n\t\tList<Integer> h = new ArrayList<Integer>();\n\n\n\t\t for(int i=0;;i++){\n\t\t\t h.add(i, scan.nextInt());\n\t\t\t w.add(i, scan.nextInt());\n\t\t\t if(w.get(i)==0 && h.get(i)==0) break;\n\t\t }\n\n\t\t for(int i=0;;i++){\n\t\t\tif(w.get(i)==0 && h.get(i)==0) break;\n\t\t\tif(/*w.get(i)<=100 &&*/ h.get(i)>=3) printFlame(w.get(i),h.get(i));\n\t\t }\n\t}\n\n\tstatic void printFlame(int w,int h){\n\n\t\tfor(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i=0 ;i< h -2;i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t\tfor(int j=0 ; j < w -2 ;j++){\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(\"#\");\n\t\t}\n\t\t\n\t\tfor(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\n\t\tSystem.out.println();\n\t\tSystem.out.println();\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tList<Integer> w = new ArrayList<Integer>();\n\t\tList<Integer> h = new ArrayList<Integer>();\n\n\n\t\t for(int i=0;;i++){\n\t\t\t h.add(i, scan.nextInt());\n\t\t\t w.add(i, scan.nextInt());\n\t\t\t if(w.get(i)==0 && h.get(i)==0) break;\n\t\t }\n\n\t\t for(int i=0;;i++){\n\t\t\tif(w.get(i)==0 && h.get(i)==0) break;\n\t\t\tif(/*w.get(i)<=100 &&*/ h.get(i)>=3) printFlame(w.get(i),h.get(i));\n\t\t }\n\t}\n\n\tstatic void printFlame(int w,int h){\n\n\t\tfor(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\n\t\tSystem.out.println();\n\t\t\n\t\tfor(int i=0 ;i< h -2;i++){\n\t\t\tSystem.out.print(\"#\");\n\t\t\tfor(int j=0 ; j < w -2 ;j++){\n\t\t\t\tSystem.out.print(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(\"#\");\n\t\t}\n\t\t\n\t\tfor(int j=0 ; j < w ;j++){\n\t\t\tSystem.out.print(\"#\");\n\t\t}\n\n\t\tSystem.out.println();\n\t\tSystem.out.println();\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 scan = new Scanner(System.in); List<Integer> w = new ArrayList<Integer>(); List<Integer> h = new ArrayList<Integer>(); for(int i=0;;i++){ h.add(i, scan.nextInt()); w.add(i, scan.nextInt()); if(w.get(i)==0 && h.get(i)==0) break; } for(int i=0;;i++){ if(w.get(i)==0 && h.get(i)==0) break; if(/*w.get(i)<=100 &&*/ h.get(i)>=3) printFlame(w.get(i),h.get(i)); } } static void printFlame(int w,int h){ 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(); } }
[ 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, 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, 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 ], [ 129, 5 ], [ 129, 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 ], [ 15, 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 ], [ 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 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 48, 78 ], [ 78, 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 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 92, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 92, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 47, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 15, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 6, 126 ], [ 126, 127 ], [ 0, 128 ], [ 128, 129 ], [ 128, 130 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfor(;;){\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)\n\t\t\t\tbreak;\n\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\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\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfor(;;){\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)\n\t\t\t\tbreak;\n\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\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\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\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\tfor(;;){\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)\n\t\t\t\tbreak;\n\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\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\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tfor(;;){\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)\n\t\t\t\tbreak;\n\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\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\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "for(;;){\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)\n\t\t\t\tbreak;\n\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\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\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\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)\n\t\t\t\tbreak;\n\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\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\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\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)\n\t\t\t\tbreak;\n\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\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\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\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 = 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\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\t\tSystem.out.print(\"\\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\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\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\t\tSystem.out.print(\"\\n\");\n\t\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\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\t\tSystem.out.print(\"\\n\");\n\t\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\telse\n\t\t\t\t\t\t\tSystem.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(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\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 = 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\telse\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 || j == W - 1)\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 == 0 || j == W - 1)\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 == 0 || j == W - 1)\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 == 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.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\t\n\t\tfor(;;){\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)\n\t\t\t\tbreak;\n\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\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\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\tSystem.out.print(\"\\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\t\n\t\tfor(;;){\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)\n\t\t\t\tbreak;\n\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\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\t\tSystem.out.print(\"\\n\");\n\t\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); for(;;){ int H = sc.nextInt(); int W = sc.nextInt(); 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("\n"); } System.out.print("\n"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 20, 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, 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, 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 ], [ 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.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n\n int H = 0; //??????????????°\n int W = 0; //??????????????°\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder output = new StringBuilder();\n\n// ?????°????????????????????????????§????????????????????????????????????????1????????????????????????????????????\n while(true){\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n\n H = Integer.parseInt(strArray[0]);\n W = Integer.parseInt(strArray[1]);\n\n// H??¨W?????±???0?????¨??????????????????\n if(H == 0 && W == 0){\n break;\n }\n\n// ??????????????°?????°?????????\n for(int i = 0; i < H; i++){\n\n// ????????¨????????????????????¨??????\n if(i == 0 || i == H-1){\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }else{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }output.append(\"\\n\");\n }\n output.append(\"\\n\");\n }\n System.out.print(output);\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\n int H = 0; //??????????????°\n int W = 0; //??????????????°\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder output = new StringBuilder();\n\n// ?????°????????????????????????????§????????????????????????????????????????1????????????????????????????????????\n while(true){\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n\n H = Integer.parseInt(strArray[0]);\n W = Integer.parseInt(strArray[1]);\n\n// H??¨W?????±???0?????¨??????????????????\n if(H == 0 && W == 0){\n break;\n }\n\n// ??????????????°?????°?????????\n for(int i = 0; i < H; i++){\n\n// ????????¨????????????????????¨??????\n if(i == 0 || i == H-1){\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }else{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }output.append(\"\\n\");\n }\n output.append(\"\\n\");\n }\n System.out.print(output);\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n\n int H = 0; //??????????????°\n int W = 0; //??????????????°\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder output = new StringBuilder();\n\n// ?????°????????????????????????????§????????????????????????????????????????1????????????????????????????????????\n while(true){\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n\n H = Integer.parseInt(strArray[0]);\n W = Integer.parseInt(strArray[1]);\n\n// H??¨W?????±???0?????¨??????????????????\n if(H == 0 && W == 0){\n break;\n }\n\n// ??????????????°?????°?????????\n for(int i = 0; i < H; i++){\n\n// ????????¨????????????????????¨??????\n if(i == 0 || i == H-1){\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }else{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }output.append(\"\\n\");\n }\n output.append(\"\\n\");\n }\n System.out.print(output);\n }", "main", "{\n\n int H = 0; //??????????????°\n int W = 0; //??????????????°\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder output = new StringBuilder();\n\n// ?????°????????????????????????????§????????????????????????????????????????1????????????????????????????????????\n while(true){\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n\n H = Integer.parseInt(strArray[0]);\n W = Integer.parseInt(strArray[1]);\n\n// H??¨W?????±???0?????¨??????????????????\n if(H == 0 && W == 0){\n break;\n }\n\n// ??????????????°?????°?????????\n for(int i = 0; i < H; i++){\n\n// ????????¨????????????????????¨??????\n if(i == 0 || i == H-1){\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }else{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }output.append(\"\\n\");\n }\n output.append(\"\\n\");\n }\n System.out.print(output);\n }", "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))", "StringBuilder output = new StringBuilder();", "output", "new StringBuilder()", "while(true){\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n\n H = Integer.parseInt(strArray[0]);\n W = Integer.parseInt(strArray[1]);\n\n// H??¨W?????±???0?????¨??????????????????\n if(H == 0 && W == 0){\n break;\n }\n\n// ??????????????°?????°?????????\n for(int i = 0; i < H; i++){\n\n// ????????¨????????????????????¨??????\n if(i == 0 || i == H-1){\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }else{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }output.append(\"\\n\");\n }\n output.append(\"\\n\");\n }", "true", "{\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n\n H = Integer.parseInt(strArray[0]);\n W = Integer.parseInt(strArray[1]);\n\n// H??¨W?????±???0?????¨??????????????????\n if(H == 0 && W == 0){\n break;\n }\n\n// ??????????????°?????°?????????\n for(int i = 0; i < H; i++){\n\n// ????????¨????????????????????¨??????\n if(i == 0 || i == H-1){\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }else{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }output.append(\"\\n\");\n }\n output.append(\"\\n\");\n }", "String input = br.readLine();", "input", "br.readLine()", "br.readLine", "br", "String[] strArray = input.split(\" \");", "strArray", "input.split(\" \")", "input.split", "input", "\" \"", "H = Integer.parseInt(strArray[0])", "H", "Integer.parseInt(strArray[0])", "Integer.parseInt", "Integer", "strArray[0]", "strArray", "0", "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\n// ????????¨????????????????????¨??????\n if(i == 0 || i == H-1){\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }else{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }output.append(\"\\n\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < H", "i", "H", "i++", "i++", "i", "{\n\n// ????????¨????????????????????¨??????\n if(i == 0 || i == H-1){\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }else{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }output.append(\"\\n\");\n }", "{\n\n// ????????¨????????????????????¨??????\n if(i == 0 || i == H-1){\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }else{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }output.append(\"\\n\");\n }", "if(i == 0 || i == H-1){\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }else{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }", "i == 0 || i == H-1", "i == 0", "i", "0", "i == H-1", "i", "H-1", "H", "1", "{\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }", "for(int j = 0; j < W; j++){\n output.append(\"#\");\n }", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n output.append(\"#\");\n }", "{\n output.append(\"#\");\n }", "output.append(\"#\")", "output.append", "output", "\"#\"", "{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }", "for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < W", "j", "W", "j++", "j++", "j", "{\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }", "{\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }", "if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }", "j == 0 || j == W-1", "j == 0", "j", "0", "j == W-1", "j", "W-1", "W", "1", "{\n output.append(\"#\");\n }", "output.append(\"#\")", "output.append", "output", "\"#\"", "{\n output.append(\".\");\n }", "output.append(\".\")", "output.append", "output", "\".\"", "output.append(\"\\n\")", "output.append", "output", "\"\\n\"", "output.append(\"\\n\")", "output.append", "output", "\"\\n\"", "System.out.print(output)", "System.out.print", "System.out", "System", "System.out", "output", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n\n int H = 0; //??????????????°\n int W = 0; //??????????????°\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder output = new StringBuilder();\n\n// ?????°????????????????????????????§????????????????????????????????????????1????????????????????????????????????\n while(true){\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n\n H = Integer.parseInt(strArray[0]);\n W = Integer.parseInt(strArray[1]);\n\n// H??¨W?????±???0?????¨??????????????????\n if(H == 0 && W == 0){\n break;\n }\n\n// ??????????????°?????°?????????\n for(int i = 0; i < H; i++){\n\n// ????????¨????????????????????¨??????\n if(i == 0 || i == H-1){\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }else{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }output.append(\"\\n\");\n }\n output.append(\"\\n\");\n }\n System.out.print(output);\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n\n int H = 0; //??????????????°\n int W = 0; //??????????????°\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder output = new StringBuilder();\n\n// ?????°????????????????????????????§????????????????????????????????????????1????????????????????????????????????\n while(true){\n String input = br.readLine();\n String[] strArray = input.split(\" \");\n\n H = Integer.parseInt(strArray[0]);\n W = Integer.parseInt(strArray[1]);\n\n// H??¨W?????±???0?????¨??????????????????\n if(H == 0 && W == 0){\n break;\n }\n\n// ??????????????°?????°?????????\n for(int i = 0; i < H; i++){\n\n// ????????¨????????????????????¨??????\n if(i == 0 || i == H-1){\n for(int j = 0; j < W; j++){\n output.append(\"#\");\n }\n }else{\n for(int j = 0; j < W; j++){\n\n// ????????¨????????????????????¨??????\n if(j == 0 || j == W-1){\n output.append(\"#\");\n }else{\n output.append(\".\");\n }\n }\n }output.append(\"\\n\");\n }\n output.append(\"\\n\");\n }\n System.out.print(output);\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 { int H = 0; //??????????????° int W = 0; //??????????????° BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder output = new StringBuilder(); // ?????°????????????????????????????§????????????????????????????????????????1???????????????????????????????????? while(true){ String input = br.readLine(); String[] strArray = input.split(" "); H = Integer.parseInt(strArray[0]); W = Integer.parseInt(strArray[1]); // H??¨W?????±???0?????¨?????????????????? 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++){ output.append("#"); } }else{ for(int j = 0; j < W; j++){ // ????????¨????????????????????¨?????? if(j == 0 || j == W-1){ output.append("#"); }else{ output.append("."); } } }output.append("\n"); } output.append("\n"); } System.out.print(output); } }
[ 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, 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, 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 ], [ 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 ], [ 120, 20 ], [ 120, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 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 ], [ 29, 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 ], [ 97, 99 ], [ 95, 100 ], [ 75, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 61, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 29, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 21, 117 ], [ 117, 118 ], [ 0, 119 ], [ 119, 120 ], [ 119, 121 ] ]
[ "import java.io.File;\nimport java.io.IOException;\nimport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Deque;\nimport java.util.Scanner;\n\npublic class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\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\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 || j == 0 || i == H-1 || 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}", "import java.io.File;", "File", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.util.ArrayDeque;", "ArrayDeque", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Deque;", "Deque", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\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\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 || j == 0 || i == H-1 || 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}", "Main", "public static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\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\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 || j == 0 || i == H-1 || 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}", "main", "{\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\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\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 || j == 0 || i == H-1 || 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}", "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) 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 || j == 0 || i == H-1 || 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 || j == 0 || i == H-1 || 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 || j == 0 || i == H-1 || 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 || j == 0 || i == H-1 || 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 || j == 0 || i == H-1 || 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 || j == 0 || i == H-1 || 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 || j == 0 || i == H-1 || 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 || j == 0 || i == H-1 || j == W-1) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}", "if(i == 0 || j == 0 || i == H-1 || j == W-1) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");", "i == 0 || j == 0 || i == H-1 || j == W-1", "i == H-1", "i == 0 || j == 0 || i == H-1 || j == W-1", "i == 0", "i", "0", "j == 0", "j", "0", "i == H-1", "i", "H-1", "H", "1", "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", "public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\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\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 || j == 0 || i == H-1 || 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}", "public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\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\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 || j == 0 || i == H-1 || 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}", "Main" ]
import java.io.File; import java.io.IOException; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Deque; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { //File file = new File("input.txt"); //Scanner sc = new Scanner(file); 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 || j == 0 || i == H-1 || 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, 17, 41, 13, 20, 42, 17, 30, 0, 13, 4, 18, 13, 14, 4, 18, 17, 13, 30, 3, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 18, 4, 18, 13, 17, 17, 1, 40, 13, 30, 30, 41, 13, 17, 14, 2, 2, 13, 17, 2, 13, 2, 4, 18, 13, 18, 4, 18, 13, 17, 17, 17, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 18, 4, 18, 13, 17, 17, 1, 40, 13, 30, 30, 0, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 18, 4, 18, 13, 17, 17, 1, 40, 13, 30, 30, 14, 2, 2, 13, 17, 2, 13, 2, 4, 18, 13, 18, 4, 18, 13, 17, 17, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 13, 13, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, 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 ], [ 0, 13 ], [ 13, 14 ], [ 13, 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 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 29, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 42, 58 ], [ 58, 59 ], [ 59, 60 ], [ 42, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 77, 82 ], [ 73, 83 ], [ 66, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 95, 100 ], [ 85, 101 ], [ 101, 102 ], [ 102, 103 ], [ 85, 104 ], [ 105, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 66, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 118, 119 ], [ 117, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 120, 125 ], [ 110, 126 ], [ 126, 127 ], [ 127, 128 ], [ 110, 129 ], [ 130, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 142, 147 ], [ 138, 148 ], [ 131, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 131, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 62, 157 ], [ 157, 158 ], [ 158, 159 ], [ 157, 160 ], [ 29, 161 ], [ 161, 162 ], [ 162, 163 ], [ 161, 164 ], [ 17, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 165, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 173, 174 ], [ 165, 175 ], [ 175, 176 ], [ 176, 177 ], [ 165, 178 ], [ 179, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 180, 185 ], [ 185, 186 ], [ 186, 187 ], [ 185, 188 ], [ 15, 189 ], [ 189, 190 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString strNum = \"\";\n\t\tArrayList<String> waku = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tstrNum = br.readLine();\n\t\t\tif (\"0 0\".equals(strNum)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < Integer.parseInt(strNum.split(\" \")[0]); i++) {\n\t\t\t\tString line = \"\";\n\t\t\t\tif (i == 0 || i == (Integer.parseInt(strNum.split(\" \")[0]) - 1)) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twaku.add(line);\n\t\t\t}\n\t\t\twaku.add(\"\");\n\t\t}\n\t\tfor (int i = 0; i < waku.size(); i++) {\n\t\t\tSystem.out.println(waku.get(i));\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", "class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString strNum = \"\";\n\t\tArrayList<String> waku = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tstrNum = br.readLine();\n\t\t\tif (\"0 0\".equals(strNum)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < Integer.parseInt(strNum.split(\" \")[0]); i++) {\n\t\t\t\tString line = \"\";\n\t\t\t\tif (i == 0 || i == (Integer.parseInt(strNum.split(\" \")[0]) - 1)) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twaku.add(line);\n\t\t\t}\n\t\t\twaku.add(\"\");\n\t\t}\n\t\tfor (int i = 0; i < waku.size(); i++) {\n\t\t\tSystem.out.println(waku.get(i));\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\tString strNum = \"\";\n\t\tArrayList<String> waku = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tstrNum = br.readLine();\n\t\t\tif (\"0 0\".equals(strNum)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < Integer.parseInt(strNum.split(\" \")[0]); i++) {\n\t\t\t\tString line = \"\";\n\t\t\t\tif (i == 0 || i == (Integer.parseInt(strNum.split(\" \")[0]) - 1)) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twaku.add(line);\n\t\t\t}\n\t\t\twaku.add(\"\");\n\t\t}\n\t\tfor (int i = 0; i < waku.size(); i++) {\n\t\t\tSystem.out.println(waku.get(i));\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString strNum = \"\";\n\t\tArrayList<String> waku = new ArrayList<String>();\n\t\twhile (true) {\n\t\t\tstrNum = br.readLine();\n\t\t\tif (\"0 0\".equals(strNum)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < Integer.parseInt(strNum.split(\" \")[0]); i++) {\n\t\t\t\tString line = \"\";\n\t\t\t\tif (i == 0 || i == (Integer.parseInt(strNum.split(\" \")[0]) - 1)) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twaku.add(line);\n\t\t\t}\n\t\t\twaku.add(\"\");\n\t\t}\n\t\tfor (int i = 0; i < waku.size(); i++) {\n\t\t\tSystem.out.println(waku.get(i));\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String strNum = \"\";", "strNum", "\"\"", "ArrayList<String> waku = new ArrayList<String>();", "waku", "new ArrayList<String>()", "while (true) {\n\t\t\tstrNum = br.readLine();\n\t\t\tif (\"0 0\".equals(strNum)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < Integer.parseInt(strNum.split(\" \")[0]); i++) {\n\t\t\t\tString line = \"\";\n\t\t\t\tif (i == 0 || i == (Integer.parseInt(strNum.split(\" \")[0]) - 1)) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twaku.add(line);\n\t\t\t}\n\t\t\twaku.add(\"\");\n\t\t}", "true", "{\n\t\t\tstrNum = br.readLine();\n\t\t\tif (\"0 0\".equals(strNum)) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor (int i = 0; i < Integer.parseInt(strNum.split(\" \")[0]); i++) {\n\t\t\t\tString line = \"\";\n\t\t\t\tif (i == 0 || i == (Integer.parseInt(strNum.split(\" \")[0]) - 1)) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twaku.add(line);\n\t\t\t}\n\t\t\twaku.add(\"\");\n\t\t}", "strNum = br.readLine()", "strNum", "br.readLine()", "br.readLine", "br", "if (\"0 0\".equals(strNum)) {\n\t\t\t\tbreak;\n\t\t\t}", "\"0 0\".equals(strNum)", "\"0 0\".equals", "\"0 0\"", "strNum", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for (int i = 0; i < Integer.parseInt(strNum.split(\" \")[0]); i++) {\n\t\t\t\tString line = \"\";\n\t\t\t\tif (i == 0 || i == (Integer.parseInt(strNum.split(\" \")[0]) - 1)) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twaku.add(line);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < Integer.parseInt(strNum.split(\" \")[0])", "i", "Integer.parseInt(strNum.split(\" \")[0])", "Integer.parseInt", "Integer", "strNum.split(\" \")[0]", "strNum.split(\" \")", "strNum.split", "strNum", "\" \"", "0", "i++", "i++", "i", "{\n\t\t\t\tString line = \"\";\n\t\t\t\tif (i == 0 || i == (Integer.parseInt(strNum.split(\" \")[0]) - 1)) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twaku.add(line);\n\t\t\t}", "{\n\t\t\t\tString line = \"\";\n\t\t\t\tif (i == 0 || i == (Integer.parseInt(strNum.split(\" \")[0]) - 1)) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\twaku.add(line);\n\t\t\t}", "String line = \"\";", "line", "\"\"", "if (i == 0 || i == (Integer.parseInt(strNum.split(\" \")[0]) - 1)) {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "i == 0 || i == (Integer.parseInt(strNum.split(\" \")[0]) - 1)", "i == 0", "i", "0", "i == (Integer.parseInt(strNum.split(\" \")[0]) - 1)", "i", "(Integer.parseInt(strNum.split(\" \")[0]) - 1)", "Integer.parseInt(strNum.split(\" \")[0])", "Integer.parseInt", "Integer", "strNum.split(\" \")[0]", "strNum.split(\" \")", "strNum.split", "strNum", "\" \"", "0", "1", "{\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}\n\t\t\t\t}", "for (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < Integer.parseInt(strNum.split(\" \")[1])", "j", "Integer.parseInt(strNum.split(\" \")[1])", "Integer.parseInt", "Integer", "strNum.split(\" \")[1]", "strNum.split(\" \")", "strNum.split", "strNum", "\" \"", "1", "j++", "j++", "j", "{\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t}", "line += \"#\"", "line", "\"#\"", "{\n\t\t\t\t\tfor (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "for (int j = 0; j < Integer.parseInt(strNum.split(\" \")[1]); j++) {\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < Integer.parseInt(strNum.split(\" \")[1])", "j", "Integer.parseInt(strNum.split(\" \")[1])", "Integer.parseInt", "Integer", "strNum.split(\" \")[1]", "strNum.split(\" \")", "strNum.split", "strNum", "\" \"", "1", "j++", "j++", "j", "{\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if (j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)) {\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}", "j == 0 || j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)", "j == 0", "j", "0", "j == (Integer.parseInt(strNum.split(\" \")[1]) - 1)", "j", "(Integer.parseInt(strNum.split(\" \")[1]) - 1)", "Integer.parseInt(strNum.split(\" \")[1])", "Integer.parseInt", "Integer", "strNum.split(\" \")[1]", "strNum.split(\" \")", "strNum.split", "strNum", "\" \"", "1", "1", "{\n\t\t\t\t\t\t\tline += \"#\";\n\t\t\t\t\t\t}", "line += \"#\"", "line", "\"#\"", "{\n\t\t\t\t\t\t\tline += \".\";\n\t\t\t\t\t\t}", "line += \".\"", "line", "\".\"", "waku.add(line)", "waku.add", "waku", "line", "waku.add(\"\")", "waku.add", "waku", "\"\"", "for (int i = 0; i < waku.size(); i++) {\n\t\t\tSystem.out.println(waku.get(i));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < waku.size()", "i", "waku.size()", "waku.size", "waku", "i++", "i++", "i", "{\n\t\t\tSystem.out.println(waku.get(i));\n\t\t}", "{\n\t\t\tSystem.out.println(waku.get(i));\n\t\t}", "System.out.println(waku.get(i))", "System.out.println", "System.out", "System", "System.out", "waku.get(i)", "waku.get", "waku", "i", "String[] args", "args" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String strNum = ""; ArrayList<String> waku = new ArrayList<String>(); while (true) { strNum = br.readLine(); if ("0 0".equals(strNum)) { break; } for (int i = 0; i < Integer.parseInt(strNum.split(" ")[0]); i++) { String line = ""; if (i == 0 || i == (Integer.parseInt(strNum.split(" ")[0]) - 1)) { for (int j = 0; j < Integer.parseInt(strNum.split(" ")[1]); j++) { line += "#"; } } else { for (int j = 0; j < Integer.parseInt(strNum.split(" ")[1]); j++) { if (j == 0 || j == (Integer.parseInt(strNum.split(" ")[1]) - 1)) { line += "#"; } else { line += "."; } } } waku.add(line); } waku.add(""); } for (int i = 0; i < waku.size(); i++) { System.out.println(waku.get(i)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 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, 14, 2, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 0, 13, 4, 18, 13, 17, 30, 0, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 134, 8 ], [ 134, 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 ], [ 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 ], [ 34, 40 ], [ 23, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 59, 60 ], [ 59, 61 ], [ 54, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 66, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 67, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 67, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 97, 100 ], [ 53, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 23, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 112, 114 ], [ 23, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 115, 119 ], [ 119, 120 ], [ 120, 121 ], [ 11, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 11, 128 ], [ 128, 129 ], [ 129, 130 ], [ 9, 131 ], [ 131, 132 ], [ 0, 133 ], [ 133, 134 ], [ 133, 135 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in); // ??\\???????????????\n\t\tStringBuilder out = new StringBuilder(); // ??¨?????¨??¢??°\n\t\tStringBuilder output = new StringBuilder(); // #,\\n???????´?????????¢??°\n\n\t\twhile (true) { // ???????????????\n\t\t\tint H = sc.nextInt(); // ????????\\??????\n\t\t\tint W = sc.nextInt(); // ?¨??????\\??????\n\n\t\t\tif (H + W == 0) // ?????¨?¨????0 0????????????\n\t\t\t\tbreak;\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)) { // ????????§?±??????????????????????\n\t\t\t\t\t\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\toutput = output.append(out + \"\\n\"); // ????´???????#,\\n???????´?\n\t\t\tout.delete(0, out.length()); // ??¨?????¨out????????????\n\t\t}\n\t\tSystem.out.print(output); // ??????\n\t\tsc.close();\n\t}\n\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in); // ??\\???????????????\n\t\tStringBuilder out = new StringBuilder(); // ??¨?????¨??¢??°\n\t\tStringBuilder output = new StringBuilder(); // #,\\n???????´?????????¢??°\n\n\t\twhile (true) { // ???????????????\n\t\t\tint H = sc.nextInt(); // ????????\\??????\n\t\t\tint W = sc.nextInt(); // ?¨??????\\??????\n\n\t\t\tif (H + W == 0) // ?????¨?¨????0 0????????????\n\t\t\t\tbreak;\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)) { // ????????§?±??????????????????????\n\t\t\t\t\t\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\toutput = output.append(out + \"\\n\"); // ????´???????#,\\n???????´?\n\t\t\tout.delete(0, out.length()); // ??¨?????¨out????????????\n\t\t}\n\t\tSystem.out.print(output); // ??????\n\t\tsc.close();\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in); // ??\\???????????????\n\t\tStringBuilder out = new StringBuilder(); // ??¨?????¨??¢??°\n\t\tStringBuilder output = new StringBuilder(); // #,\\n???????´?????????¢??°\n\n\t\twhile (true) { // ???????????????\n\t\t\tint H = sc.nextInt(); // ????????\\??????\n\t\t\tint W = sc.nextInt(); // ?¨??????\\??????\n\n\t\t\tif (H + W == 0) // ?????¨?¨????0 0????????????\n\t\t\t\tbreak;\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)) { // ????????§?±??????????????????????\n\t\t\t\t\t\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\toutput = output.append(out + \"\\n\"); // ????´???????#,\\n???????´?\n\t\t\tout.delete(0, out.length()); // ??¨?????¨out????????????\n\t\t}\n\t\tSystem.out.print(output); // ??????\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in); // ??\\???????????????\n\t\tStringBuilder out = new StringBuilder(); // ??¨?????¨??¢??°\n\t\tStringBuilder output = new StringBuilder(); // #,\\n???????´?????????¢??°\n\n\t\twhile (true) { // ???????????????\n\t\t\tint H = sc.nextInt(); // ????????\\??????\n\t\t\tint W = sc.nextInt(); // ?¨??????\\??????\n\n\t\t\tif (H + W == 0) // ?????¨?¨????0 0????????????\n\t\t\t\tbreak;\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)) { // ????????§?±??????????????????????\n\t\t\t\t\t\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\toutput = output.append(out + \"\\n\"); // ????´???????#,\\n???????´?\n\t\t\tout.delete(0, out.length()); // ??¨?????¨out????????????\n\t\t}\n\t\tSystem.out.print(output); // ??????\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "StringBuilder out = new StringBuilder();", "out", "new StringBuilder()", "StringBuilder output = new StringBuilder();", "output", "new StringBuilder()", "while (true) { // ???????????????\n\t\t\tint H = sc.nextInt(); // ????????\\??????\n\t\t\tint W = sc.nextInt(); // ?¨??????\\??????\n\n\t\t\tif (H + W == 0) // ?????¨?¨????0 0????????????\n\t\t\t\tbreak;\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)) { // ????????§?±??????????????????????\n\t\t\t\t\t\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\toutput = output.append(out + \"\\n\"); // ????´???????#,\\n???????´?\n\t\t\tout.delete(0, out.length()); // ??¨?????¨out????????????\n\t\t}", "true", "{ // ???????????????\n\t\t\tint H = sc.nextInt(); // ????????\\??????\n\t\t\tint W = sc.nextInt(); // ?¨??????\\??????\n\n\t\t\tif (H + W == 0) // ?????¨?¨????0 0????????????\n\t\t\t\tbreak;\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)) { // ????????§?±??????????????????????\n\t\t\t\t\t\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\toutput = output.append(out + \"\\n\"); // ????´???????#,\\n???????´?\n\t\t\tout.delete(0, out.length()); // ??¨?????¨out????????????\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 + W == 0) // ?????¨?¨????0 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\tif ((i == 0 || i == H - 1) || (j == 0 || j == W - 1)) { // ????????§?±??????????????????????\n\t\t\t\t\t\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout = out.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\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout = out.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\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout = out.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\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.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\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.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\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.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\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}", "(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\t\t\t\t\t\tout = out.append(\"#\");\n\t\t\t\t\t}", "out = out.append(\"#\")", "out", "out.append(\"#\")", "out.append", "out", "\"#\"", "{\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}", "out = out.append(\".\")", "out", "out.append(\".\")", "out.append", "out", "\".\"", "out = out.append(\"\\n\")", "out", "out.append(\"\\n\")", "out.append", "out", "\"\\n\"", "output = output.append(out + \"\\n\")", "output", "output.append(out + \"\\n\")", "output.append", "output", "out + \"\\n\"", "out", "\"\\n\"", "out.delete(0, out.length())", "out.delete", "out", "0", "out.length()", "out.length", "out", "System.out.print(output)", "System.out.print", "System.out", "System", "System.out", "output", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in); // ??\\???????????????\n\t\tStringBuilder out = new StringBuilder(); // ??¨?????¨??¢??°\n\t\tStringBuilder output = new StringBuilder(); // #,\\n???????´?????????¢??°\n\n\t\twhile (true) { // ???????????????\n\t\t\tint H = sc.nextInt(); // ????????\\??????\n\t\t\tint W = sc.nextInt(); // ?¨??????\\??????\n\n\t\t\tif (H + W == 0) // ?????¨?¨????0 0????????????\n\t\t\t\tbreak;\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)) { // ????????§?±??????????????????????\n\t\t\t\t\t\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\toutput = output.append(out + \"\\n\"); // ????´???????#,\\n???????´?\n\t\t\tout.delete(0, out.length()); // ??¨?????¨out????????????\n\t\t}\n\t\tSystem.out.print(output); // ??????\n\t\tsc.close();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in); // ??\\???????????????\n\t\tStringBuilder out = new StringBuilder(); // ??¨?????¨??¢??°\n\t\tStringBuilder output = new StringBuilder(); // #,\\n???????´?????????¢??°\n\n\t\twhile (true) { // ???????????????\n\t\t\tint H = sc.nextInt(); // ????????\\??????\n\t\t\tint W = sc.nextInt(); // ?¨??????\\??????\n\n\t\t\tif (H + W == 0) // ?????¨?¨????0 0????????????\n\t\t\t\tbreak;\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)) { // ????????§?±??????????????????????\n\t\t\t\t\t\tout = out.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tout = out.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tout = out.append(\"\\n\");\n\t\t\t}\n\t\t\toutput = output.append(out + \"\\n\"); // ????´???????#,\\n???????´?\n\t\t\tout.delete(0, out.length()); // ??¨?????¨out????????????\n\t\t}\n\t\tSystem.out.print(output); // ??????\n\t\tsc.close();\n\t}\n\n}", "Main" ]
import java.io.IOException; import java.util.Scanner; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); // ??\??????????????? StringBuilder out = new StringBuilder(); // ??¨?????¨??¢??° StringBuilder output = new StringBuilder(); // #,\n???????´?????????¢??° while (true) { // ??????????????? int H = sc.nextInt(); // ????????\?????? int W = sc.nextInt(); // ?¨??????\?????? if (H + W == 0) // ?????¨?¨????0 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)) { // ????????§?±?????????????????????? out = out.append("#"); } else { out = out.append("."); } } out = out.append("\n"); } output = output.append(out + "\n"); // ????´???????#,\n???????´? out.delete(0, out.length()); // ??¨?????¨out???????????? } System.out.print(output); // ?????? sc.close(); } }
[ 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, 14, 2, 2, 13, 17, 2, 13, 17, 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, 12, 13, 30, 41, 13, 20, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 169, 5 ], [ 169, 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 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 16, 36 ], [ 36, 37 ], [ 39, 38 ], [ 46, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 46, 46 ], [ 46, 47 ], [ 46, 48 ], [ 39, 49 ], [ 49, 50 ], [ 49, 51 ], [ 36, 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 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 52, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 52, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 78, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 92, 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 ], [ 92, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 52, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 131, 133 ], [ 126, 134 ], [ 134, 135 ], [ 135, 136 ], [ 126, 137 ], [ 138, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 52, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 52, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 169, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 163, 164 ], [ 164, 165 ], [ 157, 166 ], [ 166, 167 ], [ 0, 168 ], [ 168, 169 ], [ 168, 170 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tprivate void rect(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile(scanner.hasNextInt()){\n\t\t\tint h =scanner.nextInt();\n\t\t\tint w =scanner.nextInt();\n\t\t\tif(h==0 && w==0)break;\n\t\t\t\n\t\t\tif(3<=h && h<=300 && 3<=w && w<=300){\n\t\t\t\tfor(int j=0; j<w; j++){ //top\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\t\n\t\t\t\tfor(int i=1; i<h-1; i++){\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<w; j++){ //bottom\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tMain run =new Main();\n\t\trun.rect();\n\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tprivate void rect(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile(scanner.hasNextInt()){\n\t\t\tint h =scanner.nextInt();\n\t\t\tint w =scanner.nextInt();\n\t\t\tif(h==0 && w==0)break;\n\t\t\t\n\t\t\tif(3<=h && h<=300 && 3<=w && w<=300){\n\t\t\t\tfor(int j=0; j<w; j++){ //top\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\t\n\t\t\t\tfor(int i=1; i<h-1; i++){\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<w; j++){ //bottom\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tMain run =new Main();\n\t\trun.rect();\n\n\t}\n}", "Main", "private void rect(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile(scanner.hasNextInt()){\n\t\t\tint h =scanner.nextInt();\n\t\t\tint w =scanner.nextInt();\n\t\t\tif(h==0 && w==0)break;\n\t\t\t\n\t\t\tif(3<=h && h<=300 && 3<=w && w<=300){\n\t\t\t\tfor(int j=0; j<w; j++){ //top\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\t\n\t\t\t\tfor(int i=1; i<h-1; i++){\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<w; j++){ //bottom\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}", "rect", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile(scanner.hasNextInt()){\n\t\t\tint h =scanner.nextInt();\n\t\t\tint w =scanner.nextInt();\n\t\t\tif(h==0 && w==0)break;\n\t\t\t\n\t\t\tif(3<=h && h<=300 && 3<=w && w<=300){\n\t\t\t\tfor(int j=0; j<w; j++){ //top\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\t\n\t\t\t\tfor(int i=1; i<h-1; i++){\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<w; j++){ //bottom\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while(scanner.hasNextInt()){\n\t\t\tint h =scanner.nextInt();\n\t\t\tint w =scanner.nextInt();\n\t\t\tif(h==0 && w==0)break;\n\t\t\t\n\t\t\tif(3<=h && h<=300 && 3<=w && w<=300){\n\t\t\t\tfor(int j=0; j<w; j++){ //top\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\t\n\t\t\t\tfor(int i=1; i<h-1; i++){\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<w; j++){ //bottom\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}", "scanner.hasNextInt()", "scanner.hasNextInt", "scanner", "{\n\t\t\tint h =scanner.nextInt();\n\t\t\tint w =scanner.nextInt();\n\t\t\tif(h==0 && w==0)break;\n\t\t\t\n\t\t\tif(3<=h && h<=300 && 3<=w && w<=300){\n\t\t\t\tfor(int j=0; j<w; j++){ //top\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\t\n\t\t\t\tfor(int i=1; i<h-1; i++){\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<w; j++){ //bottom\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}", "int h =scanner.nextInt();", "h", "scanner.nextInt()", "scanner.nextInt", "scanner", "int w =scanner.nextInt();", "w", "scanner.nextInt()", "scanner.nextInt", "scanner", "if(h==0 && w==0)break;", "h==0 && w==0", "h==0", "h", "0", "w==0", "w", "0", "break;", "if(3<=h && h<=300 && 3<=w && w<=300){\n\t\t\t\tfor(int j=0; j<w; j++){ //top\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\t\n\t\t\t\tfor(int i=1; i<h-1; i++){\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<w; j++){ //bottom\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\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 j=0; j<w; j++){ //top\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\t\n\t\t\t\tfor(int i=1; i<h-1; i++){\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<w; j++){ //bottom\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}", "for(int j=0; j<w; j++){ //top\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<w", "j", "w", "j++", "j++", "j", "{ //top\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}", "{ //top\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.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "for(int i=1; i<h-1; i++){\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}", "int i=1;", "int i=1;", "i", "1", "i<h-1", "i", "h-1", "h", "1", "i++", "i++", "i", "{\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}", "{\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}", "System.out.printf(\"#\")", "System.out.printf", "System.out", "System", "System.out", "\"#\"", "for(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\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\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.println(\"#\")", "System.out.println", "System.out", "System", "System.out", "\"#\"", "for(int j=0; j<w; j++){ //bottom\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<w", "j", "w", "j++", "j++", "j", "{ //bottom\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}", "{ //bottom\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.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[] args) {\n\t\tMain run =new Main();\n\t\trun.rect();\n\n\t}", "main", "{\n\t\tMain run =new Main();\n\t\trun.rect();\n\n\t}", "Main run =new Main();", "run", "new Main()", "run.rect()", "run.rect", "run", "String[] args", "args", "public class Main {\n\tprivate void rect(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile(scanner.hasNextInt()){\n\t\t\tint h =scanner.nextInt();\n\t\t\tint w =scanner.nextInt();\n\t\t\tif(h==0 && w==0)break;\n\t\t\t\n\t\t\tif(3<=h && h<=300 && 3<=w && w<=300){\n\t\t\t\tfor(int j=0; j<w; j++){ //top\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\t\n\t\t\t\tfor(int i=1; i<h-1; i++){\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<w; j++){ //bottom\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tMain run =new Main();\n\t\trun.rect();\n\n\t}\n}", "public class Main {\n\tprivate void rect(){\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile(scanner.hasNextInt()){\n\t\t\tint h =scanner.nextInt();\n\t\t\tint w =scanner.nextInt();\n\t\t\tif(h==0 && w==0)break;\n\t\t\t\n\t\t\tif(3<=h && h<=300 && 3<=w && w<=300){\n\t\t\t\tfor(int j=0; j<w; j++){ //top\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\t\n\t\t\t\tfor(int i=1; i<h-1; i++){\n\t\t\t\t\tSystem.out.printf(\"#\"); //right\n\t\t\t\t\tfor(int j=1; j<w-1; j++){\n\t\t\t\t\t\tSystem.out.printf(\".\");\n\t\t\t\t\t}System.out.println(\"#\"); //left\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tfor(int j=0; j<w; j++){ //bottom\n\t\t\t\t\tSystem.out.printf(\"#\");\n\t\t\t\t}System.out.println(\"\");\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tMain run =new Main();\n\t\trun.rect();\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { private void rect(){ Scanner scanner = new Scanner(System.in); while(scanner.hasNextInt()){ int h =scanner.nextInt(); int w =scanner.nextInt(); if(h==0 && w==0)break; if(3<=h && h<=300 && 3<=w && w<=300){ for(int j=0; j<w; j++){ //top System.out.printf("#"); }System.out.println(""); for(int i=1; i<h-1; i++){ System.out.printf("#"); //right for(int j=1; j<w-1; j++){ System.out.printf("."); }System.out.println("#"); //left } for(int j=0; j<w; j++){ //bottom System.out.printf("#"); }System.out.println(""); System.out.println(""); } } } public static void main(String[] args) { Main run =new Main(); run.rect(); } }
[ 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, 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, 18, 13, 13, 13, 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 ], [ 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 ], [ 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 ], [ 81, 84 ], [ 60, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 46, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 30, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 30, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 30, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 6, 110 ], [ 110, 111 ] ]
[ "import java.util.*;\n \nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n while(h != 0 || w != 0){\n \n StringBuilder sb = new StringBuilder();\n \n for(int i = 0; i < h; i++){\n \n for(int j = 0; j < w; j++){\n if(j == 0 || j == w - 1 || i == 0 || i == h - 1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n \n }\n System.out.println(sb);\n \n h = sc.nextInt();\n w = sc.nextInt();\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 int h = sc.nextInt();\n int w = sc.nextInt();\n \n while(h != 0 || w != 0){\n \n StringBuilder sb = new StringBuilder();\n \n for(int i = 0; i < h; i++){\n \n for(int j = 0; j < w; j++){\n if(j == 0 || j == w - 1 || i == 0 || i == h - 1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n \n }\n System.out.println(sb);\n \n h = sc.nextInt();\n w = sc.nextInt();\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n while(h != 0 || w != 0){\n \n StringBuilder sb = new StringBuilder();\n \n for(int i = 0; i < h; i++){\n \n for(int j = 0; j < w; j++){\n if(j == 0 || j == w - 1 || i == 0 || i == h - 1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n \n }\n System.out.println(sb);\n \n h = sc.nextInt();\n w = sc.nextInt();\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int h = sc.nextInt();\n int w = sc.nextInt();\n \n while(h != 0 || w != 0){\n \n StringBuilder sb = new StringBuilder();\n \n for(int i = 0; i < h; i++){\n \n for(int j = 0; j < w; j++){\n if(j == 0 || j == w - 1 || i == 0 || i == h - 1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n \n }\n System.out.println(sb);\n \n h = sc.nextInt();\n w = sc.nextInt();\n }\n }", "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 \n StringBuilder sb = new StringBuilder();\n \n for(int i = 0; i < h; i++){\n \n for(int j = 0; j < w; j++){\n if(j == 0 || j == w - 1 || i == 0 || i == h - 1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n \n }\n System.out.println(sb);\n \n h = sc.nextInt();\n w = sc.nextInt();\n }", "h != 0 || w != 0", "h != 0", "h", "0", "w != 0", "w", "0", "{\n \n StringBuilder sb = new StringBuilder();\n \n for(int i = 0; i < h; i++){\n \n for(int j = 0; j < w; j++){\n if(j == 0 || j == w - 1 || i == 0 || i == h - 1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n \n }\n System.out.println(sb);\n \n h = sc.nextInt();\n w = sc.nextInt();\n }", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for(int i = 0; i < h; i++){\n \n for(int j = 0; j < w; j++){\n if(j == 0 || j == w - 1 || i == 0 || i == h - 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 \n for(int j = 0; j < w; j++){\n if(j == 0 || j == w - 1 || i == 0 || i == h - 1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n \n }", "{\n \n for(int j = 0; j < w; j++){\n if(j == 0 || j == w - 1 || i == 0 || i == h - 1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }\n sb.append(\"\\n\");\n \n }", "for(int j = 0; j < w; j++){\n if(j == 0 || j == w - 1 || i == 0 || i == h - 1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < w", "j", "w", "j++", "j++", "j", "{\n if(j == 0 || j == w - 1 || i == 0 || i == h - 1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }", "{\n if(j == 0 || j == w - 1 || i == 0 || i == h - 1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }\n }", "if(j == 0 || j == w - 1 || i == 0 || i == h - 1){\n sb.append(\"#\");\n }else{\n sb.append(\".\");\n }", "j == 0 || j == w - 1 || i == 0 || i == h - 1", "i == 0", "j == 0 || j == w - 1 || i == 0 || i == h - 1", "j == 0", "j", "0", "j == w - 1", "j", "w - 1", "w", "1", "i == 0", "i", "0", "i == h - 1", "i", "h - 1", "h", "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", "h = sc.nextInt()", "h", "sc.nextInt()", "sc.nextInt", "sc", "w = sc.nextInt()", "w", "sc.nextInt()", "sc.nextInt", "sc", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int h = sc.nextInt(); int w = sc.nextInt(); while(h != 0 || w != 0){ StringBuilder sb = new StringBuilder(); for(int i = 0; i < h; i++){ for(int j = 0; j < w; j++){ if(j == 0 || j == w - 1 || i == 0 || i == h - 1){ sb.append("#"); }else{ sb.append("."); } } sb.append("\n"); } System.out.println(sb); 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, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 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, 13, 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, 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, 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 ], [ 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 ], [ 39, 41 ], [ 18, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 42, 52 ], [ 52, 53 ], [ 53, 54 ], [ 42, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 18, 60 ], [ 60, 61 ], [ 60, 62 ], [ 18, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 6, 69 ], [ 69, 70 ], [ 4, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 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 ], [ 73, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 71, 99 ], [ 99, 100 ], [ 4, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 103, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 115, 117 ], [ 117, 118 ], [ 117, 119 ], [ 110, 120 ], [ 120, 121 ], [ 121, 122 ], [ 110, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 103, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 103, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 101, 143 ], [ 143, 144 ] ]
[ "\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\t// Scanner scanner = new Scanner(\"3 5 4 2 0 0 8 8\");\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint h;\n\t\tint w;\n\t\twhile (true) {\n\t\t\th = scanner.nextInt();\n\t\t\tw = scanner.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlineMaker01(w);\n\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\tlineMaker02(w);\n\t\t\t}\n\t\t\tlineMaker01(w);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t//System.out.println(\"\");\n\t}\n\n\tstatic void lineMaker01(int w) {\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}\n\n\tstatic void lineMaker02(int w) {\n\t\tSystem.out.print(\"#\");\n\t\tfor (int i = 0; i < w - 2; i++) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\t\tSystem.out.print(\"#\");\n\t\tSystem.out.println(\"\");\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n\t\t// Scanner scanner = new Scanner(\"3 5 4 2 0 0 8 8\");\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint h;\n\t\tint w;\n\t\twhile (true) {\n\t\t\th = scanner.nextInt();\n\t\t\tw = scanner.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlineMaker01(w);\n\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\tlineMaker02(w);\n\t\t\t}\n\t\t\tlineMaker01(w);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t//System.out.println(\"\");\n\t}\n\n\tstatic void lineMaker01(int w) {\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}\n\n\tstatic void lineMaker02(int w) {\n\t\tSystem.out.print(\"#\");\n\t\tfor (int i = 0; i < w - 2; i++) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\t\tSystem.out.print(\"#\");\n\t\tSystem.out.println(\"\");\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// Scanner scanner = new Scanner(\"3 5 4 2 0 0 8 8\");\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint h;\n\t\tint w;\n\t\twhile (true) {\n\t\t\th = scanner.nextInt();\n\t\t\tw = scanner.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlineMaker01(w);\n\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\tlineMaker02(w);\n\t\t\t}\n\t\t\tlineMaker01(w);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t//System.out.println(\"\");\n\t}", "main", "{\n\t\t// Scanner scanner = new Scanner(\"3 5 4 2 0 0 8 8\");\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint h;\n\t\tint w;\n\t\twhile (true) {\n\t\t\th = scanner.nextInt();\n\t\t\tw = scanner.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlineMaker01(w);\n\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\tlineMaker02(w);\n\t\t\t}\n\t\t\tlineMaker01(w);\n\t\t\tSystem.out.println(\"\");\n\t\t}\n\t\t//System.out.println(\"\");\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int h;", "h", "int w;", "w", "while (true) {\n\t\t\th = scanner.nextInt();\n\t\t\tw = scanner.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlineMaker01(w);\n\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\tlineMaker02(w);\n\t\t\t}\n\t\t\tlineMaker01(w);\n\t\t\tSystem.out.println(\"\");\n\t\t}", "true", "{\n\t\t\th = scanner.nextInt();\n\t\t\tw = scanner.nextInt();\n\t\t\tif (h == 0 && w == 0) {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tlineMaker01(w);\n\t\t\tfor (int j = 0; j < h - 2; j++) {\n\t\t\t\tlineMaker02(w);\n\t\t\t}\n\t\t\tlineMaker01(w);\n\t\t\tSystem.out.println(\"\");\n\t\t}", "h = scanner.nextInt()", "h", "scanner.nextInt()", "scanner.nextInt", "scanner", "w = scanner.nextInt()", "w", "scanner.nextInt()", "scanner.nextInt", "scanner", "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;", "lineMaker01(w)", "lineMaker01", "w", "for (int j = 0; j < h - 2; j++) {\n\t\t\t\tlineMaker02(w);\n\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\tlineMaker02(w);\n\t\t\t}", "{\n\t\t\t\tlineMaker02(w);\n\t\t\t}", "lineMaker02(w)", "lineMaker02", "w", "lineMaker01(w)", "lineMaker01", "w", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "String[] args", "args", "static void lineMaker01(int w) {\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}", "lineMaker01", "{\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}", "for (int i = 0; i < w; i++) {\n\t\t\tSystem.out.print(\"#\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "{\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 w", "w", "static void lineMaker02(int w) {\n\t\tSystem.out.print(\"#\");\n\t\tfor (int i = 0; i < w - 2; i++) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\t\tSystem.out.print(\"#\");\n\t\tSystem.out.println(\"\");\n\t}", "lineMaker02", "{\n\t\tSystem.out.print(\"#\");\n\t\tfor (int i = 0; i < w - 2; i++) {\n\t\t\tSystem.out.print(\".\");\n\t\t}\n\t\tSystem.out.print(\"#\");\n\t\tSystem.out.println(\"\");\n\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for (int i = 0; i < w - 2; i++) {\n\t\t\tSystem.out.print(\".\");\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\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(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println(\"\")", "System.out.println", "System.out", "System", "System.out", "\"\"", "int w", "w" ]
import java.util.Scanner; class Main { public static void main(String[] args) { // Scanner scanner = new Scanner("3 5 4 2 0 0 8 8"); Scanner scanner = new Scanner(System.in); int h; int w; while (true) { h = scanner.nextInt(); w = scanner.nextInt(); if (h == 0 && w == 0) { break; } lineMaker01(w); for (int j = 0; j < h - 2; j++) { lineMaker02(w); } lineMaker01(w); System.out.println(""); } //System.out.println(""); } static void lineMaker01(int w) { for (int i = 0; i < w; i++) { System.out.print("#"); } System.out.println(""); } static void lineMaker02(int w) { System.out.print("#"); for (int i = 0; i < w - 2; i++) { System.out.print("."); } System.out.print("#"); System.out.println(""); } }
[ 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, 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, 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 ], [ 110, 5 ], [ 110, 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 ], [ 29, 38 ], [ 38, 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 ], [ 87, 89 ], [ 85, 90 ], [ 65, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 51, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 18, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 6, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "import java.util.Scanner;\npublic class Main\n{\n\tpublic static void main( String args[] )\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint h, w;\n\t\twhile(true)\n\t\t{\n\t\t\th=input.nextInt();\n\t\t\tw=input.nextInt();\n\t\t\tif(h == 0 && w == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tfor(int i = 0; i < h; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\tSystem.out.println();\n\t\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{\n\tpublic static void main( String args[] )\n\t{\n\t\tScanner input = new Scanner(System.in);\n\t\tint h, w;\n\t\twhile(true)\n\t\t{\n\t\t\th=input.nextInt();\n\t\t\tw=input.nextInt();\n\t\t\tif(h == 0 && w == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tfor(int i = 0; i < h; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\tSystem.out.println();\n\t\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{\n\t\tScanner input = new Scanner(System.in);\n\t\tint h, w;\n\t\twhile(true)\n\t\t{\n\t\t\th=input.nextInt();\n\t\t\tw=input.nextInt();\n\t\t\tif(h == 0 && w == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tfor(int i = 0; i < h; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\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\tScanner input = new Scanner(System.in);\n\t\tint h, w;\n\t\twhile(true)\n\t\t{\n\t\t\th=input.nextInt();\n\t\t\tw=input.nextInt();\n\t\t\tif(h == 0 && w == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tfor(int i = 0; i < h; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "int h", "h", "w;", "w", "while(true)\n\t\t{\n\t\t\th=input.nextInt();\n\t\t\tw=input.nextInt();\n\t\t\tif(h == 0 && w == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tfor(int i = 0; i < h; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\th=input.nextInt();\n\t\t\tw=input.nextInt();\n\t\t\tif(h == 0 && w == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tfor(int i = 0; i < h; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "h=input.nextInt()", "h", "input.nextInt()", "input.nextInt", "input", "w=input.nextInt()", "w", "input.nextInt()", "input.nextInt", "input", "if(h == 0 && w == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tfor(int i = 0; i < h; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "{\n\t\t\t\tfor(int i = 0; i < h; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}", "for(int i = 0; i < h; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\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\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\tSystem.out.println();\n\t\t\t\t}", "{\n\t\t\t\t\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\tSystem.out.println();\n\t\t\t\t}", "for(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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 k = 0;", "int k = 0;", "k", "0", "k < w", "k", "w", "k++", "k++", "k", "{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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(i == 0 || i == h-1 || k == 0 || k == w-1)\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(i == 0 || i == h-1 || k == 0 || k == w-1)\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(\".\");", "i == 0 || i == h-1 || k == 0 || k == w-1", "k == 0", "i == 0 || i == h-1 || k == 0 || k == w-1", "i == 0", "i", "0", "i == h-1", "i", "h-1", "h", "1", "k == 0", "k", "0", "k == w-1", "k", "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{\n\t\tScanner input = new Scanner(System.in);\n\t\tint h, w;\n\t\twhile(true)\n\t\t{\n\t\t\th=input.nextInt();\n\t\t\tw=input.nextInt();\n\t\t\tif(h == 0 && w == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tfor(int i = 0; i < h; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t}\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{\n\t\tScanner input = new Scanner(System.in);\n\t\tint h, w;\n\t\twhile(true)\n\t\t{\n\t\t\th=input.nextInt();\n\t\t\tw=input.nextInt();\n\t\t\tif(h == 0 && w == 0)\n\t\t\t\tbreak;\n\t\t\telse {\n\t\t\t\tfor(int i = 0; i < h; i++)\n\t\t\t\t{\n\t\t\t\t\tfor(int k = 0; k < w; k++)\n\t\t\t\t\t{\n\t\t\t\t\t\tif(i == 0 || i == h-1 || k == 0 || k == w-1)\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\tSystem.out.println();\n\t\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 input = new Scanner(System.in); int h, w; while(true) { h=input.nextInt(); w=input.nextInt(); if(h == 0 && w == 0) break; else { for(int i = 0; i < h; i++) { for(int k = 0; k < w; k++) { if(i == 0 || i == h-1 || k == 0 || k == 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, 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, 18, 13, 20, 28, 13, 13, 30, 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, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 13, 17, 2, 13, 2, 4, 18, 13, 17, 2, 13, 17, 2, 13, 2, 4, 18, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 137, 11 ], [ 137, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 27, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 38, 46 ], [ 27, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 14, 51 ], [ 51, 52 ], [ 51, 53 ], [ 51, 54 ], [ 55, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 56, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 71, 81 ], [ 81, 82 ], [ 82, 83 ], [ 71, 84 ], [ 85, 85 ], [ 85, 86 ], [ 86, 87 ], [ 89, 88 ], [ 100, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 95, 99 ], [ 100, 100 ], [ 100, 101 ], [ 100, 102 ], [ 89, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 105, 109 ], [ 86, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 86, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 70, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 55, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 12, 134 ], [ 134, 135 ], [ 0, 136 ], [ 136, 137 ], [ 136, 138 ] ]
[ "\nimport java.awt.*;\nimport java.util.*;\nimport java.util.List;\n\n/**\n * Created by khrom on 2017/06/15.\n */\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Point> rectList = new ArrayList<>();\n\n int h;\n int w;\n while (true) {\n h = scanner.nextInt();\n w = scanner.nextInt();\n if (h == 0 && w == 0)\n break;\n rectList.add(new Point(w, h));\n }\n\n for (Point point : rectList) {\n for (int i = 0; i < point.getY(); i++) {\n for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }\n }\n}", "import java.awt.*;", "awt.*", "java", "import java.util.*;", "util.*", "java", "import java.util.List;", "List", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Point> rectList = new ArrayList<>();\n\n int h;\n int w;\n while (true) {\n h = scanner.nextInt();\n w = scanner.nextInt();\n if (h == 0 && w == 0)\n break;\n rectList.add(new Point(w, h));\n }\n\n for (Point point : rectList) {\n for (int i = 0; i < point.getY(); i++) {\n for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Point> rectList = new ArrayList<>();\n\n int h;\n int w;\n while (true) {\n h = scanner.nextInt();\n w = scanner.nextInt();\n if (h == 0 && w == 0)\n break;\n rectList.add(new Point(w, h));\n }\n\n for (Point point : rectList) {\n for (int i = 0; i < point.getY(); i++) {\n for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n List<Point> rectList = new ArrayList<>();\n\n int h;\n int w;\n while (true) {\n h = scanner.nextInt();\n w = scanner.nextInt();\n if (h == 0 && w == 0)\n break;\n rectList.add(new Point(w, h));\n }\n\n for (Point point : rectList) {\n for (int i = 0; i < point.getY(); i++) {\n for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "List<Point> rectList = new ArrayList<>();", "rectList", "new ArrayList<>()", "int h;", "h", "int w;", "w", "while (true) {\n h = scanner.nextInt();\n w = scanner.nextInt();\n if (h == 0 && w == 0)\n break;\n rectList.add(new Point(w, h));\n }", "true", "{\n h = scanner.nextInt();\n w = scanner.nextInt();\n if (h == 0 && w == 0)\n break;\n rectList.add(new Point(w, h));\n }", "h = scanner.nextInt()", "h", "scanner.nextInt()", "scanner.nextInt", "scanner", "w = scanner.nextInt()", "w", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (h == 0 && w == 0)\n break;", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "rectList.add(new Point(w, h))", "rectList.add", "rectList", "new Point(w, h)", "for (Point point : rectList) {\n for (int i = 0; i < point.getY(); i++) {\n for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }", "Point point", "rectList", "{\n for (int i = 0; i < point.getY(); i++) {\n for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }", "{\n for (int i = 0; i < point.getY(); i++) {\n for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }", "for (int i = 0; i < point.getY(); i++) {\n for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n System.out.print(\"\\n\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < point.getY()", "i", "point.getY()", "point.getY", "point", "i++", "i++", "i", "{\n for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n System.out.print(\"\\n\");\n }", "{\n for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n System.out.print(\"\\n\");\n }", "for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }", "int j = 0;", "int j = 0;", "j", "0", "j < point.getX()", "j", "point.getX()", "point.getX", "point", "j++", "j++", "j", "{\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }", "{\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }", "if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");", "i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1", "j == 0", "i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1", "i == 0", "i", "0", "i == point.getY() - 1", "i", "point.getY() - 1", "point.getY()", "point.getY", "point", "1", "j == 0", "j", "0", "j == point.getX() - 1", "j", "point.getX() - 1", "point.getX()", "point.getX", "point", "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 public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Point> rectList = new ArrayList<>();\n\n int h;\n int w;\n while (true) {\n h = scanner.nextInt();\n w = scanner.nextInt();\n if (h == 0 && w == 0)\n break;\n rectList.add(new Point(w, h));\n }\n\n for (Point point : rectList) {\n for (int i = 0; i < point.getY(); i++) {\n for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Point> rectList = new ArrayList<>();\n\n int h;\n int w;\n while (true) {\n h = scanner.nextInt();\n w = scanner.nextInt();\n if (h == 0 && w == 0)\n break;\n rectList.add(new Point(w, h));\n }\n\n for (Point point : rectList) {\n for (int i = 0; i < point.getY(); i++) {\n for (int j = 0; j < point.getX(); j++) {\n if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 1)\n System.out.print(\"#\");\n else\n System.out.print(\".\");\n }\n System.out.print(\"\\n\");\n }\n System.out.print(\"\\n\");\n }\n }\n}", "Main" ]
import java.awt.*; import java.util.*; import java.util.List; /** * Created by khrom on 2017/06/15. */ public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); List<Point> rectList = new ArrayList<>(); int h; int w; while (true) { h = scanner.nextInt(); w = scanner.nextInt(); if (h == 0 && w == 0) break; rectList.add(new Point(w, h)); } for (Point point : rectList) { for (int i = 0; i < point.getY(); i++) { for (int j = 0; j < point.getX(); j++) { if (i == 0 || i == point.getY() - 1 || j == 0 || j == point.getX() - 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, 17, 38, 5, 13, 30, 4, 18, 13, 5, 13, 30, 4, 18, 13, 30, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 4, 18, 13, 17, 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, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 145, 11 ], [ 145, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 21, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 21, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 36, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 43, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 43, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 43, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 43, 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 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 85, 93 ], [ 93, 94 ], [ 94, 95 ], [ 85, 96 ], [ 97, 97 ], [ 97, 98 ], [ 98, 99 ], [ 101, 100 ], [ 108, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 108, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 101, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 98, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 98, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 84, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 43, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 12, 142 ], [ 142, 143 ], [ 0, 144 ], [ 144, 145 ], [ 144, 146 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()) != null) {\n\t\t\t\tif (x.equals(\"0 0\")) break;\n\t\t\t\t\n\t\t\t\tString[] values = x.split(\" \");\n\t\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\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\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()) != null) {\n\t\t\t\tif (x.equals(\"0 0\")) break;\n\t\t\t\t\n\t\t\t\tString[] values = x.split(\" \");\n\t\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()) != null) {\n\t\t\t\tif (x.equals(\"0 0\")) break;\n\t\t\t\t\n\t\t\t\tString[] values = x.split(\" \");\n\t\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()) != null) {\n\t\t\t\tif (x.equals(\"0 0\")) break;\n\t\t\t\t\n\t\t\t\tString[] values = x.split(\" \");\n\t\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "String x = \"\";", "x", "\"\"", "try {\n\t\t\twhile ((x = in.readLine()) != null) {\n\t\t\t\tif (x.equals(\"0 0\")) break;\n\t\t\t\t\n\t\t\t\tString[] values = x.split(\" \");\n\t\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "NumberFormatException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "IOException e", "{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\twhile ((x = in.readLine()) != null) {\n\t\t\t\tif (x.equals(\"0 0\")) break;\n\t\t\t\t\n\t\t\t\tString[] values = x.split(\" \");\n\t\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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}", "while ((x = in.readLine()) != null) {\n\t\t\t\tif (x.equals(\"0 0\")) break;\n\t\t\t\t\n\t\t\t\tString[] values = x.split(\" \");\n\t\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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}", "(x = in.readLine()) != null", "(x = in.readLine())", "x", "in.readLine()", "in.readLine", "in", "null", "{\n\t\t\t\tif (x.equals(\"0 0\")) break;\n\t\t\t\t\n\t\t\t\tString[] values = x.split(\" \");\n\t\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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}", "if (x.equals(\"0 0\")) break;", "x.equals(\"0 0\")", "x.equals", "x", "\"0 0\"", "break;", "String[] values = x.split(\" \");", "values", "x.split(\" \")", "x.split", "x", "\" \"", "int a = Integer.parseInt(values[0]);", "a", "Integer.parseInt(values[0])", "Integer.parseInt", "Integer", "values[0]", "values", "0", "int b = Integer.parseInt(values[1]);", "b", "Integer.parseInt(values[1])", "Integer.parseInt", "Integer", "values[1]", "values", "1", "for (int i = 0; i < a; i++) {\n\t\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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 i = 0;", "int i = 0;", "i", "0", "i < a", "i", "a", "i++", "i++", "i", "{\n\t\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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 j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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 j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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 < b", "j", "b", "j++", "j++", "j", "{\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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 ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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 ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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}", "(i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 1))", "(i == (a - 1))", "(i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 1))", "(i == 0)", "i", "0", "(j == 0)", "j", "0", "(i == (a - 1))", "i", "(a - 1)", "a", "1", "(j == (b - 1))", "j", "(b - 1)", "b", "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\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()) != null) {\n\t\t\t\tif (x.equals(\"0 0\")) break;\n\t\t\t\t\n\t\t\t\tString[] values = x.split(\" \");\n\t\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\twhile ((x = in.readLine()) != null) {\n\t\t\t\tif (x.equals(\"0 0\")) break;\n\t\t\t\t\n\t\t\t\tString[] values = x.split(\" \");\n\t\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\t\n\t\t\t\tfor (int i = 0; i < a; i++) {\n\t\t\t\t\tfor (int j = 0; j < b; j++) {\n\t\t\t\t\t\tif ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 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} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\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 in = new BufferedReader(new InputStreamReader(System.in)); String x = ""; try { while ((x = in.readLine()) != null) { if (x.equals("0 0")) break; String[] values = x.split(" "); int a = Integer.parseInt(values[0]); int b = Integer.parseInt(values[1]); for (int i = 0; i < a; i++) { for (int j = 0; j < b; j++) { if ((i == 0) || (j == 0) || (i == (a - 1)) || (j == (b - 1))) { System.out.print('#'); } else { System.out.print('.'); } } System.out.println(); } System.out.println(); } } catch (NumberFormatException e) { // TODO Auto-generated catch block e.printStackTrace(); } catch (IOException e) { // TODO Auto-generated catch block e.printStackTrace(); } } }
[ 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, 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, 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 ], [ 128, 5 ], [ 128, 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 ], [ 25, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 34, 36 ], [ 17, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 17, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 17, 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 ], [ 102, 105 ], [ 81, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 67, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 17, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 8, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 6, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.io.*;\npublic class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\twhile(true){\n\t\tString str=input.readLine();\n\t\tString[] arr=str.split(\" \");\n\t\tint h=Integer.parseInt(arr[0]);\t\n\t\tint w=Integer.parseInt(arr[1]);\n\t\tif(h==0&&w==0){\n\t\t\tbreak;\n\t\t}\n\t\n\t\tfor(int i=0;i<h;i++){\n\n\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.print(sb);\n\t}\n}", "import java.io.*;", "io.*", "java", "public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\twhile(true){\n\t\tString str=input.readLine();\n\t\tString[] arr=str.split(\" \");\n\t\tint h=Integer.parseInt(arr[0]);\t\n\t\tint w=Integer.parseInt(arr[1]);\n\t\tif(h==0&&w==0){\n\t\t\tbreak;\n\t\t}\n\t\n\t\tfor(int i=0;i<h;i++){\n\n\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.print(sb);\n\t}\n}", "Main", "public static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\twhile(true){\n\t\tString str=input.readLine();\n\t\tString[] arr=str.split(\" \");\n\t\tint h=Integer.parseInt(arr[0]);\t\n\t\tint w=Integer.parseInt(arr[1]);\n\t\tif(h==0&&w==0){\n\t\t\tbreak;\n\t\t}\n\t\n\t\tfor(int i=0;i<h;i++){\n\n\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\twhile(true){\n\t\tString str=input.readLine();\n\t\tString[] arr=str.split(\" \");\n\t\tint h=Integer.parseInt(arr[0]);\t\n\t\tint w=Integer.parseInt(arr[1]);\n\t\tif(h==0&&w==0){\n\t\t\tbreak;\n\t\t}\n\t\n\t\tfor(int i=0;i<h;i++){\n\n\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.print(sb);\n\t}", "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\t\tString str=input.readLine();\n\t\tString[] arr=str.split(\" \");\n\t\tint h=Integer.parseInt(arr[0]);\t\n\t\tint w=Integer.parseInt(arr[1]);\n\t\tif(h==0&&w==0){\n\t\t\tbreak;\n\t\t}\n\t\n\t\tfor(int i=0;i<h;i++){\n\n\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t}", "true", "{\n\t\tString str=input.readLine();\n\t\tString[] arr=str.split(\" \");\n\t\tint h=Integer.parseInt(arr[0]);\t\n\t\tint w=Integer.parseInt(arr[1]);\n\t\tif(h==0&&w==0){\n\t\t\tbreak;\n\t\t}\n\t\n\t\tfor(int i=0;i<h;i++){\n\n\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t}", "String str=input.readLine();", "str", "input.readLine()", "input.readLine", "input", "String[] arr=str.split(\" \");", "arr", "str.split(\" \")", "str.split", "str", "\" \"", "int h=Integer.parseInt(arr[0]);", "h", "Integer.parseInt(arr[0])", "Integer.parseInt", "Integer", "arr[0]", "arr", "0", "int w=Integer.parseInt(arr[1]);", "w", "Integer.parseInt(arr[1])", "Integer.parseInt", "Integer", "arr[1]", "arr", "1", "if(h==0&&w==0){\n\t\t\tbreak;\n\t\t}", "h==0&&w==0", "h==0", "h", "0", "w==0", "w", "0", "{\n\t\t\tbreak;\n\t\t}", "break;", "for(int i=0;i<h;i++){\n\n\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<h", "i", "h", "i++", "i++", "i", "{\n\n\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t}", "{\n\n\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t}", "for(int j=0;j<w;j++){\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\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(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}", "if(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\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\tsb.append(\"#\");\n\t\t\t\t}", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "{\n\t\t\t\t\tsb.append(\".\");\n\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", "public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\twhile(true){\n\t\tString str=input.readLine();\n\t\tString[] arr=str.split(\" \");\n\t\tint h=Integer.parseInt(arr[0]);\t\n\t\tint w=Integer.parseInt(arr[1]);\n\t\tif(h==0&&w==0){\n\t\t\tbreak;\n\t\t}\n\t\n\t\tfor(int i=0;i<h;i++){\n\n\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.print(sb);\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\twhile(true){\n\t\tString str=input.readLine();\n\t\tString[] arr=str.split(\" \");\n\t\tint h=Integer.parseInt(arr[0]);\t\n\t\tint w=Integer.parseInt(arr[1]);\n\t\tif(h==0&&w==0){\n\t\t\tbreak;\n\t\t}\n\t\n\t\tfor(int i=0;i<h;i++){\n\n\t\t\tfor(int j=0;j<w;j++){\n\t\t\t\tif(i==0||i==h-1||j==0||j==w-1){\n\t\t\t\tsb.append(\"#\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t}\n\t\t\t}\n\t\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\t\tsb.append(\"\\n\");\n\n\t\t\t}\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.print(sb);\n\t}\n}", "Main" ]
import java.io.*; public class Main{ public static void main(String[] args)throws Exception{ BufferedReader input=new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb=new StringBuilder(); while(true){ String str=input.readLine(); String[] arr=str.split(" "); int h=Integer.parseInt(arr[0]); int w=Integer.parseInt(arr[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, 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, 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, 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 ], [ 11, 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 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 93, 93 ], [ 93, 94 ], [ 93, 95 ], [ 84, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 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 ], [ 9, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args)throws Exception {\n \tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n while(true){\n \tString[] input = br.readLine().split(\" \");\n \tint H = Integer.parseInt(input[0]);\n \tint W = Integer.parseInt(input[1]);\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \tfor(int x = 0 ; x < H ; x++){\n \t\tfor(int y = 0; y < W ; y++){\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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 }\n }\n}", "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 Exception {\n \tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n while(true){\n \tString[] input = br.readLine().split(\" \");\n \tint H = Integer.parseInt(input[0]);\n \tint W = Integer.parseInt(input[1]);\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \tfor(int x = 0 ; x < H ; x++){\n \t\tfor(int y = 0; y < W ; y++){\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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 }\n }\n}", "Main", "public static void main(String[] args)throws Exception {\n \tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n while(true){\n \tString[] input = br.readLine().split(\" \");\n \tint H = Integer.parseInt(input[0]);\n \tint W = Integer.parseInt(input[1]);\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \tfor(int x = 0 ; x < H ; x++){\n \t\tfor(int y = 0; y < W ; y++){\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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 }\n }", "main", "{\n \tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n while(true){\n \tString[] input = br.readLine().split(\" \");\n \tint H = Integer.parseInt(input[0]);\n \tint W = Integer.parseInt(input[1]);\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \tfor(int x = 0 ; x < H ; x++){\n \t\tfor(int y = 0; y < W ; y++){\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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 }\n }", "InputStreamReader isr = new InputStreamReader(System.in);", "isr", "new InputStreamReader(System.in)", "BufferedReader br = new BufferedReader(isr);", "br", "new BufferedReader(isr)", "while(true){\n \tString[] input = br.readLine().split(\" \");\n \tint H = Integer.parseInt(input[0]);\n \tint W = Integer.parseInt(input[1]);\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \tfor(int x = 0 ; x < H ; x++){\n \t\tfor(int y = 0; y < W ; y++){\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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 }", "true", "{\n \tString[] input = br.readLine().split(\" \");\n \tint H = Integer.parseInt(input[0]);\n \tint W = Integer.parseInt(input[1]);\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \tfor(int x = 0 ; x < H ; x++){\n \t\tfor(int y = 0; y < W ; y++){\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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 }", "String[] input = br.readLine().split(\" \");", "input", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int H = Integer.parseInt(input[0]);", "H", "Integer.parseInt(input[0])", "Integer.parseInt", "Integer", "input[0]", "input", "0", "int W = Integer.parseInt(input[1]);", "W", "Integer.parseInt(input[1])", "Integer.parseInt", "Integer", "input[1]", "input", "1", "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 x = 0 ; x < H ; x++){\n \t\tfor(int y = 0; y < W ; y++){\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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 x = 0 ;", "int x = 0 ;", "x", "0", "x < H", "x", "H", "x++", "x++", "x", "{\n \t\tfor(int y = 0; y < W ; y++){\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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 y = 0; y < W ; y++){\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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 y = 0; y < W ; y++){\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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 y = 0;", "int y = 0;", "y", "0", "y < W", "y", "W", "y++", "y++", "y", "{\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\n \t\t\t\tSystem.out.print(\".\");\n \t\t\t}else{\n \t\t\t\tSystem.out.print(\"#\");\n \t\t\t}", "x > 0 && H - 1 > x && y > 0 && W - 1 > y", "y > 0", "x > 0 && H - 1 > x && y > 0 && W - 1 > y", "x > 0", "x", "0", "H - 1 > x", "H - 1", "H", "1", "x", "y > 0", "y", "0", "W - 1 > y", "W - 1", "W", "1", "y", "{\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", "public class Main {\n public static void main(String[] args)throws Exception {\n \tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n while(true){\n \tString[] input = br.readLine().split(\" \");\n \tint H = Integer.parseInt(input[0]);\n \tint W = Integer.parseInt(input[1]);\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \tfor(int x = 0 ; x < H ; x++){\n \t\tfor(int y = 0; y < W ; y++){\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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 }\n }\n}", "public class Main {\n public static void main(String[] args)throws Exception {\n \tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n while(true){\n \tString[] input = br.readLine().split(\" \");\n \tint H = Integer.parseInt(input[0]);\n \tint W = Integer.parseInt(input[1]);\n \tif(H == 0 && W == 0){\n \t\tbreak;\n \t}\n \tfor(int x = 0 ; x < H ; x++){\n \t\tfor(int y = 0; y < W ; y++){\n \t\t\tif(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){\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 }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args)throws Exception { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); while(true){ String[] input = br.readLine().split(" "); int H = Integer.parseInt(input[0]); int W = Integer.parseInt(input[1]); if(H == 0 && W == 0){ break; } for(int x = 0 ; x < H ; x++){ for(int y = 0; y < W ; y++){ if(x > 0 && H - 1 > x && y > 0 && W - 1 > y ){ 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, 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, 13, 17, 2, 13, 2, 13, 17, 30, 4, 18, 13, 17, 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, 20, 4, 18, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 124, 5 ], [ 124, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 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 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 68, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 68, 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 ], [ 95, 98 ], [ 84, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 54, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 21, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 21, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 6, 121 ], [ 121, 122 ], [ 0, 123 ], [ 123, 124 ], [ 123, 125 ] ]
[ "\n\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint h, w;\n\n\t\twhile (true) {\n\t\t\th = scan.nextInt();\n\t\t\tw = scan.nextInt();\n\t\t\t// h??¨w???0????????£?????¨???????????????\n\t\t\tif ((h == 0) & (w == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// ????????????????????????\n\t\t\tfor (int count = 0; count < h; count++) {\n\t\t\t\t// ?¨??????????????????????\n\t\t\t\tfor (int count2 = 0; count2 < w; count2++) {\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(new String(sb));\n\t\t\t// StringBuilder???????????????\n\t\t\tsb.delete(0, sb.length());\n\n\t\t}\n\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\tStringBuilder sb = new StringBuilder();\n\t\tint h, w;\n\n\t\twhile (true) {\n\t\t\th = scan.nextInt();\n\t\t\tw = scan.nextInt();\n\t\t\t// h??¨w???0????????£?????¨???????????????\n\t\t\tif ((h == 0) & (w == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// ????????????????????????\n\t\t\tfor (int count = 0; count < h; count++) {\n\t\t\t\t// ?¨??????????????????????\n\t\t\t\tfor (int count2 = 0; count2 < w; count2++) {\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(new String(sb));\n\t\t\t// StringBuilder???????????????\n\t\t\tsb.delete(0, sb.length());\n\n\t\t}\n\n\t}\n}", "Main", "public static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint h, w;\n\n\t\twhile (true) {\n\t\t\th = scan.nextInt();\n\t\t\tw = scan.nextInt();\n\t\t\t// h??¨w???0????????£?????¨???????????????\n\t\t\tif ((h == 0) & (w == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// ????????????????????????\n\t\t\tfor (int count = 0; count < h; count++) {\n\t\t\t\t// ?¨??????????????????????\n\t\t\t\tfor (int count2 = 0; count2 < w; count2++) {\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(new String(sb));\n\t\t\t// StringBuilder???????????????\n\t\t\tsb.delete(0, sb.length());\n\n\t\t}\n\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint h, w;\n\n\t\twhile (true) {\n\t\t\th = scan.nextInt();\n\t\t\tw = scan.nextInt();\n\t\t\t// h??¨w???0????????£?????¨???????????????\n\t\t\tif ((h == 0) & (w == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// ????????????????????????\n\t\t\tfor (int count = 0; count < h; count++) {\n\t\t\t\t// ?¨??????????????????????\n\t\t\t\tfor (int count2 = 0; count2 < w; count2++) {\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(new String(sb));\n\t\t\t// StringBuilder???????????????\n\t\t\tsb.delete(0, sb.length());\n\n\t\t}\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int h", "h", "w;", "w", "while (true) {\n\t\t\th = scan.nextInt();\n\t\t\tw = scan.nextInt();\n\t\t\t// h??¨w???0????????£?????¨???????????????\n\t\t\tif ((h == 0) & (w == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// ????????????????????????\n\t\t\tfor (int count = 0; count < h; count++) {\n\t\t\t\t// ?¨??????????????????????\n\t\t\t\tfor (int count2 = 0; count2 < w; count2++) {\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(new String(sb));\n\t\t\t// StringBuilder???????????????\n\t\t\tsb.delete(0, sb.length());\n\n\t\t}", "true", "{\n\t\t\th = scan.nextInt();\n\t\t\tw = scan.nextInt();\n\t\t\t// h??¨w???0????????£?????¨???????????????\n\t\t\tif ((h == 0) & (w == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// ????????????????????????\n\t\t\tfor (int count = 0; count < h; count++) {\n\t\t\t\t// ?¨??????????????????????\n\t\t\t\tfor (int count2 = 0; count2 < w; count2++) {\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(new String(sb));\n\t\t\t// StringBuilder???????????????\n\t\t\tsb.delete(0, sb.length());\n\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)) {\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 count = 0; count < h; count++) {\n\t\t\t\t// ?¨??????????????????????\n\t\t\t\tfor (int count2 = 0; count2 < w; count2++) {\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}", "int count = 0;", "int count = 0;", "count", "0", "count < h", "count", "h", "count++", "count++", "count", "{\n\t\t\t\t// ?¨??????????????????????\n\t\t\t\tfor (int count2 = 0; count2 < w; count2++) {\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}", "{\n\t\t\t\t// ?¨??????????????????????\n\t\t\t\tfor (int count2 = 0; count2 < w; count2++) {\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}", "for (int count2 = 0; count2 < w; count2++) {\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}", "int count2 = 0;", "int count2 = 0;", "count2", "0", "count2 < w", "count2", "w", "count2++", "count2++", "count2", "{\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}", "{\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}", "if ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}", "(count == 0) | (count == (h - 1))", "(count == 0)", "count", "0", "(count == (h - 1))", "count", "(h - 1)", "h", "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\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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 ((count2 == 0) | (count2 == (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}", "(count2 == 0) | (count2 == (w - 1))", "(count2 == 0)", "count2", "0", "(count2 == (w - 1))", "count2", "(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(new String(sb))", "System.out.println", "System.out", "System", "System.out", "new String(sb)", "sb.delete(0, sb.length())", "sb.delete", "sb", "0", "sb.length()", "sb.length", "sb", "String args[]", "args", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint h, w;\n\n\t\twhile (true) {\n\t\t\th = scan.nextInt();\n\t\t\tw = scan.nextInt();\n\t\t\t// h??¨w???0????????£?????¨???????????????\n\t\t\tif ((h == 0) & (w == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// ????????????????????????\n\t\t\tfor (int count = 0; count < h; count++) {\n\t\t\t\t// ?¨??????????????????????\n\t\t\t\tfor (int count2 = 0; count2 < w; count2++) {\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(new String(sb));\n\t\t\t// StringBuilder???????????????\n\t\t\tsb.delete(0, sb.length());\n\n\t\t}\n\n\t}\n}", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint h, w;\n\n\t\twhile (true) {\n\t\t\th = scan.nextInt();\n\t\t\tw = scan.nextInt();\n\t\t\t// h??¨w???0????????£?????¨???????????????\n\t\t\tif ((h == 0) & (w == 0)) {\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t\t// ????????????????????????\n\t\t\tfor (int count = 0; count < h; count++) {\n\t\t\t\t// ?¨??????????????????????\n\t\t\t\tfor (int count2 = 0; count2 < w; count2++) {\n\t\t\t\t\t// ???????????????????????¨????????????True???#??????????????????????????¶???\n\t\t\t\t\tif ((count == 0) | (count == (h - 1))) {\n\t\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// ?¨?????????????????????¨?????????True???#?????????)??????????????¶???\n\t\t\t\t\t\tif ((count2 == 0) | (count2 == (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}\n\t\t\t\tsb.append(\"\\n\");\n\t\t\t}\n\n\t\t\tSystem.out.println(new String(sb));\n\t\t\t// StringBuilder???????????????\n\t\t\tsb.delete(0, sb.length());\n\n\t\t}\n\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); StringBuilder sb = new StringBuilder(); int h, w; while (true) { h = scan.nextInt(); w = scan.nextInt(); // h??¨w???0????????£?????¨??????????????? if ((h == 0) & (w == 0)) { break; } // ???????????????????????? for (int count = 0; count < h; count++) { // ?¨?????????????????????? for (int count2 = 0; count2 < w; count2++) { // ???????????????????????¨????????????True???#??????????????????????????¶??? if ((count == 0) | (count == (h - 1))) { sb.append("#"); } else { // ?¨?????????????????????¨?????????True???#?????????)??????????????¶??? if ((count2 == 0) | (count2 == (w - 1))) { sb.append("#"); } else { sb.append("."); } } } sb.append("\n"); } System.out.println(new String(sb)); // StringBuilder??????????????? sb.delete(0, sb.length()); } } }
[ 7, 15, 13, 17, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 131, 14 ], [ 131, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 26, 31 ], [ 23, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 37, 39 ], [ 23, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 23, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 23, 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 ], [ 87, 86 ], [ 96, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 93, 95 ], [ 96, 96 ], [ 96, 97 ], [ 96, 98 ], [ 87, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 101, 103 ], [ 84, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 84, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 70, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 23, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 15, 128 ], [ 128, 129 ], [ 0, 130 ], [ 130, 131 ], [ 130, 132 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint[] input = new int[n];\n//\t\tlong sum = 0;\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n//\t\t\tsum += input[i];\n//\t\t}\n//\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n\t\twhile(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\tif(a == 0 && b == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\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 && j != 0 && j != b-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\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\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.Arrays;", "Arrays", "java.util", "public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint[] input = new int[n];\n//\t\tlong sum = 0;\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n//\t\t\tsum += input[i];\n//\t\t}\n//\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n\t\twhile(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\tif(a == 0 && b == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\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 && j != 0 && j != b-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\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}\n\n}", "Main", "/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint[] input = new int[n];\n//\t\tlong sum = 0;\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n//\t\t\tsum += input[i];\n//\t\t}\n//\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n\t\twhile(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\tif(a == 0 && b == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\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 && j != 0 && j != b-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\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint[] input = new int[n];\n//\t\tlong sum = 0;\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n//\t\t\tsum += input[i];\n//\t\t}\n//\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n\t\twhile(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\tif(a == 0 && b == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\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 && j != 0 && j != b-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\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\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[] tmpArray = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\tif(a == 0 && b == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\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 && j != 0 && j != b-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\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\tif(a == 0 && b == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\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 && j != 0 && j != b-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\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "String[] tmpArray = br.readLine().split(\" \");", "tmpArray", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int a = Integer.parseInt(tmpArray[0]);", "a", "Integer.parseInt(tmpArray[0])", "Integer.parseInt", "Integer", "tmpArray[0]", "tmpArray", "0", "int b = Integer.parseInt(tmpArray[1]);", "b", "Integer.parseInt(tmpArray[1])", "Integer.parseInt", "Integer", "tmpArray[1]", "tmpArray", "1", "if(a == 0 && b == 0){\n\t\t\t\tbreak;\n\t\t\t}", "a == 0 && b == 0", "a == 0", "a", "0", "b == 0", "b", "0", "{\n\t\t\t\tbreak;\n\t\t\t}", "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 && j != 0 && j != b-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\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 && j != 0 && j != b-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\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 && j != 0 && j != b-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\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 && j != 0 && j != b-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 < b", "j", "b", "j++", "j++", "j", "{\n\t\t\t\t\tif(i != 0 && i != a - 1 && j != 0 && j != b-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\tif(i != 0 && i != a - 1 && j != 0 && j != b-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 != a - 1 && j != 0 && j != b-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 != 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\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\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint[] input = new int[n];\n//\t\tlong sum = 0;\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n//\t\t\tsum += input[i];\n//\t\t}\n//\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n\t\twhile(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\tif(a == 0 && b == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\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 && j != 0 && j != b-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\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}\n\n}", "public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\tint[] input = new int[n];\n//\t\tlong sum = 0;\n//\t\tfor(int i = 0; i < n; i++){\n//\t\t\tinput[i] = Integer.parseInt(tmpArray[i]);\n//\t\t\tsum += input[i];\n//\t\t}\n//\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n\t\twhile(true){\n\t\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(tmpArray[0]);\n\t\t\tint b = Integer.parseInt(tmpArray[1]);\n\t\t\tif(a == 0 && b == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\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 && j != 0 && j != b-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\tSystem.out.println();\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { /** * @param args * @throws IOException * @throws NumberFormatException */ public static void main(String[] args) throws NumberFormatException, IOException { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // String[] tmpArray = br.readLine().split(" "); // int n = Integer.parseInt(br.readLine()); // int b = Integer.parseInt(tmpArray[1]); // int c = Integer.parseInt(tmpArray[2]); // int y = Integer.parseInt(tmpArray[3]); // int r = Integer.parseInt(tmpArray[4]); // String[] tmpArray = br.readLine().split(" "); // int[] input = new int[n]; // long sum = 0; // for(int i = 0; i < n; i++){ // input[i] = Integer.parseInt(tmpArray[i]); // sum += input[i]; // } // // Arrays.sort(input); // System.out.printf("%d %d %d\n", input[0], input[input.length - 1], sum); // while(true){ String[] tmpArray = br.readLine().split(" "); int a = Integer.parseInt(tmpArray[0]); int b = Integer.parseInt(tmpArray[1]); 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 && j != 0 && j != b-1){ System.out.print("."); } else{ System.out.print("#"); } } System.out.println(); } System.out.println(); } // int[] array = new int[3]; // array[0] = a; array[1] = b; array[2] = c; // // Arrays.sort(array); // System.out.printf("%d %d %d\n", array[0], array[1], array[2]); /* if(a < b && b < c){ System.out.println("Yes"); } else{ System.out.println("No"); }*/ } }
[ 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, 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, 13, 17, 2, 13, 2, 13, 17, 30, 0, 13, 2, 13, 17, 14, 2, 2, 13, 17, 2, 13, 2, 13, 17, 30, 0, 13, 2, 13, 17, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 117, 5 ], [ 117, 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 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 54, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 54, 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 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 70, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 37, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 14, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 98, 106 ], [ 106, 107 ], [ 14, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 6, 114 ], [ 114, 115 ], [ 0, 116 ], [ 116, 117 ], [ 116, 118 ] ]
[ "import java.util.Scanner;\n\n/**\n *\n * @author lenovo\n */\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n while (true) {\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n for (int j = 0; j < h; j++) {\n String s = \"\";\n for (int i = 0; i < w; i++) {\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }\n System.out.println(s);\n\n }\n if (h == 0 || w == 0) {\n break;\n }\n System.out.print(\"\\n\");\n\n }\n\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n while (true) {\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n for (int j = 0; j < h; j++) {\n String s = \"\";\n for (int i = 0; i < w; i++) {\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }\n System.out.println(s);\n\n }\n if (h == 0 || w == 0) {\n break;\n }\n System.out.print(\"\\n\");\n\n }\n\n }\n\n}", "Main", "public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n while (true) {\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n for (int j = 0; j < h; j++) {\n String s = \"\";\n for (int i = 0; i < w; i++) {\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }\n System.out.println(s);\n\n }\n if (h == 0 || w == 0) {\n break;\n }\n System.out.print(\"\\n\");\n\n }\n\n }", "main", "{\n\n Scanner scanner = new Scanner(System.in);\n while (true) {\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n for (int j = 0; j < h; j++) {\n String s = \"\";\n for (int i = 0; i < w; i++) {\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }\n System.out.println(s);\n\n }\n if (h == 0 || w == 0) {\n break;\n }\n System.out.print(\"\\n\");\n\n }\n\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while (true) {\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n for (int j = 0; j < h; j++) {\n String s = \"\";\n for (int i = 0; i < w; i++) {\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }\n System.out.println(s);\n\n }\n if (h == 0 || w == 0) {\n break;\n }\n System.out.print(\"\\n\");\n\n }", "true", "{\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n for (int j = 0; j < h; j++) {\n String s = \"\";\n for (int i = 0; i < w; i++) {\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }\n System.out.println(s);\n\n }\n if (h == 0 || w == 0) {\n break;\n }\n System.out.print(\"\\n\");\n\n }", "int h = scanner.nextInt();", "h", "scanner.nextInt()", "scanner.nextInt", "scanner", "int w = scanner.nextInt();", "w", "scanner.nextInt()", "scanner.nextInt", "scanner", "for (int j = 0; j < h; j++) {\n String s = \"\";\n for (int i = 0; i < w; i++) {\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }\n System.out.println(s);\n\n }", "int j = 0;", "int j = 0;", "j", "0", "j < h", "j", "h", "j++", "j++", "j", "{\n String s = \"\";\n for (int i = 0; i < w; i++) {\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }\n System.out.println(s);\n\n }", "{\n String s = \"\";\n for (int i = 0; i < w; i++) {\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }\n System.out.println(s);\n\n }", "String s = \"\";", "s", "\"\"", "for (int i = 0; i < w; i++) {\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }", "int i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "{\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }", "{\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }", "if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }", "j == 0 || j == h - 1", "j == 0", "j", "0", "j == h - 1", "j", "h - 1", "h", "1", "{\n s = s + \"#\";\n }", "s = s + \"#\"", "s", "s + \"#\"", "s", "\"#\"", "if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }", "i == 0 || i == w - 1", "i == 0", "i", "0", "i == w - 1", "i", "w - 1", "w", "1", "{\n s = s + \"#\";\n }", "s = s + \"#\"", "s", "s + \"#\"", "s", "\"#\"", "{\n s = s + \".\";\n\n }", "s = s + \".\"", "s", "s + \".\"", "s", "\".\"", "System.out.println(s)", "System.out.println", "System.out", "System", "System.out", "s", "if (h == 0 || w == 0) {\n break;\n }", "h == 0 || w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "{\n break;\n }", "break;", "System.out.print(\"\\n\")", "System.out.print", "System.out", "System", "System.out", "\"\\n\"", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n while (true) {\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n for (int j = 0; j < h; j++) {\n String s = \"\";\n for (int i = 0; i < w; i++) {\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }\n System.out.println(s);\n\n }\n if (h == 0 || w == 0) {\n break;\n }\n System.out.print(\"\\n\");\n\n }\n\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner scanner = new Scanner(System.in);\n while (true) {\n int h = scanner.nextInt();\n int w = scanner.nextInt();\n for (int j = 0; j < h; j++) {\n String s = \"\";\n for (int i = 0; i < w; i++) {\n if (j == 0 || j == h - 1) {\n s = s + \"#\";\n } else if (i == 0 || i == w - 1) {\n s = s + \"#\";\n } else {\n s = s + \".\";\n\n }\n\n }\n System.out.println(s);\n\n }\n if (h == 0 || w == 0) {\n break;\n }\n System.out.print(\"\\n\");\n\n }\n\n }\n\n}", "Main" ]
import java.util.Scanner; /** * * @author lenovo */ public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); while (true) { int h = scanner.nextInt(); int w = scanner.nextInt(); for (int j = 0; j < h; j++) { String s = ""; for (int i = 0; i < w; i++) { if (j == 0 || j == h - 1) { s = s + "#"; } else if (i == 0 || i == w - 1) { s = s + "#"; } else { s = s + "."; } } System.out.println(s); } if (h == 0 || w == 0) { break; } 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, 30, 41, 13, 41, 13, 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, 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 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 38, 39 ], [ 35, 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 ], [ 14, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 6, 110 ], [ 110, 111 ] ]
[ "import java.util.Scanner;\nclass Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile(true){ \n\t\tint H = scanner.nextInt();\n\t\tint W = scanner.nextInt();\n\t\t\n\t\tif ( H == 0 && W == 0 ){\n\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint smallh;\n\t\t\t\tint smallw;\n\t\t\t\t\n\t\t\t\tfor( smallh = 0; smallh < H; smallh++ ) {\n\t\t\t\t\t\n\t\t\t\t\tfor( smallw = 0; smallw < W; smallw++ ) {\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile(true){ \n\t\tint H = scanner.nextInt();\n\t\tint W = scanner.nextInt();\n\t\t\n\t\tif ( H == 0 && W == 0 ){\n\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint smallh;\n\t\t\t\tint smallw;\n\t\t\t\t\n\t\t\t\tfor( smallh = 0; smallh < H; smallh++ ) {\n\t\t\t\t\t\n\t\t\t\t\tfor( smallw = 0; smallw < W; smallw++ ) {\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t}\t\n\t\t}\n\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\t\n\t\twhile(true){ \n\t\tint H = scanner.nextInt();\n\t\tint W = scanner.nextInt();\n\t\t\n\t\tif ( H == 0 && W == 0 ){\n\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint smallh;\n\t\t\t\tint smallw;\n\t\t\t\t\n\t\t\t\tfor( smallh = 0; smallh < H; smallh++ ) {\n\t\t\t\t\t\n\t\t\t\t\tfor( smallw = 0; smallw < W; smallw++ ) {\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\twhile(true){ \n\t\tint H = scanner.nextInt();\n\t\tint W = scanner.nextInt();\n\t\t\n\t\tif ( H == 0 && W == 0 ){\n\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint smallh;\n\t\t\t\tint smallw;\n\t\t\t\t\n\t\t\t\tfor( smallh = 0; smallh < H; smallh++ ) {\n\t\t\t\t\t\n\t\t\t\t\tfor( smallw = 0; smallw < W; smallw++ ) {\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "while(true){ \n\t\tint H = scanner.nextInt();\n\t\tint W = scanner.nextInt();\n\t\t\n\t\tif ( H == 0 && W == 0 ){\n\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint smallh;\n\t\t\t\tint smallw;\n\t\t\t\t\n\t\t\t\tfor( smallh = 0; smallh < H; smallh++ ) {\n\t\t\t\t\t\n\t\t\t\t\tfor( smallw = 0; smallw < W; smallw++ ) {\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println();\n\t\t}", "true", "{ \n\t\tint H = scanner.nextInt();\n\t\tint W = scanner.nextInt();\n\t\t\n\t\tif ( H == 0 && W == 0 ){\n\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint smallh;\n\t\t\t\tint smallw;\n\t\t\t\t\n\t\t\t\tfor( smallh = 0; smallh < H; smallh++ ) {\n\t\t\t\t\t\n\t\t\t\t\tfor( smallw = 0; smallw < W; smallw++ ) {\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t}\t\n\t\t}\n\t\tSystem.out.println();\n\t\t}", "int H = scanner.nextInt();", "H", "scanner.nextInt()", "scanner.nextInt", "scanner", "int W = scanner.nextInt();", "W", "scanner.nextInt()", "scanner.nextInt", "scanner", "if ( H == 0 && W == 0 ){\n\t\t\tbreak;\n\t\t\t}\n\t\t\telse{\n\t\t\t\tint smallh;\n\t\t\t\tint smallw;\n\t\t\t\t\n\t\t\t\tfor( smallh = 0; smallh < H; smallh++ ) {\n\t\t\t\t\t\n\t\t\t\t\tfor( smallw = 0; smallw < W; smallw++ ) {\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t}\t\n\t\t}", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n\t\t\tbreak;\n\t\t\t}", "break;", "{\n\t\t\t\tint smallh;\n\t\t\t\tint smallw;\n\t\t\t\t\n\t\t\t\tfor( smallh = 0; smallh < H; smallh++ ) {\n\t\t\t\t\t\n\t\t\t\t\tfor( smallw = 0; smallw < W; smallw++ ) {\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t}\t\n\t\t}", "int smallh;", "smallh", "int smallw;", "smallw", "for( smallh = 0; smallh < H; smallh++ ) {\n\t\t\t\t\t\n\t\t\t\t\tfor( smallw = 0; smallw < W; smallw++ ) {\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t}", "smallh = 0;", "smallh = 0", "smallh", "0", "smallh < H", "smallh", "H", "smallh++", "smallh++", "smallh", "{\n\t\t\t\t\t\n\t\t\t\t\tfor( smallw = 0; smallw < W; smallw++ ) {\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t}", "{\n\t\t\t\t\t\n\t\t\t\t\tfor( smallw = 0; smallw < W; smallw++ ) {\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }\n\t\t\t\t System.out.println();\n\t\t\t}", "for( smallw = 0; smallw < W; smallw++ ) {\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }", "smallw = 0;", "smallw = 0", "smallw", "0", "smallw < W", "smallw", "W", "smallw++", "smallw++", "smallw", "{\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }", "{\n\t\t\t\t\t\tif(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}\t\t\t\t\t\n\t\t\t\t }", "if(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t\t\t}", "smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1", "smallh == 0", "smallw == 0 || smallw == W-1 || smallh == 0 || smallh == H-1", "smallw == 0", "smallw", "0", "smallw == W-1", "smallw", "W-1", "W", "1", "smallh == 0", "smallh", "0", "smallh == H-1", "smallh", "H-1", "H", "1", "{\n\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\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 scanner = new Scanner(System.in); while(true){ int H = scanner.nextInt(); int W = scanner.nextInt(); if ( H == 0 && W == 0 ){ break; } else{ int smallh; int smallw; for( smallh = 0; smallh < H; smallh++ ) { for( smallw = 0; smallw < W; smallw++ ) { if(smallw == 0 || smallw == W-1 || smallh == 0 || smallh == 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, 41, 13, 41, 13, 17, 41, 13, 17, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 0, 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, 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, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 138, 8 ], [ 138, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 11, 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 ], [ 33, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 33, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 33, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 33, 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 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 95, 94 ], [ 102, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 102, 102 ], [ 102, 103 ], [ 102, 104 ], [ 95, 105 ], [ 105, 106 ], [ 105, 107 ], [ 92, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 92, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 78, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 33, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 11, 132 ], [ 132, 133 ], [ 133, 134 ], [ 9, 135 ], [ 135, 136 ], [ 0, 137 ], [ 137, 138 ], [ 137, 139 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\npublic class Main{\n\tpublic static void main(String[]args)throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint H=0;\n\t\tint W=0;\n\t\tString[] arr;\n\t\twhile((str=br.readLine())!=null){\n\t\t\tarr=str.split(\" \");\n\t\t\tH=Integer.parseInt(arr[0]);\n\t\t\tW=Integer.parseInt(arr[1]);\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\tfor(int j=1;j<=W;j++){\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\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\t\t}\n\t\tbr.close();\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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint H=0;\n\t\tint W=0;\n\t\tString[] arr;\n\t\twhile((str=br.readLine())!=null){\n\t\t\tarr=str.split(\" \");\n\t\t\tH=Integer.parseInt(arr[0]);\n\t\t\tW=Integer.parseInt(arr[1]);\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\tfor(int j=1;j<=W;j++){\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\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\t\t}\n\t\tbr.close();\n\t}\n}", "Main", "public static void main(String[]args)throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint H=0;\n\t\tint W=0;\n\t\tString[] arr;\n\t\twhile((str=br.readLine())!=null){\n\t\t\tarr=str.split(\" \");\n\t\t\tH=Integer.parseInt(arr[0]);\n\t\t\tW=Integer.parseInt(arr[1]);\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\tfor(int j=1;j<=W;j++){\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\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\t\t}\n\t\tbr.close();\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint H=0;\n\t\tint W=0;\n\t\tString[] arr;\n\t\twhile((str=br.readLine())!=null){\n\t\t\tarr=str.split(\" \");\n\t\t\tH=Integer.parseInt(arr[0]);\n\t\t\tW=Integer.parseInt(arr[1]);\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\tfor(int j=1;j<=W;j++){\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\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\t\t}\n\t\tbr.close();\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str;", "str", "int H=0;", "H", "0", "int W=0;", "W", "0", "String[] arr;", "arr", "while((str=br.readLine())!=null){\n\t\t\tarr=str.split(\" \");\n\t\t\tH=Integer.parseInt(arr[0]);\n\t\t\tW=Integer.parseInt(arr[1]);\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\tfor(int j=1;j<=W;j++){\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\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\t\t}", "(str=br.readLine())!=null", "(str=br.readLine())", "str", "br.readLine()", "br.readLine", "br", "null", "{\n\t\t\tarr=str.split(\" \");\n\t\t\tH=Integer.parseInt(arr[0]);\n\t\t\tW=Integer.parseInt(arr[1]);\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\tfor(int j=1;j<=W;j++){\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\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\t\t}", "arr=str.split(\" \")", "arr", "str.split(\" \")", "str.split", "str", "\" \"", "H=Integer.parseInt(arr[0])", "H", "Integer.parseInt(arr[0])", "Integer.parseInt", "Integer", "arr[0]", "arr", "0", "W=Integer.parseInt(arr[1])", "W", "Integer.parseInt(arr[1])", "Integer.parseInt", "Integer", "arr[1]", "arr", "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=1;i<=H;i++){\n\t\t\t\tfor(int j=1;j<=W;j++){\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "int i=1;", "int i=1;", "i", "1", "i<=H", "i", "H", "i++", "i++", "i", "{\n\t\t\t\tfor(int j=1;j<=W;j++){\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.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=1;j<=W;j++){\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}", "for(int j=1;j<=W;j++){\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}", "int j=1;", "int j=1;", "j", "1", "j<=W", "j", "W", "j++", "j++", "j", "{\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\n\t\t\t\t}", "if((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");", "(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.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\"", "br.close()", "br.close", "br", "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\tString str;\n\t\tint H=0;\n\t\tint W=0;\n\t\tString[] arr;\n\t\twhile((str=br.readLine())!=null){\n\t\t\tarr=str.split(\" \");\n\t\t\tH=Integer.parseInt(arr[0]);\n\t\t\tW=Integer.parseInt(arr[1]);\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\tfor(int j=1;j<=W;j++){\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\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\t\t}\n\t\tbr.close();\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\tString str;\n\t\tint H=0;\n\t\tint W=0;\n\t\tString[] arr;\n\t\twhile((str=br.readLine())!=null){\n\t\t\tarr=str.split(\" \");\n\t\t\tH=Integer.parseInt(arr[0]);\n\t\t\tW=Integer.parseInt(arr[1]);\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\tfor(int j=1;j<=W;j++){\n\t\t\t\t\tif((i==1)||(i==H)||(j==1)||(j==W)) System.out.print(\"#\");\n\t\t\t\t\telse System.out.print(\".\");\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\t\t}\n\t\tbr.close();\n\t}\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)); String str; int H=0; int W=0; String[] arr; while((str=br.readLine())!=null){ arr=str.split(" "); H=Integer.parseInt(arr[0]); W=Integer.parseInt(arr[1]); 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.print("\n"); } System.out.print("\n"); } br.close(); } }
[ 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, 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 ], [ 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 ], [ 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 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 51, 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 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 51, 81 ], [ 81, 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 ], [ 95, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 50, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 18, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 6, 129 ], [ 129, 130 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint H, W;\n\n\t\twhile (true) {\n\t\t\tH = scanner.nextInt();\n\t\t\tW = scanner.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\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 i2 = 0; i2 < W; i2++) {\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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint H, W;\n\n\t\twhile (true) {\n\t\t\tH = scanner.nextInt();\n\t\t\tW = scanner.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\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 i2 = 0; i2 < W; i2++) {\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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\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\tint H, W;\n\n\t\twhile (true) {\n\t\t\tH = scanner.nextInt();\n\t\t\tW = scanner.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\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 i2 = 0; i2 < W; i2++) {\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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint H, W;\n\n\t\twhile (true) {\n\t\t\tH = scanner.nextInt();\n\t\t\tW = scanner.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\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 i2 = 0; i2 < W; i2++) {\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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int H", "H", "W;", "W", "while (true) {\n\t\t\tH = scanner.nextInt();\n\t\t\tW = scanner.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\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 i2 = 0; i2 < W; i2++) {\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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tH = scanner.nextInt();\n\t\t\tW = scanner.nextInt();\n\n\t\t\tif (H == 0 && W == 0)\n\t\t\t\tbreak;\n\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 i2 = 0; i2 < W; i2++) {\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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\n\t\t\tSystem.out.println();\n\t\t}", "H = scanner.nextInt()", "H", "scanner.nextInt()", "scanner.nextInt", "scanner", "W = scanner.nextInt()", "W", "scanner.nextInt()", "scanner.nextInt", "scanner", "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\tif (i == 0 || i == H - 1) {\n\t\t\t\t\tfor (int i2 = 0; i2 < W; i2++) {\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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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\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 i2 = 0; i2 < W; i2++) {\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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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\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 i2 = 0; i2 < W; i2++) {\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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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\n\t\t\t\tSystem.out.println();\n\t\t\t}", "if (i == 0 || i == H - 1) {\n\t\t\t\t\tfor (int i2 = 0; i2 < W; i2++) {\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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "for (int i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}", "int i2 = 0;", "int i2 = 0;", "i2", "0", "i2 < W", "i2", "W", "i2++", "i2++", "i2", "{\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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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 i2 = 0; i2 < W; i2++) {\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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 i2 = 0;", "int i2 = 0;", "i2", "0", "i2 < W", "i2", "W", "i2++", "i2++", "i2", "{\n\t\t\t\t\t\tif (i2 == 0 || i2 == 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 (i2 == 0 || i2 == 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 (i2 == 0 || i2 == 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}", "i2 == 0 || i2 == W - 1", "i2 == 0", "i2", "0", "i2 == W - 1", "i2", "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; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int H, W; while (true) { H = scanner.nextInt(); W = scanner.nextInt(); if (H == 0 && W == 0) break; for (int i = 0; i < H; i++) { if (i == 0 || i == H - 1) { for (int i2 = 0; i2 < W; i2++) { System.out.print("#"); } } else { for (int 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, 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, 14, 2, 2, 13, 17, 2, 13, 17, 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, 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, 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 ], [ 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 ], [ 22, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 22, 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 ], [ 22, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 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 Scanner sc = new Scanner(System.in);\n long a,b,i,j;\n\t\twhile(true){\n a = sc.nextInt();\n b = sc.nextInt();\n if(a==0&&b==0)break;\n \n\t\tfor(i=0;i<a;i++){\n for(j=0;j<b;j++){\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n } \n System.out.println();\n }\n System.out.println();\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n long a,b,i,j;\n\t\twhile(true){\n a = sc.nextInt();\n b = sc.nextInt();\n if(a==0&&b==0)break;\n \n\t\tfor(i=0;i<a;i++){\n for(j=0;j<b;j++){\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\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 long a,b,i,j;\n\t\twhile(true){\n a = sc.nextInt();\n b = sc.nextInt();\n if(a==0&&b==0)break;\n \n\t\tfor(i=0;i<a;i++){\n for(j=0;j<b;j++){\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n } \n System.out.println();\n }\n System.out.println();\n }\n }", "main", "{\n \n Scanner sc = new Scanner(System.in);\n long a,b,i,j;\n\t\twhile(true){\n a = sc.nextInt();\n b = sc.nextInt();\n if(a==0&&b==0)break;\n \n\t\tfor(i=0;i<a;i++){\n for(j=0;j<b;j++){\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n } \n System.out.println();\n }\n System.out.println();\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "long a", "a", "b", "b", "i", "i", "j;", "j", "while(true){\n a = sc.nextInt();\n b = sc.nextInt();\n if(a==0&&b==0)break;\n \n\t\tfor(i=0;i<a;i++){\n for(j=0;j<b;j++){\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n } \n System.out.println();\n }\n System.out.println();\n }", "true", "{\n a = sc.nextInt();\n b = sc.nextInt();\n if(a==0&&b==0)break;\n \n\t\tfor(i=0;i<a;i++){\n for(j=0;j<b;j++){\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n } \n System.out.println();\n }\n System.out.println();\n }", "a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b = sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "if(a==0&&b==0)break;", "a==0&&b==0", "a==0", "a", "0", "b==0", "b", "0", "break;", "for(i=0;i<a;i++){\n for(j=0;j<b;j++){\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n } \n System.out.println();\n }", "i=0;", "i=0", "i", "0", "i<a", "i", "a", "i++", "i++", "i", "{\n for(j=0;j<b;j++){\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n } \n System.out.println();\n }", "{\n for(j=0;j<b;j++){\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n } \n System.out.println();\n }", "for(j=0;j<b;j++){\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n }", "j=0;", "j=0", "j", "0", "j<b", "j", "b", "j++", "j++", "j", "{\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n }", "{\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n }", "if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");", "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", "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 \n Scanner sc = new Scanner(System.in);\n long a,b,i,j;\n\t\twhile(true){\n a = sc.nextInt();\n b = sc.nextInt();\n if(a==0&&b==0)break;\n \n\t\tfor(i=0;i<a;i++){\n for(j=0;j<b;j++){\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n } \n System.out.println();\n }\n System.out.println();\n }\n }\n}", "public class Main{\n\tpublic static void main(String[] args){\n \n Scanner sc = new Scanner(System.in);\n long a,b,i,j;\n\t\twhile(true){\n a = sc.nextInt();\n b = sc.nextInt();\n if(a==0&&b==0)break;\n \n\t\tfor(i=0;i<a;i++){\n for(j=0;j<b;j++){\n if(i==0||i==a-1||j==0||j==b-1)System.out.print(\"#\");\n else System.out.print(\".\");\n } \n System.out.println();\n }\n System.out.println();\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); long a,b,i,j; while(true){ a = sc.nextInt(); b = sc.nextInt(); if(a==0&&b==0)break; for(i=0;i<a;i++){ for(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, 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, 4, 13, 17, 13, 4, 13, 11, 1, 41, 13, 2, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 13, 17, 4, 13, 17, 2, 13, 17, 4, 13, 17, 4, 13, 4, 13, 17, 13, 4, 13, 4, 13, 23, 13, 12, 13, 30, 42, 2, 40, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 4, 13, 13, 17, 23, 13, 12, 13, 30, 4, 18, 18, 13, 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 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 34, 37 ], [ 14, 38 ], [ 38, 39 ], [ 14, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 40, 47 ], [ 47, 48 ], [ 47, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 40, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 54, 64 ], [ 64, 65 ], [ 64, 66 ], [ 54, 67 ], [ 67, 68 ], [ 14, 69 ], [ 69, 70 ], [ 69, 71 ], [ 69, 72 ], [ 14, 73 ], [ 73, 74 ], [ 14, 75 ], [ 75, 76 ], [ 6, 77 ], [ 77, 78 ], [ 115, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 82, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 79, 93 ], [ 93, 94 ], [ 79, 95 ], [ 95, 96 ], [ 115, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 100, 103 ], [ 97, 104 ], [ 104, 105 ], [ 115, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "import java.util.*;\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)\n break;\n\n p('#', W);\n pln();\n for (int n = H - 2; n > 0; n--) {\n p('#');\n p('.', W - 2);\n p('#');\n pln();\n }\n p('#', W);\n pln();\n pln();\n }\n }\n private static void p(char c, int n) {\n while (n-- > 0)\n System.out.print(c);\n }\n private static void p(char c) {\n p(c, 1);\n }\n private static void pln() {\n System.out.println();\n }\n}", "import java.util.*;", "util.*", "java", "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)\n break;\n\n p('#', W);\n pln();\n for (int n = H - 2; n > 0; n--) {\n p('#');\n p('.', W - 2);\n p('#');\n pln();\n }\n p('#', W);\n pln();\n pln();\n }\n }\n private static void p(char c, int n) {\n while (n-- > 0)\n System.out.print(c);\n }\n private static void p(char c) {\n p(c, 1);\n }\n private static void pln() {\n System.out.println();\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)\n break;\n\n p('#', W);\n pln();\n for (int n = H - 2; n > 0; n--) {\n p('#');\n p('.', W - 2);\n p('#');\n pln();\n }\n p('#', W);\n pln();\n pln();\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 == 0 && W == 0)\n break;\n\n p('#', W);\n pln();\n for (int n = H - 2; n > 0; n--) {\n p('#');\n p('.', W - 2);\n p('#');\n pln();\n }\n p('#', W);\n pln();\n pln();\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 == 0 && W == 0)\n break;\n\n p('#', W);\n pln();\n for (int n = H - 2; n > 0; n--) {\n p('#');\n p('.', W - 2);\n p('#');\n pln();\n }\n p('#', W);\n pln();\n pln();\n }", "true", "{\n int H = sc.nextInt();\n int W = sc.nextInt();\n\n if (H == 0 && W == 0)\n break;\n\n p('#', W);\n pln();\n for (int n = H - 2; n > 0; n--) {\n p('#');\n p('.', W - 2);\n p('#');\n pln();\n }\n p('#', W);\n pln();\n pln();\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;", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "break;", "p('#', W)", "p", "'#'", "W", "pln()", "pln", "for (int n = H - 2; n > 0; n--) {\n p('#');\n p('.', W - 2);\n p('#');\n pln();\n }", "int n = H - 2;", "int n = H - 2;", "n", "H - 2", "H", "2", "n > 0", "n", "0", "n--", "n--", "n", "{\n p('#');\n p('.', W - 2);\n p('#');\n pln();\n }", "{\n p('#');\n p('.', W - 2);\n p('#');\n pln();\n }", "p('#')", "p", "'#'", "p('.', W - 2)", "p", "'.'", "W - 2", "W", "2", "p('#')", "p", "'#'", "pln()", "pln", "p('#', W)", "p", "'#'", "W", "pln()", "pln", "pln()", "pln", "String[] args", "args", "private static void p(char c, int n) {\n while (n-- > 0)\n System.out.print(c);\n }", "p", "{\n while (n-- > 0)\n System.out.print(c);\n }", "while (n-- > 0)\n System.out.print(c);", "n-- > 0", "n--", "n", "0", "System.out.print(c)", "System.out.print", "System.out", "System", "System.out", "c", "char c", "c", "int n", "n", "private static void p(char c) {\n p(c, 1);\n }", "p", "{\n p(c, 1);\n }", "p(c, 1)", "p", "c", "1", "char c", "c", "private static void pln() {\n System.out.println();\n }", "pln", "{\n System.out.println();\n }", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "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)\n break;\n\n p('#', W);\n pln();\n for (int n = H - 2; n > 0; n--) {\n p('#');\n p('.', W - 2);\n p('#');\n pln();\n }\n p('#', W);\n pln();\n pln();\n }\n }\n private static void p(char c, int n) {\n while (n-- > 0)\n System.out.print(c);\n }\n private static void p(char c) {\n p(c, 1);\n }\n private static void pln() {\n System.out.println();\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)\n break;\n\n p('#', W);\n pln();\n for (int n = H - 2; n > 0; n--) {\n p('#');\n p('.', W - 2);\n p('#');\n pln();\n }\n p('#', W);\n pln();\n pln();\n }\n }\n private static void p(char c, int n) {\n while (n-- > 0)\n System.out.print(c);\n }\n private static void p(char c) {\n p(c, 1);\n }\n private static void pln() {\n System.out.println();\n }\n}", "Main" ]
import java.util.*; 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; p('#', W); pln(); for (int n = H - 2; n > 0; n--) { p('#'); p('.', W - 2); p('#'); pln(); } p('#', W); pln(); pln(); } } private static void p(char c, int n) { while (n-- > 0) System.out.print(c); } private static void p(char c) { p(c, 1); } private static void pln() { System.out.println(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 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, 0, 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, 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, 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, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 149, 5 ], [ 149, 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 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 20, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 20, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 20, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 65, 75 ], [ 75, 76 ], [ 76, 77 ], [ 65, 78 ], [ 79, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 79, 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 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 79, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 79, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 20, 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 ], [ 20, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 8, 143 ], [ 143, 144 ], [ 144, 145 ], [ 6, 146 ], [ 146, 147 ], [ 0, 148 ], [ 148, 149 ], [ 148, 150 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint hei, wid, cnt_wid;\n\n\t\twhile(true){\n\t\t\thei = scan.nextInt();//??????????????????\n\t\t\twid = scan.nextInt();//?¨????????????????\n\t\t\tif(hei == 0 && wid == 0){//???????????????0???0????????\\???????????????????????????\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor(int cnt_hei = 0; cnt_hei < hei - 2; cnt_hei++){//???????????¨???????????\\??????????????????¨???????????????????\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tfor(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n scan.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint hei, wid, cnt_wid;\n\n\t\twhile(true){\n\t\t\thei = scan.nextInt();//??????????????????\n\t\t\twid = scan.nextInt();//?¨????????????????\n\t\t\tif(hei == 0 && wid == 0){//???????????????0???0????????\\???????????????????????????\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor(int cnt_hei = 0; cnt_hei < hei - 2; cnt_hei++){//???????????¨???????????\\??????????????????¨???????????????????\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tfor(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n scan.close();\n }\n}", "Main", "public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint hei, wid, cnt_wid;\n\n\t\twhile(true){\n\t\t\thei = scan.nextInt();//??????????????????\n\t\t\twid = scan.nextInt();//?¨????????????????\n\t\t\tif(hei == 0 && wid == 0){//???????????????0???0????????\\???????????????????????????\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor(int cnt_hei = 0; cnt_hei < hei - 2; cnt_hei++){//???????????¨???????????\\??????????????????¨???????????????????\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tfor(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n scan.close();\n }", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint hei, wid, cnt_wid;\n\n\t\twhile(true){\n\t\t\thei = scan.nextInt();//??????????????????\n\t\t\twid = scan.nextInt();//?¨????????????????\n\t\t\tif(hei == 0 && wid == 0){//???????????????0???0????????\\???????????????????????????\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor(int cnt_hei = 0; cnt_hei < hei - 2; cnt_hei++){//???????????¨???????????\\??????????????????¨???????????????????\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tfor(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n scan.close();\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int hei", "hei", "wid", "wid", "cnt_wid;", "cnt_wid", "while(true){\n\t\t\thei = scan.nextInt();//??????????????????\n\t\t\twid = scan.nextInt();//?¨????????????????\n\t\t\tif(hei == 0 && wid == 0){//???????????????0???0????????\\???????????????????????????\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor(int cnt_hei = 0; cnt_hei < hei - 2; cnt_hei++){//???????????¨???????????\\??????????????????¨???????????????????\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tfor(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}", "true", "{\n\t\t\thei = scan.nextInt();//??????????????????\n\t\t\twid = scan.nextInt();//?¨????????????????\n\t\t\tif(hei == 0 && wid == 0){//???????????????0???0????????\\???????????????????????????\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor(int cnt_hei = 0; cnt_hei < hei - 2; cnt_hei++){//???????????¨???????????\\??????????????????¨???????????????????\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tfor(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}", "hei = scan.nextInt()", "hei", "scan.nextInt()", "scan.nextInt", "scan", "wid = scan.nextInt()", "wid", "scan.nextInt()", "scan.nextInt", "scan", "if(hei == 0 && wid == 0){//???????????????0???0????????\\???????????????????????????\n\t\t\t\tbreak;\n\t\t\t}", "hei == 0 && wid == 0", "hei == 0", "hei", "0", "wid == 0", "wid", "0", "{//???????????????0???0????????\\???????????????????????????\n\t\t\t\tbreak;\n\t\t\t}", "break;", "for(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}", "cnt_wid = 0;", "cnt_wid = 0", "cnt_wid", "0", "cnt_wid < wid", "cnt_wid", "wid", "cnt_wid++", "cnt_wid++", "cnt_wid", "{//????????????????????????\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 cnt_hei = 0; cnt_hei < hei - 2; cnt_hei++){//???????????¨???????????\\??????????????????¨???????????????????\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tfor(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}", "int cnt_hei = 0;", "int cnt_hei = 0;", "cnt_hei", "0", "cnt_hei < hei - 2", "cnt_hei", "hei - 2", "hei", "2", "cnt_hei++", "cnt_hei++", "cnt_hei", "{//???????????¨???????????\\??????????????????¨???????????????????\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tfor(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}", "{//???????????¨???????????\\??????????????????¨???????????????????\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tfor(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}", "System.out.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "for(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}", "cnt_wid = 0;", "cnt_wid = 0", "cnt_wid", "0", "cnt_wid < wid - 2", "cnt_wid", "wid - 2", "wid", "2", "cnt_wid++", "cnt_wid++", "cnt_wid", "{//?¨????-?????????????????????\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.print(\"#\")", "System.out.print", "System.out", "System", "System.out", "\"#\"", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "for(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}", "cnt_wid = 0;", "cnt_wid = 0", "cnt_wid", "0", "cnt_wid < wid", "cnt_wid", "wid", "cnt_wid++", "cnt_wid++", "cnt_wid", "{//????????????????????????\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(\"\\n\")", "System.out.println", "System.out", "System", "System.out", "\"\\n\"", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n\n\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint hei, wid, cnt_wid;\n\n\t\twhile(true){\n\t\t\thei = scan.nextInt();//??????????????????\n\t\t\twid = scan.nextInt();//?¨????????????????\n\t\t\tif(hei == 0 && wid == 0){//???????????????0???0????????\\???????????????????????????\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor(int cnt_hei = 0; cnt_hei < hei - 2; cnt_hei++){//???????????¨???????????\\??????????????????¨???????????????????\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tfor(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n scan.close();\n }\n}", "public class Main {\n\n\n public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint hei, wid, cnt_wid;\n\n\t\twhile(true){\n\t\t\thei = scan.nextInt();//??????????????????\n\t\t\twid = scan.nextInt();//?¨????????????????\n\t\t\tif(hei == 0 && wid == 0){//???????????????0???0????????\\???????????????????????????\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t\tfor(int cnt_hei = 0; cnt_hei < hei - 2; cnt_hei++){//???????????¨???????????\\??????????????????¨???????????????????\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tfor(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-?????????????????????\n\t\t\t\t\tSystem.out.print(\".\");\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"#\");//???????????????\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\tfor(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//????????????????????????\n\t\t\t\tSystem.out.print(\"#\");\n\t\t\t}\n\t\t\tSystem.out.println(\"\\n\");\n\t\t}\n scan.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int hei, wid, cnt_wid; while(true){ hei = scan.nextInt();//?????????????????? wid = scan.nextInt();//?¨???????????????? if(hei == 0 && wid == 0){//???????????????0???0????????\??????????????????????????? break; } for(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//???????????????????????? System.out.print("#"); } System.out.println(); for(int cnt_hei = 0; cnt_hei < hei - 2; cnt_hei++){//???????????¨???????????\??????????????????¨??????????????????? System.out.print("#");//??????????????? for(cnt_wid = 0; cnt_wid < wid - 2; cnt_wid++){//?¨????-????????????????????? System.out.print("."); } System.out.print("#");//??????????????? System.out.println(); } for(cnt_wid = 0; cnt_wid < wid; cnt_wid++){//???????????????????????? System.out.print("#"); } System.out.println("\n"); } scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 41, 13, 20, 11, 1, 30, 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, 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, 12, 13, 30, 20, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 4, 8 ], [ 8, 9 ], [ 4, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 12, 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 ], [ 19, 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 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 52, 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 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 52, 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 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 96, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 51, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 19, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 4, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 132, 136 ], [ 136, 137 ] ]
[ "import java.util.*;\n\nclass Main{\n\tint a;\n\tint b;\n\tpublic Main(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tif(a==0 || b==0)break;\n\t\t\tfor(int i=0; i<a; i++){\n\t\t\t\tif(i==0 || i==a-1){\n\t\t\t\t\tfor(int k=0; k<b; k++){\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<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\tpublic static void main(String[]args){\n\t\tnew Main();\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main{\n\tint a;\n\tint b;\n\tpublic Main(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tif(a==0 || b==0)break;\n\t\t\tfor(int i=0; i<a; i++){\n\t\t\t\tif(i==0 || i==a-1){\n\t\t\t\t\tfor(int k=0; k<b; k++){\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<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\tpublic static void main(String[]args){\n\t\tnew Main();\n\t}\n}", "Main", "int a;", "a", "int b;", "b", "public Main(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tfor(;;){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tif(a==0 || b==0)break;\n\t\t\tfor(int i=0; i<a; i++){\n\t\t\t\tif(i==0 || i==a-1){\n\t\t\t\t\tfor(int k=0; k<b; k++){\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<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\tfor(;;){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tif(a==0 || b==0)break;\n\t\t\tfor(int i=0; i<a; i++){\n\t\t\t\tif(i==0 || i==a-1){\n\t\t\t\t\tfor(int k=0; k<b; k++){\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<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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)", "for(;;){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tif(a==0 || b==0)break;\n\t\t\tfor(int i=0; i<a; i++){\n\t\t\t\tif(i==0 || i==a-1){\n\t\t\t\t\tfor(int k=0; k<b; k++){\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<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tif(a==0 || b==0)break;\n\t\t\tfor(int i=0; i<a; i++){\n\t\t\t\tif(i==0 || i==a-1){\n\t\t\t\t\tfor(int k=0; k<b; k++){\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<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tif(a==0 || b==0)break;\n\t\t\tfor(int i=0; i<a; i++){\n\t\t\t\tif(i==0 || i==a-1){\n\t\t\t\t\tfor(int k=0; k<b; k++){\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<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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}", "a=scan.nextInt()", "a", "scan.nextInt()", "scan.nextInt", "scan", "b=scan.nextInt()", "b", "scan.nextInt()", "scan.nextInt", "scan", "if(a==0 || b==0)break;", "a==0 || b==0", "a==0", "a", "0", "b==0", "b", "0", "break;", "for(int i=0; i<a; i++){\n\t\t\t\tif(i==0 || i==a-1){\n\t\t\t\t\tfor(int k=0; k<b; k++){\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<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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<a", "i", "a", "i++", "i++", "i", "{\n\t\t\t\tif(i==0 || i==a-1){\n\t\t\t\t\tfor(int k=0; k<b; k++){\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<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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==a-1){\n\t\t\t\t\tfor(int k=0; k<b; k++){\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<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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==a-1){\n\t\t\t\t\tfor(int k=0; k<b; k++){\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<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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==a-1", "i==0", "i", "0", "i==a-1", "i", "a-1", "a", "1", "{\n\t\t\t\t\tfor(int k=0; k<b; k++){\n\t\t\t\t\t\tSystem.out.print(\"#\");\n\t\t\t\t\t}\n\t\t\t\t}", "for(int k=0; k<b; 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<b", "k", "b", "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", "\"#\"", "{\n\t\t\t\t\tfor(int j=0; j<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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<b; j++){\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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<b", "j", "b", "j++", "j++", "j", "{\n\t\t\t\t\t\tif(j==0 || j==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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==b-1){\n\t\t\t\t\t\t\tSystem.out.print(\"#\");\n\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==b-1", "j==0", "j", "0", "j==b-1", "j", "b-1", "b", "1", "{\n\t\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\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", "\"\"", "public static void main(String[]args){\n\t\tnew Main();\n\t}", "main", "{\n\t\tnew Main();\n\t}", "new Main()", "String[]args", "args" ]
import java.util.*; class Main{ int a; int b; public Main(){ Scanner scan = new Scanner(System.in); for(;;){ a=scan.nextInt(); b=scan.nextInt(); if(a==0 || b==0)break; for(int i=0; i<a; i++){ if(i==0 || i==a-1){ for(int k=0; k<b; k++){ System.out.print("#"); } }else{ for(int j=0; j<b; j++){ if(j==0 || j==b-1){ System.out.print("#"); }else{ System.out.print("."); } } } System.out.println(""); } System.out.println(""); } } public static void main(String[]args){ new Main(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 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, 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 ], [ 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 ], [ 25, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 34, 36 ], [ 17, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 42, 43 ], [ 42, 44 ], [ 17, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 17, 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 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 81, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 98, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 98, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 67, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 17, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 6, 134 ], [ 134, 135 ] ]
[ "import java.io.*;\n\nclass Main{\n public static void main(String[] args) throws Exception{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int num = 0;\n\n while(true){\n\n String num1 = br.readLine();\n String[] num2 = num1.split(\" \");\n int H = Integer.parseInt(num2[0]);\n int W = Integer.parseInt(num2[1]);\n\n if(H == 0 && W == 0){\n break;\n }\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.println(\"\");\n }\n System.out.println(\"\");\n }\n }\n}", "import java.io.*;", "io.*", "java", "class Main{\n public static void main(String[] args) throws Exception{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int num = 0;\n\n while(true){\n\n String num1 = br.readLine();\n String[] num2 = num1.split(\" \");\n int H = Integer.parseInt(num2[0]);\n int W = Integer.parseInt(num2[1]);\n\n if(H == 0 && W == 0){\n break;\n }\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.println(\"\");\n }\n System.out.println(\"\");\n }\n }\n}", "Main", "public static void main(String[] args) throws Exception{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int num = 0;\n\n while(true){\n\n String num1 = br.readLine();\n String[] num2 = num1.split(\" \");\n int H = Integer.parseInt(num2[0]);\n int W = Integer.parseInt(num2[1]);\n\n if(H == 0 && W == 0){\n break;\n }\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.println(\"\");\n }\n System.out.println(\"\");\n }\n }", "main", "{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int num = 0;\n\n while(true){\n\n String num1 = br.readLine();\n String[] num2 = num1.split(\" \");\n int H = Integer.parseInt(num2[0]);\n int W = Integer.parseInt(num2[1]);\n\n if(H == 0 && W == 0){\n break;\n }\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.println(\"\");\n }\n System.out.println(\"\");\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int num = 0;", "num", "0", "while(true){\n\n String num1 = br.readLine();\n String[] num2 = num1.split(\" \");\n int H = Integer.parseInt(num2[0]);\n int W = Integer.parseInt(num2[1]);\n\n if(H == 0 && W == 0){\n break;\n }\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.println(\"\");\n }\n System.out.println(\"\");\n }", "true", "{\n\n String num1 = br.readLine();\n String[] num2 = num1.split(\" \");\n int H = Integer.parseInt(num2[0]);\n int W = Integer.parseInt(num2[1]);\n\n if(H == 0 && W == 0){\n break;\n }\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.println(\"\");\n }\n System.out.println(\"\");\n }", "String num1 = br.readLine();", "num1", "br.readLine()", "br.readLine", "br", "String[] num2 = num1.split(\" \");", "num2", "num1.split(\" \")", "num1.split", "num1", "\" \"", "int H = Integer.parseInt(num2[0]);", "H", "Integer.parseInt(num2[0])", "Integer.parseInt", "Integer", "num2[0]", "num2", "0", "int W = Integer.parseInt(num2[1]);", "W", "Integer.parseInt(num2[1])", "Integer.parseInt", "Integer", "num2[1]", "num2", "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){\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.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 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 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 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.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 Exception{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int num = 0; while(true){ String num1 = br.readLine(); String[] num2 = num1.split(" "); int H = Integer.parseInt(num2[0]); int W = Integer.parseInt(num2[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){ 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, 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, 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, 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 ], [ 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 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 17, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 17, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 57, 67 ], [ 67, 68 ], [ 68, 69 ], [ 57, 70 ], [ 71, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 76, 86 ], [ 86, 87 ], [ 87, 88 ], [ 76, 89 ], [ 90, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 71, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 17, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 104, 105 ], [ 104, 106 ], [ 99, 107 ], [ 107, 108 ], [ 108, 109 ], [ 99, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 17, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 17, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 8, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 6, 129 ], [ 129, 130 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder str = new StringBuilder();\n\n\t\twhile (true) {\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\n\t\t\t//上の部分\n\t\t\tfor (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\"); \n\t\t\tstr.append(\"\\n\"); \n\t\t\t\n\t\t\t//中の部分\n\t\t\tfor (int i = 0; i < h - 2; i++) {\n\t\t\t\tstr.append(\"#\");\n\t\t\t\tfor (int j = 0; j < w - 2; j++) {\n\t\t\t\t\tstr.append(\".\");\n\t\t\t\t}\n\t\t\t\tstr.append(\"#\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t//下の部分\n\t\t\tfor (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\");\n\t\t\tstr.append(\"\\n\");\n\t\t\t\n\t\t\t//1行あける\n\t\t\tstr.append(\"\\n\"); \n\t\t}\n\t\tSystem.out.print(str);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder str = new StringBuilder();\n\n\t\twhile (true) {\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\n\t\t\t//上の部分\n\t\t\tfor (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\"); \n\t\t\tstr.append(\"\\n\"); \n\t\t\t\n\t\t\t//中の部分\n\t\t\tfor (int i = 0; i < h - 2; i++) {\n\t\t\t\tstr.append(\"#\");\n\t\t\t\tfor (int j = 0; j < w - 2; j++) {\n\t\t\t\t\tstr.append(\".\");\n\t\t\t\t}\n\t\t\t\tstr.append(\"#\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t//下の部分\n\t\t\tfor (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\");\n\t\t\tstr.append(\"\\n\");\n\t\t\t\n\t\t\t//1行あける\n\t\t\tstr.append(\"\\n\"); \n\t\t}\n\t\tSystem.out.print(str);\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder str = new StringBuilder();\n\n\t\twhile (true) {\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\n\t\t\t//上の部分\n\t\t\tfor (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\"); \n\t\t\tstr.append(\"\\n\"); \n\t\t\t\n\t\t\t//中の部分\n\t\t\tfor (int i = 0; i < h - 2; i++) {\n\t\t\t\tstr.append(\"#\");\n\t\t\t\tfor (int j = 0; j < w - 2; j++) {\n\t\t\t\t\tstr.append(\".\");\n\t\t\t\t}\n\t\t\t\tstr.append(\"#\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t//下の部分\n\t\t\tfor (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\");\n\t\t\tstr.append(\"\\n\");\n\t\t\t\n\t\t\t//1行あける\n\t\t\tstr.append(\"\\n\"); \n\t\t}\n\t\tSystem.out.print(str);\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder str = new StringBuilder();\n\n\t\twhile (true) {\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\n\t\t\t//上の部分\n\t\t\tfor (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\"); \n\t\t\tstr.append(\"\\n\"); \n\t\t\t\n\t\t\t//中の部分\n\t\t\tfor (int i = 0; i < h - 2; i++) {\n\t\t\t\tstr.append(\"#\");\n\t\t\t\tfor (int j = 0; j < w - 2; j++) {\n\t\t\t\t\tstr.append(\".\");\n\t\t\t\t}\n\t\t\t\tstr.append(\"#\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t//下の部分\n\t\t\tfor (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\");\n\t\t\tstr.append(\"\\n\");\n\t\t\t\n\t\t\t//1行あける\n\t\t\tstr.append(\"\\n\"); \n\t\t}\n\t\tSystem.out.print(str);\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "StringBuilder str = new StringBuilder();", "str", "new StringBuilder()", "while (true) {\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\n\t\t\t//上の部分\n\t\t\tfor (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\"); \n\t\t\tstr.append(\"\\n\"); \n\t\t\t\n\t\t\t//中の部分\n\t\t\tfor (int i = 0; i < h - 2; i++) {\n\t\t\t\tstr.append(\"#\");\n\t\t\t\tfor (int j = 0; j < w - 2; j++) {\n\t\t\t\t\tstr.append(\".\");\n\t\t\t\t}\n\t\t\t\tstr.append(\"#\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t//下の部分\n\t\t\tfor (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\");\n\t\t\tstr.append(\"\\n\");\n\t\t\t\n\t\t\t//1行あける\n\t\t\tstr.append(\"\\n\"); \n\t\t}", "true", "{\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\n\t\t\t//上の部分\n\t\t\tfor (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\"); \n\t\t\tstr.append(\"\\n\"); \n\t\t\t\n\t\t\t//中の部分\n\t\t\tfor (int i = 0; i < h - 2; i++) {\n\t\t\t\tstr.append(\"#\");\n\t\t\t\tfor (int j = 0; j < w - 2; j++) {\n\t\t\t\t\tstr.append(\".\");\n\t\t\t\t}\n\t\t\t\tstr.append(\"#\\n\");\n\t\t\t}\n\t\t\t\n\t\t\t//下の部分\n\t\t\tfor (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\");\n\t\t\tstr.append(\"\\n\");\n\t\t\t\n\t\t\t//1行あける\n\t\t\tstr.append(\"\\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;", "h == 0 && w == 0", "h == 0", "h", "0", "w == 0", "w", "0", "break;", "for (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\");", "int i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "str.append(\"#\");", "str.append(\"#\")", "str.append", "str", "\"#\"", "str.append(\"\\n\")", "str.append", "str", "\"\\n\"", "for (int i = 0; i < h - 2; i++) {\n\t\t\t\tstr.append(\"#\");\n\t\t\t\tfor (int j = 0; j < w - 2; j++) {\n\t\t\t\t\tstr.append(\".\");\n\t\t\t\t}\n\t\t\t\tstr.append(\"#\\n\");\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\tstr.append(\"#\");\n\t\t\t\tfor (int j = 0; j < w - 2; j++) {\n\t\t\t\t\tstr.append(\".\");\n\t\t\t\t}\n\t\t\t\tstr.append(\"#\\n\");\n\t\t\t}", "{\n\t\t\t\tstr.append(\"#\");\n\t\t\t\tfor (int j = 0; j < w - 2; j++) {\n\t\t\t\t\tstr.append(\".\");\n\t\t\t\t}\n\t\t\t\tstr.append(\"#\\n\");\n\t\t\t}", "str.append(\"#\")", "str.append", "str", "\"#\"", "for (int j = 0; j < w - 2; j++) {\n\t\t\t\t\tstr.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\tstr.append(\".\");\n\t\t\t\t}", "{\n\t\t\t\t\tstr.append(\".\");\n\t\t\t\t}", "str.append(\".\")", "str.append", "str", "\".\"", "str.append(\"#\\n\")", "str.append", "str", "\"#\\n\"", "for (int i = 0; i < w; i++)\n\t\t\t\tstr.append(\"#\");", "int i = 0;", "int i = 0;", "i", "0", "i < w", "i", "w", "i++", "i++", "i", "str.append(\"#\");", "str.append(\"#\")", "str.append", "str", "\"#\"", "str.append(\"\\n\")", "str.append", "str", "\"\\n\"", "str.append(\"\\n\")", "str.append", "str", "\"\\n\"", "System.out.print(str)", "System.out.print", "System.out", "System", "System.out", "str", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); StringBuilder str = new StringBuilder(); while (true) { int h = scan.nextInt(); int w = scan.nextInt(); if (h == 0 && w == 0) break; //上の部分 for (int i = 0; i < w; i++) str.append("#"); str.append("\n"); //中の部分 for (int i = 0; i < h - 2; i++) { str.append("#"); for (int j = 0; j < w - 2; j++) { str.append("."); } str.append("#\n"); } //下の部分 for (int i = 0; i < w; i++) str.append("#"); str.append("\n"); //1行あける str.append("\n"); } System.out.print(str); } }
[ 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, 4, 13, 13, 13, 4, 18, 18, 13, 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, 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, 23, 13, 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 ], [ 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 ], [ 34, 36 ], [ 34, 37 ], [ 14, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 6, 46 ], [ 46, 47 ], [ 114, 48 ], [ 48, 49 ], [ 48, 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 ], [ 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 ], [ 85, 84 ], [ 94, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 94, 94 ], [ 94, 95 ], [ 94, 96 ], [ 85, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 82, 102 ], [ 82, 103 ], [ 63, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 48, 109 ], [ 109, 110 ], [ 48, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "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 a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0) break;\n\t\t\tprintFrame(a, b);\n\t\t\tSystem.out.println();\n\t\t}\n\t\tsc.close();\n\t}\n\tstatic void printFrame (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\tSystem.out.print(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? \"#\" : \".\");\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 a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0) break;\n\t\t\tprintFrame(a, b);\n\t\t\tSystem.out.println();\n\t\t}\n\t\tsc.close();\n\t}\n\tstatic void printFrame (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\tSystem.out.print(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? \"#\" : \".\");\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 a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0) break;\n\t\t\tprintFrame(a, b);\n\t\t\tSystem.out.println();\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (true) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0) break;\n\t\t\tprintFrame(a, b);\n\t\t\tSystem.out.println();\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while (true) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0) break;\n\t\t\tprintFrame(a, b);\n\t\t\tSystem.out.println();\n\t\t}", "true", "{\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0) break;\n\t\t\tprintFrame(a, b);\n\t\t\tSystem.out.println();\n\t\t}", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "if (a == 0 && b == 0) break;", "a == 0 && b == 0", "a == 0", "a", "0", "b == 0", "b", "0", "break;", "printFrame(a, b)", "printFrame", "a", "b", "System.out.println()", "System.out.println", "System.out", "System", "System.out", "sc.close()", "sc.close", "sc", "String[] args", "args", "static void printFrame (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\tSystem.out.print(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? \"#\" : \".\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "printFrame", "{\n\t\tfor (int i = 0; i < h; i++) {\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tSystem.out.print(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? \"#\" : \".\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}\n\t}", "for (int i = 0; i < h; i++) {\n\t\t\tfor (int j = 0; j < w; j++) {\n\t\t\t\tSystem.out.print(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? \"#\" : \".\");\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\tSystem.out.print(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? \"#\" : \".\");\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\tSystem.out.print(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? \"#\" : \".\");\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}", "for (int j = 0; j < w; j++) {\n\t\t\t\tSystem.out.print(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? \"#\" : \".\");\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(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? \"#\" : \".\");\n\t\t\t}", "{\n\t\t\t\tSystem.out.print(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? \"#\" : \".\");\n\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", "int h", "h", "int w", "w", "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 a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0) break;\n\t\t\tprintFrame(a, b);\n\t\t\tSystem.out.println();\n\t\t}\n\t\tsc.close();\n\t}\n\tstatic void printFrame (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\tSystem.out.print(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? \"#\" : \".\");\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 a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tif (a == 0 && b == 0) break;\n\t\t\tprintFrame(a, b);\n\t\t\tSystem.out.println();\n\t\t}\n\t\tsc.close();\n\t}\n\tstatic void printFrame (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\tSystem.out.print(i == 0 || i == h - 1 || j == 0 || j == w - 1 ? \"#\" : \".\");\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 a = sc.nextInt(); int b = sc.nextInt(); if (a == 0 && b == 0) break; printFrame(a, b); System.out.println(); } sc.close(); } static void printFrame (int h, int w) { 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(); } } }
[ 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, 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, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 17, 4, 18, 13, 17, 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, 4, 18, 13, 17, 4, 18, 18, 13, 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 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 20, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 20, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 46, 47 ], [ 46, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 54, 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 ], [ 78, 81 ], [ 64, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 54, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 86, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 91, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 91, 101 ], [ 101, 102 ], [ 102, 103 ], [ 91, 104 ], [ 105, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 86, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 86, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 20, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 11, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 9, 128 ], [ 128, 129 ] ]
[ "import java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tint h = scanner.nextInt();\n\t\t\tint w = scanner.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\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\tsb.append(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tfor(int j = 0; j < w-2; j++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tint h = scanner.nextInt();\n\t\t\tint w = scanner.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\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\tsb.append(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tfor(int j = 0; j < w-2; j++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\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){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tint h = scanner.nextInt();\n\t\t\tint w = scanner.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\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\tsb.append(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tfor(int j = 0; j < w-2; j++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\twhile(true){\n\t\t\tint h = scanner.nextInt();\n\t\t\tint w = scanner.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\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\tsb.append(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tfor(int j = 0; j < w-2; j++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "while(true){\n\t\t\tint h = scanner.nextInt();\n\t\t\tint w = scanner.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\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\tsb.append(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tfor(int j = 0; j < w-2; j++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}", "true", "{\n\t\t\tint h = scanner.nextInt();\n\t\t\tint w = scanner.nextInt();\n\t\t\t\n\t\t\tif(h == 0 && w == 0){\n\t\t\t\tbreak;\n\t\t\t}\n\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\tsb.append(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tfor(int j = 0; j < w-2; j++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tsb.append(\"\\n\");\n\t\t}", "int h = scanner.nextInt();", "h", "scanner.nextInt()", "scanner.nextInt", "scanner", "int w = scanner.nextInt();", "w", "scanner.nextInt()", "scanner.nextInt", "scanner", "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\tsb.append(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tfor(int j = 0; j < w-2; j++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\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\tsb.append(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tfor(int j = 0; j < w-2; j++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\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\tsb.append(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tfor(int j = 0; j < w-2; j++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}\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\tsb.append(\"#\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"\\n\");\n\t\t\t\t}else{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tfor(int j = 0; j < w-2; j++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tsb.append(\"\\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\tsb.append(\"#\");\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\tsb.append(\"#\");\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\tsb.append(\"#\");\n\t\t\t\t\t}", "{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\t}", "sb.append(\"#\")", "sb.append", "sb", "\"#\"", "sb.append(\"\\n\")", "sb.append", "sb", "\"\\n\"", "{\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tfor(int j = 0; j < w-2; j++){\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\tsb.append(\"#\");\n\t\t\t\t\tsb.append(\"\\n\");\n\t\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\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\t}", "{\n\t\t\t\t\tsb.append(\".\");\n\t\t\t\t\t}", "sb.append(\".\")", "sb.append", "sb", "\".\"", "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.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args){ Scanner scanner = new Scanner(System.in); StringBuilder sb = new StringBuilder(); while(true){ int h = scanner.nextInt(); int w = scanner.nextInt(); 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++){ sb.append("#"); } sb.append("\n"); }else{ sb.append("#"); for(int j = 0; j < w-2; j++){ sb.append("."); } 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, 42, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 17, 4, 18, 18, 13, 13, 4, 18, 13, 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, 2, 2, 13, 17, 2, 13, 2, 13, 17, 2, 13, 17, 2, 13, 2, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 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 ], [ 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 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 36, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 36, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 54 ], [ 36, 55 ], [ 28, 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 ], [ 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 ], [ 86, 85 ], [ 95, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 92, 94 ], [ 95, 95 ], [ 95, 96 ], [ 95, 97 ], [ 86, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 83, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 83, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 69, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 56, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 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 scan = new Scanner(System.in);\n\t\tStringBuilder text = new StringBuilder();\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\tscan.close();\n\t\t\t\ttext.deleteCharAt(text.lastIndexOf(\"\\n\"));\n\t\t\t\tSystem.out.println(text.toString());\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\t\tfor(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\ttext.append(\"\\n\");\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\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder text = new StringBuilder();\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\tscan.close();\n\t\t\t\ttext.deleteCharAt(text.lastIndexOf(\"\\n\"));\n\t\t\t\tSystem.out.println(text.toString());\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\t\tfor(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\ttext.append(\"\\n\");\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\tStringBuilder text = new StringBuilder();\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\tscan.close();\n\t\t\t\ttext.deleteCharAt(text.lastIndexOf(\"\\n\"));\n\t\t\t\tSystem.out.println(text.toString());\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\t\tfor(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\ttext.append(\"\\n\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder text = new StringBuilder();\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\tscan.close();\n\t\t\t\ttext.deleteCharAt(text.lastIndexOf(\"\\n\"));\n\t\t\t\tSystem.out.println(text.toString());\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\t\tfor(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\ttext.append(\"\\n\");\n\t\t\t}\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "StringBuilder text = new StringBuilder();", "text", "new StringBuilder()", "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\tscan.close();\n\t\t\t\ttext.deleteCharAt(text.lastIndexOf(\"\\n\"));\n\t\t\t\tSystem.out.println(text.toString());\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\t\tfor(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\ttext.append(\"\\n\");\n\t\t\t}\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\tscan.close();\n\t\t\t\ttext.deleteCharAt(text.lastIndexOf(\"\\n\"));\n\t\t\t\tSystem.out.println(text.toString());\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\t\tfor(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\ttext.append(\"\\n\");\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\tscan.close();\n\t\t\t\ttext.deleteCharAt(text.lastIndexOf(\"\\n\"));\n\t\t\t\tSystem.out.println(text.toString());\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\t\tfor(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\ttext.append(\"\\n\");\n\t\t\t}", "H == 0 && W == 0", "H == 0", "H", "0", "W == 0", "W", "0", "{\n\t\t\t\tscan.close();\n\t\t\t\ttext.deleteCharAt(text.lastIndexOf(\"\\n\"));\n\t\t\t\tSystem.out.println(text.toString());\n\t\t\t\tbreak;\n\t\t\t}", "scan.close()", "scan.close", "scan", "text.deleteCharAt(text.lastIndexOf(\"\\n\"))", "text.deleteCharAt", "text", "text.lastIndexOf(\"\\n\")", "text.lastIndexOf", "text", "\"\\n\"", "System.out.println(text.toString())", "System.out.println", "System.out", "System", "System.out", "text.toString()", "text.toString", "text", "break;", "{\n\t\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\t\tfor(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\ttext.append(\"\\n\");\n\t\t\t}", "for(int i = 0;i < H;i++){\n\t\t\t\t\tfor(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.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 t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.append(\"\\n\");\n\t\t\t\t}", "{\n\t\t\t\t\tfor(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.append(\"\\n\");\n\t\t\t\t}", "for(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}", "int t = 0;", "int t = 0;", "t", "0", "t < W", "t", "W", "t++", "t++", "t", "{\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}", "if(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");", "i == 0 || i == H - 1 || t == 0 || t == W - 1", "t == 0", "i == 0 || i == H - 1 || t == 0 || t == W - 1", "i == 0", "i", "0", "i == H - 1", "i", "H - 1", "H", "1", "t == 0", "t", "0", "t == W - 1", "t", "W - 1", "W", "1", "text.append(\"#\")", "text.append", "text", "\"#\"", "text.append(\".\")", "text.append", "text", "\".\"", "text.append(\"\\n\")", "text.append", "text", "\"\\n\"", "text.append(\"\\n\")", "text.append", "text", "\"\\n\"", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder text = new StringBuilder();\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\tscan.close();\n\t\t\t\ttext.deleteCharAt(text.lastIndexOf(\"\\n\"));\n\t\t\t\tSystem.out.println(text.toString());\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\t\tfor(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\ttext.append(\"\\n\");\n\t\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\tStringBuilder text = new StringBuilder();\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\tscan.close();\n\t\t\t\ttext.deleteCharAt(text.lastIndexOf(\"\\n\"));\n\t\t\t\tSystem.out.println(text.toString());\n\t\t\t\tbreak;\n\t\t\t} else {\n\t\t\t\tfor(int i = 0;i < H;i++){\n\t\t\t\t\tfor(int t = 0;t < W ;t++){\n\t\t\t\t\t\tif(i == 0 || i == H - 1 || t == 0 || t == W - 1)\n\t\t\t\t\t\t\ttext.append(\"#\");\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\ttext.append(\".\");\n\t\t\t\t\t}\n\t\t\t\t\ttext.append(\"\\n\");\n\t\t\t\t}\n\t\t\t\ttext.append(\"\\n\");\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); StringBuilder text = new StringBuilder(); while (true) { int H = scan.nextInt(); int W = scan.nextInt(); if (H == 0 && W == 0) { scan.close(); text.deleteCharAt(text.lastIndexOf("\n")); System.out.println(text.toString()); break; } else { for(int i = 0;i < H;i++){ for(int t = 0;t < W ;t++){ if(i == 0 || i == H - 1 || t == 0 || t == W - 1) text.append("#"); else text.append("."); } text.append("\n"); } text.append("\n"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 20, 42, 2, 2, 13, 17, 2, 13, 17, 30, 41, 13, 4, 18, 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, 4, 18, 13, 13, 4, 18, 13, 13, 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, 2, 2, 17, 13, 2, 13, 2, 4, 18, 13, 13, 17, 2, 17, 13, 2, 13, 2, 4, 18, 13, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 180, 14 ], [ 180, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 28, 30 ], [ 17, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 42, 47 ], [ 39, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 39, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 39, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 39, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 39, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 17, 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 ], [ 104, 107 ], [ 97, 108 ], [ 108, 109 ], [ 109, 110 ], [ 97, 111 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 113, 124 ], [ 124, 125 ], [ 125, 126 ], [ 113, 127 ], [ 128, 128 ], [ 128, 129 ], [ 129, 130 ], [ 132, 131 ], [ 144, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 138, 143 ], [ 144, 144 ], [ 144, 145 ], [ 144, 146 ], [ 132, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 150, 153 ], [ 149, 154 ], [ 129, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 155, 160 ], [ 129, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 161, 166 ], [ 112, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 96, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 15, 177 ], [ 177, 178 ], [ 0, 179 ], [ 179, 180 ], [ 179, 181 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n\n ArrayList<Integer> x_list = new ArrayList<>();\n ArrayList<Integer> y_list = new ArrayList<>();\n\n int x;\n int y;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n do {\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n y = Integer.parseInt(line[1]);\n\n if (x == 0 && y == 0) {\n break;\n }\n\n x_list.add(x);\n y_list.add(y);\n\n } while (x != 0 || y != 0);\n\n for (int n = 0; n < x_list.size(); n++) {\n for (int a = 0; a < x_list.get(n); a++) {\n\n for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }\n\n System.out.println();\n }\n\n System.out.println();\n }\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", "import java.util.ArrayList;", "ArrayList", "java.util", "public class Main {\n\n public static void main(String[] args) throws IOException {\n\n ArrayList<Integer> x_list = new ArrayList<>();\n ArrayList<Integer> y_list = new ArrayList<>();\n\n int x;\n int y;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n do {\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n y = Integer.parseInt(line[1]);\n\n if (x == 0 && y == 0) {\n break;\n }\n\n x_list.add(x);\n y_list.add(y);\n\n } while (x != 0 || y != 0);\n\n for (int n = 0; n < x_list.size(); n++) {\n for (int a = 0; a < x_list.get(n); a++) {\n\n for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }\n\n System.out.println();\n }\n\n System.out.println();\n }\n\n }\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\n ArrayList<Integer> x_list = new ArrayList<>();\n ArrayList<Integer> y_list = new ArrayList<>();\n\n int x;\n int y;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n do {\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n y = Integer.parseInt(line[1]);\n\n if (x == 0 && y == 0) {\n break;\n }\n\n x_list.add(x);\n y_list.add(y);\n\n } while (x != 0 || y != 0);\n\n for (int n = 0; n < x_list.size(); n++) {\n for (int a = 0; a < x_list.get(n); a++) {\n\n for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }\n\n System.out.println();\n }\n\n System.out.println();\n }\n\n }", "main", "{\n\n ArrayList<Integer> x_list = new ArrayList<>();\n ArrayList<Integer> y_list = new ArrayList<>();\n\n int x;\n int y;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n do {\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n y = Integer.parseInt(line[1]);\n\n if (x == 0 && y == 0) {\n break;\n }\n\n x_list.add(x);\n y_list.add(y);\n\n } while (x != 0 || y != 0);\n\n for (int n = 0; n < x_list.size(); n++) {\n for (int a = 0; a < x_list.get(n); a++) {\n\n for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }\n\n System.out.println();\n }\n\n System.out.println();\n }\n\n }", "ArrayList<Integer> x_list = new ArrayList<>();", "x_list", "new ArrayList<>()", "ArrayList<Integer> y_list = new ArrayList<>();", "y_list", "new ArrayList<>()", "int x;", "x", "int y;", "y", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "do {\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n y = Integer.parseInt(line[1]);\n\n if (x == 0 && y == 0) {\n break;\n }\n\n x_list.add(x);\n y_list.add(y);\n\n } while (x != 0 || y != 0);", "x != 0 || y != 0", "x != 0", "x", "0", "y != 0", "y", "0", "{\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n y = Integer.parseInt(line[1]);\n\n if (x == 0 && y == 0) {\n break;\n }\n\n x_list.add(x);\n y_list.add(y);\n\n }", "String[] line = br.readLine().split(\" \");", "line", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "x = Integer.parseInt(line[0])", "x", "Integer.parseInt(line[0])", "Integer.parseInt", "Integer", "line[0]", "line", "0", "y = Integer.parseInt(line[1])", "y", "Integer.parseInt(line[1])", "Integer.parseInt", "Integer", "line[1]", "line", "1", "if (x == 0 && y == 0) {\n break;\n }", "x == 0 && y == 0", "x == 0", "x", "0", "y == 0", "y", "0", "{\n break;\n }", "break;", "x_list.add(x)", "x_list.add", "x_list", "x", "y_list.add(y)", "y_list.add", "y_list", "y", "for (int n = 0; n < x_list.size(); n++) {\n for (int a = 0; a < x_list.get(n); a++) {\n\n for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }\n\n System.out.println();\n }\n\n System.out.println();\n }", "int n = 0;", "int n = 0;", "n", "0", "n < x_list.size()", "n", "x_list.size()", "x_list.size", "x_list", "n++", "n++", "n", "{\n for (int a = 0; a < x_list.get(n); a++) {\n\n for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }\n\n System.out.println();\n }\n\n System.out.println();\n }", "{\n for (int a = 0; a < x_list.get(n); a++) {\n\n for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }\n\n System.out.println();\n }\n\n System.out.println();\n }", "for (int a = 0; a < x_list.get(n); a++) {\n\n for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }\n\n System.out.println();\n }", "int a = 0;", "int a = 0;", "a", "0", "a < x_list.get(n)", "a", "x_list.get(n)", "x_list.get", "x_list", "n", "a++", "a++", "a", "{\n\n for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }\n\n System.out.println();\n }", "{\n\n for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }\n\n System.out.println();\n }", "for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }", "int b = 0;", "int b = 0;", "b", "0", "b < y_list.get(n)", "b", "y_list.get(n)", "y_list.get", "y_list", "n", "b++", "b++", "b", "{\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }", "{\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }", "if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");", "0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1", "0 < b", "0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1", "0 < a", "0", "a", "a < x_list.get(n)-1", "a", "x_list.get(n)-1", "x_list.get(n)", "x_list.get", "x_list", "n", "1", "0 < b", "0", "b", "b < y_list.get(n)-1", "b", "y_list.get(n)-1", "y_list.get(n)", "y_list.get", "y_list", "n", "1", "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", "public class Main {\n\n public static void main(String[] args) throws IOException {\n\n ArrayList<Integer> x_list = new ArrayList<>();\n ArrayList<Integer> y_list = new ArrayList<>();\n\n int x;\n int y;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n do {\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n y = Integer.parseInt(line[1]);\n\n if (x == 0 && y == 0) {\n break;\n }\n\n x_list.add(x);\n y_list.add(y);\n\n } while (x != 0 || y != 0);\n\n for (int n = 0; n < x_list.size(); n++) {\n for (int a = 0; a < x_list.get(n); a++) {\n\n for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }\n\n System.out.println();\n }\n\n System.out.println();\n }\n\n }\n\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n\n ArrayList<Integer> x_list = new ArrayList<>();\n ArrayList<Integer> y_list = new ArrayList<>();\n\n int x;\n int y;\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n do {\n String[] line = br.readLine().split(\" \");\n x = Integer.parseInt(line[0]);\n y = Integer.parseInt(line[1]);\n\n if (x == 0 && y == 0) {\n break;\n }\n\n x_list.add(x);\n y_list.add(y);\n\n } while (x != 0 || y != 0);\n\n for (int n = 0; n < x_list.size(); n++) {\n for (int a = 0; a < x_list.get(n); a++) {\n\n for (int b = 0; b < y_list.get(n); b++) {\n if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf(\".\");\n else System.out.printf(\"#\");\n }\n\n System.out.println();\n }\n\n System.out.println();\n }\n\n }\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 { ArrayList<Integer> x_list = new ArrayList<>(); ArrayList<Integer> y_list = new ArrayList<>(); int x; int y; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); do { String[] line = br.readLine().split(" "); x = Integer.parseInt(line[0]); y = Integer.parseInt(line[1]); if (x == 0 && y == 0) { break; } x_list.add(x); y_list.add(y); } while (x != 0 || y != 0); for (int n = 0; n < x_list.size(); n++) { for (int a = 0; a < x_list.get(n); a++) { for (int b = 0; b < y_list.get(n); b++) { if(0 < a && a < x_list.get(n)-1 && 0 < b && b < y_list.get(n)-1) System.out.printf("."); else System.out.printf("#"); } System.out.println(); } 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 137, 11 ], [ 137, 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 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 81, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 81, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 98, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 98, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 67, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 20, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 130, 132 ], [ 128, 133 ], [ 12, 134 ], [ 134, 135 ], [ 0, 136 ], [ 136, 137 ], [ 136, 138 ] ]
[ "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\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true) {\n\t\t\tString[] strArray = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(strArray[0]);\n\t\t\tint W = Integer.parseInt(strArray[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; 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\tSystem.out.println(\"\");\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\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true) {\n\t\t\tString[] strArray = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(strArray[0]);\n\t\t\tint W = Integer.parseInt(strArray[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; 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\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true) {\n\t\t\tString[] strArray = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(strArray[0]);\n\t\t\tint W = Integer.parseInt(strArray[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; 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\tSystem.out.println(\"\");\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true) {\n\t\t\tString[] strArray = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(strArray[0]);\n\t\t\tint W = Integer.parseInt(strArray[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; 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\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[] strArray = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(strArray[0]);\n\t\t\tint W = Integer.parseInt(strArray[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; 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\tSystem.out.println(\"\");\n\t\t}", "true", "{\n\t\t\tString[] strArray = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(strArray[0]);\n\t\t\tint W = Integer.parseInt(strArray[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; 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\tSystem.out.println(\"\");\n\t\t}", "String[] strArray = br.readLine().split(\" \");", "strArray", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "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\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) {\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; 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; 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; 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", "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}", "{\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\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true) {\n\t\t\tString[] strArray = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(strArray[0]);\n\t\t\tint W = Integer.parseInt(strArray[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; 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\tSystem.out.println(\"\");\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\twhile(true) {\n\t\t\tString[] strArray = br.readLine().split(\" \");\n\t\t\tint H = Integer.parseInt(strArray[0]);\n\t\t\tint W = Integer.parseInt(strArray[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; 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\tSystem.out.println(\"\");\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 { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); while(true) { String[] strArray = br.readLine().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++) { 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, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 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, 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, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 139, 11 ], [ 139, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 15, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 28, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 28, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 45, 46 ], [ 45, 47 ], [ 28, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 28, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 56, 64 ], [ 64, 65 ], [ 28, 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 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 93, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 109, 111 ], [ 92, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 92, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 78, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 28, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 12, 136 ], [ 136, 137 ], [ 0, 138 ], [ 138, 139 ], [ 138, 140 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\twhile (true) {\n\t\t\t\tString s = reader.readLine();\n\t\t\t\tString[] a = s.split(\" \");\n\t\t\t\t\n\t\t\t\tint H = Integer.parseInt(a[0]);\n\t\t\t\tint W = Integer.parseInt(a[1]);\n\t\t\t\t\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\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 && i != (H - 1)) && (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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\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\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\twhile (true) {\n\t\t\t\tString s = reader.readLine();\n\t\t\t\tString[] a = s.split(\" \");\n\t\t\t\t\n\t\t\t\tint H = Integer.parseInt(a[0]);\n\t\t\t\tint W = Integer.parseInt(a[1]);\n\t\t\t\t\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\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 && i != (H - 1)) && (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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\twhile (true) {\n\t\t\t\tString s = reader.readLine();\n\t\t\t\tString[] a = s.split(\" \");\n\t\t\t\t\n\t\t\t\tint H = Integer.parseInt(a[0]);\n\t\t\t\tint W = Integer.parseInt(a[1]);\n\t\t\t\t\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\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 && i != (H - 1)) && (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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\twhile (true) {\n\t\t\t\tString s = reader.readLine();\n\t\t\t\tString[] a = s.split(\" \");\n\t\t\t\t\n\t\t\t\tint H = Integer.parseInt(a[0]);\n\t\t\t\tint W = Integer.parseInt(a[1]);\n\t\t\t\t\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\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 && i != (H - 1)) && (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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\twhile (true) {\n\t\t\t\tString s = reader.readLine();\n\t\t\t\tString[] a = s.split(\" \");\n\t\t\t\t\n\t\t\t\tint H = Integer.parseInt(a[0]);\n\t\t\t\tint W = Integer.parseInt(a[1]);\n\t\t\t\t\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\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 && i != (H - 1)) && (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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\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\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\twhile (true) {\n\t\t\t\tString s = reader.readLine();\n\t\t\t\tString[] a = s.split(\" \");\n\t\t\t\t\n\t\t\t\tint H = Integer.parseInt(a[0]);\n\t\t\t\tint W = Integer.parseInt(a[1]);\n\t\t\t\t\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\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 && i != (H - 1)) && (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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "while (true) {\n\t\t\t\tString s = reader.readLine();\n\t\t\t\tString[] a = s.split(\" \");\n\t\t\t\t\n\t\t\t\tint H = Integer.parseInt(a[0]);\n\t\t\t\tint W = Integer.parseInt(a[1]);\n\t\t\t\t\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\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 && i != (H - 1)) && (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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "true", "{\n\t\t\t\tString s = reader.readLine();\n\t\t\t\tString[] a = s.split(\" \");\n\t\t\t\t\n\t\t\t\tint H = Integer.parseInt(a[0]);\n\t\t\t\tint W = Integer.parseInt(a[1]);\n\t\t\t\t\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\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 && i != (H - 1)) && (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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}", "String s = reader.readLine();", "s", "reader.readLine()", "reader.readLine", "reader", "String[] a = s.split(\" \");", "a", "s.split(\" \")", "s.split", "s", "\" \"", "int H = Integer.parseInt(a[0]);", "H", "Integer.parseInt(a[0])", "Integer.parseInt", "Integer", "a[0]", "a", "0", "int W = Integer.parseInt(a[1]);", "W", "Integer.parseInt(a[1])", "Integer.parseInt", "Integer", "a[1]", "a", "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 && i != (H - 1)) && (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\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\tfor (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif ((i != 0 && i != (H - 1)) && (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\tSystem.out.println();\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 && i != (H - 1)) && (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\tSystem.out.println();\n\t\t\t\t}", "for (int j = 0; j < W; j++) {\n\t\t\t\t\t\tif ((i != 0 && i != (H - 1)) && (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 ((i != 0 && i != (H - 1)) && (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 ((i != 0 && i != (H - 1)) && (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 ((i != 0 && i != (H - 1)) && (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}", "(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\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\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\twhile (true) {\n\t\t\t\tString s = reader.readLine();\n\t\t\t\tString[] a = s.split(\" \");\n\t\t\t\t\n\t\t\t\tint H = Integer.parseInt(a[0]);\n\t\t\t\tint W = Integer.parseInt(a[1]);\n\t\t\t\t\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\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 && i != (H - 1)) && (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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\twhile (true) {\n\t\t\t\tString s = reader.readLine();\n\t\t\t\tString[] a = s.split(\" \");\n\t\t\t\t\n\t\t\t\tint H = Integer.parseInt(a[0]);\n\t\t\t\tint W = Integer.parseInt(a[1]);\n\t\t\t\t\n\t\t\t\tif (H == 0 && W == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\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 && i != (H - 1)) && (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\tSystem.out.println();\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t\t\t}\n\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\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) { try { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); while (true) { String s = reader.readLine(); String[] a = s.split(" "); int H = Integer.parseInt(a[0]); int W = Integer.parseInt(a[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(); } } catch (IOException e) { e.printStackTrace(); } } }