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, 41, 13, 17, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 17, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 13, 17, 30, 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 ], [ 157, 11 ], [ 157, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 14, 32 ], [ 32, 33 ], [ 14, 34 ], [ 34, 35 ], [ 14, 36 ], [ 36, 37 ], [ 14, 38 ], [ 38, 39 ], [ 38, 40 ], [ 14, 42 ], [ 42, 43 ], [ 14, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 56, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 56, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 56, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 81, 83 ], [ 56, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 89, 91 ], [ 56, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 93, 101 ], [ 101, 102 ], [ 101, 103 ], [ 92, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 92, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 118, 120 ], [ 109, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 109, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 132, 134 ], [ 127, 135 ], [ 135, 136 ], [ 135, 137 ], [ 126, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 139, 142 ], [ 126, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 14, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 148, 153 ], [ 12, 154 ], [ 154, 155 ], [ 0, 156 ], [ 156, 157 ], [ 156, 158 ] ]
[ "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 NumberFormatException,\n IOException {\n final String SPACE = \" \";\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n final int cntData = Integer.parseInt(br.readLine());\n\n int a;\n int b;\n int c;\n String data[] = new String[3];\n\n String lineString;\n for (int i = 0; i < cntData; i++) {\n lineString = br.readLine();\n\n data = lineString.split(SPACE);\n a = Integer.parseInt(data[0]);\n b = Integer.parseInt(data[1]);\n c = Integer.parseInt(data[2]);\n\n if (a * a + b * b == c * c) {\n sb.append(\"YES\\r\\n\");\n } else if (a * a + c * c == b * b) {\n sb.append(\"YES\\r\\n\");\n } else if (b * b + c * c == a * a) {\n sb.append(\"YES\\r\\n\");\n } else {\n sb.append(\"NO\\r\\n\");\n }\n }\n\n System.out.print(sb);\n\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n public static void main(String[] args) throws NumberFormatException,\n IOException {\n final String SPACE = \" \";\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n final int cntData = Integer.parseInt(br.readLine());\n\n int a;\n int b;\n int c;\n String data[] = new String[3];\n\n String lineString;\n for (int i = 0; i < cntData; i++) {\n lineString = br.readLine();\n\n data = lineString.split(SPACE);\n a = Integer.parseInt(data[0]);\n b = Integer.parseInt(data[1]);\n c = Integer.parseInt(data[2]);\n\n if (a * a + b * b == c * c) {\n sb.append(\"YES\\r\\n\");\n } else if (a * a + c * c == b * b) {\n sb.append(\"YES\\r\\n\");\n } else if (b * b + c * c == a * a) {\n sb.append(\"YES\\r\\n\");\n } else {\n sb.append(\"NO\\r\\n\");\n }\n }\n\n System.out.print(sb);\n\n }\n}", "Main", "public static void main(String[] args) throws NumberFormatException,\n IOException {\n final String SPACE = \" \";\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n final int cntData = Integer.parseInt(br.readLine());\n\n int a;\n int b;\n int c;\n String data[] = new String[3];\n\n String lineString;\n for (int i = 0; i < cntData; i++) {\n lineString = br.readLine();\n\n data = lineString.split(SPACE);\n a = Integer.parseInt(data[0]);\n b = Integer.parseInt(data[1]);\n c = Integer.parseInt(data[2]);\n\n if (a * a + b * b == c * c) {\n sb.append(\"YES\\r\\n\");\n } else if (a * a + c * c == b * b) {\n sb.append(\"YES\\r\\n\");\n } else if (b * b + c * c == a * a) {\n sb.append(\"YES\\r\\n\");\n } else {\n sb.append(\"NO\\r\\n\");\n }\n }\n\n System.out.print(sb);\n\n }", "main", "{\n final String SPACE = \" \";\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n final int cntData = Integer.parseInt(br.readLine());\n\n int a;\n int b;\n int c;\n String data[] = new String[3];\n\n String lineString;\n for (int i = 0; i < cntData; i++) {\n lineString = br.readLine();\n\n data = lineString.split(SPACE);\n a = Integer.parseInt(data[0]);\n b = Integer.parseInt(data[1]);\n c = Integer.parseInt(data[2]);\n\n if (a * a + b * b == c * c) {\n sb.append(\"YES\\r\\n\");\n } else if (a * a + c * c == b * b) {\n sb.append(\"YES\\r\\n\");\n } else if (b * b + c * c == a * a) {\n sb.append(\"YES\\r\\n\");\n } else {\n sb.append(\"NO\\r\\n\");\n }\n }\n\n System.out.print(sb);\n\n }", "final String SPACE = \" \";", "SPACE", "\" \"", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "final int cntData = Integer.parseInt(br.readLine());", "cntData", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int a;", "a", "int b;", "b", "int c;", "c", "String data[] = new String[3];", "data", "new String[3]", "3", "String lineString;", "lineString", "for (int i = 0; i < cntData; i++) {\n lineString = br.readLine();\n\n data = lineString.split(SPACE);\n a = Integer.parseInt(data[0]);\n b = Integer.parseInt(data[1]);\n c = Integer.parseInt(data[2]);\n\n if (a * a + b * b == c * c) {\n sb.append(\"YES\\r\\n\");\n } else if (a * a + c * c == b * b) {\n sb.append(\"YES\\r\\n\");\n } else if (b * b + c * c == a * a) {\n sb.append(\"YES\\r\\n\");\n } else {\n sb.append(\"NO\\r\\n\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < cntData", "i", "cntData", "i++", "i++", "i", "{\n lineString = br.readLine();\n\n data = lineString.split(SPACE);\n a = Integer.parseInt(data[0]);\n b = Integer.parseInt(data[1]);\n c = Integer.parseInt(data[2]);\n\n if (a * a + b * b == c * c) {\n sb.append(\"YES\\r\\n\");\n } else if (a * a + c * c == b * b) {\n sb.append(\"YES\\r\\n\");\n } else if (b * b + c * c == a * a) {\n sb.append(\"YES\\r\\n\");\n } else {\n sb.append(\"NO\\r\\n\");\n }\n }", "{\n lineString = br.readLine();\n\n data = lineString.split(SPACE);\n a = Integer.parseInt(data[0]);\n b = Integer.parseInt(data[1]);\n c = Integer.parseInt(data[2]);\n\n if (a * a + b * b == c * c) {\n sb.append(\"YES\\r\\n\");\n } else if (a * a + c * c == b * b) {\n sb.append(\"YES\\r\\n\");\n } else if (b * b + c * c == a * a) {\n sb.append(\"YES\\r\\n\");\n } else {\n sb.append(\"NO\\r\\n\");\n }\n }", "lineString = br.readLine()", "lineString", "br.readLine()", "br.readLine", "br", "data = lineString.split(SPACE)", "data", "lineString.split(SPACE)", "lineString.split", "lineString", "SPACE", "a = Integer.parseInt(data[0])", "a", "Integer.parseInt(data[0])", "Integer.parseInt", "Integer", "data[0]", "data", "0", "b = Integer.parseInt(data[1])", "b", "Integer.parseInt(data[1])", "Integer.parseInt", "Integer", "data[1]", "data", "1", "c = Integer.parseInt(data[2])", "c", "Integer.parseInt(data[2])", "Integer.parseInt", "Integer", "data[2]", "data", "2", "if (a * a + b * b == c * c) {\n sb.append(\"YES\\r\\n\");\n } else if (a * a + c * c == b * b) {\n sb.append(\"YES\\r\\n\");\n } else if (b * b + c * c == a * a) {\n sb.append(\"YES\\r\\n\");\n } else {\n sb.append(\"NO\\r\\n\");\n }", "a * a + b * b == c * c", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "c * c", "c", "c", "{\n sb.append(\"YES\\r\\n\");\n }", "sb.append(\"YES\\r\\n\")", "sb.append", "sb", "\"YES\\r\\n\"", "if (a * a + c * c == b * b) {\n sb.append(\"YES\\r\\n\");\n } else if (b * b + c * c == a * a) {\n sb.append(\"YES\\r\\n\");\n } else {\n sb.append(\"NO\\r\\n\");\n }", "a * a + c * c == b * b", "a * a + c * c", "a * a", "a", "a", "c * c", "c", "c", "b * b", "b", "b", "{\n sb.append(\"YES\\r\\n\");\n }", "sb.append(\"YES\\r\\n\")", "sb.append", "sb", "\"YES\\r\\n\"", "if (b * b + c * c == a * a) {\n sb.append(\"YES\\r\\n\");\n } else {\n sb.append(\"NO\\r\\n\");\n }", "b * b + c * c == a * a", "b * b + c * c", "b * b", "b", "b", "c * c", "c", "c", "a * a", "a", "a", "{\n sb.append(\"YES\\r\\n\");\n }", "sb.append(\"YES\\r\\n\")", "sb.append", "sb", "\"YES\\r\\n\"", "{\n sb.append(\"NO\\r\\n\");\n }", "sb.append(\"NO\\r\\n\")", "sb.append", "sb", "\"NO\\r\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws NumberFormatException,\n IOException {\n final String SPACE = \" \";\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n final int cntData = Integer.parseInt(br.readLine());\n\n int a;\n int b;\n int c;\n String data[] = new String[3];\n\n String lineString;\n for (int i = 0; i < cntData; i++) {\n lineString = br.readLine();\n\n data = lineString.split(SPACE);\n a = Integer.parseInt(data[0]);\n b = Integer.parseInt(data[1]);\n c = Integer.parseInt(data[2]);\n\n if (a * a + b * b == c * c) {\n sb.append(\"YES\\r\\n\");\n } else if (a * a + c * c == b * b) {\n sb.append(\"YES\\r\\n\");\n } else if (b * b + c * c == a * a) {\n sb.append(\"YES\\r\\n\");\n } else {\n sb.append(\"NO\\r\\n\");\n }\n }\n\n System.out.print(sb);\n\n }\n}", "public class Main {\n\n public static void main(String[] args) throws NumberFormatException,\n IOException {\n final String SPACE = \" \";\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n final int cntData = Integer.parseInt(br.readLine());\n\n int a;\n int b;\n int c;\n String data[] = new String[3];\n\n String lineString;\n for (int i = 0; i < cntData; i++) {\n lineString = br.readLine();\n\n data = lineString.split(SPACE);\n a = Integer.parseInt(data[0]);\n b = Integer.parseInt(data[1]);\n c = Integer.parseInt(data[2]);\n\n if (a * a + b * b == c * c) {\n sb.append(\"YES\\r\\n\");\n } else if (a * a + c * c == b * b) {\n sb.append(\"YES\\r\\n\");\n } else if (b * b + c * c == a * a) {\n sb.append(\"YES\\r\\n\");\n } else {\n sb.append(\"NO\\r\\n\");\n }\n }\n\n System.out.print(sb);\n\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { final String SPACE = " "; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); final int cntData = Integer.parseInt(br.readLine()); int a; int b; int c; String data[] = new String[3]; String lineString; for (int i = 0; i < cntData; i++) { lineString = br.readLine(); data = lineString.split(SPACE); a = Integer.parseInt(data[0]); b = Integer.parseInt(data[1]); c = Integer.parseInt(data[2]); if (a * a + b * b == c * c) { sb.append("YES\r\n"); } else if (a * a + c * c == b * b) { sb.append("YES\r\n"); } else if (b * b + c * c == a * a) { sb.append("YES\r\n"); } else { sb.append("NO\r\n"); } } System.out.print(sb); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 41, 13, 20, 17, 42, 4, 18, 13, 0, 18, 13, 40, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 0, 13, 17, 28, 13, 13, 30, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 113, 8 ], [ 113, 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 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 11, 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 ], [ 42, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 53, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 41, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 41, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 71, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 41, 94 ], [ 94, 95 ], [ 94, 96 ], [ 11, 97 ], [ 97, 98 ], [ 97, 99 ], [ 97, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 106, 107 ], [ 106, 108 ], [ 106, 109 ], [ 9, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tArrayList<Boolean> ans = new ArrayList<Boolean>();\n\t\tint j = 0;\n\t\t\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine(),\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\twhile (st.hasMoreTokens())\n\t\t\t\tnums[j++] = Integer.parseInt(st.nextToken());\n\t\t\tArrays.sort(nums);\n\t\t\tans.add(nums[0] * nums[0] + nums[1] * nums[1] == nums[2] * nums[2]);\n\t\t\tj = 0;\n\t\t}\n\t\t\n\t\tfor (boolean a : ans)\n\t\t\tSystem.out.println(a ? \"YES\" : \"NO\");\n\t}\n\t\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tArrayList<Boolean> ans = new ArrayList<Boolean>();\n\t\tint j = 0;\n\t\t\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine(),\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\twhile (st.hasMoreTokens())\n\t\t\t\tnums[j++] = Integer.parseInt(st.nextToken());\n\t\t\tArrays.sort(nums);\n\t\t\tans.add(nums[0] * nums[0] + nums[1] * nums[1] == nums[2] * nums[2]);\n\t\t\tj = 0;\n\t\t}\n\t\t\n\t\tfor (boolean a : ans)\n\t\t\tSystem.out.println(a ? \"YES\" : \"NO\");\n\t}\n\t\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tArrayList<Boolean> ans = new ArrayList<Boolean>();\n\t\tint j = 0;\n\t\t\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine(),\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\twhile (st.hasMoreTokens())\n\t\t\t\tnums[j++] = Integer.parseInt(st.nextToken());\n\t\t\tArrays.sort(nums);\n\t\t\tans.add(nums[0] * nums[0] + nums[1] * nums[1] == nums[2] * nums[2]);\n\t\t\tj = 0;\n\t\t}\n\t\t\n\t\tfor (boolean a : ans)\n\t\t\tSystem.out.println(a ? \"YES\" : \"NO\");\n\t}", "main", "{\n\t\t\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tArrayList<Boolean> ans = new ArrayList<Boolean>();\n\t\tint j = 0;\n\t\t\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine(),\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\twhile (st.hasMoreTokens())\n\t\t\t\tnums[j++] = Integer.parseInt(st.nextToken());\n\t\t\tArrays.sort(nums);\n\t\t\tans.add(nums[0] * nums[0] + nums[1] * nums[1] == nums[2] * nums[2]);\n\t\t\tj = 0;\n\t\t}\n\t\t\n\t\tfor (boolean a : ans)\n\t\t\tSystem.out.println(a ? \"YES\" : \"NO\");\n\t}", "BufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "ArrayList<Boolean> ans = new ArrayList<Boolean>();", "ans", "new ArrayList<Boolean>()", "int j = 0;", "j", "0", "int cnt = Integer.parseInt(br.readLine());", "cnt", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < cnt; i++) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine(),\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\twhile (st.hasMoreTokens())\n\t\t\t\tnums[j++] = Integer.parseInt(st.nextToken());\n\t\t\tArrays.sort(nums);\n\t\t\tans.add(nums[0] * nums[0] + nums[1] * nums[1] == nums[2] * nums[2]);\n\t\t\tj = 0;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < cnt", "i", "cnt", "i++", "i++", "i", "{\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine(),\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\twhile (st.hasMoreTokens())\n\t\t\t\tnums[j++] = Integer.parseInt(st.nextToken());\n\t\t\tArrays.sort(nums);\n\t\t\tans.add(nums[0] * nums[0] + nums[1] * nums[1] == nums[2] * nums[2]);\n\t\t\tj = 0;\n\t\t}", "{\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine(),\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\twhile (st.hasMoreTokens())\n\t\t\t\tnums[j++] = Integer.parseInt(st.nextToken());\n\t\t\tArrays.sort(nums);\n\t\t\tans.add(nums[0] * nums[0] + nums[1] * nums[1] == nums[2] * nums[2]);\n\t\t\tj = 0;\n\t\t}", "StringTokenizer st = new StringTokenizer(br.readLine(),\" \");", "st", "new StringTokenizer(br.readLine(),\" \")", "int[] nums = new int[3];", "nums", "new int[3]", "3", "while (st.hasMoreTokens())\n\t\t\t\tnums[j++] = Integer.parseInt(st.nextToken());", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "nums[j++] = Integer.parseInt(st.nextToken())", "nums[j++]", "nums", "j++", "j", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "Arrays.sort(nums)", "Arrays.sort", "Arrays", "nums", "ans.add(nums[0] * nums[0] + nums[1] * nums[1] == nums[2] * nums[2])", "ans.add", "ans", "nums[0] * nums[0] + nums[1] * nums[1] == nums[2] * nums[2]", "nums[0] * nums[0] + nums[1] * nums[1]", "nums[0] * nums[0]", "nums[0]", "nums", "0", "nums[0]", "nums", "0", "nums[1] * nums[1]", "nums[1]", "nums", "1", "nums[1]", "nums", "1", "nums[2] * nums[2]", "nums[2]", "nums", "2", "nums[2]", "nums", "2", "j = 0", "j", "0", "for (boolean a : ans)\n\t\t\tSystem.out.println(a ? \"YES\" : \"NO\");", "boolean a", "ans", "System.out.println(a ? \"YES\" : \"NO\");", "System.out.println(a ? \"YES\" : \"NO\")", "System.out.println", "System.out", "System", "System.out", "a ? \"YES\" : \"NO\"", "a", "\"YES\"", "\"NO\"", "String[] args", "args", "public class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tArrayList<Boolean> ans = new ArrayList<Boolean>();\n\t\tint j = 0;\n\t\t\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine(),\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\twhile (st.hasMoreTokens())\n\t\t\t\tnums[j++] = Integer.parseInt(st.nextToken());\n\t\t\tArrays.sort(nums);\n\t\t\tans.add(nums[0] * nums[0] + nums[1] * nums[1] == nums[2] * nums[2]);\n\t\t\tj = 0;\n\t\t}\n\t\t\n\t\tfor (boolean a : ans)\n\t\t\tSystem.out.println(a ? \"YES\" : \"NO\");\n\t}\n\t\n}", "public class Main {\n\t\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader br = \n\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tArrayList<Boolean> ans = new ArrayList<Boolean>();\n\t\tint j = 0;\n\t\t\n\t\tint cnt = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < cnt; i++) {\n\t\t\tStringTokenizer st = new StringTokenizer(br.readLine(),\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\twhile (st.hasMoreTokens())\n\t\t\t\tnums[j++] = Integer.parseInt(st.nextToken());\n\t\t\tArrays.sort(nums);\n\t\t\tans.add(nums[0] * nums[0] + nums[1] * nums[1] == nums[2] * nums[2]);\n\t\t\tj = 0;\n\t\t}\n\t\t\n\t\tfor (boolean a : ans)\n\t\t\tSystem.out.println(a ? \"YES\" : \"NO\");\n\t}\n\t\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList<Boolean> ans = new ArrayList<Boolean>(); int j = 0; int cnt = Integer.parseInt(br.readLine()); for (int i = 0; i < cnt; i++) { StringTokenizer st = new StringTokenizer(br.readLine()," "); int[] nums = new int[3]; while (st.hasMoreTokens()) nums[j++] = Integer.parseInt(st.nextToken()); Arrays.sort(nums); ans.add(nums[0] * nums[0] + nums[1] * nums[1] == nums[2] * nums[2]); j = 0; } for (boolean a : ans) System.out.println(a ? "YES" : "NO"); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 41, 13, 20, 17, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 17, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 2, 13, 17, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 2, 13, 17, 4, 18, 13, 13, 14, 2, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 35, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 35, 53 ], [ 53, 54 ], [ 53, 55 ], [ 35, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 64, 68 ], [ 35, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 76, 82 ], [ 35, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 93, 94 ], [ 93, 95 ], [ 35, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 35, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 121, 123 ], [ 100, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 100, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 9, 138 ], [ 138, 139 ], [ 0, 140 ], [ 140, 141 ], [ 140, 142 ] ]
[ "import java.io.*;\nimport java.util.*;\npublic class Main {\n\tpublic static void main(String args[]) throws IOException {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.valueOf(r.readLine());\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = r.readLine();\n\t\t\tint a = s.indexOf(\" \");\n\t\t\tint z = s.lastIndexOf(\" \");\n\t\t\tint[] arr = new int[3];\n\t\t\tarr[0] = Integer.valueOf(s.substring(0, a));\n\t\t\tarr[1] = Integer.valueOf(s.substring(a+1, z));\n\t\t\tarr[2] = Integer.valueOf(s.substring(z+1));\n\t\t\tArrays.sort(arr);\n\t\t\tif((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\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 IOException {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.valueOf(r.readLine());\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = r.readLine();\n\t\t\tint a = s.indexOf(\" \");\n\t\t\tint z = s.lastIndexOf(\" \");\n\t\t\tint[] arr = new int[3];\n\t\t\tarr[0] = Integer.valueOf(s.substring(0, a));\n\t\t\tarr[1] = Integer.valueOf(s.substring(a+1, z));\n\t\t\tarr[2] = Integer.valueOf(s.substring(z+1));\n\t\t\tArrays.sort(arr);\n\t\t\tif((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String args[]) throws IOException {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.valueOf(r.readLine());\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = r.readLine();\n\t\t\tint a = s.indexOf(\" \");\n\t\t\tint z = s.lastIndexOf(\" \");\n\t\t\tint[] arr = new int[3];\n\t\t\tarr[0] = Integer.valueOf(s.substring(0, a));\n\t\t\tarr[1] = Integer.valueOf(s.substring(a+1, z));\n\t\t\tarr[2] = Integer.valueOf(s.substring(z+1));\n\t\t\tArrays.sort(arr);\n\t\t\tif((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.valueOf(r.readLine());\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = r.readLine();\n\t\t\tint a = s.indexOf(\" \");\n\t\t\tint z = s.lastIndexOf(\" \");\n\t\t\tint[] arr = new int[3];\n\t\t\tarr[0] = Integer.valueOf(s.substring(0, a));\n\t\t\tarr[1] = Integer.valueOf(s.substring(a+1, z));\n\t\t\tarr[2] = Integer.valueOf(s.substring(z+1));\n\t\t\tArrays.sort(arr);\n\t\t\tif((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "BufferedReader r = new BufferedReader(new InputStreamReader(System.in));", "r", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.valueOf(r.readLine());", "n", "Integer.valueOf(r.readLine())", "Integer.valueOf", "Integer", "r.readLine()", "r.readLine", "r", "for(int i = 0; i < n; i++) {\n\t\t\tString s = r.readLine();\n\t\t\tint a = s.indexOf(\" \");\n\t\t\tint z = s.lastIndexOf(\" \");\n\t\t\tint[] arr = new int[3];\n\t\t\tarr[0] = Integer.valueOf(s.substring(0, a));\n\t\t\tarr[1] = Integer.valueOf(s.substring(a+1, z));\n\t\t\tarr[2] = Integer.valueOf(s.substring(z+1));\n\t\t\tArrays.sort(arr);\n\t\t\tif((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tString s = r.readLine();\n\t\t\tint a = s.indexOf(\" \");\n\t\t\tint z = s.lastIndexOf(\" \");\n\t\t\tint[] arr = new int[3];\n\t\t\tarr[0] = Integer.valueOf(s.substring(0, a));\n\t\t\tarr[1] = Integer.valueOf(s.substring(a+1, z));\n\t\t\tarr[2] = Integer.valueOf(s.substring(z+1));\n\t\t\tArrays.sort(arr);\n\t\t\tif((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tString s = r.readLine();\n\t\t\tint a = s.indexOf(\" \");\n\t\t\tint z = s.lastIndexOf(\" \");\n\t\t\tint[] arr = new int[3];\n\t\t\tarr[0] = Integer.valueOf(s.substring(0, a));\n\t\t\tarr[1] = Integer.valueOf(s.substring(a+1, z));\n\t\t\tarr[2] = Integer.valueOf(s.substring(z+1));\n\t\t\tArrays.sort(arr);\n\t\t\tif((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "String s = r.readLine();", "s", "r.readLine()", "r.readLine", "r", "int a = s.indexOf(\" \");", "a", "s.indexOf(\" \")", "s.indexOf", "s", "\" \"", "int z = s.lastIndexOf(\" \");", "z", "s.lastIndexOf(\" \")", "s.lastIndexOf", "s", "\" \"", "int[] arr = new int[3];", "arr", "new int[3]", "3", "arr[0] = Integer.valueOf(s.substring(0, a))", "arr[0]", "arr", "0", "Integer.valueOf(s.substring(0, a))", "Integer.valueOf", "Integer", "s.substring(0, a)", "s.substring", "s", "0", "a", "arr[1] = Integer.valueOf(s.substring(a+1, z))", "arr[1]", "arr", "1", "Integer.valueOf(s.substring(a+1, z))", "Integer.valueOf", "Integer", "s.substring(a+1, z)", "s.substring", "s", "a+1", "a", "1", "z", "arr[2] = Integer.valueOf(s.substring(z+1))", "arr[2]", "arr", "2", "Integer.valueOf(s.substring(z+1))", "Integer.valueOf", "Integer", "s.substring(z+1)", "s.substring", "s", "z+1", "z", "1", "Arrays.sort(arr)", "Arrays.sort", "Arrays", "arr", "if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "(arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]", "(arr[2] * arr[2])", "arr[2]", "arr", "2", "arr[2]", "arr", "2", "arr[0] * arr[0] + arr[1] * arr[1]", "arr[0] * arr[0]", "arr[0]", "arr", "0", "arr[0]", "arr", "0", "arr[1] * arr[1]", "arr[1]", "arr", "1", "arr[1]", "arr", "1", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String args[]", "args", "public class Main {\n\tpublic static void main(String args[]) throws IOException {\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.valueOf(r.readLine());\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = r.readLine();\n\t\t\tint a = s.indexOf(\" \");\n\t\t\tint z = s.lastIndexOf(\" \");\n\t\t\tint[] arr = new int[3];\n\t\t\tarr[0] = Integer.valueOf(s.substring(0, a));\n\t\t\tarr[1] = Integer.valueOf(s.substring(a+1, z));\n\t\t\tarr[2] = Integer.valueOf(s.substring(z+1));\n\t\t\tArrays.sort(arr);\n\t\t\tif((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\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 r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.valueOf(r.readLine());\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tString s = r.readLine();\n\t\t\tint a = s.indexOf(\" \");\n\t\t\tint z = s.lastIndexOf(\" \");\n\t\t\tint[] arr = new int[3];\n\t\t\tarr[0] = Integer.valueOf(s.substring(0, a));\n\t\t\tarr[1] = Integer.valueOf(s.substring(a+1, z));\n\t\t\tarr[2] = Integer.valueOf(s.substring(z+1));\n\t\t\tArrays.sort(arr);\n\t\t\tif((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String args[]) throws IOException { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.valueOf(r.readLine()); for(int i = 0; i < n; i++) { String s = r.readLine(); int a = s.indexOf(" "); int z = s.lastIndexOf(" "); int[] arr = new int[3]; arr[0] = Integer.valueOf(s.substring(0, a)); arr[1] = Integer.valueOf(s.substring(a+1, z)); arr[2] = Integer.valueOf(s.substring(z+1)); Arrays.sort(arr); if((arr[2] * arr[2]) == arr[0] * arr[0] + arr[1] * arr[1]) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 104, 8 ], [ 104, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 37, 47 ], [ 47, 48 ], [ 48, 49 ], [ 37, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 36, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 36, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 63, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 63, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 9, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "\nimport java.util.Arrays;\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\tint firstNumber = scan.nextInt();\n\t\tint i[] = new int[3];\n\t\tfor (int k = 0; k < firstNumber; k++) {\n\t\t\tfor (int j = 0; j < i.length; j++) {\n\t\t\t\ti[j] = scan.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(i);\n\t\t\tif ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n}", "import java.util.Arrays;", "Arrays", "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\tint firstNumber = scan.nextInt();\n\t\tint i[] = new int[3];\n\t\tfor (int k = 0; k < firstNumber; k++) {\n\t\t\tfor (int j = 0; j < i.length; j++) {\n\t\t\t\ti[j] = scan.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(i);\n\t\t\tif ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint firstNumber = scan.nextInt();\n\t\tint i[] = new int[3];\n\t\tfor (int k = 0; k < firstNumber; k++) {\n\t\t\tfor (int j = 0; j < i.length; j++) {\n\t\t\t\ti[j] = scan.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(i);\n\t\t\tif ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint firstNumber = scan.nextInt();\n\t\tint i[] = new int[3];\n\t\tfor (int k = 0; k < firstNumber; k++) {\n\t\t\tfor (int j = 0; j < i.length; j++) {\n\t\t\t\ti[j] = scan.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(i);\n\t\t\tif ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int firstNumber = scan.nextInt();", "firstNumber", "scan.nextInt()", "scan.nextInt", "scan", "int i[] = new int[3];", "i", "new int[3]", "3", "for (int k = 0; k < firstNumber; k++) {\n\t\t\tfor (int j = 0; j < i.length; j++) {\n\t\t\t\ti[j] = scan.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(i);\n\t\t\tif ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < firstNumber", "k", "firstNumber", "k++", "k++", "k", "{\n\t\t\tfor (int j = 0; j < i.length; j++) {\n\t\t\t\ti[j] = scan.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(i);\n\t\t\tif ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 0; j < i.length; j++) {\n\t\t\t\ti[j] = scan.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(i);\n\t\t\tif ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "for (int j = 0; j < i.length; j++) {\n\t\t\t\ti[j] = scan.nextInt();\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < i.length", "j", "i.length", "i", "i.length", "j++", "j++", "j", "{\n\t\t\t\ti[j] = scan.nextInt();\n\t\t\t}", "{\n\t\t\t\ti[j] = scan.nextInt();\n\t\t\t}", "i[j] = scan.nextInt()", "i[j]", "i", "j", "scan.nextInt()", "scan.nextInt", "scan", "Arrays.sort(i)", "Arrays.sort", "Arrays", "i", "if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "(i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])", "(i[2] * i[2])", "i[2]", "i", "2", "i[2]", "i", "2", "(i[1] * i[1]) + (i[0] * i[0])", "(i[1] * i[1])", "i[1]", "i", "1", "i[1]", "i", "1", "(i[0] * i[0])", "i[0]", "i", "0", "i[0]", "i", "0", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint firstNumber = scan.nextInt();\n\t\tint i[] = new int[3];\n\t\tfor (int k = 0; k < firstNumber; k++) {\n\t\t\tfor (int j = 0; j < i.length; j++) {\n\t\t\t\ti[j] = scan.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(i);\n\t\t\tif ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\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\tint firstNumber = scan.nextInt();\n\t\tint i[] = new int[3];\n\t\tfor (int k = 0; k < firstNumber; k++) {\n\t\t\tfor (int j = 0; j < i.length; j++) {\n\t\t\t\ti[j] = scan.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(i);\n\t\t\tif ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int firstNumber = scan.nextInt(); int i[] = new int[3]; for (int k = 0; k < firstNumber; k++) { for (int j = 0; j < i.length; j++) { i[j] = scan.nextInt(); } Arrays.sort(i); if ((i[2] * i[2]) == (i[1] * i[1]) + (i[0] * i[0])) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 0, 18, 13, 13, 4, 18, 13, 13, 17, 4, 18, 13, 13, 14, 2, 2, 18, 13, 17, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 17, 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 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 44, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 41, 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 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 66, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 79, 83 ], [ 41, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 41, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 94, 96 ], [ 89, 97 ], [ 97, 98 ], [ 97, 99 ], [ 88, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 88, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 15, 114 ], [ 114, 115 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\nclass Main {\n\tpublic static void main(String[] arg) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint DATE_QUANTITY = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < DATE_QUANTITY; i++) {\n\t\t\tString[] splitedLine = br.readLine().split(\" \");\n\t\t\tint[] val = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tint tmp = Integer.parseInt(splitedLine[j]);\n\t\t\t\tval[j] = (int) Math.pow(tmp, 2);\n\t\t\t}\n\t\t\tArrays.sort(val);\n\t\t\tif ((val[0] + val[1]) == val[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\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.Arrays;", "Arrays", "java.util", "class Main {\n\tpublic static void main(String[] arg) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint DATE_QUANTITY = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < DATE_QUANTITY; i++) {\n\t\t\tString[] splitedLine = br.readLine().split(\" \");\n\t\t\tint[] val = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tint tmp = Integer.parseInt(splitedLine[j]);\n\t\t\t\tval[j] = (int) Math.pow(tmp, 2);\n\t\t\t}\n\t\t\tArrays.sort(val);\n\t\t\tif ((val[0] + val[1]) == val[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] arg) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint DATE_QUANTITY = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < DATE_QUANTITY; i++) {\n\t\t\tString[] splitedLine = br.readLine().split(\" \");\n\t\t\tint[] val = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tint tmp = Integer.parseInt(splitedLine[j]);\n\t\t\t\tval[j] = (int) Math.pow(tmp, 2);\n\t\t\t}\n\t\t\tArrays.sort(val);\n\t\t\tif ((val[0] + val[1]) == val[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint DATE_QUANTITY = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < DATE_QUANTITY; i++) {\n\t\t\tString[] splitedLine = br.readLine().split(\" \");\n\t\t\tint[] val = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tint tmp = Integer.parseInt(splitedLine[j]);\n\t\t\t\tval[j] = (int) Math.pow(tmp, 2);\n\t\t\t}\n\t\t\tArrays.sort(val);\n\t\t\tif ((val[0] + val[1]) == val[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\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 DATE_QUANTITY = Integer.parseInt(br.readLine());", "DATE_QUANTITY", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < DATE_QUANTITY; i++) {\n\t\t\tString[] splitedLine = br.readLine().split(\" \");\n\t\t\tint[] val = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tint tmp = Integer.parseInt(splitedLine[j]);\n\t\t\t\tval[j] = (int) Math.pow(tmp, 2);\n\t\t\t}\n\t\t\tArrays.sort(val);\n\t\t\tif ((val[0] + val[1]) == val[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < DATE_QUANTITY", "i", "DATE_QUANTITY", "i++", "i++", "i", "{\n\t\t\tString[] splitedLine = br.readLine().split(\" \");\n\t\t\tint[] val = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tint tmp = Integer.parseInt(splitedLine[j]);\n\t\t\t\tval[j] = (int) Math.pow(tmp, 2);\n\t\t\t}\n\t\t\tArrays.sort(val);\n\t\t\tif ((val[0] + val[1]) == val[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tString[] splitedLine = br.readLine().split(\" \");\n\t\t\tint[] val = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tint tmp = Integer.parseInt(splitedLine[j]);\n\t\t\t\tval[j] = (int) Math.pow(tmp, 2);\n\t\t\t}\n\t\t\tArrays.sort(val);\n\t\t\tif ((val[0] + val[1]) == val[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "String[] splitedLine = br.readLine().split(\" \");", "splitedLine", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] val = new int[3];", "val", "new int[3]", "3", "for (int j = 0; j < 3; j++) {\n\t\t\t\tint tmp = Integer.parseInt(splitedLine[j]);\n\t\t\t\tval[j] = (int) Math.pow(tmp, 2);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\tint tmp = Integer.parseInt(splitedLine[j]);\n\t\t\t\tval[j] = (int) Math.pow(tmp, 2);\n\t\t\t}", "{\n\t\t\t\tint tmp = Integer.parseInt(splitedLine[j]);\n\t\t\t\tval[j] = (int) Math.pow(tmp, 2);\n\t\t\t}", "int tmp = Integer.parseInt(splitedLine[j]);", "tmp", "Integer.parseInt(splitedLine[j])", "Integer.parseInt", "Integer", "splitedLine[j]", "splitedLine", "j", "val[j] = (int) Math.pow(tmp, 2)", "val[j]", "val", "j", "(int) Math.pow(tmp, 2)", "Math.pow", "Math", "tmp", "2", "Arrays.sort(val)", "Arrays.sort", "Arrays", "val", "if ((val[0] + val[1]) == val[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "(val[0] + val[1]) == val[2]", "(val[0] + val[1])", "val[0]", "val", "0", "val[1]", "val", "1", "val[2]", "val", "2", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] arg", "arg" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; class Main { public static void main(String[] arg) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int DATE_QUANTITY = Integer.parseInt(br.readLine()); for (int i = 0; i < DATE_QUANTITY; i++) { String[] splitedLine = br.readLine().split(" "); int[] val = new int[3]; for (int j = 0; j < 3; j++) { int tmp = Integer.parseInt(splitedLine[j]); val[j] = (int) Math.pow(tmp, 2); } Arrays.sort(val); if ((val[0] + val[1]) == val[2]) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 30, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 2, 13, 13, 2, 13, 13, 30, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 2, 13, 13, 2, 13, 13, 30, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 196, 11 ], [ 196, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 14, 19 ], [ 19, 20 ], [ 14, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 14, 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 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 57, 61 ], [ 49, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 67, 69 ], [ 49, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 75, 76 ], [ 75, 77 ], [ 49, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 83, 85 ], [ 49, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 95, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 95, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 86, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 127, 129 ], [ 122, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 140, 141 ], [ 140, 142 ], [ 131, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 131, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 151, 156 ], [ 122, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 163, 164 ], [ 163, 165 ], [ 158, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 176, 177 ], [ 176, 178 ], [ 167, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 180, 185 ], [ 167, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 189, 191 ], [ 187, 192 ], [ 12, 193 ], [ 193, 194 ], [ 0, 195 ], [ 195, 196 ], [ 195, 197 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//variety\n\t\tString str;\n\t\tint a, b, c;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine();\n\t\tint N = Integer.parseInt(str);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] num = str.split(\" \", 0);\n\t\t\ta = Integer.parseInt(num[0]);\n\t\t\tb = Integer.parseInt(num[1]);\n\t\t\tc = Integer.parseInt(num[2]);\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a * a == b * b + c * c) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (b >= a && b >= c) {\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//variety\n\t\tString str;\n\t\tint a, b, c;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine();\n\t\tint N = Integer.parseInt(str);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] num = str.split(\" \", 0);\n\t\t\ta = Integer.parseInt(num[0]);\n\t\t\tb = Integer.parseInt(num[1]);\n\t\t\tc = Integer.parseInt(num[2]);\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a * a == b * b + c * c) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (b >= a && b >= c) {\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t//variety\n\t\tString str;\n\t\tint a, b, c;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine();\n\t\tint N = Integer.parseInt(str);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] num = str.split(\" \", 0);\n\t\t\ta = Integer.parseInt(num[0]);\n\t\t\tb = Integer.parseInt(num[1]);\n\t\t\tc = Integer.parseInt(num[2]);\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a * a == b * b + c * c) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (b >= a && b >= c) {\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\t//variety\n\t\tString str;\n\t\tint a, b, c;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine();\n\t\tint N = Integer.parseInt(str);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] num = str.split(\" \", 0);\n\t\t\ta = Integer.parseInt(num[0]);\n\t\t\tb = Integer.parseInt(num[1]);\n\t\t\tc = Integer.parseInt(num[2]);\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a * a == b * b + c * c) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (b >= a && b >= c) {\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "String str;", "str", "int a", "a", "b", "b", "c;", "c", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "int N = Integer.parseInt(str);", "N", "Integer.parseInt(str)", "Integer.parseInt", "Integer", "str", "for (int i = 0; i < N; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] num = str.split(\" \", 0);\n\t\t\ta = Integer.parseInt(num[0]);\n\t\t\tb = Integer.parseInt(num[1]);\n\t\t\tc = Integer.parseInt(num[2]);\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a * a == b * b + c * c) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (b >= a && b >= c) {\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tstr = br.readLine();\n\t\t\tString[] num = str.split(\" \", 0);\n\t\t\ta = Integer.parseInt(num[0]);\n\t\t\tb = Integer.parseInt(num[1]);\n\t\t\tc = Integer.parseInt(num[2]);\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a * a == b * b + c * c) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (b >= a && b >= c) {\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tstr = br.readLine();\n\t\t\tString[] num = str.split(\" \", 0);\n\t\t\ta = Integer.parseInt(num[0]);\n\t\t\tb = Integer.parseInt(num[1]);\n\t\t\tc = Integer.parseInt(num[2]);\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a * a == b * b + c * c) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (b >= a && b >= c) {\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "String[] num = str.split(\" \", 0);", "num", "str.split(\" \", 0)", "str.split", "str", "\" \"", "0", "a = Integer.parseInt(num[0])", "a", "Integer.parseInt(num[0])", "Integer.parseInt", "Integer", "num[0]", "num", "0", "b = Integer.parseInt(num[1])", "b", "Integer.parseInt(num[1])", "Integer.parseInt", "Integer", "num[1]", "num", "1", "c = Integer.parseInt(num[2])", "c", "Integer.parseInt(num[2])", "Integer.parseInt", "Integer", "num[2]", "num", "2", "if (a >= b && a >= c) {\n\t\t\t\tif (a * a == b * b + c * c) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (b >= a && b >= c) {\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "a >= b && a >= c", "a >= b", "a", "b", "a >= c", "a", "c", "{\n\t\t\t\tif (a * a == b * b + c * c) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t}", "if (a * a == b * b + c * c) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}", "a * a == b * b + c * c", "a * a", "a", "a", "b * b + c * c", "b * b", "b", "b", "c * c", "c", "c", "{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "{\n\t\t\t\tif (b >= a && b >= c) {\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "if (b >= a && b >= c) {\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "b >= a && b >= c", "b >= a", "b", "a", "b >= c", "b", "c", "{\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}", "if (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}", "b * b == a * a + c * c", "b * b", "b", "b", "a * a + c * c", "a * a", "a", "a", "c * c", "c", "c", "{\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "{\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}", "if (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "c >= a && c >= b", "c >= a", "c", "a", "c >= b", "c", "b", "{\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "if (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}", "c * c == a * a + b * b", "c * c", "c", "c", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "{\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//variety\n\t\tString str;\n\t\tint a, b, c;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine();\n\t\tint N = Integer.parseInt(str);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] num = str.split(\" \", 0);\n\t\t\ta = Integer.parseInt(num[0]);\n\t\t\tb = Integer.parseInt(num[1]);\n\t\t\tc = Integer.parseInt(num[2]);\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a * a == b * b + c * c) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (b >= a && b >= c) {\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t//variety\n\t\tString str;\n\t\tint a, b, c;\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine();\n\t\tint N = Integer.parseInt(str);\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] num = str.split(\" \", 0);\n\t\t\ta = Integer.parseInt(num[0]);\n\t\t\tb = Integer.parseInt(num[1]);\n\t\t\tc = Integer.parseInt(num[2]);\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a * a == b * b + c * c) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else {\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tif (b >= a && b >= c) {\n\t\t\t\t\tif (b * b == a * a + c * c) {\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\tif (c >= a && c >= b) {\n\t\t\t\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws IOException { //variety String str; int a, b, c; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); str = br.readLine(); int N = Integer.parseInt(str); for (int i = 0; i < N; i++) { str = br.readLine(); String[] num = str.split(" ", 0); a = Integer.parseInt(num[0]); b = Integer.parseInt(num[1]); c = Integer.parseInt(num[2]); if (a >= b && a >= c) { if (a * a == b * b + c * c) { System.out.println("YES"); } else { System.out.println("NO"); } } else { if (b >= a && b >= c) { if (b * b == a * a + c * c) { System.out.println("YES"); } else { System.out.println("NO"); } } else { if (c >= a && c >= b) { if (c * c == a * a + b * b) { System.out.println("YES"); } else { System.out.println("NO"); } } } } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 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, 14, 2, 18, 13, 17, 18, 13, 17, 30, 41, 13, 18, 13, 17, 0, 18, 13, 17, 18, 13, 17, 0, 18, 13, 17, 13, 14, 2, 18, 13, 17, 18, 13, 17, 30, 41, 13, 18, 13, 17, 0, 18, 13, 17, 18, 13, 17, 0, 18, 13, 17, 13, 14, 2, 2, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 168, 8 ], [ 168, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 20, 31 ], [ 31, 32 ], [ 32, 33 ], [ 20, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 38, 43 ], [ 35, 44 ], [ 44, 45 ], [ 44, 46 ], [ 47, 48 ], [ 47, 49 ], [ 35, 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 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 72, 73 ], [ 72, 74 ], [ 35, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 86, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 83, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 35, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 101, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 109, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 109, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 35, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 129, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 140, 141 ], [ 140, 142 ], [ 137, 143 ], [ 128, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 147, 148 ], [ 147, 149 ], [ 144, 150 ], [ 127, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 127, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 9, 165 ], [ 165, 166 ], [ 0, 167 ], [ 167, 168 ], [ 167, 169 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// データセット数を取得\n\t\tString lineCountStr = br.readLine();\n\n\t\t// 各データセットを処理\n\t\tfor (int lineCount = 0; lineCount < Integer.parseInt(lineCountStr); lineCount ++) {\n\n\t\t\tString[] dataSetStr = br.readLine().split(\" \");\n\t\t\tint[] dataSet = new int[dataSetStr.length];\n\t\t\tfor (int i = 0; i < dataSetStr.length; i ++) {\n\t\t\t\tdataSet[i] = Integer.parseInt(dataSetStr[i]);\n\t\t\t}\n\n\t\t\t// 一番大きい値が右端になるようにソート\n\t\t\tif (dataSet[0] > dataSet[1]) {\n\t\t\t\tint tmp = dataSet[0];\n\t\t\t\tdataSet[0] = dataSet[1];\n\t\t\t\tdataSet[1] = tmp;\n\t\t\t}\n\t\t\tif (dataSet[1] > dataSet[2]) {\n\t\t\t\tint tmp = dataSet[1];\n\t\t\t\tdataSet[1] = dataSet[2];\n\t\t\t\tdataSet[2] = tmp;\n\t\t\t}\n\n\t\t\t// 直角三角形であれば \"YES\", それ以外であれば \"NO\" を出力\n\t\t\tif (Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2) == Math.pow(dataSet[2], 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}\n", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// データセット数を取得\n\t\tString lineCountStr = br.readLine();\n\n\t\t// 各データセットを処理\n\t\tfor (int lineCount = 0; lineCount < Integer.parseInt(lineCountStr); lineCount ++) {\n\n\t\t\tString[] dataSetStr = br.readLine().split(\" \");\n\t\t\tint[] dataSet = new int[dataSetStr.length];\n\t\t\tfor (int i = 0; i < dataSetStr.length; i ++) {\n\t\t\t\tdataSet[i] = Integer.parseInt(dataSetStr[i]);\n\t\t\t}\n\n\t\t\t// 一番大きい値が右端になるようにソート\n\t\t\tif (dataSet[0] > dataSet[1]) {\n\t\t\t\tint tmp = dataSet[0];\n\t\t\t\tdataSet[0] = dataSet[1];\n\t\t\t\tdataSet[1] = tmp;\n\t\t\t}\n\t\t\tif (dataSet[1] > dataSet[2]) {\n\t\t\t\tint tmp = dataSet[1];\n\t\t\t\tdataSet[1] = dataSet[2];\n\t\t\t\tdataSet[2] = tmp;\n\t\t\t}\n\n\t\t\t// 直角三角形であれば \"YES\", それ以外であれば \"NO\" を出力\n\t\t\tif (Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2) == Math.pow(dataSet[2], 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// データセット数を取得\n\t\tString lineCountStr = br.readLine();\n\n\t\t// 各データセットを処理\n\t\tfor (int lineCount = 0; lineCount < Integer.parseInt(lineCountStr); lineCount ++) {\n\n\t\t\tString[] dataSetStr = br.readLine().split(\" \");\n\t\t\tint[] dataSet = new int[dataSetStr.length];\n\t\t\tfor (int i = 0; i < dataSetStr.length; i ++) {\n\t\t\t\tdataSet[i] = Integer.parseInt(dataSetStr[i]);\n\t\t\t}\n\n\t\t\t// 一番大きい値が右端になるようにソート\n\t\t\tif (dataSet[0] > dataSet[1]) {\n\t\t\t\tint tmp = dataSet[0];\n\t\t\t\tdataSet[0] = dataSet[1];\n\t\t\t\tdataSet[1] = tmp;\n\t\t\t}\n\t\t\tif (dataSet[1] > dataSet[2]) {\n\t\t\t\tint tmp = dataSet[1];\n\t\t\t\tdataSet[1] = dataSet[2];\n\t\t\t\tdataSet[2] = tmp;\n\t\t\t}\n\n\t\t\t// 直角三角形であれば \"YES\", それ以外であれば \"NO\" を出力\n\t\t\tif (Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2) == Math.pow(dataSet[2], 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// データセット数を取得\n\t\tString lineCountStr = br.readLine();\n\n\t\t// 各データセットを処理\n\t\tfor (int lineCount = 0; lineCount < Integer.parseInt(lineCountStr); lineCount ++) {\n\n\t\t\tString[] dataSetStr = br.readLine().split(\" \");\n\t\t\tint[] dataSet = new int[dataSetStr.length];\n\t\t\tfor (int i = 0; i < dataSetStr.length; i ++) {\n\t\t\t\tdataSet[i] = Integer.parseInt(dataSetStr[i]);\n\t\t\t}\n\n\t\t\t// 一番大きい値が右端になるようにソート\n\t\t\tif (dataSet[0] > dataSet[1]) {\n\t\t\t\tint tmp = dataSet[0];\n\t\t\t\tdataSet[0] = dataSet[1];\n\t\t\t\tdataSet[1] = tmp;\n\t\t\t}\n\t\t\tif (dataSet[1] > dataSet[2]) {\n\t\t\t\tint tmp = dataSet[1];\n\t\t\t\tdataSet[1] = dataSet[2];\n\t\t\t\tdataSet[2] = tmp;\n\t\t\t}\n\n\t\t\t// 直角三角形であれば \"YES\", それ以外であれば \"NO\" を出力\n\t\t\tif (Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2) == Math.pow(dataSet[2], 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\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 lineCountStr = br.readLine();", "lineCountStr", "br.readLine()", "br.readLine", "br", "for (int lineCount = 0; lineCount < Integer.parseInt(lineCountStr); lineCount ++) {\n\n\t\t\tString[] dataSetStr = br.readLine().split(\" \");\n\t\t\tint[] dataSet = new int[dataSetStr.length];\n\t\t\tfor (int i = 0; i < dataSetStr.length; i ++) {\n\t\t\t\tdataSet[i] = Integer.parseInt(dataSetStr[i]);\n\t\t\t}\n\n\t\t\t// 一番大きい値が右端になるようにソート\n\t\t\tif (dataSet[0] > dataSet[1]) {\n\t\t\t\tint tmp = dataSet[0];\n\t\t\t\tdataSet[0] = dataSet[1];\n\t\t\t\tdataSet[1] = tmp;\n\t\t\t}\n\t\t\tif (dataSet[1] > dataSet[2]) {\n\t\t\t\tint tmp = dataSet[1];\n\t\t\t\tdataSet[1] = dataSet[2];\n\t\t\t\tdataSet[2] = tmp;\n\t\t\t}\n\n\t\t\t// 直角三角形であれば \"YES\", それ以外であれば \"NO\" を出力\n\t\t\tif (Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2) == Math.pow(dataSet[2], 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int lineCount = 0;", "int lineCount = 0;", "lineCount", "0", "lineCount < Integer.parseInt(lineCountStr)", "lineCount", "Integer.parseInt(lineCountStr)", "Integer.parseInt", "Integer", "lineCountStr", "lineCount ++", "lineCount ++", "lineCount", "{\n\n\t\t\tString[] dataSetStr = br.readLine().split(\" \");\n\t\t\tint[] dataSet = new int[dataSetStr.length];\n\t\t\tfor (int i = 0; i < dataSetStr.length; i ++) {\n\t\t\t\tdataSet[i] = Integer.parseInt(dataSetStr[i]);\n\t\t\t}\n\n\t\t\t// 一番大きい値が右端になるようにソート\n\t\t\tif (dataSet[0] > dataSet[1]) {\n\t\t\t\tint tmp = dataSet[0];\n\t\t\t\tdataSet[0] = dataSet[1];\n\t\t\t\tdataSet[1] = tmp;\n\t\t\t}\n\t\t\tif (dataSet[1] > dataSet[2]) {\n\t\t\t\tint tmp = dataSet[1];\n\t\t\t\tdataSet[1] = dataSet[2];\n\t\t\t\tdataSet[2] = tmp;\n\t\t\t}\n\n\t\t\t// 直角三角形であれば \"YES\", それ以外であれば \"NO\" を出力\n\t\t\tif (Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2) == Math.pow(dataSet[2], 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\n\t\t\tString[] dataSetStr = br.readLine().split(\" \");\n\t\t\tint[] dataSet = new int[dataSetStr.length];\n\t\t\tfor (int i = 0; i < dataSetStr.length; i ++) {\n\t\t\t\tdataSet[i] = Integer.parseInt(dataSetStr[i]);\n\t\t\t}\n\n\t\t\t// 一番大きい値が右端になるようにソート\n\t\t\tif (dataSet[0] > dataSet[1]) {\n\t\t\t\tint tmp = dataSet[0];\n\t\t\t\tdataSet[0] = dataSet[1];\n\t\t\t\tdataSet[1] = tmp;\n\t\t\t}\n\t\t\tif (dataSet[1] > dataSet[2]) {\n\t\t\t\tint tmp = dataSet[1];\n\t\t\t\tdataSet[1] = dataSet[2];\n\t\t\t\tdataSet[2] = tmp;\n\t\t\t}\n\n\t\t\t// 直角三角形であれば \"YES\", それ以外であれば \"NO\" を出力\n\t\t\tif (Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2) == Math.pow(dataSet[2], 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "String[] dataSetStr = br.readLine().split(\" \");", "dataSetStr", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] dataSet = new int[dataSetStr.length];", "dataSet", "new int[dataSetStr.length]", "dataSetStr.length", "dataSetStr", "dataSetStr.length", "for (int i = 0; i < dataSetStr.length; i ++) {\n\t\t\t\tdataSet[i] = Integer.parseInt(dataSetStr[i]);\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < dataSetStr.length", "i", "dataSetStr.length", "dataSetStr", "dataSetStr.length", "i ++", "i ++", "i", "{\n\t\t\t\tdataSet[i] = Integer.parseInt(dataSetStr[i]);\n\t\t\t}", "{\n\t\t\t\tdataSet[i] = Integer.parseInt(dataSetStr[i]);\n\t\t\t}", "dataSet[i] = Integer.parseInt(dataSetStr[i])", "dataSet[i]", "dataSet", "i", "Integer.parseInt(dataSetStr[i])", "Integer.parseInt", "Integer", "dataSetStr[i]", "dataSetStr", "i", "if (dataSet[0] > dataSet[1]) {\n\t\t\t\tint tmp = dataSet[0];\n\t\t\t\tdataSet[0] = dataSet[1];\n\t\t\t\tdataSet[1] = tmp;\n\t\t\t}", "dataSet[0] > dataSet[1]", "dataSet[0]", "dataSet", "0", "dataSet[1]", "dataSet", "1", "{\n\t\t\t\tint tmp = dataSet[0];\n\t\t\t\tdataSet[0] = dataSet[1];\n\t\t\t\tdataSet[1] = tmp;\n\t\t\t}", "int tmp = dataSet[0];", "tmp", "dataSet[0]", "dataSet", "0", "dataSet[0] = dataSet[1]", "dataSet[0]", "dataSet", "0", "dataSet[1]", "dataSet", "1", "dataSet[1] = tmp", "dataSet[1]", "dataSet", "1", "tmp", "if (dataSet[1] > dataSet[2]) {\n\t\t\t\tint tmp = dataSet[1];\n\t\t\t\tdataSet[1] = dataSet[2];\n\t\t\t\tdataSet[2] = tmp;\n\t\t\t}", "dataSet[1] > dataSet[2]", "dataSet[1]", "dataSet", "1", "dataSet[2]", "dataSet", "2", "{\n\t\t\t\tint tmp = dataSet[1];\n\t\t\t\tdataSet[1] = dataSet[2];\n\t\t\t\tdataSet[2] = tmp;\n\t\t\t}", "int tmp = dataSet[1];", "tmp", "dataSet[1]", "dataSet", "1", "dataSet[1] = dataSet[2]", "dataSet[1]", "dataSet", "1", "dataSet[2]", "dataSet", "2", "dataSet[2] = tmp", "dataSet[2]", "dataSet", "2", "tmp", "if (Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2) == Math.pow(dataSet[2], 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2) == Math.pow(dataSet[2], 2)", "Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2)", "Math.pow(dataSet[0], 2)", "Math.pow", "Math", "dataSet[0]", "dataSet", "0", "2", "Math.pow(dataSet[1], 2)", "Math.pow", "Math", "dataSet[1]", "dataSet", "1", "2", "Math.pow(dataSet[2], 2)", "Math.pow", "Math", "dataSet[2]", "dataSet", "2", "2", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// データセット数を取得\n\t\tString lineCountStr = br.readLine();\n\n\t\t// 各データセットを処理\n\t\tfor (int lineCount = 0; lineCount < Integer.parseInt(lineCountStr); lineCount ++) {\n\n\t\t\tString[] dataSetStr = br.readLine().split(\" \");\n\t\t\tint[] dataSet = new int[dataSetStr.length];\n\t\t\tfor (int i = 0; i < dataSetStr.length; i ++) {\n\t\t\t\tdataSet[i] = Integer.parseInt(dataSetStr[i]);\n\t\t\t}\n\n\t\t\t// 一番大きい値が右端になるようにソート\n\t\t\tif (dataSet[0] > dataSet[1]) {\n\t\t\t\tint tmp = dataSet[0];\n\t\t\t\tdataSet[0] = dataSet[1];\n\t\t\t\tdataSet[1] = tmp;\n\t\t\t}\n\t\t\tif (dataSet[1] > dataSet[2]) {\n\t\t\t\tint tmp = dataSet[1];\n\t\t\t\tdataSet[1] = dataSet[2];\n\t\t\t\tdataSet[2] = tmp;\n\t\t\t}\n\n\t\t\t// 直角三角形であれば \"YES\", それ以外であれば \"NO\" を出力\n\t\t\tif (Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2) == Math.pow(dataSet[2], 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// データセット数を取得\n\t\tString lineCountStr = br.readLine();\n\n\t\t// 各データセットを処理\n\t\tfor (int lineCount = 0; lineCount < Integer.parseInt(lineCountStr); lineCount ++) {\n\n\t\t\tString[] dataSetStr = br.readLine().split(\" \");\n\t\t\tint[] dataSet = new int[dataSetStr.length];\n\t\t\tfor (int i = 0; i < dataSetStr.length; i ++) {\n\t\t\t\tdataSet[i] = Integer.parseInt(dataSetStr[i]);\n\t\t\t}\n\n\t\t\t// 一番大きい値が右端になるようにソート\n\t\t\tif (dataSet[0] > dataSet[1]) {\n\t\t\t\tint tmp = dataSet[0];\n\t\t\t\tdataSet[0] = dataSet[1];\n\t\t\t\tdataSet[1] = tmp;\n\t\t\t}\n\t\t\tif (dataSet[1] > dataSet[2]) {\n\t\t\t\tint tmp = dataSet[1];\n\t\t\t\tdataSet[1] = dataSet[2];\n\t\t\t\tdataSet[2] = tmp;\n\t\t\t}\n\n\t\t\t// 直角三角形であれば \"YES\", それ以外であれば \"NO\" を出力\n\t\t\tif (Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2) == Math.pow(dataSet[2], 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\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 lineCountStr = br.readLine(); // 各データセットを処理 for (int lineCount = 0; lineCount < Integer.parseInt(lineCountStr); lineCount ++) { String[] dataSetStr = br.readLine().split(" "); int[] dataSet = new int[dataSetStr.length]; for (int i = 0; i < dataSetStr.length; i ++) { dataSet[i] = Integer.parseInt(dataSetStr[i]); } // 一番大きい値が右端になるようにソート if (dataSet[0] > dataSet[1]) { int tmp = dataSet[0]; dataSet[0] = dataSet[1]; dataSet[1] = tmp; } if (dataSet[1] > dataSet[2]) { int tmp = dataSet[1]; dataSet[1] = dataSet[2]; dataSet[2] = tmp; } // 直角三角形であれば "YES", それ以外であれば "NO" を出力 if (Math.pow(dataSet[0], 2) + Math.pow(dataSet[1], 2) == Math.pow(dataSet[2], 2)) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 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, 38, 5, 13, 30, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 14, 2, 18, 13, 17, 18, 13, 13, 30, 41, 13, 18, 13, 17, 0, 18, 13, 17, 18, 13, 13, 0, 18, 13, 13, 13, 14, 2, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 0, 18, 13, 13, 17, 30, 0, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 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 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 48, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 41, 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 ], [ 67, 69 ], [ 69, 70 ], [ 70, 71 ], [ 66, 72 ], [ 72, 73 ], [ 72, 74 ], [ 66, 75 ], [ 75, 76 ], [ 75, 77 ], [ 66, 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 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 99, 100 ], [ 100, 101 ], [ 91, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 107, 109 ], [ 102, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 113, 115 ], [ 110, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 120, 122 ], [ 110, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 66, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 134, 136 ], [ 129, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 138, 142 ], [ 142, 143 ], [ 142, 144 ], [ 137, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 149, 151 ], [ 128, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 128, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 159, 163 ], [ 41, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 169, 170 ], [ 169, 171 ], [ 164, 172 ], [ 172, 173 ], [ 173, 174 ], [ 164, 175 ], [ 176, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 177, 182 ], [ 182, 183 ], [ 182, 184 ], [ 27, 185 ], [ 185, 186 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\nimport java.lang.Exception;\nimport java.lang.Integer;\nimport java.lang.String;\nimport java.lang.System;\nimport java.util.StringTokenizer;\n\nclass Main {\n public static void main(String[] a) throws IOException {\n java.io.BufferedReader r = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));\n\n try {\n int count = Integer.parseInt(r.readLine());\n String[] ans = new String[count];\n\n for(int i = 0; i < count; i++) {\n String s = r.readLine();\n StringTokenizer st = new StringTokenizer(s);\n int num[] = new int[4];\n for(int j = 0; j < 3;j++) {\n num[j] = Integer.parseInt(st.nextToken());\n if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }\n }\n if ( num[0] * num[0] == num[1] * num[1] + num[2] * num[2]) {\n ans[i] = \"YES\";\n } else {\n ans[i] = \"NO\";\n }\n }\n\n for(int i = 0; i < count; i++) {\n System.out.println(ans[i]);\n }\n } catch (Exception ex) {\n System.exit(0);\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.lang.Exception;", "Exception", "java.lang", "import java.lang.Integer;", "Integer", "java.lang", "import java.lang.String;", "String", "java.lang", "import java.lang.System;", "System", "java.lang", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "class Main {\n public static void main(String[] a) throws IOException {\n java.io.BufferedReader r = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));\n\n try {\n int count = Integer.parseInt(r.readLine());\n String[] ans = new String[count];\n\n for(int i = 0; i < count; i++) {\n String s = r.readLine();\n StringTokenizer st = new StringTokenizer(s);\n int num[] = new int[4];\n for(int j = 0; j < 3;j++) {\n num[j] = Integer.parseInt(st.nextToken());\n if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }\n }\n if ( num[0] * num[0] == num[1] * num[1] + num[2] * num[2]) {\n ans[i] = \"YES\";\n } else {\n ans[i] = \"NO\";\n }\n }\n\n for(int i = 0; i < count; i++) {\n System.out.println(ans[i]);\n }\n } catch (Exception ex) {\n System.exit(0);\n }\n }\n}", "Main", "public static void main(String[] a) throws IOException {\n java.io.BufferedReader r = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));\n\n try {\n int count = Integer.parseInt(r.readLine());\n String[] ans = new String[count];\n\n for(int i = 0; i < count; i++) {\n String s = r.readLine();\n StringTokenizer st = new StringTokenizer(s);\n int num[] = new int[4];\n for(int j = 0; j < 3;j++) {\n num[j] = Integer.parseInt(st.nextToken());\n if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }\n }\n if ( num[0] * num[0] == num[1] * num[1] + num[2] * num[2]) {\n ans[i] = \"YES\";\n } else {\n ans[i] = \"NO\";\n }\n }\n\n for(int i = 0; i < count; i++) {\n System.out.println(ans[i]);\n }\n } catch (Exception ex) {\n System.exit(0);\n }\n }", "main", "{\n java.io.BufferedReader r = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));\n\n try {\n int count = Integer.parseInt(r.readLine());\n String[] ans = new String[count];\n\n for(int i = 0; i < count; i++) {\n String s = r.readLine();\n StringTokenizer st = new StringTokenizer(s);\n int num[] = new int[4];\n for(int j = 0; j < 3;j++) {\n num[j] = Integer.parseInt(st.nextToken());\n if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }\n }\n if ( num[0] * num[0] == num[1] * num[1] + num[2] * num[2]) {\n ans[i] = \"YES\";\n } else {\n ans[i] = \"NO\";\n }\n }\n\n for(int i = 0; i < count; i++) {\n System.out.println(ans[i]);\n }\n } catch (Exception ex) {\n System.exit(0);\n }\n }", "java.io.BufferedReader r = new java.io.BufferedReader(new java.io.InputStreamReader(System.in));", "r", "new java.io.BufferedReader(new java.io.InputStreamReader(System.in))", "try {\n int count = Integer.parseInt(r.readLine());\n String[] ans = new String[count];\n\n for(int i = 0; i < count; i++) {\n String s = r.readLine();\n StringTokenizer st = new StringTokenizer(s);\n int num[] = new int[4];\n for(int j = 0; j < 3;j++) {\n num[j] = Integer.parseInt(st.nextToken());\n if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }\n }\n if ( num[0] * num[0] == num[1] * num[1] + num[2] * num[2]) {\n ans[i] = \"YES\";\n } else {\n ans[i] = \"NO\";\n }\n }\n\n for(int i = 0; i < count; i++) {\n System.out.println(ans[i]);\n }\n } catch (Exception ex) {\n System.exit(0);\n }", "catch (Exception ex) {\n System.exit(0);\n }", "Exception ex", "{\n System.exit(0);\n }", "System.exit(0)", "System.exit", "System", "0", "{\n int count = Integer.parseInt(r.readLine());\n String[] ans = new String[count];\n\n for(int i = 0; i < count; i++) {\n String s = r.readLine();\n StringTokenizer st = new StringTokenizer(s);\n int num[] = new int[4];\n for(int j = 0; j < 3;j++) {\n num[j] = Integer.parseInt(st.nextToken());\n if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }\n }\n if ( num[0] * num[0] == num[1] * num[1] + num[2] * num[2]) {\n ans[i] = \"YES\";\n } else {\n ans[i] = \"NO\";\n }\n }\n\n for(int i = 0; i < count; i++) {\n System.out.println(ans[i]);\n }\n }", "int count = Integer.parseInt(r.readLine());", "count", "Integer.parseInt(r.readLine())", "Integer.parseInt", "Integer", "r.readLine()", "r.readLine", "r", "String[] ans = new String[count];", "ans", "new String[count]", "count", "for(int i = 0; i < count; i++) {\n String s = r.readLine();\n StringTokenizer st = new StringTokenizer(s);\n int num[] = new int[4];\n for(int j = 0; j < 3;j++) {\n num[j] = Integer.parseInt(st.nextToken());\n if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }\n }\n if ( num[0] * num[0] == num[1] * num[1] + num[2] * num[2]) {\n ans[i] = \"YES\";\n } else {\n ans[i] = \"NO\";\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n String s = r.readLine();\n StringTokenizer st = new StringTokenizer(s);\n int num[] = new int[4];\n for(int j = 0; j < 3;j++) {\n num[j] = Integer.parseInt(st.nextToken());\n if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }\n }\n if ( num[0] * num[0] == num[1] * num[1] + num[2] * num[2]) {\n ans[i] = \"YES\";\n } else {\n ans[i] = \"NO\";\n }\n }", "{\n String s = r.readLine();\n StringTokenizer st = new StringTokenizer(s);\n int num[] = new int[4];\n for(int j = 0; j < 3;j++) {\n num[j] = Integer.parseInt(st.nextToken());\n if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }\n }\n if ( num[0] * num[0] == num[1] * num[1] + num[2] * num[2]) {\n ans[i] = \"YES\";\n } else {\n ans[i] = \"NO\";\n }\n }", "String s = r.readLine();", "s", "r.readLine()", "r.readLine", "r", "StringTokenizer st = new StringTokenizer(s);", "st", "new StringTokenizer(s)", "int num[] = new int[4];", "num", "new int[4]", "4", "for(int j = 0; j < 3;j++) {\n num[j] = Integer.parseInt(st.nextToken());\n if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }\n }", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "{\n num[j] = Integer.parseInt(st.nextToken());\n if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }\n }", "{\n num[j] = Integer.parseInt(st.nextToken());\n if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }\n }", "num[j] = Integer.parseInt(st.nextToken())", "num[j]", "num", "j", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "if(num[0] < num[j]) {\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }", "num[0] < num[j]", "num[0]", "num", "0", "num[j]", "num", "j", "{\n int tmp = num[0];\n num[0] = num[j];\n num[j] = tmp;\n }", "int tmp = num[0];", "tmp", "num[0]", "num", "0", "num[0] = num[j]", "num[0]", "num", "0", "num[j]", "num", "j", "num[j] = tmp", "num[j]", "num", "j", "tmp", "if ( num[0] * num[0] == num[1] * num[1] + num[2] * num[2]) {\n ans[i] = \"YES\";\n } else {\n ans[i] = \"NO\";\n }", "num[0] * num[0] == num[1] * num[1] + num[2] * num[2]", "num[0] * num[0]", "num[0]", "num", "0", "num[0]", "num", "0", "num[1] * num[1] + num[2] * num[2]", "num[1] * num[1]", "num[1]", "num", "1", "num[1]", "num", "1", "num[2] * num[2]", "num[2]", "num", "2", "num[2]", "num", "2", "{\n ans[i] = \"YES\";\n }", "ans[i] = \"YES\"", "ans[i]", "ans", "i", "\"YES\"", "{\n ans[i] = \"NO\";\n }", "ans[i] = \"NO\"", "ans[i]", "ans", "i", "\"NO\"", "for(int i = 0; i < count; i++) {\n System.out.println(ans[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n System.out.println(ans[i]);\n }", "{\n System.out.println(ans[i]);\n }", "System.out.println(ans[i])", "System.out.println", "System.out", "System", "System.out", "ans[i]", "ans", "i", "String[] a", "a" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.IOException; import java.lang.Exception; import java.lang.Integer; import java.lang.String; import java.lang.System; import java.util.StringTokenizer; class Main { public static void main(String[] a) throws IOException { java.io.BufferedReader r = new java.io.BufferedReader(new java.io.InputStreamReader(System.in)); try { int count = Integer.parseInt(r.readLine()); String[] ans = new String[count]; for(int i = 0; i < count; i++) { String s = r.readLine(); StringTokenizer st = new StringTokenizer(s); int num[] = new int[4]; for(int j = 0; j < 3;j++) { num[j] = Integer.parseInt(st.nextToken()); if(num[0] < num[j]) { int tmp = num[0]; num[0] = num[j]; num[j] = tmp; } } if ( num[0] * num[0] == num[1] * num[1] + num[2] * num[2]) { ans[i] = "YES"; } else { ans[i] = "NO"; } } for(int i = 0; i < count; i++) { System.out.println(ans[i]); } } catch (Exception ex) { System.exit(0); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 2, 2, 18, 13, 13, 18, 13, 13, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 2, 2, 18, 13, 13, 18, 13, 13, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 165, 5 ], [ 165, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 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 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 41, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 8, 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 ], [ 78, 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 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 78, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 107, 109 ], [ 102, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 118, 122 ], [ 122, 123 ], [ 122, 124 ], [ 78, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 130, 132 ], [ 125, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 138, 140 ], [ 133, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 145, 146 ], [ 145, 147 ], [ 76, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 149, 154 ], [ 76, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 156, 161 ], [ 6, 162 ], [ 162, 163 ], [ 0, 164 ], [ 164, 165 ], [ 164, 166 ] ]
[ "import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[] a = new int[1000];\n\t\tint[] b = new int[1000];\n\t\tint[] c = new int[1000];\n\t\tfor(int i=0; i<N; i++){\n\t\t\ta[i] = sc.nextInt();\n\t\t\tb[i] = sc.nextInt();\n\t\t\tc[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i=0; i<N; i++){\n\t\t\tif(a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\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 sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[] a = new int[1000];\n\t\tint[] b = new int[1000];\n\t\tint[] c = new int[1000];\n\t\tfor(int i=0; i<N; i++){\n\t\t\ta[i] = sc.nextInt();\n\t\t\tb[i] = sc.nextInt();\n\t\t\tc[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i=0; i<N; i++){\n\t\t\tif(a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[] a = new int[1000];\n\t\tint[] b = new int[1000];\n\t\tint[] c = new int[1000];\n\t\tfor(int i=0; i<N; i++){\n\t\t\ta[i] = sc.nextInt();\n\t\t\tb[i] = sc.nextInt();\n\t\t\tc[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i=0; i<N; i++){\n\t\t\tif(a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[] a = new int[1000];\n\t\tint[] b = new int[1000];\n\t\tint[] c = new int[1000];\n\t\tfor(int i=0; i<N; i++){\n\t\t\ta[i] = sc.nextInt();\n\t\t\tb[i] = sc.nextInt();\n\t\t\tc[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i=0; i<N; i++){\n\t\t\tif(a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[] a = new int[1000];", "a", "new int[1000]", "1000", "int[] b = new int[1000];", "b", "new int[1000]", "1000", "int[] c = new int[1000];", "c", "new int[1000]", "1000", "for(int i=0; i<N; i++){\n\t\t\ta[i] = sc.nextInt();\n\t\t\tb[i] = sc.nextInt();\n\t\t\tc[i] = sc.nextInt();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\ta[i] = sc.nextInt();\n\t\t\tb[i] = sc.nextInt();\n\t\t\tc[i] = sc.nextInt();\n\t\t}", "{\n\t\t\ta[i] = sc.nextInt();\n\t\t\tb[i] = sc.nextInt();\n\t\t\tc[i] = sc.nextInt();\n\t\t}", "a[i] = sc.nextInt()", "a[i]", "a", "i", "sc.nextInt()", "sc.nextInt", "sc", "b[i] = sc.nextInt()", "b[i]", "b", "i", "sc.nextInt()", "sc.nextInt", "sc", "c[i] = sc.nextInt()", "c[i]", "c", "i", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0; i<N; i++){\n\t\t\tif(a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tif(a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tif(a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "if(a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])", "a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])", "a[i]*a[i] == (b[i]*b[i] + c[i]*c[i])", "a[i]*a[i]", "a[i]", "a", "i", "a[i]", "a", "i", "(b[i]*b[i] + c[i]*c[i])", "b[i]*b[i]", "b[i]", "b", "i", "b[i]", "b", "i", "c[i]*c[i]", "c[i]", "c", "i", "c[i]", "c", "i", "b[i]*b[i] == (a[i]*a[i] + c[i]*c[i])", "b[i]*b[i]", "b[i]", "b", "i", "b[i]", "b", "i", "(a[i]*a[i] + c[i]*c[i])", "a[i]*a[i]", "a[i]", "a", "i", "a[i]", "a", "i", "c[i]*c[i]", "c[i]", "c", "i", "c[i]", "c", "i", "c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])", "c[i]*c[i]", "c[i]", "c", "i", "c[i]", "c", "i", "(b[i]*b[i] + a[i]*a[i])", "b[i]*b[i]", "b[i]", "b", "i", "b[i]", "b", "i", "a[i]*a[i]", "a[i]", "a", "i", "a[i]", "a", "i", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[] a = new int[1000];\n\t\tint[] b = new int[1000];\n\t\tint[] c = new int[1000];\n\t\tfor(int i=0; i<N; i++){\n\t\t\ta[i] = sc.nextInt();\n\t\t\tb[i] = sc.nextInt();\n\t\t\tc[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i=0; i<N; i++){\n\t\t\tif(a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[] a = new int[1000];\n\t\tint[] b = new int[1000];\n\t\tint[] c = new int[1000];\n\t\tfor(int i=0; i<N; i++){\n\t\t\ta[i] = sc.nextInt();\n\t\t\tb[i] = sc.nextInt();\n\t\t\tc[i] = sc.nextInt();\n\t\t}\n\t\tfor(int i=0; i<N; i++){\n\t\t\tif(a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\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 sc = new Scanner(System.in); int N = sc.nextInt(); int[] a = new int[1000]; int[] b = new int[1000]; int[] c = new int[1000]; for(int i=0; i<N; i++){ a[i] = sc.nextInt(); b[i] = sc.nextInt(); c[i] = sc.nextInt(); } for(int i=0; i<N; i++){ if(a[i]*a[i] == (b[i]*b[i] + c[i]*c[i]) || b[i]*b[i] == (a[i]*a[i] + c[i]*c[i]) || c[i]*c[i] == (b[i]*b[i] + a[i]*a[i])){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 13, 41, 13, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 0, 13, 13, 41, 13, 18, 13, 17, 0, 18, 13, 17, 13, 0, 18, 13, 13, 13, 29, 13, 23, 13, 12, 13, 30, 14, 2, 18, 13, 13, 17, 30, 37, 20, 14, 2, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 207, 8 ], [ 207, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 12, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 19, 23 ], [ 23, 24 ], [ 23, 25 ], [ 19, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 32, 33 ], [ 19, 34 ], [ 34, 35 ], [ 34, 36 ], [ 19, 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 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 53, 58 ], [ 50, 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 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 50, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 9, 89 ], [ 89, 90 ], [ 207, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 93, 102 ], [ 102, 103 ], [ 102, 104 ], [ 93, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 112, 114 ], [ 105, 115 ], [ 115, 116 ], [ 116, 117 ], [ 105, 118 ], [ 119, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 120, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 126, 132 ], [ 132, 133 ], [ 132, 134 ], [ 93, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 137, 139 ], [ 93, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 93, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 93, 150 ], [ 150, 151 ], [ 91, 152 ], [ 152, 153 ], [ 207, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 157, 163 ], [ 163, 164 ], [ 164, 165 ], [ 156, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 168, 172 ], [ 172, 173 ], [ 172, 174 ], [ 167, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 176, 180 ], [ 180, 181 ], [ 180, 182 ], [ 175, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 187, 188 ], [ 187, 189 ], [ 166, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 191, 196 ], [ 166, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 198, 203 ], [ 154, 204 ], [ 204, 205 ], [ 0, 206 ], [ 206, 207 ], [ 206, 208 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n//public class Problem0003_IsItaRightTriangle {\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t//\tProblem0003_IsItaRightTriangle test = new Problem0003_IsItaRightTriangle();\n\t\t\tMain test = new Main();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint number = Integer.parseInt(reader.readLine());\n\t\t\tint[] sides = new int[3];\t//•Ó‚Í\"side\"‚炵‚¢\n\t\t\t\n\t\t\tfor(int i = 0; i < number; i++) {\t//‚±‚±‚©‚ç–{”Ô\n\t\t\t\tString[] textArray = reader.readLine().split(\" \");\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttest.showAnswer(test.getMax(sides));\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\tint[] getMax(int[] array) {\n\t\tint[] targetArray = array;\n\t\t\n\t\tint max = targetArray[0];\t//ƒ}ƒCƒiƒX‚̏ꍇ‚Í0‚ð‘ã“ü‚³‚ê‚邯•s“s‡\n\t\tint maxPosition = 0;\t\t//0‚ª‰Šú’l‚Ȃ͖̂¾‚ç‚©\n\t\tfor(int i = 1; i < targetArray.length; i++) {\n\t\t\tif(max < targetArray[i]) {\n\t\t\t\tmax = targetArray[i];\n\t\t\t\tmaxPosition = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint temporary = targetArray[0];\n\t\ttargetArray[0] = max;\n\t\ttargetArray[maxPosition] = temporary;\n\t\t\n\t\treturn targetArray;\n\t}\n\t//Å‘å’l‚ªˆê”Ô‘O‚É‚ ‚é”z—ñ‚ɑ΂µ‚āA’¼ŠpŽOŠpŒ`‚©‚Ç‚¤‚©“š‚¦‚ðo‚·B\n\tvoid showAnswer(int[] array) {\n\t\tif(array.length != 3) {\n\t\t\tthrow new IllegalArgumentException();\t//”O‚Ì‚½‚ß\n\t\t}\n\t\tif(array[0] * array[0] == array[1] * array[1] + array[2] * array[2]) {\n\t\t\tSystem.out.println(\"YES\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\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) {\n\t\ttry {\n\t\t//\tProblem0003_IsItaRightTriangle test = new Problem0003_IsItaRightTriangle();\n\t\t\tMain test = new Main();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint number = Integer.parseInt(reader.readLine());\n\t\t\tint[] sides = new int[3];\t//•Ó‚Í\"side\"‚炵‚¢\n\t\t\t\n\t\t\tfor(int i = 0; i < number; i++) {\t//‚±‚±‚©‚ç–{”Ô\n\t\t\t\tString[] textArray = reader.readLine().split(\" \");\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttest.showAnswer(test.getMax(sides));\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\tint[] getMax(int[] array) {\n\t\tint[] targetArray = array;\n\t\t\n\t\tint max = targetArray[0];\t//ƒ}ƒCƒiƒX‚̏ꍇ‚Í0‚ð‘ã“ü‚³‚ê‚邯•s“s‡\n\t\tint maxPosition = 0;\t\t//0‚ª‰Šú’l‚Ȃ͖̂¾‚ç‚©\n\t\tfor(int i = 1; i < targetArray.length; i++) {\n\t\t\tif(max < targetArray[i]) {\n\t\t\t\tmax = targetArray[i];\n\t\t\t\tmaxPosition = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint temporary = targetArray[0];\n\t\ttargetArray[0] = max;\n\t\ttargetArray[maxPosition] = temporary;\n\t\t\n\t\treturn targetArray;\n\t}\n\t//Å‘å’l‚ªˆê”Ô‘O‚É‚ ‚é”z—ñ‚ɑ΂µ‚āA’¼ŠpŽOŠpŒ`‚©‚Ç‚¤‚©“š‚¦‚ðo‚·B\n\tvoid showAnswer(int[] array) {\n\t\tif(array.length != 3) {\n\t\t\tthrow new IllegalArgumentException();\t//”O‚Ì‚½‚ß\n\t\t}\n\t\tif(array[0] * array[0] == array[1] * array[1] + array[2] * array[2]) {\n\t\t\tSystem.out.println(\"YES\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry {\n\t\t//\tProblem0003_IsItaRightTriangle test = new Problem0003_IsItaRightTriangle();\n\t\t\tMain test = new Main();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint number = Integer.parseInt(reader.readLine());\n\t\t\tint[] sides = new int[3];\t//•Ó‚Í\"side\"‚炵‚¢\n\t\t\t\n\t\t\tfor(int i = 0; i < number; i++) {\t//‚±‚±‚©‚ç–{”Ô\n\t\t\t\tString[] textArray = reader.readLine().split(\" \");\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttest.showAnswer(test.getMax(sides));\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "main", "{\n\t\ttry {\n\t\t//\tProblem0003_IsItaRightTriangle test = new Problem0003_IsItaRightTriangle();\n\t\t\tMain test = new Main();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint number = Integer.parseInt(reader.readLine());\n\t\t\tint[] sides = new int[3];\t//•Ó‚Í\"side\"‚炵‚¢\n\t\t\t\n\t\t\tfor(int i = 0; i < number; i++) {\t//‚±‚±‚©‚ç–{”Ô\n\t\t\t\tString[] textArray = reader.readLine().split(\" \");\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttest.showAnswer(test.getMax(sides));\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\t\t//\tProblem0003_IsItaRightTriangle test = new Problem0003_IsItaRightTriangle();\n\t\t\tMain test = new Main();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint number = Integer.parseInt(reader.readLine());\n\t\t\tint[] sides = new int[3];\t//•Ó‚Í\"side\"‚炵‚¢\n\t\t\t\n\t\t\tfor(int i = 0; i < number; i++) {\t//‚±‚±‚©‚ç–{”Ô\n\t\t\t\tString[] textArray = reader.readLine().split(\" \");\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttest.showAnswer(test.getMax(sides));\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "Exception e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t//\tProblem0003_IsItaRightTriangle test = new Problem0003_IsItaRightTriangle();\n\t\t\tMain test = new Main();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint number = Integer.parseInt(reader.readLine());\n\t\t\tint[] sides = new int[3];\t//•Ó‚Í\"side\"‚炵‚¢\n\t\t\t\n\t\t\tfor(int i = 0; i < number; i++) {\t//‚±‚±‚©‚ç–{”Ô\n\t\t\t\tString[] textArray = reader.readLine().split(\" \");\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttest.showAnswer(test.getMax(sides));\n\t\t\t}\n\t\t}", "Main test = new Main();", "test", "new Main()", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "int number = Integer.parseInt(reader.readLine());", "number", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "int[] sides = new int[3];", "sides", "new int[3]", "3", "for(int i = 0; i < number; i++) {\t//‚±‚±‚©‚ç–{”Ô\n\t\t\t\tString[] textArray = reader.readLine().split(\" \");\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttest.showAnswer(test.getMax(sides));\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < number", "i", "number", "i++", "i++", "i", "{\t//‚±‚±‚©‚ç–{”Ô\n\t\t\t\tString[] textArray = reader.readLine().split(\" \");\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttest.showAnswer(test.getMax(sides));\n\t\t\t}", "{\t//‚±‚±‚©‚ç–{”Ô\n\t\t\t\tString[] textArray = reader.readLine().split(\" \");\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttest.showAnswer(test.getMax(sides));\n\t\t\t}", "String[] textArray = reader.readLine().split(\" \");", "textArray", "reader.readLine().split(\" \")", "reader.readLine().split", "reader.readLine()", "reader.readLine", "reader", "\" \"", "for(int j = 0; j < 3; j++) {\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}", "{\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}", "sides[j] = Integer.parseInt(textArray[j])", "sides[j]", "sides", "j", "Integer.parseInt(textArray[j])", "Integer.parseInt", "Integer", "textArray[j]", "textArray", "j", "test.showAnswer(test.getMax(sides))", "test.showAnswer", "test", "test.getMax(sides)", "test.getMax", "test", "sides", "String[] args", "args", "int[] getMax(int[] array) {\n\t\tint[] targetArray = array;\n\t\t\n\t\tint max = targetArray[0];\t//ƒ}ƒCƒiƒX‚̏ꍇ‚Í0‚ð‘ã“ü‚³‚ê‚邯•s“s‡\n\t\tint maxPosition = 0;\t\t//0‚ª‰Šú’l‚Ȃ͖̂¾‚ç‚©\n\t\tfor(int i = 1; i < targetArray.length; i++) {\n\t\t\tif(max < targetArray[i]) {\n\t\t\t\tmax = targetArray[i];\n\t\t\t\tmaxPosition = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint temporary = targetArray[0];\n\t\ttargetArray[0] = max;\n\t\ttargetArray[maxPosition] = temporary;\n\t\t\n\t\treturn targetArray;\n\t}", "getMax", "{\n\t\tint[] targetArray = array;\n\t\t\n\t\tint max = targetArray[0];\t//ƒ}ƒCƒiƒX‚̏ꍇ‚Í0‚ð‘ã“ü‚³‚ê‚邯•s“s‡\n\t\tint maxPosition = 0;\t\t//0‚ª‰Šú’l‚Ȃ͖̂¾‚ç‚©\n\t\tfor(int i = 1; i < targetArray.length; i++) {\n\t\t\tif(max < targetArray[i]) {\n\t\t\t\tmax = targetArray[i];\n\t\t\t\tmaxPosition = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint temporary = targetArray[0];\n\t\ttargetArray[0] = max;\n\t\ttargetArray[maxPosition] = temporary;\n\t\t\n\t\treturn targetArray;\n\t}", "int[] targetArray = array;", "targetArray", "array", "int max = targetArray[0];", "max", "targetArray[0]", "targetArray", "0", "int maxPosition = 0;", "maxPosition", "0", "for(int i = 1; i < targetArray.length; i++) {\n\t\t\tif(max < targetArray[i]) {\n\t\t\t\tmax = targetArray[i];\n\t\t\t\tmaxPosition = i;\n\t\t\t}\n\t\t}", "int i = 1;", "int i = 1;", "i", "1", "i < targetArray.length", "i", "targetArray.length", "targetArray", "targetArray.length", "i++", "i++", "i", "{\n\t\t\tif(max < targetArray[i]) {\n\t\t\t\tmax = targetArray[i];\n\t\t\t\tmaxPosition = i;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(max < targetArray[i]) {\n\t\t\t\tmax = targetArray[i];\n\t\t\t\tmaxPosition = i;\n\t\t\t}\n\t\t}", "if(max < targetArray[i]) {\n\t\t\t\tmax = targetArray[i];\n\t\t\t\tmaxPosition = i;\n\t\t\t}", "max < targetArray[i]", "max", "targetArray[i]", "targetArray", "i", "{\n\t\t\t\tmax = targetArray[i];\n\t\t\t\tmaxPosition = i;\n\t\t\t}", "max = targetArray[i]", "max", "targetArray[i]", "targetArray", "i", "maxPosition = i", "maxPosition", "i", "int temporary = targetArray[0];", "temporary", "targetArray[0]", "targetArray", "0", "targetArray[0] = max", "targetArray[0]", "targetArray", "0", "max", "targetArray[maxPosition] = temporary", "targetArray[maxPosition]", "targetArray", "maxPosition", "temporary", "return targetArray;", "targetArray", "int[] array", "array", "//Å‘å’l‚ªˆê”Ô‘O‚É‚ ‚é”z—ñ‚ɑ΂µ‚āA’¼ŠpŽOŠpŒ`‚©‚Ç‚¤‚©“š‚¦‚ðo‚·B\n\tvoid showAnswer(int[] array) {\n\t\tif(array.length != 3) {\n\t\t\tthrow new IllegalArgumentException();\t//”O‚Ì‚½‚ß\n\t\t}\n\t\tif(array[0] * array[0] == array[1] * array[1] + array[2] * array[2]) {\n\t\t\tSystem.out.println(\"YES\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}", "showAnswer", "{\n\t\tif(array.length != 3) {\n\t\t\tthrow new IllegalArgumentException();\t//”O‚Ì‚½‚ß\n\t\t}\n\t\tif(array[0] * array[0] == array[1] * array[1] + array[2] * array[2]) {\n\t\t\tSystem.out.println(\"YES\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}", "if(array.length != 3) {\n\t\t\tthrow new IllegalArgumentException();\t//”O‚Ì‚½‚ß\n\t\t}", "array.length != 3", "array.length", "array", "array.length", "3", "{\n\t\t\tthrow new IllegalArgumentException();\t//”O‚Ì‚½‚ß\n\t\t}", "throw new IllegalArgumentException();\t//”O‚Ì‚½‚ß", "new IllegalArgumentException()", "if(array[0] * array[0] == array[1] * array[1] + array[2] * array[2]) {\n\t\t\tSystem.out.println(\"YES\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NO\");\n\t\t}", "array[0] * array[0] == array[1] * array[1] + array[2] * array[2]", "array[0] * array[0]", "array[0]", "array", "0", "array[0]", "array", "0", "array[1] * array[1] + array[2] * array[2]", "array[1] * array[1]", "array[1]", "array", "1", "array[1]", "array", "1", "array[2] * array[2]", "array[2]", "array", "2", "array[2]", "array", "2", "{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "int[] array", "array", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t//\tProblem0003_IsItaRightTriangle test = new Problem0003_IsItaRightTriangle();\n\t\t\tMain test = new Main();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint number = Integer.parseInt(reader.readLine());\n\t\t\tint[] sides = new int[3];\t//•Ó‚Í\"side\"‚炵‚¢\n\t\t\t\n\t\t\tfor(int i = 0; i < number; i++) {\t//‚±‚±‚©‚ç–{”Ô\n\t\t\t\tString[] textArray = reader.readLine().split(\" \");\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttest.showAnswer(test.getMax(sides));\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\tint[] getMax(int[] array) {\n\t\tint[] targetArray = array;\n\t\t\n\t\tint max = targetArray[0];\t//ƒ}ƒCƒiƒX‚̏ꍇ‚Í0‚ð‘ã“ü‚³‚ê‚邯•s“s‡\n\t\tint maxPosition = 0;\t\t//0‚ª‰Šú’l‚Ȃ͖̂¾‚ç‚©\n\t\tfor(int i = 1; i < targetArray.length; i++) {\n\t\t\tif(max < targetArray[i]) {\n\t\t\t\tmax = targetArray[i];\n\t\t\t\tmaxPosition = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint temporary = targetArray[0];\n\t\ttargetArray[0] = max;\n\t\ttargetArray[maxPosition] = temporary;\n\t\t\n\t\treturn targetArray;\n\t}\n\t//Å‘å’l‚ªˆê”Ô‘O‚É‚ ‚é”z—ñ‚ɑ΂µ‚āA’¼ŠpŽOŠpŒ`‚©‚Ç‚¤‚©“š‚¦‚ðo‚·B\n\tvoid showAnswer(int[] array) {\n\t\tif(array.length != 3) {\n\t\t\tthrow new IllegalArgumentException();\t//”O‚Ì‚½‚ß\n\t\t}\n\t\tif(array[0] * array[0] == array[1] * array[1] + array[2] * array[2]) {\n\t\t\tSystem.out.println(\"YES\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t//\tProblem0003_IsItaRightTriangle test = new Problem0003_IsItaRightTriangle();\n\t\t\tMain test = new Main();\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint number = Integer.parseInt(reader.readLine());\n\t\t\tint[] sides = new int[3];\t//•Ó‚Í\"side\"‚炵‚¢\n\t\t\t\n\t\t\tfor(int i = 0; i < number; i++) {\t//‚±‚±‚©‚ç–{”Ô\n\t\t\t\tString[] textArray = reader.readLine().split(\" \");\n\t\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\t\tsides[j] = Integer.parseInt(textArray[j]);\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\ttest.showAnswer(test.getMax(sides));\n\t\t\t}\n\t\t} catch(Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\tint[] getMax(int[] array) {\n\t\tint[] targetArray = array;\n\t\t\n\t\tint max = targetArray[0];\t//ƒ}ƒCƒiƒX‚̏ꍇ‚Í0‚ð‘ã“ü‚³‚ê‚邯•s“s‡\n\t\tint maxPosition = 0;\t\t//0‚ª‰Šú’l‚Ȃ͖̂¾‚ç‚©\n\t\tfor(int i = 1; i < targetArray.length; i++) {\n\t\t\tif(max < targetArray[i]) {\n\t\t\t\tmax = targetArray[i];\n\t\t\t\tmaxPosition = i;\n\t\t\t}\n\t\t}\n\t\t\n\t\tint temporary = targetArray[0];\n\t\ttargetArray[0] = max;\n\t\ttargetArray[maxPosition] = temporary;\n\t\t\n\t\treturn targetArray;\n\t}\n\t//Å‘å’l‚ªˆê”Ô‘O‚É‚ ‚é”z—ñ‚ɑ΂µ‚āA’¼ŠpŽOŠpŒ`‚©‚Ç‚¤‚©“š‚¦‚ðo‚·B\n\tvoid showAnswer(int[] array) {\n\t\tif(array.length != 3) {\n\t\t\tthrow new IllegalArgumentException();\t//”O‚Ì‚½‚ß\n\t\t}\n\t\tif(array[0] * array[0] == array[1] * array[1] + array[2] * array[2]) {\n\t\t\tSystem.out.println(\"YES\");\n\t\t} else {\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; //public class Problem0003_IsItaRightTriangle { public class Main { public static void main(String[] args) { try { // Problem0003_IsItaRightTriangle test = new Problem0003_IsItaRightTriangle(); Main test = new Main(); BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int number = Integer.parseInt(reader.readLine()); int[] sides = new int[3]; //•Ó‚Í"side"‚炵‚¢ for(int i = 0; i < number; i++) { //‚±‚±‚©‚ç–{”Ô String[] textArray = reader.readLine().split(" "); for(int j = 0; j < 3; j++) { sides[j] = Integer.parseInt(textArray[j]); } test.showAnswer(test.getMax(sides)); } } catch(Exception e) { e.printStackTrace(); } } int[] getMax(int[] array) { int[] targetArray = array; int max = targetArray[0]; //ƒ}ƒCƒiƒX‚̏ꍇ‚Í0‚ð‘ã“ü‚³‚ê‚邯•s“s‡ int maxPosition = 0; //0‚ª‰Šú’l‚Ȃ͖̂¾‚ç‚© for(int i = 1; i < targetArray.length; i++) { if(max < targetArray[i]) { max = targetArray[i]; maxPosition = i; } } int temporary = targetArray[0]; targetArray[0] = max; targetArray[maxPosition] = temporary; return targetArray; } //Å‘å’l‚ªˆê”Ô‘O‚É‚ ‚é”z—ñ‚ɑ΂µ‚āA’¼ŠpŽOŠpŒ`‚©‚Ç‚¤‚©“š‚¦‚ðo‚·B void showAnswer(int[] array) { if(array.length != 3) { throw new IllegalArgumentException(); //”O‚Ì‚½‚ß } if(array[0] * array[0] == array[1] * array[1] + array[2] * array[2]) { System.out.println("YES"); } else { System.out.println("NO"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 13, 4, 18, 4, 18, 13, 17, 4, 13, 13, 14, 2, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 2, 13, 17, 30, 41, 13, 18, 13, 2, 13, 17, 0, 18, 13, 2, 13, 17, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 194, 5 ], [ 194, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 37, 42 ], [ 32, 43 ], [ 43, 44 ], [ 43, 45 ], [ 32, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 46, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 46, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 6, 84 ], [ 84, 85 ], [ 194, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 88, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 99, 100 ], [ 99, 101 ], [ 94, 102 ], [ 102, 103 ], [ 103, 104 ], [ 94, 105 ], [ 106, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 112, 114 ], [ 107, 115 ], [ 115, 116 ], [ 116, 117 ], [ 107, 118 ], [ 119, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 120, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 130, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 141, 143 ], [ 138, 144 ], [ 144, 145 ], [ 144, 146 ], [ 130, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 86, 152 ], [ 152, 153 ], [ 194, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 159, 161 ], [ 156, 162 ], [ 162, 163 ], [ 162, 164 ], [ 156, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 171, 172 ], [ 171, 173 ], [ 166, 174 ], [ 174, 175 ], [ 175, 176 ], [ 166, 177 ], [ 178, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 183, 184 ], [ 184, 185 ], [ 183, 186 ], [ 186, 187 ], [ 186, 188 ], [ 156, 189 ], [ 189, 190 ], [ 154, 191 ], [ 191, 192 ], [ 0, 193 ], [ 193, 194 ], [ 193, 195 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(sc.nextLine().split(\" \"));\n\t\t\tsort(line);\n\t\t\tif ((line[2] * line[2]) == ((line[0] * line[0]) + (line[1] * line[1]))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static void sort(int[] array) {\n\t\tint n = array.length;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static int[] convertInt(String[] str) {\n\t\tint n = str.length;\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\treturn array;\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\tint n = Integer.parseInt(sc.nextLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(sc.nextLine().split(\" \"));\n\t\t\tsort(line);\n\t\t\tif ((line[2] * line[2]) == ((line[0] * line[0]) + (line[1] * line[1]))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static void sort(int[] array) {\n\t\tint n = array.length;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static int[] convertInt(String[] str) {\n\t\tint n = str.length;\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\treturn array;\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(sc.nextLine().split(\" \"));\n\t\t\tsort(line);\n\t\t\tif ((line[2] * line[2]) == ((line[0] * line[0]) + (line[1] * line[1]))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(sc.nextLine().split(\" \"));\n\t\t\tsort(line);\n\t\t\tif ((line[2] * line[2]) == ((line[0] * line[0]) + (line[1] * line[1]))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = Integer.parseInt(sc.nextLine());", "n", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "for (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(sc.nextLine().split(\" \"));\n\t\t\tsort(line);\n\t\t\tif ((line[2] * line[2]) == ((line[0] * line[0]) + (line[1] * line[1]))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint[] line = convertInt(sc.nextLine().split(\" \"));\n\t\t\tsort(line);\n\t\t\tif ((line[2] * line[2]) == ((line[0] * line[0]) + (line[1] * line[1]))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tint[] line = convertInt(sc.nextLine().split(\" \"));\n\t\t\tsort(line);\n\t\t\tif ((line[2] * line[2]) == ((line[0] * line[0]) + (line[1] * line[1]))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int[] line = convertInt(sc.nextLine().split(\" \"));", "line", "convertInt(sc.nextLine().split(\" \"))", "convertInt", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "sort(line)", "sort", "line", "if ((line[2] * line[2]) == ((line[0] * line[0]) + (line[1] * line[1]))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "(line[2] * line[2]) == ((line[0] * line[0]) + (line[1] * line[1]))", "(line[2] * line[2])", "line[2]", "line", "2", "line[2]", "line", "2", "((line[0] * line[0]) + (line[1] * line[1]))", "(line[0] * line[0])", "line[0]", "line", "0", "line[0]", "line", "0", "(line[1] * line[1])", "line[1]", "line", "1", "line[1]", "line", "1", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public static void sort(int[] array) {\n\t\tint n = array.length;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "sort", "{\n\t\tint n = array.length;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "int n = array.length;", "n", "array.length", "array", "array.length", "for (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "for (int j = 1; j < n; j++) {\n\t\t\t\tif (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}\n\t\t\t}", "int j = 1;", "int j = 1;", "j", "1", "j < n", "j", "n", "j++", "j++", "j", "{\n\t\t\t\tif (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}\n\t\t\t}", "if (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}", "array[j] < array[j - 1]", "array[j]", "array", "j", "array[j - 1]", "array", "j - 1", "j", "1", "{\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}", "int box = array[j - 1];", "box", "array[j - 1]", "array", "j - 1", "j", "1", "array[j - 1] = array[j]", "array[j - 1]", "array", "j - 1", "j", "1", "array[j]", "array", "j", "array[j] = box", "array[j]", "array", "j", "box", "int[] array", "array", "public static int[] convertInt(String[] str) {\n\t\tint n = str.length;\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\treturn array;\n\t}", "convertInt", "{\n\t\tint n = str.length;\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\treturn array;\n\t}", "int n = str.length;", "n", "str.length", "str", "str.length", "int[] array = new int[n];", "array", "new int[n]", "n", "for (int i = 0; i < n; i++) {\n\t\t\tarray[i] = Integer.parseInt(str[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tarray[i] = Integer.parseInt(str[i]);\n\t\t}", "{\n\t\t\tarray[i] = Integer.parseInt(str[i]);\n\t\t}", "array[i] = Integer.parseInt(str[i])", "array[i]", "array", "i", "Integer.parseInt(str[i])", "Integer.parseInt", "Integer", "str[i]", "str", "i", "return array;", "array", "String[] str", "str", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(sc.nextLine().split(\" \"));\n\t\t\tsort(line);\n\t\t\tif ((line[2] * line[2]) == ((line[0] * line[0]) + (line[1] * line[1]))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static void sort(int[] array) {\n\t\tint n = array.length;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static int[] convertInt(String[] str) {\n\t\tint n = str.length;\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\treturn array;\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = Integer.parseInt(sc.nextLine());\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint[] line = convertInt(sc.nextLine().split(\" \"));\n\t\t\tsort(line);\n\t\t\tif ((line[2] * line[2]) == ((line[0] * line[0]) + (line[1] * line[1]))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static void sort(int[] array) {\n\t\tint n = array.length;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tfor (int j = 1; j < n; j++) {\n\t\t\t\tif (array[j] < array[j - 1]) {\n\t\t\t\t\tint box = array[j - 1];\n\t\t\t\t\tarray[j - 1] = array[j];\n\t\t\t\t\tarray[j] = box;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static int[] convertInt(String[] str) {\n\t\tint n = str.length;\n\t\tint[] array = new int[n];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tarray[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\treturn array;\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); for (int i = 0; i < n; i++) { int[] line = convertInt(sc.nextLine().split(" ")); sort(line); if ((line[2] * line[2]) == ((line[0] * line[0]) + (line[1] * line[1]))) { System.out.println("YES"); } else { System.out.println("NO"); } } } public static void sort(int[] array) { int n = array.length; for (int i = 0; i < n; i++) { for (int j = 1; j < n; j++) { if (array[j] < array[j - 1]) { int box = array[j - 1]; array[j - 1] = array[j]; array[j] = box; } } } } public static int[] convertInt(String[] str) { int n = str.length; int[] array = new int[n]; for (int i = 0; i < n; i++) { array[i] = Integer.parseInt(str[i]); } return array; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 14, 2, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 26, 35 ], [ 35, 36 ], [ 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 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 47, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 47, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 47, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 47, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 78, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 78, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 91, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 91, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 107, 109 ], [ 104, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 104, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 24, 124 ], [ 124, 125 ] ]
[ "import java.io.*;\nimport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.Scanner;\nimport java.util.Stack;\n\nclass Main {\n\tpublic static void main(String[] a) throws IOException {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint times = scan.nextInt();\n\t\tfor (int i = 0; i < times; i++) {\n\t\t\tint aa = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\n\t\t\tint twoa = aa * aa;\n\t\t\tint twob = b * b;\n\t\t\tint twoc = c * c;\n\t\t\tif (twoa == twoc + twob) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twob == twoc + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twoc == twob + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.ArrayDeque;", "ArrayDeque", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Stack;", "Stack", "java.util", "class Main {\n\tpublic static void main(String[] a) throws IOException {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint times = scan.nextInt();\n\t\tfor (int i = 0; i < times; i++) {\n\t\t\tint aa = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\n\t\t\tint twoa = aa * aa;\n\t\t\tint twob = b * b;\n\t\t\tint twoc = c * c;\n\t\t\tif (twoa == twoc + twob) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twob == twoc + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twoc == twob + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] a) throws IOException {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint times = scan.nextInt();\n\t\tfor (int i = 0; i < times; i++) {\n\t\t\tint aa = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\n\t\t\tint twoa = aa * aa;\n\t\t\tint twob = b * b;\n\t\t\tint twoc = c * c;\n\t\t\tif (twoa == twoc + twob) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twob == twoc + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twoc == twob + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint times = scan.nextInt();\n\t\tfor (int i = 0; i < times; i++) {\n\t\t\tint aa = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\n\t\t\tint twoa = aa * aa;\n\t\t\tint twob = b * b;\n\t\t\tint twoc = c * c;\n\t\t\tif (twoa == twoc + twob) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twob == twoc + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twoc == twob + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int times = scan.nextInt();", "times", "scan.nextInt()", "scan.nextInt", "scan", "for (int i = 0; i < times; i++) {\n\t\t\tint aa = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\n\t\t\tint twoa = aa * aa;\n\t\t\tint twob = b * b;\n\t\t\tint twoc = c * c;\n\t\t\tif (twoa == twoc + twob) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twob == twoc + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twoc == twob + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < times", "i", "times", "i++", "i++", "i", "{\n\t\t\tint aa = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\n\t\t\tint twoa = aa * aa;\n\t\t\tint twob = b * b;\n\t\t\tint twoc = c * c;\n\t\t\tif (twoa == twoc + twob) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twob == twoc + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twoc == twob + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tint aa = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\n\t\t\tint twoa = aa * aa;\n\t\t\tint twob = b * b;\n\t\t\tint twoc = c * c;\n\t\t\tif (twoa == twoc + twob) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twob == twoc + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twoc == twob + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int aa = scan.nextInt();", "aa", "scan.nextInt()", "scan.nextInt", "scan", "int b = scan.nextInt();", "b", "scan.nextInt()", "scan.nextInt", "scan", "int c = scan.nextInt();", "c", "scan.nextInt()", "scan.nextInt", "scan", "int twoa = aa * aa;", "twoa", "aa * aa", "aa", "aa", "int twob = b * b;", "twob", "b * b", "b", "b", "int twoc = c * c;", "twoc", "c * c", "c", "c", "if (twoa == twoc + twob) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twob == twoc + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twoc == twob + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "twoa == twoc + twob", "twoa", "twoc + twob", "twoc", "twob", "{\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if (twob == twoc + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (twoc == twob + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "twob == twoc + twoa", "twob", "twoc + twoa", "twoc", "twoa", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if (twoc == twob + twoa) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "twoc == twob + twoa", "twoc", "twob + twoa", "twob", "twoa", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] a", "a" ]
import java.io.*; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; import java.util.Stack; class Main { public static void main(String[] a) throws IOException { Scanner scan = new Scanner(System.in); int times = scan.nextInt(); for (int i = 0; i < times; i++) { int aa = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); int twoa = aa * aa; int twob = b * b; int twoc = c * c; if (twoa == twoc + twob) { System.out.println("YES"); } else if (twob == twoc + twoa) { System.out.println("YES"); } else if (twoc == twob + twoa) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 13, 13, 14, 2, 4, 13, 18, 13, 17, 17, 2, 4, 13, 18, 13, 17, 17, 4, 13, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 125, 17 ], [ 125, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 20, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 47, 52 ], [ 44, 53 ], [ 53, 54 ], [ 53, 55 ], [ 56, 57 ], [ 56, 58 ], [ 44, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 70, 71 ], [ 59, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 80, 82 ], [ 44, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 44, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 88, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 95, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 87, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 87, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 18, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "import static java.lang.Math.pow;\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n int numOfDataset = Integer.parseInt(reader.readLine());\n for (int i = 0; i < numOfDataset; i++) {\n String[] sideLengths_Str = reader.readLine().split(\" \");\n int[] sideLengths = new int[sideLengths_Str.length];\n for (int j = 0; j < sideLengths_Str.length; j++)\n sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);\n\n Arrays.sort(sideLengths);\n\n if (pow(sideLengths[2], 2)\n == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n}", "import static java.lang.Math.pow;", "import static java.lang.Math.pow;", "import static java.lang.Math.pow;", "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 public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n int numOfDataset = Integer.parseInt(reader.readLine());\n for (int i = 0; i < numOfDataset; i++) {\n String[] sideLengths_Str = reader.readLine().split(\" \");\n int[] sideLengths = new int[sideLengths_Str.length];\n for (int j = 0; j < sideLengths_Str.length; j++)\n sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);\n\n Arrays.sort(sideLengths);\n\n if (pow(sideLengths[2], 2)\n == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n int numOfDataset = Integer.parseInt(reader.readLine());\n for (int i = 0; i < numOfDataset; i++) {\n String[] sideLengths_Str = reader.readLine().split(\" \");\n int[] sideLengths = new int[sideLengths_Str.length];\n for (int j = 0; j < sideLengths_Str.length; j++)\n sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);\n\n Arrays.sort(sideLengths);\n\n if (pow(sideLengths[2], 2)\n == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n int numOfDataset = Integer.parseInt(reader.readLine());\n for (int i = 0; i < numOfDataset; i++) {\n String[] sideLengths_Str = reader.readLine().split(\" \");\n int[] sideLengths = new int[sideLengths_Str.length];\n for (int j = 0; j < sideLengths_Str.length; j++)\n sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);\n\n Arrays.sort(sideLengths);\n\n if (pow(sideLengths[2], 2)\n == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "int numOfDataset = Integer.parseInt(reader.readLine());", "numOfDataset", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "for (int i = 0; i < numOfDataset; i++) {\n String[] sideLengths_Str = reader.readLine().split(\" \");\n int[] sideLengths = new int[sideLengths_Str.length];\n for (int j = 0; j < sideLengths_Str.length; j++)\n sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);\n\n Arrays.sort(sideLengths);\n\n if (pow(sideLengths[2], 2)\n == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < numOfDataset", "i", "numOfDataset", "i++", "i++", "i", "{\n String[] sideLengths_Str = reader.readLine().split(\" \");\n int[] sideLengths = new int[sideLengths_Str.length];\n for (int j = 0; j < sideLengths_Str.length; j++)\n sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);\n\n Arrays.sort(sideLengths);\n\n if (pow(sideLengths[2], 2)\n == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "{\n String[] sideLengths_Str = reader.readLine().split(\" \");\n int[] sideLengths = new int[sideLengths_Str.length];\n for (int j = 0; j < sideLengths_Str.length; j++)\n sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);\n\n Arrays.sort(sideLengths);\n\n if (pow(sideLengths[2], 2)\n == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "String[] sideLengths_Str = reader.readLine().split(\" \");", "sideLengths_Str", "reader.readLine().split(\" \")", "reader.readLine().split", "reader.readLine()", "reader.readLine", "reader", "\" \"", "int[] sideLengths = new int[sideLengths_Str.length];", "sideLengths", "new int[sideLengths_Str.length]", "sideLengths_Str.length", "sideLengths_Str", "sideLengths_Str.length", "for (int j = 0; j < sideLengths_Str.length; j++)\n sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);", "int j = 0;", "int j = 0;", "j", "0", "j < sideLengths_Str.length", "j", "sideLengths_Str.length", "sideLengths_Str", "sideLengths_Str.length", "j++", "j++", "j", "sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);", "sideLengths[j] = Integer.parseInt(sideLengths_Str[j])", "sideLengths[j]", "sideLengths", "j", "Integer.parseInt(sideLengths_Str[j])", "Integer.parseInt", "Integer", "sideLengths_Str[j]", "sideLengths_Str", "j", "Arrays.sort(sideLengths)", "Arrays.sort", "Arrays", "sideLengths", "if (pow(sideLengths[2], 2)\n == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "pow(sideLengths[2], 2)\n == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)", "pow(sideLengths[2], 2)", "pow", "sideLengths[2]", "sideLengths", "2", "2", "pow(sideLengths[1], 2) + pow(sideLengths[0], 2)", "pow(sideLengths[1], 2)", "pow", "sideLengths[1]", "sideLengths", "1", "2", "pow(sideLengths[0], 2)", "pow", "sideLengths[0]", "sideLengths", "0", "2", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n int numOfDataset = Integer.parseInt(reader.readLine());\n for (int i = 0; i < numOfDataset; i++) {\n String[] sideLengths_Str = reader.readLine().split(\" \");\n int[] sideLengths = new int[sideLengths_Str.length];\n for (int j = 0; j < sideLengths_Str.length; j++)\n sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);\n\n Arrays.sort(sideLengths);\n\n if (pow(sideLengths[2], 2)\n == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n int numOfDataset = Integer.parseInt(reader.readLine());\n for (int i = 0; i < numOfDataset; i++) {\n String[] sideLengths_Str = reader.readLine().split(\" \");\n int[] sideLengths = new int[sideLengths_Str.length];\n for (int j = 0; j < sideLengths_Str.length; j++)\n sideLengths[j] = Integer.parseInt(sideLengths_Str[j]);\n\n Arrays.sort(sideLengths);\n\n if (pow(sideLengths[2], 2)\n == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n}", "Main" ]
import static java.lang.Math.pow; import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int numOfDataset = Integer.parseInt(reader.readLine()); for (int i = 0; i < numOfDataset; i++) { String[] sideLengths_Str = reader.readLine().split(" "); int[] sideLengths = new int[sideLengths_Str.length]; for (int j = 0; j < sideLengths_Str.length; j++) sideLengths[j] = Integer.parseInt(sideLengths_Str[j]); Arrays.sort(sideLengths); if (pow(sideLengths[2], 2) == pow(sideLengths[1], 2) + pow(sideLengths[0], 2)) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 4, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 2, 13, 13, 30, 29, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 14, 2, 13, 13, 30, 29, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 29, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 129, 5 ], [ 129, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 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 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 29, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 46, 50 ], [ 45, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 45, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 6, 65 ], [ 65, 66 ], [ 129, 67 ], [ 67, 68 ], [ 67, 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 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 70, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 92, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 67, 122 ], [ 122, 123 ], [ 67, 124 ], [ 124, 125 ], [ 67, 126 ], [ 126, 127 ], [ 0, 128 ], [ 128, 129 ], [ 128, 130 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static boolean isTriangle(int a, int b, int c) {\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static boolean isTriangle(int a, int b, int c) {\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int loopNum = scanner.nextInt();", "loopNum", "scanner.nextInt()", "scanner.nextInt", "scanner", "for (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < loopNum", "i", "loopNum", "i++", "i++", "i", "{\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int a = scanner.nextInt();", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "int b = scanner.nextInt();", "b", "scanner.nextInt()", "scanner.nextInt", "scanner", "int c = scanner.nextInt();", "c", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "isTriangle(a, b, c)", "isTriangle", "a", "b", "c", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "private static boolean isTriangle(int a, int b, int c) {\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}", "isTriangle", "{\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}", "if (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}", "a >= b && a >= c", "a >= b", "a", "b", "a >= c", "a", "c", "{\n\t\t\treturn a * a == b * b + c * c;\n\t\t}", "return a * a == b * b + c * c;", "a * a == b * b + c * c", "a * a", "a", "a", "b * b + c * c", "b * b", "b", "b", "c * c", "c", "c", "{\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}", "if (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}", "b >= c", "b", "c", "{\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t}", "return b * b == a * a + c * c;", "b * b == a * a + c * c", "b * b", "b", "b", "a * a + c * c", "a * a", "a", "a", "c * c", "c", "c", "{\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}", "return c * c == a * a + b * b;", "c * c == a * a + b * b", "c * c", "c", "c", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "int a", "a", "int b", "b", "int c", "c", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static boolean isTriangle(int a, int b, int c) {\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static boolean isTriangle(int a, int b, int c) {\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int loopNum = scanner.nextInt(); for (int i = 0; i < loopNum; i++) { int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scanner.nextInt(); if (isTriangle(a, b, c)) { System.out.println("YES"); } else { System.out.println("NO"); } } } private static boolean isTriangle(int a, int b, int c) { if (a >= b && a >= c) { return a * a == b * b + c * c; } else { if (b >= c) { return b * b == a * a + c * c; } else { return c * c == a * a + b * b; } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 28, 13, 13, 30, 30, 41, 13, 4, 18, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 30, 0, 13, 13, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 136, 11 ], [ 136, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 18, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 26, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 18, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 43, 44 ], [ 44, 45 ], [ 37, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 46, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 46, 56 ], [ 56, 57 ], [ 57, 58 ], [ 46, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 63, 68 ], [ 60, 69 ], [ 69, 70 ], [ 69, 71 ], [ 60, 72 ], [ 72, 73 ], [ 72, 74 ], [ 60, 75 ], [ 75, 76 ], [ 75, 77 ], [ 60, 78 ], [ 78, 79 ], [ 78, 80 ], [ 78, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 82, 89 ], [ 89, 90 ], [ 89, 91 ], [ 82, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 92, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 60, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 116, 118 ], [ 107, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 107, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 12, 133 ], [ 133, 134 ], [ 0, 135 ], [ 135, 136 ], [ 135, 137 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n public static void main(String[] args) {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n Integer dataNum = Integer.valueOf(in.readLine());\n\n for (int i = 0; i < dataNum.intValue(); i++) {\n\n String[] problemData = in.readLine().split(\"\\\\s\");\n\n int max = 0;\n\n int other1 = 0;\n\n int other2 = 0;\n\n for (String data : problemData) {\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }\n\n if ((max * max) == (other1 * other1 + other2 * other2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\n public static void main(String[] args) {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n Integer dataNum = Integer.valueOf(in.readLine());\n\n for (int i = 0; i < dataNum.intValue(); i++) {\n\n String[] problemData = in.readLine().split(\"\\\\s\");\n\n int max = 0;\n\n int other1 = 0;\n\n int other2 = 0;\n\n for (String data : problemData) {\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }\n\n if ((max * max) == (other1 * other1 + other2 * other2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n}", "Main", "public static void main(String[] args) {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n Integer dataNum = Integer.valueOf(in.readLine());\n\n for (int i = 0; i < dataNum.intValue(); i++) {\n\n String[] problemData = in.readLine().split(\"\\\\s\");\n\n int max = 0;\n\n int other1 = 0;\n\n int other2 = 0;\n\n for (String data : problemData) {\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }\n\n if ((max * max) == (other1 * other1 + other2 * other2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "main", "{\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n Integer dataNum = Integer.valueOf(in.readLine());\n\n for (int i = 0; i < dataNum.intValue(); i++) {\n\n String[] problemData = in.readLine().split(\"\\\\s\");\n\n int max = 0;\n\n int other1 = 0;\n\n int other2 = 0;\n\n for (String data : problemData) {\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }\n\n if ((max * max) == (other1 * other1 + other2 * other2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "try {\n Integer dataNum = Integer.valueOf(in.readLine());\n\n for (int i = 0; i < dataNum.intValue(); i++) {\n\n String[] problemData = in.readLine().split(\"\\\\s\");\n\n int max = 0;\n\n int other1 = 0;\n\n int other2 = 0;\n\n for (String data : problemData) {\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }\n\n if ((max * max) == (other1 * other1 + other2 * other2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n in.close();\n }", "in.close()", "in.close", "in", "{\n Integer dataNum = Integer.valueOf(in.readLine());\n\n for (int i = 0; i < dataNum.intValue(); i++) {\n\n String[] problemData = in.readLine().split(\"\\\\s\");\n\n int max = 0;\n\n int other1 = 0;\n\n int other2 = 0;\n\n for (String data : problemData) {\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }\n\n if ((max * max) == (other1 * other1 + other2 * other2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "Integer dataNum = Integer.valueOf(in.readLine());", "dataNum", "Integer.valueOf(in.readLine())", "Integer.valueOf", "Integer", "in.readLine()", "in.readLine", "in", "for (int i = 0; i < dataNum.intValue(); i++) {\n\n String[] problemData = in.readLine().split(\"\\\\s\");\n\n int max = 0;\n\n int other1 = 0;\n\n int other2 = 0;\n\n for (String data : problemData) {\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }\n\n if ((max * max) == (other1 * other1 + other2 * other2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < dataNum.intValue()", "i", "dataNum.intValue()", "dataNum.intValue", "dataNum", "i++", "i++", "i", "{\n\n String[] problemData = in.readLine().split(\"\\\\s\");\n\n int max = 0;\n\n int other1 = 0;\n\n int other2 = 0;\n\n for (String data : problemData) {\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }\n\n if ((max * max) == (other1 * other1 + other2 * other2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "{\n\n String[] problemData = in.readLine().split(\"\\\\s\");\n\n int max = 0;\n\n int other1 = 0;\n\n int other2 = 0;\n\n for (String data : problemData) {\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }\n\n if ((max * max) == (other1 * other1 + other2 * other2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "String[] problemData = in.readLine().split(\"\\\\s\");", "problemData", "in.readLine().split(\"\\\\s\")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\"\\\\s\"", "int max = 0;", "max", "0", "int other1 = 0;", "other1", "0", "int other2 = 0;", "other2", "0", "for (String data : problemData) {\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }", "String data", "problemData", "{\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }", "{\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }", "int dataInt = Integer.valueOf(data);", "dataInt", "Integer.valueOf(data)", "Integer.valueOf", "Integer", "data", "other2 = other1", "other2", "other1", "if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }", "dataInt > max", "dataInt", "max", "{\n other1 = max;\n max = dataInt;\n }", "other1 = max", "other1", "max", "max = dataInt", "max", "dataInt", "{\n other1 = dataInt;\n }", "other1 = dataInt", "other1", "dataInt", "if ((max * max) == (other1 * other1 + other2 * other2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "(max * max) == (other1 * other1 + other2 * other2)", "(max * max)", "max", "max", "(other1 * other1 + other2 * other2)", "other1 * other1", "other1", "other1", "other2 * other2", "other2", "other2", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main{\n\n public static void main(String[] args) {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n Integer dataNum = Integer.valueOf(in.readLine());\n\n for (int i = 0; i < dataNum.intValue(); i++) {\n\n String[] problemData = in.readLine().split(\"\\\\s\");\n\n int max = 0;\n\n int other1 = 0;\n\n int other2 = 0;\n\n for (String data : problemData) {\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }\n\n if ((max * max) == (other1 * other1 + other2 * other2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n}", "public class Main{\n\n public static void main(String[] args) {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\n try {\n Integer dataNum = Integer.valueOf(in.readLine());\n\n for (int i = 0; i < dataNum.intValue(); i++) {\n\n String[] problemData = in.readLine().split(\"\\\\s\");\n\n int max = 0;\n\n int other1 = 0;\n\n int other2 = 0;\n\n for (String data : problemData) {\n\n int dataInt = Integer.valueOf(data);\n\n other2 = other1;\n\n if (dataInt > max) {\n other1 = max;\n max = dataInt;\n } else {\n other1 = dataInt;\n }\n }\n\n if ((max * max) == (other1 * other1 + other2 * other2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n } catch (IOException e) {\n e.printStackTrace();\n } finally {\n try {\n in.close();\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); try { Integer dataNum = Integer.valueOf(in.readLine()); for (int i = 0; i < dataNum.intValue(); i++) { String[] problemData = in.readLine().split("\\s"); int max = 0; int other1 = 0; int other2 = 0; for (String data : problemData) { int dataInt = Integer.valueOf(data); other2 = other1; if (dataInt > max) { other1 = max; max = dataInt; } else { other1 = dataInt; } } if ((max * max) == (other1 * other1 + other2 * other2)) { System.out.println("YES"); } else { System.out.println("NO"); } } } catch (IOException e) { e.printStackTrace(); } finally { try { in.close(); } catch (IOException e) { e.printStackTrace(); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 13, 14, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 14, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 130, 5 ], [ 130, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 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 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 32, 65 ], [ 65, 66 ], [ 65, 67 ], [ 32, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 68, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 68, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 83, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 32, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 99, 107 ], [ 107, 108 ], [ 107, 109 ], [ 98, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 98, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 118, 123 ], [ 8, 124 ], [ 124, 125 ], [ 125, 126 ], [ 6, 127 ], [ 127, 128 ], [ 0, 129 ], [ 129, 130 ], [ 129, 131 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.nextLine());\n for (int i = 0; i < n; i++) {\n String[] array = sc.nextLine().split(\"[\\\\s]\");\n int n1 = Integer.parseInt(array[0]);\n int n2 = Integer.parseInt(array[1]);\n int n3 = Integer.parseInt(array[2]);\n int swap = n3;\n if (n1 < n2 && n3 < n2) {\n n3 = n2;\n n2 = swap;\n } else if (n2 < n1 && n3 < n1) {\n n3 = n1;\n n1 = swap;\n }\n\n if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n sc.close();\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.nextLine());\n for (int i = 0; i < n; i++) {\n String[] array = sc.nextLine().split(\"[\\\\s]\");\n int n1 = Integer.parseInt(array[0]);\n int n2 = Integer.parseInt(array[1]);\n int n3 = Integer.parseInt(array[2]);\n int swap = n3;\n if (n1 < n2 && n3 < n2) {\n n3 = n2;\n n2 = swap;\n } else if (n2 < n1 && n3 < n1) {\n n3 = n1;\n n1 = swap;\n }\n\n if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n sc.close();\n }\n\n}", "Main", "public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.nextLine());\n for (int i = 0; i < n; i++) {\n String[] array = sc.nextLine().split(\"[\\\\s]\");\n int n1 = Integer.parseInt(array[0]);\n int n2 = Integer.parseInt(array[1]);\n int n3 = Integer.parseInt(array[2]);\n int swap = n3;\n if (n1 < n2 && n3 < n2) {\n n3 = n2;\n n2 = swap;\n } else if (n2 < n1 && n3 < n1) {\n n3 = n1;\n n1 = swap;\n }\n\n if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n sc.close();\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.nextLine());\n for (int i = 0; i < n; i++) {\n String[] array = sc.nextLine().split(\"[\\\\s]\");\n int n1 = Integer.parseInt(array[0]);\n int n2 = Integer.parseInt(array[1]);\n int n3 = Integer.parseInt(array[2]);\n int swap = n3;\n if (n1 < n2 && n3 < n2) {\n n3 = n2;\n n2 = swap;\n } else if (n2 < n1 && n3 < n1) {\n n3 = n1;\n n1 = swap;\n }\n\n if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = Integer.parseInt(sc.nextLine());", "n", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "for (int i = 0; i < n; i++) {\n String[] array = sc.nextLine().split(\"[\\\\s]\");\n int n1 = Integer.parseInt(array[0]);\n int n2 = Integer.parseInt(array[1]);\n int n3 = Integer.parseInt(array[2]);\n int swap = n3;\n if (n1 < n2 && n3 < n2) {\n n3 = n2;\n n2 = swap;\n } else if (n2 < n1 && n3 < n1) {\n n3 = n1;\n n1 = swap;\n }\n\n if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String[] array = sc.nextLine().split(\"[\\\\s]\");\n int n1 = Integer.parseInt(array[0]);\n int n2 = Integer.parseInt(array[1]);\n int n3 = Integer.parseInt(array[2]);\n int swap = n3;\n if (n1 < n2 && n3 < n2) {\n n3 = n2;\n n2 = swap;\n } else if (n2 < n1 && n3 < n1) {\n n3 = n1;\n n1 = swap;\n }\n\n if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "{\n String[] array = sc.nextLine().split(\"[\\\\s]\");\n int n1 = Integer.parseInt(array[0]);\n int n2 = Integer.parseInt(array[1]);\n int n3 = Integer.parseInt(array[2]);\n int swap = n3;\n if (n1 < n2 && n3 < n2) {\n n3 = n2;\n n2 = swap;\n } else if (n2 < n1 && n3 < n1) {\n n3 = n1;\n n1 = swap;\n }\n\n if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "String[] array = sc.nextLine().split(\"[\\\\s]\");", "array", "sc.nextLine().split(\"[\\\\s]\")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\"[\\\\s]\"", "int n1 = Integer.parseInt(array[0]);", "n1", "Integer.parseInt(array[0])", "Integer.parseInt", "Integer", "array[0]", "array", "0", "int n2 = Integer.parseInt(array[1]);", "n2", "Integer.parseInt(array[1])", "Integer.parseInt", "Integer", "array[1]", "array", "1", "int n3 = Integer.parseInt(array[2]);", "n3", "Integer.parseInt(array[2])", "Integer.parseInt", "Integer", "array[2]", "array", "2", "int swap = n3;", "swap", "n3", "if (n1 < n2 && n3 < n2) {\n n3 = n2;\n n2 = swap;\n } else if (n2 < n1 && n3 < n1) {\n n3 = n1;\n n1 = swap;\n }", "n1 < n2 && n3 < n2", "n1 < n2", "n1", "n2", "n3 < n2", "n3", "n2", "{\n n3 = n2;\n n2 = swap;\n }", "n3 = n2", "n3", "n2", "n2 = swap", "n2", "swap", "if (n2 < n1 && n3 < n1) {\n n3 = n1;\n n1 = swap;\n }", "n2 < n1 && n3 < n1", "n2 < n1", "n2", "n1", "n3 < n1", "n3", "n1", "{\n n3 = n1;\n n1 = swap;\n }", "n3 = n1", "n3", "n1", "n1 = swap", "n1", "swap", "if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "(n1 * n1) + (n2 * n2) == (n3 * n3)", "(n1 * n1) + (n2 * n2)", "(n1 * n1)", "n1", "n1", "(n2 * n2)", "n2", "n2", "(n3 * n3)", "n3", "n3", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.nextLine());\n for (int i = 0; i < n; i++) {\n String[] array = sc.nextLine().split(\"[\\\\s]\");\n int n1 = Integer.parseInt(array[0]);\n int n2 = Integer.parseInt(array[1]);\n int n3 = Integer.parseInt(array[2]);\n int swap = n3;\n if (n1 < n2 && n3 < n2) {\n n3 = n2;\n n2 = swap;\n } else if (n2 < n1 && n3 < n1) {\n n3 = n1;\n n1 = swap;\n }\n\n if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n sc.close();\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n\n int n = Integer.parseInt(sc.nextLine());\n for (int i = 0; i < n; i++) {\n String[] array = sc.nextLine().split(\"[\\\\s]\");\n int n1 = Integer.parseInt(array[0]);\n int n2 = Integer.parseInt(array[1]);\n int n3 = Integer.parseInt(array[2]);\n int swap = n3;\n if (n1 < n2 && n3 < n2) {\n n3 = n2;\n n2 = swap;\n } else if (n2 < n1 && n3 < n1) {\n n3 = n1;\n n1 = swap;\n }\n\n if ((n1 * n1) + (n2 * n2) == (n3 * n3)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n sc.close();\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = Integer.parseInt(sc.nextLine()); for (int i = 0; i < n; i++) { String[] array = sc.nextLine().split("[\\s]"); int n1 = Integer.parseInt(array[0]); int n2 = Integer.parseInt(array[1]); int n3 = Integer.parseInt(array[2]); int swap = n3; if (n1 < n2 && n3 < n2) { n3 = n2; n2 = swap; } else if (n2 < n1 && n3 < n1) { n3 = n1; n1 = swap; } if ((n1 * n1) + (n2 * n2) == (n3 * n3)) { System.out.println("YES"); } else { System.out.println("NO"); } } sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 18, 4, 18, 13, 17, 17, 17, 41, 13, 4, 18, 13, 4, 18, 13, 18, 4, 18, 13, 17, 17, 17, 41, 13, 4, 18, 13, 4, 18, 13, 18, 4, 18, 13, 17, 17, 17, 14, 2, 2, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 138, 11 ], [ 138, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 46, 58 ], [ 38, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 67, 72 ], [ 61, 73 ], [ 38, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 82, 87 ], [ 76, 88 ], [ 38, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 89, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 89, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 102, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 102, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 115, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 115, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 12, 135 ], [ 135, 136 ], [ 0, 137 ], [ 137, 138 ], [ 137, 139 ] ]
[ "import java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.IOException;\n\npublic class Main {\n public static void main(String args[] ) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n\n for (int i = 0; i < n; i++) {\n String s = br.readLine();\n double a = Math.pow(Double.parseDouble(s.split(\" \")[0]),2);\n double b = Math.pow(Double.parseDouble(s.split(\" \")[1]),2);\n double c = Math.pow(Double.parseDouble(s.split(\" \")[2]),2);\n\n if( a + b == c ){\n System.out.println(\"YES\");\n } else if ( a + c == b) {\n System.out.println(\"YES\");\n } else if ( b + c == a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n public static void main(String args[] ) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n\n for (int i = 0; i < n; i++) {\n String s = br.readLine();\n double a = Math.pow(Double.parseDouble(s.split(\" \")[0]),2);\n double b = Math.pow(Double.parseDouble(s.split(\" \")[1]),2);\n double c = Math.pow(Double.parseDouble(s.split(\" \")[2]),2);\n\n if( a + b == c ){\n System.out.println(\"YES\");\n } else if ( a + c == b) {\n System.out.println(\"YES\");\n } else if ( b + c == a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}", "Main", "public static void main(String args[] ) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n\n for (int i = 0; i < n; i++) {\n String s = br.readLine();\n double a = Math.pow(Double.parseDouble(s.split(\" \")[0]),2);\n double b = Math.pow(Double.parseDouble(s.split(\" \")[1]),2);\n double c = Math.pow(Double.parseDouble(s.split(\" \")[2]),2);\n\n if( a + b == c ){\n System.out.println(\"YES\");\n } else if ( a + c == b) {\n System.out.println(\"YES\");\n } else if ( b + c == a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n\n for (int i = 0; i < n; i++) {\n String s = br.readLine();\n double a = Math.pow(Double.parseDouble(s.split(\" \")[0]),2);\n double b = Math.pow(Double.parseDouble(s.split(\" \")[1]),2);\n double c = Math.pow(Double.parseDouble(s.split(\" \")[2]),2);\n\n if( a + b == c ){\n System.out.println(\"YES\");\n } else if ( a + c == b) {\n System.out.println(\"YES\");\n } else if ( b + c == a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < n; i++) {\n String s = br.readLine();\n double a = Math.pow(Double.parseDouble(s.split(\" \")[0]),2);\n double b = Math.pow(Double.parseDouble(s.split(\" \")[1]),2);\n double c = Math.pow(Double.parseDouble(s.split(\" \")[2]),2);\n\n if( a + b == c ){\n System.out.println(\"YES\");\n } else if ( a + c == b) {\n System.out.println(\"YES\");\n } else if ( b + c == a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String s = br.readLine();\n double a = Math.pow(Double.parseDouble(s.split(\" \")[0]),2);\n double b = Math.pow(Double.parseDouble(s.split(\" \")[1]),2);\n double c = Math.pow(Double.parseDouble(s.split(\" \")[2]),2);\n\n if( a + b == c ){\n System.out.println(\"YES\");\n } else if ( a + c == b) {\n System.out.println(\"YES\");\n } else if ( b + c == a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "{\n String s = br.readLine();\n double a = Math.pow(Double.parseDouble(s.split(\" \")[0]),2);\n double b = Math.pow(Double.parseDouble(s.split(\" \")[1]),2);\n double c = Math.pow(Double.parseDouble(s.split(\" \")[2]),2);\n\n if( a + b == c ){\n System.out.println(\"YES\");\n } else if ( a + c == b) {\n System.out.println(\"YES\");\n } else if ( b + c == a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "String s = br.readLine();", "s", "br.readLine()", "br.readLine", "br", "double a = Math.pow(Double.parseDouble(s.split(\" \")[0]),2);", "a", "Math.pow(Double.parseDouble(s.split(\" \")[0]),2)", "Math.pow", "Math", "Double.parseDouble(s.split(\" \")[0])", "Double.parseDouble", "Double", "s.split(\" \")[0]", "s.split(\" \")", "s.split", "s", "\" \"", "0", "2", "double b = Math.pow(Double.parseDouble(s.split(\" \")[1]),2);", "b", "Math.pow(Double.parseDouble(s.split(\" \")[1]),2)", "Math.pow", "Math", "Double.parseDouble(s.split(\" \")[1])", "Double.parseDouble", "Double", "s.split(\" \")[1]", "s.split(\" \")", "s.split", "s", "\" \"", "1", "2", "double c = Math.pow(Double.parseDouble(s.split(\" \")[2]),2);", "c", "Math.pow(Double.parseDouble(s.split(\" \")[2]),2)", "Math.pow", "Math", "Double.parseDouble(s.split(\" \")[2])", "Double.parseDouble", "Double", "s.split(\" \")[2]", "s.split(\" \")", "s.split", "s", "\" \"", "2", "2", "if( a + b == c ){\n System.out.println(\"YES\");\n } else if ( a + c == b) {\n System.out.println(\"YES\");\n } else if ( b + c == a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "a + b == c", "a + b", "a", "b", "c", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if ( a + c == b) {\n System.out.println(\"YES\");\n } else if ( b + c == a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "a + c == b", "a + c", "a", "c", "b", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if ( b + c == a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "b + c == a", "b + c", "b", "c", "a", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "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 int n = Integer.parseInt(br.readLine());\n\n for (int i = 0; i < n; i++) {\n String s = br.readLine();\n double a = Math.pow(Double.parseDouble(s.split(\" \")[0]),2);\n double b = Math.pow(Double.parseDouble(s.split(\" \")[1]),2);\n double c = Math.pow(Double.parseDouble(s.split(\" \")[2]),2);\n\n if( a + b == c ){\n System.out.println(\"YES\");\n } else if ( a + c == b) {\n System.out.println(\"YES\");\n } else if ( b + c == a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\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 int n = Integer.parseInt(br.readLine());\n\n for (int i = 0; i < n; i++) {\n String s = br.readLine();\n double a = Math.pow(Double.parseDouble(s.split(\" \")[0]),2);\n double b = Math.pow(Double.parseDouble(s.split(\" \")[1]),2);\n double c = Math.pow(Double.parseDouble(s.split(\" \")[2]),2);\n\n if( a + b == c ){\n System.out.println(\"YES\");\n } else if ( a + c == b) {\n System.out.println(\"YES\");\n } else if ( b + c == a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}", "Main" ]
import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.IOException; public class Main { public static void main(String args[] ) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); for (int i = 0; i < n; i++) { String s = br.readLine(); double a = Math.pow(Double.parseDouble(s.split(" ")[0]),2); double b = Math.pow(Double.parseDouble(s.split(" ")[1]),2); double c = Math.pow(Double.parseDouble(s.split(" ")[2]),2); if( a + b == c ){ System.out.println("YES"); } else if ( a + c == b) { System.out.println("YES"); } else if ( b + c == a) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 17, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 13, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 105, 8 ], [ 105, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 32, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 32, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 32, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 32, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 63, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 62, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 62, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 11, 99 ], [ 99, 100 ], [ 100, 101 ], [ 9, 102 ], [ 102, 103 ], [ 0, 104 ], [ 104, 105 ], [ 104, 106 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tfinal int cnt=sc.nextInt();\n\t\tfor(int i=0;i<cnt;i++){\n\t\t\tInteger side[]=new Integer[3];\n\t\t\tside[0]=sc.nextInt();\n\t\t\tside[1]=sc.nextInt();\n\t\t\tside[2]=sc.nextInt();\n\t\t\tArrays.sort(side);\n\t\t\tif((side[0]*side[0]+side[1]*side[1])==side[2]*side[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else System.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "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\tfinal int cnt=sc.nextInt();\n\t\tfor(int i=0;i<cnt;i++){\n\t\t\tInteger side[]=new Integer[3];\n\t\t\tside[0]=sc.nextInt();\n\t\t\tside[1]=sc.nextInt();\n\t\t\tside[2]=sc.nextInt();\n\t\t\tArrays.sort(side);\n\t\t\tif((side[0]*side[0]+side[1]*side[1])==side[2]*side[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else System.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tfinal int cnt=sc.nextInt();\n\t\tfor(int i=0;i<cnt;i++){\n\t\t\tInteger side[]=new Integer[3];\n\t\t\tside[0]=sc.nextInt();\n\t\t\tside[1]=sc.nextInt();\n\t\t\tside[2]=sc.nextInt();\n\t\t\tArrays.sort(side);\n\t\t\tif((side[0]*side[0]+side[1]*side[1])==side[2]*side[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else System.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tfinal int cnt=sc.nextInt();\n\t\tfor(int i=0;i<cnt;i++){\n\t\t\tInteger side[]=new Integer[3];\n\t\t\tside[0]=sc.nextInt();\n\t\t\tside[1]=sc.nextInt();\n\t\t\tside[2]=sc.nextInt();\n\t\t\tArrays.sort(side);\n\t\t\tif((side[0]*side[0]+side[1]*side[1])==side[2]*side[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else System.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "final int cnt=sc.nextInt();", "cnt", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<cnt;i++){\n\t\t\tInteger side[]=new Integer[3];\n\t\t\tside[0]=sc.nextInt();\n\t\t\tside[1]=sc.nextInt();\n\t\t\tside[2]=sc.nextInt();\n\t\t\tArrays.sort(side);\n\t\t\tif((side[0]*side[0]+side[1]*side[1])==side[2]*side[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else System.out.println(\"NO\");\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<cnt", "i", "cnt", "i++", "i++", "i", "{\n\t\t\tInteger side[]=new Integer[3];\n\t\t\tside[0]=sc.nextInt();\n\t\t\tside[1]=sc.nextInt();\n\t\t\tside[2]=sc.nextInt();\n\t\t\tArrays.sort(side);\n\t\t\tif((side[0]*side[0]+side[1]*side[1])==side[2]*side[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else System.out.println(\"NO\");\n\t\t}", "{\n\t\t\tInteger side[]=new Integer[3];\n\t\t\tside[0]=sc.nextInt();\n\t\t\tside[1]=sc.nextInt();\n\t\t\tside[2]=sc.nextInt();\n\t\t\tArrays.sort(side);\n\t\t\tif((side[0]*side[0]+side[1]*side[1])==side[2]*side[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else System.out.println(\"NO\");\n\t\t}", "Integer side[]=new Integer[3];", "side", "new Integer[3]", "3", "side[0]=sc.nextInt()", "side[0]", "side", "0", "sc.nextInt()", "sc.nextInt", "sc", "side[1]=sc.nextInt()", "side[1]", "side", "1", "sc.nextInt()", "sc.nextInt", "sc", "side[2]=sc.nextInt()", "side[2]", "side", "2", "sc.nextInt()", "sc.nextInt", "sc", "Arrays.sort(side)", "Arrays.sort", "Arrays", "side", "if((side[0]*side[0]+side[1]*side[1])==side[2]*side[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else System.out.println(\"NO\");", "(side[0]*side[0]+side[1]*side[1])==side[2]*side[2]", "(side[0]*side[0]+side[1]*side[1])", "side[0]*side[0]", "side[0]", "side", "0", "side[0]", "side", "0", "side[1]*side[1]", "side[1]", "side", "1", "side[1]", "side", "1", "side[2]*side[2]", "side[2]", "side", "2", "side[2]", "side", "2", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tfinal int cnt=sc.nextInt();\n\t\tfor(int i=0;i<cnt;i++){\n\t\t\tInteger side[]=new Integer[3];\n\t\t\tside[0]=sc.nextInt();\n\t\t\tside[1]=sc.nextInt();\n\t\t\tside[2]=sc.nextInt();\n\t\t\tArrays.sort(side);\n\t\t\tif((side[0]*side[0]+side[1]*side[1])==side[2]*side[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else System.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}\n}", "public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tfinal int cnt=sc.nextInt();\n\t\tfor(int i=0;i<cnt;i++){\n\t\t\tInteger side[]=new Integer[3];\n\t\t\tside[0]=sc.nextInt();\n\t\t\tside[1]=sc.nextInt();\n\t\t\tside[2]=sc.nextInt();\n\t\t\tArrays.sort(side);\n\t\t\tif((side[0]*side[0]+side[1]*side[1])==side[2]*side[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else System.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); final int cnt=sc.nextInt(); for(int i=0;i<cnt;i++){ Integer side[]=new Integer[3]; side[0]=sc.nextInt(); side[1]=sc.nextInt(); side[2]=sc.nextInt(); Arrays.sort(side); if((side[0]*side[0]+side[1]*side[1])==side[2]*side[2]){ System.out.println("YES"); }else System.out.println("NO"); } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 13, 17, 30, 41, 13, 20, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 2, 4, 18, 13, 4, 18, 13, 17, 17, 4, 18, 13, 4, 18, 13, 17, 17, 4, 18, 13, 4, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 40, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 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 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 28, 29 ], [ 29, 30 ], [ 21, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 21, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 41, 42 ], [ 21, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 21, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 50, 57 ], [ 49, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 58, 65 ], [ 48, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 66, 73 ], [ 47, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 47, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 21, 88 ], [ 88, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint num = sc.nextInt();\n\t\t\n\t\twhile(num != 0){\n\t\t\tArrayList<Integer> tri = new ArrayList<Integer>();\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\tCollections.sort(tri);\n\t\t\tif((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\tnum--;\n\t\t}\n\t\tsc.close();\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\n\t\tint num = sc.nextInt();\n\t\t\n\t\twhile(num != 0){\n\t\t\tArrayList<Integer> tri = new ArrayList<Integer>();\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\tCollections.sort(tri);\n\t\t\tif((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\tnum--;\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main", "public static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint num = sc.nextInt();\n\t\t\n\t\twhile(num != 0){\n\t\t\tArrayList<Integer> tri = new ArrayList<Integer>();\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\tCollections.sort(tri);\n\t\t\tif((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\tnum--;\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint num = sc.nextInt();\n\t\t\n\t\twhile(num != 0){\n\t\t\tArrayList<Integer> tri = new ArrayList<Integer>();\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\tCollections.sort(tri);\n\t\t\tif((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\tnum--;\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "while(num != 0){\n\t\t\tArrayList<Integer> tri = new ArrayList<Integer>();\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\tCollections.sort(tri);\n\t\t\tif((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\tnum--;\n\t\t}", "num != 0", "num", "0", "{\n\t\t\tArrayList<Integer> tri = new ArrayList<Integer>();\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\tCollections.sort(tri);\n\t\t\tif((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\tnum--;\n\t\t}", "ArrayList<Integer> tri = new ArrayList<Integer>();", "tri", "new ArrayList<Integer>()", "tri.add(sc.nextInt())", "tri.add", "tri", "sc.nextInt()", "sc.nextInt", "sc", "tri.add(sc.nextInt())", "tri.add", "tri", "sc.nextInt()", "sc.nextInt", "sc", "tri.add(sc.nextInt())", "tri.add", "tri", "sc.nextInt()", "sc.nextInt", "sc", "Collections.sort(tri)", "Collections.sort", "Collections", "tri", "if((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "(Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)", "(Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))", "Math.pow(tri.get(0),2)", "Math.pow", "Math", "tri.get(0)", "tri.get", "tri", "0", "2", "Math.pow(tri.get(1),2)", "Math.pow", "Math", "tri.get(1)", "tri.get", "tri", "1", "2", "Math.pow(tri.get(2),2)", "Math.pow", "Math", "tri.get(2)", "tri.get", "tri", "2", "2", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "num--", "num", "sc.close()", "sc.close", "sc", "String args[]", "args", "public class Main {\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint num = sc.nextInt();\n\t\t\n\t\twhile(num != 0){\n\t\t\tArrayList<Integer> tri = new ArrayList<Integer>();\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\tCollections.sort(tri);\n\t\t\tif((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\tnum--;\n\t\t}\n\t\tsc.close();\n\t}\n}", "public class Main {\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint num = sc.nextInt();\n\t\t\n\t\twhile(num != 0){\n\t\t\tArrayList<Integer> tri = new ArrayList<Integer>();\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\ttri.add(sc.nextInt());\n\t\t\tCollections.sort(tri);\n\t\t\tif((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\tnum--;\n\t\t}\n\t\tsc.close();\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[]){ Scanner sc = new Scanner(System.in); int num = sc.nextInt(); while(num != 0){ ArrayList<Integer> tri = new ArrayList<Integer>(); tri.add(sc.nextInt()); tri.add(sc.nextInt()); tri.add(sc.nextInt()); Collections.sort(tri); if((Math.pow(tri.get(0),2)+Math.pow(tri.get(1),2))!=Math.pow(tri.get(2),2)){ System.out.println("NO"); }else{ System.out.println("YES"); } num--; } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 4, 13, 13, 13, 13, 4, 13, 13, 13, 13, 4, 13, 13, 13, 13, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 29, 2, 4, 18, 13, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 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 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 29, 45 ], [ 45, 46 ], [ 45, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 49, 52 ], [ 49, 53 ], [ 48, 54 ], [ 54, 55 ], [ 54, 56 ], [ 54, 57 ], [ 54, 58 ], [ 48, 59 ], [ 59, 60 ], [ 59, 61 ], [ 59, 62 ], [ 59, 63 ], [ 29, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 64, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 6, 80 ], [ 80, 81 ], [ 109, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 91, 95 ], [ 90, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 96, 100 ], [ 86, 101 ], [ 82, 102 ], [ 102, 103 ], [ 82, 104 ], [ 104, 105 ], [ 82, 106 ], [ 106, 107 ], [ 0, 108 ], [ 108, 109 ], [ 108, 110 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);\n if (bo) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n \n public static boolean isTriangle(int a, int b, int c) {\n return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);\n if (bo) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n \n public static boolean isTriangle(int a, int b, int c) {\n return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);\n if (bo) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);\n if (bo) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);\n if (bo) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);\n if (bo) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "{\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);\n if (bo) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int c = sc.nextInt();", "c", "sc.nextInt()", "sc.nextInt", "sc", "boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);", "bo", "isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b)", "isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b)", "isTriangle(a, b, c)", "isTriangle", "a", "b", "c", "isTriangle(b, c, a)", "isTriangle", "b", "c", "a", "isTriangle(c, a, b)", "isTriangle", "c", "a", "b", "if (bo) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "bo", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public static boolean isTriangle(int a, int b, int c) {\n return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;\n }", "isTriangle", "{\n return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;\n }", "return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;", "Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c", "Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2))", "Math.sqrt", "Math", "Math.pow(a, 2) + Math.pow(b, 2)", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "c", "int a", "a", "int b", "b", "int c", "c", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);\n if (bo) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n \n public static boolean isTriangle(int a, int b, int c) {\n return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b);\n if (bo) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n \n public static boolean isTriangle(int a, int b, int c) {\n return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c;\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 0; i < n; i++) { int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); boolean bo = isTriangle(a, b, c) || isTriangle(b, c, a) || isTriangle(c, a, b); if (bo) { System.out.println("YES"); } else { System.out.println("NO"); } } } public static boolean isTriangle(int a, int b, int c) { return Math.sqrt(Math.pow(a, 2) + Math.pow(b, 2)) == c; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 30, 41, 13, 4, 18, 13, 42, 2, 40, 13, 17, 30, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 14, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 13, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 13, 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 ], [ 115, 11 ], [ 115, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 18, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 22, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 33, 38 ], [ 38, 39 ], [ 33, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 33, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 33, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 33, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 33, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 33, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 33, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 70, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 70, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 82, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 82, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 94, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 12, 112 ], [ 112, 113 ], [ 0, 114 ], [ 114, 115 ], [ 114, 116 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\ttry {\n\t\t\tint t=scan.nextInt();\n\t\t\twhile(t--!=0){\n\t\t\t\tint x,y,z;\n\t\t\t\tx=scan.nextInt();\n\t\t\t\ty=scan.nextInt();\n\t\t\t\tz=scan.nextInt();\n\t\t\t\tint a=x*x;\n\t\t\t\tint b=y*y;\n\t\t\t\tint c=z*z;\n\t\t\t\tif(a+b==c)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(b+c==a)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "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 BufferedReader(new InputStreamReader(System.in)));\n\t\ttry {\n\t\t\tint t=scan.nextInt();\n\t\t\twhile(t--!=0){\n\t\t\t\tint x,y,z;\n\t\t\t\tx=scan.nextInt();\n\t\t\t\ty=scan.nextInt();\n\t\t\t\tz=scan.nextInt();\n\t\t\t\tint a=x*x;\n\t\t\t\tint b=y*y;\n\t\t\t\tint c=z*z;\n\t\t\t\tif(a+b==c)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(b+c==a)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\ttry {\n\t\t\tint t=scan.nextInt();\n\t\t\twhile(t--!=0){\n\t\t\t\tint x,y,z;\n\t\t\t\tx=scan.nextInt();\n\t\t\t\ty=scan.nextInt();\n\t\t\t\tz=scan.nextInt();\n\t\t\t\tint a=x*x;\n\t\t\t\tint b=y*y;\n\t\t\t\tint c=z*z;\n\t\t\t\tif(a+b==c)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(b+c==a)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "main", "{\n\t\tScanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\ttry {\n\t\t\tint t=scan.nextInt();\n\t\t\twhile(t--!=0){\n\t\t\t\tint x,y,z;\n\t\t\t\tx=scan.nextInt();\n\t\t\t\ty=scan.nextInt();\n\t\t\t\tz=scan.nextInt();\n\t\t\t\tint a=x*x;\n\t\t\t\tint b=y*y;\n\t\t\t\tint c=z*z;\n\t\t\t\tif(a+b==c)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(b+c==a)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}", "Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));", "scan", "new Scanner(new BufferedReader(new InputStreamReader(System.in)))", "try {\n\t\t\tint t=scan.nextInt();\n\t\t\twhile(t--!=0){\n\t\t\t\tint x,y,z;\n\t\t\t\tx=scan.nextInt();\n\t\t\t\ty=scan.nextInt();\n\t\t\t\tz=scan.nextInt();\n\t\t\t\tint a=x*x;\n\t\t\t\tint b=y*y;\n\t\t\t\tint c=z*z;\n\t\t\t\tif(a+b==c)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(b+c==a)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}", "catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}", "Exception e", "{\n\t\t\t// TODO: handle exception\n\t\t}", "{\n\t\t\tint t=scan.nextInt();\n\t\t\twhile(t--!=0){\n\t\t\t\tint x,y,z;\n\t\t\t\tx=scan.nextInt();\n\t\t\t\ty=scan.nextInt();\n\t\t\t\tz=scan.nextInt();\n\t\t\t\tint a=x*x;\n\t\t\t\tint b=y*y;\n\t\t\t\tint c=z*z;\n\t\t\t\tif(a+b==c)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(b+c==a)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t}", "int t=scan.nextInt();", "t", "scan.nextInt()", "scan.nextInt", "scan", "while(t--!=0){\n\t\t\t\tint x,y,z;\n\t\t\t\tx=scan.nextInt();\n\t\t\t\ty=scan.nextInt();\n\t\t\t\tz=scan.nextInt();\n\t\t\t\tint a=x*x;\n\t\t\t\tint b=y*y;\n\t\t\t\tint c=z*z;\n\t\t\t\tif(a+b==c)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(b+c==a)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}", "t--!=0", "t--", "t", "0", "{\n\t\t\t\tint x,y,z;\n\t\t\t\tx=scan.nextInt();\n\t\t\t\ty=scan.nextInt();\n\t\t\t\tz=scan.nextInt();\n\t\t\t\tint a=x*x;\n\t\t\t\tint b=y*y;\n\t\t\t\tint c=z*z;\n\t\t\t\tif(a+b==c)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(b+c==a)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}", "int x", "x", "y", "y", "z;", "z", "x=scan.nextInt()", "x", "scan.nextInt()", "scan.nextInt", "scan", "y=scan.nextInt()", "y", "scan.nextInt()", "scan.nextInt", "scan", "z=scan.nextInt()", "z", "scan.nextInt()", "scan.nextInt", "scan", "int a=x*x;", "a", "x*x", "x", "x", "int b=y*y;", "b", "y*y", "y", "y", "int c=z*z;", "c", "z*z", "z", "z", "if(a+b==c)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(b+c==a)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");", "a+b==c", "a+b", "a", "b", "c", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if(b+c==a)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");", "b+c==a", "b+c", "b", "c", "a", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");", "c+a==b", "c+a", "c", "a", "b", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\ttry {\n\t\t\tint t=scan.nextInt();\n\t\t\twhile(t--!=0){\n\t\t\t\tint x,y,z;\n\t\t\t\tx=scan.nextInt();\n\t\t\t\ty=scan.nextInt();\n\t\t\t\tz=scan.nextInt();\n\t\t\t\tint a=x*x;\n\t\t\t\tint b=y*y;\n\t\t\t\tint c=z*z;\n\t\t\t\tif(a+b==c)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(b+c==a)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in)));\n\t\ttry {\n\t\t\tint t=scan.nextInt();\n\t\t\twhile(t--!=0){\n\t\t\t\tint x,y,z;\n\t\t\t\tx=scan.nextInt();\n\t\t\t\ty=scan.nextInt();\n\t\t\t\tz=scan.nextInt();\n\t\t\t\tint a=x*x;\n\t\t\t\tint b=y*y;\n\t\t\t\tint c=z*z;\n\t\t\t\tif(a+b==c)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(b+c==a)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse if(c+a==b)\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t\t// TODO: handle exception\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan=new Scanner(new BufferedReader(new InputStreamReader(System.in))); try { int t=scan.nextInt(); while(t--!=0){ int x,y,z; x=scan.nextInt(); y=scan.nextInt(); z=scan.nextInt(); int a=x*x; int b=y*y; int c=z*z; if(a+b==c) System.out.println("YES"); else if(b+c==a) System.out.println("YES"); else if(c+a==b) System.out.println("YES"); else System.out.println("NO"); } } catch (Exception e) { // TODO: handle exception } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 14, 2, 4, 18, 13, 2, 13, 13, 13, 30, 29, 17, 30, 29, 17, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 14, 4, 13, 13, 13, 13, 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 ], [ 149, 5 ], [ 149, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 15, 18 ], [ 15, 19 ], [ 14, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 20, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 36, 37 ], [ 36, 38 ], [ 32, 39 ], [ 31, 40 ], [ 40, 41 ], [ 41, 42 ], [ 31, 43 ], [ 43, 44 ], [ 44, 45 ], [ 6, 46 ], [ 46, 47 ], [ 6, 48 ], [ 48, 49 ], [ 6, 50 ], [ 50, 51 ], [ 149, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 54, 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 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 75, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 75, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 75, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 95, 102 ], [ 102, 103 ], [ 102, 104 ], [ 75, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 113, 115 ], [ 109, 116 ], [ 116, 117 ], [ 116, 118 ], [ 75, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 120, 123 ], [ 120, 124 ], [ 119, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 125, 130 ], [ 119, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 131, 136 ], [ 149, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 137, 146 ], [ 146, 147 ], [ 0, 148 ], [ 148, 149 ], [ 148, 150 ] ]
[ "import java.util.*;\npublic class Main {\n\n\tprivate boolean isRightTri(double a, double b, double c){\n\t\tfinal double EPS = 1.0e-08;\n\t\tdouble sum = Math.pow(a, 2) + Math.pow(b, 2);\n\t\tsum = Math.sqrt(sum);\n\t\tif(Math.abs(sum - c) < EPS){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic void doIt(){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i=0; i < n; i++){\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\tdouble c = sc.nextDouble();\n\t\t\tif(a > c){\n\t\t\t\tdouble temp = a;\n\t\t\t\ta = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(b > c){\n\t\t\t\tdouble temp = b;\n\t\t\t\tb = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(isRightTri(a,b,c))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\n\t}\n\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tprivate boolean isRightTri(double a, double b, double c){\n\t\tfinal double EPS = 1.0e-08;\n\t\tdouble sum = Math.pow(a, 2) + Math.pow(b, 2);\n\t\tsum = Math.sqrt(sum);\n\t\tif(Math.abs(sum - c) < EPS){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic void doIt(){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i=0; i < n; i++){\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\tdouble c = sc.nextDouble();\n\t\t\tif(a > c){\n\t\t\t\tdouble temp = a;\n\t\t\t\ta = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(b > c){\n\t\t\t\tdouble temp = b;\n\t\t\t\tb = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(isRightTri(a,b,c))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\n\t}\n\n}", "Main", "private boolean isRightTri(double a, double b, double c){\n\t\tfinal double EPS = 1.0e-08;\n\t\tdouble sum = Math.pow(a, 2) + Math.pow(b, 2);\n\t\tsum = Math.sqrt(sum);\n\t\tif(Math.abs(sum - c) < EPS){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "isRightTri", "{\n\t\tfinal double EPS = 1.0e-08;\n\t\tdouble sum = Math.pow(a, 2) + Math.pow(b, 2);\n\t\tsum = Math.sqrt(sum);\n\t\tif(Math.abs(sum - c) < EPS){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}", "final double EPS = 1.0e-08;", "EPS", "1.0e-08", "double sum = Math.pow(a, 2) + Math.pow(b, 2);", "sum", "Math.pow(a, 2) + Math.pow(b, 2)", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "sum = Math.sqrt(sum)", "sum", "Math.sqrt(sum)", "Math.sqrt", "Math", "sum", "if(Math.abs(sum - c) < EPS){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}", "Math.abs(sum - c) < EPS", "Math.abs(sum - c)", "Math.abs", "Math", "sum - c", "sum", "c", "EPS", "{\n\t\t\treturn true;\n\t\t}", "return true;", "true", "{\n\t\t\treturn false;\n\t\t}", "return false;", "false", "double a", "a", "double b", "b", "double c", "c", "public void doIt(){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i=0; i < n; i++){\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\tdouble c = sc.nextDouble();\n\t\t\tif(a > c){\n\t\t\t\tdouble temp = a;\n\t\t\t\ta = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(b > c){\n\t\t\t\tdouble temp = b;\n\t\t\t\tb = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(isRightTri(a,b,c))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}", "doIt", "{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i=0; i < n; i++){\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\tdouble c = sc.nextDouble();\n\t\t\tif(a > c){\n\t\t\t\tdouble temp = a;\n\t\t\t\ta = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(b > c){\n\t\t\t\tdouble temp = b;\n\t\t\t\tb = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(isRightTri(a,b,c))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0; i < n; i++){\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\tdouble c = sc.nextDouble();\n\t\t\tif(a > c){\n\t\t\t\tdouble temp = a;\n\t\t\t\ta = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(b > c){\n\t\t\t\tdouble temp = b;\n\t\t\t\tb = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(isRightTri(a,b,c))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\tdouble c = sc.nextDouble();\n\t\t\tif(a > c){\n\t\t\t\tdouble temp = a;\n\t\t\t\ta = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(b > c){\n\t\t\t\tdouble temp = b;\n\t\t\t\tb = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(isRightTri(a,b,c))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}", "{\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\tdouble c = sc.nextDouble();\n\t\t\tif(a > c){\n\t\t\t\tdouble temp = a;\n\t\t\t\ta = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(b > c){\n\t\t\t\tdouble temp = b;\n\t\t\t\tb = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(isRightTri(a,b,c))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}", "double a = sc.nextDouble();", "a", "sc.nextDouble()", "sc.nextDouble", "sc", "double b = sc.nextDouble();", "b", "sc.nextDouble()", "sc.nextDouble", "sc", "double c = sc.nextDouble();", "c", "sc.nextDouble()", "sc.nextDouble", "sc", "if(a > c){\n\t\t\t\tdouble temp = a;\n\t\t\t\ta = c;\n\t\t\t\tc = temp;\n\t\t\t}", "a > c", "a", "c", "{\n\t\t\t\tdouble temp = a;\n\t\t\t\ta = c;\n\t\t\t\tc = temp;\n\t\t\t}", "double temp = a;", "temp", "a", "a = c", "a", "c", "c = temp", "c", "temp", "if(b > c){\n\t\t\t\tdouble temp = b;\n\t\t\t\tb = c;\n\t\t\t\tc = temp;\n\t\t\t}", "b > c", "b", "c", "{\n\t\t\t\tdouble temp = b;\n\t\t\t\tb = c;\n\t\t\t\tc = temp;\n\t\t\t}", "double temp = b;", "temp", "b", "b = c", "b", "c", "c = temp", "c", "temp", "if(isRightTri(a,b,c))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");", "isRightTri(a,b,c)", "isRightTri", "a", "b", "c", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "public static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\n\t}", "main", "{\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\n\t}", "Main obj = new Main();", "obj", "new Main()", "obj.doIt()", "obj.doIt", "obj", "String[] args", "args", "public class Main {\n\n\tprivate boolean isRightTri(double a, double b, double c){\n\t\tfinal double EPS = 1.0e-08;\n\t\tdouble sum = Math.pow(a, 2) + Math.pow(b, 2);\n\t\tsum = Math.sqrt(sum);\n\t\tif(Math.abs(sum - c) < EPS){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic void doIt(){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i=0; i < n; i++){\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\tdouble c = sc.nextDouble();\n\t\t\tif(a > c){\n\t\t\t\tdouble temp = a;\n\t\t\t\ta = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(b > c){\n\t\t\t\tdouble temp = b;\n\t\t\t\tb = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(isRightTri(a,b,c))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\n\t}\n\n}", "public class Main {\n\n\tprivate boolean isRightTri(double a, double b, double c){\n\t\tfinal double EPS = 1.0e-08;\n\t\tdouble sum = Math.pow(a, 2) + Math.pow(b, 2);\n\t\tsum = Math.sqrt(sum);\n\t\tif(Math.abs(sum - c) < EPS){\n\t\t\treturn true;\n\t\t}\n\t\telse{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic void doIt(){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i=0; i < n; i++){\n\t\t\tdouble a = sc.nextDouble();\n\t\t\tdouble b = sc.nextDouble();\n\t\t\tdouble c = sc.nextDouble();\n\t\t\tif(a > c){\n\t\t\t\tdouble temp = a;\n\t\t\t\ta = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(b > c){\n\t\t\t\tdouble temp = b;\n\t\t\t\tb = c;\n\t\t\t\tc = temp;\n\t\t\t}\n\t\t\tif(isRightTri(a,b,c))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n\tpublic static void main(String[] args) {\n\t\tMain obj = new Main();\n\t\tobj.doIt();\n\n\t}\n\n}", "Main" ]
import java.util.*; public class Main { private boolean isRightTri(double a, double b, double c){ final double EPS = 1.0e-08; double sum = Math.pow(a, 2) + Math.pow(b, 2); sum = Math.sqrt(sum); if(Math.abs(sum - c) < EPS){ return true; } else{ return false; } } public void doIt(){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int i=0; i < n; i++){ double a = sc.nextDouble(); double b = sc.nextDouble(); double c = sc.nextDouble(); if(a > c){ double temp = a; a = c; c = temp; } if(b > c){ double temp = b; b = c; c = temp; } if(isRightTri(a,b,c)) System.out.println("YES"); else System.out.println("NO"); } } public static void main(String[] args) { Main obj = new Main(); obj.doIt(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 14, 2, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 135, 8 ], [ 135, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 35, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 52, 54 ], [ 35, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 35, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 35, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 73, 75 ], [ 35, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 35, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 35, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 89, 91 ], [ 86, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 86, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 99, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 99, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 115, 117 ], [ 112, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 112, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 9, 132 ], [ 132, 133 ], [ 0, 134 ], [ 134, 135 ], [ 134, 136 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader read = new BufferedReader(\n new java.io.InputStreamReader(System.in));\n\n int x = Integer.parseInt(read.readLine());\n\n for(int i=0;i<x;i++){\n String y= read.readLine();\n String z [] =y.split(\" \");\n //System.out.println(z[2]);\n //System.out.println(x);\n\t// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?\n int a=Integer.parseInt(z[0]);\n int b=Integer.parseInt(z[1]);\n int c=Integer.parseInt(z[2]);\n a=a*a;\n b=b*b;\n c=c*c;\n if (a==(b+c)){\n\t\tSystem.out.println(\"YES\");\n }else if (b==(a+c)){\n \t System.out.println(\"YES\");\n }else if(c==(a+b)){\n \t System.out.println(\"YES\");\n }else{\n \t System.out.println(\"NO\");\n }\n }\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader read = new BufferedReader(\n new java.io.InputStreamReader(System.in));\n\n int x = Integer.parseInt(read.readLine());\n\n for(int i=0;i<x;i++){\n String y= read.readLine();\n String z [] =y.split(\" \");\n //System.out.println(z[2]);\n //System.out.println(x);\n\t// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?\n int a=Integer.parseInt(z[0]);\n int b=Integer.parseInt(z[1]);\n int c=Integer.parseInt(z[2]);\n a=a*a;\n b=b*b;\n c=c*c;\n if (a==(b+c)){\n\t\tSystem.out.println(\"YES\");\n }else if (b==(a+c)){\n \t System.out.println(\"YES\");\n }else if(c==(a+b)){\n \t System.out.println(\"YES\");\n }else{\n \t System.out.println(\"NO\");\n }\n }\n\t}\n\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader read = new BufferedReader(\n new java.io.InputStreamReader(System.in));\n\n int x = Integer.parseInt(read.readLine());\n\n for(int i=0;i<x;i++){\n String y= read.readLine();\n String z [] =y.split(\" \");\n //System.out.println(z[2]);\n //System.out.println(x);\n\t// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?\n int a=Integer.parseInt(z[0]);\n int b=Integer.parseInt(z[1]);\n int c=Integer.parseInt(z[2]);\n a=a*a;\n b=b*b;\n c=c*c;\n if (a==(b+c)){\n\t\tSystem.out.println(\"YES\");\n }else if (b==(a+c)){\n \t System.out.println(\"YES\");\n }else if(c==(a+b)){\n \t System.out.println(\"YES\");\n }else{\n \t System.out.println(\"NO\");\n }\n }\n\t}", "main", "{\n BufferedReader read = new BufferedReader(\n new java.io.InputStreamReader(System.in));\n\n int x = Integer.parseInt(read.readLine());\n\n for(int i=0;i<x;i++){\n String y= read.readLine();\n String z [] =y.split(\" \");\n //System.out.println(z[2]);\n //System.out.println(x);\n\t// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?\n int a=Integer.parseInt(z[0]);\n int b=Integer.parseInt(z[1]);\n int c=Integer.parseInt(z[2]);\n a=a*a;\n b=b*b;\n c=c*c;\n if (a==(b+c)){\n\t\tSystem.out.println(\"YES\");\n }else if (b==(a+c)){\n \t System.out.println(\"YES\");\n }else if(c==(a+b)){\n \t System.out.println(\"YES\");\n }else{\n \t System.out.println(\"NO\");\n }\n }\n\t}", "BufferedReader read = new BufferedReader(\n new java.io.InputStreamReader(System.in));", "read", "new BufferedReader(\n new java.io.InputStreamReader(System.in))", "int x = Integer.parseInt(read.readLine());", "x", "Integer.parseInt(read.readLine())", "Integer.parseInt", "Integer", "read.readLine()", "read.readLine", "read", "for(int i=0;i<x;i++){\n String y= read.readLine();\n String z [] =y.split(\" \");\n //System.out.println(z[2]);\n //System.out.println(x);\n\t// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?\n int a=Integer.parseInt(z[0]);\n int b=Integer.parseInt(z[1]);\n int c=Integer.parseInt(z[2]);\n a=a*a;\n b=b*b;\n c=c*c;\n if (a==(b+c)){\n\t\tSystem.out.println(\"YES\");\n }else if (b==(a+c)){\n \t System.out.println(\"YES\");\n }else if(c==(a+b)){\n \t System.out.println(\"YES\");\n }else{\n \t System.out.println(\"NO\");\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n String y= read.readLine();\n String z [] =y.split(\" \");\n //System.out.println(z[2]);\n //System.out.println(x);\n\t// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?\n int a=Integer.parseInt(z[0]);\n int b=Integer.parseInt(z[1]);\n int c=Integer.parseInt(z[2]);\n a=a*a;\n b=b*b;\n c=c*c;\n if (a==(b+c)){\n\t\tSystem.out.println(\"YES\");\n }else if (b==(a+c)){\n \t System.out.println(\"YES\");\n }else if(c==(a+b)){\n \t System.out.println(\"YES\");\n }else{\n \t System.out.println(\"NO\");\n }\n }", "{\n String y= read.readLine();\n String z [] =y.split(\" \");\n //System.out.println(z[2]);\n //System.out.println(x);\n\t// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?\n int a=Integer.parseInt(z[0]);\n int b=Integer.parseInt(z[1]);\n int c=Integer.parseInt(z[2]);\n a=a*a;\n b=b*b;\n c=c*c;\n if (a==(b+c)){\n\t\tSystem.out.println(\"YES\");\n }else if (b==(a+c)){\n \t System.out.println(\"YES\");\n }else if(c==(a+b)){\n \t System.out.println(\"YES\");\n }else{\n \t System.out.println(\"NO\");\n }\n }", "String y= read.readLine();", "y", "read.readLine()", "read.readLine", "read", "String z [] =y.split(\" \");", "z", "y.split(\" \")", "y.split", "y", "\" \"", "int a=Integer.parseInt(z[0]);", "a", "Integer.parseInt(z[0])", "Integer.parseInt", "Integer", "z[0]", "z", "0", "int b=Integer.parseInt(z[1]);", "b", "Integer.parseInt(z[1])", "Integer.parseInt", "Integer", "z[1]", "z", "1", "int c=Integer.parseInt(z[2]);", "c", "Integer.parseInt(z[2])", "Integer.parseInt", "Integer", "z[2]", "z", "2", "a=a*a", "a", "a*a", "a", "a", "b=b*b", "b", "b*b", "b", "b", "c=c*c", "c", "c*c", "c", "c", "if (a==(b+c)){\n\t\tSystem.out.println(\"YES\");\n }else if (b==(a+c)){\n \t System.out.println(\"YES\");\n }else if(c==(a+b)){\n \t System.out.println(\"YES\");\n }else{\n \t System.out.println(\"NO\");\n }", "a==(b+c)", "a", "(b+c)", "b", "c", "{\n\t\tSystem.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if (b==(a+c)){\n \t System.out.println(\"YES\");\n }else if(c==(a+b)){\n \t System.out.println(\"YES\");\n }else{\n \t System.out.println(\"NO\");\n }", "b==(a+c)", "b", "(a+c)", "a", "c", "{\n \t System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if(c==(a+b)){\n \t System.out.println(\"YES\");\n }else{\n \t System.out.println(\"NO\");\n }", "c==(a+b)", "c", "(a+b)", "a", "b", "{\n \t System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n \t System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader read = new BufferedReader(\n new java.io.InputStreamReader(System.in));\n\n int x = Integer.parseInt(read.readLine());\n\n for(int i=0;i<x;i++){\n String y= read.readLine();\n String z [] =y.split(\" \");\n //System.out.println(z[2]);\n //System.out.println(x);\n\t// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?\n int a=Integer.parseInt(z[0]);\n int b=Integer.parseInt(z[1]);\n int c=Integer.parseInt(z[2]);\n a=a*a;\n b=b*b;\n c=c*c;\n if (a==(b+c)){\n\t\tSystem.out.println(\"YES\");\n }else if (b==(a+c)){\n \t System.out.println(\"YES\");\n }else if(c==(a+b)){\n \t System.out.println(\"YES\");\n }else{\n \t System.out.println(\"NO\");\n }\n }\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader read = new BufferedReader(\n new java.io.InputStreamReader(System.in));\n\n int x = Integer.parseInt(read.readLine());\n\n for(int i=0;i<x;i++){\n String y= read.readLine();\n String z [] =y.split(\" \");\n //System.out.println(z[2]);\n //System.out.println(x);\n\t// TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ?\n int a=Integer.parseInt(z[0]);\n int b=Integer.parseInt(z[1]);\n int c=Integer.parseInt(z[2]);\n a=a*a;\n b=b*b;\n c=c*c;\n if (a==(b+c)){\n\t\tSystem.out.println(\"YES\");\n }else if (b==(a+c)){\n \t System.out.println(\"YES\");\n }else if(c==(a+b)){\n \t System.out.println(\"YES\");\n }else{\n \t System.out.println(\"NO\");\n }\n }\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader read = new BufferedReader( new java.io.InputStreamReader(System.in)); int x = Integer.parseInt(read.readLine()); for(int i=0;i<x;i++){ String y= read.readLine(); String z [] =y.split(" "); //System.out.println(z[2]); //System.out.println(x); // TODO ティツ?ェテ・ツ仰陛ァツ板淌ヲツ按静」ツ?陛」ツつ古」ツ?淌」ツδ。テ」ツつステ」ツδε」ツδ嘉」ツδサテ」ツつケテ」ツつソテ」ツδ? int a=Integer.parseInt(z[0]); int b=Integer.parseInt(z[1]); int c=Integer.parseInt(z[2]); a=a*a; b=b*b; c=c*c; if (a==(b+c)){ System.out.println("YES"); }else if (b==(a+c)){ System.out.println("YES"); }else if(c==(a+b)){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 4, 18, 13, 17, 41, 13, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 4, 13, 13, 14, 2, 13, 17, 30, 14, 4, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 14, 2, 4, 18, 13, 17, 30, 37, 4, 18, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 18, 13, 17, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 14, 2, 2, 2, 13, 2, 13, 13, 2, 13, 2, 13, 13, 2, 13, 2, 13, 13, 30, 29, 17, 30, 29, 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 ], [ 16, 17 ], [ 15, 18 ], [ 11, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 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 ], [ 40, 42 ], [ 26, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 58, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 53, 76 ], [ 11, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 78, 82 ], [ 77, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 9, 88 ], [ 88, 89 ], [ 7, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 97, 99 ], [ 90, 100 ], [ 100, 101 ], [ 7, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 107, 110 ], [ 110, 111 ], [ 110, 112 ], [ 104, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 118, 120 ], [ 104, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 126, 127 ], [ 126, 128 ], [ 104, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 104, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 136, 138 ], [ 104, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 141, 143 ], [ 104, 144 ], [ 144, 145 ], [ 146, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 149, 151 ], [ 146, 152 ], [ 152, 153 ], [ 152, 154 ], [ 154, 155 ], [ 154, 156 ], [ 146, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 159, 161 ], [ 144, 162 ], [ 162, 163 ], [ 163, 164 ], [ 144, 165 ], [ 165, 166 ], [ 166, 167 ], [ 102, 168 ], [ 168, 169 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) throws IOException {\n \t Scanner sc = new Scanner(System.in);\n \t sc.useDelimiter(\"\\\\n\");//\n \t int setOfData = 0;// データセット数\n \t \n while(sc.hasNext()) {\n \t String str = sc.nextLine();\n \t String[] splitted = str.split(\" \");// 空白で文字列を分割する\n \t int length = splitted.length;// 要素の数\n \t if(length == 1) { // データセット数\n \t\t setOfData = numOfSet(splitted); // データセット数をセットする\n \t } else if(length == 3) { // 三角形の三辺\n \t\t if(isRightAngle(splitted)) {\n \t\t System.out.println(\"YES\");\n \t } else {\n \t\t System.out.println(\"NO\");\n \t } \t\t \n \t } else { // それ以外(現状は無視)\n \t\t \n \t }\n }\n \tif (sc.ioException() != null) {\n \t throw sc.ioException();\n \t}\n \t\n }\n /** データセット数を取得するメソッド */\n public static int numOfSet(String[] string) {\n \treturn Integer.valueOf(string[0]);\n }\n \n /** 直角三角形かどうかを判断するメソッド */\n public static Boolean isRightAngle(String[] string) {\n \tint x = Integer.valueOf(string[0]);\n \tint y = Integer.valueOf(string[1]);\n \tint z = Integer.valueOf(string[2]);\n \tx = x*x;\n \ty = y*y;\n \tz = z*z;\n \t\n \tif(x == y+z || y == x+z || z == x+y) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) throws IOException {\n \t Scanner sc = new Scanner(System.in);\n \t sc.useDelimiter(\"\\\\n\");//\n \t int setOfData = 0;// データセット数\n \t \n while(sc.hasNext()) {\n \t String str = sc.nextLine();\n \t String[] splitted = str.split(\" \");// 空白で文字列を分割する\n \t int length = splitted.length;// 要素の数\n \t if(length == 1) { // データセット数\n \t\t setOfData = numOfSet(splitted); // データセット数をセットする\n \t } else if(length == 3) { // 三角形の三辺\n \t\t if(isRightAngle(splitted)) {\n \t\t System.out.println(\"YES\");\n \t } else {\n \t\t System.out.println(\"NO\");\n \t } \t\t \n \t } else { // それ以外(現状は無視)\n \t\t \n \t }\n }\n \tif (sc.ioException() != null) {\n \t throw sc.ioException();\n \t}\n \t\n }\n /** データセット数を取得するメソッド */\n public static int numOfSet(String[] string) {\n \treturn Integer.valueOf(string[0]);\n }\n \n /** 直角三角形かどうかを判断するメソッド */\n public static Boolean isRightAngle(String[] string) {\n \tint x = Integer.valueOf(string[0]);\n \tint y = Integer.valueOf(string[1]);\n \tint z = Integer.valueOf(string[2]);\n \tx = x*x;\n \ty = y*y;\n \tz = z*z;\n \t\n \tif(x == y+z || y == x+z || z == x+y) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n \t Scanner sc = new Scanner(System.in);\n \t sc.useDelimiter(\"\\\\n\");//\n \t int setOfData = 0;// データセット数\n \t \n while(sc.hasNext()) {\n \t String str = sc.nextLine();\n \t String[] splitted = str.split(\" \");// 空白で文字列を分割する\n \t int length = splitted.length;// 要素の数\n \t if(length == 1) { // データセット数\n \t\t setOfData = numOfSet(splitted); // データセット数をセットする\n \t } else if(length == 3) { // 三角形の三辺\n \t\t if(isRightAngle(splitted)) {\n \t\t System.out.println(\"YES\");\n \t } else {\n \t\t System.out.println(\"NO\");\n \t } \t\t \n \t } else { // それ以外(現状は無視)\n \t\t \n \t }\n }\n \tif (sc.ioException() != null) {\n \t throw sc.ioException();\n \t}\n \t\n }", "main", "{\n \t Scanner sc = new Scanner(System.in);\n \t sc.useDelimiter(\"\\\\n\");//\n \t int setOfData = 0;// データセット数\n \t \n while(sc.hasNext()) {\n \t String str = sc.nextLine();\n \t String[] splitted = str.split(\" \");// 空白で文字列を分割する\n \t int length = splitted.length;// 要素の数\n \t if(length == 1) { // データセット数\n \t\t setOfData = numOfSet(splitted); // データセット数をセットする\n \t } else if(length == 3) { // 三角形の三辺\n \t\t if(isRightAngle(splitted)) {\n \t\t System.out.println(\"YES\");\n \t } else {\n \t\t System.out.println(\"NO\");\n \t } \t\t \n \t } else { // それ以外(現状は無視)\n \t\t \n \t }\n }\n \tif (sc.ioException() != null) {\n \t throw sc.ioException();\n \t}\n \t\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "sc.useDelimiter(\"\\\\n\")", "sc.useDelimiter", "sc", "\"\\\\n\"", "int setOfData = 0;", "setOfData", "0", "while(sc.hasNext()) {\n \t String str = sc.nextLine();\n \t String[] splitted = str.split(\" \");// 空白で文字列を分割する\n \t int length = splitted.length;// 要素の数\n \t if(length == 1) { // データセット数\n \t\t setOfData = numOfSet(splitted); // データセット数をセットする\n \t } else if(length == 3) { // 三角形の三辺\n \t\t if(isRightAngle(splitted)) {\n \t\t System.out.println(\"YES\");\n \t } else {\n \t\t System.out.println(\"NO\");\n \t } \t\t \n \t } else { // それ以外(現状は無視)\n \t\t \n \t }\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n \t String str = sc.nextLine();\n \t String[] splitted = str.split(\" \");// 空白で文字列を分割する\n \t int length = splitted.length;// 要素の数\n \t if(length == 1) { // データセット数\n \t\t setOfData = numOfSet(splitted); // データセット数をセットする\n \t } else if(length == 3) { // 三角形の三辺\n \t\t if(isRightAngle(splitted)) {\n \t\t System.out.println(\"YES\");\n \t } else {\n \t\t System.out.println(\"NO\");\n \t } \t\t \n \t } else { // それ以外(現状は無視)\n \t\t \n \t }\n }", "String str = sc.nextLine();", "str", "sc.nextLine()", "sc.nextLine", "sc", "String[] splitted = str.split(\" \");", "splitted", "str.split(\" \")", "str.split", "str", "\" \"", "int length = splitted.length;", "length", "splitted.length", "splitted", "splitted.length", "if(length == 1) { // データセット数\n \t\t setOfData = numOfSet(splitted); // データセット数をセットする\n \t } else if(length == 3) { // 三角形の三辺\n \t\t if(isRightAngle(splitted)) {\n \t\t System.out.println(\"YES\");\n \t } else {\n \t\t System.out.println(\"NO\");\n \t } \t\t \n \t } else { // それ以外(現状は無視)\n \t\t \n \t }", "length == 1", "length", "1", "{ // データセット数\n \t\t setOfData = numOfSet(splitted); // データセット数をセットする\n \t }", "setOfData = numOfSet(splitted)", "setOfData", "numOfSet(splitted)", "numOfSet", "splitted", "if(length == 3) { // 三角形の三辺\n \t\t if(isRightAngle(splitted)) {\n \t\t System.out.println(\"YES\");\n \t } else {\n \t\t System.out.println(\"NO\");\n \t } \t\t \n \t } else { // それ以外(現状は無視)\n \t\t \n \t }", "length == 3", "length", "3", "{ // 三角形の三辺\n \t\t if(isRightAngle(splitted)) {\n \t\t System.out.println(\"YES\");\n \t } else {\n \t\t System.out.println(\"NO\");\n \t } \t\t \n \t }", "if(isRightAngle(splitted)) {\n \t\t System.out.println(\"YES\");\n \t } else {\n \t\t System.out.println(\"NO\");\n \t }", "isRightAngle(splitted)", "isRightAngle", "splitted", "{\n \t\t System.out.println(\"YES\");\n \t }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n \t\t System.out.println(\"NO\");\n \t }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "{ // それ以外(現状は無視)\n \t\t \n \t }", "if (sc.ioException() != null) {\n \t throw sc.ioException();\n \t}", "sc.ioException() != null", "sc.ioException()", "sc.ioException", "sc", "null", "{\n \t throw sc.ioException();\n \t}", "throw sc.ioException();", "sc.ioException()", "sc.ioException", "sc", "String[] args", "args", "/** データセット数を取得するメソッド */\n public static int numOfSet(String[] string) {\n \treturn Integer.valueOf(string[0]);\n }", "numOfSet", "{\n \treturn Integer.valueOf(string[0]);\n }", "return Integer.valueOf(string[0]);", "Integer.valueOf(string[0])", "Integer.valueOf", "Integer", "string[0]", "string", "0", "String[] string", "string", "/** 直角三角形かどうかを判断するメソッド */\n public static Boolean isRightAngle(String[] string) {\n \tint x = Integer.valueOf(string[0]);\n \tint y = Integer.valueOf(string[1]);\n \tint z = Integer.valueOf(string[2]);\n \tx = x*x;\n \ty = y*y;\n \tz = z*z;\n \t\n \tif(x == y+z || y == x+z || z == x+y) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n }", "isRightAngle", "{\n \tint x = Integer.valueOf(string[0]);\n \tint y = Integer.valueOf(string[1]);\n \tint z = Integer.valueOf(string[2]);\n \tx = x*x;\n \ty = y*y;\n \tz = z*z;\n \t\n \tif(x == y+z || y == x+z || z == x+y) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}\n }", "int x = Integer.valueOf(string[0]);", "x", "Integer.valueOf(string[0])", "Integer.valueOf", "Integer", "string[0]", "string", "0", "int y = Integer.valueOf(string[1]);", "y", "Integer.valueOf(string[1])", "Integer.valueOf", "Integer", "string[1]", "string", "1", "int z = Integer.valueOf(string[2]);", "z", "Integer.valueOf(string[2])", "Integer.valueOf", "Integer", "string[2]", "string", "2", "x = x*x", "x", "x*x", "x", "x", "y = y*y", "y", "y*y", "y", "y", "z = z*z", "z", "z*z", "z", "z", "if(x == y+z || y == x+z || z == x+y) {\n \t\treturn true;\n \t} else {\n \t\treturn false;\n \t}", "x == y+z || y == x+z || z == x+y", "x == y+z || y == x+z || z == x+y", "x == y+z", "x", "y+z", "y", "z", "y == x+z", "y", "x+z", "x", "z", "z == x+y", "z", "x+y", "x", "y", "{\n \t\treturn true;\n \t}", "return true;", "true", "{\n \t\treturn false;\n \t}", "return false;", "false", "String[] string", "string" ]
import java.io.IOException; import java.util.Scanner; class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); sc.useDelimiter("\\n");// int setOfData = 0;// データセット数 while(sc.hasNext()) { String str = sc.nextLine(); String[] splitted = str.split(" ");// 空白で文字列を分割する int length = splitted.length;// 要素の数 if(length == 1) { // データセット数 setOfData = numOfSet(splitted); // データセット数をセットする } else if(length == 3) { // 三角形の三辺 if(isRightAngle(splitted)) { System.out.println("YES"); } else { System.out.println("NO"); } } else { // それ以外(現状は無視) } } if (sc.ioException() != null) { throw sc.ioException(); } } /** データセット数を取得するメソッド */ public static int numOfSet(String[] string) { return Integer.valueOf(string[0]); } /** 直角三角形かどうかを判断するメソッド */ public static Boolean isRightAngle(String[] string) { int x = Integer.valueOf(string[0]); int y = Integer.valueOf(string[1]); int z = Integer.valueOf(string[2]); x = x*x; y = y*y; z = z*z; if(x == y+z || y == x+z || z == x+y) { return true; } else { return false; } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 17, 30, 41, 13, 20, 4, 13, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 4, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 4, 13, 4, 13, 18, 13, 17, 4, 13, 18, 13, 17, 4, 13, 18, 13, 17, 23, 13, 12, 13, 30, 14, 2, 2, 4, 13, 13, 13, 13, 4, 13, 13, 13, 13, 4, 13, 13, 13, 13, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 23, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 2, 4, 13, 13, 17, 4, 13, 13, 17, 4, 13, 13, 17, 23, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 175, 17 ], [ 175, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 18, 24 ], [ 24, 25 ], [ 175, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 175, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 47, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 44, 61 ], [ 61, 62 ], [ 175, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 65, 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 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 88, 93 ], [ 85, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 98, 100 ], [ 94, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 94, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 108, 110 ], [ 63, 111 ], [ 111, 112 ], [ 175, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 118, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 119, 122 ], [ 119, 123 ], [ 118, 124 ], [ 124, 125 ], [ 124, 126 ], [ 124, 127 ], [ 124, 128 ], [ 118, 129 ], [ 129, 130 ], [ 129, 131 ], [ 129, 132 ], [ 129, 133 ], [ 116, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 116, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 140, 143 ], [ 113, 144 ], [ 144, 145 ], [ 113, 146 ], [ 146, 147 ], [ 113, 148 ], [ 148, 149 ], [ 175, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 156, 159 ], [ 155, 160 ], [ 160, 161 ], [ 160, 162 ], [ 160, 163 ], [ 154, 164 ], [ 164, 165 ], [ 164, 166 ], [ 164, 167 ], [ 150, 168 ], [ 168, 169 ], [ 150, 170 ], [ 170, 171 ], [ 150, 172 ], [ 172, 173 ], [ 0, 174 ], [ 174, 175 ], [ 174, 176 ] ]
[ "import static java.lang.Integer.parseInt;\nimport static java.lang.Math.pow;\nimport static java.lang.System.out;\nimport java.io.File;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String args[]) {\n new Main().right();\n }\n\n public void right() {\n try (Scanner scan = new Scanner(System.in)) {\n scanInData(scan);\n } catch (Exception e) {\n System.exit(0);\n }\n }\n\n public void right(String inDataPath) {\n try (Scanner scan = new Scanner(new File(inDataPath))) {\n scanInData(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public void scanInData(Scanner scan) {\n int dataCount = parseInt(scan.nextLine());\n for (int i = 0; i < dataCount; i++) {\n String[] data = scan.nextLine().split(\" \");\n printJudgeTriangle(parseInt(data[0]), parseInt(data[1]), parseInt(data[2]));\n }\n }\n\n public void printJudgeTriangle(int a, int b, int c) {\n if (judgeTriangle(a, b, c) || judgeTriangle(b, c, a) || judgeTriangle(c, a, b)) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }\n\n public boolean judgeTriangle(int x, int y, int z) {\n return pow(x, 2) + pow(y, 2) == pow(z, 2);\n }\n}", "import static java.lang.Integer.parseInt;", "import static java.lang.Integer.parseInt;", "import static java.lang.Integer.parseInt;", "import static java.lang.Math.pow;", "import static java.lang.Math.pow;", "import static java.lang.Math.pow;", "import static java.lang.System.out;", "import static java.lang.System.out;", "import static java.lang.System.out;", "import java.io.File;", "File", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String args[]) {\n new Main().right();\n }\n\n public void right() {\n try (Scanner scan = new Scanner(System.in)) {\n scanInData(scan);\n } catch (Exception e) {\n System.exit(0);\n }\n }\n\n public void right(String inDataPath) {\n try (Scanner scan = new Scanner(new File(inDataPath))) {\n scanInData(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public void scanInData(Scanner scan) {\n int dataCount = parseInt(scan.nextLine());\n for (int i = 0; i < dataCount; i++) {\n String[] data = scan.nextLine().split(\" \");\n printJudgeTriangle(parseInt(data[0]), parseInt(data[1]), parseInt(data[2]));\n }\n }\n\n public void printJudgeTriangle(int a, int b, int c) {\n if (judgeTriangle(a, b, c) || judgeTriangle(b, c, a) || judgeTriangle(c, a, b)) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }\n\n public boolean judgeTriangle(int x, int y, int z) {\n return pow(x, 2) + pow(y, 2) == pow(z, 2);\n }\n}", "Main", "public static void main(String args[]) {\n new Main().right();\n }", "main", "{\n new Main().right();\n }", "new Main().right()", "new Main().right", "new Main()", "String args[]", "args", "public void right() {\n try (Scanner scan = new Scanner(System.in)) {\n scanInData(scan);\n } catch (Exception e) {\n System.exit(0);\n }\n }", "right", "{\n try (Scanner scan = new Scanner(System.in)) {\n scanInData(scan);\n } catch (Exception e) {\n System.exit(0);\n }\n }", "try (Scanner scan = new Scanner(System.in)) {\n scanInData(scan);\n } catch (Exception e) {\n System.exit(0);\n }", "catch (Exception e) {\n System.exit(0);\n }", "Exception e", "{\n System.exit(0);\n }", "System.exit(0)", "System.exit", "System", "0", "{\n scanInData(scan);\n }", "Scanner scan = new Scanner(System.in)", "Scanner scan = new Scanner(System.in)", "new Scanner(System.in)", "scanInData(scan)", "scanInData", "scan", "public void right(String inDataPath) {\n try (Scanner scan = new Scanner(new File(inDataPath))) {\n scanInData(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "right", "{\n try (Scanner scan = new Scanner(new File(inDataPath))) {\n scanInData(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "try (Scanner scan = new Scanner(new File(inDataPath))) {\n scanInData(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }", "catch (Exception e) {\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n scanInData(scan);\n }", "Scanner scan = new Scanner(new File(inDataPath))", "Scanner scan = new Scanner(new File(inDataPath))", "new Scanner(new File(inDataPath))", "scanInData(scan)", "scanInData", "scan", "String inDataPath", "inDataPath", "public void scanInData(Scanner scan) {\n int dataCount = parseInt(scan.nextLine());\n for (int i = 0; i < dataCount; i++) {\n String[] data = scan.nextLine().split(\" \");\n printJudgeTriangle(parseInt(data[0]), parseInt(data[1]), parseInt(data[2]));\n }\n }", "scanInData", "{\n int dataCount = parseInt(scan.nextLine());\n for (int i = 0; i < dataCount; i++) {\n String[] data = scan.nextLine().split(\" \");\n printJudgeTriangle(parseInt(data[0]), parseInt(data[1]), parseInt(data[2]));\n }\n }", "int dataCount = parseInt(scan.nextLine());", "dataCount", "parseInt(scan.nextLine())", "parseInt", "scan.nextLine()", "scan.nextLine", "scan", "for (int i = 0; i < dataCount; i++) {\n String[] data = scan.nextLine().split(\" \");\n printJudgeTriangle(parseInt(data[0]), parseInt(data[1]), parseInt(data[2]));\n }", "int i = 0;", "int i = 0;", "i", "0", "i < dataCount", "i", "dataCount", "i++", "i++", "i", "{\n String[] data = scan.nextLine().split(\" \");\n printJudgeTriangle(parseInt(data[0]), parseInt(data[1]), parseInt(data[2]));\n }", "{\n String[] data = scan.nextLine().split(\" \");\n printJudgeTriangle(parseInt(data[0]), parseInt(data[1]), parseInt(data[2]));\n }", "String[] data = scan.nextLine().split(\" \");", "data", "scan.nextLine().split(\" \")", "scan.nextLine().split", "scan.nextLine()", "scan.nextLine", "scan", "\" \"", "printJudgeTriangle(parseInt(data[0]), parseInt(data[1]), parseInt(data[2]))", "printJudgeTriangle", "parseInt(data[0])", "parseInt", "data[0]", "data", "0", "parseInt(data[1])", "parseInt", "data[1]", "data", "1", "parseInt(data[2])", "parseInt", "data[2]", "data", "2", "Scanner scan", "scan", "public void printJudgeTriangle(int a, int b, int c) {\n if (judgeTriangle(a, b, c) || judgeTriangle(b, c, a) || judgeTriangle(c, a, b)) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }", "printJudgeTriangle", "{\n if (judgeTriangle(a, b, c) || judgeTriangle(b, c, a) || judgeTriangle(c, a, b)) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }", "if (judgeTriangle(a, b, c) || judgeTriangle(b, c, a) || judgeTriangle(c, a, b)) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }", "judgeTriangle(a, b, c) || judgeTriangle(b, c, a) || judgeTriangle(c, a, b)", "judgeTriangle(a, b, c) || judgeTriangle(b, c, a) || judgeTriangle(c, a, b)", "judgeTriangle(a, b, c)", "judgeTriangle", "a", "b", "c", "judgeTriangle(b, c, a)", "judgeTriangle", "b", "c", "a", "judgeTriangle(c, a, b)", "judgeTriangle", "c", "a", "b", "{\n out.println(\"YES\");\n }", "out.println(\"YES\")", "out.println", "out", "\"YES\"", "{\n out.println(\"NO\");\n }", "out.println(\"NO\")", "out.println", "out", "\"NO\"", "int a", "a", "int b", "b", "int c", "c", "public boolean judgeTriangle(int x, int y, int z) {\n return pow(x, 2) + pow(y, 2) == pow(z, 2);\n }", "judgeTriangle", "{\n return pow(x, 2) + pow(y, 2) == pow(z, 2);\n }", "return pow(x, 2) + pow(y, 2) == pow(z, 2);", "pow(x, 2) + pow(y, 2) == pow(z, 2)", "pow(x, 2) + pow(y, 2)", "pow(x, 2)", "pow", "x", "2", "pow(y, 2)", "pow", "y", "2", "pow(z, 2)", "pow", "z", "2", "int x", "x", "int y", "y", "int z", "z", "public class Main {\n\n public static void main(String args[]) {\n new Main().right();\n }\n\n public void right() {\n try (Scanner scan = new Scanner(System.in)) {\n scanInData(scan);\n } catch (Exception e) {\n System.exit(0);\n }\n }\n\n public void right(String inDataPath) {\n try (Scanner scan = new Scanner(new File(inDataPath))) {\n scanInData(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public void scanInData(Scanner scan) {\n int dataCount = parseInt(scan.nextLine());\n for (int i = 0; i < dataCount; i++) {\n String[] data = scan.nextLine().split(\" \");\n printJudgeTriangle(parseInt(data[0]), parseInt(data[1]), parseInt(data[2]));\n }\n }\n\n public void printJudgeTriangle(int a, int b, int c) {\n if (judgeTriangle(a, b, c) || judgeTriangle(b, c, a) || judgeTriangle(c, a, b)) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }\n\n public boolean judgeTriangle(int x, int y, int z) {\n return pow(x, 2) + pow(y, 2) == pow(z, 2);\n }\n}", "public class Main {\n\n public static void main(String args[]) {\n new Main().right();\n }\n\n public void right() {\n try (Scanner scan = new Scanner(System.in)) {\n scanInData(scan);\n } catch (Exception e) {\n System.exit(0);\n }\n }\n\n public void right(String inDataPath) {\n try (Scanner scan = new Scanner(new File(inDataPath))) {\n scanInData(scan);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n\n public void scanInData(Scanner scan) {\n int dataCount = parseInt(scan.nextLine());\n for (int i = 0; i < dataCount; i++) {\n String[] data = scan.nextLine().split(\" \");\n printJudgeTriangle(parseInt(data[0]), parseInt(data[1]), parseInt(data[2]));\n }\n }\n\n public void printJudgeTriangle(int a, int b, int c) {\n if (judgeTriangle(a, b, c) || judgeTriangle(b, c, a) || judgeTriangle(c, a, b)) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }\n\n public boolean judgeTriangle(int x, int y, int z) {\n return pow(x, 2) + pow(y, 2) == pow(z, 2);\n }\n}", "Main" ]
import static java.lang.Integer.parseInt; import static java.lang.Math.pow; import static java.lang.System.out; import java.io.File; import java.util.Scanner; public class Main { public static void main(String args[]) { new Main().right(); } public void right() { try (Scanner scan = new Scanner(System.in)) { scanInData(scan); } catch (Exception e) { System.exit(0); } } public void right(String inDataPath) { try (Scanner scan = new Scanner(new File(inDataPath))) { scanInData(scan); } catch (Exception e) { e.printStackTrace(); } } public void scanInData(Scanner scan) { int dataCount = parseInt(scan.nextLine()); for (int i = 0; i < dataCount; i++) { String[] data = scan.nextLine().split(" "); printJudgeTriangle(parseInt(data[0]), parseInt(data[1]), parseInt(data[2])); } } public void printJudgeTriangle(int a, int b, int c) { if (judgeTriangle(a, b, c) || judgeTriangle(b, c, a) || judgeTriangle(c, a, b)) { out.println("YES"); } else { out.println("NO"); } } public boolean judgeTriangle(int x, int y, int z) { return pow(x, 2) + pow(y, 2) == pow(z, 2); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 4, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 14, 2, 2, 13, 13, 2, 13, 13, 30, 29, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 14, 2, 13, 13, 30, 29, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 29, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 138, 5 ], [ 138, 6 ], [ 6, 7 ], [ 6, 8 ], [ 138, 9 ], [ 9, 10 ], [ 9, 11 ], [ 138, 12 ], [ 12, 13 ], [ 12, 14 ], [ 138, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 38, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 55, 58 ], [ 55, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 54, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 15, 74 ], [ 74, 75 ], [ 138, 76 ], [ 76, 77 ], [ 76, 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 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 79, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 115, 117 ], [ 101, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 128, 130 ], [ 76, 131 ], [ 131, 132 ], [ 76, 133 ], [ 133, 134 ], [ 76, 135 ], [ 135, 136 ], [ 0, 137 ], [ 137, 138 ], [ 137, 139 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tstatic int a = 0;\n\tstatic int b = 0;\n\tstatic int c = 0;\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static boolean isTriangle(int a, int b, int c) {\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tstatic int a = 0;\n\tstatic int b = 0;\n\tstatic int c = 0;\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static boolean isTriangle(int a, int b, int c) {\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "static int a = 0;", "a", "0", "static int b = 0;", "b", "0", "static int c = 0;", "c", "0", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int loopNum = scanner.nextInt();", "loopNum", "scanner.nextInt()", "scanner.nextInt", "scanner", "for (int i = 0; i < loopNum; i++) {\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < loopNum", "i", "loopNum", "i++", "i++", "i", "{\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "a = scanner.nextInt()", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "b = scanner.nextInt()", "b", "scanner.nextInt()", "scanner.nextInt", "scanner", "c = scanner.nextInt()", "c", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "isTriangle(a, b, c)", "isTriangle", "a", "b", "c", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "private static boolean isTriangle(int a, int b, int c) {\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}", "isTriangle", "{\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}", "if (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}", "a >= b && a >= c", "a >= b", "a", "b", "a >= c", "a", "c", "{\n\t\t\treturn a * a == b * b + c * c;\n\t\t}", "return a * a == b * b + c * c;", "a * a == b * b + c * c", "a * a", "a", "a", "b * b + c * c", "b * b", "b", "b", "c * c", "c", "c", "{\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}", "if (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}", "b >= c", "b", "c", "{\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t}", "return b * b == a * a + c * c;", "b * b == a * a + c * c", "b * b", "b", "b", "a * a + c * c", "a * a", "a", "a", "c * c", "c", "c", "{\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}", "return c * c == a * a + b * b;", "c * c == a * a + b * b", "c * c", "c", "c", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "int a", "a", "int b", "b", "int c", "c", "public class Main {\n\n\tstatic int a = 0;\n\tstatic int b = 0;\n\tstatic int c = 0;\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static boolean isTriangle(int a, int b, int c) {\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\n\tstatic int a = 0;\n\tstatic int b = 0;\n\tstatic int c = 0;\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static boolean isTriangle(int a, int b, int c) {\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { static int a = 0; static int b = 0; static int c = 0; /** * @param args */ public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int loopNum = scanner.nextInt(); for (int i = 0; i < loopNum; i++) { a = scanner.nextInt(); b = scanner.nextInt(); c = scanner.nextInt(); if (isTriangle(a, b, c)) { System.out.println("YES"); } else { System.out.println("NO"); } } } private static boolean isTriangle(int a, int b, int c) { if (a >= b && a >= c) { return a * a == b * b + c * c; } else { if (b >= c) { return b * b == a * a + c * c; } else { return c * c == a * a + b * b; } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 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, 0, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 4, 18, 13, 17, 30, 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 ], [ 137, 11 ], [ 137, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 29 ], [ 29, 30 ], [ 14, 31 ], [ 31, 32 ], [ 14, 33 ], [ 33, 34 ], [ 14, 35 ], [ 35, 36 ], [ 14, 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 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 52, 57 ], [ 49, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 63, 65 ], [ 49, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 49, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 49, 82 ], [ 82, 83 ], [ 84, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 84, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 84, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 115, 117 ], [ 82, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 119, 122 ], [ 82, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 14, 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;\n//import java.io.FileInputStream;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t//System.setIn(new FileInputStream(\"./input.txt\"));\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] s;\n\t\tint a, b, c;\n\t\tfor(int i = 0; i < n; ++i) {\n\t\t\ts = br.readLine().split(\" \");\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tc = Integer.parseInt(s[2]);\n\t\t\tif(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n\t\t\t\tsb.append(\"YES\\n\");\n\t\t\t}else{\n\t\t\t\tsb.append(\"NO\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\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\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t//System.setIn(new FileInputStream(\"./input.txt\"));\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] s;\n\t\tint a, b, c;\n\t\tfor(int i = 0; i < n; ++i) {\n\t\t\ts = br.readLine().split(\" \");\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tc = Integer.parseInt(s[2]);\n\t\t\tif(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n\t\t\t\tsb.append(\"YES\\n\");\n\t\t\t}else{\n\t\t\t\tsb.append(\"NO\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\t//System.setIn(new FileInputStream(\"./input.txt\"));\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] s;\n\t\tint a, b, c;\n\t\tfor(int i = 0; i < n; ++i) {\n\t\t\ts = br.readLine().split(\" \");\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tc = Integer.parseInt(s[2]);\n\t\t\tif(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n\t\t\t\tsb.append(\"YES\\n\");\n\t\t\t}else{\n\t\t\t\tsb.append(\"NO\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}", "main", "{\n\t\t//System.setIn(new FileInputStream(\"./input.txt\"));\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] s;\n\t\tint a, b, c;\n\t\tfor(int i = 0; i < n; ++i) {\n\t\t\ts = br.readLine().split(\" \");\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tc = Integer.parseInt(s[2]);\n\t\t\tif(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n\t\t\t\tsb.append(\"YES\\n\");\n\t\t\t}else{\n\t\t\t\tsb.append(\"NO\\n\");\n\t\t\t}\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))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "String[] s;", "s", "int a", "a", "b", "b", "c;", "c", "for(int i = 0; i < n; ++i) {\n\t\t\ts = br.readLine().split(\" \");\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tc = Integer.parseInt(s[2]);\n\t\t\tif(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n\t\t\t\tsb.append(\"YES\\n\");\n\t\t\t}else{\n\t\t\t\tsb.append(\"NO\\n\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "{\n\t\t\ts = br.readLine().split(\" \");\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tc = Integer.parseInt(s[2]);\n\t\t\tif(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n\t\t\t\tsb.append(\"YES\\n\");\n\t\t\t}else{\n\t\t\t\tsb.append(\"NO\\n\");\n\t\t\t}\n\t\t}", "{\n\t\t\ts = br.readLine().split(\" \");\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tc = Integer.parseInt(s[2]);\n\t\t\tif(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n\t\t\t\tsb.append(\"YES\\n\");\n\t\t\t}else{\n\t\t\t\tsb.append(\"NO\\n\");\n\t\t\t}\n\t\t}", "s = br.readLine().split(\" \")", "s", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "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", "c = Integer.parseInt(s[2])", "c", "Integer.parseInt(s[2])", "Integer.parseInt", "Integer", "s[2]", "s", "2", "if(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n\t\t\t\tsb.append(\"YES\\n\");\n\t\t\t}else{\n\t\t\t\tsb.append(\"NO\\n\");\n\t\t\t}", "a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b", "a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b", "a*a == b*b + c*c", "a*a", "a", "a", "b*b + c*c", "b*b", "b", "b", "c*c", "c", "c", "b*b == c*c + a*a", "b*b", "b", "b", "c*c + a*a", "c*c", "c", "c", "a*a", "a", "a", "c*c == a*a + b*b", "c*c", "c", "c", "a*a + b*b", "a*a", "a", "a", "b*b", "b", "b", "{\n\t\t\t\tsb.append(\"YES\\n\");\n\t\t\t}", "sb.append(\"YES\\n\")", "sb.append", "sb", "\"YES\\n\"", "{\n\t\t\t\tsb.append(\"NO\\n\");\n\t\t\t}", "sb.append(\"NO\\n\")", "sb.append", "sb", "\"NO\\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 NumberFormatException, IOException {\n\t\t//System.setIn(new FileInputStream(\"./input.txt\"));\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] s;\n\t\tint a, b, c;\n\t\tfor(int i = 0; i < n; ++i) {\n\t\t\ts = br.readLine().split(\" \");\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tc = Integer.parseInt(s[2]);\n\t\t\tif(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n\t\t\t\tsb.append(\"YES\\n\");\n\t\t\t}else{\n\t\t\t\tsb.append(\"NO\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t//System.setIn(new FileInputStream(\"./input.txt\"));\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString[] s;\n\t\tint a, b, c;\n\t\tfor(int i = 0; i < n; ++i) {\n\t\t\ts = br.readLine().split(\" \");\n\t\t\ta = Integer.parseInt(s[0]);\n\t\t\tb = Integer.parseInt(s[1]);\n\t\t\tc = Integer.parseInt(s[2]);\n\t\t\tif(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n\t\t\t\tsb.append(\"YES\\n\");\n\t\t\t}else{\n\t\t\t\tsb.append(\"NO\\n\");\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(sb);\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; //import java.io.FileInputStream; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { //System.setIn(new FileInputStream("./input.txt")); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); StringBuilder sb = new StringBuilder(); String[] s; int a, b, c; for(int i = 0; i < n; ++i) { s = br.readLine().split(" "); a = Integer.parseInt(s[0]); b = Integer.parseInt(s[1]); c = Integer.parseInt(s[2]); if(a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) { sb.append("YES\n"); }else{ sb.append("NO\n"); } } System.out.print(sb); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 13, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 13, 0, 13, 13, 0, 13, 13, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 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 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 8, 18 ], [ 18, 19 ], [ 18, 20 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 44, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 72, 79 ], [ 79, 80 ], [ 79, 81 ], [ 72, 82 ], [ 82, 83 ], [ 82, 84 ], [ 68, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 89, 96 ], [ 96, 97 ], [ 96, 98 ], [ 89, 99 ], [ 99, 100 ], [ 99, 101 ], [ 44, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 111, 113 ], [ 102, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 102, 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\n\tpublic static void main(String[] args) {\n\t\n\t\tint x=0,y=0,a=0,b=0,c=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tx=sc.nextInt();\n\t\tfor(int i=0;i<x;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tb=sc.nextInt();\n\t\t\tc=sc.nextInt();\n\t\t\tif(a>=b && a>=c);\n\t\t\telse if(b>=c){\n\t\t\t\ty=c;\n\t\t\t\tc=a;\n\t\t\t\ta=b;\n\t\t\t\tb=y;\n\t\t\t}\n\t\t\telse if(c>=b){\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}\n\t\t\tif(a*a==b*b+c*c)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t\n\t}\n\t}\n\t\t", "import java.util.*;", "util.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\n\t\tint x=0,y=0,a=0,b=0,c=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tx=sc.nextInt();\n\t\tfor(int i=0;i<x;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tb=sc.nextInt();\n\t\t\tc=sc.nextInt();\n\t\t\tif(a>=b && a>=c);\n\t\t\telse if(b>=c){\n\t\t\t\ty=c;\n\t\t\t\tc=a;\n\t\t\t\ta=b;\n\t\t\t\tb=y;\n\t\t\t}\n\t\t\telse if(c>=b){\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}\n\t\t\tif(a*a==b*b+c*c)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t\n\t}\n\t}", "Main", "public static void main(String[] args) {\n\t\n\t\tint x=0,y=0,a=0,b=0,c=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tx=sc.nextInt();\n\t\tfor(int i=0;i<x;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tb=sc.nextInt();\n\t\t\tc=sc.nextInt();\n\t\t\tif(a>=b && a>=c);\n\t\t\telse if(b>=c){\n\t\t\t\ty=c;\n\t\t\t\tc=a;\n\t\t\t\ta=b;\n\t\t\t\tb=y;\n\t\t\t}\n\t\t\telse if(c>=b){\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}\n\t\t\tif(a*a==b*b+c*c)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t\n\t}", "main", "{\n\t\n\t\tint x=0,y=0,a=0,b=0,c=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tx=sc.nextInt();\n\t\tfor(int i=0;i<x;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tb=sc.nextInt();\n\t\t\tc=sc.nextInt();\n\t\t\tif(a>=b && a>=c);\n\t\t\telse if(b>=c){\n\t\t\t\ty=c;\n\t\t\t\tc=a;\n\t\t\t\ta=b;\n\t\t\t\tb=y;\n\t\t\t}\n\t\t\telse if(c>=b){\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}\n\t\t\tif(a*a==b*b+c*c)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t\n\t}", "int x=0", "x", "0", "y=0", "y", "0", "a=0", "a", "0", "b=0", "b", "0", "c=0;", "c", "0", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "x=sc.nextInt()", "x", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<x;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tb=sc.nextInt();\n\t\t\tc=sc.nextInt();\n\t\t\tif(a>=b && a>=c);\n\t\t\telse if(b>=c){\n\t\t\t\ty=c;\n\t\t\t\tc=a;\n\t\t\t\ta=b;\n\t\t\t\tb=y;\n\t\t\t}\n\t\t\telse if(c>=b){\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}\n\t\t\tif(a*a==b*b+c*c)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n\t\t\ta=sc.nextInt();\n\t\t\tb=sc.nextInt();\n\t\t\tc=sc.nextInt();\n\t\t\tif(a>=b && a>=c);\n\t\t\telse if(b>=c){\n\t\t\t\ty=c;\n\t\t\t\tc=a;\n\t\t\t\ta=b;\n\t\t\t\tb=y;\n\t\t\t}\n\t\t\telse if(c>=b){\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}\n\t\t\tif(a*a==b*b+c*c)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}", "{\n\t\t\ta=sc.nextInt();\n\t\t\tb=sc.nextInt();\n\t\t\tc=sc.nextInt();\n\t\t\tif(a>=b && a>=c);\n\t\t\telse if(b>=c){\n\t\t\t\ty=c;\n\t\t\t\tc=a;\n\t\t\t\ta=b;\n\t\t\t\tb=y;\n\t\t\t}\n\t\t\telse if(c>=b){\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}\n\t\t\tif(a*a==b*b+c*c)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}", "a=sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b=sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "c=sc.nextInt()", "c", "sc.nextInt()", "sc.nextInt", "sc", "if(a>=b && a>=c);\n\t\t\telse if(b>=c){\n\t\t\t\ty=c;\n\t\t\t\tc=a;\n\t\t\t\ta=b;\n\t\t\t\tb=y;\n\t\t\t}\n\t\t\telse if(c>=b){\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}", "a>=b && a>=c", "a>=b", "a", "b", "a>=c", "a", "c", "if(b>=c){\n\t\t\t\ty=c;\n\t\t\t\tc=a;\n\t\t\t\ta=b;\n\t\t\t\tb=y;\n\t\t\t}\n\t\t\telse if(c>=b){\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}", "b>=c", "b", "c", "{\n\t\t\t\ty=c;\n\t\t\t\tc=a;\n\t\t\t\ta=b;\n\t\t\t\tb=y;\n\t\t\t}", "y=c", "y", "c", "c=a", "c", "a", "a=b", "a", "b", "b=y", "b", "y", "if(c>=b){\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}", "c>=b", "c", "b", "{\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}", "y=b", "y", "b", "b=a", "b", "a", "a=c", "a", "c", "c=y", "c", "y", "if(a*a==b*b+c*c)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");", "a*a==b*b+c*c", "a*a", "a", "a", "b*b+c*c", "b*b", "b", "b", "c*c", "c", "c", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\n\t\tint x=0,y=0,a=0,b=0,c=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tx=sc.nextInt();\n\t\tfor(int i=0;i<x;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tb=sc.nextInt();\n\t\t\tc=sc.nextInt();\n\t\t\tif(a>=b && a>=c);\n\t\t\telse if(b>=c){\n\t\t\t\ty=c;\n\t\t\t\tc=a;\n\t\t\t\ta=b;\n\t\t\t\tb=y;\n\t\t\t}\n\t\t\telse if(c>=b){\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}\n\t\t\tif(a*a==b*b+c*c)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t\n\t}\n\t}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\n\t\tint x=0,y=0,a=0,b=0,c=0;\n\t\tScanner sc=new Scanner(System.in);\n\t\tx=sc.nextInt();\n\t\tfor(int i=0;i<x;i++){\n\t\t\ta=sc.nextInt();\n\t\t\tb=sc.nextInt();\n\t\t\tc=sc.nextInt();\n\t\t\tif(a>=b && a>=c);\n\t\t\telse if(b>=c){\n\t\t\t\ty=c;\n\t\t\t\tc=a;\n\t\t\t\ta=b;\n\t\t\t\tb=y;\n\t\t\t}\n\t\t\telse if(c>=b){\n\t\t\t\ty=b;\n\t\t\t\tb=a;\n\t\t\t\ta=c;\n\t\t\t\tc=y;\n\t\t\t}\n\t\t\tif(a*a==b*b+c*c)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t\n\t}\n\t}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { int x=0,y=0,a=0,b=0,c=0; Scanner sc=new Scanner(System.in); x=sc.nextInt(); for(int i=0;i<x;i++){ a=sc.nextInt(); b=sc.nextInt(); c=sc.nextInt(); if(a>=b && a>=c); else if(b>=c){ y=c; c=a; a=b; b=y; } else if(c>=b){ y=b; b=a; a=c; c=y; } if(a*a==b*b+c*c)System.out.println("YES"); else System.out.println("NO"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 41, 13, 20, 4, 18, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 4, 18, 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 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 236, 23 ], [ 236, 24 ], [ 24, 25 ], [ 236, 26 ], [ 26, 27 ], [ 236, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 34, 36 ], [ 30, 37 ], [ 37, 38 ], [ 37, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 43, 44 ], [ 44, 45 ], [ 28, 46 ], [ 46, 47 ], [ 236, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 52, 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 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 70, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 70, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 70, 86 ], [ 86, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 88, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 88, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 119, 120 ], [ 119, 121 ], [ 86, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 86, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 236, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 132, 136 ], [ 136, 137 ], [ 132, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 138, 144 ], [ 144, 145 ], [ 132, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 149, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 148, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 166, 167 ], [ 167, 168 ], [ 132, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 174, 176 ], [ 173, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 172, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 171, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 186, 189 ], [ 189, 190 ], [ 190, 191 ], [ 132, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 197, 199 ], [ 196, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 195, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 194, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 132, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 217, 219 ], [ 216, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 215, 224 ], [ 224, 225 ], [ 225, 226 ], [ 225, 227 ], [ 214, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 229, 232 ], [ 232, 233 ], [ 233, 234 ], [ 0, 235 ], [ 235, 236 ], [ 235, 237 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\nimport java.util.StringTokenizer;\n\npublic class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n int N = in.nextInt();\n for (int i = 0; i < N; i++) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n \n if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }\n \n \n// End solve()\n }\n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n int N = in.nextInt();\n for (int i = 0; i < N; i++) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n \n if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }\n \n \n// End solve()\n }\n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}", "Main", "static InputReader in;", "in", "static PrintWriter out;", "out", "public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}", "main", "{\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}", "in = new InputReader(System.in)", "in", "new InputReader(System.in)", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "Solution solver = new Solution();", "solver", "new Solution()", "solver.solve()", "solver.solve", "solver", "out.close()", "out.close", "out", "String[] args", "args", "static class Solution {\n void solve() throws IOException {\n int N = in.nextInt();\n for (int i = 0; i < N; i++) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n \n if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }\n \n \n// End solve()\n }\n// End Solution\n}", "Solution", "void solve() throws IOException {\n int N = in.nextInt();\n for (int i = 0; i < N; i++) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n \n if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }\n \n \n// End solve()\n }", "solve", "{\n int N = in.nextInt();\n for (int i = 0; i < N; i++) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n \n if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }\n \n \n// End solve()\n }", "int N = in.nextInt();", "N", "in.nextInt()", "in.nextInt", "in", "for (int i = 0; i < N; i++) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n \n if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n \n if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }", "{\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n \n if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }", "int a = in.nextInt();", "a", "in.nextInt()", "in.nextInt", "in", "int b = in.nextInt();", "b", "in.nextInt()", "in.nextInt", "in", "int c = in.nextInt();", "c", "in.nextInt()", "in.nextInt", "in", "if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }", "a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b", "a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b", "a*a == b*b + c*c", "a*a", "a", "a", "b*b + c*c", "b*b", "b", "b", "c*c", "c", "c", "b*b == c*c + a*a", "b*b", "b", "b", "c*c + a*a", "c*c", "c", "c", "a*a", "a", "a", "c*c == a*a + b*b", "c*c", "c", "c", "a*a + b*b", "a*a", "a", "a", "b*b", "b", "b", "{\n out.println(\"YES\");\n }", "out.println(\"YES\")", "out.println", "out", "\"YES\"", "{\n out.println(\"NO\");\n }", "out.println(\"NO\")", "out.println", "out", "\"NO\"", "static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }", "InputReader", "public BufferedReader br;", "br", "public StringTokenizer st;", "st", "public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }", "InputReader", "{\n br = new BufferedReader(new InputStreamReader(stream));\n }", "br = new BufferedReader(new InputStreamReader(stream))", "br", "new BufferedReader(new InputStreamReader(stream))", "InputStream stream", "stream", "public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }", "nextInt", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Integer.parseInt(st.nextToken());", "Integer.parseInt(st.nextToken())", "Integer.parseInt", "Integer", "st.nextToken()", "st.nextToken", "st", "public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }", "nextLong", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Long.parseLong(st.nextToken());", "Long.parseLong(st.nextToken())", "Long.parseLong", "Long", "st.nextToken()", "st.nextToken", "st", "public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }", "nextDouble", "{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }", "while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return Double.parseDouble(st.nextToken());", "Double.parseDouble(st.nextToken())", "Double.parseDouble", "Double", "st.nextToken()", "st.nextToken", "st", "public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n int N = in.nextInt();\n for (int i = 0; i < N; i++) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n \n if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }\n \n \n// End solve()\n }\n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}", "public class Main {\n static InputReader in;\n static PrintWriter out;\n \n static class Solution {\n void solve() throws IOException {\n int N = in.nextInt();\n for (int i = 0; i < N; i++) {\n int a = in.nextInt();\n int b = in.nextInt();\n int c = in.nextInt();\n \n if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) {\n out.println(\"YES\");\n } else {\n out.println(\"NO\");\n }\n }\n \n \n// End solve()\n }\n// End Solution\n}\n\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.Scanner; import java.util.StringTokenizer; public class Main { static InputReader in; static PrintWriter out; static class Solution { void solve() throws IOException { int N = in.nextInt(); for (int i = 0; i < N; i++) { int a = in.nextInt(); int b = in.nextInt(); int c = in.nextInt(); if (a*a == b*b + c*c || b*b == c*c + a*a || c*c == a*a + b*b) { out.println("YES"); } else { out.println("NO"); } } // End solve() } // End Solution } public static void main(String[] args) throws IOException { in = new InputReader(System.in); out = new PrintWriter(System.out); Solution solver = new Solution(); solver.solve(); out.close(); } static class InputReader { public BufferedReader br; public StringTokenizer st; public InputReader(InputStream stream) { br = new BufferedReader(new InputStreamReader(stream)); } public int nextInt() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Integer.parseInt(st.nextToken()); } public long nextLong() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Long.parseLong(st.nextToken()); } public String next() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return st.nextToken(); } public double nextDouble() throws IOException { while (st == null || !st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); } return Double.parseDouble(st.nextToken()); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 2, 40, 13, 17, 30, 30, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 8, 2, 4, 13, 18, 13, 17, 18, 13, 17, 4, 13, 18, 13, 17, 17, 17, 23, 13, 12, 13, 30, 29, 2, 4, 13, 13, 4, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 2, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 104, 8 ], [ 104, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 20, 26 ], [ 27, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 27, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 27, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 67, 68 ], [ 67, 69 ], [ 61, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 60, 75 ], [ 60, 76 ], [ 9, 77 ], [ 77, 78 ], [ 104, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 79, 90 ], [ 90, 91 ], [ 79, 92 ], [ 92, 93 ], [ 104, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 94, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tfor(;N-->0;)\n\t\t{\n\t\t\tint[] l = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) l[i] = sc.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println(lensq(l[0], l[1]) == sq(l[2]) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n\t\n\tprivate static int lensq(int x, int y) { return sq(x) + sq(y); }\n\tprivate static int sq(int n) { return n * n; }\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tfor(;N-->0;)\n\t\t{\n\t\t\tint[] l = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) l[i] = sc.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println(lensq(l[0], l[1]) == sq(l[2]) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n\t\n\tprivate static int lensq(int x, int y) { return sq(x) + sq(y); }\n\tprivate static int sq(int n) { return n * n; }\n}", "Main", "public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tfor(;N-->0;)\n\t\t{\n\t\t\tint[] l = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) l[i] = sc.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println(lensq(l[0], l[1]) == sq(l[2]) ? \"YES\" : \"NO\");\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tfor(;N-->0;)\n\t\t{\n\t\t\tint[] l = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) l[i] = sc.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println(lensq(l[0], l[1]) == sq(l[2]) ? \"YES\" : \"NO\");\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "for(;N-->0;)\n\t\t{\n\t\t\tint[] l = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) l[i] = sc.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println(lensq(l[0], l[1]) == sq(l[2]) ? \"YES\" : \"NO\");\n\t\t}", ";", "N-->0", "N--", "N", "0", "{\n\t\t\tint[] l = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) l[i] = sc.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println(lensq(l[0], l[1]) == sq(l[2]) ? \"YES\" : \"NO\");\n\t\t}", "{\n\t\t\tint[] l = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) l[i] = sc.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println(lensq(l[0], l[1]) == sq(l[2]) ? \"YES\" : \"NO\");\n\t\t}", "int[] l = new int[3];", "l", "new int[3]", "3", "for (int i = 0; i < 3; i++) l[i] = sc.nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "l[i] = sc.nextInt();", "l[i] = sc.nextInt()", "l[i]", "l", "i", "sc.nextInt()", "sc.nextInt", "sc", "Arrays.sort(l)", "Arrays.sort", "Arrays", "l", "System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? \"YES\" : \"NO\")", "System.out.println", "System.out", "System", "System.out", "lensq(l[0], l[1]) == sq(l[2]) ? \"YES\" : \"NO\"", "lensq(l[0], l[1]) == sq(l[2])", "lensq(l[0], l[1])", "lensq", "l[0]", "l", "0", "l[1]", "l", "1", "sq(l[2])", "sq", "l[2]", "l", "2", "\"YES\"", "\"NO\"", "String[] args", "args", "private static int lensq(int x, int y) { return sq(x) + sq(y); }", "lensq", "{ return sq(x) + sq(y); }", "return sq(x) + sq(y);", "sq(x) + sq(y)", "sq(x)", "sq", "x", "sq(y)", "sq", "y", "int x", "x", "int y", "y", "private static int sq(int n) { return n * n; }", "sq", "{ return n * n; }", "return n * n;", "n * n", "n", "n", "int n", "n", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tfor(;N-->0;)\n\t\t{\n\t\t\tint[] l = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) l[i] = sc.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println(lensq(l[0], l[1]) == sq(l[2]) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n\t\n\tprivate static int lensq(int x, int y) { return sq(x) + sq(y); }\n\tprivate static int sq(int n) { return n * n; }\n}", "public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tfor(;N-->0;)\n\t\t{\n\t\t\tint[] l = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) l[i] = sc.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println(lensq(l[0], l[1]) == sq(l[2]) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n\t\n\tprivate static int lensq(int x, int y) { return sq(x) + sq(y); }\n\tprivate static int sq(int n) { return n * n; }\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for(;N-->0;) { int[] l = new int[3]; for (int i = 0; i < 3; i++) l[i] = sc.nextInt(); Arrays.sort(l); System.out.println(lensq(l[0], l[1]) == sq(l[2]) ? "YES" : "NO"); } } private static int lensq(int x, int y) { return sq(x) + sq(y); } private static int sq(int n) { return n * n; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 30, 0, 13, 18, 18, 13, 13, 17, 0, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 0, 18, 18, 13, 13, 17, 13, 14, 2, 2, 13, 17, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 30, 0, 13, 18, 18, 13, 13, 17, 0, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 0, 18, 18, 13, 13, 17, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 209, 5 ], [ 209, 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 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 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 ], [ 51, 55 ], [ 50, 56 ], [ 56, 57 ], [ 57, 58 ], [ 49, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 64, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 59, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 75, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 94, 100 ], [ 49, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 106, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 101, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 117, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 125, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 131, 135 ], [ 117, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 136, 142 ], [ 8, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 143, 148 ], [ 148, 149 ], [ 148, 150 ], [ 143, 151 ], [ 151, 152 ], [ 152, 153 ], [ 143, 154 ], [ 155, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 159, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 158, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 170, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 176, 180 ], [ 157, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 181, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 187, 191 ], [ 156, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 193, 198 ], [ 156, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 200, 205 ], [ 6, 206 ], [ 206, 207 ], [ 0, 208 ], [ 208, 209 ], [ 208, 210 ] ]
[ "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\tint N = sc.nextInt();\n\t\tint[][] t = new int[N][3];\n\t\tint tmp;\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tt[i][j] = sc.nextInt();\n\t\t\t\tif(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}\n\t\t\t\tif(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(t[i][0]*t[i][0]+t[i][1]*t[i][1]==t[i][2]*t[i][2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\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 sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[][] t = new int[N][3];\n\t\tint tmp;\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tt[i][j] = sc.nextInt();\n\t\t\t\tif(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}\n\t\t\t\tif(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(t[i][0]*t[i][0]+t[i][1]*t[i][1]==t[i][2]*t[i][2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t\t\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[][] t = new int[N][3];\n\t\tint tmp;\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tt[i][j] = sc.nextInt();\n\t\t\t\tif(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}\n\t\t\t\tif(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(t[i][0]*t[i][0]+t[i][1]*t[i][1]==t[i][2]*t[i][2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[][] t = new int[N][3];\n\t\tint tmp;\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tt[i][j] = sc.nextInt();\n\t\t\t\tif(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}\n\t\t\t\tif(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(t[i][0]*t[i][0]+t[i][1]*t[i][1]==t[i][2]*t[i][2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int[][] t = new int[N][3];", "t", "new int[N][3]", "N", "3", "int tmp;", "tmp", "for(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tt[i][j] = sc.nextInt();\n\t\t\t\tif(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}\n\t\t\t\tif(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tt[i][j] = sc.nextInt();\n\t\t\t\tif(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}\n\t\t\t\tif(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tt[i][j] = sc.nextInt();\n\t\t\t\tif(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}\n\t\t\t\tif(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "for(int j=0;j<3;j++){\n\t\t\t\tt[i][j] = sc.nextInt();\n\t\t\t\tif(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}\n\t\t\t\tif(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}\n\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\tt[i][j] = sc.nextInt();\n\t\t\t\tif(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}\n\t\t\t\tif(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tt[i][j] = sc.nextInt();\n\t\t\t\tif(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}\n\t\t\t\tif(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}\n\t\t\t}", "t[i][j] = sc.nextInt()", "t[i][j]", "t[i]", "t", "i", "j", "sc.nextInt()", "sc.nextInt", "sc", "if(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}", "j==1&&t[i][0]>t[i][1]", "j==1", "j", "1", "t[i][0]>t[i][1]", "t[i][0]", "t[i]", "t", "i", "0", "t[i][1]", "t[i]", "t", "i", "1", "{\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}", "tmp = t[i][0]", "tmp", "t[i][0]", "t[i]", "t", "i", "0", "t[i][0] = t[i][1]", "t[i][0]", "t[i]", "t", "i", "0", "t[i][1]", "t[i]", "t", "i", "1", "t[i][1] = tmp", "t[i][1]", "t[i]", "t", "i", "1", "tmp", "if(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}", "j==2&&t[i][1]>t[i][2]", "j==2", "j", "2", "t[i][1]>t[i][2]", "t[i][1]", "t[i]", "t", "i", "1", "t[i][2]", "t[i]", "t", "i", "2", "{\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}", "tmp = t[i][1]", "tmp", "t[i][1]", "t[i]", "t", "i", "1", "t[i][1] = t[i][2]", "t[i][1]", "t[i]", "t", "i", "1", "t[i][2]", "t[i]", "t", "i", "2", "t[i][2] = tmp", "t[i][2]", "t[i]", "t", "i", "2", "tmp", "for(int i=0;i<N;i++){\n\t\t\tif(t[i][0]*t[i][0]+t[i][1]*t[i][1]==t[i][2]*t[i][2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tif(t[i][0]*t[i][0]+t[i][1]*t[i][1]==t[i][2]*t[i][2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tif(t[i][0]*t[i][0]+t[i][1]*t[i][1]==t[i][2]*t[i][2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "if(t[i][0]*t[i][0]+t[i][1]*t[i][1]==t[i][2]*t[i][2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "t[i][0]*t[i][0]+t[i][1]*t[i][1]==t[i][2]*t[i][2]", "t[i][0]*t[i][0]+t[i][1]*t[i][1]", "t[i][0]*t[i][0]", "t[i][0]", "t[i]", "t", "i", "0", "t[i][0]", "t[i]", "t", "i", "0", "t[i][1]*t[i][1]", "t[i][1]", "t[i]", "t", "i", "1", "t[i][1]", "t[i]", "t", "i", "1", "t[i][2]*t[i][2]", "t[i][2]", "t[i]", "t", "i", "2", "t[i][2]", "t[i]", "t", "i", "2", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[][] t = new int[N][3];\n\t\tint tmp;\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tt[i][j] = sc.nextInt();\n\t\t\t\tif(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}\n\t\t\t\tif(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(t[i][0]*t[i][0]+t[i][1]*t[i][1]==t[i][2]*t[i][2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t\t\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint[][] t = new int[N][3];\n\t\tint tmp;\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tt[i][j] = sc.nextInt();\n\t\t\t\tif(j==1&&t[i][0]>t[i][1]){\n\t\t\t\t\ttmp = t[i][0];\n\t\t\t\t\tt[i][0] = t[i][1];\n\t\t\t\t\tt[i][1] = tmp;\n\t\t\t\t}\n\t\t\t\tif(j==2&&t[i][1]>t[i][2]){\n\t\t\t\t\ttmp = t[i][1];\n\t\t\t\t\tt[i][1] = t[i][2];\n\t\t\t\t\tt[i][2] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tfor(int i=0;i<N;i++){\n\t\t\tif(t[i][0]*t[i][0]+t[i][1]*t[i][1]==t[i][2]*t[i][2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t\t\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int[][] t = new int[N][3]; int tmp; for(int i=0;i<N;i++){ for(int j=0;j<3;j++){ t[i][j] = sc.nextInt(); if(j==1&&t[i][0]>t[i][1]){ tmp = t[i][0]; t[i][0] = t[i][1]; t[i][1] = tmp; } if(j==2&&t[i][1]>t[i][2]){ tmp = t[i][1]; t[i][1] = t[i][2]; t[i][2] = tmp; } } } for(int i=0;i<N;i++){ if(t[i][0]*t[i][0]+t[i][1]*t[i][1]==t[i][2]*t[i][2]){ System.out.println("YES"); } else{ System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 4, 18, 13, 4, 13, 4, 18, 13, 13, 14, 4, 13, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 13, 23, 13, 12, 13, 30, 29, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 23, 13, 23, 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 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 139, 11 ], [ 139, 12 ], [ 12, 13 ], [ 12, 14 ], [ 139, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 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 ], [ 51, 54 ], [ 54, 55 ], [ 34, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 34, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 61, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 61, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 60, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 60, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 17, 89 ], [ 89, 90 ], [ 15, 91 ], [ 91, 92 ], [ 139, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 104, 108 ], [ 103, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 109, 113 ], [ 93, 114 ], [ 114, 115 ], [ 93, 116 ], [ 116, 117 ], [ 93, 118 ], [ 118, 119 ], [ 139, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 139, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 0, 138 ], [ 138, 139 ], [ 138, 140 ] ]
[ "import java.util.ArrayList;\nimport java.util.Collections;\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\tint N = input();\n\n\t\tfor (int i = 0; i < N; i++) {\n\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\n\t\t\t\tnumList.add(input());\n\n\t\t\t}\n\n\t\t\tCollections.sort(numList);\n\n\t\t\tif (isRight(numList.get(2), numList.get(1), numList.get(0))) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static boolean isRight(int longSide, int shortSideA, int shortSideB) {\n\n\t\treturn Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);\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.Collections;", "Collections", "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\tint N = input();\n\n\t\tfor (int i = 0; i < N; i++) {\n\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\n\t\t\t\tnumList.add(input());\n\n\t\t\t}\n\n\t\t\tCollections.sort(numList);\n\n\t\t\tif (isRight(numList.get(2), numList.get(1), numList.get(0))) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static boolean isRight(int longSide, int shortSideA, int shortSideB) {\n\n\t\treturn Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);\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\tint N = input();\n\n\t\tfor (int i = 0; i < N; i++) {\n\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\n\t\t\t\tnumList.add(input());\n\n\t\t\t}\n\n\t\t\tCollections.sort(numList);\n\n\t\t\tif (isRight(numList.get(2), numList.get(1), numList.get(0))) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t}\n\n\t\tclose();\n\n\t}", "main", "{\n\n\t\tint N = input();\n\n\t\tfor (int i = 0; i < N; i++) {\n\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\n\t\t\t\tnumList.add(input());\n\n\t\t\t}\n\n\t\t\tCollections.sort(numList);\n\n\t\t\tif (isRight(numList.get(2), numList.get(1), numList.get(0))) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t}\n\n\t\tclose();\n\n\t}", "int N = input();", "N", "input()", "input", "for (int i = 0; i < N; i++) {\n\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\n\t\t\t\tnumList.add(input());\n\n\t\t\t}\n\n\t\t\tCollections.sort(numList);\n\n\t\t\tif (isRight(numList.get(2), numList.get(1), numList.get(0))) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\n\t\t\t\tnumList.add(input());\n\n\t\t\t}\n\n\t\t\tCollections.sort(numList);\n\n\t\t\tif (isRight(numList.get(2), numList.get(1), numList.get(0))) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t}", "{\n\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\n\t\t\t\tnumList.add(input());\n\n\t\t\t}\n\n\t\t\tCollections.sort(numList);\n\n\t\t\tif (isRight(numList.get(2), numList.get(1), numList.get(0))) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t}", "ArrayList<Integer> numList = new ArrayList<>();", "numList", "new ArrayList<>()", "for (int j = 0; j < 3; j++) {\n\n\t\t\t\tnumList.add(input());\n\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "{\n\n\t\t\t\tnumList.add(input());\n\n\t\t\t}", "{\n\n\t\t\t\tnumList.add(input());\n\n\t\t\t}", "numList.add(input())", "numList.add", "numList", "input()", "input", "Collections.sort(numList)", "Collections.sort", "Collections", "numList", "if (isRight(numList.get(2), numList.get(1), numList.get(0))) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}", "isRight(numList.get(2), numList.get(1), numList.get(0))", "isRight", "numList.get(2)", "numList.get", "numList", "2", "numList.get(1)", "numList.get", "numList", "1", "numList.get(0)", "numList.get", "numList", "0", "{\n\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "close()", "close", "String[] args", "args", "public static boolean isRight(int longSide, int shortSideA, int shortSideB) {\n\n\t\treturn Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);\n\n\t}", "isRight", "{\n\n\t\treturn Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);\n\n\t}", "return Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);", "Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2)", "Math.pow(longSide, 2)", "Math.pow", "Math", "longSide", "2", "Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2)", "Math.pow(shortSideA, 2)", "Math.pow", "Math", "shortSideA", "2", "Math.pow(shortSideB, 2)", "Math.pow", "Math", "shortSideB", "2", "int longSide", "longSide", "int shortSideA", "shortSideA", "int shortSideB", "shortSideB", "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\tint N = input();\n\n\t\tfor (int i = 0; i < N; i++) {\n\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\n\t\t\t\tnumList.add(input());\n\n\t\t\t}\n\n\t\t\tCollections.sort(numList);\n\n\t\t\tif (isRight(numList.get(2), numList.get(1), numList.get(0))) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static boolean isRight(int longSide, int shortSideA, int shortSideB) {\n\n\t\treturn Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);\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\tint N = input();\n\n\t\tfor (int i = 0; i < N; i++) {\n\n\t\t\tArrayList<Integer> numList = new ArrayList<>();\n\n\t\t\tfor (int j = 0; j < 3; j++) {\n\n\t\t\t\tnumList.add(input());\n\n\t\t\t}\n\n\t\t\tCollections.sort(numList);\n\n\t\t\tif (isRight(numList.get(2), numList.get(1), numList.get(0))) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\t\t}\n\n\t\tclose();\n\n\t}\n\n\tpublic static boolean isRight(int longSide, int shortSideA, int shortSideB) {\n\n\t\treturn Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2);\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.Collections; import java.util.Scanner; public class Main { public static Scanner scanner = new Scanner(System.in); public static void main(String[] args) { int N = input(); for (int i = 0; i < N; i++) { ArrayList<Integer> numList = new ArrayList<>(); for (int j = 0; j < 3; j++) { numList.add(input()); } Collections.sort(numList); if (isRight(numList.get(2), numList.get(1), numList.get(0))) { System.out.println("YES"); } else { System.out.println("NO"); } } close(); } public static boolean isRight(int longSide, int shortSideA, int shortSideB) { return Math.pow(longSide, 2) == Math.pow(shortSideA, 2) + Math.pow(shortSideB, 2); } public static int input() { return scanner.nextInt(); } public static void close() { if (scanner != null) { scanner.close(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 38, 5, 13, 30, 4, 18, 13, 17, 30, 41, 13, 20, 42, 4, 18, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 40, 13, 0, 13, 17, 0, 18, 13, 17, 18, 13, 17, 0, 18, 13, 17, 18, 13, 17, 0, 18, 13, 17, 18, 13, 17, 0, 13, 4, 18, 13, 4, 18, 13, 18, 13, 17, 18, 13, 17, 4, 18, 13, 18, 13, 17, 18, 13, 17, 14, 2, 13, 18, 13, 17, 30, 14, 2, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 18, 13, 17, 30, 14, 2, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 13, 18, 13, 17, 30, 14, 2, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 0, 18, 13, 17, 17, 0, 18, 13, 17, 17, 0, 18, 13, 17, 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 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 17, 32 ], [ 32, 33 ], [ 17, 34 ], [ 34, 35 ], [ 17, 36 ], [ 36, 37 ], [ 36, 38 ], [ 17, 40 ], [ 40, 41 ], [ 17, 42 ], [ 42, 43 ], [ 42, 44 ], [ 17, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 45, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 63, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 90, 91 ], [ 71, 92 ], [ 92, 93 ], [ 92, 94 ], [ 71, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 71, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 106, 107 ], [ 106, 108 ], [ 71, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 113, 115 ], [ 71, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 124, 125 ], [ 124, 126 ], [ 121, 127 ], [ 127, 128 ], [ 127, 129 ], [ 118, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 133, 134 ], [ 133, 135 ], [ 130, 136 ], [ 136, 137 ], [ 136, 138 ], [ 71, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 142, 144 ], [ 139, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 155, 157 ], [ 146, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 146, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 139, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 175, 177 ], [ 172, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 184, 185 ], [ 185, 186 ], [ 185, 187 ], [ 184, 188 ], [ 188, 189 ], [ 188, 190 ], [ 179, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 192, 197 ], [ 179, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 199, 204 ], [ 172, 205 ], [ 205, 206 ], [ 206, 207 ], [ 206, 208 ], [ 208, 209 ], [ 208, 210 ], [ 205, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 213, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 217, 221 ], [ 221, 222 ], [ 221, 223 ], [ 212, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 227, 229 ], [ 225, 230 ], [ 212, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 234, 235 ], [ 234, 236 ], [ 232, 237 ], [ 71, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 238, 242 ], [ 71, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 243, 247 ], [ 71, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 248, 252 ], [ 15, 253 ], [ 253, 254 ] ]
[ "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=br.readLine();\n\t\tint kaz=Integer.parseInt(name);\n\t\tint num;\n\t\tint compare;\n\n\t\tint[] a=new int[3];\n\t\tint big;\n\t\tint i=0;\n\n\t\tfor(int j=0; j<kaz; j++){\n\t\t\tname=br.readLine();\n\t\t\ttry{\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\t\t\t a[0]*=a[0]; a[1]*=a[1]; a[2]*=a[2];\n\t\t\t\tbig = Math.max((Math.max(a[0], a[1])),(Math.max(a[0], a[2])));\n\n\t\t\t\tif(big==a[0]){\n\t\t\t\t\tif(a[0]==a[1]+a[2]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[1]){\n\t\t\t\t\tif(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[2]){\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\ta[2]=0;\n\n\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=br.readLine();\n\t\tint kaz=Integer.parseInt(name);\n\t\tint num;\n\t\tint compare;\n\n\t\tint[] a=new int[3];\n\t\tint big;\n\t\tint i=0;\n\n\t\tfor(int j=0; j<kaz; j++){\n\t\t\tname=br.readLine();\n\t\t\ttry{\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\t\t\t a[0]*=a[0]; a[1]*=a[1]; a[2]*=a[2];\n\t\t\t\tbig = Math.max((Math.max(a[0], a[1])),(Math.max(a[0], a[2])));\n\n\t\t\t\tif(big==a[0]){\n\t\t\t\t\tif(a[0]==a[1]+a[2]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[1]){\n\t\t\t\t\tif(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[2]){\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\ta[2]=0;\n\n\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=br.readLine();\n\t\tint kaz=Integer.parseInt(name);\n\t\tint num;\n\t\tint compare;\n\n\t\tint[] a=new int[3];\n\t\tint big;\n\t\tint i=0;\n\n\t\tfor(int j=0; j<kaz; j++){\n\t\t\tname=br.readLine();\n\t\t\ttry{\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\t\t\t a[0]*=a[0]; a[1]*=a[1]; a[2]*=a[2];\n\t\t\t\tbig = Math.max((Math.max(a[0], a[1])),(Math.max(a[0], a[2])));\n\n\t\t\t\tif(big==a[0]){\n\t\t\t\t\tif(a[0]==a[1]+a[2]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[1]){\n\t\t\t\t\tif(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[2]){\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\ta[2]=0;\n\n\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=br.readLine();\n\t\tint kaz=Integer.parseInt(name);\n\t\tint num;\n\t\tint compare;\n\n\t\tint[] a=new int[3];\n\t\tint big;\n\t\tint i=0;\n\n\t\tfor(int j=0; j<kaz; j++){\n\t\t\tname=br.readLine();\n\t\t\ttry{\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\t\t\t a[0]*=a[0]; a[1]*=a[1]; a[2]*=a[2];\n\t\t\t\tbig = Math.max((Math.max(a[0], a[1])),(Math.max(a[0], a[2])));\n\n\t\t\t\tif(big==a[0]){\n\t\t\t\t\tif(a[0]==a[1]+a[2]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[1]){\n\t\t\t\t\tif(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[2]){\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\ta[2]=0;\n\n\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=br.readLine();", "name", "br.readLine()", "br.readLine", "br", "int kaz=Integer.parseInt(name);", "kaz", "Integer.parseInt(name)", "Integer.parseInt", "Integer", "name", "int num;", "num", "int compare;", "compare", "int[] a=new int[3];", "a", "new int[3]", "3", "int big;", "big", "int i=0;", "i", "0", "for(int j=0; j<kaz; j++){\n\t\t\tname=br.readLine();\n\t\t\ttry{\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\t\t\t a[0]*=a[0]; a[1]*=a[1]; a[2]*=a[2];\n\t\t\t\tbig = Math.max((Math.max(a[0], a[1])),(Math.max(a[0], a[2])));\n\n\t\t\t\tif(big==a[0]){\n\t\t\t\t\tif(a[0]==a[1]+a[2]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[1]){\n\t\t\t\t\tif(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[2]){\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\ta[2]=0;\n\n\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}", "int j=0;", "int j=0;", "j", "0", "j<kaz", "j", "kaz", "j++", "j++", "j", "{\n\t\t\tname=br.readLine();\n\t\t\ttry{\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\t\t\t a[0]*=a[0]; a[1]*=a[1]; a[2]*=a[2];\n\t\t\t\tbig = Math.max((Math.max(a[0], a[1])),(Math.max(a[0], a[2])));\n\n\t\t\t\tif(big==a[0]){\n\t\t\t\t\tif(a[0]==a[1]+a[2]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[1]){\n\t\t\t\t\tif(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[2]){\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\ta[2]=0;\n\n\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\t\tname=br.readLine();\n\t\t\ttry{\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\t\t\t a[0]*=a[0]; a[1]*=a[1]; a[2]*=a[2];\n\t\t\t\tbig = Math.max((Math.max(a[0], a[1])),(Math.max(a[0], a[2])));\n\n\t\t\t\tif(big==a[0]){\n\t\t\t\t\tif(a[0]==a[1]+a[2]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[1]){\n\t\t\t\t\tif(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[2]){\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\ta[2]=0;\n\n\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}", "name=br.readLine()", "name", "br.readLine()", "br.readLine", "br", "try{\n\t\t\t\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\t\t\t a[0]*=a[0]; a[1]*=a[1]; a[2]*=a[2];\n\t\t\t\tbig = Math.max((Math.max(a[0], a[1])),(Math.max(a[0], a[2])));\n\n\t\t\t\tif(big==a[0]){\n\t\t\t\t\tif(a[0]==a[1]+a[2]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[1]){\n\t\t\t\t\tif(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[2]){\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\ta[2]=0;\n\n\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\tStringTokenizer st=new StringTokenizer(name,\" \");\n\t\t\t while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }i=0;\n\t\t\t a[0]*=a[0]; a[1]*=a[1]; a[2]*=a[2];\n\t\t\t\tbig = Math.max((Math.max(a[0], a[1])),(Math.max(a[0], a[2])));\n\n\t\t\t\tif(big==a[0]){\n\t\t\t\t\tif(a[0]==a[1]+a[2]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[1]){\n\t\t\t\t\tif(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[2]){\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\ta[0]=0;\n\t\t\t\ta[1]=0;\n\t\t\t\ta[2]=0;\n\n\n\t\t\t}", "StringTokenizer st=new StringTokenizer(name,\" \");", "st", "new StringTokenizer(name,\" \")", "while (st.hasMoreTokens()) {\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\t\t\t }", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n\t\t\t \t a[i]=Integer.parseInt(st.nextToken());\n\t\t\t \t i++;\n\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", "a[0]*=a[0]", "a[0]", "a", "0", "a[0]", "a", "0", "a[1]*=a[1]", "a[1]", "a", "1", "a[1]", "a", "1", "a[2]*=a[2]", "a[2]", "a", "2", "a[2]", "a", "2", "big = Math.max((Math.max(a[0], a[1])),(Math.max(a[0], a[2])))", "big", "Math.max((Math.max(a[0], a[1])),(Math.max(a[0], a[2])))", "Math.max", "Math", "(Math.max(a[0], a[1]))", "Math.max", "Math", "a[0]", "a", "0", "a[1]", "a", "1", "(Math.max(a[0], a[2]))", "Math.max", "Math", "a[0]", "a", "0", "a[2]", "a", "2", "if(big==a[0]){\n\t\t\t\t\tif(a[0]==a[1]+a[2]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[1]){\n\t\t\t\t\tif(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[2]){\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}", "big==a[0]", "big", "a[0]", "a", "0", "{\n\t\t\t\t\tif(a[0]==a[1]+a[2]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(a[0]==a[1]+a[2]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}", "a[0]==a[1]+a[2]", "a[0]", "a", "0", "a[1]+a[2]", "a[1]", "a", "1", "a[2]", "a", "2", "{\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "if(big==a[1]){\n\t\t\t\t\tif(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\telse if(big==a[2]){\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}", "big==a[1]", "big", "a[1]", "a", "1", "{\n\t\t\t\t\tif(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(a[1]==a[2]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}", "a[1]==a[2]+a[0]", "a[1]", "a", "1", "a[2]+a[0]", "a[2]", "a", "2", "a[0]", "a", "0", "{\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "if(big==a[2]){\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}", "big==a[2]", "big", "a[2]", "a", "2", "{\n\t\t\t\t\tif(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}\n\t\t\t\t}", "if(a[2]==a[1]+a[0]){\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}", "a[2]==a[1]+a[0]", "a[2]", "a", "2", "a[1]+a[0]", "a[1]", "a", "1", "a[0]", "a", "0", "{\n\t\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "a[0]=0", "a[0]", "a", "0", "0", "a[1]=0", "a[1]", "a", "1", "0", "a[2]=0", "a[2]", "a", "2", "0", "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=br.readLine(); int kaz=Integer.parseInt(name); int num; int compare; int[] a=new int[3]; int big; int i=0; for(int j=0; j<kaz; j++){ name=br.readLine(); try{ StringTokenizer st=new StringTokenizer(name," "); while (st.hasMoreTokens()) { a[i]=Integer.parseInt(st.nextToken()); i++; }i=0; a[0]*=a[0]; a[1]*=a[1]; a[2]*=a[2]; big = Math.max((Math.max(a[0], a[1])),(Math.max(a[0], a[2]))); if(big==a[0]){ if(a[0]==a[1]+a[2]){ System.out.println("YES"); } else{ System.out.println("NO"); } } else if(big==a[1]){ if(a[1]==a[2]+a[0]){ System.out.println("YES"); } else{ System.out.println("NO"); } } else if(big==a[2]){ if(a[2]==a[1]+a[0]){ System.out.println("YES"); } else{ System.out.println("NO"); } } a[0]=0; a[1]=0; a[2]=0; } catch(Exception e){ System.exit(0); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 0, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 14, 2, 2, 13, 13, 2, 13, 13, 0, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 14, 2, 2, 13, 13, 2, 13, 13, 0, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 14, 13, 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 ], [ 154, 11 ], [ 154, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 41, 46 ], [ 38, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 52, 54 ], [ 38, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 60, 62 ], [ 38, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 38, 71 ], [ 71, 72 ], [ 71, 73 ], [ 38, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 74, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 95, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 109, 113 ], [ 113, 114 ], [ 113, 115 ], [ 95, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 121, 123 ], [ 116, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 134, 136 ], [ 38, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 137, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 145, 150 ], [ 12, 151 ], [ 151, 152 ], [ 0, 153 ], [ 153, 154 ], [ 153, 155 ] ]
[ "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 int n = Integer.parseInt(br.readLine());\n\n for(int i= 0; i < n; i++){\n String[] input = br.readLine().split(\" \");\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n int c = Integer.parseInt(input[2]);\n \n boolean isRight = false;\n if(a>=c && a>=b) isRight = (a*a == b*b + c*c);\n else if(b>=c && b>=a) isRight = (b*b == c*c + a*a);\n else if(c>=a && c>=b) isRight = (c*c == a*a + b*b);\n\n if(isRight) System.out.println(\"YES\");\n else System.out.println(\"NO\");\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 int n = Integer.parseInt(br.readLine());\n\n for(int i= 0; i < n; i++){\n String[] input = br.readLine().split(\" \");\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n int c = Integer.parseInt(input[2]);\n \n boolean isRight = false;\n if(a>=c && a>=b) isRight = (a*a == b*b + c*c);\n else if(b>=c && b>=a) isRight = (b*b == c*c + a*a);\n else if(c>=a && c>=b) isRight = (c*c == a*a + b*b);\n\n if(isRight) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt(br.readLine());\n\n for(int i= 0; i < n; i++){\n String[] input = br.readLine().split(\" \");\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n int c = Integer.parseInt(input[2]);\n \n boolean isRight = false;\n if(a>=c && a>=b) isRight = (a*a == b*b + c*c);\n else if(b>=c && b>=a) isRight = (b*b == c*c + a*a);\n else if(c>=a && c>=b) isRight = (c*c == a*a + b*b);\n\n if(isRight) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n int n = Integer.parseInt(br.readLine());\n\n for(int i= 0; i < n; i++){\n String[] input = br.readLine().split(\" \");\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n int c = Integer.parseInt(input[2]);\n \n boolean isRight = false;\n if(a>=c && a>=b) isRight = (a*a == b*b + c*c);\n else if(b>=c && b>=a) isRight = (b*b == c*c + a*a);\n else if(c>=a && c>=b) isRight = (c*c == a*a + b*b);\n\n if(isRight) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int i= 0; i < n; i++){\n String[] input = br.readLine().split(\" \");\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n int c = Integer.parseInt(input[2]);\n \n boolean isRight = false;\n if(a>=c && a>=b) isRight = (a*a == b*b + c*c);\n else if(b>=c && b>=a) isRight = (b*b == c*c + a*a);\n else if(c>=a && c>=b) isRight = (c*c == a*a + b*b);\n\n if(isRight) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }", "int i= 0;", "int i= 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n String[] input = br.readLine().split(\" \");\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n int c = Integer.parseInt(input[2]);\n \n boolean isRight = false;\n if(a>=c && a>=b) isRight = (a*a == b*b + c*c);\n else if(b>=c && b>=a) isRight = (b*b == c*c + a*a);\n else if(c>=a && c>=b) isRight = (c*c == a*a + b*b);\n\n if(isRight) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }", "{\n String[] input = br.readLine().split(\" \");\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n int c = Integer.parseInt(input[2]);\n \n boolean isRight = false;\n if(a>=c && a>=b) isRight = (a*a == b*b + c*c);\n else if(b>=c && b>=a) isRight = (b*b == c*c + a*a);\n else if(c>=a && c>=b) isRight = (c*c == a*a + b*b);\n\n if(isRight) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }", "String[] input = br.readLine().split(\" \");", "input", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int a = Integer.parseInt(input[0]);", "a", "Integer.parseInt(input[0])", "Integer.parseInt", "Integer", "input[0]", "input", "0", "int b = Integer.parseInt(input[1]);", "b", "Integer.parseInt(input[1])", "Integer.parseInt", "Integer", "input[1]", "input", "1", "int c = Integer.parseInt(input[2]);", "c", "Integer.parseInt(input[2])", "Integer.parseInt", "Integer", "input[2]", "input", "2", "boolean isRight = false;", "isRight", "false", "if(a>=c && a>=b) isRight = (a*a == b*b + c*c);\n else if(b>=c && b>=a) isRight = (b*b == c*c + a*a);\n else if(c>=a && c>=b) isRight = (c*c == a*a + b*b);", "a>=c && a>=b", "a>=c", "a", "c", "a>=b", "a", "b", "isRight = (a*a == b*b + c*c)", "isRight", "(a*a == b*b + c*c)", "a*a", "a", "a", "b*b + c*c", "b*b", "b", "b", "c*c", "c", "c", "if(b>=c && b>=a) isRight = (b*b == c*c + a*a);\n else if(c>=a && c>=b) isRight = (c*c == a*a + b*b);", "b>=c && b>=a", "b>=c", "b", "c", "b>=a", "b", "a", "isRight = (b*b == c*c + a*a)", "isRight", "(b*b == c*c + a*a)", "b*b", "b", "b", "c*c + a*a", "c*c", "c", "c", "a*a", "a", "a", "if(c>=a && c>=b) isRight = (c*c == a*a + b*b);", "c>=a && c>=b", "c>=a", "c", "a", "c>=b", "c", "b", "isRight = (c*c == a*a + b*b)", "isRight", "(c*c == a*a + b*b)", "c*c", "c", "c", "a*a + b*b", "a*a", "a", "a", "b*b", "b", "b", "if(isRight) System.out.println(\"YES\");\n else System.out.println(\"NO\");", "isRight", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "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 int n = Integer.parseInt(br.readLine());\n\n for(int i= 0; i < n; i++){\n String[] input = br.readLine().split(\" \");\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n int c = Integer.parseInt(input[2]);\n \n boolean isRight = false;\n if(a>=c && a>=b) isRight = (a*a == b*b + c*c);\n else if(b>=c && b>=a) isRight = (b*b == c*c + a*a);\n else if(c>=a && c>=b) isRight = (c*c == a*a + b*b);\n\n if(isRight) System.out.println(\"YES\");\n else System.out.println(\"NO\");\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 int n = Integer.parseInt(br.readLine());\n\n for(int i= 0; i < n; i++){\n String[] input = br.readLine().split(\" \");\n int a = Integer.parseInt(input[0]);\n int b = Integer.parseInt(input[1]);\n int c = Integer.parseInt(input[2]);\n \n boolean isRight = false;\n if(a>=c && a>=b) isRight = (a*a == b*b + c*c);\n else if(b>=c && b>=a) isRight = (b*b == c*c + a*a);\n else if(c>=a && c>=b) isRight = (c*c == a*a + b*b);\n\n if(isRight) System.out.println(\"YES\");\n else System.out.println(\"NO\");\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)); int n = Integer.parseInt(br.readLine()); for(int i= 0; i < n; i++){ String[] input = br.readLine().split(" "); int a = Integer.parseInt(input[0]); int b = Integer.parseInt(input[1]); int c = Integer.parseInt(input[2]); boolean isRight = false; if(a>=c && a>=b) isRight = (a*a == b*b + c*c); else if(b>=c && b>=a) isRight = (b*b == c*c + a*a); else if(c>=a && c>=b) isRight = (c*c == a*a + b*b); if(isRight) System.out.println("YES"); else System.out.println("NO"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 39, 13, 13, 13, 4, 18, 13, 13, 29, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 4, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 123, 8 ], [ 123, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 14, 16 ], [ 14, 17 ], [ 11, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 11, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 23, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 9, 46 ], [ 46, 47 ], [ 9, 48 ], [ 48, 49 ], [ 9, 50 ], [ 50, 51 ], [ 123, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 54, 63 ], [ 63, 64 ], [ 54, 65 ], [ 65, 66 ], [ 54, 67 ], [ 67, 68 ], [ 54, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 77, 78 ], [ 78, 79 ], [ 69, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 81, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 81, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 81, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 98, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 97, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 111, 116 ], [ 54, 117 ], [ 117, 118 ], [ 118, 119 ], [ 52, 120 ], [ 120, 121 ], [ 0, 122 ], [ 122, 123 ], [ 122, 124 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\npublic class Main\n{\n\tprivate static boolean isTriangle(int a,int b,int c)\n\t{\n\t\tint[] edge={a,b,c};\n\t\tArrays.sort(edge);\n\t\treturn edge[0]*edge[0]+edge[1]*edge[1]==edge[2]*edge[2];\n\t}\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint a,b,c;\n\t\tfor(int i=0;i<N;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isTriangle(a,b,c)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main\n{\n\tprivate static boolean isTriangle(int a,int b,int c)\n\t{\n\t\tint[] edge={a,b,c};\n\t\tArrays.sort(edge);\n\t\treturn edge[0]*edge[0]+edge[1]*edge[1]==edge[2]*edge[2];\n\t}\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint a,b,c;\n\t\tfor(int i=0;i<N;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isTriangle(a,b,c)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}\n}", "Main", "private static boolean isTriangle(int a,int b,int c)\n\t{\n\t\tint[] edge={a,b,c};\n\t\tArrays.sort(edge);\n\t\treturn edge[0]*edge[0]+edge[1]*edge[1]==edge[2]*edge[2];\n\t}", "isTriangle", "{\n\t\tint[] edge={a,b,c};\n\t\tArrays.sort(edge);\n\t\treturn edge[0]*edge[0]+edge[1]*edge[1]==edge[2]*edge[2];\n\t}", "int[] edge={a,b,c};", "edge", "{a,b,c}", "a", "b", "c", "Arrays.sort(edge)", "Arrays.sort", "Arrays", "edge", "return edge[0]*edge[0]+edge[1]*edge[1]==edge[2]*edge[2];", "edge[0]*edge[0]+edge[1]*edge[1]==edge[2]*edge[2]", "edge[0]*edge[0]+edge[1]*edge[1]", "edge[0]*edge[0]", "edge[0]", "edge", "0", "edge[0]", "edge", "0", "edge[1]*edge[1]", "edge[1]", "edge", "1", "edge[1]", "edge", "1", "edge[2]*edge[2]", "edge[2]", "edge", "2", "edge[2]", "edge", "2", "int a", "a", "int b", "b", "int c", "c", "public static void main(String[] args)\n\t{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint a,b,c;\n\t\tfor(int i=0;i<N;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isTriangle(a,b,c)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}", "main", "{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint a,b,c;\n\t\tfor(int i=0;i<N;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isTriangle(a,b,c)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}", "Scanner scan=new Scanner(System.in);", "scan", "new Scanner(System.in)", "int N=scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "int a", "a", "b", "b", "c;", "c", "for(int i=0;i<N;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isTriangle(a,b,c)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\t\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isTriangle(a,b,c)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\t\n\t\t\t}\n\t\t}", "{\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isTriangle(a,b,c)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\t\n\t\t\t}\n\t\t}", "a=scan.nextInt()", "a", "scan.nextInt()", "scan.nextInt", "scan", "b=scan.nextInt()", "b", "scan.nextInt()", "scan.nextInt", "scan", "c=scan.nextInt()", "c", "scan.nextInt()", "scan.nextInt", "scan", "if(isTriangle(a,b,c)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\t\n\t\t\t}", "isTriangle(a,b,c)", "isTriangle", "a", "b", "c", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\t\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main\n{\n\tprivate static boolean isTriangle(int a,int b,int c)\n\t{\n\t\tint[] edge={a,b,c};\n\t\tArrays.sort(edge);\n\t\treturn edge[0]*edge[0]+edge[1]*edge[1]==edge[2]*edge[2];\n\t}\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint a,b,c;\n\t\tfor(int i=0;i<N;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isTriangle(a,b,c)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}\n}", "public class Main\n{\n\tprivate static boolean isTriangle(int a,int b,int c)\n\t{\n\t\tint[] edge={a,b,c};\n\t\tArrays.sort(edge);\n\t\treturn edge[0]*edge[0]+edge[1]*edge[1]==edge[2]*edge[2];\n\t}\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint N=scan.nextInt();\n\t\tint a,b,c;\n\t\tfor(int i=0;i<N;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isTriangle(a,b,c)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\t\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main { private static boolean isTriangle(int a,int b,int c) { int[] edge={a,b,c}; Arrays.sort(edge); return edge[0]*edge[0]+edge[1]*edge[1]==edge[2]*edge[2]; } public static void main(String[] args) { Scanner scan=new Scanner(System.in); int N=scan.nextInt(); int a,b,c; for(int i=0;i<N;i++){ a=scan.nextInt(); b=scan.nextInt(); c=scan.nextInt(); if(isTriangle(a,b,c)){ System.out.println("YES"); }else{ System.out.println("NO"); } } scan.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 14, 2, 2, 2, 2, 4, 18, 13, 18, 13, 13, 17, 4, 18, 13, 18, 13, 13, 17, 4, 18, 13, 18, 13, 13, 17, 2, 2, 4, 18, 13, 18, 13, 13, 17, 4, 18, 13, 18, 13, 13, 17, 4, 18, 13, 18, 13, 13, 17, 2, 2, 4, 18, 13, 18, 13, 13, 17, 4, 18, 13, 18, 13, 13, 17, 4, 18, 13, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 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, 13 ], [ 13, 14 ], [ 13, 15 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 8, 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 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 58, 59 ], [ 49, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 68, 69 ], [ 49, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 49, 80 ], [ 80, 81 ], [ 82, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 88, 89 ], [ 88, 90 ], [ 85, 91 ], [ 84, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 95, 97 ], [ 92, 98 ], [ 83, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 102, 104 ], [ 99, 105 ], [ 82, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 111, 112 ], [ 111, 113 ], [ 108, 114 ], [ 107, 115 ], [ 115, 116 ], [ 116, 117 ], [ 115, 118 ], [ 118, 119 ], [ 118, 120 ], [ 115, 121 ], [ 106, 122 ], [ 122, 123 ], [ 123, 124 ], [ 122, 125 ], [ 125, 126 ], [ 125, 127 ], [ 122, 128 ], [ 82, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 134, 135 ], [ 134, 136 ], [ 131, 137 ], [ 130, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 141, 142 ], [ 141, 143 ], [ 138, 144 ], [ 129, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 148, 149 ], [ 148, 150 ], [ 145, 151 ], [ 80, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 153, 158 ], [ 80, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 160, 165 ], [ 8, 166 ], [ 166, 167 ], [ 167, 168 ], [ 6, 169 ], [ 169, 170 ] ]
[ "import java.util.Scanner;\nclass Main{\n public static void main(String[] a){\n\t\tint num1[] = new int[1000];\n\t\tint num2[] = new int[1000];\n\t\tint num3[] = new int[1000];\n\t\tint num,i = 0;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tnum = Integer.parseInt(scanner.next());\n\t\tfor(i=0; i<num; i++) {\n\t\t\tnum1[i] = Integer.parseInt(scanner.next());\n\t\t\tnum2[i] = Integer.parseInt(scanner.next());\n\t\t\tnum3[i] = Integer.parseInt(scanner.next());\n\t\t\tif((Math.pow(num1[i], 2) + Math.pow(num2[i], 2) == Math.pow(num3[i], 2))\n\t\t\t\t\t|| (Math.pow(num1[i], 2) + Math.pow(num3[i], 2) == Math.pow(num2[i], 2))\n\t\t\t\t\t|| (Math.pow(num2[i], 2) + Math.pow(num3[i], 2) == Math.pow(num1[i], 2))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\t\n\t\t\t} \n\t\t}\n\t\tscanner.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] a){\n\t\tint num1[] = new int[1000];\n\t\tint num2[] = new int[1000];\n\t\tint num3[] = new int[1000];\n\t\tint num,i = 0;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tnum = Integer.parseInt(scanner.next());\n\t\tfor(i=0; i<num; i++) {\n\t\t\tnum1[i] = Integer.parseInt(scanner.next());\n\t\t\tnum2[i] = Integer.parseInt(scanner.next());\n\t\t\tnum3[i] = Integer.parseInt(scanner.next());\n\t\t\tif((Math.pow(num1[i], 2) + Math.pow(num2[i], 2) == Math.pow(num3[i], 2))\n\t\t\t\t\t|| (Math.pow(num1[i], 2) + Math.pow(num3[i], 2) == Math.pow(num2[i], 2))\n\t\t\t\t\t|| (Math.pow(num2[i], 2) + Math.pow(num3[i], 2) == Math.pow(num1[i], 2))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\t\n\t\t\t} \n\t\t}\n\t\tscanner.close();\n }\n}", "Main", "public static void main(String[] a){\n\t\tint num1[] = new int[1000];\n\t\tint num2[] = new int[1000];\n\t\tint num3[] = new int[1000];\n\t\tint num,i = 0;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tnum = Integer.parseInt(scanner.next());\n\t\tfor(i=0; i<num; i++) {\n\t\t\tnum1[i] = Integer.parseInt(scanner.next());\n\t\t\tnum2[i] = Integer.parseInt(scanner.next());\n\t\t\tnum3[i] = Integer.parseInt(scanner.next());\n\t\t\tif((Math.pow(num1[i], 2) + Math.pow(num2[i], 2) == Math.pow(num3[i], 2))\n\t\t\t\t\t|| (Math.pow(num1[i], 2) + Math.pow(num3[i], 2) == Math.pow(num2[i], 2))\n\t\t\t\t\t|| (Math.pow(num2[i], 2) + Math.pow(num3[i], 2) == Math.pow(num1[i], 2))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\t\n\t\t\t} \n\t\t}\n\t\tscanner.close();\n }", "main", "{\n\t\tint num1[] = new int[1000];\n\t\tint num2[] = new int[1000];\n\t\tint num3[] = new int[1000];\n\t\tint num,i = 0;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tnum = Integer.parseInt(scanner.next());\n\t\tfor(i=0; i<num; i++) {\n\t\t\tnum1[i] = Integer.parseInt(scanner.next());\n\t\t\tnum2[i] = Integer.parseInt(scanner.next());\n\t\t\tnum3[i] = Integer.parseInt(scanner.next());\n\t\t\tif((Math.pow(num1[i], 2) + Math.pow(num2[i], 2) == Math.pow(num3[i], 2))\n\t\t\t\t\t|| (Math.pow(num1[i], 2) + Math.pow(num3[i], 2) == Math.pow(num2[i], 2))\n\t\t\t\t\t|| (Math.pow(num2[i], 2) + Math.pow(num3[i], 2) == Math.pow(num1[i], 2))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\t\n\t\t\t} \n\t\t}\n\t\tscanner.close();\n }", "int num1[] = new int[1000];", "num1", "new int[1000]", "1000", "int num2[] = new int[1000];", "num2", "new int[1000]", "1000", "int num3[] = new int[1000];", "num3", "new int[1000]", "1000", "int num", "num", "i = 0;", "i", "0", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "num = Integer.parseInt(scanner.next())", "num", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "for(i=0; i<num; i++) {\n\t\t\tnum1[i] = Integer.parseInt(scanner.next());\n\t\t\tnum2[i] = Integer.parseInt(scanner.next());\n\t\t\tnum3[i] = Integer.parseInt(scanner.next());\n\t\t\tif((Math.pow(num1[i], 2) + Math.pow(num2[i], 2) == Math.pow(num3[i], 2))\n\t\t\t\t\t|| (Math.pow(num1[i], 2) + Math.pow(num3[i], 2) == Math.pow(num2[i], 2))\n\t\t\t\t\t|| (Math.pow(num2[i], 2) + Math.pow(num3[i], 2) == Math.pow(num1[i], 2))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\t\n\t\t\t} \n\t\t}", "i=0;", "i=0", "i", "0", "i<num", "i", "num", "i++", "i++", "i", "{\n\t\t\tnum1[i] = Integer.parseInt(scanner.next());\n\t\t\tnum2[i] = Integer.parseInt(scanner.next());\n\t\t\tnum3[i] = Integer.parseInt(scanner.next());\n\t\t\tif((Math.pow(num1[i], 2) + Math.pow(num2[i], 2) == Math.pow(num3[i], 2))\n\t\t\t\t\t|| (Math.pow(num1[i], 2) + Math.pow(num3[i], 2) == Math.pow(num2[i], 2))\n\t\t\t\t\t|| (Math.pow(num2[i], 2) + Math.pow(num3[i], 2) == Math.pow(num1[i], 2))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\t\n\t\t\t} \n\t\t}", "{\n\t\t\tnum1[i] = Integer.parseInt(scanner.next());\n\t\t\tnum2[i] = Integer.parseInt(scanner.next());\n\t\t\tnum3[i] = Integer.parseInt(scanner.next());\n\t\t\tif((Math.pow(num1[i], 2) + Math.pow(num2[i], 2) == Math.pow(num3[i], 2))\n\t\t\t\t\t|| (Math.pow(num1[i], 2) + Math.pow(num3[i], 2) == Math.pow(num2[i], 2))\n\t\t\t\t\t|| (Math.pow(num2[i], 2) + Math.pow(num3[i], 2) == Math.pow(num1[i], 2))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\t\n\t\t\t} \n\t\t}", "num1[i] = Integer.parseInt(scanner.next())", "num1[i]", "num1", "i", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "num2[i] = Integer.parseInt(scanner.next())", "num2[i]", "num2", "i", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "num3[i] = Integer.parseInt(scanner.next())", "num3[i]", "num3", "i", "Integer.parseInt(scanner.next())", "Integer.parseInt", "Integer", "scanner.next()", "scanner.next", "scanner", "if((Math.pow(num1[i], 2) + Math.pow(num2[i], 2) == Math.pow(num3[i], 2))\n\t\t\t\t\t|| (Math.pow(num1[i], 2) + Math.pow(num3[i], 2) == Math.pow(num2[i], 2))\n\t\t\t\t\t|| (Math.pow(num2[i], 2) + Math.pow(num3[i], 2) == Math.pow(num1[i], 2))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\t\n\t\t\t}", "(Math.pow(num1[i], 2) + Math.pow(num2[i], 2) == Math.pow(num3[i], 2))\n\t\t\t\t\t|| (Math.pow(num1[i], 2) + Math.pow(num3[i], 2) == Math.pow(num2[i], 2))\n\t\t\t\t\t|| (Math.pow(num2[i], 2) + Math.pow(num3[i], 2) == Math.pow(num1[i], 2))", "(Math.pow(num1[i], 2) + Math.pow(num2[i], 2) == Math.pow(num3[i], 2))\n\t\t\t\t\t|| (Math.pow(num1[i], 2) + Math.pow(num3[i], 2) == Math.pow(num2[i], 2))\n\t\t\t\t\t|| (Math.pow(num2[i], 2) + Math.pow(num3[i], 2) == Math.pow(num1[i], 2))", "(Math.pow(num1[i], 2) + Math.pow(num2[i], 2) == Math.pow(num3[i], 2))", "Math.pow(num1[i], 2) + Math.pow(num2[i], 2)", "Math.pow(num1[i], 2)", "Math.pow", "Math", "num1[i]", "num1", "i", "2", "Math.pow(num2[i], 2)", "Math.pow", "Math", "num2[i]", "num2", "i", "2", "Math.pow(num3[i], 2)", "Math.pow", "Math", "num3[i]", "num3", "i", "2", "(Math.pow(num1[i], 2) + Math.pow(num3[i], 2) == Math.pow(num2[i], 2))", "Math.pow(num1[i], 2) + Math.pow(num3[i], 2)", "Math.pow(num1[i], 2)", "Math.pow", "Math", "num1[i]", "num1", "i", "2", "Math.pow(num3[i], 2)", "Math.pow", "Math", "num3[i]", "num3", "i", "2", "Math.pow(num2[i], 2)", "Math.pow", "Math", "num2[i]", "num2", "i", "2", "(Math.pow(num2[i], 2) + Math.pow(num3[i], 2) == Math.pow(num1[i], 2))", "Math.pow(num2[i], 2) + Math.pow(num3[i], 2)", "Math.pow(num2[i], 2)", "Math.pow", "Math", "num2[i]", "num2", "i", "2", "Math.pow(num3[i], 2)", "Math.pow", "Math", "num3[i]", "num3", "i", "2", "Math.pow(num1[i], 2)", "Math.pow", "Math", "num1[i]", "num1", "i", "2", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\t\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "scanner.close()", "scanner.close", "scanner", "String[] a", "a" ]
import java.util.Scanner; class Main{ public static void main(String[] a){ int num1[] = new int[1000]; int num2[] = new int[1000]; int num3[] = new int[1000]; int num,i = 0; Scanner scanner = new Scanner(System.in); num = Integer.parseInt(scanner.next()); for(i=0; i<num; i++) { num1[i] = Integer.parseInt(scanner.next()); num2[i] = Integer.parseInt(scanner.next()); num3[i] = Integer.parseInt(scanner.next()); if((Math.pow(num1[i], 2) + Math.pow(num2[i], 2) == Math.pow(num3[i], 2)) || (Math.pow(num1[i], 2) + Math.pow(num3[i], 2) == Math.pow(num2[i], 2)) || (Math.pow(num2[i], 2) + Math.pow(num3[i], 2) == Math.pow(num1[i], 2))){ System.out.println("YES"); } else{ System.out.println("NO"); } } scanner.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 20, 13, 0, 13, 17, 42, 2, 13, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 14, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 18, 13, 13, 17, 30, 0, 18, 13, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 18, 13, 13, 17, 30, 0, 18, 13, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 18, 13, 13, 17, 30, 0, 18, 13, 13, 17, 30, 0, 18, 13, 13, 17, 40, 13, 0, 13, 17, 42, 2, 13, 13, 30, 4, 18, 18, 13, 13, 18, 13, 13, 40, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 192, 5 ], [ 192, 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 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 8, 35 ], [ 35, 36 ], [ 35, 37 ], [ 8, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 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 ], [ 55, 56 ], [ 56, 57 ], [ 42, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 42, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 42, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 42, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 81, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 87, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 73, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 103, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 111, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 117, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 103, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 138, 140 ], [ 133, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 144, 146 ], [ 141, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 147, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 133, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 42, 169 ], [ 169, 170 ], [ 8, 171 ], [ 171, 172 ], [ 171, 173 ], [ 8, 174 ], [ 174, 175 ], [ 175, 176 ], [ 175, 177 ], [ 174, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 179, 184 ], [ 184, 185 ], [ 184, 186 ], [ 178, 187 ], [ 187, 188 ], [ 6, 189 ], [ 189, 190 ], [ 0, 191 ], [ 191, 192 ], [ 191, 193 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n int i,j,k,a,b,c;\n \tString[] data;\n \n Scanner scan = new Scanner(System.in);\n k = scan.nextInt();\n data = new String[k];\n i = 0;\n while(i < k){\n \ta = scan.nextInt();\n \tb = scan.nextInt();\n \tc = scan.nextInt();\n \ta=a*a;\n \tb=b*b;\n \tc=c*c;\n \tif(a>b && a>c){\n \t\tb = b + c;\n \t\tif(a == b){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(b>a && b>c){\n \t\ta = a + c;\n \t\tif(b == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(c>a && c>b){\n \t\ta = a + b;\n \t\tif(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else{\n \t\tdata[i]=\"NO\";\n \t}\n \ti++;\n }\n \n \n j = 0;\n while(j < i){\n \tSystem.out.println(data[j]);\n \tj++;\n \t\t}\n \t\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args){\n int i,j,k,a,b,c;\n \tString[] data;\n \n Scanner scan = new Scanner(System.in);\n k = scan.nextInt();\n data = new String[k];\n i = 0;\n while(i < k){\n \ta = scan.nextInt();\n \tb = scan.nextInt();\n \tc = scan.nextInt();\n \ta=a*a;\n \tb=b*b;\n \tc=c*c;\n \tif(a>b && a>c){\n \t\tb = b + c;\n \t\tif(a == b){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(b>a && b>c){\n \t\ta = a + c;\n \t\tif(b == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(c>a && c>b){\n \t\ta = a + b;\n \t\tif(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else{\n \t\tdata[i]=\"NO\";\n \t}\n \ti++;\n }\n \n \n j = 0;\n while(j < i){\n \tSystem.out.println(data[j]);\n \tj++;\n \t\t}\n \t\t}\n}", "Main", "public static void main(String[] args){\n int i,j,k,a,b,c;\n \tString[] data;\n \n Scanner scan = new Scanner(System.in);\n k = scan.nextInt();\n data = new String[k];\n i = 0;\n while(i < k){\n \ta = scan.nextInt();\n \tb = scan.nextInt();\n \tc = scan.nextInt();\n \ta=a*a;\n \tb=b*b;\n \tc=c*c;\n \tif(a>b && a>c){\n \t\tb = b + c;\n \t\tif(a == b){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(b>a && b>c){\n \t\ta = a + c;\n \t\tif(b == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(c>a && c>b){\n \t\ta = a + b;\n \t\tif(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else{\n \t\tdata[i]=\"NO\";\n \t}\n \ti++;\n }\n \n \n j = 0;\n while(j < i){\n \tSystem.out.println(data[j]);\n \tj++;\n \t\t}\n \t\t}", "main", "{\n int i,j,k,a,b,c;\n \tString[] data;\n \n Scanner scan = new Scanner(System.in);\n k = scan.nextInt();\n data = new String[k];\n i = 0;\n while(i < k){\n \ta = scan.nextInt();\n \tb = scan.nextInt();\n \tc = scan.nextInt();\n \ta=a*a;\n \tb=b*b;\n \tc=c*c;\n \tif(a>b && a>c){\n \t\tb = b + c;\n \t\tif(a == b){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(b>a && b>c){\n \t\ta = a + c;\n \t\tif(b == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(c>a && c>b){\n \t\ta = a + b;\n \t\tif(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else{\n \t\tdata[i]=\"NO\";\n \t}\n \ti++;\n }\n \n \n j = 0;\n while(j < i){\n \tSystem.out.println(data[j]);\n \tj++;\n \t\t}\n \t\t}", "int i", "i", "j", "j", "k", "k", "a", "a", "b", "b", "c;", "c", "String[] data;", "data", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "k = scan.nextInt()", "k", "scan.nextInt()", "scan.nextInt", "scan", "data = new String[k]", "data", "new String[k]", "k", "i = 0", "i", "0", "while(i < k){\n \ta = scan.nextInt();\n \tb = scan.nextInt();\n \tc = scan.nextInt();\n \ta=a*a;\n \tb=b*b;\n \tc=c*c;\n \tif(a>b && a>c){\n \t\tb = b + c;\n \t\tif(a == b){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(b>a && b>c){\n \t\ta = a + c;\n \t\tif(b == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(c>a && c>b){\n \t\ta = a + b;\n \t\tif(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else{\n \t\tdata[i]=\"NO\";\n \t}\n \ti++;\n }", "i < k", "i", "k", "{\n \ta = scan.nextInt();\n \tb = scan.nextInt();\n \tc = scan.nextInt();\n \ta=a*a;\n \tb=b*b;\n \tc=c*c;\n \tif(a>b && a>c){\n \t\tb = b + c;\n \t\tif(a == b){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(b>a && b>c){\n \t\ta = a + c;\n \t\tif(b == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(c>a && c>b){\n \t\ta = a + b;\n \t\tif(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else{\n \t\tdata[i]=\"NO\";\n \t}\n \ti++;\n }", "a = scan.nextInt()", "a", "scan.nextInt()", "scan.nextInt", "scan", "b = scan.nextInt()", "b", "scan.nextInt()", "scan.nextInt", "scan", "c = scan.nextInt()", "c", "scan.nextInt()", "scan.nextInt", "scan", "a=a*a", "a", "a*a", "a", "a", "b=b*b", "b", "b*b", "b", "b", "c=c*c", "c", "c*c", "c", "c", "if(a>b && a>c){\n \t\tb = b + c;\n \t\tif(a == b){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(b>a && b>c){\n \t\ta = a + c;\n \t\tif(b == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(c>a && c>b){\n \t\ta = a + b;\n \t\tif(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else{\n \t\tdata[i]=\"NO\";\n \t}", "a>b && a>c", "a>b", "a", "b", "a>c", "a", "c", "{\n \t\tb = b + c;\n \t\tif(a == b){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}", "b = b + c", "b", "b + c", "b", "c", "if(a == b){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}", "a == b", "a", "b", "{\n \t\t\tdata[i]=\"YES\";\n \t\t}", "data[i]=\"YES\"", "data[i]", "data", "i", "\"YES\"", "{\n \t\t\tdata[i]=\"NO\";\n \t\t}", "data[i]=\"NO\"", "data[i]", "data", "i", "\"NO\"", "if(b>a && b>c){\n \t\ta = a + c;\n \t\tif(b == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(c>a && c>b){\n \t\ta = a + b;\n \t\tif(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else{\n \t\tdata[i]=\"NO\";\n \t}", "b>a && b>c", "b>a", "b", "a", "b>c", "b", "c", "{\n \t\ta = a + c;\n \t\tif(b == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}", "a = a + c", "a", "a + c", "a", "c", "if(b == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}", "b == a", "b", "a", "{\n \t\t\tdata[i]=\"YES\";\n \t\t}", "data[i]=\"YES\"", "data[i]", "data", "i", "\"YES\"", "{\n \t\t\tdata[i]=\"NO\";\n \t\t}", "data[i]=\"NO\"", "data[i]", "data", "i", "\"NO\"", "if(c>a && c>b){\n \t\ta = a + b;\n \t\tif(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else{\n \t\tdata[i]=\"NO\";\n \t}", "c>a && c>b", "c>a", "c", "a", "c>b", "c", "b", "{\n \t\ta = a + b;\n \t\tif(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}", "a = a + b", "a", "a + b", "a", "b", "if(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}", "c == a", "c", "a", "{\n \t\t\tdata[i]=\"YES\";\n \t\t}", "data[i]=\"YES\"", "data[i]", "data", "i", "\"YES\"", "{\n \t\t\tdata[i]=\"NO\";\n \t\t}", "data[i]=\"NO\"", "data[i]", "data", "i", "\"NO\"", "{\n \t\tdata[i]=\"NO\";\n \t}", "data[i]=\"NO\"", "data[i]", "data", "i", "\"NO\"", "i++", "i", "j = 0", "j", "0", "while(j < i){\n \tSystem.out.println(data[j]);\n \tj++;\n \t\t}", "j < i", "j", "i", "{\n \tSystem.out.println(data[j]);\n \tj++;\n \t\t}", "System.out.println(data[j])", "System.out.println", "System.out", "System", "System.out", "data[j]", "data", "j", "j++", "j", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n int i,j,k,a,b,c;\n \tString[] data;\n \n Scanner scan = new Scanner(System.in);\n k = scan.nextInt();\n data = new String[k];\n i = 0;\n while(i < k){\n \ta = scan.nextInt();\n \tb = scan.nextInt();\n \tc = scan.nextInt();\n \ta=a*a;\n \tb=b*b;\n \tc=c*c;\n \tif(a>b && a>c){\n \t\tb = b + c;\n \t\tif(a == b){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(b>a && b>c){\n \t\ta = a + c;\n \t\tif(b == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(c>a && c>b){\n \t\ta = a + b;\n \t\tif(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else{\n \t\tdata[i]=\"NO\";\n \t}\n \ti++;\n }\n \n \n j = 0;\n while(j < i){\n \tSystem.out.println(data[j]);\n \tj++;\n \t\t}\n \t\t}\n}", "public class Main{\n public static void main(String[] args){\n int i,j,k,a,b,c;\n \tString[] data;\n \n Scanner scan = new Scanner(System.in);\n k = scan.nextInt();\n data = new String[k];\n i = 0;\n while(i < k){\n \ta = scan.nextInt();\n \tb = scan.nextInt();\n \tc = scan.nextInt();\n \ta=a*a;\n \tb=b*b;\n \tc=c*c;\n \tif(a>b && a>c){\n \t\tb = b + c;\n \t\tif(a == b){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(b>a && b>c){\n \t\ta = a + c;\n \t\tif(b == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else if(c>a && c>b){\n \t\ta = a + b;\n \t\tif(c == a){\n \t\t\tdata[i]=\"YES\";\n \t\t}else{\n \t\t\tdata[i]=\"NO\";\n \t\t}\n \t}else{\n \t\tdata[i]=\"NO\";\n \t}\n \ti++;\n }\n \n \n j = 0;\n while(j < i){\n \tSystem.out.println(data[j]);\n \tj++;\n \t\t}\n \t\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args){ int i,j,k,a,b,c; String[] data; Scanner scan = new Scanner(System.in); k = scan.nextInt(); data = new String[k]; i = 0; while(i < k){ a = scan.nextInt(); b = scan.nextInt(); c = scan.nextInt(); a=a*a; b=b*b; c=c*c; if(a>b && a>c){ b = b + c; if(a == b){ data[i]="YES"; }else{ data[i]="NO"; } }else if(b>a && b>c){ a = a + c; if(b == a){ data[i]="YES"; }else{ data[i]="NO"; } }else if(c>a && c>b){ a = a + b; if(c == a){ data[i]="YES"; }else{ data[i]="NO"; } }else{ data[i]="NO"; } i++; } j = 0; while(j < i){ System.out.println(data[j]); j++; } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 18, 13, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 180, 11 ], [ 180, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 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 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 14, 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 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 62, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 62, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 84, 86 ], [ 62, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 92, 94 ], [ 62, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 103, 107 ], [ 96, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 108, 112 ], [ 95, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 95, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 123, 127 ], [ 122, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 128, 132 ], [ 121, 133 ], [ 133, 134 ], [ 134, 135 ], [ 133, 136 ], [ 133, 137 ], [ 120, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 120, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 148, 152 ], [ 147, 153 ], [ 153, 154 ], [ 154, 155 ], [ 153, 156 ], [ 153, 157 ], [ 146, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 158, 162 ], [ 145, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 145, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 171, 176 ], [ 12, 177 ], [ 177, 178 ], [ 0, 179 ], [ 179, 180 ], [ 179, 181 ] ]
[ "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 NumberFormatException, IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int dataCount = Integer.parseInt(reader.readLine());\n String[] inputDataList = new String[dataCount];\n for (int i = 0; i < dataCount; i++) {\n inputDataList[i] = reader.readLine();\n }\n for (int i = 0; i < dataCount; i++) {\n String[] data = inputDataList[i].split(\" \");\n int a = Integer.parseInt(data[0]);\n int b = Integer.parseInt(data[1]);\n int c = Integer.parseInt(data[2]);\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\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", "public class Main {\n\n public static void main(String args[]) throws NumberFormatException, IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int dataCount = Integer.parseInt(reader.readLine());\n String[] inputDataList = new String[dataCount];\n for (int i = 0; i < dataCount; i++) {\n inputDataList[i] = reader.readLine();\n }\n for (int i = 0; i < dataCount; i++) {\n String[] data = inputDataList[i].split(\" \");\n int a = Integer.parseInt(data[0]);\n int b = Integer.parseInt(data[1]);\n int c = Integer.parseInt(data[2]);\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n}", "Main", "public static void main(String args[]) throws NumberFormatException, IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int dataCount = Integer.parseInt(reader.readLine());\n String[] inputDataList = new String[dataCount];\n for (int i = 0; i < dataCount; i++) {\n inputDataList[i] = reader.readLine();\n }\n for (int i = 0; i < dataCount; i++) {\n String[] data = inputDataList[i].split(\" \");\n int a = Integer.parseInt(data[0]);\n int b = Integer.parseInt(data[1]);\n int c = Integer.parseInt(data[2]);\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "main", "{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int dataCount = Integer.parseInt(reader.readLine());\n String[] inputDataList = new String[dataCount];\n for (int i = 0; i < dataCount; i++) {\n inputDataList[i] = reader.readLine();\n }\n for (int i = 0; i < dataCount; i++) {\n String[] data = inputDataList[i].split(\" \");\n int a = Integer.parseInt(data[0]);\n int b = Integer.parseInt(data[1]);\n int c = Integer.parseInt(data[2]);\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "int dataCount = Integer.parseInt(reader.readLine());", "dataCount", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "String[] inputDataList = new String[dataCount];", "inputDataList", "new String[dataCount]", "dataCount", "for (int i = 0; i < dataCount; i++) {\n inputDataList[i] = reader.readLine();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < dataCount", "i", "dataCount", "i++", "i++", "i", "{\n inputDataList[i] = reader.readLine();\n }", "{\n inputDataList[i] = reader.readLine();\n }", "inputDataList[i] = reader.readLine()", "inputDataList[i]", "inputDataList", "i", "reader.readLine()", "reader.readLine", "reader", "for (int i = 0; i < dataCount; i++) {\n String[] data = inputDataList[i].split(\" \");\n int a = Integer.parseInt(data[0]);\n int b = Integer.parseInt(data[1]);\n int c = Integer.parseInt(data[2]);\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < dataCount", "i", "dataCount", "i++", "i++", "i", "{\n String[] data = inputDataList[i].split(\" \");\n int a = Integer.parseInt(data[0]);\n int b = Integer.parseInt(data[1]);\n int c = Integer.parseInt(data[2]);\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "{\n String[] data = inputDataList[i].split(\" \");\n int a = Integer.parseInt(data[0]);\n int b = Integer.parseInt(data[1]);\n int c = Integer.parseInt(data[2]);\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "String[] data = inputDataList[i].split(\" \");", "data", "inputDataList[i].split(\" \")", "inputDataList[i].split", "inputDataList[i]", "inputDataList", "i", "\" \"", "int a = Integer.parseInt(data[0]);", "a", "Integer.parseInt(data[0])", "Integer.parseInt", "Integer", "data[0]", "data", "0", "int b = Integer.parseInt(data[1]);", "b", "Integer.parseInt(data[1])", "Integer.parseInt", "Integer", "data[1]", "data", "1", "int c = Integer.parseInt(data[2]);", "c", "Integer.parseInt(data[2])", "Integer.parseInt", "Integer", "data[2]", "data", "2", "if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)", "Math.pow(a, 2) + Math.pow(b, 2)", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "Math.pow(c, 2)", "Math.pow", "Math", "c", "2", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)", "Math.pow(b, 2) + Math.pow(c, 2)", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "Math.pow(c, 2)", "Math.pow", "Math", "c", "2", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)", "Math.pow(c, 2) + Math.pow(a, 2)", "Math.pow(c, 2)", "Math.pow", "Math", "c", "2", "Math.pow(a, 2)", "Math.pow", "Math", "a", "2", "Math.pow(b, 2)", "Math.pow", "Math", "b", "2", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String args[]", "args", "public class Main {\n\n public static void main(String args[]) throws NumberFormatException, IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int dataCount = Integer.parseInt(reader.readLine());\n String[] inputDataList = new String[dataCount];\n for (int i = 0; i < dataCount; i++) {\n inputDataList[i] = reader.readLine();\n }\n for (int i = 0; i < dataCount; i++) {\n String[] data = inputDataList[i].split(\" \");\n int a = Integer.parseInt(data[0]);\n int b = Integer.parseInt(data[1]);\n int c = Integer.parseInt(data[2]);\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n}", "public class Main {\n\n public static void main(String args[]) throws NumberFormatException, IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n int dataCount = Integer.parseInt(reader.readLine());\n String[] inputDataList = new String[dataCount];\n for (int i = 0; i < dataCount; i++) {\n inputDataList[i] = reader.readLine();\n }\n for (int i = 0; i < dataCount; i++) {\n String[] data = inputDataList[i].split(\" \");\n int a = Integer.parseInt(data[0]);\n int b = Integer.parseInt(data[1]);\n int c = Integer.parseInt(data[2]);\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) {\n System.out.println(\"YES\");\n } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String args[]) throws NumberFormatException, IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int dataCount = Integer.parseInt(reader.readLine()); String[] inputDataList = new String[dataCount]; for (int i = 0; i < dataCount; i++) { inputDataList[i] = reader.readLine(); } for (int i = 0; i < dataCount; i++) { String[] data = inputDataList[i].split(" "); int a = Integer.parseInt(data[0]); int b = Integer.parseInt(data[1]); int c = Integer.parseInt(data[2]); if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) { System.out.println("YES"); } else if (Math.pow(b, 2) + Math.pow(c, 2) == Math.pow(a, 2)) { System.out.println("YES"); } else if (Math.pow(c, 2) + Math.pow(a, 2) == Math.pow(b, 2)) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 39, 4, 18, 13, 18, 13, 17, 4, 18, 13, 18, 13, 17, 4, 18, 13, 18, 13, 17, 4, 18, 13, 13, 14, 2, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 13, 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 ], [ 122, 14 ], [ 122, 15 ], [ 15, 16 ], [ 15, 17 ], [ 122, 18 ], [ 18, 19 ], [ 18, 20 ], [ 122, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 23, 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 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 50, 55 ], [ 47, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 58, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 58, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 47, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 47, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 95, 97 ], [ 90, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 81, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 81, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 113, 118 ], [ 21, 119 ], [ 119, 120 ], [ 0, 121 ], [ 121, 122 ], [ 121, 123 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n\n\tprivate static final String RIGHT_TRIANGLE = \"YES\";\n\tprivate static final String NOT_RIGHT_TRIANGLE = \"NO\";\n\n\t/**\n\t * <p>\n\t * 与えられた三辺で直角三角形が作れるかを判定する。\n\t * </p>\n\t *\n\t * @param args\n\t * 利用しない。\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint lineCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tint[] side = { Integer.parseInt(input[0]),\n\t\t\t\t\tInteger.parseInt(input[1]), Integer.parseInt(input[2])};\n\t\t\tArrays.sort(side);\n\n\t\t\tif (side[2] * side[2] == side[0] * side[0] + side[1] * side[1]) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\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.Arrays;", "Arrays", "java.util", "public class Main {\n\n\tprivate static final String RIGHT_TRIANGLE = \"YES\";\n\tprivate static final String NOT_RIGHT_TRIANGLE = \"NO\";\n\n\t/**\n\t * <p>\n\t * 与えられた三辺で直角三角形が作れるかを判定する。\n\t * </p>\n\t *\n\t * @param args\n\t * 利用しない。\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint lineCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tint[] side = { Integer.parseInt(input[0]),\n\t\t\t\t\tInteger.parseInt(input[1]), Integer.parseInt(input[2])};\n\t\t\tArrays.sort(side);\n\n\t\t\tif (side[2] * side[2] == side[0] * side[0] + side[1] * side[1]) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "private static final String RIGHT_TRIANGLE = \"YES\";", "RIGHT_TRIANGLE", "\"YES\"", "private static final String NOT_RIGHT_TRIANGLE = \"NO\";", "NOT_RIGHT_TRIANGLE", "\"NO\"", "/**\n\t * <p>\n\t * 与えられた三辺で直角三角形が作れるかを判定する。\n\t * </p>\n\t *\n\t * @param args\n\t * 利用しない。\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint lineCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tint[] side = { Integer.parseInt(input[0]),\n\t\t\t\t\tInteger.parseInt(input[1]), Integer.parseInt(input[2])};\n\t\t\tArrays.sort(side);\n\n\t\t\tif (side[2] * side[2] == side[0] * side[0] + side[1] * side[1]) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint lineCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tint[] side = { Integer.parseInt(input[0]),\n\t\t\t\t\tInteger.parseInt(input[1]), Integer.parseInt(input[2])};\n\t\t\tArrays.sort(side);\n\n\t\t\tif (side[2] * side[2] == side[0] * side[0] + side[1] * side[1]) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\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 lineCount = Integer.parseInt(br.readLine());", "lineCount", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < lineCount; i++) {\n\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tint[] side = { Integer.parseInt(input[0]),\n\t\t\t\t\tInteger.parseInt(input[1]), Integer.parseInt(input[2])};\n\t\t\tArrays.sort(side);\n\n\t\t\tif (side[2] * side[2] == side[0] * side[0] + side[1] * side[1]) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < lineCount", "i", "lineCount", "i++", "i++", "i", "{\n\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tint[] side = { Integer.parseInt(input[0]),\n\t\t\t\t\tInteger.parseInt(input[1]), Integer.parseInt(input[2])};\n\t\t\tArrays.sort(side);\n\n\t\t\tif (side[2] * side[2] == side[0] * side[0] + side[1] * side[1]) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}", "{\n\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tint[] side = { Integer.parseInt(input[0]),\n\t\t\t\t\tInteger.parseInt(input[1]), Integer.parseInt(input[2])};\n\t\t\tArrays.sort(side);\n\n\t\t\tif (side[2] * side[2] == side[0] * side[0] + side[1] * side[1]) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}", "String[] input = br.readLine().split(\" \");", "input", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int[] side = { Integer.parseInt(input[0]),\n\t\t\t\t\tInteger.parseInt(input[1]), Integer.parseInt(input[2])};", "side", "{ Integer.parseInt(input[0]),\n\t\t\t\t\tInteger.parseInt(input[1]), Integer.parseInt(input[2])}", "Integer.parseInt(input[0])", "Integer.parseInt", "Integer", "input[0]", "input", "0", "Integer.parseInt(input[1])", "Integer.parseInt", "Integer", "input[1]", "input", "1", "Integer.parseInt(input[2])", "Integer.parseInt", "Integer", "input[2]", "input", "2", "Arrays.sort(side)", "Arrays.sort", "Arrays", "side", "if (side[2] * side[2] == side[0] * side[0] + side[1] * side[1]) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}", "side[2] * side[2] == side[0] * side[0] + side[1] * side[1]", "side[2] * side[2]", "side[2]", "side", "2", "side[2]", "side", "2", "side[0] * side[0] + side[1] * side[1]", "side[0] * side[0]", "side[0]", "side", "0", "side[0]", "side", "0", "side[1] * side[1]", "side[1]", "side", "1", "side[1]", "side", "1", "{\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t}", "System.out.println(RIGHT_TRIANGLE)", "System.out.println", "System.out", "System", "System.out", "RIGHT_TRIANGLE", "{\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}", "System.out.println(NOT_RIGHT_TRIANGLE)", "System.out.println", "System.out", "System", "System.out", "NOT_RIGHT_TRIANGLE", "String[] args", "args", "public class Main {\n\n\tprivate static final String RIGHT_TRIANGLE = \"YES\";\n\tprivate static final String NOT_RIGHT_TRIANGLE = \"NO\";\n\n\t/**\n\t * <p>\n\t * 与えられた三辺で直角三角形が作れるかを判定する。\n\t * </p>\n\t *\n\t * @param args\n\t * 利用しない。\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint lineCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tint[] side = { Integer.parseInt(input[0]),\n\t\t\t\t\tInteger.parseInt(input[1]), Integer.parseInt(input[2])};\n\t\t\tArrays.sort(side);\n\n\t\t\tif (side[2] * side[2] == side[0] * side[0] + side[1] * side[1]) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\n\tprivate static final String RIGHT_TRIANGLE = \"YES\";\n\tprivate static final String NOT_RIGHT_TRIANGLE = \"NO\";\n\n\t/**\n\t * <p>\n\t * 与えられた三辺で直角三角形が作れるかを判定する。\n\t * </p>\n\t *\n\t * @param args\n\t * 利用しない。\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint lineCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\n\t\t\tString[] input = br.readLine().split(\" \");\n\t\t\tint[] side = { Integer.parseInt(input[0]),\n\t\t\t\t\tInteger.parseInt(input[1]), Integer.parseInt(input[2])};\n\t\t\tArrays.sort(side);\n\n\t\t\tif (side[2] * side[2] == side[0] * side[0] + side[1] * side[1]) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { private static final String RIGHT_TRIANGLE = "YES"; private static final String NOT_RIGHT_TRIANGLE = "NO"; /** * <p> * 与えられた三辺で直角三角形が作れるかを判定する。 * </p> * * @param args * 利用しない。 * @throws IOException */ public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int lineCount = Integer.parseInt(br.readLine()); for (int i = 0; i < lineCount; i++) { String[] input = br.readLine().split(" "); int[] side = { Integer.parseInt(input[0]), Integer.parseInt(input[1]), Integer.parseInt(input[2])}; Arrays.sort(side); if (side[2] * side[2] == side[0] * side[0] + side[1] * side[1]) { System.out.println(RIGHT_TRIANGLE); } else { System.out.println(NOT_RIGHT_TRIANGLE); } } } }
[ 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, 20, 17, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 20, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 4, 13, 13, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 2, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 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 ], [ 197, 14 ], [ 197, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 17, 25 ], [ 25, 26 ], [ 25, 27 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 17, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 17, 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 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 52, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 74, 75 ], [ 52, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 52, 86 ], [ 86, 87 ], [ 86, 88 ], [ 52, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 91, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 103, 105 ], [ 90, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 110, 112 ], [ 89, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 89, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 15, 127 ], [ 127, 128 ], [ 197, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 134, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 134, 146 ], [ 146, 147 ], [ 147, 148 ], [ 134, 149 ], [ 150, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 155, 157 ], [ 151, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 160, 162 ], [ 151, 163 ], [ 163, 164 ], [ 164, 165 ], [ 151, 166 ], [ 167, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 169, 173 ], [ 173, 174 ], [ 173, 175 ], [ 168, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 179, 180 ], [ 179, 181 ], [ 176, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 186, 187 ], [ 186, 188 ], [ 176, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 189, 193 ], [ 129, 194 ], [ 194, 195 ], [ 0, 196 ], [ 196, 197 ], [ 196, 198 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tStringTokenizer st1;\n\t\tint[] tri = new int[3];\n\t\t\n\t\tstr=br.readLine();\n\n\t\tint count=Integer.parseInt(str);\n\n\n\t\tfor(int i=0;i<count;i++){\n\t\t\tst1=new StringTokenizer(br.readLine(),\" \");\n\t\t\ttri[0]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[1]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[2]=Integer.parseInt(st1.nextToken());\n\t\t\tsortTri(tri);\n\t\t\tif(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\n\t}\n\n\tpublic static void sortTri(int[] num){\n\t\tint tmp;\n\t\tfor(int i=0;i<num.length-1;i++){\n\t\t\tfor(int j=i+1;j<num.length;j++){\n\t\t\t\tif(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tStringTokenizer st1;\n\t\tint[] tri = new int[3];\n\t\t\n\t\tstr=br.readLine();\n\n\t\tint count=Integer.parseInt(str);\n\n\n\t\tfor(int i=0;i<count;i++){\n\t\t\tst1=new StringTokenizer(br.readLine(),\" \");\n\t\t\ttri[0]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[1]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[2]=Integer.parseInt(st1.nextToken());\n\t\t\tsortTri(tri);\n\t\t\tif(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\n\t}\n\n\tpublic static void sortTri(int[] num){\n\t\tint tmp;\n\t\tfor(int i=0;i<num.length-1;i++){\n\t\t\tfor(int j=i+1;j<num.length;j++){\n\t\t\t\tif(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tStringTokenizer st1;\n\t\tint[] tri = new int[3];\n\t\t\n\t\tstr=br.readLine();\n\n\t\tint count=Integer.parseInt(str);\n\n\n\t\tfor(int i=0;i<count;i++){\n\t\t\tst1=new StringTokenizer(br.readLine(),\" \");\n\t\t\ttri[0]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[1]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[2]=Integer.parseInt(st1.nextToken());\n\t\t\tsortTri(tri);\n\t\t\tif(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tStringTokenizer st1;\n\t\tint[] tri = new int[3];\n\t\t\n\t\tstr=br.readLine();\n\n\t\tint count=Integer.parseInt(str);\n\n\n\t\tfor(int i=0;i<count;i++){\n\t\t\tst1=new StringTokenizer(br.readLine(),\" \");\n\t\t\ttri[0]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[1]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[2]=Integer.parseInt(st1.nextToken());\n\t\t\tsortTri(tri);\n\t\t\tif(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\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))", "String str;", "str", "StringTokenizer st1;", "st1", "int[] tri = new int[3];", "tri", "new int[3]", "3", "str=br.readLine()", "str", "br.readLine()", "br.readLine", "br", "int count=Integer.parseInt(str);", "count", "Integer.parseInt(str)", "Integer.parseInt", "Integer", "str", "for(int i=0;i<count;i++){\n\t\t\tst1=new StringTokenizer(br.readLine(),\" \");\n\t\t\ttri[0]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[1]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[2]=Integer.parseInt(st1.nextToken());\n\t\t\tsortTri(tri);\n\t\t\tif(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<count", "i", "count", "i++", "i++", "i", "{\n\t\t\tst1=new StringTokenizer(br.readLine(),\" \");\n\t\t\ttri[0]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[1]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[2]=Integer.parseInt(st1.nextToken());\n\t\t\tsortTri(tri);\n\t\t\tif(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tst1=new StringTokenizer(br.readLine(),\" \");\n\t\t\ttri[0]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[1]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[2]=Integer.parseInt(st1.nextToken());\n\t\t\tsortTri(tri);\n\t\t\tif(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "st1=new StringTokenizer(br.readLine(),\" \")", "st1", "new StringTokenizer(br.readLine(),\" \")", "tri[0]=Integer.parseInt(st1.nextToken())", "tri[0]", "tri", "0", "Integer.parseInt(st1.nextToken())", "Integer.parseInt", "Integer", "st1.nextToken()", "st1.nextToken", "st1", "tri[1]=Integer.parseInt(st1.nextToken())", "tri[1]", "tri", "1", "Integer.parseInt(st1.nextToken())", "Integer.parseInt", "Integer", "st1.nextToken()", "st1.nextToken", "st1", "tri[2]=Integer.parseInt(st1.nextToken())", "tri[2]", "tri", "2", "Integer.parseInt(st1.nextToken())", "Integer.parseInt", "Integer", "st1.nextToken()", "st1.nextToken", "st1", "sortTri(tri)", "sortTri", "tri", "if(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]", "tri[0]*tri[0]+tri[1]*tri[1]", "tri[0]*tri[0]", "tri[0]", "tri", "0", "tri[0]", "tri", "0", "tri[1]*tri[1]", "tri[1]", "tri", "1", "tri[1]", "tri", "1", "tri[2]*tri[2]", "tri[2]", "tri", "2", "tri[2]", "tri", "2", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public static void sortTri(int[] num){\n\t\tint tmp;\n\t\tfor(int i=0;i<num.length-1;i++){\n\t\t\tfor(int j=i+1;j<num.length;j++){\n\t\t\t\tif(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "sortTri", "{\n\t\tint tmp;\n\t\tfor(int i=0;i<num.length-1;i++){\n\t\t\tfor(int j=i+1;j<num.length;j++){\n\t\t\t\tif(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}", "int tmp;", "tmp", "for(int i=0;i<num.length-1;i++){\n\t\t\tfor(int j=i+1;j<num.length;j++){\n\t\t\t\tif(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<num.length-1", "i", "num.length-1", "num.length", "num", "num.length", "1", "i++", "i++", "i", "{\n\t\t\tfor(int j=i+1;j<num.length;j++){\n\t\t\t\tif(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tfor(int j=i+1;j<num.length;j++){\n\t\t\t\tif(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "for(int j=i+1;j<num.length;j++){\n\t\t\t\tif(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}\n\t\t\t}", "int j=i+1;", "int j=i+1;", "j", "i+1", "i", "1", "j<num.length", "j", "num.length", "num", "num.length", "j++", "j++", "j", "{\n\t\t\t\tif(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}\n\t\t\t}", "if(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}", "num[i]>num[j]", "num[i]", "num", "i", "num[j]", "num", "j", "{\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}", "tmp=num[i]", "tmp", "num[i]", "num", "i", "num[i]=num[j]", "num[i]", "num", "i", "num[j]", "num", "j", "num[j]=tmp", "num[j]", "num", "j", "tmp", "int[] num", "num", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tStringTokenizer st1;\n\t\tint[] tri = new int[3];\n\t\t\n\t\tstr=br.readLine();\n\n\t\tint count=Integer.parseInt(str);\n\n\n\t\tfor(int i=0;i<count;i++){\n\t\t\tst1=new StringTokenizer(br.readLine(),\" \");\n\t\t\ttri[0]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[1]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[2]=Integer.parseInt(st1.nextToken());\n\t\t\tsortTri(tri);\n\t\t\tif(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\n\t}\n\n\tpublic static void sortTri(int[] num){\n\t\tint tmp;\n\t\tfor(int i=0;i<num.length-1;i++){\n\t\t\tfor(int j=i+1;j<num.length;j++){\n\t\t\t\tif(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tStringTokenizer st1;\n\t\tint[] tri = new int[3];\n\t\t\n\t\tstr=br.readLine();\n\n\t\tint count=Integer.parseInt(str);\n\n\n\t\tfor(int i=0;i<count;i++){\n\t\t\tst1=new StringTokenizer(br.readLine(),\" \");\n\t\t\ttri[0]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[1]=Integer.parseInt(st1.nextToken());\n\t\t\ttri[2]=Integer.parseInt(st1.nextToken());\n\t\t\tsortTri(tri);\n\t\t\tif(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\n\t}\n\n\tpublic static void sortTri(int[] num){\n\t\tint tmp;\n\t\tfor(int i=0;i<num.length-1;i++){\n\t\t\tfor(int j=i+1;j<num.length;j++){\n\t\t\t\tif(num[i]>num[j]){\n\t\t\t\t\ttmp=num[i];\n\t\t\t\t\tnum[i]=num[j];\n\t\t\t\t\tnum[j]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { // TODO ????????????????????????????????????????????? BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str; StringTokenizer st1; int[] tri = new int[3]; str=br.readLine(); int count=Integer.parseInt(str); for(int i=0;i<count;i++){ st1=new StringTokenizer(br.readLine()," "); tri[0]=Integer.parseInt(st1.nextToken()); tri[1]=Integer.parseInt(st1.nextToken()); tri[2]=Integer.parseInt(st1.nextToken()); sortTri(tri); if(tri[0]*tri[0]+tri[1]*tri[1] == tri[2]*tri[2]){ System.out.println("YES"); }else{ System.out.println("NO"); } } } public static void sortTri(int[] num){ int tmp; for(int i=0;i<num.length-1;i++){ for(int j=i+1;j<num.length;j++){ if(num[i]>num[j]){ tmp=num[i]; num[i]=num[j]; num[j]=tmp; } } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 17, 40, 13, 30, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 4, 18, 18, 13, 13, 8, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 17, 17 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 7, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 15, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 24, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 37, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 30, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 29, 52 ], [ 52, 53 ], [ 13, 54 ], [ 54, 55 ], [ 7, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 58, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 69, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 68, 92 ], [ 68, 93 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static int[] a = new int[3];\n\tpublic static void main(String[] args) {\n\t\tScanner cin = new Scanner(System.in);\n\t\tint n = cin.nextInt();\n\t\twhile(0 != n--){\n\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\ta[i] = cin.nextInt();\n\t\t\t}\n\t\t\tsolve();\n\t\t}\n\t}\n\t\n\tpublic static void solve() {\n\t\tArrays.sort(a);\n\t\tSystem.out.println(a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? \"YES\" : \"NO\");\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static int[] a = new int[3];\n\tpublic static void main(String[] args) {\n\t\tScanner cin = new Scanner(System.in);\n\t\tint n = cin.nextInt();\n\t\twhile(0 != n--){\n\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\ta[i] = cin.nextInt();\n\t\t\t}\n\t\t\tsolve();\n\t\t}\n\t}\n\t\n\tpublic static void solve() {\n\t\tArrays.sort(a);\n\t\tSystem.out.println(a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? \"YES\" : \"NO\");\n\t}\n}", "Main", "public static int[] a = new int[3];", "a", "new int[3]", "3", "public static void main(String[] args) {\n\t\tScanner cin = new Scanner(System.in);\n\t\tint n = cin.nextInt();\n\t\twhile(0 != n--){\n\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\ta[i] = cin.nextInt();\n\t\t\t}\n\t\t\tsolve();\n\t\t}\n\t}", "main", "{\n\t\tScanner cin = new Scanner(System.in);\n\t\tint n = cin.nextInt();\n\t\twhile(0 != n--){\n\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\ta[i] = cin.nextInt();\n\t\t\t}\n\t\t\tsolve();\n\t\t}\n\t}", "Scanner cin = new Scanner(System.in);", "cin", "new Scanner(System.in)", "int n = cin.nextInt();", "n", "cin.nextInt()", "cin.nextInt", "cin", "while(0 != n--){\n\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\ta[i] = cin.nextInt();\n\t\t\t}\n\t\t\tsolve();\n\t\t}", "0 != n--", "0", "n--", "n", "{\n\t\t\tfor (int i = 0; i < a.length; i++) {\n\t\t\t\ta[i] = cin.nextInt();\n\t\t\t}\n\t\t\tsolve();\n\t\t}", "for (int i = 0; i < a.length; i++) {\n\t\t\t\ta[i] = cin.nextInt();\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n\t\t\t\ta[i] = cin.nextInt();\n\t\t\t}", "{\n\t\t\t\ta[i] = cin.nextInt();\n\t\t\t}", "a[i] = cin.nextInt()", "a[i]", "a", "i", "cin.nextInt()", "cin.nextInt", "cin", "solve()", "solve", "String[] args", "args", "public static void solve() {\n\t\tArrays.sort(a);\n\t\tSystem.out.println(a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? \"YES\" : \"NO\");\n\t}", "solve", "{\n\t\tArrays.sort(a);\n\t\tSystem.out.println(a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? \"YES\" : \"NO\");\n\t}", "Arrays.sort(a)", "Arrays.sort", "Arrays", "a", "System.out.println(a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? \"YES\" : \"NO\")", "System.out.println", "System.out", "System", "System.out", "a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? \"YES\" : \"NO\"", "a[0] * a[0] + a[1] * a[1] == a[2] * a[2]", "a[0] * a[0] + a[1] * a[1]", "a[0] * a[0]", "a[0]", "a", "0", "a[0]", "a", "0", "a[1] * a[1]", "a[1]", "a", "1", "a[1]", "a", "1", "a[2] * a[2]", "a[2]", "a", "2", "a[2]", "a", "2", "\"YES\"", "\"NO\"" ]
import java.util.Arrays; import java.util.Scanner; class Main { public static int[] a = new int[3]; public static void main(String[] args) { Scanner cin = new Scanner(System.in); int n = cin.nextInt(); while(0 != n--){ for (int i = 0; i < a.length; i++) { a[i] = cin.nextInt(); } solve(); } } public static void solve() { Arrays.sort(a); System.out.println(a[0] * a[0] + a[1] * a[1] == a[2] * a[2] ? "YES" : "NO"); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 13, 13, 17, 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, 4, 18, 13, 13, 41, 13, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 41, 13, 2, 18, 13, 17, 18, 13, 17, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 29, 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 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 26, 27 ], [ 26, 28 ], [ 17, 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 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 53, 54 ], [ 53, 55 ], [ 41, 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 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 41, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 41, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 41, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 108, 109 ], [ 108, 110 ], [ 41, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 111, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 123, 128 ], [ 15, 129 ], [ 129, 130 ], [ 13, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 137, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 133, 149 ], [ 149, 150 ], [ 131, 151 ], [ 151, 152 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ストリームを作成する\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\n\t\t// データ数を取得する\n\t\tint loop = Integer.parseInt(readLine(reader));\n\t\tfor (int i = 0; i < loop; i++) {\n\t\t\tString[] sideArray = readLine(reader).split(\" \");\n\t\t\tint[] sideNumArray = new int[sideArray.length];\n\t\t\tfor (int j = 0; j < sideNumArray.length; j++) {\n\t\t\t\tsideNumArray[j] = Integer.parseInt(sideArray[j]);\n\t\t\t}\n\n\t\t\t// 三平方の定理を利用してチェックを行う\n\t\t\tArrays.sort(sideNumArray);\n\t\t\tint smallTwo = sideNumArray[0] * sideNumArray[0] + sideNumArray[1]\n\t\t\t\t\t* sideNumArray[1];\n\t\t\tint largeOne = sideNumArray[2] * sideNumArray[2];\n\n\t\t\t// 定理を満たす場合はYES、そうでない場合はNOを出力する\n\t\t\tif (smallTwo == largeOne) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n\t/**\n\t * ストリームから1行読み込んで、文字列として返す。\n\t *\n\t * @param reader\n\t * 入力ストリーム\n\t * @return 文字列\n\t */\n\tprivate static String readLine(BufferedReader reader) {\n\t\tString line = null;\n\t\ttry {\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t\treturn line;\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.Arrays;", "Arrays", "java.util", "class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// ストリームを作成する\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\n\t\t// データ数を取得する\n\t\tint loop = Integer.parseInt(readLine(reader));\n\t\tfor (int i = 0; i < loop; i++) {\n\t\t\tString[] sideArray = readLine(reader).split(\" \");\n\t\t\tint[] sideNumArray = new int[sideArray.length];\n\t\t\tfor (int j = 0; j < sideNumArray.length; j++) {\n\t\t\t\tsideNumArray[j] = Integer.parseInt(sideArray[j]);\n\t\t\t}\n\n\t\t\t// 三平方の定理を利用してチェックを行う\n\t\t\tArrays.sort(sideNumArray);\n\t\t\tint smallTwo = sideNumArray[0] * sideNumArray[0] + sideNumArray[1]\n\t\t\t\t\t* sideNumArray[1];\n\t\t\tint largeOne = sideNumArray[2] * sideNumArray[2];\n\n\t\t\t// 定理を満たす場合はYES、そうでない場合はNOを出力する\n\t\t\tif (smallTwo == largeOne) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n\t/**\n\t * ストリームから1行読み込んで、文字列として返す。\n\t *\n\t * @param reader\n\t * 入力ストリーム\n\t * @return 文字列\n\t */\n\tprivate static String readLine(BufferedReader reader) {\n\t\tString line = null;\n\t\ttry {\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t\treturn line;\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\t// ストリームを作成する\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\n\t\t// データ数を取得する\n\t\tint loop = Integer.parseInt(readLine(reader));\n\t\tfor (int i = 0; i < loop; i++) {\n\t\t\tString[] sideArray = readLine(reader).split(\" \");\n\t\t\tint[] sideNumArray = new int[sideArray.length];\n\t\t\tfor (int j = 0; j < sideNumArray.length; j++) {\n\t\t\t\tsideNumArray[j] = Integer.parseInt(sideArray[j]);\n\t\t\t}\n\n\t\t\t// 三平方の定理を利用してチェックを行う\n\t\t\tArrays.sort(sideNumArray);\n\t\t\tint smallTwo = sideNumArray[0] * sideNumArray[0] + sideNumArray[1]\n\t\t\t\t\t* sideNumArray[1];\n\t\t\tint largeOne = sideNumArray[2] * sideNumArray[2];\n\n\t\t\t// 定理を満たす場合はYES、そうでない場合はNOを出力する\n\t\t\tif (smallTwo == largeOne) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}\n\n\t}", "main", "{\n\n\t\t// ストリームを作成する\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\n\t\t// データ数を取得する\n\t\tint loop = Integer.parseInt(readLine(reader));\n\t\tfor (int i = 0; i < loop; i++) {\n\t\t\tString[] sideArray = readLine(reader).split(\" \");\n\t\t\tint[] sideNumArray = new int[sideArray.length];\n\t\t\tfor (int j = 0; j < sideNumArray.length; j++) {\n\t\t\t\tsideNumArray[j] = Integer.parseInt(sideArray[j]);\n\t\t\t}\n\n\t\t\t// 三平方の定理を利用してチェックを行う\n\t\t\tArrays.sort(sideNumArray);\n\t\t\tint smallTwo = sideNumArray[0] * sideNumArray[0] + sideNumArray[1]\n\t\t\t\t\t* sideNumArray[1];\n\t\t\tint largeOne = sideNumArray[2] * sideNumArray[2];\n\n\t\t\t// 定理を満たす場合はYES、そうでない場合はNOを出力する\n\t\t\tif (smallTwo == largeOne) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}\n\n\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));", "reader", "new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))", "int loop = Integer.parseInt(readLine(reader));", "loop", "Integer.parseInt(readLine(reader))", "Integer.parseInt", "Integer", "readLine(reader)", "readLine", "reader", "for (int i = 0; i < loop; i++) {\n\t\t\tString[] sideArray = readLine(reader).split(\" \");\n\t\t\tint[] sideNumArray = new int[sideArray.length];\n\t\t\tfor (int j = 0; j < sideNumArray.length; j++) {\n\t\t\t\tsideNumArray[j] = Integer.parseInt(sideArray[j]);\n\t\t\t}\n\n\t\t\t// 三平方の定理を利用してチェックを行う\n\t\t\tArrays.sort(sideNumArray);\n\t\t\tint smallTwo = sideNumArray[0] * sideNumArray[0] + sideNumArray[1]\n\t\t\t\t\t* sideNumArray[1];\n\t\t\tint largeOne = sideNumArray[2] * sideNumArray[2];\n\n\t\t\t// 定理を満たす場合はYES、そうでない場合はNOを出力する\n\t\t\tif (smallTwo == largeOne) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < loop", "i", "loop", "i++", "i++", "i", "{\n\t\t\tString[] sideArray = readLine(reader).split(\" \");\n\t\t\tint[] sideNumArray = new int[sideArray.length];\n\t\t\tfor (int j = 0; j < sideNumArray.length; j++) {\n\t\t\t\tsideNumArray[j] = Integer.parseInt(sideArray[j]);\n\t\t\t}\n\n\t\t\t// 三平方の定理を利用してチェックを行う\n\t\t\tArrays.sort(sideNumArray);\n\t\t\tint smallTwo = sideNumArray[0] * sideNumArray[0] + sideNumArray[1]\n\t\t\t\t\t* sideNumArray[1];\n\t\t\tint largeOne = sideNumArray[2] * sideNumArray[2];\n\n\t\t\t// 定理を満たす場合はYES、そうでない場合はNOを出力する\n\t\t\tif (smallTwo == largeOne) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}", "{\n\t\t\tString[] sideArray = readLine(reader).split(\" \");\n\t\t\tint[] sideNumArray = new int[sideArray.length];\n\t\t\tfor (int j = 0; j < sideNumArray.length; j++) {\n\t\t\t\tsideNumArray[j] = Integer.parseInt(sideArray[j]);\n\t\t\t}\n\n\t\t\t// 三平方の定理を利用してチェックを行う\n\t\t\tArrays.sort(sideNumArray);\n\t\t\tint smallTwo = sideNumArray[0] * sideNumArray[0] + sideNumArray[1]\n\t\t\t\t\t* sideNumArray[1];\n\t\t\tint largeOne = sideNumArray[2] * sideNumArray[2];\n\n\t\t\t// 定理を満たす場合はYES、そうでない場合はNOを出力する\n\t\t\tif (smallTwo == largeOne) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}", "String[] sideArray = readLine(reader).split(\" \");", "sideArray", "readLine(reader).split(\" \")", "readLine(reader).split", "readLine(reader)", "readLine", "reader", "\" \"", "int[] sideNumArray = new int[sideArray.length];", "sideNumArray", "new int[sideArray.length]", "sideArray.length", "sideArray", "sideArray.length", "for (int j = 0; j < sideNumArray.length; j++) {\n\t\t\t\tsideNumArray[j] = Integer.parseInt(sideArray[j]);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < sideNumArray.length", "j", "sideNumArray.length", "sideNumArray", "sideNumArray.length", "j++", "j++", "j", "{\n\t\t\t\tsideNumArray[j] = Integer.parseInt(sideArray[j]);\n\t\t\t}", "{\n\t\t\t\tsideNumArray[j] = Integer.parseInt(sideArray[j]);\n\t\t\t}", "sideNumArray[j] = Integer.parseInt(sideArray[j])", "sideNumArray[j]", "sideNumArray", "j", "Integer.parseInt(sideArray[j])", "Integer.parseInt", "Integer", "sideArray[j]", "sideArray", "j", "Arrays.sort(sideNumArray)", "Arrays.sort", "Arrays", "sideNumArray", "int smallTwo = sideNumArray[0] * sideNumArray[0] + sideNumArray[1]\n\t\t\t\t\t* sideNumArray[1];", "smallTwo", "sideNumArray[0] * sideNumArray[0] + sideNumArray[1]\n\t\t\t\t\t* sideNumArray[1]", "sideNumArray[0] * sideNumArray[0]", "sideNumArray[0]", "sideNumArray", "0", "sideNumArray[0]", "sideNumArray", "0", "sideNumArray[1]\n\t\t\t\t\t* sideNumArray[1]", "sideNumArray[1]", "sideNumArray", "1", "sideNumArray[1]", "sideNumArray", "1", "int largeOne = sideNumArray[2] * sideNumArray[2];", "largeOne", "sideNumArray[2] * sideNumArray[2]", "sideNumArray[2]", "sideNumArray", "2", "sideNumArray[2]", "sideNumArray", "2", "if (smallTwo == largeOne) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "smallTwo == largeOne", "smallTwo", "largeOne", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "/**\n\t * ストリームから1行読み込んで、文字列として返す。\n\t *\n\t * @param reader\n\t * 入力ストリーム\n\t * @return 文字列\n\t */\n\tprivate static String readLine(BufferedReader reader) {\n\t\tString line = null;\n\t\ttry {\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t\treturn line;\n\t}", "readLine", "{\n\t\tString line = null;\n\t\ttry {\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException();\n\t\t}\n\t\treturn line;\n\t}", "String line = null;", "line", "null", "try {\n\t\t\tline = reader.readLine();\n\t\t} catch (IOException e) {\n\t\t\tthrow new RuntimeException();\n\t\t}", "catch (IOException e) {\n\t\t\tthrow new RuntimeException();\n\t\t}", "IOException e", "{\n\t\t\tthrow new RuntimeException();\n\t\t}", "throw new RuntimeException();", "new RuntimeException()", "{\n\t\t\tline = reader.readLine();\n\t\t}", "line = reader.readLine()", "line", "reader.readLine()", "reader.readLine", "reader", "return line;", "line", "BufferedReader reader", "reader" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; class Main { public static void main(String[] args) { // ストリームを作成する BufferedReader reader = new BufferedReader(new InputStreamReader( System.in)); // データ数を取得する int loop = Integer.parseInt(readLine(reader)); for (int i = 0; i < loop; i++) { String[] sideArray = readLine(reader).split(" "); int[] sideNumArray = new int[sideArray.length]; for (int j = 0; j < sideNumArray.length; j++) { sideNumArray[j] = Integer.parseInt(sideArray[j]); } // 三平方の定理を利用してチェックを行う Arrays.sort(sideNumArray); int smallTwo = sideNumArray[0] * sideNumArray[0] + sideNumArray[1] * sideNumArray[1]; int largeOne = sideNumArray[2] * sideNumArray[2]; // 定理を満たす場合はYES、そうでない場合はNOを出力する if (smallTwo == largeOne) { System.out.println("YES"); } else { System.out.println("NO"); } } } /** * ストリームから1行読み込んで、文字列として返す。 * * @param reader * 入力ストリーム * @return 文字列 */ private static String readLine(BufferedReader reader) { String line = null; try { line = reader.readLine(); } catch (IOException e) { throw new RuntimeException(); } return line; } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 98, 5 ], [ 98, 6 ], [ 6, 7 ], [ 6, 8 ], [ 98, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 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 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 29, 45 ], [ 45, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 47, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 47, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 45, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 45, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 9, 95 ], [ 95, 96 ], [ 0, 97 ], [ 97, 98 ], [ 97, 99 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint N = scan.nextInt();\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif(a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint N = scan.nextInt();\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif(a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "private static final Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "public static void main(String[] args){\n\t\tint N = scan.nextInt();\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif(a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tint N = scan.nextInt();\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif(a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "int N = scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "for(int i = 0; i < N; i++){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif(a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif(a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif(a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int a = scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "int b = scan.nextInt();", "b", "scan.nextInt()", "scan.nextInt", "scan", "int c = scan.nextInt();", "c", "scan.nextInt()", "scan.nextInt", "scan", "if(a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b", "a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b", "a * a == b * b + c * c", "a * a", "a", "a", "b * b + c * c", "b * b", "b", "b", "c * c", "c", "c", "b * b == a * a + c * c", "b * b", "b", "b", "a * a + c * c", "a * a", "a", "a", "c * c", "c", "c", "c * c == a * a + b * b", "c * c", "c", "c", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint N = scan.nextInt();\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif(a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint N = scan.nextInt();\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif(a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ int N = scan.nextInt(); for(int i = 0; i < N; i++){ int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); if(a * a == b * b + c * c | b * b == a * a + c * c | c * c == a * a + b * b){ System.out.println("YES"); } else{ System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 42, 2, 40, 13, 17, 30, 41, 13, 20, 4, 18, 13, 13, 4, 13, 8, 2, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 17, 17, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 4, 18, 18, 13, 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 ], [ 10, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 28, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 38, 62 ], [ 38, 63 ], [ 10, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 64, 70 ], [ 70, 71 ], [ 10, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 72, 81 ], [ 81, 82 ], [ 10, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 83, 92 ], [ 92, 93 ], [ 10, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "\nimport java.util.Arrays;\nimport java.util.Comparator;\nimport java.util.Scanner;\n\nclass Main {\n\tScanner sc = new Scanner(System.in);\n\n\tpublic void run() {\n\t\tint N=sc.nextInt();\n\t\t\n\t\twhile(N--!=0){\n\t\t\tint[] edge=new int[]{\n\t\t\t\t\tsc.nextInt(),sc.nextInt(),sc.nextInt()\n\t\t\t};\n\t\t\tArrays.sort(edge);\n\t\t\tln((edge[2]*edge[2]==edge[0]*edge[0]+edge[1]*edge[1])?\"YES\":\"NO\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\n\tpublic static void pr(Object o) {\n\t\tSystem.out.print(o);\n\t}\n\n\tpublic static void ln(Object o) {\n\t\tSystem.out.println(o);\n\t}\n\n\tpublic static void ln() {\n\t\tSystem.out.println();\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Comparator;", "Comparator", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tScanner sc = new Scanner(System.in);\n\n\tpublic void run() {\n\t\tint N=sc.nextInt();\n\t\t\n\t\twhile(N--!=0){\n\t\t\tint[] edge=new int[]{\n\t\t\t\t\tsc.nextInt(),sc.nextInt(),sc.nextInt()\n\t\t\t};\n\t\t\tArrays.sort(edge);\n\t\t\tln((edge[2]*edge[2]==edge[0]*edge[0]+edge[1]*edge[1])?\"YES\":\"NO\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\n\tpublic static void pr(Object o) {\n\t\tSystem.out.print(o);\n\t}\n\n\tpublic static void ln(Object o) {\n\t\tSystem.out.println(o);\n\t}\n\n\tpublic static void ln() {\n\t\tSystem.out.println();\n\t}\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public void run() {\n\t\tint N=sc.nextInt();\n\t\t\n\t\twhile(N--!=0){\n\t\t\tint[] edge=new int[]{\n\t\t\t\t\tsc.nextInt(),sc.nextInt(),sc.nextInt()\n\t\t\t};\n\t\t\tArrays.sort(edge);\n\t\t\tln((edge[2]*edge[2]==edge[0]*edge[0]+edge[1]*edge[1])?\"YES\":\"NO\");\n\t\t}\n\t}", "run", "{\n\t\tint N=sc.nextInt();\n\t\t\n\t\twhile(N--!=0){\n\t\t\tint[] edge=new int[]{\n\t\t\t\t\tsc.nextInt(),sc.nextInt(),sc.nextInt()\n\t\t\t};\n\t\t\tArrays.sort(edge);\n\t\t\tln((edge[2]*edge[2]==edge[0]*edge[0]+edge[1]*edge[1])?\"YES\":\"NO\");\n\t\t}\n\t}", "int N=sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "while(N--!=0){\n\t\t\tint[] edge=new int[]{\n\t\t\t\t\tsc.nextInt(),sc.nextInt(),sc.nextInt()\n\t\t\t};\n\t\t\tArrays.sort(edge);\n\t\t\tln((edge[2]*edge[2]==edge[0]*edge[0]+edge[1]*edge[1])?\"YES\":\"NO\");\n\t\t}", "N--!=0", "N--", "N", "0", "{\n\t\t\tint[] edge=new int[]{\n\t\t\t\t\tsc.nextInt(),sc.nextInt(),sc.nextInt()\n\t\t\t};\n\t\t\tArrays.sort(edge);\n\t\t\tln((edge[2]*edge[2]==edge[0]*edge[0]+edge[1]*edge[1])?\"YES\":\"NO\");\n\t\t}", "int[] edge=new int[]{\n\t\t\t\t\tsc.nextInt(),sc.nextInt(),sc.nextInt()\n\t\t\t};", "edge", "new int[]{\n\t\t\t\t\tsc.nextInt(),sc.nextInt(),sc.nextInt()\n\t\t\t}", "Arrays.sort(edge)", "Arrays.sort", "Arrays", "edge", "ln((edge[2]*edge[2]==edge[0]*edge[0]+edge[1]*edge[1])?\"YES\":\"NO\")", "ln", "(edge[2]*edge[2]==edge[0]*edge[0]+edge[1]*edge[1])?\"YES\":\"NO\"", "(edge[2]*edge[2]==edge[0]*edge[0]+edge[1]*edge[1])", "edge[2]*edge[2]", "edge[2]", "edge", "2", "edge[2]", "edge", "2", "edge[0]*edge[0]+edge[1]*edge[1]", "edge[0]*edge[0]", "edge[0]", "edge", "0", "edge[0]", "edge", "0", "edge[1]*edge[1]", "edge[1]", "edge", "1", "edge[1]", "edge", "1", "\"YES\"", "\"NO\"", "public static void main(String[] args) {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args", "public static void pr(Object o) {\n\t\tSystem.out.print(o);\n\t}", "pr", "{\n\t\tSystem.out.print(o);\n\t}", "System.out.print(o)", "System.out.print", "System.out", "System", "System.out", "o", "Object o", "o", "public static void ln(Object o) {\n\t\tSystem.out.println(o);\n\t}", "ln", "{\n\t\tSystem.out.println(o);\n\t}", "System.out.println(o)", "System.out.println", "System.out", "System", "System.out", "o", "Object o", "o", "public static void ln() {\n\t\tSystem.out.println();\n\t}", "ln", "{\n\t\tSystem.out.println();\n\t}", "System.out.println()", "System.out.println", "System.out", "System", "System.out" ]
import java.util.Arrays; import java.util.Comparator; import java.util.Scanner; class Main { Scanner sc = new Scanner(System.in); public void run() { int N=sc.nextInt(); while(N--!=0){ int[] edge=new int[]{ sc.nextInt(),sc.nextInt(),sc.nextInt() }; Arrays.sort(edge); ln((edge[2]*edge[2]==edge[0]*edge[0]+edge[1]*edge[1])?"YES":"NO"); } } public static void main(String[] args) { new Main().run(); } public static void pr(Object o) { System.out.print(o); } public static void ln(Object o) { System.out.println(o); } public static void ln() { System.out.println(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 30, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 30, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 2, 13, 13, 2, 13, 13, 30, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 193, 5 ], [ 193, 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 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 52, 56 ], [ 44, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 44, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 44, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 44, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 95, 99 ], [ 99, 100 ], [ 99, 101 ], [ 90, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 90, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 81, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 128, 130 ], [ 119, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 119, 135 ], [ 135, 136 ], [ 136, 137 ], [ 136, 138 ], [ 110, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 144, 146 ], [ 139, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 153, 157 ], [ 157, 158 ], [ 157, 159 ], [ 148, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 148, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 139, 168 ], [ 168, 169 ], [ 169, 170 ], [ 169, 171 ], [ 44, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 177, 182 ], [ 172, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 184, 189 ], [ 6, 190 ], [ 190, 191 ], [ 0, 192 ], [ 192, 193 ], [ 192, 194 ] ]
[ "import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args){\n\tScanner s = new Scanner(System.in);\n\tint a , b , c , max_num1, max_num2;\n\tint res_flg;\n\t//String n = s.next();\n\tint n = Integer.parseInt(s.nextLine());\n\tfor(int i = 0;i<n;i++){\n\t\tString line = s.nextLine();\n\t\tString[] array = line.split(\" \",0);\n\t\ta = Integer.parseInt(array[0]);\n\t\tb = Integer.parseInt(array[1]);\n\t\tc = Integer.parseInt(array[2]);\n \n\t\tif(a >= b && a >= c){\n\t\t\tif(a*a == b*b+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(b >= a && b >= c){\n\t\t\tif(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(c >= a && c >= b){\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}else{\n\t\t\tres_flg = 0;\n\t\t}\n\t\tif(res_flg == 0){\n\t\t\tSystem.out.println(\"NO\");\n\t\t}else{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t}\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n\tScanner s = new Scanner(System.in);\n\tint a , b , c , max_num1, max_num2;\n\tint res_flg;\n\t//String n = s.next();\n\tint n = Integer.parseInt(s.nextLine());\n\tfor(int i = 0;i<n;i++){\n\t\tString line = s.nextLine();\n\t\tString[] array = line.split(\" \",0);\n\t\ta = Integer.parseInt(array[0]);\n\t\tb = Integer.parseInt(array[1]);\n\t\tc = Integer.parseInt(array[2]);\n \n\t\tif(a >= b && a >= c){\n\t\t\tif(a*a == b*b+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(b >= a && b >= c){\n\t\t\tif(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(c >= a && c >= b){\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}else{\n\t\t\tres_flg = 0;\n\t\t}\n\t\tif(res_flg == 0){\n\t\t\tSystem.out.println(\"NO\");\n\t\t}else{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t}\n }\n}", "Main", "public static void main(String[] args){\n\tScanner s = new Scanner(System.in);\n\tint a , b , c , max_num1, max_num2;\n\tint res_flg;\n\t//String n = s.next();\n\tint n = Integer.parseInt(s.nextLine());\n\tfor(int i = 0;i<n;i++){\n\t\tString line = s.nextLine();\n\t\tString[] array = line.split(\" \",0);\n\t\ta = Integer.parseInt(array[0]);\n\t\tb = Integer.parseInt(array[1]);\n\t\tc = Integer.parseInt(array[2]);\n \n\t\tif(a >= b && a >= c){\n\t\t\tif(a*a == b*b+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(b >= a && b >= c){\n\t\t\tif(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(c >= a && c >= b){\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}else{\n\t\t\tres_flg = 0;\n\t\t}\n\t\tif(res_flg == 0){\n\t\t\tSystem.out.println(\"NO\");\n\t\t}else{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t}\n }", "main", "{\n\tScanner s = new Scanner(System.in);\n\tint a , b , c , max_num1, max_num2;\n\tint res_flg;\n\t//String n = s.next();\n\tint n = Integer.parseInt(s.nextLine());\n\tfor(int i = 0;i<n;i++){\n\t\tString line = s.nextLine();\n\t\tString[] array = line.split(\" \",0);\n\t\ta = Integer.parseInt(array[0]);\n\t\tb = Integer.parseInt(array[1]);\n\t\tc = Integer.parseInt(array[2]);\n \n\t\tif(a >= b && a >= c){\n\t\t\tif(a*a == b*b+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(b >= a && b >= c){\n\t\t\tif(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(c >= a && c >= b){\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}else{\n\t\t\tres_flg = 0;\n\t\t}\n\t\tif(res_flg == 0){\n\t\t\tSystem.out.println(\"NO\");\n\t\t}else{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t}\n }", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int a", "a", "b", "b", "c", "c", "max_num1", "max_num1", "max_num2;", "max_num2", "int res_flg;", "res_flg", "int n = Integer.parseInt(s.nextLine());", "n", "Integer.parseInt(s.nextLine())", "Integer.parseInt", "Integer", "s.nextLine()", "s.nextLine", "s", "for(int i = 0;i<n;i++){\n\t\tString line = s.nextLine();\n\t\tString[] array = line.split(\" \",0);\n\t\ta = Integer.parseInt(array[0]);\n\t\tb = Integer.parseInt(array[1]);\n\t\tc = Integer.parseInt(array[2]);\n \n\t\tif(a >= b && a >= c){\n\t\t\tif(a*a == b*b+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(b >= a && b >= c){\n\t\t\tif(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(c >= a && c >= b){\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}else{\n\t\t\tres_flg = 0;\n\t\t}\n\t\tif(res_flg == 0){\n\t\t\tSystem.out.println(\"NO\");\n\t\t}else{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t}", "int i = 0;", "int i = 0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\tString line = s.nextLine();\n\t\tString[] array = line.split(\" \",0);\n\t\ta = Integer.parseInt(array[0]);\n\t\tb = Integer.parseInt(array[1]);\n\t\tc = Integer.parseInt(array[2]);\n \n\t\tif(a >= b && a >= c){\n\t\t\tif(a*a == b*b+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(b >= a && b >= c){\n\t\t\tif(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(c >= a && c >= b){\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}else{\n\t\t\tres_flg = 0;\n\t\t}\n\t\tif(res_flg == 0){\n\t\t\tSystem.out.println(\"NO\");\n\t\t}else{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t}", "{\n\t\tString line = s.nextLine();\n\t\tString[] array = line.split(\" \",0);\n\t\ta = Integer.parseInt(array[0]);\n\t\tb = Integer.parseInt(array[1]);\n\t\tc = Integer.parseInt(array[2]);\n \n\t\tif(a >= b && a >= c){\n\t\t\tif(a*a == b*b+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(b >= a && b >= c){\n\t\t\tif(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(c >= a && c >= b){\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}else{\n\t\t\tres_flg = 0;\n\t\t}\n\t\tif(res_flg == 0){\n\t\t\tSystem.out.println(\"NO\");\n\t\t}else{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t}", "String line = s.nextLine();", "line", "s.nextLine()", "s.nextLine", "s", "String[] array = line.split(\" \",0);", "array", "line.split(\" \",0)", "line.split", "line", "\" \"", "0", "a = Integer.parseInt(array[0])", "a", "Integer.parseInt(array[0])", "Integer.parseInt", "Integer", "array[0]", "array", "0", "b = Integer.parseInt(array[1])", "b", "Integer.parseInt(array[1])", "Integer.parseInt", "Integer", "array[1]", "array", "1", "c = Integer.parseInt(array[2])", "c", "Integer.parseInt(array[2])", "Integer.parseInt", "Integer", "array[2]", "array", "2", "if(a >= b && a >= c){\n\t\t\tif(a*a == b*b+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(b >= a && b >= c){\n\t\t\tif(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(c >= a && c >= b){\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}else{\n\t\t\tres_flg = 0;\n\t\t}", "a >= b && a >= c", "a >= b", "a", "b", "a >= c", "a", "c", "{\n\t\t\tif(a*a == b*b+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}", "if(a*a == b*b+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}", "a*a == b*b+c*c", "a*a", "a", "a", "b*b+c*c", "b*b", "b", "b", "c*c", "c", "c", "{\n\t\t\t\tres_flg = 1;\n\t\t\t}", "res_flg = 1", "res_flg", "1", "{\n\t\t\t\tres_flg = 0;\n\t\t\t}", "res_flg = 0", "res_flg", "0", "if(b >= a && b >= c){\n\t\t\tif(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(c >= a && c >= b){\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}else{\n\t\t\tres_flg = 0;\n\t\t}", "b >= a && b >= c", "b >= a", "b", "a", "b >= c", "b", "c", "{\n\t\t\tif(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}", "if(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}", "b*b == a*a+c*c", "b*b", "b", "b", "a*a+c*c", "a*a", "a", "a", "c*c", "c", "c", "{\n\t\t\t\tres_flg = 1;\n\t\t\t}", "res_flg = 1", "res_flg", "1", "{\n\t\t\t\tres_flg = 0;\n\t\t\t}", "res_flg = 0", "res_flg", "0", "if(c >= a && c >= b){\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}else{\n\t\t\tres_flg = 0;\n\t\t}", "c >= a && c >= b", "c >= a", "c", "a", "c >= b", "c", "b", "{\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}", "if(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}", "c*c == b*b+a*a", "c*c", "c", "c", "b*b+a*a", "b*b", "b", "b", "a*a", "a", "a", "{\n\t\t\t\tres_flg = 1;\n\t\t\t}", "res_flg = 1", "res_flg", "1", "{\n\t\t\t\tres_flg = 0;\n\t\t\t}", "res_flg = 0", "res_flg", "0", "{\n\t\t\tres_flg = 0;\n\t\t}", "res_flg = 0", "res_flg", "0", "if(res_flg == 0){\n\t\t\tSystem.out.println(\"NO\");\n\t\t}else{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}", "res_flg == 0", "res_flg", "0", "{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n\tScanner s = new Scanner(System.in);\n\tint a , b , c , max_num1, max_num2;\n\tint res_flg;\n\t//String n = s.next();\n\tint n = Integer.parseInt(s.nextLine());\n\tfor(int i = 0;i<n;i++){\n\t\tString line = s.nextLine();\n\t\tString[] array = line.split(\" \",0);\n\t\ta = Integer.parseInt(array[0]);\n\t\tb = Integer.parseInt(array[1]);\n\t\tc = Integer.parseInt(array[2]);\n \n\t\tif(a >= b && a >= c){\n\t\t\tif(a*a == b*b+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(b >= a && b >= c){\n\t\t\tif(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(c >= a && c >= b){\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}else{\n\t\t\tres_flg = 0;\n\t\t}\n\t\tif(res_flg == 0){\n\t\t\tSystem.out.println(\"NO\");\n\t\t}else{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t}\n }\n}", "public class Main {\n public static void main(String[] args){\n\tScanner s = new Scanner(System.in);\n\tint a , b , c , max_num1, max_num2;\n\tint res_flg;\n\t//String n = s.next();\n\tint n = Integer.parseInt(s.nextLine());\n\tfor(int i = 0;i<n;i++){\n\t\tString line = s.nextLine();\n\t\tString[] array = line.split(\" \",0);\n\t\ta = Integer.parseInt(array[0]);\n\t\tb = Integer.parseInt(array[1]);\n\t\tc = Integer.parseInt(array[2]);\n \n\t\tif(a >= b && a >= c){\n\t\t\tif(a*a == b*b+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(b >= a && b >= c){\n\t\t\tif(b*b == a*a+c*c){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}\n\t\telse if(c >= a && c >= b){\n\t\t\tif(c*c == b*b+a*a){\n\t\t\t\tres_flg = 1;\n\t\t\t}else{\n\t\t\t\tres_flg = 0;\n\t\t\t}\n\t\t}else{\n\t\t\tres_flg = 0;\n\t\t}\n\t\tif(res_flg == 0){\n\t\t\tSystem.out.println(\"NO\");\n\t\t}else{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t}\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner s = new Scanner(System.in); int a , b , c , max_num1, max_num2; int res_flg; //String n = s.next(); int n = Integer.parseInt(s.nextLine()); for(int i = 0;i<n;i++){ String line = s.nextLine(); String[] array = line.split(" ",0); a = Integer.parseInt(array[0]); b = Integer.parseInt(array[1]); c = Integer.parseInt(array[2]); if(a >= b && a >= c){ if(a*a == b*b+c*c){ res_flg = 1; }else{ res_flg = 0; } } else if(b >= a && b >= c){ if(b*b == a*a+c*c){ res_flg = 1; }else{ res_flg = 0; } } else if(c >= a && c >= b){ if(c*c == b*b+a*a){ res_flg = 1; }else{ res_flg = 0; } }else{ res_flg = 0; } if(res_flg == 0){ System.out.println("NO"); }else{ System.out.println("YES"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 4, 18, 18, 13, 13, 17, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 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 ], [ 108, 5 ], [ 108, 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 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 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 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 29, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 45, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 45, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 63, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 63, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 81, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 81, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 6, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.Scanner;\n\npublic class Main\n{\n\tpublic static void main(String arg[])\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tfor(int i =0; i<n; i++)\n\t\t{\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tint c=scan.nextInt();\n\n\t\t\tif(a*a==b*b+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(b*b==a*a+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(c*c==a*a+b*b)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main\n{\n\tpublic static void main(String arg[])\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tfor(int i =0; i<n; i++)\n\t\t{\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tint c=scan.nextInt();\n\n\t\t\tif(a*a==b*b+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(b*b==a*a+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(c*c==a*a+b*b)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n\n}", "Main", "public static void main(String arg[])\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tfor(int i =0; i<n; i++)\n\t\t{\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tint c=scan.nextInt();\n\n\t\t\tif(a*a==b*b+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(b*b==a*a+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(c*c==a*a+b*b)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tfor(int i =0; i<n; i++)\n\t\t{\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tint c=scan.nextInt();\n\n\t\t\tif(a*a==b*b+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(b*b==a*a+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(c*c==a*a+b*b)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "for(int i =0; i<n; i++)\n\t\t{\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tint c=scan.nextInt();\n\n\t\t\tif(a*a==b*b+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(b*b==a*a+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(c*c==a*a+b*b)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}", "int i =0;", "int i =0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tint c=scan.nextInt();\n\n\t\t\tif(a*a==b*b+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(b*b==a*a+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(c*c==a*a+b*b)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}", "{\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tint c=scan.nextInt();\n\n\t\t\tif(a*a==b*b+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(b*b==a*a+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(c*c==a*a+b*b)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}", "int a=scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "int b=scan.nextInt();", "b", "scan.nextInt()", "scan.nextInt", "scan", "int c=scan.nextInt();", "c", "scan.nextInt()", "scan.nextInt", "scan", "if(a*a==b*b+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(b*b==a*a+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(c*c==a*a+b*b)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");", "a*a==b*b+c*c", "a*a", "a", "a", "b*b+c*c", "b*b", "b", "b", "c*c", "c", "c", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if(b*b==a*a+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(c*c==a*a+b*b)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");", "b*b==a*a+c*c", "b*b", "b", "b", "a*a+c*c", "a*a", "a", "a", "c*c", "c", "c", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if(c*c==a*a+b*b)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");", "c*c==a*a+b*b", "c*c", "c", "c", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String arg[]", "arg", "public class Main\n{\n\tpublic static void main(String arg[])\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tfor(int i =0; i<n; i++)\n\t\t{\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tint c=scan.nextInt();\n\n\t\t\tif(a*a==b*b+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(b*b==a*a+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(c*c==a*a+b*b)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n\n}", "public class Main\n{\n\tpublic static void main(String arg[])\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tfor(int i =0; i<n; i++)\n\t\t{\n\t\t\tint a=scan.nextInt();\n\t\t\tint b=scan.nextInt();\n\t\t\tint c=scan.nextInt();\n\n\t\t\tif(a*a==b*b+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(b*b==a*a+c*c)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse if(c*c==a*a+b*b)\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String arg[]) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); for(int i =0; i<n; i++) { int a=scan.nextInt(); int b=scan.nextInt(); int c=scan.nextInt(); if(a*a==b*b+c*c) System.out.println("YES"); else if(b*b==a*a+c*c) System.out.println("YES"); else if(c*c==a*a+b*b) System.out.println("YES"); else System.out.println("NO"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 90, 5 ], [ 90, 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 ], [ 18, 19 ], [ 19, 20 ], [ 17, 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 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 21, 37 ], [ 37, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 48, 50 ], [ 39, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 39, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 37, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 37, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 6, 87 ], [ 87, 88 ], [ 0, 89 ], [ 89, 90 ], [ 89, 91 ] ]
[ "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 n = scan.nextInt();\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\t\n\t\t\tif(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\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\tint n = scan.nextInt();\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\t\n\t\t\tif(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\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\tint n = scan.nextInt();\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\t\n\t\t\tif(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\t\n\t\t\tif(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "while(scan.hasNext()){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\t\n\t\t\tif(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}", "scan.hasNext()", "scan.hasNext", "scan", "{\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\t\n\t\t\tif(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}", "int a = scan.nextInt();", "a", "scan.nextInt()", "scan.nextInt", "scan", "int b = scan.nextInt();", "b", "scan.nextInt()", "scan.nextInt", "scan", "int c = scan.nextInt();", "c", "scan.nextInt()", "scan.nextInt", "scan", "if(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a", "a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a", "a*a == b*b + c*c", "a*a", "a", "a", "b*b + c*c", "b*b", "b", "b", "c*c", "c", "c", "b*b == a*a + c*c", "b*b", "b", "b", "a*a + c*c", "a*a", "a", "a", "c*c", "c", "c", "c*c == b*b + a*a", "c*c", "c", "c", "b*b + a*a", "b*b", "b", "b", "a*a", "a", "a", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\t\n\t\t\tif(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\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\tint n = scan.nextInt();\n\t\t\n\t\twhile(scan.hasNext()){\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\t\n\t\t\tif(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\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); int n = scan.nextInt(); while(scan.hasNext()){ int a = scan.nextInt(); int b = scan.nextInt(); int c = scan.nextInt(); if(a*a == b*b + c*c || b*b == a*a + c*c || c*c == b*b + a*a){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 39, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 32, 39 ], [ 39, 40 ], [ 40, 41 ], [ 29, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 29, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 47, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 46, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 46, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 6, 84 ], [ 84, 85 ] ]
[ "import java.util.*;\nclass Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tfor(int i=0;i<x; i++){\n\t\t\tint [] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};\n\t\t\tArrays.sort(a);\n\t\t\tif(a[0]*a[0] + a[1]*a[1] == a[2]*a[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tfor(int i=0;i<x; i++){\n\t\t\tint [] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};\n\t\t\tArrays.sort(a);\n\t\t\tif(a[0]*a[0] + a[1]*a[1] == a[2]*a[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc=new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tfor(int i=0;i<x; i++){\n\t\t\tint [] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};\n\t\t\tArrays.sort(a);\n\t\t\tif(a[0]*a[0] + a[1]*a[1] == a[2]*a[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tfor(int i=0;i<x; i++){\n\t\t\tint [] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};\n\t\t\tArrays.sort(a);\n\t\t\tif(a[0]*a[0] + a[1]*a[1] == a[2]*a[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int x = sc.nextInt();", "x", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<x; i++){\n\t\t\tint [] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};\n\t\t\tArrays.sort(a);\n\t\t\tif(a[0]*a[0] + a[1]*a[1] == a[2]*a[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n\t\t\tint [] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};\n\t\t\tArrays.sort(a);\n\t\t\tif(a[0]*a[0] + a[1]*a[1] == a[2]*a[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tint [] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};\n\t\t\tArrays.sort(a);\n\t\t\tif(a[0]*a[0] + a[1]*a[1] == a[2]*a[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int [] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()};", "a", "{sc.nextInt(),sc.nextInt(),sc.nextInt()}", "sc.nextInt()", "sc.nextInt", "sc", "sc.nextInt()", "sc.nextInt", "sc", "sc.nextInt()", "sc.nextInt", "sc", "Arrays.sort(a)", "Arrays.sort", "Arrays", "a", "if(a[0]*a[0] + a[1]*a[1] == a[2]*a[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "a[0]*a[0] + a[1]*a[1] == a[2]*a[2]", "a[0]*a[0] + a[1]*a[1]", "a[0]*a[0]", "a[0]", "a", "0", "a[0]", "a", "0", "a[1]*a[1]", "a[1]", "a", "1", "a[1]", "a", "1", "a[2]*a[2]", "a[2]", "a", "2", "a[2]", "a", "2", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args) { Scanner sc=new Scanner(System.in); int x = sc.nextInt(); for(int i=0;i<x; i++){ int [] a = {sc.nextInt(),sc.nextInt(),sc.nextInt()}; Arrays.sort(a); if(a[0]*a[0] + a[1]*a[1] == a[2]*a[2]) { System.out.println("YES"); }else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 13, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 29, 17, 29, 17, 23, 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 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 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 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 29, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 45, 50 ], [ 50, 51 ], [ 50, 52 ], [ 50, 53 ], [ 50, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 6, 58 ], [ 58, 59 ], [ 114, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 71, 73 ], [ 67, 74 ], [ 74, 75 ], [ 74, 76 ], [ 62, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 85, 87 ], [ 81, 88 ], [ 88, 89 ], [ 88, 90 ], [ 62, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 100, 101 ], [ 100, 102 ], [ 91, 103 ], [ 103, 104 ], [ 91, 105 ], [ 105, 106 ], [ 60, 107 ], [ 107, 108 ], [ 60, 109 ], [ 109, 110 ], [ 60, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String a[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();\n\t\t\n\t\tfor(int i=0;i<N;i++){\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\t\t\tSystem.out.println(isRightTriangle(b,c,d));\n\t\t}\n\t\tsc.close();\n\t}\n\t\n\tpublic static String isRightTriangle(int a, int b ,int c){\n\t\tif(a>b){\n\t\t\tint k = a;\n\t\t\ta = b;\n\t\t\tb = k;\n\t\t}\n\t\tif(b>c){\n\t\t\tint k = b;\n\t\t\tb = c;\n\t\t\tc= k;\n\t\t}\n\t\t\n\t\tif(c*c == a*a+b*b)\n\t\t\treturn \"YES\";\n\t\telse\n\t\t\treturn \"NO\";\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String a[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();\n\t\t\n\t\tfor(int i=0;i<N;i++){\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\t\t\tSystem.out.println(isRightTriangle(b,c,d));\n\t\t}\n\t\tsc.close();\n\t}\n\t\n\tpublic static String isRightTriangle(int a, int b ,int c){\n\t\tif(a>b){\n\t\t\tint k = a;\n\t\t\ta = b;\n\t\t\tb = k;\n\t\t}\n\t\tif(b>c){\n\t\t\tint k = b;\n\t\t\tb = c;\n\t\t\tc= k;\n\t\t}\n\t\t\n\t\tif(c*c == a*a+b*b)\n\t\t\treturn \"YES\";\n\t\telse\n\t\t\treturn \"NO\";\n\t}\n\n}", "Main", "public static void main(String a[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();\n\t\t\n\t\tfor(int i=0;i<N;i++){\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\t\t\tSystem.out.println(isRightTriangle(b,c,d));\n\t\t}\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();\n\t\t\n\t\tfor(int i=0;i<N;i++){\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\t\t\tSystem.out.println(isRightTriangle(b,c,d));\n\t\t}\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<N;i++){\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\t\t\tSystem.out.println(isRightTriangle(b,c,d));\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\t\t\tSystem.out.println(isRightTriangle(b,c,d));\n\t\t}", "{\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\t\t\tSystem.out.println(isRightTriangle(b,c,d));\n\t\t}", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int c = sc.nextInt();", "c", "sc.nextInt()", "sc.nextInt", "sc", "int d = sc.nextInt();", "d", "sc.nextInt()", "sc.nextInt", "sc", "System.out.println(isRightTriangle(b,c,d))", "System.out.println", "System.out", "System", "System.out", "isRightTriangle(b,c,d)", "isRightTriangle", "b", "c", "d", "sc.close()", "sc.close", "sc", "String a[]", "a", "public static String isRightTriangle(int a, int b ,int c){\n\t\tif(a>b){\n\t\t\tint k = a;\n\t\t\ta = b;\n\t\t\tb = k;\n\t\t}\n\t\tif(b>c){\n\t\t\tint k = b;\n\t\t\tb = c;\n\t\t\tc= k;\n\t\t}\n\t\t\n\t\tif(c*c == a*a+b*b)\n\t\t\treturn \"YES\";\n\t\telse\n\t\t\treturn \"NO\";\n\t}", "isRightTriangle", "{\n\t\tif(a>b){\n\t\t\tint k = a;\n\t\t\ta = b;\n\t\t\tb = k;\n\t\t}\n\t\tif(b>c){\n\t\t\tint k = b;\n\t\t\tb = c;\n\t\t\tc= k;\n\t\t}\n\t\t\n\t\tif(c*c == a*a+b*b)\n\t\t\treturn \"YES\";\n\t\telse\n\t\t\treturn \"NO\";\n\t}", "if(a>b){\n\t\t\tint k = a;\n\t\t\ta = b;\n\t\t\tb = k;\n\t\t}", "a>b", "a", "b", "{\n\t\t\tint k = a;\n\t\t\ta = b;\n\t\t\tb = k;\n\t\t}", "int k = a;", "k", "a", "a = b", "a", "b", "b = k", "b", "k", "if(b>c){\n\t\t\tint k = b;\n\t\t\tb = c;\n\t\t\tc= k;\n\t\t}", "b>c", "b", "c", "{\n\t\t\tint k = b;\n\t\t\tb = c;\n\t\t\tc= k;\n\t\t}", "int k = b;", "k", "b", "b = c", "b", "c", "c= k", "c", "k", "if(c*c == a*a+b*b)\n\t\t\treturn \"YES\";\n\t\telse\n\t\t\treturn \"NO\";", "c*c == a*a+b*b", "c*c", "c", "c", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "return \"YES\";", "\"YES\"", "return \"NO\";", "\"NO\"", "int a", "a", "int b", "b", "int c", "c", "public class Main {\n\tpublic static void main(String a[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();\n\t\t\n\t\tfor(int i=0;i<N;i++){\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\t\t\tSystem.out.println(isRightTriangle(b,c,d));\n\t\t}\n\t\tsc.close();\n\t}\n\t\n\tpublic static String isRightTriangle(int a, int b ,int c){\n\t\tif(a>b){\n\t\t\tint k = a;\n\t\t\ta = b;\n\t\t\tb = k;\n\t\t}\n\t\tif(b>c){\n\t\t\tint k = b;\n\t\t\tb = c;\n\t\t\tc= k;\n\t\t}\n\t\t\n\t\tif(c*c == a*a+b*b)\n\t\t\treturn \"YES\";\n\t\telse\n\t\t\treturn \"NO\";\n\t}\n\n}", "public class Main {\n\tpublic static void main(String a[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint N = sc.nextInt();\n\t\t\n\t\tfor(int i=0;i<N;i++){\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint d = sc.nextInt();\n\t\t\tSystem.out.println(isRightTriangle(b,c,d));\n\t\t}\n\t\tsc.close();\n\t}\n\t\n\tpublic static String isRightTriangle(int a, int b ,int c){\n\t\tif(a>b){\n\t\t\tint k = a;\n\t\t\ta = b;\n\t\t\tb = k;\n\t\t}\n\t\tif(b>c){\n\t\t\tint k = b;\n\t\t\tb = c;\n\t\t\tc= k;\n\t\t}\n\t\t\n\t\tif(c*c == a*a+b*b)\n\t\t\treturn \"YES\";\n\t\telse\n\t\t\treturn \"NO\";\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String a[]){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for(int i=0;i<N;i++){ int b = sc.nextInt(); int c = sc.nextInt(); int d = sc.nextInt(); System.out.println(isRightTriangle(b,c,d)); } sc.close(); } public static String isRightTriangle(int a, int b ,int c){ if(a>b){ int k = a; a = b; b = k; } if(b>c){ int k = b; b = c; c= k; } if(c*c == a*a+b*b) return "YES"; else return "NO"; } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 13, 13, 14, 2, 4, 18, 13, 18, 13, 17, 17, 2, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 17, 30, 4, 18, 4, 18, 13, 17, 17, 30, 4, 18, 4, 18, 13, 17, 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 ], [ 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 ], [ 22, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 22, 37 ], [ 37, 38 ], [ 37, 39 ], [ 22, 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 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 56, 61 ], [ 53, 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 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 53, 85 ], [ 85, 86 ], [ 86, 87 ], [ 85, 88 ], [ 53, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 94, 95 ], [ 94, 96 ], [ 91, 97 ], [ 90, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 102, 104 ], [ 99, 105 ], [ 98, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 109, 111 ], [ 106, 112 ], [ 89, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 114, 120 ], [ 89, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 122, 128 ], [ 22, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 9, 135 ], [ 135, 136 ] ]
[ "/* Volume0_3 */\nimport java.io.*;\nimport java.util.Arrays;\n\nclass Main\n{\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int N = Integer.parseInt(br.readLine());\n int[] edges = new int[3];\n\n for(int i = 0; i < N; i++){\n String[] str = br.readLine().split(\" \");\n for(int j = 0; j < 3; j++){\n edges[j] = Integer.parseInt(str[j]);\n }\n Arrays.sort(edges);\n\n if(Math.pow(edges[2], 2) == Math.pow(edges[0], 2) + Math.pow(edges[1], 2)){\n sb.append(\"YES\").append(\"\\n\");\n }else {\n sb.append(\"NO\").append(\"\\n\");\n }\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.Arrays;", "Arrays", "java.util", "class Main\n{\n public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int N = Integer.parseInt(br.readLine());\n int[] edges = new int[3];\n\n for(int i = 0; i < N; i++){\n String[] str = br.readLine().split(\" \");\n for(int j = 0; j < 3; j++){\n edges[j] = Integer.parseInt(str[j]);\n }\n Arrays.sort(edges);\n\n if(Math.pow(edges[2], 2) == Math.pow(edges[0], 2) + Math.pow(edges[1], 2)){\n sb.append(\"YES\").append(\"\\n\");\n }else {\n sb.append(\"NO\").append(\"\\n\");\n }\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }\n}", "Main", "public static void main(String[] args)\n {\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int N = Integer.parseInt(br.readLine());\n int[] edges = new int[3];\n\n for(int i = 0; i < N; i++){\n String[] str = br.readLine().split(\" \");\n for(int j = 0; j < 3; j++){\n edges[j] = Integer.parseInt(str[j]);\n }\n Arrays.sort(edges);\n\n if(Math.pow(edges[2], 2) == Math.pow(edges[0], 2) + Math.pow(edges[1], 2)){\n sb.append(\"YES\").append(\"\\n\");\n }else {\n sb.append(\"NO\").append(\"\\n\");\n }\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }", "main", "{\n try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int N = Integer.parseInt(br.readLine());\n int[] edges = new int[3];\n\n for(int i = 0; i < N; i++){\n String[] str = br.readLine().split(\" \");\n for(int j = 0; j < 3; j++){\n edges[j] = Integer.parseInt(str[j]);\n }\n Arrays.sort(edges);\n\n if(Math.pow(edges[2], 2) == Math.pow(edges[0], 2) + Math.pow(edges[1], 2)){\n sb.append(\"YES\").append(\"\\n\");\n }else {\n sb.append(\"NO\").append(\"\\n\");\n }\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }\n }", "try{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int N = Integer.parseInt(br.readLine());\n int[] edges = new int[3];\n\n for(int i = 0; i < N; i++){\n String[] str = br.readLine().split(\" \");\n for(int j = 0; j < 3; j++){\n edges[j] = Integer.parseInt(str[j]);\n }\n Arrays.sort(edges);\n\n if(Math.pow(edges[2], 2) == Math.pow(edges[0], 2) + Math.pow(edges[1], 2)){\n sb.append(\"YES\").append(\"\\n\");\n }else {\n sb.append(\"NO\").append(\"\\n\");\n }\n }\n System.out.print(sb);\n\n }catch(Exception e){\n System.out.println(e);\n }", "catch(Exception e){\n System.out.println(e);\n }", "Exception e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n int N = Integer.parseInt(br.readLine());\n int[] edges = new int[3];\n\n for(int i = 0; i < N; i++){\n String[] str = br.readLine().split(\" \");\n for(int j = 0; j < 3; j++){\n edges[j] = Integer.parseInt(str[j]);\n }\n Arrays.sort(edges);\n\n if(Math.pow(edges[2], 2) == Math.pow(edges[0], 2) + Math.pow(edges[1], 2)){\n sb.append(\"YES\").append(\"\\n\");\n }else {\n sb.append(\"NO\").append(\"\\n\");\n }\n }\n System.out.print(sb);\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int N = Integer.parseInt(br.readLine());", "N", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int[] edges = new int[3];", "edges", "new int[3]", "3", "for(int i = 0; i < N; i++){\n String[] str = br.readLine().split(\" \");\n for(int j = 0; j < 3; j++){\n edges[j] = Integer.parseInt(str[j]);\n }\n Arrays.sort(edges);\n\n if(Math.pow(edges[2], 2) == Math.pow(edges[0], 2) + Math.pow(edges[1], 2)){\n sb.append(\"YES\").append(\"\\n\");\n }else {\n sb.append(\"NO\").append(\"\\n\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n String[] str = br.readLine().split(\" \");\n for(int j = 0; j < 3; j++){\n edges[j] = Integer.parseInt(str[j]);\n }\n Arrays.sort(edges);\n\n if(Math.pow(edges[2], 2) == Math.pow(edges[0], 2) + Math.pow(edges[1], 2)){\n sb.append(\"YES\").append(\"\\n\");\n }else {\n sb.append(\"NO\").append(\"\\n\");\n }\n }", "{\n String[] str = br.readLine().split(\" \");\n for(int j = 0; j < 3; j++){\n edges[j] = Integer.parseInt(str[j]);\n }\n Arrays.sort(edges);\n\n if(Math.pow(edges[2], 2) == Math.pow(edges[0], 2) + Math.pow(edges[1], 2)){\n sb.append(\"YES\").append(\"\\n\");\n }else {\n sb.append(\"NO\").append(\"\\n\");\n }\n }", "String[] str = br.readLine().split(\" \");", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "for(int j = 0; j < 3; j++){\n edges[j] = Integer.parseInt(str[j]);\n }", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "{\n edges[j] = Integer.parseInt(str[j]);\n }", "{\n edges[j] = Integer.parseInt(str[j]);\n }", "edges[j] = Integer.parseInt(str[j])", "edges[j]", "edges", "j", "Integer.parseInt(str[j])", "Integer.parseInt", "Integer", "str[j]", "str", "j", "Arrays.sort(edges)", "Arrays.sort", "Arrays", "edges", "if(Math.pow(edges[2], 2) == Math.pow(edges[0], 2) + Math.pow(edges[1], 2)){\n sb.append(\"YES\").append(\"\\n\");\n }else {\n sb.append(\"NO\").append(\"\\n\");\n }", "Math.pow(edges[2], 2) == Math.pow(edges[0], 2) + Math.pow(edges[1], 2)", "Math.pow(edges[2], 2)", "Math.pow", "Math", "edges[2]", "edges", "2", "2", "Math.pow(edges[0], 2) + Math.pow(edges[1], 2)", "Math.pow(edges[0], 2)", "Math.pow", "Math", "edges[0]", "edges", "0", "2", "Math.pow(edges[1], 2)", "Math.pow", "Math", "edges[1]", "edges", "1", "2", "{\n sb.append(\"YES\").append(\"\\n\");\n }", "sb.append(\"YES\").append(\"\\n\")", "sb.append(\"YES\").append", "sb.append(\"YES\")", "sb.append", "sb", "\"YES\"", "\"\\n\"", "{\n sb.append(\"NO\").append(\"\\n\");\n }", "sb.append(\"NO\").append(\"\\n\")", "sb.append(\"NO\").append", "sb.append(\"NO\")", "sb.append", "sb", "\"NO\"", "\"\\n\"", "System.out.print(sb)", "System.out.print", "System.out", "System", "System.out", "sb", "String[] args", "args" ]
/* Volume0_3 */ import java.io.*; import java.util.Arrays; class Main { public static void main(String[] args) { try{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder sb = new StringBuilder(); int N = Integer.parseInt(br.readLine()); int[] edges = new int[3]; for(int i = 0; i < N; i++){ String[] str = br.readLine().split(" "); for(int j = 0; j < 3; j++){ edges[j] = Integer.parseInt(str[j]); } Arrays.sort(edges); if(Math.pow(edges[2], 2) == Math.pow(edges[0], 2) + Math.pow(edges[1], 2)){ sb.append("YES").append("\n"); }else { sb.append("NO").append("\n"); } } System.out.print(sb); }catch(Exception e){ System.out.println(e); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 18, 13, 17, 17, 41, 13, 4, 18, 13, 4, 18, 13, 18, 13, 17, 17, 41, 13, 4, 18, 13, 4, 18, 13, 18, 13, 17, 17, 14, 2, 2, 2, 2, 13, 13, 13, 2, 2, 13, 13, 13, 2, 2, 13, 13, 13, 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 ], [ 121, 11 ], [ 121, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 14, 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 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 44, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 52, 61 ], [ 41, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 64, 73 ], [ 41, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 76, 85 ], [ 41, 86 ], [ 86, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 88, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 88, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 86, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 86, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 14, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 12, 118 ], [ 118, 119 ], [ 0, 120 ], [ 120, 121 ], [ 120, 122 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\npublic class Main{\n public static void main(String[] args) throws IOException{\n\n BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(bf.readLine());\n StringBuilder ans=new StringBuilder();\n\n\n for(int i=0;i<n;i++){\n String[] str=bf.readLine().split(\" \");\n\n double x=Math.pow(Integer.parseInt(str[0]),2);\n double y=Math.pow(Integer.parseInt(str[1]),2);\n double z=Math.pow(Integer.parseInt(str[2]),2);\n\n\n if(x+y==z || x+z==y || y+z==x)\n ans.append(\"YES\\n\");\n else\n ans.append(\"NO\\n\");\n }\n System.out.print(ans);\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\n BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(bf.readLine());\n StringBuilder ans=new StringBuilder();\n\n\n for(int i=0;i<n;i++){\n String[] str=bf.readLine().split(\" \");\n\n double x=Math.pow(Integer.parseInt(str[0]),2);\n double y=Math.pow(Integer.parseInt(str[1]),2);\n double z=Math.pow(Integer.parseInt(str[2]),2);\n\n\n if(x+y==z || x+z==y || y+z==x)\n ans.append(\"YES\\n\");\n else\n ans.append(\"NO\\n\");\n }\n System.out.print(ans);\n }\n}", "Main", "public static void main(String[] args) throws IOException{\n\n BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(bf.readLine());\n StringBuilder ans=new StringBuilder();\n\n\n for(int i=0;i<n;i++){\n String[] str=bf.readLine().split(\" \");\n\n double x=Math.pow(Integer.parseInt(str[0]),2);\n double y=Math.pow(Integer.parseInt(str[1]),2);\n double z=Math.pow(Integer.parseInt(str[2]),2);\n\n\n if(x+y==z || x+z==y || y+z==x)\n ans.append(\"YES\\n\");\n else\n ans.append(\"NO\\n\");\n }\n System.out.print(ans);\n }", "main", "{\n\n BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(bf.readLine());\n StringBuilder ans=new StringBuilder();\n\n\n for(int i=0;i<n;i++){\n String[] str=bf.readLine().split(\" \");\n\n double x=Math.pow(Integer.parseInt(str[0]),2);\n double y=Math.pow(Integer.parseInt(str[1]),2);\n double z=Math.pow(Integer.parseInt(str[2]),2);\n\n\n if(x+y==z || x+z==y || y+z==x)\n ans.append(\"YES\\n\");\n else\n ans.append(\"NO\\n\");\n }\n System.out.print(ans);\n }", "BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));", "bf", "new BufferedReader(new InputStreamReader(System.in))", "int n=Integer.parseInt(bf.readLine());", "n", "Integer.parseInt(bf.readLine())", "Integer.parseInt", "Integer", "bf.readLine()", "bf.readLine", "bf", "StringBuilder ans=new StringBuilder();", "ans", "new StringBuilder()", "for(int i=0;i<n;i++){\n String[] str=bf.readLine().split(\" \");\n\n double x=Math.pow(Integer.parseInt(str[0]),2);\n double y=Math.pow(Integer.parseInt(str[1]),2);\n double z=Math.pow(Integer.parseInt(str[2]),2);\n\n\n if(x+y==z || x+z==y || y+z==x)\n ans.append(\"YES\\n\");\n else\n ans.append(\"NO\\n\");\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n String[] str=bf.readLine().split(\" \");\n\n double x=Math.pow(Integer.parseInt(str[0]),2);\n double y=Math.pow(Integer.parseInt(str[1]),2);\n double z=Math.pow(Integer.parseInt(str[2]),2);\n\n\n if(x+y==z || x+z==y || y+z==x)\n ans.append(\"YES\\n\");\n else\n ans.append(\"NO\\n\");\n }", "{\n String[] str=bf.readLine().split(\" \");\n\n double x=Math.pow(Integer.parseInt(str[0]),2);\n double y=Math.pow(Integer.parseInt(str[1]),2);\n double z=Math.pow(Integer.parseInt(str[2]),2);\n\n\n if(x+y==z || x+z==y || y+z==x)\n ans.append(\"YES\\n\");\n else\n ans.append(\"NO\\n\");\n }", "String[] str=bf.readLine().split(\" \");", "str", "bf.readLine().split(\" \")", "bf.readLine().split", "bf.readLine()", "bf.readLine", "bf", "\" \"", "double x=Math.pow(Integer.parseInt(str[0]),2);", "x", "Math.pow(Integer.parseInt(str[0]),2)", "Math.pow", "Math", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "2", "double y=Math.pow(Integer.parseInt(str[1]),2);", "y", "Math.pow(Integer.parseInt(str[1]),2)", "Math.pow", "Math", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "2", "double z=Math.pow(Integer.parseInt(str[2]),2);", "z", "Math.pow(Integer.parseInt(str[2]),2)", "Math.pow", "Math", "Integer.parseInt(str[2])", "Integer.parseInt", "Integer", "str[2]", "str", "2", "2", "if(x+y==z || x+z==y || y+z==x)\n ans.append(\"YES\\n\");\n else\n ans.append(\"NO\\n\");", "x+y==z || x+z==y || y+z==x", "x+y==z || x+z==y || y+z==x", "x+y==z", "x+y", "x", "y", "z", "x+z==y", "x+z", "x", "z", "y", "y+z==x", "y+z", "y", "z", "x", "ans.append(\"YES\\n\")", "ans.append", "ans", "\"YES\\n\"", "ans.append(\"NO\\n\")", "ans.append", "ans", "\"NO\\n\"", "System.out.print(ans)", "System.out.print", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main{\n public static void main(String[] args) throws IOException{\n\n BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(bf.readLine());\n StringBuilder ans=new StringBuilder();\n\n\n for(int i=0;i<n;i++){\n String[] str=bf.readLine().split(\" \");\n\n double x=Math.pow(Integer.parseInt(str[0]),2);\n double y=Math.pow(Integer.parseInt(str[1]),2);\n double z=Math.pow(Integer.parseInt(str[2]),2);\n\n\n if(x+y==z || x+z==y || y+z==x)\n ans.append(\"YES\\n\");\n else\n ans.append(\"NO\\n\");\n }\n System.out.print(ans);\n }\n}", "public class Main{\n public static void main(String[] args) throws IOException{\n\n BufferedReader bf=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(bf.readLine());\n StringBuilder ans=new StringBuilder();\n\n\n for(int i=0;i<n;i++){\n String[] str=bf.readLine().split(\" \");\n\n double x=Math.pow(Integer.parseInt(str[0]),2);\n double y=Math.pow(Integer.parseInt(str[1]),2);\n double z=Math.pow(Integer.parseInt(str[2]),2);\n\n\n if(x+y==z || x+z==y || y+z==x)\n ans.append(\"YES\\n\");\n else\n ans.append(\"NO\\n\");\n }\n System.out.print(ans);\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 bf=new BufferedReader(new InputStreamReader(System.in)); int n=Integer.parseInt(bf.readLine()); StringBuilder ans=new StringBuilder(); for(int i=0;i<n;i++){ String[] str=bf.readLine().split(" "); double x=Math.pow(Integer.parseInt(str[0]),2); double y=Math.pow(Integer.parseInt(str[1]),2); double z=Math.pow(Integer.parseInt(str[2]),2); if(x+y==z || x+z==y || y+z==x) ans.append("YES\n"); else ans.append("NO\n"); } System.out.print(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 18, 13, 17, 17, 41, 13, 4, 18, 13, 4, 18, 13, 18, 13, 17, 17, 41, 13, 4, 18, 13, 4, 18, 13, 18, 13, 17, 17, 14, 2, 2, 2, 2, 13, 13, 13, 2, 2, 13, 13, 13, 2, 2, 13, 13, 13, 30, 4, 18, 13, 17, 30, 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 ], [ 126, 11 ], [ 126, 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 ], [ 23, 26 ], [ 26, 27 ], [ 27, 28 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 14, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 47, 52 ], [ 44, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 55, 64 ], [ 44, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 67, 76 ], [ 44, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 85, 87 ], [ 79, 88 ], [ 44, 89 ], [ 89, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 91, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 91, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 89, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 89, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 14, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 12, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tInputStreamReader inputStreamReader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\t\tint n = Integer.parseInt(bufferedReader.readLine());\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString[] dataSet = bufferedReader.readLine().split(\" \");\n\t\t\tdouble x = Math.pow(Integer.parseInt(dataSet[0]), 2);\n\t\t\tdouble y = Math.pow(Integer.parseInt(dataSet[1]), 2);\n\t\t\tdouble z = Math.pow(Integer.parseInt(dataSet[2]), 2);\n\t\t\t\n\t\t\tif(x+y==z || x+z==y || y+z==x){\n\t\t\t\tanswer.append(\"YES\\n\");\t\n\t\t\t}else{\n\t\t\t\tanswer.append(\"NO\\n\");\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer);\n\t}\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\tInputStreamReader inputStreamReader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\t\tint n = Integer.parseInt(bufferedReader.readLine());\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString[] dataSet = bufferedReader.readLine().split(\" \");\n\t\t\tdouble x = Math.pow(Integer.parseInt(dataSet[0]), 2);\n\t\t\tdouble y = Math.pow(Integer.parseInt(dataSet[1]), 2);\n\t\t\tdouble z = Math.pow(Integer.parseInt(dataSet[2]), 2);\n\t\t\t\n\t\t\tif(x+y==z || x+z==y || y+z==x){\n\t\t\t\tanswer.append(\"YES\\n\");\t\n\t\t\t}else{\n\t\t\t\tanswer.append(\"NO\\n\");\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer);\n\t}\t\n}", "Main", "public static void main(String args[]) throws IOException{\n\t\tInputStreamReader inputStreamReader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\t\tint n = Integer.parseInt(bufferedReader.readLine());\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString[] dataSet = bufferedReader.readLine().split(\" \");\n\t\t\tdouble x = Math.pow(Integer.parseInt(dataSet[0]), 2);\n\t\t\tdouble y = Math.pow(Integer.parseInt(dataSet[1]), 2);\n\t\t\tdouble z = Math.pow(Integer.parseInt(dataSet[2]), 2);\n\t\t\t\n\t\t\tif(x+y==z || x+z==y || y+z==x){\n\t\t\t\tanswer.append(\"YES\\n\");\t\n\t\t\t}else{\n\t\t\t\tanswer.append(\"NO\\n\");\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer);\n\t}", "main", "{\n\t\tInputStreamReader inputStreamReader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\t\tint n = Integer.parseInt(bufferedReader.readLine());\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString[] dataSet = bufferedReader.readLine().split(\" \");\n\t\t\tdouble x = Math.pow(Integer.parseInt(dataSet[0]), 2);\n\t\t\tdouble y = Math.pow(Integer.parseInt(dataSet[1]), 2);\n\t\t\tdouble z = Math.pow(Integer.parseInt(dataSet[2]), 2);\n\t\t\t\n\t\t\tif(x+y==z || x+z==y || y+z==x){\n\t\t\t\tanswer.append(\"YES\\n\");\t\n\t\t\t}else{\n\t\t\t\tanswer.append(\"NO\\n\");\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer);\n\t}", "InputStreamReader inputStreamReader = new InputStreamReader(System.in);", "inputStreamReader", "new InputStreamReader(System.in)", "BufferedReader bufferedReader = new BufferedReader(inputStreamReader);", "bufferedReader", "new BufferedReader(inputStreamReader)", "int n = Integer.parseInt(bufferedReader.readLine());", "n", "Integer.parseInt(bufferedReader.readLine())", "Integer.parseInt", "Integer", "bufferedReader.readLine()", "bufferedReader.readLine", "bufferedReader", "StringBuilder answer = new StringBuilder();", "answer", "new StringBuilder()", "for(int i=0; i<n; i++){\n\t\t\tString[] dataSet = bufferedReader.readLine().split(\" \");\n\t\t\tdouble x = Math.pow(Integer.parseInt(dataSet[0]), 2);\n\t\t\tdouble y = Math.pow(Integer.parseInt(dataSet[1]), 2);\n\t\t\tdouble z = Math.pow(Integer.parseInt(dataSet[2]), 2);\n\t\t\t\n\t\t\tif(x+y==z || x+z==y || y+z==x){\n\t\t\t\tanswer.append(\"YES\\n\");\t\n\t\t\t}else{\n\t\t\t\tanswer.append(\"NO\\n\");\t\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tString[] dataSet = bufferedReader.readLine().split(\" \");\n\t\t\tdouble x = Math.pow(Integer.parseInt(dataSet[0]), 2);\n\t\t\tdouble y = Math.pow(Integer.parseInt(dataSet[1]), 2);\n\t\t\tdouble z = Math.pow(Integer.parseInt(dataSet[2]), 2);\n\t\t\t\n\t\t\tif(x+y==z || x+z==y || y+z==x){\n\t\t\t\tanswer.append(\"YES\\n\");\t\n\t\t\t}else{\n\t\t\t\tanswer.append(\"NO\\n\");\t\n\t\t\t}\n\t\t}", "{\n\t\t\tString[] dataSet = bufferedReader.readLine().split(\" \");\n\t\t\tdouble x = Math.pow(Integer.parseInt(dataSet[0]), 2);\n\t\t\tdouble y = Math.pow(Integer.parseInt(dataSet[1]), 2);\n\t\t\tdouble z = Math.pow(Integer.parseInt(dataSet[2]), 2);\n\t\t\t\n\t\t\tif(x+y==z || x+z==y || y+z==x){\n\t\t\t\tanswer.append(\"YES\\n\");\t\n\t\t\t}else{\n\t\t\t\tanswer.append(\"NO\\n\");\t\n\t\t\t}\n\t\t}", "String[] dataSet = bufferedReader.readLine().split(\" \");", "dataSet", "bufferedReader.readLine().split(\" \")", "bufferedReader.readLine().split", "bufferedReader.readLine()", "bufferedReader.readLine", "bufferedReader", "\" \"", "double x = Math.pow(Integer.parseInt(dataSet[0]), 2);", "x", "Math.pow(Integer.parseInt(dataSet[0]), 2)", "Math.pow", "Math", "Integer.parseInt(dataSet[0])", "Integer.parseInt", "Integer", "dataSet[0]", "dataSet", "0", "2", "double y = Math.pow(Integer.parseInt(dataSet[1]), 2);", "y", "Math.pow(Integer.parseInt(dataSet[1]), 2)", "Math.pow", "Math", "Integer.parseInt(dataSet[1])", "Integer.parseInt", "Integer", "dataSet[1]", "dataSet", "1", "2", "double z = Math.pow(Integer.parseInt(dataSet[2]), 2);", "z", "Math.pow(Integer.parseInt(dataSet[2]), 2)", "Math.pow", "Math", "Integer.parseInt(dataSet[2])", "Integer.parseInt", "Integer", "dataSet[2]", "dataSet", "2", "2", "if(x+y==z || x+z==y || y+z==x){\n\t\t\t\tanswer.append(\"YES\\n\");\t\n\t\t\t}else{\n\t\t\t\tanswer.append(\"NO\\n\");\t\n\t\t\t}", "x+y==z || x+z==y || y+z==x", "x+y==z || x+z==y || y+z==x", "x+y==z", "x+y", "x", "y", "z", "x+z==y", "x+z", "x", "z", "y", "y+z==x", "y+z", "y", "z", "x", "{\n\t\t\t\tanswer.append(\"YES\\n\");\t\n\t\t\t}", "answer.append(\"YES\\n\")", "answer.append", "answer", "\"YES\\n\"", "{\n\t\t\t\tanswer.append(\"NO\\n\");\t\n\t\t\t}", "answer.append(\"NO\\n\")", "answer.append", "answer", "\"NO\\n\"", "System.out.print(answer)", "System.out.print", "System.out", "System", "System.out", "answer", "String args[]", "args", "public class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tInputStreamReader inputStreamReader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\t\tint n = Integer.parseInt(bufferedReader.readLine());\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString[] dataSet = bufferedReader.readLine().split(\" \");\n\t\t\tdouble x = Math.pow(Integer.parseInt(dataSet[0]), 2);\n\t\t\tdouble y = Math.pow(Integer.parseInt(dataSet[1]), 2);\n\t\t\tdouble z = Math.pow(Integer.parseInt(dataSet[2]), 2);\n\t\t\t\n\t\t\tif(x+y==z || x+z==y || y+z==x){\n\t\t\t\tanswer.append(\"YES\\n\");\t\n\t\t\t}else{\n\t\t\t\tanswer.append(\"NO\\n\");\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer);\n\t}\t\n}", "public class Main{\n\tpublic static void main(String args[]) throws IOException{\n\t\tInputStreamReader inputStreamReader = new InputStreamReader(System.in);\n\t\tBufferedReader bufferedReader = new BufferedReader(inputStreamReader);\n\t\tint n = Integer.parseInt(bufferedReader.readLine());\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor(int i=0; i<n; i++){\n\t\t\tString[] dataSet = bufferedReader.readLine().split(\" \");\n\t\t\tdouble x = Math.pow(Integer.parseInt(dataSet[0]), 2);\n\t\t\tdouble y = Math.pow(Integer.parseInt(dataSet[1]), 2);\n\t\t\tdouble z = Math.pow(Integer.parseInt(dataSet[2]), 2);\n\t\t\t\n\t\t\tif(x+y==z || x+z==y || y+z==x){\n\t\t\t\tanswer.append(\"YES\\n\");\t\n\t\t\t}else{\n\t\t\t\tanswer.append(\"NO\\n\");\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(answer);\n\t}\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{ InputStreamReader inputStreamReader = new InputStreamReader(System.in); BufferedReader bufferedReader = new BufferedReader(inputStreamReader); int n = Integer.parseInt(bufferedReader.readLine()); StringBuilder answer = new StringBuilder(); for(int i=0; i<n; i++){ String[] dataSet = bufferedReader.readLine().split(" "); double x = Math.pow(Integer.parseInt(dataSet[0]), 2); double y = Math.pow(Integer.parseInt(dataSet[1]), 2); double z = Math.pow(Integer.parseInt(dataSet[2]), 2); if(x+y==z || x+z==y || y+z==x){ answer.append("YES\n"); }else{ answer.append("NO\n"); } } System.out.print(answer); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 41, 13, 20, 11, 1, 2, 17, 13, 1, 40, 13, 30, 30, 0, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 2, 18, 13, 17, 17, 17, 30, 4, 18, 13, 13, 14, 2, 2, 2, 2, 18, 13, 17, 18, 13, 17, 18, 13, 17, 17, 17, 30, 4, 18, 13, 13, 14, 2, 2, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 17, 30, 4, 18, 13, 13, 30, 4, 18, 13, 13, 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 ], [ 161, 14 ], [ 161, 15 ], [ 15, 16 ], [ 15, 17 ], [ 161, 18 ], [ 18, 19 ], [ 18, 20 ], [ 161, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 23, 35 ], [ 35, 36 ], [ 35, 37 ], [ 23, 39 ], [ 39, 40 ], [ 23, 41 ], [ 41, 42 ], [ 41, 43 ], [ 23, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 51 ], [ 44, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 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 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 78, 79 ], [ 53, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 53, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 85, 91 ], [ 84, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 84, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 101, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 101, 108 ], [ 108, 109 ], [ 108, 110 ], [ 99, 111 ], [ 98, 112 ], [ 97, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 97, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 124, 125 ], [ 124, 126 ], [ 121, 127 ], [ 120, 128 ], [ 128, 129 ], [ 129, 130 ], [ 128, 131 ], [ 131, 132 ], [ 131, 133 ], [ 128, 134 ], [ 119, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 138, 139 ], [ 138, 140 ], [ 135, 141 ], [ 118, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 143, 146 ], [ 118, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 23, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 154, 156 ], [ 152, 157 ], [ 21, 158 ], [ 158, 159 ], [ 0, 160 ], [ 160, 161 ], [ 160, 162 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\n\npublic class Main {\n private final static String NEG = \"NO\\n\";\n\n private final static String AFF = \"YES\\n\";\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(\n new InputStreamReader(System.in), 1024);\n int number = Integer.parseInt(br.readLine());\n int sides[] = new int[3];\n StringTokenizer tknz;\n StringBuilder builder = new StringBuilder();\n\n for (; 0 < number; number--) {\n tknz = new StringTokenizer(br.readLine());\n for (int i = 0; i < 3; i++) {\n sides[i] = Integer.parseInt(tknz.nextToken());\n }\n Arrays.sort(sides);\n if (sides[1] % 2 != 0) {\n builder.append(NEG);\n } else if (sides[0] * sides[1] * sides[2] % 60 != 0) {\n builder.append(NEG);\n } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)) {\n builder.append(NEG);\n } else {\n builder.append(AFF);\n }\n }\n System.out.print(builder);\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n private final static String NEG = \"NO\\n\";\n\n private final static String AFF = \"YES\\n\";\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(\n new InputStreamReader(System.in), 1024);\n int number = Integer.parseInt(br.readLine());\n int sides[] = new int[3];\n StringTokenizer tknz;\n StringBuilder builder = new StringBuilder();\n\n for (; 0 < number; number--) {\n tknz = new StringTokenizer(br.readLine());\n for (int i = 0; i < 3; i++) {\n sides[i] = Integer.parseInt(tknz.nextToken());\n }\n Arrays.sort(sides);\n if (sides[1] % 2 != 0) {\n builder.append(NEG);\n } else if (sides[0] * sides[1] * sides[2] % 60 != 0) {\n builder.append(NEG);\n } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)) {\n builder.append(NEG);\n } else {\n builder.append(AFF);\n }\n }\n System.out.print(builder);\n }\n}", "Main", "private final static String NEG = \"NO\\n\";", "NEG", "\"NO\\n\"", "private final static String AFF = \"YES\\n\";", "AFF", "\"YES\\n\"", "public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(\n new InputStreamReader(System.in), 1024);\n int number = Integer.parseInt(br.readLine());\n int sides[] = new int[3];\n StringTokenizer tknz;\n StringBuilder builder = new StringBuilder();\n\n for (; 0 < number; number--) {\n tknz = new StringTokenizer(br.readLine());\n for (int i = 0; i < 3; i++) {\n sides[i] = Integer.parseInt(tknz.nextToken());\n }\n Arrays.sort(sides);\n if (sides[1] % 2 != 0) {\n builder.append(NEG);\n } else if (sides[0] * sides[1] * sides[2] % 60 != 0) {\n builder.append(NEG);\n } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)) {\n builder.append(NEG);\n } else {\n builder.append(AFF);\n }\n }\n System.out.print(builder);\n }", "main", "{\n BufferedReader br = new BufferedReader(\n new InputStreamReader(System.in), 1024);\n int number = Integer.parseInt(br.readLine());\n int sides[] = new int[3];\n StringTokenizer tknz;\n StringBuilder builder = new StringBuilder();\n\n for (; 0 < number; number--) {\n tknz = new StringTokenizer(br.readLine());\n for (int i = 0; i < 3; i++) {\n sides[i] = Integer.parseInt(tknz.nextToken());\n }\n Arrays.sort(sides);\n if (sides[1] % 2 != 0) {\n builder.append(NEG);\n } else if (sides[0] * sides[1] * sides[2] % 60 != 0) {\n builder.append(NEG);\n } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)) {\n builder.append(NEG);\n } else {\n builder.append(AFF);\n }\n }\n System.out.print(builder);\n }", "BufferedReader br = new BufferedReader(\n new InputStreamReader(System.in), 1024);", "br", "new BufferedReader(\n new InputStreamReader(System.in), 1024)", "int number = Integer.parseInt(br.readLine());", "number", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "int sides[] = new int[3];", "sides", "new int[3]", "3", "StringTokenizer tknz;", "tknz", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "for (; 0 < number; number--) {\n tknz = new StringTokenizer(br.readLine());\n for (int i = 0; i < 3; i++) {\n sides[i] = Integer.parseInt(tknz.nextToken());\n }\n Arrays.sort(sides);\n if (sides[1] % 2 != 0) {\n builder.append(NEG);\n } else if (sides[0] * sides[1] * sides[2] % 60 != 0) {\n builder.append(NEG);\n } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)) {\n builder.append(NEG);\n } else {\n builder.append(AFF);\n }\n }", ";", "0 < number", "0", "number", "number--", "number--", "number", "{\n tknz = new StringTokenizer(br.readLine());\n for (int i = 0; i < 3; i++) {\n sides[i] = Integer.parseInt(tknz.nextToken());\n }\n Arrays.sort(sides);\n if (sides[1] % 2 != 0) {\n builder.append(NEG);\n } else if (sides[0] * sides[1] * sides[2] % 60 != 0) {\n builder.append(NEG);\n } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)) {\n builder.append(NEG);\n } else {\n builder.append(AFF);\n }\n }", "{\n tknz = new StringTokenizer(br.readLine());\n for (int i = 0; i < 3; i++) {\n sides[i] = Integer.parseInt(tknz.nextToken());\n }\n Arrays.sort(sides);\n if (sides[1] % 2 != 0) {\n builder.append(NEG);\n } else if (sides[0] * sides[1] * sides[2] % 60 != 0) {\n builder.append(NEG);\n } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)) {\n builder.append(NEG);\n } else {\n builder.append(AFF);\n }\n }", "tknz = new StringTokenizer(br.readLine())", "tknz", "new StringTokenizer(br.readLine())", "for (int i = 0; i < 3; i++) {\n sides[i] = Integer.parseInt(tknz.nextToken());\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n sides[i] = Integer.parseInt(tknz.nextToken());\n }", "{\n sides[i] = Integer.parseInt(tknz.nextToken());\n }", "sides[i] = Integer.parseInt(tknz.nextToken())", "sides[i]", "sides", "i", "Integer.parseInt(tknz.nextToken())", "Integer.parseInt", "Integer", "tknz.nextToken()", "tknz.nextToken", "tknz", "Arrays.sort(sides)", "Arrays.sort", "Arrays", "sides", "if (sides[1] % 2 != 0) {\n builder.append(NEG);\n } else if (sides[0] * sides[1] * sides[2] % 60 != 0) {\n builder.append(NEG);\n } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)) {\n builder.append(NEG);\n } else {\n builder.append(AFF);\n }", "sides[1] % 2 != 0", "sides[1] % 2", "sides[1]", "sides", "1", "2", "0", "{\n builder.append(NEG);\n }", "builder.append(NEG)", "builder.append", "builder", "NEG", "if (sides[0] * sides[1] * sides[2] % 60 != 0) {\n builder.append(NEG);\n } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)) {\n builder.append(NEG);\n } else {\n builder.append(AFF);\n }", "sides[0] * sides[1] * sides[2] % 60 != 0", "sides[0] * sides[1] * sides[2] % 60", "sides[0] * sides[1] * sides[2]", "sides[0] * sides[1] * sides[2]", "sides[0]", "sides", "0", "sides[1]", "sides", "1", "sides[2]", "sides", "2", "60", "0", "{\n builder.append(NEG);\n }", "builder.append(NEG)", "builder.append", "builder", "NEG", "if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)) {\n builder.append(NEG);\n } else {\n builder.append(AFF);\n }", "Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)", "Math.pow(sides[0], 2) + Math.pow(sides[1], 2)", "Math.pow(sides[0], 2)", "Math.pow", "Math", "sides[0]", "sides", "0", "2", "Math.pow(sides[1], 2)", "Math.pow", "Math", "sides[1]", "sides", "1", "2", "Math\n .pow(sides[2], 2)", "Math\n .pow", "Math", "sides[2]", "sides", "2", "2", "{\n builder.append(NEG);\n }", "builder.append(NEG)", "builder.append", "builder", "NEG", "{\n builder.append(AFF);\n }", "builder.append(AFF)", "builder.append", "builder", "AFF", "System.out.print(builder)", "System.out.print", "System.out", "System", "System.out", "builder", "String[] args", "args", "public class Main {\n private final static String NEG = \"NO\\n\";\n\n private final static String AFF = \"YES\\n\";\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(\n new InputStreamReader(System.in), 1024);\n int number = Integer.parseInt(br.readLine());\n int sides[] = new int[3];\n StringTokenizer tknz;\n StringBuilder builder = new StringBuilder();\n\n for (; 0 < number; number--) {\n tknz = new StringTokenizer(br.readLine());\n for (int i = 0; i < 3; i++) {\n sides[i] = Integer.parseInt(tknz.nextToken());\n }\n Arrays.sort(sides);\n if (sides[1] % 2 != 0) {\n builder.append(NEG);\n } else if (sides[0] * sides[1] * sides[2] % 60 != 0) {\n builder.append(NEG);\n } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)) {\n builder.append(NEG);\n } else {\n builder.append(AFF);\n }\n }\n System.out.print(builder);\n }\n}", "public class Main {\n private final static String NEG = \"NO\\n\";\n\n private final static String AFF = \"YES\\n\";\n\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(\n new InputStreamReader(System.in), 1024);\n int number = Integer.parseInt(br.readLine());\n int sides[] = new int[3];\n StringTokenizer tknz;\n StringBuilder builder = new StringBuilder();\n\n for (; 0 < number; number--) {\n tknz = new StringTokenizer(br.readLine());\n for (int i = 0; i < 3; i++) {\n sides[i] = Integer.parseInt(tknz.nextToken());\n }\n Arrays.sort(sides);\n if (sides[1] % 2 != 0) {\n builder.append(NEG);\n } else if (sides[0] * sides[1] * sides[2] % 60 != 0) {\n builder.append(NEG);\n } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math\n .pow(sides[2], 2)) {\n builder.append(NEG);\n } else {\n builder.append(AFF);\n }\n }\n System.out.print(builder);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class Main { private final static String NEG = "NO\n"; private final static String AFF = "YES\n"; public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader( new InputStreamReader(System.in), 1024); int number = Integer.parseInt(br.readLine()); int sides[] = new int[3]; StringTokenizer tknz; StringBuilder builder = new StringBuilder(); for (; 0 < number; number--) { tknz = new StringTokenizer(br.readLine()); for (int i = 0; i < 3; i++) { sides[i] = Integer.parseInt(tknz.nextToken()); } Arrays.sort(sides); if (sides[1] % 2 != 0) { builder.append(NEG); } else if (sides[0] * sides[1] * sides[2] % 60 != 0) { builder.append(NEG); } else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math .pow(sides[2], 2)) { builder.append(NEG); } else { builder.append(AFF); } } System.out.print(builder); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 18, 13, 13, 4, 18, 13, 13, 14, 2, 2, 18, 13, 17, 18, 13, 17, 18, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 29, 12, 13, 30, 4, 18, 20, 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 ], [ 10, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 17, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 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 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 39, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 39, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 72, 80 ], [ 80, 81 ], [ 80, 82 ], [ 71, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 71, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 17, 95 ], [ 10, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 96, 102 ], [ 102, 103 ] ]
[ "\nimport java.util.*;\nimport java.lang.*;\nimport java.math.*;\n\nclass Main {\n\n\tScanner sc = new Scanner(System.in);\n\n\tvoid run() {\n\t\t\n\t\tint[] x = new int[3];\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor (int i=0;i<n;i++) {\n\t\t\t\n\t\t\tfor (int j=0; j<3;j++) {\n\t\t\t\t\n\t\t\t\tx[j] = sc.nextInt();\n\t\t\t\tx[j] *= x[j];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(x);\n\t\t\t\n\t\t\tif ( x[0] + x[1] == x[2] )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn;\n\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.math.*;", "math.*", "java", "class Main {\n\n\tScanner sc = new Scanner(System.in);\n\n\tvoid run() {\n\t\t\n\t\tint[] x = new int[3];\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor (int i=0;i<n;i++) {\n\t\t\t\n\t\t\tfor (int j=0; j<3;j++) {\n\t\t\t\t\n\t\t\t\tx[j] = sc.nextInt();\n\t\t\t\tx[j] *= x[j];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(x);\n\t\t\t\n\t\t\tif ( x[0] + x[1] == x[2] )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn;\n\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "void run() {\n\t\t\n\t\tint[] x = new int[3];\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor (int i=0;i<n;i++) {\n\t\t\t\n\t\t\tfor (int j=0; j<3;j++) {\n\t\t\t\t\n\t\t\t\tx[j] = sc.nextInt();\n\t\t\t\tx[j] *= x[j];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(x);\n\t\t\t\n\t\t\tif ( x[0] + x[1] == x[2] )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn;\n\n\t}", "run", "{\n\t\t\n\t\tint[] x = new int[3];\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor (int i=0;i<n;i++) {\n\t\t\t\n\t\t\tfor (int j=0; j<3;j++) {\n\t\t\t\t\n\t\t\t\tx[j] = sc.nextInt();\n\t\t\t\tx[j] *= x[j];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(x);\n\t\t\t\n\t\t\tif ( x[0] + x[1] == x[2] )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t\treturn;\n\n\t}", "int[] x = new int[3];", "x", "new int[3]", "3", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for (int i=0;i<n;i++) {\n\t\t\t\n\t\t\tfor (int j=0; j<3;j++) {\n\t\t\t\t\n\t\t\t\tx[j] = sc.nextInt();\n\t\t\t\tx[j] *= x[j];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(x);\n\t\t\t\n\t\t\tif ( x[0] + x[1] == x[2] )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\n\t\t\t\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\n\t\t\tfor (int j=0; j<3;j++) {\n\t\t\t\t\n\t\t\t\tx[j] = sc.nextInt();\n\t\t\t\tx[j] *= x[j];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(x);\n\t\t\t\n\t\t\tif ( x[0] + x[1] == x[2] )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\n\t\t\t\n\t\t}", "{\n\t\t\t\n\t\t\tfor (int j=0; j<3;j++) {\n\t\t\t\t\n\t\t\t\tx[j] = sc.nextInt();\n\t\t\t\tx[j] *= x[j];\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(x);\n\t\t\t\n\t\t\tif ( x[0] + x[1] == x[2] )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\n\t\t\t\n\t\t}", "for (int j=0; j<3;j++) {\n\t\t\t\t\n\t\t\t\tx[j] = sc.nextInt();\n\t\t\t\tx[j] *= x[j];\n\t\t\t\t\n\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\t\n\t\t\t\tx[j] = sc.nextInt();\n\t\t\t\tx[j] *= x[j];\n\t\t\t\t\n\t\t\t}", "{\n\t\t\t\t\n\t\t\t\tx[j] = sc.nextInt();\n\t\t\t\tx[j] *= x[j];\n\t\t\t\t\n\t\t\t}", "x[j] = sc.nextInt()", "x[j]", "x", "j", "sc.nextInt()", "sc.nextInt", "sc", "x[j] *= x[j]", "x[j]", "x", "j", "x[j]", "x", "j", "Arrays.sort(x)", "Arrays.sort", "Arrays", "x", "if ( x[0] + x[1] == x[2] )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");", "x[0] + x[1] == x[2]", "x[0] + x[1]", "x[0]", "x", "0", "x[1]", "x", "1", "x[2]", "x", "2", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "return;", "public static void main(String[] args) {\n\t\tnew Main().run();\n\t}", "main", "{\n\t\tnew Main().run();\n\t}", "new Main().run()", "new Main().run", "new Main()", "String[] args", "args" ]
import java.util.*; import java.lang.*; import java.math.*; class Main { Scanner sc = new Scanner(System.in); void run() { int[] x = new int[3]; int n = sc.nextInt(); for (int i=0;i<n;i++) { for (int j=0; j<3;j++) { x[j] = sc.nextInt(); x[j] *= x[j]; } Arrays.sort(x); if ( x[0] + x[1] == x[2] ) System.out.println("YES"); else System.out.println("NO"); } return; } public static void main(String[] args) { new Main().run(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 17, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 13, 14, 2, 2, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 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 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 104, 8 ], [ 104, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 35, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 35, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 35, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 35, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 68, 74 ], [ 67, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 75, 81 ], [ 66, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 65, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 65, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 9, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t\t\tthrows java.io.IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.nextLine();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint [] tri =new int[3];\n\t\t\ttri[0]=scan.nextInt();\n\t\t\ttri[1]=scan.nextInt();\n\t\t\ttri[2]=scan.nextInt();\n\t\t\tArrays.sort(tri);\n\t\t\tif(Math.pow(tri[0],2)+Math.pow(tri[1], 2) == Math.pow(tri[2], 2))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\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)\n\t\t\tthrows java.io.IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.nextLine();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint [] tri =new int[3];\n\t\t\ttri[0]=scan.nextInt();\n\t\t\ttri[1]=scan.nextInt();\n\t\t\ttri[2]=scan.nextInt();\n\t\t\tArrays.sort(tri);\n\t\t\tif(Math.pow(tri[0],2)+Math.pow(tri[1], 2) == Math.pow(tri[2], 2))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t} \n\t}\n}", "Main", "public static void main(String[] args)\n\t\t\tthrows java.io.IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.nextLine();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint [] tri =new int[3];\n\t\t\ttri[0]=scan.nextInt();\n\t\t\ttri[1]=scan.nextInt();\n\t\t\ttri[2]=scan.nextInt();\n\t\t\tArrays.sort(tri);\n\t\t\tif(Math.pow(tri[0],2)+Math.pow(tri[1], 2) == Math.pow(tri[2], 2))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t} \n\t}", "main", "{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.nextLine();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint [] tri =new int[3];\n\t\t\ttri[0]=scan.nextInt();\n\t\t\ttri[1]=scan.nextInt();\n\t\t\ttri[2]=scan.nextInt();\n\t\t\tArrays.sort(tri);\n\t\t\tif(Math.pow(tri[0],2)+Math.pow(tri[1], 2) == Math.pow(tri[2], 2))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t} \n\t}", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int n = scan.nextInt();", "n", "scan.nextInt()", "scan.nextInt", "scan", "scan.nextLine()", "scan.nextLine", "scan", "for(int i=0;i<n;i++){\n\t\t\tint [] tri =new int[3];\n\t\t\ttri[0]=scan.nextInt();\n\t\t\ttri[1]=scan.nextInt();\n\t\t\ttri[2]=scan.nextInt();\n\t\t\tArrays.sort(tri);\n\t\t\tif(Math.pow(tri[0],2)+Math.pow(tri[1], 2) == Math.pow(tri[2], 2))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint [] tri =new int[3];\n\t\t\ttri[0]=scan.nextInt();\n\t\t\ttri[1]=scan.nextInt();\n\t\t\ttri[2]=scan.nextInt();\n\t\t\tArrays.sort(tri);\n\t\t\tif(Math.pow(tri[0],2)+Math.pow(tri[1], 2) == Math.pow(tri[2], 2))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}", "{\n\t\t\tint [] tri =new int[3];\n\t\t\ttri[0]=scan.nextInt();\n\t\t\ttri[1]=scan.nextInt();\n\t\t\ttri[2]=scan.nextInt();\n\t\t\tArrays.sort(tri);\n\t\t\tif(Math.pow(tri[0],2)+Math.pow(tri[1], 2) == Math.pow(tri[2], 2))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}", "int [] tri =new int[3];", "tri", "new int[3]", "3", "tri[0]=scan.nextInt()", "tri[0]", "tri", "0", "scan.nextInt()", "scan.nextInt", "scan", "tri[1]=scan.nextInt()", "tri[1]", "tri", "1", "scan.nextInt()", "scan.nextInt", "scan", "tri[2]=scan.nextInt()", "tri[2]", "tri", "2", "scan.nextInt()", "scan.nextInt", "scan", "Arrays.sort(tri)", "Arrays.sort", "Arrays", "tri", "if(Math.pow(tri[0],2)+Math.pow(tri[1], 2) == Math.pow(tri[2], 2))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");", "Math.pow(tri[0],2)+Math.pow(tri[1], 2) == Math.pow(tri[2], 2)", "Math.pow(tri[0],2)+Math.pow(tri[1], 2)", "Math.pow(tri[0],2)", "Math.pow", "Math", "tri[0]", "tri", "0", "2", "Math.pow(tri[1], 2)", "Math.pow", "Math", "tri[1]", "tri", "1", "2", "Math.pow(tri[2], 2)", "Math.pow", "Math", "tri[2]", "tri", "2", "2", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args)\n\t\t\tthrows java.io.IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.nextLine();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint [] tri =new int[3];\n\t\t\ttri[0]=scan.nextInt();\n\t\t\ttri[1]=scan.nextInt();\n\t\t\ttri[2]=scan.nextInt();\n\t\t\tArrays.sort(tri);\n\t\t\tif(Math.pow(tri[0],2)+Math.pow(tri[1], 2) == Math.pow(tri[2], 2))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t} \n\t}\n}", "public class Main {\n\tpublic static void main(String[] args)\n\t\t\tthrows java.io.IOException{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.nextLine();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint [] tri =new int[3];\n\t\t\ttri[0]=scan.nextInt();\n\t\t\ttri[1]=scan.nextInt();\n\t\t\ttri[2]=scan.nextInt();\n\t\t\tArrays.sort(tri);\n\t\t\tif(Math.pow(tri[0],2)+Math.pow(tri[1], 2) == Math.pow(tri[2], 2))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t} \n\t}\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws java.io.IOException{ Scanner scan = new Scanner(System.in); int n = scan.nextInt(); scan.nextLine(); for(int i=0;i<n;i++){ int [] tri =new int[3]; tri[0]=scan.nextInt(); tri[1]=scan.nextInt(); tri[2]=scan.nextInt(); Arrays.sort(tri); if(Math.pow(tri[0],2)+Math.pow(tri[1], 2) == Math.pow(tri[2], 2)) System.out.println("YES"); else System.out.println("NO"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 17, 41, 13, 41, 13, 20, 17, 0, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 14, 2, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 0, 13, 13, 0, 18, 13, 13, 17, 14, 2, 2, 13, 13, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 13, 2, 17, 17, 4, 18, 13, 2, 17, 17, 4, 18, 13, 2, 4, 18, 13, 17, 4, 18, 13, 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 ], [ 168, 11 ], [ 168, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 35, 36 ], [ 14, 37 ], [ 37, 38 ], [ 37, 39 ], [ 14, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 55, 60 ], [ 52, 61 ], [ 61, 62 ], [ 61, 63 ], [ 52, 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 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 84, 85 ], [ 84, 86 ], [ 76, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 96, 98 ], [ 93, 99 ], [ 99, 100 ], [ 99, 101 ], [ 52, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 52, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 113, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 118, 120 ], [ 113, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 125, 127 ], [ 113, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 132, 134 ], [ 107, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 139, 140 ], [ 139, 141 ], [ 107, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 145, 146 ], [ 145, 147 ], [ 14, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 151, 155 ], [ 148, 156 ], [ 156, 157 ], [ 157, 158 ], [ 14, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 159, 164 ], [ 12, 165 ], [ 165, 166 ], [ 0, 167 ], [ 167, 168 ], [ 167, 169 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\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 n,s=0;\n\t\tString[] str;\n\t\tlong[] hen=new long[3];\n\t\tn=Integer.parseInt(br.readLine());\n\t\tStringBuilder out=new StringBuilder();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tstr=br.readLine().split(\" \");\n\t\t\tlong max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\then[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(max<hen[j]){\tmax=hen[j];\ts=j;}\n\t\t\t}\n\t\t\then[s]=0;\n\t\t\tif(max*max == hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]){\n\t\t\t\tout.append(\"YES\" + \"\\n\");\n\t\t\t}else out.append(\"NO\"+\"\\n\");\n\t\t}\n\t\tout.delete(out.length()-1,out.length());\n\t\tSystem.out.println(out);\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 n,s=0;\n\t\tString[] str;\n\t\tlong[] hen=new long[3];\n\t\tn=Integer.parseInt(br.readLine());\n\t\tStringBuilder out=new StringBuilder();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tstr=br.readLine().split(\" \");\n\t\t\tlong max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\then[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(max<hen[j]){\tmax=hen[j];\ts=j;}\n\t\t\t}\n\t\t\then[s]=0;\n\t\t\tif(max*max == hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]){\n\t\t\t\tout.append(\"YES\" + \"\\n\");\n\t\t\t}else out.append(\"NO\"+\"\\n\");\n\t\t}\n\t\tout.delete(out.length()-1,out.length());\n\t\tSystem.out.println(out);\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 n,s=0;\n\t\tString[] str;\n\t\tlong[] hen=new long[3];\n\t\tn=Integer.parseInt(br.readLine());\n\t\tStringBuilder out=new StringBuilder();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tstr=br.readLine().split(\" \");\n\t\t\tlong max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\then[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(max<hen[j]){\tmax=hen[j];\ts=j;}\n\t\t\t}\n\t\t\then[s]=0;\n\t\t\tif(max*max == hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]){\n\t\t\t\tout.append(\"YES\" + \"\\n\");\n\t\t\t}else out.append(\"NO\"+\"\\n\");\n\t\t}\n\t\tout.delete(out.length()-1,out.length());\n\t\tSystem.out.println(out);\n\t}", "main", "{\n\t\tBufferedReader br=new BufferedReader (new InputStreamReader(System.in));\n\t\tint n,s=0;\n\t\tString[] str;\n\t\tlong[] hen=new long[3];\n\t\tn=Integer.parseInt(br.readLine());\n\t\tStringBuilder out=new StringBuilder();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tstr=br.readLine().split(\" \");\n\t\t\tlong max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\then[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(max<hen[j]){\tmax=hen[j];\ts=j;}\n\t\t\t}\n\t\t\then[s]=0;\n\t\t\tif(max*max == hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]){\n\t\t\t\tout.append(\"YES\" + \"\\n\");\n\t\t\t}else out.append(\"NO\"+\"\\n\");\n\t\t}\n\t\tout.delete(out.length()-1,out.length());\n\t\tSystem.out.println(out);\n\t}", "BufferedReader br=new BufferedReader (new InputStreamReader(System.in));", "br", "new BufferedReader (new InputStreamReader(System.in))", "int n", "n", "s=0;", "s", "0", "String[] str;", "str", "long[] hen=new long[3];", "hen", "new long[3]", "3", "n=Integer.parseInt(br.readLine())", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "StringBuilder out=new StringBuilder();", "out", "new StringBuilder()", "for(int i=0;i<n;i++){\n\t\t\tstr=br.readLine().split(\" \");\n\t\t\tlong max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\then[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(max<hen[j]){\tmax=hen[j];\ts=j;}\n\t\t\t}\n\t\t\then[s]=0;\n\t\t\tif(max*max == hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]){\n\t\t\t\tout.append(\"YES\" + \"\\n\");\n\t\t\t}else out.append(\"NO\"+\"\\n\");\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tstr=br.readLine().split(\" \");\n\t\t\tlong max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\then[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(max<hen[j]){\tmax=hen[j];\ts=j;}\n\t\t\t}\n\t\t\then[s]=0;\n\t\t\tif(max*max == hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]){\n\t\t\t\tout.append(\"YES\" + \"\\n\");\n\t\t\t}else out.append(\"NO\"+\"\\n\");\n\t\t}", "{\n\t\t\tstr=br.readLine().split(\" \");\n\t\t\tlong max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\then[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(max<hen[j]){\tmax=hen[j];\ts=j;}\n\t\t\t}\n\t\t\then[s]=0;\n\t\t\tif(max*max == hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]){\n\t\t\t\tout.append(\"YES\" + \"\\n\");\n\t\t\t}else out.append(\"NO\"+\"\\n\");\n\t\t}", "str=br.readLine().split(\" \")", "str", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "long max=0;", "max", "0", "for(int j=0;j<3;j++){\n\t\t\t\then[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(max<hen[j]){\tmax=hen[j];\ts=j;}\n\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\then[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(max<hen[j]){\tmax=hen[j];\ts=j;}\n\t\t\t}", "{\n\t\t\t\then[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(max<hen[j]){\tmax=hen[j];\ts=j;}\n\t\t\t}", "hen[j]=Integer.parseInt(str[j])", "hen[j]", "hen", "j", "Integer.parseInt(str[j])", "Integer.parseInt", "Integer", "str[j]", "str", "j", "if(max<hen[j]){\tmax=hen[j];\ts=j;}", "max<hen[j]", "max", "hen[j]", "hen", "j", "{\tmax=hen[j];\ts=j;}", "max=hen[j]", "max", "hen[j]", "hen", "j", "s=j", "s", "j", "hen[s]=0", "hen[s]", "hen", "s", "0", "if(max*max == hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]){\n\t\t\t\tout.append(\"YES\" + \"\\n\");\n\t\t\t}else out.append(\"NO\"+\"\\n\");", "max*max == hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]", "max*max", "max", "max", "hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]", "hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]", "hen[0]*hen[0]", "hen[0]", "hen", "0", "hen[0]", "hen", "0", "hen[1]*hen[1]", "hen[1]", "hen", "1", "hen[1]", "hen", "1", "hen[2]*hen[2]", "hen[2]", "hen", "2", "hen[2]", "hen", "2", "{\n\t\t\t\tout.append(\"YES\" + \"\\n\");\n\t\t\t}", "out.append(\"YES\" + \"\\n\")", "out.append", "out", "\"YES\" + \"\\n\"", "\"YES\"", "\"\\n\"", "out.append(\"NO\"+\"\\n\")", "out.append", "out", "\"NO\"+\"\\n\"", "\"NO\"", "\"\\n\"", "out.delete(out.length()-1,out.length())", "out.delete", "out", "out.length()-1", "out.length()", "out.length", "out", "1", "out.length()", "out.length", "out", "System.out.println(out)", "System.out.println", "System.out", "System", "System.out", "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 n,s=0;\n\t\tString[] str;\n\t\tlong[] hen=new long[3];\n\t\tn=Integer.parseInt(br.readLine());\n\t\tStringBuilder out=new StringBuilder();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tstr=br.readLine().split(\" \");\n\t\t\tlong max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\then[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(max<hen[j]){\tmax=hen[j];\ts=j;}\n\t\t\t}\n\t\t\then[s]=0;\n\t\t\tif(max*max == hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]){\n\t\t\t\tout.append(\"YES\" + \"\\n\");\n\t\t\t}else out.append(\"NO\"+\"\\n\");\n\t\t}\n\t\tout.delete(out.length()-1,out.length());\n\t\tSystem.out.println(out);\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 n,s=0;\n\t\tString[] str;\n\t\tlong[] hen=new long[3];\n\t\tn=Integer.parseInt(br.readLine());\n\t\tStringBuilder out=new StringBuilder();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tstr=br.readLine().split(\" \");\n\t\t\tlong max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\then[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(max<hen[j]){\tmax=hen[j];\ts=j;}\n\t\t\t}\n\t\t\then[s]=0;\n\t\t\tif(max*max == hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]){\n\t\t\t\tout.append(\"YES\" + \"\\n\");\n\t\t\t}else out.append(\"NO\"+\"\\n\");\n\t\t}\n\t\tout.delete(out.length()-1,out.length());\n\t\tSystem.out.println(out);\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 n,s=0; String[] str; long[] hen=new long[3]; n=Integer.parseInt(br.readLine()); StringBuilder out=new StringBuilder(); for(int i=0;i<n;i++){ str=br.readLine().split(" "); long max=0; for(int j=0;j<3;j++){ hen[j]=Integer.parseInt(str[j]); if(max<hen[j]){ max=hen[j]; s=j;} } hen[s]=0; if(max*max == hen[0]*hen[0]+hen[1]*hen[1]+hen[2]*hen[2]){ out.append("YES" + "\n"); }else out.append("NO"+"\n"); } out.delete(out.length()-1,out.length()); System.out.println(out); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 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 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 32, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 32, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 82, 84 ], [ 61, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 61, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 11, 99 ], [ 99, 100 ], [ 100, 101 ], [ 9, 102 ], [ 102, 103 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\n\n\nclass Main{\n\n\n public static void main(String[] a){\n\n\n Scanner sc = new Scanner(System.in);\n\n int j = sc.nextInt();\n\n for(int i = 0; i < j; i++){\n\n\n \tint[] d = new int[3];\n\n\n \tfor(int k = 0; k < 3; k++){\n\t \td[k] = sc.nextInt();\n\t }\n\n \tArrays.sort(d);\n\n \tif(d[2] * d[2] == d[0] * d[0] + d[1] * d[1]){\n \t\tSystem.out.println(\"YES\");\n \t}else{\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }\n\n sc.close();\n\n }\n\n\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n\n\n public static void main(String[] a){\n\n\n Scanner sc = new Scanner(System.in);\n\n int j = sc.nextInt();\n\n for(int i = 0; i < j; i++){\n\n\n \tint[] d = new int[3];\n\n\n \tfor(int k = 0; k < 3; k++){\n\t \td[k] = sc.nextInt();\n\t }\n\n \tArrays.sort(d);\n\n \tif(d[2] * d[2] == d[0] * d[0] + d[1] * d[1]){\n \t\tSystem.out.println(\"YES\");\n \t}else{\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }\n\n sc.close();\n\n }\n\n\n}", "Main", "public static void main(String[] a){\n\n\n Scanner sc = new Scanner(System.in);\n\n int j = sc.nextInt();\n\n for(int i = 0; i < j; i++){\n\n\n \tint[] d = new int[3];\n\n\n \tfor(int k = 0; k < 3; k++){\n\t \td[k] = sc.nextInt();\n\t }\n\n \tArrays.sort(d);\n\n \tif(d[2] * d[2] == d[0] * d[0] + d[1] * d[1]){\n \t\tSystem.out.println(\"YES\");\n \t}else{\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }\n\n sc.close();\n\n }", "main", "{\n\n\n Scanner sc = new Scanner(System.in);\n\n int j = sc.nextInt();\n\n for(int i = 0; i < j; i++){\n\n\n \tint[] d = new int[3];\n\n\n \tfor(int k = 0; k < 3; k++){\n\t \td[k] = sc.nextInt();\n\t }\n\n \tArrays.sort(d);\n\n \tif(d[2] * d[2] == d[0] * d[0] + d[1] * d[1]){\n \t\tSystem.out.println(\"YES\");\n \t}else{\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }\n\n sc.close();\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int j = sc.nextInt();", "j", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < j; i++){\n\n\n \tint[] d = new int[3];\n\n\n \tfor(int k = 0; k < 3; k++){\n\t \td[k] = sc.nextInt();\n\t }\n\n \tArrays.sort(d);\n\n \tif(d[2] * d[2] == d[0] * d[0] + d[1] * d[1]){\n \t\tSystem.out.println(\"YES\");\n \t}else{\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }", "int i = 0;", "int i = 0;", "i", "0", "i < j", "i", "j", "i++", "i++", "i", "{\n\n\n \tint[] d = new int[3];\n\n\n \tfor(int k = 0; k < 3; k++){\n\t \td[k] = sc.nextInt();\n\t }\n\n \tArrays.sort(d);\n\n \tif(d[2] * d[2] == d[0] * d[0] + d[1] * d[1]){\n \t\tSystem.out.println(\"YES\");\n \t}else{\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }", "{\n\n\n \tint[] d = new int[3];\n\n\n \tfor(int k = 0; k < 3; k++){\n\t \td[k] = sc.nextInt();\n\t }\n\n \tArrays.sort(d);\n\n \tif(d[2] * d[2] == d[0] * d[0] + d[1] * d[1]){\n \t\tSystem.out.println(\"YES\");\n \t}else{\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }", "int[] d = new int[3];", "d", "new int[3]", "3", "for(int k = 0; k < 3; k++){\n\t \td[k] = sc.nextInt();\n\t }", "int k = 0;", "int k = 0;", "k", "0", "k < 3", "k", "3", "k++", "k++", "k", "{\n\t \td[k] = sc.nextInt();\n\t }", "{\n\t \td[k] = sc.nextInt();\n\t }", "d[k] = sc.nextInt()", "d[k]", "d", "k", "sc.nextInt()", "sc.nextInt", "sc", "Arrays.sort(d)", "Arrays.sort", "Arrays", "d", "if(d[2] * d[2] == d[0] * d[0] + d[1] * d[1]){\n \t\tSystem.out.println(\"YES\");\n \t}else{\n \t\tSystem.out.println(\"NO\");\n \t}", "d[2] * d[2] == d[0] * d[0] + d[1] * d[1]", "d[2] * d[2]", "d[2]", "d", "2", "d[2]", "d", "2", "d[0] * d[0] + d[1] * d[1]", "d[0] * d[0]", "d[0]", "d", "0", "d[0]", "d", "0", "d[1] * d[1]", "d[1]", "d", "1", "d[1]", "d", "1", "{\n \t\tSystem.out.println(\"YES\");\n \t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n \t\tSystem.out.println(\"NO\");\n \t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "sc.close()", "sc.close", "sc", "String[] a", "a" ]
import java.util.Arrays; import java.util.Scanner; class Main{ public static void main(String[] a){ Scanner sc = new Scanner(System.in); int j = sc.nextInt(); for(int i = 0; i < j; i++){ int[] d = new int[3]; for(int k = 0; k < 3; k++){ d[k] = sc.nextInt(); } Arrays.sort(d); if(d[2] * d[2] == d[0] * d[0] + d[1] * d[1]){ System.out.println("YES"); }else{ System.out.println("NO"); } } sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 20, 13, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 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, 0, 13, 4, 18, 13, 18, 13, 17, 0, 18, 13, 13, 4, 13, 13, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 18, 13, 13, 23, 13, 12, 13, 30, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 29, 17, 30, 29, 17, 14, 2, 2, 2, 13, 13, 17, 2, 2, 13, 13, 17, 30, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 29, 17, 30, 29, 17, 30, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 29, 17, 30, 29, 17, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 200, 5 ], [ 200, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 8, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 47, 52 ], [ 44, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 58, 60 ], [ 44, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 66, 68 ], [ 44, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 44, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 81, 82 ], [ 81, 83 ], [ 81, 84 ], [ 81, 85 ], [ 8, 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 ], [ 99, 104 ], [ 104, 105 ], [ 104, 106 ], [ 6, 107 ], [ 107, 108 ], [ 200, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 113, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 112, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 134, 136 ], [ 125, 137 ], [ 137, 138 ], [ 138, 139 ], [ 125, 140 ], [ 140, 141 ], [ 141, 142 ], [ 112, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 144, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 143, 155 ], [ 155, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 165, 166 ], [ 165, 167 ], [ 156, 168 ], [ 168, 169 ], [ 169, 170 ], [ 156, 171 ], [ 171, 172 ], [ 172, 173 ], [ 143, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 177, 178 ], [ 177, 179 ], [ 176, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 184, 185 ], [ 184, 186 ], [ 175, 187 ], [ 187, 188 ], [ 188, 189 ], [ 175, 190 ], [ 190, 191 ], [ 191, 192 ], [ 109, 193 ], [ 193, 194 ], [ 109, 195 ], [ 195, 196 ], [ 109, 197 ], [ 197, 198 ], [ 0, 199 ], [ 199, 200 ], [ 199, 201 ] ]
[ "import java.io.*;\n\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t int N = Integer.parseInt(buf.readLine());\n\t String[] list;\n\t String[] check = new String[N];\n\t int i,j,l;\n\t for(int k=0; k<N; k++){\n\t list = buf.readLine().split(\" \");\n\t i = Integer.parseInt(list[0]);\n\t j = Integer.parseInt(list[1]);\n\t l = Integer.parseInt(list[2]);\n\t check[k] = Check(i,j,l);\n\t }\n\t for(int k = 0; k<N; k++){\n\t \tSystem.out.println(check[k]);\n\t }\n\t \n\t}\n\t\n\tpublic static String Check(int a,int b,int c){\n\t\tif(a-b >0 && a-c>0){\n\t\t\tif(a*a == b*b + c*c){\n\t\t\t\treturn\"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else if(b-a >0 && b-c>0){\n\t\t\tif(b*b == a*a + c*c){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else{\n\t\t\tif(c*c == b*b + a*a){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}\n\t}\n\t\t\n}", "import java.io.*;", "io.*", "java", "public class Main {\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t int N = Integer.parseInt(buf.readLine());\n\t String[] list;\n\t String[] check = new String[N];\n\t int i,j,l;\n\t for(int k=0; k<N; k++){\n\t list = buf.readLine().split(\" \");\n\t i = Integer.parseInt(list[0]);\n\t j = Integer.parseInt(list[1]);\n\t l = Integer.parseInt(list[2]);\n\t check[k] = Check(i,j,l);\n\t }\n\t for(int k = 0; k<N; k++){\n\t \tSystem.out.println(check[k]);\n\t }\n\t \n\t}\n\t\n\tpublic static String Check(int a,int b,int c){\n\t\tif(a-b >0 && a-c>0){\n\t\t\tif(a*a == b*b + c*c){\n\t\t\t\treturn\"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else if(b-a >0 && b-c>0){\n\t\t\tif(b*b == a*a + c*c){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else{\n\t\t\tif(c*c == b*b + a*a){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}\n\t}\n\t\t\n}", "Main", "public static void main(String[] args) throws IOException\n\t{\n\t BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t int N = Integer.parseInt(buf.readLine());\n\t String[] list;\n\t String[] check = new String[N];\n\t int i,j,l;\n\t for(int k=0; k<N; k++){\n\t list = buf.readLine().split(\" \");\n\t i = Integer.parseInt(list[0]);\n\t j = Integer.parseInt(list[1]);\n\t l = Integer.parseInt(list[2]);\n\t check[k] = Check(i,j,l);\n\t }\n\t for(int k = 0; k<N; k++){\n\t \tSystem.out.println(check[k]);\n\t }\n\t \n\t}", "main", "{\n\t BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t int N = Integer.parseInt(buf.readLine());\n\t String[] list;\n\t String[] check = new String[N];\n\t int i,j,l;\n\t for(int k=0; k<N; k++){\n\t list = buf.readLine().split(\" \");\n\t i = Integer.parseInt(list[0]);\n\t j = Integer.parseInt(list[1]);\n\t l = Integer.parseInt(list[2]);\n\t check[k] = Check(i,j,l);\n\t }\n\t for(int k = 0; k<N; k++){\n\t \tSystem.out.println(check[k]);\n\t }\n\t \n\t}", "BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));", "buf", "new BufferedReader(new InputStreamReader(System.in))", "int N = Integer.parseInt(buf.readLine());", "N", "Integer.parseInt(buf.readLine())", "Integer.parseInt", "Integer", "buf.readLine()", "buf.readLine", "buf", "String[] list;", "list", "String[] check = new String[N];", "check", "new String[N]", "N", "int i", "i", "j", "j", "l;", "l", "for(int k=0; k<N; k++){\n\t list = buf.readLine().split(\" \");\n\t i = Integer.parseInt(list[0]);\n\t j = Integer.parseInt(list[1]);\n\t l = Integer.parseInt(list[2]);\n\t check[k] = Check(i,j,l);\n\t }", "int k=0;", "int k=0;", "k", "0", "k<N", "k", "N", "k++", "k++", "k", "{\n\t list = buf.readLine().split(\" \");\n\t i = Integer.parseInt(list[0]);\n\t j = Integer.parseInt(list[1]);\n\t l = Integer.parseInt(list[2]);\n\t check[k] = Check(i,j,l);\n\t }", "{\n\t list = buf.readLine().split(\" \");\n\t i = Integer.parseInt(list[0]);\n\t j = Integer.parseInt(list[1]);\n\t l = Integer.parseInt(list[2]);\n\t check[k] = Check(i,j,l);\n\t }", "list = buf.readLine().split(\" \")", "list", "buf.readLine().split(\" \")", "buf.readLine().split", "buf.readLine()", "buf.readLine", "buf", "\" \"", "i = Integer.parseInt(list[0])", "i", "Integer.parseInt(list[0])", "Integer.parseInt", "Integer", "list[0]", "list", "0", "j = Integer.parseInt(list[1])", "j", "Integer.parseInt(list[1])", "Integer.parseInt", "Integer", "list[1]", "list", "1", "l = Integer.parseInt(list[2])", "l", "Integer.parseInt(list[2])", "Integer.parseInt", "Integer", "list[2]", "list", "2", "check[k] = Check(i,j,l)", "check[k]", "check", "k", "Check(i,j,l)", "Check", "i", "j", "l", "for(int k = 0; k<N; k++){\n\t \tSystem.out.println(check[k]);\n\t }", "int k = 0;", "int k = 0;", "k", "0", "k<N", "k", "N", "k++", "k++", "k", "{\n\t \tSystem.out.println(check[k]);\n\t }", "{\n\t \tSystem.out.println(check[k]);\n\t }", "System.out.println(check[k])", "System.out.println", "System.out", "System", "System.out", "check[k]", "check", "k", "String[] args", "args", "public static String Check(int a,int b,int c){\n\t\tif(a-b >0 && a-c>0){\n\t\t\tif(a*a == b*b + c*c){\n\t\t\t\treturn\"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else if(b-a >0 && b-c>0){\n\t\t\tif(b*b == a*a + c*c){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else{\n\t\t\tif(c*c == b*b + a*a){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}\n\t}", "Check", "{\n\t\tif(a-b >0 && a-c>0){\n\t\t\tif(a*a == b*b + c*c){\n\t\t\t\treturn\"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else if(b-a >0 && b-c>0){\n\t\t\tif(b*b == a*a + c*c){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else{\n\t\t\tif(c*c == b*b + a*a){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}\n\t}", "if(a-b >0 && a-c>0){\n\t\t\tif(a*a == b*b + c*c){\n\t\t\t\treturn\"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else if(b-a >0 && b-c>0){\n\t\t\tif(b*b == a*a + c*c){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else{\n\t\t\tif(c*c == b*b + a*a){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}", "a-b >0 && a-c>0", "a-b >0", "a-b", "a", "b", "0", "a-c>0", "a-c", "a", "c", "0", "{\n\t\t\tif(a*a == b*b + c*c){\n\t\t\t\treturn\"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}", "if(a*a == b*b + c*c){\n\t\t\t\treturn\"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}", "a*a == b*b + c*c", "a*a", "a", "a", "b*b + c*c", "b*b", "b", "b", "c*c", "c", "c", "{\n\t\t\t\treturn\"YES\";\n\t\t\t}", "return\"YES\";", "\"YES\"", "{\n\t\t\t\treturn \"NO\";\n\t\t\t}", "return \"NO\";", "\"NO\"", "if(b-a >0 && b-c>0){\n\t\t\tif(b*b == a*a + c*c){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else{\n\t\t\tif(c*c == b*b + a*a){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}", "b-a >0 && b-c>0", "b-a >0", "b-a", "b", "a", "0", "b-c>0", "b-c", "b", "c", "0", "{\n\t\t\tif(b*b == a*a + c*c){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}", "if(b*b == a*a + c*c){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}", "b*b == a*a + c*c", "b*b", "b", "b", "a*a + c*c", "a*a", "a", "a", "c*c", "c", "c", "{\n\t\t\t\treturn \"YES\";\n\t\t\t}", "return \"YES\";", "\"YES\"", "{\n\t\t\t\treturn \"NO\";\n\t\t\t}", "return \"NO\";", "\"NO\"", "{\n\t\t\tif(c*c == b*b + a*a){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}", "if(c*c == b*b + a*a){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}", "c*c == b*b + a*a", "c*c", "c", "c", "b*b + a*a", "b*b", "b", "b", "a*a", "a", "a", "{\n\t\t\t\treturn \"YES\";\n\t\t\t}", "return \"YES\";", "\"YES\"", "{\n\t\t\t\treturn \"NO\";\n\t\t\t}", "return \"NO\";", "\"NO\"", "int a", "a", "int b", "b", "int c", "c", "public class Main {\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t int N = Integer.parseInt(buf.readLine());\n\t String[] list;\n\t String[] check = new String[N];\n\t int i,j,l;\n\t for(int k=0; k<N; k++){\n\t list = buf.readLine().split(\" \");\n\t i = Integer.parseInt(list[0]);\n\t j = Integer.parseInt(list[1]);\n\t l = Integer.parseInt(list[2]);\n\t check[k] = Check(i,j,l);\n\t }\n\t for(int k = 0; k<N; k++){\n\t \tSystem.out.println(check[k]);\n\t }\n\t \n\t}\n\t\n\tpublic static String Check(int a,int b,int c){\n\t\tif(a-b >0 && a-c>0){\n\t\t\tif(a*a == b*b + c*c){\n\t\t\t\treturn\"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else if(b-a >0 && b-c>0){\n\t\t\tif(b*b == a*a + c*c){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else{\n\t\t\tif(c*c == b*b + a*a){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}\n\t}\n\t\t\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException\n\t{\n\t BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n\t int N = Integer.parseInt(buf.readLine());\n\t String[] list;\n\t String[] check = new String[N];\n\t int i,j,l;\n\t for(int k=0; k<N; k++){\n\t list = buf.readLine().split(\" \");\n\t i = Integer.parseInt(list[0]);\n\t j = Integer.parseInt(list[1]);\n\t l = Integer.parseInt(list[2]);\n\t check[k] = Check(i,j,l);\n\t }\n\t for(int k = 0; k<N; k++){\n\t \tSystem.out.println(check[k]);\n\t }\n\t \n\t}\n\t\n\tpublic static String Check(int a,int b,int c){\n\t\tif(a-b >0 && a-c>0){\n\t\t\tif(a*a == b*b + c*c){\n\t\t\t\treturn\"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else if(b-a >0 && b-c>0){\n\t\t\tif(b*b == a*a + c*c){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}else{\n\t\t\tif(c*c == b*b + a*a){\n\t\t\t\treturn \"YES\";\n\t\t\t}else{\n\t\t\t\treturn \"NO\";\n\t\t\t}\n\t\t}\n\t}\n\t\t\n}", "Main" ]
import java.io.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader buf = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(buf.readLine()); String[] list; String[] check = new String[N]; int i,j,l; for(int k=0; k<N; k++){ list = buf.readLine().split(" "); i = Integer.parseInt(list[0]); j = Integer.parseInt(list[1]); l = Integer.parseInt(list[2]); check[k] = Check(i,j,l); } for(int k = 0; k<N; k++){ System.out.println(check[k]); } } public static String Check(int a,int b,int c){ if(a-b >0 && a-c>0){ if(a*a == b*b + c*c){ return"YES"; }else{ return "NO"; } }else if(b-a >0 && b-c>0){ if(b*b == a*a + c*c){ return "YES"; }else{ return "NO"; } }else{ if(c*c == b*b + a*a){ return "YES"; }else{ return "NO"; } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 13, 20, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 39, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 8, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 17, 17, 4, 18, 13, 13, 23, 13, 23, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 15, 18 ], [ 15, 19 ], [ 19, 20 ], [ 19, 21 ], [ 12, 22 ], [ 22, 23 ], [ 10, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 26, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 47, 54 ], [ 54, 55 ], [ 55, 56 ], [ 44, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 44, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 64, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 63, 87 ], [ 63, 88 ], [ 44, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 24, 93 ], [ 93, 94 ], [ 24, 95 ], [ 95, 96 ], [ 24, 97 ], [ 97, 98 ] ]
[ "import java.io.PrintStream;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\nclass Main {\n\n public static void main(String[] args) {\n doit(args, new Scanner(System.in), System.out);\n }\n\n static void doit(String[] args, Scanner scanner, PrintStream out) {\n int n = scanner.nextInt();\n for (int i = 0; i < n; i++) {\n int[] lengths = { scanner.nextInt(), scanner.nextInt(),\n scanner.nextInt() };\n Arrays.sort(lengths);\n String result = lengths[0] * lengths[0] + lengths[1] * lengths[1] == lengths[2]\n * lengths[2] ? \"YES\" : \"NO\";\n out.println(result);\n }\n }\n}", "import java.io.PrintStream;", "PrintStream", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\n public static void main(String[] args) {\n doit(args, new Scanner(System.in), System.out);\n }\n\n static void doit(String[] args, Scanner scanner, PrintStream out) {\n int n = scanner.nextInt();\n for (int i = 0; i < n; i++) {\n int[] lengths = { scanner.nextInt(), scanner.nextInt(),\n scanner.nextInt() };\n Arrays.sort(lengths);\n String result = lengths[0] * lengths[0] + lengths[1] * lengths[1] == lengths[2]\n * lengths[2] ? \"YES\" : \"NO\";\n out.println(result);\n }\n }\n}", "Main", "public static void main(String[] args) {\n doit(args, new Scanner(System.in), System.out);\n }", "main", "{\n doit(args, new Scanner(System.in), System.out);\n }", "doit(args, new Scanner(System.in), System.out)", "doit", "args", "new Scanner(System.in)", "System.out", "System", "System.out", "String[] args", "args", "static void doit(String[] args, Scanner scanner, PrintStream out) {\n int n = scanner.nextInt();\n for (int i = 0; i < n; i++) {\n int[] lengths = { scanner.nextInt(), scanner.nextInt(),\n scanner.nextInt() };\n Arrays.sort(lengths);\n String result = lengths[0] * lengths[0] + lengths[1] * lengths[1] == lengths[2]\n * lengths[2] ? \"YES\" : \"NO\";\n out.println(result);\n }\n }", "doit", "{\n int n = scanner.nextInt();\n for (int i = 0; i < n; i++) {\n int[] lengths = { scanner.nextInt(), scanner.nextInt(),\n scanner.nextInt() };\n Arrays.sort(lengths);\n String result = lengths[0] * lengths[0] + lengths[1] * lengths[1] == lengths[2]\n * lengths[2] ? \"YES\" : \"NO\";\n out.println(result);\n }\n }", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "for (int i = 0; i < n; i++) {\n int[] lengths = { scanner.nextInt(), scanner.nextInt(),\n scanner.nextInt() };\n Arrays.sort(lengths);\n String result = lengths[0] * lengths[0] + lengths[1] * lengths[1] == lengths[2]\n * lengths[2] ? \"YES\" : \"NO\";\n out.println(result);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int[] lengths = { scanner.nextInt(), scanner.nextInt(),\n scanner.nextInt() };\n Arrays.sort(lengths);\n String result = lengths[0] * lengths[0] + lengths[1] * lengths[1] == lengths[2]\n * lengths[2] ? \"YES\" : \"NO\";\n out.println(result);\n }", "{\n int[] lengths = { scanner.nextInt(), scanner.nextInt(),\n scanner.nextInt() };\n Arrays.sort(lengths);\n String result = lengths[0] * lengths[0] + lengths[1] * lengths[1] == lengths[2]\n * lengths[2] ? \"YES\" : \"NO\";\n out.println(result);\n }", "int[] lengths = { scanner.nextInt(), scanner.nextInt(),\n scanner.nextInt() };", "lengths", "{ scanner.nextInt(), scanner.nextInt(),\n scanner.nextInt() }", "scanner.nextInt()", "scanner.nextInt", "scanner", "scanner.nextInt()", "scanner.nextInt", "scanner", "scanner.nextInt()", "scanner.nextInt", "scanner", "Arrays.sort(lengths)", "Arrays.sort", "Arrays", "lengths", "String result = lengths[0] * lengths[0] + lengths[1] * lengths[1] == lengths[2]\n * lengths[2] ? \"YES\" : \"NO\";", "result", "lengths[0] * lengths[0] + lengths[1] * lengths[1] == lengths[2]\n * lengths[2] ? \"YES\" : \"NO\"", "lengths[0] * lengths[0] + lengths[1] * lengths[1] == lengths[2]\n * lengths[2]", "lengths[0] * lengths[0] + lengths[1] * lengths[1]", "lengths[0] * lengths[0]", "lengths[0]", "lengths", "0", "lengths[0]", "lengths", "0", "lengths[1] * lengths[1]", "lengths[1]", "lengths", "1", "lengths[1]", "lengths", "1", "lengths[2]\n * lengths[2]", "lengths[2]", "lengths", "2", "lengths[2]", "lengths", "2", "\"YES\"", "\"NO\"", "out.println(result)", "out.println", "out", "result", "String[] args", "args", "Scanner scanner", "scanner", "PrintStream out", "out" ]
import java.io.PrintStream; import java.util.Arrays; import java.util.Scanner; class Main { public static void main(String[] args) { doit(args, new Scanner(System.in), System.out); } static void doit(String[] args, Scanner scanner, PrintStream out) { int n = scanner.nextInt(); for (int i = 0; i < n; i++) { int[] lengths = { scanner.nextInt(), scanner.nextInt(), scanner.nextInt() }; Arrays.sort(lengths); String result = lengths[0] * lengths[0] + lengths[1] * lengths[1] == lengths[2] * lengths[2] ? "YES" : "NO"; out.println(result); } } }
[ 7, 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, 41, 13, 0, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 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, 0, 13, 4, 18, 13, 18, 13, 17, 0, 18, 13, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 14, 2, 2, 2, 13, 2, 13, 13, 2, 13, 2, 13, 13, 2, 13, 2, 13, 13, 30, 29, 17, 30, 29, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 220, 11 ], [ 220, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 14, 22 ], [ 22, 23 ], [ 14, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 33, 34 ], [ 34, 35 ], [ 14, 36 ], [ 36, 37 ], [ 36, 38 ], [ 14, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 55, 60 ], [ 52, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 66, 68 ], [ 52, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 52, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 52, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 14, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 90, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 97, 99 ], [ 90, 100 ], [ 100, 101 ], [ 101, 102 ], [ 90, 103 ], [ 104, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 105, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 112, 117 ], [ 105, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 12, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 127, 131 ], [ 131, 132 ], [ 127, 133 ], [ 133, 134 ], [ 127, 135 ], [ 135, 136 ], [ 127, 137 ], [ 137, 138 ], [ 127, 139 ], [ 139, 140 ], [ 127, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 143, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 143, 154 ], [ 154, 155 ], [ 155, 156 ], [ 155, 157 ], [ 154, 158 ], [ 141, 159 ], [ 159, 160 ], [ 141, 161 ], [ 161, 162 ], [ 141, 163 ], [ 163, 164 ], [ 127, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 170, 171 ], [ 167, 172 ], [ 172, 173 ], [ 167, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 176, 179 ], [ 176, 180 ], [ 167, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 183, 186 ], [ 183, 187 ], [ 167, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 191, 192 ], [ 190, 193 ], [ 190, 194 ], [ 167, 195 ], [ 195, 196 ], [ 197, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 200, 201 ], [ 200, 202 ], [ 197, 203 ], [ 203, 204 ], [ 203, 205 ], [ 205, 206 ], [ 205, 207 ], [ 197, 208 ], [ 208, 209 ], [ 208, 210 ], [ 210, 211 ], [ 210, 212 ], [ 195, 213 ], [ 213, 214 ], [ 214, 215 ], [ 195, 216 ], [ 216, 217 ], [ 217, 218 ], [ 0, 219 ], [ 219, 220 ], [ 219, 221 ] ]
[ "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 in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strTemp;\n\t\tint numberOfTriangle, data1, data2, data3;\n\t\t/*\n\t\t * Count total of Triangles\n\t\t */\n\t\tnumberOfTriangle = Integer.parseInt(in.readLine());\n\t\tTriangle[] triangles = new Triangle[numberOfTriangle];\n\n\t\t/*\n\t\t * Create all of Triangles\n\t\t */\n\t\tfor (int i = 0; i < numberOfTriangle; i++) {\n\t\t\tstrTemp = in.readLine().split(\" \");\n\t\t\tdata1 = Integer.parseInt(strTemp[0]);\n\t\t\tdata2 = Integer.parseInt(strTemp[1]);\n\t\t\tdata3 = Integer.parseInt(strTemp[2]);\n\t\t\ttriangles[i] = new Triangle(data1, data2, data3);\n\t\t}\n\n\t\tfor (int j = 0; j < triangles.length; j++) {\n\t\t\tif (triangles[j].check()) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}\n\nclass Triangle {\n\tprivate int id, data1, data2, data3, count;\n\tprivate Triangle[] triangles;\n\n\t/*\n\t * instance\n\t */\n\tpublic Triangle(int data1, int data2, int data3) {\n\t\tthis.data1 = data1;\n\t\tthis.data2 = data2;\n\t\tthis.data3 = data3;\n\t}\n\n\tpublic boolean check() {\n\t\tint temp1, temp2, temp3;\n\t\ttemp1 = (int) Math.pow(data1, 2);\n\t\ttemp2 = (int) Math.pow(data2, 2);\n\t\ttemp3 = (int) Math.pow(data3, 2);\n\t\tif (temp1 == temp2 + temp3 || temp2 == temp1 + temp3\n\t\t\t\t|| temp3 == temp1 + temp2) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\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 in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strTemp;\n\t\tint numberOfTriangle, data1, data2, data3;\n\t\t/*\n\t\t * Count total of Triangles\n\t\t */\n\t\tnumberOfTriangle = Integer.parseInt(in.readLine());\n\t\tTriangle[] triangles = new Triangle[numberOfTriangle];\n\n\t\t/*\n\t\t * Create all of Triangles\n\t\t */\n\t\tfor (int i = 0; i < numberOfTriangle; i++) {\n\t\t\tstrTemp = in.readLine().split(\" \");\n\t\t\tdata1 = Integer.parseInt(strTemp[0]);\n\t\t\tdata2 = Integer.parseInt(strTemp[1]);\n\t\t\tdata3 = Integer.parseInt(strTemp[2]);\n\t\t\ttriangles[i] = new Triangle(data1, data2, data3);\n\t\t}\n\n\t\tfor (int j = 0; j < triangles.length; j++) {\n\t\t\tif (triangles[j].check()) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strTemp;\n\t\tint numberOfTriangle, data1, data2, data3;\n\t\t/*\n\t\t * Count total of Triangles\n\t\t */\n\t\tnumberOfTriangle = Integer.parseInt(in.readLine());\n\t\tTriangle[] triangles = new Triangle[numberOfTriangle];\n\n\t\t/*\n\t\t * Create all of Triangles\n\t\t */\n\t\tfor (int i = 0; i < numberOfTriangle; i++) {\n\t\t\tstrTemp = in.readLine().split(\" \");\n\t\t\tdata1 = Integer.parseInt(strTemp[0]);\n\t\t\tdata2 = Integer.parseInt(strTemp[1]);\n\t\t\tdata3 = Integer.parseInt(strTemp[2]);\n\t\t\ttriangles[i] = new Triangle(data1, data2, data3);\n\t\t}\n\n\t\tfor (int j = 0; j < triangles.length; j++) {\n\t\t\tif (triangles[j].check()) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strTemp;\n\t\tint numberOfTriangle, data1, data2, data3;\n\t\t/*\n\t\t * Count total of Triangles\n\t\t */\n\t\tnumberOfTriangle = Integer.parseInt(in.readLine());\n\t\tTriangle[] triangles = new Triangle[numberOfTriangle];\n\n\t\t/*\n\t\t * Create all of Triangles\n\t\t */\n\t\tfor (int i = 0; i < numberOfTriangle; i++) {\n\t\t\tstrTemp = in.readLine().split(\" \");\n\t\t\tdata1 = Integer.parseInt(strTemp[0]);\n\t\t\tdata2 = Integer.parseInt(strTemp[1]);\n\t\t\tdata3 = Integer.parseInt(strTemp[2]);\n\t\t\ttriangles[i] = new Triangle(data1, data2, data3);\n\t\t}\n\n\t\tfor (int j = 0; j < triangles.length; j++) {\n\t\t\tif (triangles[j].check()) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "BufferedReader in = new BufferedReader(new InputStreamReader(System.in));", "in", "new BufferedReader(new InputStreamReader(System.in))", "String[] strTemp;", "strTemp", "int numberOfTriangle", "numberOfTriangle", "data1", "data1", "data2", "data2", "data3;", "data3", "numberOfTriangle = Integer.parseInt(in.readLine())", "numberOfTriangle", "Integer.parseInt(in.readLine())", "Integer.parseInt", "Integer", "in.readLine()", "in.readLine", "in", "Triangle[] triangles = new Triangle[numberOfTriangle];", "triangles", "new Triangle[numberOfTriangle]", "numberOfTriangle", "for (int i = 0; i < numberOfTriangle; i++) {\n\t\t\tstrTemp = in.readLine().split(\" \");\n\t\t\tdata1 = Integer.parseInt(strTemp[0]);\n\t\t\tdata2 = Integer.parseInt(strTemp[1]);\n\t\t\tdata3 = Integer.parseInt(strTemp[2]);\n\t\t\ttriangles[i] = new Triangle(data1, data2, data3);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < numberOfTriangle", "i", "numberOfTriangle", "i++", "i++", "i", "{\n\t\t\tstrTemp = in.readLine().split(\" \");\n\t\t\tdata1 = Integer.parseInt(strTemp[0]);\n\t\t\tdata2 = Integer.parseInt(strTemp[1]);\n\t\t\tdata3 = Integer.parseInt(strTemp[2]);\n\t\t\ttriangles[i] = new Triangle(data1, data2, data3);\n\t\t}", "{\n\t\t\tstrTemp = in.readLine().split(\" \");\n\t\t\tdata1 = Integer.parseInt(strTemp[0]);\n\t\t\tdata2 = Integer.parseInt(strTemp[1]);\n\t\t\tdata3 = Integer.parseInt(strTemp[2]);\n\t\t\ttriangles[i] = new Triangle(data1, data2, data3);\n\t\t}", "strTemp = in.readLine().split(\" \")", "strTemp", "in.readLine().split(\" \")", "in.readLine().split", "in.readLine()", "in.readLine", "in", "\" \"", "data1 = Integer.parseInt(strTemp[0])", "data1", "Integer.parseInt(strTemp[0])", "Integer.parseInt", "Integer", "strTemp[0]", "strTemp", "0", "data2 = Integer.parseInt(strTemp[1])", "data2", "Integer.parseInt(strTemp[1])", "Integer.parseInt", "Integer", "strTemp[1]", "strTemp", "1", "data3 = Integer.parseInt(strTemp[2])", "data3", "Integer.parseInt(strTemp[2])", "Integer.parseInt", "Integer", "strTemp[2]", "strTemp", "2", "triangles[i] = new Triangle(data1, data2, data3)", "triangles[i]", "triangles", "i", "new Triangle(data1, data2, data3)", "for (int j = 0; j < triangles.length; j++) {\n\t\t\tif (triangles[j].check()) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < triangles.length", "j", "triangles.length", "triangles", "triangles.length", "j++", "j++", "j", "{\n\t\t\tif (triangles[j].check()) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tif (triangles[j].check()) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "if (triangles[j].check()) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "triangles[j].check()", "triangles[j].check", "triangles[j]", "triangles", "j", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "class Triangle {\n\tprivate int id, data1, data2, data3, count;\n\tprivate Triangle[] triangles;\n\n\t/*\n\t * instance\n\t */\n\tpublic Triangle(int data1, int data2, int data3) {\n\t\tthis.data1 = data1;\n\t\tthis.data2 = data2;\n\t\tthis.data3 = data3;\n\t}\n\n\tpublic boolean check() {\n\t\tint temp1, temp2, temp3;\n\t\ttemp1 = (int) Math.pow(data1, 2);\n\t\ttemp2 = (int) Math.pow(data2, 2);\n\t\ttemp3 = (int) Math.pow(data3, 2);\n\t\tif (temp1 == temp2 + temp3 || temp2 == temp1 + temp3\n\t\t\t\t|| temp3 == temp1 + temp2) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}\n}", "Triangle", "private int id", "id", "data1", "data1", "data2", "data2", "data3", "data3", "count;", "count", "private Triangle[] triangles;", "triangles", "/*\n\t * instance\n\t */\n\tpublic Triangle(int data1, int data2, int data3) {\n\t\tthis.data1 = data1;\n\t\tthis.data2 = data2;\n\t\tthis.data3 = data3;\n\t}", "Triangle", "{\n\t\tthis.data1 = data1;\n\t\tthis.data2 = data2;\n\t\tthis.data3 = data3;\n\t}", "this.data1 = data1", "this.data1", "this", "this.data1", "data1", "this.data2 = data2", "this.data2", "this", "this.data2", "data2", "this.data3 = data3", "this.data3", "this", "this.data3", "data3", "int data1", "data1", "int data2", "data2", "int data3", "data3", "public boolean check() {\n\t\tint temp1, temp2, temp3;\n\t\ttemp1 = (int) Math.pow(data1, 2);\n\t\ttemp2 = (int) Math.pow(data2, 2);\n\t\ttemp3 = (int) Math.pow(data3, 2);\n\t\tif (temp1 == temp2 + temp3 || temp2 == temp1 + temp3\n\t\t\t\t|| temp3 == temp1 + temp2) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "check", "{\n\t\tint temp1, temp2, temp3;\n\t\ttemp1 = (int) Math.pow(data1, 2);\n\t\ttemp2 = (int) Math.pow(data2, 2);\n\t\ttemp3 = (int) Math.pow(data3, 2);\n\t\tif (temp1 == temp2 + temp3 || temp2 == temp1 + temp3\n\t\t\t\t|| temp3 == temp1 + temp2) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}\n\t}", "int temp1", "temp1", "temp2", "temp2", "temp3;", "temp3", "temp1 = (int) Math.pow(data1, 2)", "temp1", "(int) Math.pow(data1, 2)", "Math.pow", "Math", "data1", "2", "temp2 = (int) Math.pow(data2, 2)", "temp2", "(int) Math.pow(data2, 2)", "Math.pow", "Math", "data2", "2", "temp3 = (int) Math.pow(data3, 2)", "temp3", "(int) Math.pow(data3, 2)", "Math.pow", "Math", "data3", "2", "if (temp1 == temp2 + temp3 || temp2 == temp1 + temp3\n\t\t\t\t|| temp3 == temp1 + temp2) {\n\t\t\treturn true;\n\t\t} else {\n\t\t\treturn false;\n\t\t}", "temp1 == temp2 + temp3 || temp2 == temp1 + temp3\n\t\t\t\t|| temp3 == temp1 + temp2", "temp1 == temp2 + temp3 || temp2 == temp1 + temp3\n\t\t\t\t|| temp3 == temp1 + temp2", "temp1 == temp2 + temp3", "temp1", "temp2 + temp3", "temp2", "temp3", "temp2 == temp1 + temp3", "temp2", "temp1 + temp3", "temp1", "temp3", "temp3 == temp1 + temp2", "temp3", "temp1 + temp2", "temp1", "temp2", "{\n\t\t\treturn true;\n\t\t}", "return true;", "true", "{\n\t\t\treturn false;\n\t\t}", "return false;", "false", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strTemp;\n\t\tint numberOfTriangle, data1, data2, data3;\n\t\t/*\n\t\t * Count total of Triangles\n\t\t */\n\t\tnumberOfTriangle = Integer.parseInt(in.readLine());\n\t\tTriangle[] triangles = new Triangle[numberOfTriangle];\n\n\t\t/*\n\t\t * Create all of Triangles\n\t\t */\n\t\tfor (int i = 0; i < numberOfTriangle; i++) {\n\t\t\tstrTemp = in.readLine().split(\" \");\n\t\t\tdata1 = Integer.parseInt(strTemp[0]);\n\t\t\tdata2 = Integer.parseInt(strTemp[1]);\n\t\t\tdata3 = Integer.parseInt(strTemp[2]);\n\t\t\ttriangles[i] = new Triangle(data1, data2, data3);\n\t\t}\n\n\t\tfor (int j = 0; j < triangles.length; j++) {\n\t\t\tif (triangles[j].check()) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\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 in = new BufferedReader(new InputStreamReader(System.in));\n\t\tString[] strTemp;\n\t\tint numberOfTriangle, data1, data2, data3;\n\t\t/*\n\t\t * Count total of Triangles\n\t\t */\n\t\tnumberOfTriangle = Integer.parseInt(in.readLine());\n\t\tTriangle[] triangles = new Triangle[numberOfTriangle];\n\n\t\t/*\n\t\t * Create all of Triangles\n\t\t */\n\t\tfor (int i = 0; i < numberOfTriangle; i++) {\n\t\t\tstrTemp = in.readLine().split(\" \");\n\t\t\tdata1 = Integer.parseInt(strTemp[0]);\n\t\t\tdata2 = Integer.parseInt(strTemp[1]);\n\t\t\tdata3 = Integer.parseInt(strTemp[2]);\n\t\t\ttriangles[i] = new Triangle(data1, data2, data3);\n\t\t}\n\n\t\tfor (int j = 0; j < triangles.length; j++) {\n\t\t\tif (triangles[j].check()) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\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 in = new BufferedReader(new InputStreamReader(System.in)); String[] strTemp; int numberOfTriangle, data1, data2, data3; /* * Count total of Triangles */ numberOfTriangle = Integer.parseInt(in.readLine()); Triangle[] triangles = new Triangle[numberOfTriangle]; /* * Create all of Triangles */ for (int i = 0; i < numberOfTriangle; i++) { strTemp = in.readLine().split(" "); data1 = Integer.parseInt(strTemp[0]); data2 = Integer.parseInt(strTemp[1]); data3 = Integer.parseInt(strTemp[2]); triangles[i] = new Triangle(data1, data2, data3); } for (int j = 0; j < triangles.length; j++) { if (triangles[j].check()) { System.out.println("YES"); } else { System.out.println("NO"); } } } } class Triangle { private int id, data1, data2, data3, count; private Triangle[] triangles; /* * instance */ public Triangle(int data1, int data2, int data3) { this.data1 = data1; this.data2 = data2; this.data3 = data3; } public boolean check() { int temp1, temp2, temp3; temp1 = (int) Math.pow(data1, 2); temp2 = (int) Math.pow(data2, 2); temp3 = (int) Math.pow(data3, 2); if (temp1 == temp2 + temp3 || temp2 == temp1 + temp3 || temp3 == temp1 + temp2) { return true; } else { return false; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 14, 2, 2, 4, 13, 18, 13, 17, 18, 13, 17, 18, 13, 17, 4, 13, 18, 13, 17, 18, 13, 17, 18, 13, 17, 4, 13, 18, 13, 17, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 29, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 130, 5 ], [ 130, 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 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 41, 43 ], [ 34, 44 ], [ 44, 45 ], [ 45, 46 ], [ 34, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 29, 56 ], [ 56, 57 ], [ 58, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 67, 69 ], [ 58, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 78, 80 ], [ 58, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 89, 91 ], [ 56, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 56, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 6, 106 ], [ 106, 107 ], [ 130, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 112, 120 ], [ 120, 121 ], [ 120, 122 ], [ 108, 123 ], [ 123, 124 ], [ 108, 125 ], [ 125, 126 ], [ 108, 127 ], [ 127, 128 ], [ 0, 129 ], [ 129, 130 ], [ 129, 131 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint times = sc.nextInt();\n\t\t\n\t\tfor(int i = 0; i < times; i++){\n\t\t\tint[] nums = new int[3];\n\t\t\tfor(int j=0; j < nums.length; j++){\n\t\t\t\tnums[j]=sc.nextInt();\n\t\t\t}\n\t\t\tif(isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\t\n\tprivate static boolean isCRight(int a, int b, int c){\n\t\treturn a*a + b*b ==c *c;\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint times = sc.nextInt();\n\t\t\n\t\tfor(int i = 0; i < times; i++){\n\t\t\tint[] nums = new int[3];\n\t\t\tfor(int j=0; j < nums.length; j++){\n\t\t\t\tnums[j]=sc.nextInt();\n\t\t\t}\n\t\t\tif(isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\t\n\tprivate static boolean isCRight(int a, int b, int c){\n\t\treturn a*a + b*b ==c *c;\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint times = sc.nextInt();\n\t\t\n\t\tfor(int i = 0; i < times; i++){\n\t\t\tint[] nums = new int[3];\n\t\t\tfor(int j=0; j < nums.length; j++){\n\t\t\t\tnums[j]=sc.nextInt();\n\t\t\t}\n\t\t\tif(isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint times = sc.nextInt();\n\t\t\n\t\tfor(int i = 0; i < times; i++){\n\t\t\tint[] nums = new int[3];\n\t\t\tfor(int j=0; j < nums.length; j++){\n\t\t\t\tnums[j]=sc.nextInt();\n\t\t\t}\n\t\t\tif(isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int times = sc.nextInt();", "times", "sc.nextInt()", "sc.nextInt", "sc", "for(int i = 0; i < times; i++){\n\t\t\tint[] nums = new int[3];\n\t\t\tfor(int j=0; j < nums.length; j++){\n\t\t\t\tnums[j]=sc.nextInt();\n\t\t\t}\n\t\t\tif(isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < times", "i", "times", "i++", "i++", "i", "{\n\t\t\tint[] nums = new int[3];\n\t\t\tfor(int j=0; j < nums.length; j++){\n\t\t\t\tnums[j]=sc.nextInt();\n\t\t\t}\n\t\t\tif(isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tint[] nums = new int[3];\n\t\t\tfor(int j=0; j < nums.length; j++){\n\t\t\t\tnums[j]=sc.nextInt();\n\t\t\t}\n\t\t\tif(isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int[] nums = new int[3];", "nums", "new int[3]", "3", "for(int j=0; j < nums.length; j++){\n\t\t\t\tnums[j]=sc.nextInt();\n\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j < nums.length", "j", "nums.length", "nums", "nums.length", "j++", "j++", "j", "{\n\t\t\t\tnums[j]=sc.nextInt();\n\t\t\t}", "{\n\t\t\t\tnums[j]=sc.nextInt();\n\t\t\t}", "nums[j]=sc.nextInt()", "nums[j]", "nums", "j", "sc.nextInt()", "sc.nextInt", "sc", "if(isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])", "isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])", "isCRight(nums[0],nums[1],nums[2])", "isCRight", "nums[0]", "nums", "0", "nums[1]", "nums", "1", "nums[2]", "nums", "2", "isCRight(nums[1], nums[2],nums[0])", "isCRight", "nums[1]", "nums", "1", "nums[2]", "nums", "2", "nums[0]", "nums", "0", "isCRight(nums[2], nums[0],nums[1])", "isCRight", "nums[2]", "nums", "2", "nums[0]", "nums", "0", "nums[1]", "nums", "1", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "private static boolean isCRight(int a, int b, int c){\n\t\treturn a*a + b*b ==c *c;\n\t}", "isCRight", "{\n\t\treturn a*a + b*b ==c *c;\n\t}", "return a*a + b*b ==c *c;", "a*a + b*b ==c *c", "a*a + b*b", "a*a", "a", "a", "b*b", "b", "b", "c *c", "c", "c", "int a", "a", "int b", "b", "int c", "c", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint times = sc.nextInt();\n\t\t\n\t\tfor(int i = 0; i < times; i++){\n\t\t\tint[] nums = new int[3];\n\t\t\tfor(int j=0; j < nums.length; j++){\n\t\t\t\tnums[j]=sc.nextInt();\n\t\t\t}\n\t\t\tif(isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\t\n\tprivate static boolean isCRight(int a, int b, int c){\n\t\treturn a*a + b*b ==c *c;\n\t}\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint times = sc.nextInt();\n\t\t\n\t\tfor(int i = 0; i < times; i++){\n\t\t\tint[] nums = new int[3];\n\t\t\tfor(int j=0; j < nums.length; j++){\n\t\t\t\tnums[j]=sc.nextInt();\n\t\t\t}\n\t\t\tif(isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\t\n\tprivate static boolean isCRight(int a, int b, int c){\n\t\treturn a*a + b*b ==c *c;\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int times = sc.nextInt(); for(int i = 0; i < times; i++){ int[] nums = new int[3]; for(int j=0; j < nums.length; j++){ nums[j]=sc.nextInt(); } if(isCRight(nums[0],nums[1],nums[2]) || isCRight(nums[1], nums[2],nums[0]) || isCRight(nums[2], nums[0],nums[1])){ System.out.println("YES"); }else{ System.out.println("NO"); } } } private static boolean isCRight(int a, int b, int c){ return a*a + b*b ==c *c; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 14, 4, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 4, 18, 13, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 4, 18, 13, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 14, 2, 13, 13, 30, 29, 17, 30, 29, 17, 23, 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 ], [ 8, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 27, 28 ], [ 27, 29 ], [ 22, 30 ], [ 30, 31 ], [ 31, 32 ], [ 22, 33 ], [ 34, 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 ], [ 49, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 34, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 58, 61 ], [ 57, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 57, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 6, 76 ], [ 76, 77 ], [ 4, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 83, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 80, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 109, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 125, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 106, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 138, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 80, 151 ], [ 151, 152 ], [ 152, 153 ], [ 152, 154 ], [ 151, 155 ], [ 155, 156 ], [ 156, 157 ], [ 151, 158 ], [ 158, 159 ], [ 159, 160 ], [ 78, 161 ], [ 161, 162 ], [ 78, 163 ], [ 163, 164 ] ]
[ "import java.util.*;\n\nclass Main{\npublic static void main(String[] args){\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nint[][] t=new int[n][3];\nfor(int i=0;i<n;i++){\nfor(int j=0;j<3;j++){\nt[i][j]=sc.nextInt();\n}\nif(triangle(i,t)){System.out.println(\"YES\");}\nelse{System.out.println(\"NO\");}\n}\n}\npublic static boolean triangle(int i,int[][] t){\ndouble max=Math.max(Math.max(t[i][0],t[i][1]),t[i][2]);\ndouble res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1]));\nif(res==max){return true;}\nelse{return false;}\n}\n}", "import java.util.*;", "util.*", "java", "class Main{\npublic static void main(String[] args){\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nint[][] t=new int[n][3];\nfor(int i=0;i<n;i++){\nfor(int j=0;j<3;j++){\nt[i][j]=sc.nextInt();\n}\nif(triangle(i,t)){System.out.println(\"YES\");}\nelse{System.out.println(\"NO\");}\n}\n}\npublic static boolean triangle(int i,int[][] t){\ndouble max=Math.max(Math.max(t[i][0],t[i][1]),t[i][2]);\ndouble res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1]));\nif(res==max){return true;}\nelse{return false;}\n}\n}", "Main", "public static void main(String[] args){\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nint[][] t=new int[n][3];\nfor(int i=0;i<n;i++){\nfor(int j=0;j<3;j++){\nt[i][j]=sc.nextInt();\n}\nif(triangle(i,t)){System.out.println(\"YES\");}\nelse{System.out.println(\"NO\");}\n}\n}", "main", "{\nScanner sc=new Scanner(System.in);\nint n=sc.nextInt();\nint[][] t=new int[n][3];\nfor(int i=0;i<n;i++){\nfor(int j=0;j<3;j++){\nt[i][j]=sc.nextInt();\n}\nif(triangle(i,t)){System.out.println(\"YES\");}\nelse{System.out.println(\"NO\");}\n}\n}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[][] t=new int[n][3];", "t", "new int[n][3]", "n", "3", "for(int i=0;i<n;i++){\nfor(int j=0;j<3;j++){\nt[i][j]=sc.nextInt();\n}\nif(triangle(i,t)){System.out.println(\"YES\");}\nelse{System.out.println(\"NO\");}\n}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\nfor(int j=0;j<3;j++){\nt[i][j]=sc.nextInt();\n}\nif(triangle(i,t)){System.out.println(\"YES\");}\nelse{System.out.println(\"NO\");}\n}", "{\nfor(int j=0;j<3;j++){\nt[i][j]=sc.nextInt();\n}\nif(triangle(i,t)){System.out.println(\"YES\");}\nelse{System.out.println(\"NO\");}\n}", "for(int j=0;j<3;j++){\nt[i][j]=sc.nextInt();\n}", "int j=0;", "int j=0;", "j", "0", "j<3", "j", "3", "j++", "j++", "j", "{\nt[i][j]=sc.nextInt();\n}", "{\nt[i][j]=sc.nextInt();\n}", "t[i][j]=sc.nextInt()", "t[i][j]", "t[i]", "t", "i", "j", "sc.nextInt()", "sc.nextInt", "sc", "if(triangle(i,t)){System.out.println(\"YES\");}\nelse{System.out.println(\"NO\");}", "triangle(i,t)", "triangle", "i", "t", "{System.out.println(\"YES\");}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{System.out.println(\"NO\");}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public static boolean triangle(int i,int[][] t){\ndouble max=Math.max(Math.max(t[i][0],t[i][1]),t[i][2]);\ndouble res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1]));\nif(res==max){return true;}\nelse{return false;}\n}", "triangle", "{\ndouble max=Math.max(Math.max(t[i][0],t[i][1]),t[i][2]);\ndouble res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1]));\nif(res==max){return true;}\nelse{return false;}\n}", "double max=Math.max(Math.max(t[i][0],t[i][1]),t[i][2]);", "max", "Math.max(Math.max(t[i][0],t[i][1]),t[i][2])", "Math.max", "Math", "Math.max(t[i][0],t[i][1])", "Math.max", "Math", "t[i][0]", "t[i]", "t", "i", "0", "t[i][1]", "t[i]", "t", "i", "1", "t[i][2]", "t[i]", "t", "i", "2", "double res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1]));", "res", "Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1]))", "Math.min", "Math", "Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2]))", "Math.min", "Math", "Math.hypot(t[i][0],t[i][1])", "Math.hypot", "Math", "t[i][0]", "t[i]", "t", "i", "0", "t[i][1]", "t[i]", "t", "i", "1", "Math.hypot(t[i][0],t[i][2])", "Math.hypot", "Math", "t[i][0]", "t[i]", "t", "i", "0", "t[i][2]", "t[i]", "t", "i", "2", "Math.hypot(t[i][2],t[i][1])", "Math.hypot", "Math", "t[i][2]", "t[i]", "t", "i", "2", "t[i][1]", "t[i]", "t", "i", "1", "if(res==max){return true;}\nelse{return false;}", "res==max", "res", "max", "{return true;}", "return true;", "true", "{return false;}", "return false;", "false", "int i", "i", "int[][] t", "t" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); int[][] t=new int[n][3]; for(int i=0;i<n;i++){ for(int j=0;j<3;j++){ t[i][j]=sc.nextInt(); } if(triangle(i,t)){System.out.println("YES");} else{System.out.println("NO");} } } public static boolean triangle(int i,int[][] t){ double max=Math.max(Math.max(t[i][0],t[i][1]),t[i][2]); double res=Math.min(Math.min(Math.hypot(t[i][0],t[i][1]),Math.hypot(t[i][0],t[i][2])),Math.hypot(t[i][2],t[i][1])); if(res==max){return true;} else{return false;} } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 38, 30, 41, 13, 20, 41, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 14, 13, 30, 0, 13, 4, 18, 13, 13, 0, 13, 20, 13, 0, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 41, 13, 41, 13, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 13, 0, 13, 4, 18, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 13, 14, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 13, 14, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 13, 14, 2, 2, 13, 13, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 13, 0, 18, 13, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 40, 13, 14, 2, 13, 13, 30, 3, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 8, 18, 13, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 213, 8 ], [ 213, 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 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 25, 29 ], [ 29, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 32, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 42, 49 ], [ 49, 50 ], [ 49, 51 ], [ 42, 53 ], [ 53, 54 ], [ 53, 55 ], [ 40, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 56, 63 ], [ 63, 64 ], [ 56, 65 ], [ 65, 66 ], [ 56, 67 ], [ 67, 68 ], [ 56, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 56, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 56, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 56, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 98, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 103, 107 ], [ 56, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 110, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 113, 117 ], [ 110, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 118, 122 ], [ 56, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 128, 130 ], [ 123, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 123, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 137, 139 ], [ 136, 140 ], [ 140, 141 ], [ 140, 142 ], [ 135, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 135, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 152, 154 ], [ 147, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 147, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 56, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 167, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 171, 175 ], [ 175, 176 ], [ 175, 177 ], [ 56, 178 ], [ 178, 179 ], [ 56, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 180, 184 ], [ 184, 185 ], [ 25, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 186, 191 ], [ 191, 192 ], [ 191, 193 ], [ 186, 194 ], [ 194, 195 ], [ 195, 196 ], [ 186, 197 ], [ 198, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 199, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 204, 208 ], [ 204, 209 ], [ 9, 210 ], [ 210, 211 ], [ 0, 212 ], [ 212, 213 ], [ 212, 214 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean[] arg = null;\n\t\tint length=0;\n int i=0;\n boolean first=true;\n\t\ttry (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tlength=Integer.parseInt(line);\n \t\targ=new boolean[length];\n \t\tfirst=false;\n \t}else{\n \t\tString[] tokens = line.split(\" \");\n \t\tint max,mid,min;\n \t\tint a= Integer.parseInt(tokens[0]);\n \t\tint b = Integer.parseInt(tokens[1]);\n \t\tint c = Integer.parseInt(tokens[2]);\n \t\tmax=Integer.max(Integer.max(a, b),Integer.max(c, b));\n \t\tmin=Integer.min(Integer.min(a, b),Integer.min(c, b));\n \t\tif(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}\n \t\targ[i]=max*max==min*min+mid*mid;\n \t\ti++;\n \t\tif(i==length){\n \t\t\tbreak;\n \t\t}\n \t}\n }\n for(int j=0;j<i;j++){\n \tSystem.out.println(arg[j]?\"YES\":\"NO\");\n }\n }\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main{\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean[] arg = null;\n\t\tint length=0;\n int i=0;\n boolean first=true;\n\t\ttry (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tlength=Integer.parseInt(line);\n \t\targ=new boolean[length];\n \t\tfirst=false;\n \t}else{\n \t\tString[] tokens = line.split(\" \");\n \t\tint max,mid,min;\n \t\tint a= Integer.parseInt(tokens[0]);\n \t\tint b = Integer.parseInt(tokens[1]);\n \t\tint c = Integer.parseInt(tokens[2]);\n \t\tmax=Integer.max(Integer.max(a, b),Integer.max(c, b));\n \t\tmin=Integer.min(Integer.min(a, b),Integer.min(c, b));\n \t\tif(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}\n \t\targ[i]=max*max==min*min+mid*mid;\n \t\ti++;\n \t\tif(i==length){\n \t\t\tbreak;\n \t\t}\n \t}\n }\n for(int j=0;j<i;j++){\n \tSystem.out.println(arg[j]?\"YES\":\"NO\");\n }\n }\n\t}\n\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean[] arg = null;\n\t\tint length=0;\n int i=0;\n boolean first=true;\n\t\ttry (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tlength=Integer.parseInt(line);\n \t\targ=new boolean[length];\n \t\tfirst=false;\n \t}else{\n \t\tString[] tokens = line.split(\" \");\n \t\tint max,mid,min;\n \t\tint a= Integer.parseInt(tokens[0]);\n \t\tint b = Integer.parseInt(tokens[1]);\n \t\tint c = Integer.parseInt(tokens[2]);\n \t\tmax=Integer.max(Integer.max(a, b),Integer.max(c, b));\n \t\tmin=Integer.min(Integer.min(a, b),Integer.min(c, b));\n \t\tif(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}\n \t\targ[i]=max*max==min*min+mid*mid;\n \t\ti++;\n \t\tif(i==length){\n \t\t\tbreak;\n \t\t}\n \t}\n }\n for(int j=0;j<i;j++){\n \tSystem.out.println(arg[j]?\"YES\":\"NO\");\n }\n }\n\t}", "main", "{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean[] arg = null;\n\t\tint length=0;\n int i=0;\n boolean first=true;\n\t\ttry (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tlength=Integer.parseInt(line);\n \t\targ=new boolean[length];\n \t\tfirst=false;\n \t}else{\n \t\tString[] tokens = line.split(\" \");\n \t\tint max,mid,min;\n \t\tint a= Integer.parseInt(tokens[0]);\n \t\tint b = Integer.parseInt(tokens[1]);\n \t\tint c = Integer.parseInt(tokens[2]);\n \t\tmax=Integer.max(Integer.max(a, b),Integer.max(c, b));\n \t\tmin=Integer.min(Integer.min(a, b),Integer.min(c, b));\n \t\tif(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}\n \t\targ[i]=max*max==min*min+mid*mid;\n \t\ti++;\n \t\tif(i==length){\n \t\t\tbreak;\n \t\t}\n \t}\n }\n for(int j=0;j<i;j++){\n \tSystem.out.println(arg[j]?\"YES\":\"NO\");\n }\n }\n\t}", "boolean[] arg = null;", "arg", "null", "int length=0;", "length", "0", "int i=0;", "i", "0", "boolean first=true;", "first", "true", "try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tlength=Integer.parseInt(line);\n \t\targ=new boolean[length];\n \t\tfirst=false;\n \t}else{\n \t\tString[] tokens = line.split(\" \");\n \t\tint max,mid,min;\n \t\tint a= Integer.parseInt(tokens[0]);\n \t\tint b = Integer.parseInt(tokens[1]);\n \t\tint c = Integer.parseInt(tokens[2]);\n \t\tmax=Integer.max(Integer.max(a, b),Integer.max(c, b));\n \t\tmin=Integer.min(Integer.min(a, b),Integer.min(c, b));\n \t\tif(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}\n \t\targ[i]=max*max==min*min+mid*mid;\n \t\ti++;\n \t\tif(i==length){\n \t\t\tbreak;\n \t\t}\n \t}\n }\n for(int j=0;j<i;j++){\n \tSystem.out.println(arg[j]?\"YES\":\"NO\");\n }\n }", "{\n String line;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tlength=Integer.parseInt(line);\n \t\targ=new boolean[length];\n \t\tfirst=false;\n \t}else{\n \t\tString[] tokens = line.split(\" \");\n \t\tint max,mid,min;\n \t\tint a= Integer.parseInt(tokens[0]);\n \t\tint b = Integer.parseInt(tokens[1]);\n \t\tint c = Integer.parseInt(tokens[2]);\n \t\tmax=Integer.max(Integer.max(a, b),Integer.max(c, b));\n \t\tmin=Integer.min(Integer.min(a, b),Integer.min(c, b));\n \t\tif(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}\n \t\targ[i]=max*max==min*min+mid*mid;\n \t\ti++;\n \t\tif(i==length){\n \t\t\tbreak;\n \t\t}\n \t}\n }\n for(int j=0;j<i;j++){\n \tSystem.out.println(arg[j]?\"YES\":\"NO\");\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 \tif(first){\n \t\tlength=Integer.parseInt(line);\n \t\targ=new boolean[length];\n \t\tfirst=false;\n \t}else{\n \t\tString[] tokens = line.split(\" \");\n \t\tint max,mid,min;\n \t\tint a= Integer.parseInt(tokens[0]);\n \t\tint b = Integer.parseInt(tokens[1]);\n \t\tint c = Integer.parseInt(tokens[2]);\n \t\tmax=Integer.max(Integer.max(a, b),Integer.max(c, b));\n \t\tmin=Integer.min(Integer.min(a, b),Integer.min(c, b));\n \t\tif(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}\n \t\targ[i]=max*max==min*min+mid*mid;\n \t\ti++;\n \t\tif(i==length){\n \t\t\tbreak;\n \t\t}\n \t}\n }", "(line = br.readLine()) != null", "(line = br.readLine())", "line", "br.readLine()", "br.readLine", "br", "null", "{\n \tif(first){\n \t\tlength=Integer.parseInt(line);\n \t\targ=new boolean[length];\n \t\tfirst=false;\n \t}else{\n \t\tString[] tokens = line.split(\" \");\n \t\tint max,mid,min;\n \t\tint a= Integer.parseInt(tokens[0]);\n \t\tint b = Integer.parseInt(tokens[1]);\n \t\tint c = Integer.parseInt(tokens[2]);\n \t\tmax=Integer.max(Integer.max(a, b),Integer.max(c, b));\n \t\tmin=Integer.min(Integer.min(a, b),Integer.min(c, b));\n \t\tif(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}\n \t\targ[i]=max*max==min*min+mid*mid;\n \t\ti++;\n \t\tif(i==length){\n \t\t\tbreak;\n \t\t}\n \t}\n }", "if(first){\n \t\tlength=Integer.parseInt(line);\n \t\targ=new boolean[length];\n \t\tfirst=false;\n \t}else{\n \t\tString[] tokens = line.split(\" \");\n \t\tint max,mid,min;\n \t\tint a= Integer.parseInt(tokens[0]);\n \t\tint b = Integer.parseInt(tokens[1]);\n \t\tint c = Integer.parseInt(tokens[2]);\n \t\tmax=Integer.max(Integer.max(a, b),Integer.max(c, b));\n \t\tmin=Integer.min(Integer.min(a, b),Integer.min(c, b));\n \t\tif(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}\n \t\targ[i]=max*max==min*min+mid*mid;\n \t\ti++;\n \t\tif(i==length){\n \t\t\tbreak;\n \t\t}\n \t}", "first", "{\n \t\tlength=Integer.parseInt(line);\n \t\targ=new boolean[length];\n \t\tfirst=false;\n \t}", "length=Integer.parseInt(line)", "length", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "arg=new boolean[length]", "arg", "new boolean[length]", "length", "first=false", "first", "false", "{\n \t\tString[] tokens = line.split(\" \");\n \t\tint max,mid,min;\n \t\tint a= Integer.parseInt(tokens[0]);\n \t\tint b = Integer.parseInt(tokens[1]);\n \t\tint c = Integer.parseInt(tokens[2]);\n \t\tmax=Integer.max(Integer.max(a, b),Integer.max(c, b));\n \t\tmin=Integer.min(Integer.min(a, b),Integer.min(c, b));\n \t\tif(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}\n \t\targ[i]=max*max==min*min+mid*mid;\n \t\ti++;\n \t\tif(i==length){\n \t\t\tbreak;\n \t\t}\n \t}", "String[] tokens = line.split(\" \");", "tokens", "line.split(\" \")", "line.split", "line", "\" \"", "int max", "max", "mid", "mid", "min;", "min", "int a= Integer.parseInt(tokens[0]);", "a", "Integer.parseInt(tokens[0])", "Integer.parseInt", "Integer", "tokens[0]", "tokens", "0", "int b = Integer.parseInt(tokens[1]);", "b", "Integer.parseInt(tokens[1])", "Integer.parseInt", "Integer", "tokens[1]", "tokens", "1", "int c = Integer.parseInt(tokens[2]);", "c", "Integer.parseInt(tokens[2])", "Integer.parseInt", "Integer", "tokens[2]", "tokens", "2", "max=Integer.max(Integer.max(a, b),Integer.max(c, b))", "max", "Integer.max(Integer.max(a, b),Integer.max(c, b))", "Integer.max", "Integer", "Integer.max(a, b)", "Integer.max", "Integer", "a", "b", "Integer.max(c, b)", "Integer.max", "Integer", "c", "b", "min=Integer.min(Integer.min(a, b),Integer.min(c, b))", "min", "Integer.min(Integer.min(a, b),Integer.min(c, b))", "Integer.min", "Integer", "Integer.min(a, b)", "Integer.min", "Integer", "a", "b", "Integer.min(c, b)", "Integer.min", "Integer", "c", "b", "if(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}", "max!=a&&min!=a", "max!=a", "max", "a", "min!=a", "min", "a", "{\n \t\t\tmid=a;\n \t\t}", "mid=a", "mid", "a", "if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}", "max!=b&&min!=b", "max!=b", "max", "b", "min!=b", "min", "b", "{\n \t\t\tmid=b;\n \t\t}", "mid=b", "mid", "b", "if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}", "max!=c&&min!=c", "max!=c", "max", "c", "min!=c", "min", "c", "{\n \t\t\tmid=c;\n \t}", "mid=c", "mid", "c", "{\n \t\tmid=a;\n \t}", "mid=a", "mid", "a", "arg[i]=max*max==min*min+mid*mid", "arg[i]", "arg", "i", "max*max==min*min+mid*mid", "max*max", "max", "max", "min*min+mid*mid", "min*min", "min", "min", "mid*mid", "mid", "mid", "i++", "i", "if(i==length){\n \t\t\tbreak;\n \t\t}", "i==length", "i", "length", "{\n \t\t\tbreak;\n \t\t}", "break;", "for(int j=0;j<i;j++){\n \tSystem.out.println(arg[j]?\"YES\":\"NO\");\n }", "int j=0;", "int j=0;", "j", "0", "j<i", "j", "i", "j++", "j++", "j", "{\n \tSystem.out.println(arg[j]?\"YES\":\"NO\");\n }", "{\n \tSystem.out.println(arg[j]?\"YES\":\"NO\");\n }", "System.out.println(arg[j]?\"YES\":\"NO\")", "System.out.println", "System.out", "System", "System.out", "arg[j]?\"YES\":\"NO\"", "arg[j]", "arg", "j", "\"YES\"", "\"NO\"", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean[] arg = null;\n\t\tint length=0;\n int i=0;\n boolean first=true;\n\t\ttry (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tlength=Integer.parseInt(line);\n \t\targ=new boolean[length];\n \t\tfirst=false;\n \t}else{\n \t\tString[] tokens = line.split(\" \");\n \t\tint max,mid,min;\n \t\tint a= Integer.parseInt(tokens[0]);\n \t\tint b = Integer.parseInt(tokens[1]);\n \t\tint c = Integer.parseInt(tokens[2]);\n \t\tmax=Integer.max(Integer.max(a, b),Integer.max(c, b));\n \t\tmin=Integer.min(Integer.min(a, b),Integer.min(c, b));\n \t\tif(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}\n \t\targ[i]=max*max==min*min+mid*mid;\n \t\ti++;\n \t\tif(i==length){\n \t\t\tbreak;\n \t\t}\n \t}\n }\n for(int j=0;j<i;j++){\n \tSystem.out.println(arg[j]?\"YES\":\"NO\");\n }\n }\n\t}\n\n}", "public class Main{\n\n\tpublic static void main(String[] args) throws Exception {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tboolean[] arg = null;\n\t\tint length=0;\n int i=0;\n boolean first=true;\n\t\ttry (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n while ((line = br.readLine()) != null) {\n \tif(first){\n \t\tlength=Integer.parseInt(line);\n \t\targ=new boolean[length];\n \t\tfirst=false;\n \t}else{\n \t\tString[] tokens = line.split(\" \");\n \t\tint max,mid,min;\n \t\tint a= Integer.parseInt(tokens[0]);\n \t\tint b = Integer.parseInt(tokens[1]);\n \t\tint c = Integer.parseInt(tokens[2]);\n \t\tmax=Integer.max(Integer.max(a, b),Integer.max(c, b));\n \t\tmin=Integer.min(Integer.min(a, b),Integer.min(c, b));\n \t\tif(max!=a&&min!=a){\n \t\t\tmid=a;\n \t\t}else if(max!=b&&min!=b){\n \t\t\tmid=b;\n \t\t}else if(max!=c&&min!=c){\n \t\t\tmid=c;\n \t}else{\n \t\tmid=a;\n \t}\n \t\targ[i]=max*max==min*min+mid*mid;\n \t\ti++;\n \t\tif(i==length){\n \t\t\tbreak;\n \t\t}\n \t}\n }\n for(int j=0;j<i;j++){\n \tSystem.out.println(arg[j]?\"YES\":\"NO\");\n }\n }\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main{ public static void main(String[] args) throws Exception { // TODO ????????????????????????????????????????????? boolean[] arg = null; int length=0; int i=0; boolean first=true; try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { String line; while ((line = br.readLine()) != null) { if(first){ length=Integer.parseInt(line); arg=new boolean[length]; first=false; }else{ String[] tokens = line.split(" "); int max,mid,min; int a= Integer.parseInt(tokens[0]); int b = Integer.parseInt(tokens[1]); int c = Integer.parseInt(tokens[2]); max=Integer.max(Integer.max(a, b),Integer.max(c, b)); min=Integer.min(Integer.min(a, b),Integer.min(c, b)); if(max!=a&&min!=a){ mid=a; }else if(max!=b&&min!=b){ mid=b; }else if(max!=c&&min!=c){ mid=c; }else{ mid=a; } arg[i]=max*max==min*min+mid*mid; i++; if(i==length){ break; } } } for(int j=0;j<i;j++){ System.out.println(arg[j]?"YES":"NO"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 14, 2, 13, 13, 30, 41, 13, 13, 0, 13, 13, 0, 13, 13, 14, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 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 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 22, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 46, 48 ], [ 42, 49 ], [ 49, 50 ], [ 49, 51 ], [ 22, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 56, 63 ], [ 63, 64 ], [ 63, 65 ], [ 22, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 66, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 66, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 6, 92 ], [ 92, 93 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\twhile(n-- > 0){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = s;\n\t\t\t}\n\t\t\tif(a<c){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = c;\n\t\t\t\t\tc = s;\n\t\t\t}\n\n\t\t\tif((a*a)==((b*b)+(c*c))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\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\tint n = sc.nextInt();\n\t\twhile(n-- > 0){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = s;\n\t\t\t}\n\t\t\tif(a<c){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = c;\n\t\t\t\t\tc = s;\n\t\t\t}\n\n\t\t\tif((a*a)==((b*b)+(c*c))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\twhile(n-- > 0){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = s;\n\t\t\t}\n\t\t\tif(a<c){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = c;\n\t\t\t\t\tc = s;\n\t\t\t}\n\n\t\t\tif((a*a)==((b*b)+(c*c))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\twhile(n-- > 0){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = s;\n\t\t\t}\n\t\t\tif(a<c){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = c;\n\t\t\t\t\tc = s;\n\t\t\t}\n\n\t\t\tif((a*a)==((b*b)+(c*c))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "while(n-- > 0){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = s;\n\t\t\t}\n\t\t\tif(a<c){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = c;\n\t\t\t\t\tc = s;\n\t\t\t}\n\n\t\t\tif((a*a)==((b*b)+(c*c))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "n-- > 0", "n--", "n", "0", "{\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = s;\n\t\t\t}\n\t\t\tif(a<c){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = c;\n\t\t\t\t\tc = s;\n\t\t\t}\n\n\t\t\tif((a*a)==((b*b)+(c*c))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int c = sc.nextInt();", "c", "sc.nextInt()", "sc.nextInt", "sc", "if(a<b){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = s;\n\t\t\t}", "a<b", "a", "b", "{\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = s;\n\t\t\t}", "int s = a;", "s", "a", "a = b", "a", "b", "b = s", "b", "s", "if(a<c){\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = c;\n\t\t\t\t\tc = s;\n\t\t\t}", "a<c", "a", "c", "{\n\t\t\t\t\tint s = a;\n\t\t\t\t\ta = c;\n\t\t\t\t\tc = s;\n\t\t\t}", "int s = a;", "s", "a", "a = c", "a", "c", "c = s", "c", "s", "if((a*a)==((b*b)+(c*c))){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "(a*a)==((b*b)+(c*c))", "(a*a)", "a", "a", "((b*b)+(c*c))", "(b*b)", "b", "b", "(c*c)", "c", "c", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); while(n-- > 0){ int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(a<b){ int s = a; a = b; b = s; } if(a<c){ int s = a; a = c; c = s; } if((a*a)==((b*b)+(c*c))){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 20, 41, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 0, 13, 4, 18, 4, 18, 13, 17, 0, 18, 13, 17, 4, 18, 13, 18, 13, 17, 0, 18, 13, 17, 4, 18, 13, 18, 13, 17, 0, 18, 13, 17, 4, 18, 13, 18, 13, 17, 11, 1, 41, 13, 17, 41, 13, 2, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 0, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 0, 13, 17, 4, 18, 4, 18, 13, 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 ], [ 189, 11 ], [ 189, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 25, 26 ], [ 26, 27 ], [ 16, 28 ], [ 28, 29 ], [ 16, 30 ], [ 30, 31 ], [ 30, 32 ], [ 16, 33 ], [ 33, 34 ], [ 16, 35 ], [ 35, 36 ], [ 35, 37 ], [ 16, 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 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 56, 61 ], [ 50, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 50, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 50, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 89, 91 ], [ 50, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 92, 99 ], [ 99, 100 ], [ 99, 101 ], [ 92, 102 ], [ 102, 103 ], [ 103, 104 ], [ 92, 105 ], [ 106, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 112, 114 ], [ 107, 115 ], [ 115, 116 ], [ 116, 117 ], [ 107, 118 ], [ 119, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 125, 126 ], [ 125, 127 ], [ 120, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 131, 133 ], [ 128, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 134, 138 ], [ 138, 139 ], [ 138, 140 ], [ 128, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 50, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 153, 155 ], [ 148, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 156, 160 ], [ 160, 161 ], [ 160, 162 ], [ 147, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 163, 167 ], [ 167, 168 ], [ 167, 169 ], [ 146, 170 ], [ 170, 171 ], [ 170, 172 ], [ 50, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 173, 179 ], [ 16, 180 ], [ 180, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 180, 185 ], [ 12, 186 ], [ 186, 187 ], [ 0, 188 ], [ 188, 189 ], [ 188, 190 ] ]
[ "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 try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n int n = Integer.parseInt(br.readLine());\n String[] line;\n int[] l = new int[]{0,0,0};\n String ans;\n StringBuilder result = new StringBuilder();\n\n for(int i=0; i<n; i++) {\n ans = \"NO\";\n line = br.readLine().split(\" \");\n l[0] = Integer.parseInt(line[0]);\n l[1] = Integer.parseInt(line[1]);\n l[2] = Integer.parseInt(line[2]);\n\n for(int j=0,t; j<3; j++) {\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }\n\n if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] )\n ans = \"YES\";\n result.append( ans ).append(\"\\n\");\n }\n\n System.out.print(result);\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n int n = Integer.parseInt(br.readLine());\n String[] line;\n int[] l = new int[]{0,0,0};\n String ans;\n StringBuilder result = new StringBuilder();\n\n for(int i=0; i<n; i++) {\n ans = \"NO\";\n line = br.readLine().split(\" \");\n l[0] = Integer.parseInt(line[0]);\n l[1] = Integer.parseInt(line[1]);\n l[2] = Integer.parseInt(line[2]);\n\n for(int j=0,t; j<3; j++) {\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }\n\n if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] )\n ans = \"YES\";\n result.append( ans ).append(\"\\n\");\n }\n\n System.out.print(result);\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n int n = Integer.parseInt(br.readLine());\n String[] line;\n int[] l = new int[]{0,0,0};\n String ans;\n StringBuilder result = new StringBuilder();\n\n for(int i=0; i<n; i++) {\n ans = \"NO\";\n line = br.readLine().split(\" \");\n l[0] = Integer.parseInt(line[0]);\n l[1] = Integer.parseInt(line[1]);\n l[2] = Integer.parseInt(line[2]);\n\n for(int j=0,t; j<3; j++) {\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }\n\n if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] )\n ans = \"YES\";\n result.append( ans ).append(\"\\n\");\n }\n\n System.out.print(result);\n }\n }", "main", "{\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n int n = Integer.parseInt(br.readLine());\n String[] line;\n int[] l = new int[]{0,0,0};\n String ans;\n StringBuilder result = new StringBuilder();\n\n for(int i=0; i<n; i++) {\n ans = \"NO\";\n line = br.readLine().split(\" \");\n l[0] = Integer.parseInt(line[0]);\n l[1] = Integer.parseInt(line[1]);\n l[2] = Integer.parseInt(line[2]);\n\n for(int j=0,t; j<3; j++) {\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }\n\n if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] )\n ans = \"YES\";\n result.append( ans ).append(\"\\n\");\n }\n\n System.out.print(result);\n }\n }", "try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n int n = Integer.parseInt(br.readLine());\n String[] line;\n int[] l = new int[]{0,0,0};\n String ans;\n StringBuilder result = new StringBuilder();\n\n for(int i=0; i<n; i++) {\n ans = \"NO\";\n line = br.readLine().split(\" \");\n l[0] = Integer.parseInt(line[0]);\n l[1] = Integer.parseInt(line[1]);\n l[2] = Integer.parseInt(line[2]);\n\n for(int j=0,t; j<3; j++) {\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }\n\n if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] )\n ans = \"YES\";\n result.append( ans ).append(\"\\n\");\n }\n\n System.out.print(result);\n }", "{\n\n int n = Integer.parseInt(br.readLine());\n String[] line;\n int[] l = new int[]{0,0,0};\n String ans;\n StringBuilder result = new StringBuilder();\n\n for(int i=0; i<n; i++) {\n ans = \"NO\";\n line = br.readLine().split(\" \");\n l[0] = Integer.parseInt(line[0]);\n l[1] = Integer.parseInt(line[1]);\n l[2] = Integer.parseInt(line[2]);\n\n for(int j=0,t; j<3; j++) {\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }\n\n if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] )\n ans = \"YES\";\n result.append( ans ).append(\"\\n\");\n }\n\n System.out.print(result);\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in))", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "String[] line;", "line", "int[] l = new int[]{0,0,0};", "l", "new int[]{0,0,0}", "String ans;", "ans", "StringBuilder result = new StringBuilder();", "result", "new StringBuilder()", "for(int i=0; i<n; i++) {\n ans = \"NO\";\n line = br.readLine().split(\" \");\n l[0] = Integer.parseInt(line[0]);\n l[1] = Integer.parseInt(line[1]);\n l[2] = Integer.parseInt(line[2]);\n\n for(int j=0,t; j<3; j++) {\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }\n\n if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] )\n ans = \"YES\";\n result.append( ans ).append(\"\\n\");\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n ans = \"NO\";\n line = br.readLine().split(\" \");\n l[0] = Integer.parseInt(line[0]);\n l[1] = Integer.parseInt(line[1]);\n l[2] = Integer.parseInt(line[2]);\n\n for(int j=0,t; j<3; j++) {\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }\n\n if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] )\n ans = \"YES\";\n result.append( ans ).append(\"\\n\");\n }", "{\n ans = \"NO\";\n line = br.readLine().split(\" \");\n l[0] = Integer.parseInt(line[0]);\n l[1] = Integer.parseInt(line[1]);\n l[2] = Integer.parseInt(line[2]);\n\n for(int j=0,t; j<3; j++) {\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }\n\n if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] )\n ans = \"YES\";\n result.append( ans ).append(\"\\n\");\n }", "ans = \"NO\"", "ans", "\"NO\"", "line = br.readLine().split(\" \")", "line", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "l[0] = Integer.parseInt(line[0])", "l[0]", "l", "0", "Integer.parseInt(line[0])", "Integer.parseInt", "Integer", "line[0]", "line", "0", "l[1] = Integer.parseInt(line[1])", "l[1]", "l", "1", "Integer.parseInt(line[1])", "Integer.parseInt", "Integer", "line[1]", "line", "1", "l[2] = Integer.parseInt(line[2])", "l[2]", "l", "2", "Integer.parseInt(line[2])", "Integer.parseInt", "Integer", "line[2]", "line", "2", "for(int j=0,t; j<3; j++) {\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }", "int j=0,t;", "int j=0", "j", "0", "t;", "t", "j<3", "j", "3", "j++", "j++", "j", "{\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }", "{\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }", "for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }", "int k=0;", "int k=0;", "k", "0", "k<3", "k", "3", "k++", "k++", "k", "{\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }", "{\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }", "if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }", "l[j] < l[k]", "l[j]", "l", "j", "l[k]", "l", "k", "{\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }", "t = l[j]", "t", "l[j]", "l", "j", "l[j] = l[k]", "l[j]", "l", "j", "l[k]", "l", "k", "l[k] = t", "l[k]", "l", "k", "t", "if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] )\n ans = \"YES\";", "l[0]*l[0] + l[1]*l[1] == l[2]*l[2]", "l[0]*l[0] + l[1]*l[1]", "l[0]*l[0]", "l[0]", "l", "0", "l[0]", "l", "0", "l[1]*l[1]", "l[1]", "l", "1", "l[1]", "l", "1", "l[2]*l[2]", "l[2]", "l", "2", "l[2]", "l", "2", "ans = \"YES\"", "ans", "\"YES\"", "result.append( ans ).append(\"\\n\")", "result.append( ans ).append", "result.append( ans )", "result.append", "result", "ans", "\"\\n\"", "System.out.print(result)", "System.out.print", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n int n = Integer.parseInt(br.readLine());\n String[] line;\n int[] l = new int[]{0,0,0};\n String ans;\n StringBuilder result = new StringBuilder();\n\n for(int i=0; i<n; i++) {\n ans = \"NO\";\n line = br.readLine().split(\" \");\n l[0] = Integer.parseInt(line[0]);\n l[1] = Integer.parseInt(line[1]);\n l[2] = Integer.parseInt(line[2]);\n\n for(int j=0,t; j<3; j++) {\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }\n\n if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] )\n ans = \"YES\";\n result.append( ans ).append(\"\\n\");\n }\n\n System.out.print(result);\n }\n }\n}", "public class Main {\n\n public static void main(String[] args) throws IOException {\n \n try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n int n = Integer.parseInt(br.readLine());\n String[] line;\n int[] l = new int[]{0,0,0};\n String ans;\n StringBuilder result = new StringBuilder();\n\n for(int i=0; i<n; i++) {\n ans = \"NO\";\n line = br.readLine().split(\" \");\n l[0] = Integer.parseInt(line[0]);\n l[1] = Integer.parseInt(line[1]);\n l[2] = Integer.parseInt(line[2]);\n\n for(int j=0,t; j<3; j++) {\n for(int k=0; k<3; k++) {\n if( l[j] < l[k] ) {\n t = l[j];\n l[j] = l[k];\n l[k] = t;\n }\n }\n }\n\n if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] )\n ans = \"YES\";\n result.append( ans ).append(\"\\n\");\n }\n\n System.out.print(result);\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { try(BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) { int n = Integer.parseInt(br.readLine()); String[] line; int[] l = new int[]{0,0,0}; String ans; StringBuilder result = new StringBuilder(); for(int i=0; i<n; i++) { ans = "NO"; line = br.readLine().split(" "); l[0] = Integer.parseInt(line[0]); l[1] = Integer.parseInt(line[1]); l[2] = Integer.parseInt(line[2]); for(int j=0,t; j<3; j++) { for(int k=0; k<3; k++) { if( l[j] < l[k] ) { t = l[j]; l[j] = l[k]; l[k] = t; } } } if( l[0]*l[0] + l[1]*l[1] == l[2]*l[2] ) ans = "YES"; result.append( ans ).append("\n"); } System.out.print(result); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 179, 5 ], [ 179, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 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 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 41, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 41, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 8, 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 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 77, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 97, 99 ], [ 76, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 76, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 114, 116 ], [ 109, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 121, 122 ], [ 121, 123 ], [ 108, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 124, 128 ], [ 128, 129 ], [ 128, 130 ], [ 107, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 107, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 141, 145 ], [ 145, 146 ], [ 145, 147 ], [ 140, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 152, 154 ], [ 139, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 159, 161 ], [ 138, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 163, 168 ], [ 138, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 170, 175 ], [ 6, 176 ], [ 176, 177 ], [ 0, 178 ], [ 178, 179 ], [ 178, 180 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner stdin = new Scanner(System.in);\n\t\tint n = stdin.nextInt();\n\n\t\tint[] a = new int[n];\n\t\tint[] b = new int[n];\n\t\tint[] c = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ta[i] = stdin.nextInt();\n\t\t\tb[i] = stdin.nextInt();\n\t\t\tc[i] = stdin.nextInt();\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\n\t\t\tif(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\n\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 stdin = new Scanner(System.in);\n\t\tint n = stdin.nextInt();\n\n\t\tint[] a = new int[n];\n\t\tint[] b = new int[n];\n\t\tint[] c = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ta[i] = stdin.nextInt();\n\t\t\tb[i] = stdin.nextInt();\n\t\t\tc[i] = stdin.nextInt();\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\n\t\t\tif(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\n\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\n\t\tScanner stdin = new Scanner(System.in);\n\t\tint n = stdin.nextInt();\n\n\t\tint[] a = new int[n];\n\t\tint[] b = new int[n];\n\t\tint[] c = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ta[i] = stdin.nextInt();\n\t\t\tb[i] = stdin.nextInt();\n\t\t\tc[i] = stdin.nextInt();\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\n\t\t\tif(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\n\n\t\t}\n\t}", "main", "{\n\n\t\tScanner stdin = new Scanner(System.in);\n\t\tint n = stdin.nextInt();\n\n\t\tint[] a = new int[n];\n\t\tint[] b = new int[n];\n\t\tint[] c = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ta[i] = stdin.nextInt();\n\t\t\tb[i] = stdin.nextInt();\n\t\t\tc[i] = stdin.nextInt();\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\n\t\t\tif(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\n\n\t\t}\n\t}", "Scanner stdin = new Scanner(System.in);", "stdin", "new Scanner(System.in)", "int n = stdin.nextInt();", "n", "stdin.nextInt()", "stdin.nextInt", "stdin", "int[] a = new int[n];", "a", "new int[n]", "n", "int[] b = new int[n];", "b", "new int[n]", "n", "int[] c = new int[n];", "c", "new int[n]", "n", "for(int i = 0; i < n; i++) {\n\t\t\ta[i] = stdin.nextInt();\n\t\t\tb[i] = stdin.nextInt();\n\t\t\tc[i] = stdin.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\ta[i] = stdin.nextInt();\n\t\t\tb[i] = stdin.nextInt();\n\t\t\tc[i] = stdin.nextInt();\n\t\t}", "{\n\t\t\ta[i] = stdin.nextInt();\n\t\t\tb[i] = stdin.nextInt();\n\t\t\tc[i] = stdin.nextInt();\n\t\t}", "a[i] = stdin.nextInt()", "a[i]", "a", "i", "stdin.nextInt()", "stdin.nextInt", "stdin", "b[i] = stdin.nextInt()", "b[i]", "b", "i", "stdin.nextInt()", "stdin.nextInt", "stdin", "c[i] = stdin.nextInt()", "c[i]", "c", "i", "stdin.nextInt()", "stdin.nextInt", "stdin", "for(int i = 0; i < n; i++) {\n\n\t\t\tif(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\n\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\n\t\t\tif(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\n\n\t\t}", "{\n\n\t\t\tif(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\n\n\t\t}", "if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}", "a[i] * a[i] + b[i] * b[i] == c[i] * c[i]", "a[i] * a[i] + b[i] * b[i]", "a[i] * a[i]", "a[i]", "a", "i", "a[i]", "a", "i", "b[i] * b[i]", "b[i]", "b", "i", "b[i]", "b", "i", "c[i] * c[i]", "c[i]", "c", "i", "c[i]", "c", "i", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}", "b[i] * b[i] + c[i] * c[i] == a[i] * a[i]", "b[i] * b[i] + c[i] * c[i]", "b[i] * b[i]", "b[i]", "b", "i", "b[i]", "b", "i", "c[i] * c[i]", "c[i]", "c", "i", "c[i]", "c", "i", "a[i] * a[i]", "a[i]", "a", "i", "a[i]", "a", "i", "{\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}", "c[i] * c[i] + a[i] * a[i] == b[i] * b[i]", "c[i] * c[i] + a[i] * a[i]", "c[i] * c[i]", "c[i]", "c", "i", "c[i]", "c", "i", "a[i] * a[i]", "a[i]", "a", "i", "a[i]", "a", "i", "b[i] * b[i]", "b[i]", "b", "i", "b[i]", "b", "i", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner stdin = new Scanner(System.in);\n\t\tint n = stdin.nextInt();\n\n\t\tint[] a = new int[n];\n\t\tint[] b = new int[n];\n\t\tint[] c = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ta[i] = stdin.nextInt();\n\t\t\tb[i] = stdin.nextInt();\n\t\t\tc[i] = stdin.nextInt();\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\n\t\t\tif(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\n\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner stdin = new Scanner(System.in);\n\t\tint n = stdin.nextInt();\n\n\t\tint[] a = new int[n];\n\t\tint[] b = new int[n];\n\t\tint[] c = new int[n];\n\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\ta[i] = stdin.nextInt();\n\t\t\tb[i] = stdin.nextInt();\n\t\t\tc[i] = stdin.nextInt();\n\t\t}\n\n\t\tfor(int i = 0; i < n; i++) {\n\n\t\t\tif(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) {\n\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t\t}\n\n\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner stdin = new Scanner(System.in); int n = stdin.nextInt(); int[] a = new int[n]; int[] b = new int[n]; int[] c = new int[n]; for(int i = 0; i < n; i++) { a[i] = stdin.nextInt(); b[i] = stdin.nextInt(); c[i] = stdin.nextInt(); } for(int i = 0; i < n; i++) { if(a[i] * a[i] + b[i] * b[i] == c[i] * c[i]) { System.out.println("YES"); } else if(b[i] * b[i] + c[i] * c[i] == a[i] * a[i]) { System.out.println("YES"); } else if(c[i] * c[i] + a[i] * a[i] == b[i] * b[i]) { System.out.println("YES"); }else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 13, 13, 14, 4, 13, 13, 30, 4, 18, 18, 13, 13, 13, 30, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 14, 2, 4, 13, 18, 13, 17, 18, 13, 17, 4, 13, 18, 13, 17, 30, 29, 17, 29, 17, 23, 13, 12, 13, 30, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 29, 2, 13, 13, 23, 13, 12, 13, 30, 29, 2, 4, 13, 13, 4, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 172, 14 ], [ 172, 15 ], [ 15, 16 ], [ 15, 17 ], [ 172, 18 ], [ 18, 19 ], [ 18, 20 ], [ 172, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 23, 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 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 50, 55 ], [ 47, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 47, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 61, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 61, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 23, 79 ], [ 79, 80 ], [ 80, 81 ], [ 21, 82 ], [ 82, 83 ], [ 172, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 86, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 98 ], [ 98, 99 ], [ 98, 100 ], [ 92, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 103, 105 ], [ 91, 106 ], [ 106, 107 ], [ 107, 108 ], [ 86, 109 ], [ 109, 110 ], [ 84, 111 ], [ 111, 112 ], [ 172, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 125, 126 ], [ 125, 127 ], [ 120, 128 ], [ 128, 129 ], [ 129, 130 ], [ 120, 131 ], [ 132, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 137, 140 ], [ 140, 141 ], [ 140, 142 ], [ 115, 143 ], [ 143, 144 ], [ 113, 145 ], [ 145, 146 ], [ 172, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 147, 154 ], [ 154, 155 ], [ 172, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 161, 163 ], [ 160, 164 ], [ 164, 165 ], [ 164, 166 ], [ 156, 167 ], [ 167, 168 ], [ 156, 169 ], [ 169, 170 ], [ 0, 171 ], [ 171, 172 ], [ 171, 173 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n\n\t/** YES:??´?§?????§???¢??§?????? */\n\tprivate static final String RIGHT_TRIANGLE = \"YES\";\n\n\t/** NO:??´?§?????§???¢??§????????? */\n\tprivate static final String NOT_RIGHT_TRIANGLE = \"NO\";\n\n\t/**\n\t * AOJ Is it a Right Triangle?\n\t *\n\t * @param args\n\t * @throws IOException\n\t * ??\\?????¨??????\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\n\t\tint numsOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n\t\tfor (int i = 0; i < numsOfDataSets; i++) {\n\t\t\tString[] triangle = bufferedReader.readLine().split(\"\\\\s\");\n\n\t\t\tint[] sides = getIntArray(triangle);\n\t\t\tif (isRightTriangle(sides)) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}\n\n\t\tbufferedReader.close();\n\t}\n\n\t/**\n\t * 3???????????????????????´?§?????§???¢????????????????????????\n\t *\n\t * @param triangle\n\t * @return\n\t */\n\tprivate static boolean isRightTriangle(int[] sides) {\n\n\t\tArrays.sort(sides);\n\t\tif (calcSumPower(sides[0], sides[1]) == calcPower(sides[2])) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * String????????????int?????????????????????????????´??????\n\t *\n\t * @param strArray\n\t * String?????????\n\t * @return int?????????\n\t */\n\tprivate static int[] getIntArray(String[] strArray) {\n\t\tint[] intArray = new int[3];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\treturn intArray;\n\t}\n\n\t/**\n\t * ?????°???????????????????????´??????\n\t *\n\t * @param n\n\t * ???????????????\n\t * @return ?????°??????????????????\n\t */\n\tprivate static int calcPower(int n) {\n\t\treturn n * n;\n\t}\n\n\t/**\n\t * ????????°??????????????????????????´??????\n\t *\n\t * @param n\n\t * ??´??°1\n\t * @param m\n\t * ??´??°2\n\t * @return ????????°??????????????????\n\t */\n\tprivate static int calcSumPower(int n, int m) {\n\t\treturn calcPower(n) + calcPower(m);\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/** YES:??´?§?????§???¢??§?????? */\n\tprivate static final String RIGHT_TRIANGLE = \"YES\";\n\n\t/** NO:??´?§?????§???¢??§????????? */\n\tprivate static final String NOT_RIGHT_TRIANGLE = \"NO\";\n\n\t/**\n\t * AOJ Is it a Right Triangle?\n\t *\n\t * @param args\n\t * @throws IOException\n\t * ??\\?????¨??????\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\n\t\tint numsOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n\t\tfor (int i = 0; i < numsOfDataSets; i++) {\n\t\t\tString[] triangle = bufferedReader.readLine().split(\"\\\\s\");\n\n\t\t\tint[] sides = getIntArray(triangle);\n\t\t\tif (isRightTriangle(sides)) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}\n\n\t\tbufferedReader.close();\n\t}\n\n\t/**\n\t * 3???????????????????????´?§?????§???¢????????????????????????\n\t *\n\t * @param triangle\n\t * @return\n\t */\n\tprivate static boolean isRightTriangle(int[] sides) {\n\n\t\tArrays.sort(sides);\n\t\tif (calcSumPower(sides[0], sides[1]) == calcPower(sides[2])) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * String????????????int?????????????????????????????´??????\n\t *\n\t * @param strArray\n\t * String?????????\n\t * @return int?????????\n\t */\n\tprivate static int[] getIntArray(String[] strArray) {\n\t\tint[] intArray = new int[3];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\treturn intArray;\n\t}\n\n\t/**\n\t * ?????°???????????????????????´??????\n\t *\n\t * @param n\n\t * ???????????????\n\t * @return ?????°??????????????????\n\t */\n\tprivate static int calcPower(int n) {\n\t\treturn n * n;\n\t}\n\n\t/**\n\t * ????????°??????????????????????????´??????\n\t *\n\t * @param n\n\t * ??´??°1\n\t * @param m\n\t * ??´??°2\n\t * @return ????????°??????????????????\n\t */\n\tprivate static int calcSumPower(int n, int m) {\n\t\treturn calcPower(n) + calcPower(m);\n\t}\n\n}", "Main", "/** YES:??´?§?????§???¢??§?????? */\n\tprivate static final String RIGHT_TRIANGLE = \"YES\";", "RIGHT_TRIANGLE", "\"YES\"", "/** NO:??´?§?????§???¢??§????????? */\n\tprivate static final String NOT_RIGHT_TRIANGLE = \"NO\";", "NOT_RIGHT_TRIANGLE", "\"NO\"", "/**\n\t * AOJ Is it a Right Triangle?\n\t *\n\t * @param args\n\t * @throws IOException\n\t * ??\\?????¨??????\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\n\t\tint numsOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n\t\tfor (int i = 0; i < numsOfDataSets; i++) {\n\t\t\tString[] triangle = bufferedReader.readLine().split(\"\\\\s\");\n\n\t\t\tint[] sides = getIntArray(triangle);\n\t\t\tif (isRightTriangle(sides)) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}\n\n\t\tbufferedReader.close();\n\t}", "main", "{\n\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\n\t\tint numsOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n\t\tfor (int i = 0; i < numsOfDataSets; i++) {\n\t\t\tString[] triangle = bufferedReader.readLine().split(\"\\\\s\");\n\n\t\t\tint[] sides = getIntArray(triangle);\n\t\t\tif (isRightTriangle(sides)) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}\n\n\t\tbufferedReader.close();\n\t}", "BufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));", "bufferedReader", "new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in))", "int numsOfDataSets = Integer.parseInt(bufferedReader.readLine());", "numsOfDataSets", "Integer.parseInt(bufferedReader.readLine())", "Integer.parseInt", "Integer", "bufferedReader.readLine()", "bufferedReader.readLine", "bufferedReader", "for (int i = 0; i < numsOfDataSets; i++) {\n\t\t\tString[] triangle = bufferedReader.readLine().split(\"\\\\s\");\n\n\t\t\tint[] sides = getIntArray(triangle);\n\t\t\tif (isRightTriangle(sides)) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < numsOfDataSets", "i", "numsOfDataSets", "i++", "i++", "i", "{\n\t\t\tString[] triangle = bufferedReader.readLine().split(\"\\\\s\");\n\n\t\t\tint[] sides = getIntArray(triangle);\n\t\t\tif (isRightTriangle(sides)) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}", "{\n\t\t\tString[] triangle = bufferedReader.readLine().split(\"\\\\s\");\n\n\t\t\tint[] sides = getIntArray(triangle);\n\t\t\tif (isRightTriangle(sides)) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}", "String[] triangle = bufferedReader.readLine().split(\"\\\\s\");", "triangle", "bufferedReader.readLine().split(\"\\\\s\")", "bufferedReader.readLine().split", "bufferedReader.readLine()", "bufferedReader.readLine", "bufferedReader", "\"\\\\s\"", "int[] sides = getIntArray(triangle);", "sides", "getIntArray(triangle)", "getIntArray", "triangle", "if (isRightTriangle(sides)) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}", "isRightTriangle(sides)", "isRightTriangle", "sides", "{\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t}", "System.out.println(RIGHT_TRIANGLE)", "System.out.println", "System.out", "System", "System.out", "RIGHT_TRIANGLE", "{\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}", "System.out.println(NOT_RIGHT_TRIANGLE)", "System.out.println", "System.out", "System", "System.out", "NOT_RIGHT_TRIANGLE", "bufferedReader.close()", "bufferedReader.close", "bufferedReader", "String[] args", "args", "/**\n\t * 3???????????????????????´?§?????§???¢????????????????????????\n\t *\n\t * @param triangle\n\t * @return\n\t */\n\tprivate static boolean isRightTriangle(int[] sides) {\n\n\t\tArrays.sort(sides);\n\t\tif (calcSumPower(sides[0], sides[1]) == calcPower(sides[2])) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "isRightTriangle", "{\n\n\t\tArrays.sort(sides);\n\t\tif (calcSumPower(sides[0], sides[1]) == calcPower(sides[2])) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}", "Arrays.sort(sides)", "Arrays.sort", "Arrays", "sides", "if (calcSumPower(sides[0], sides[1]) == calcPower(sides[2])) {\n\t\t\treturn true;\n\t\t}", "calcSumPower(sides[0], sides[1]) == calcPower(sides[2])", "calcSumPower(sides[0], sides[1])", "calcSumPower", "sides[0]", "sides", "0", "sides[1]", "sides", "1", "calcPower(sides[2])", "calcPower", "sides[2]", "sides", "2", "{\n\t\t\treturn true;\n\t\t}", "return true;", "true", "return false;", "false", "int[] sides", "sides", "/**\n\t * String????????????int?????????????????????????????´??????\n\t *\n\t * @param strArray\n\t * String?????????\n\t * @return int?????????\n\t */\n\tprivate static int[] getIntArray(String[] strArray) {\n\t\tint[] intArray = new int[3];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\treturn intArray;\n\t}", "getIntArray", "{\n\t\tint[] intArray = new int[3];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\treturn intArray;\n\t}", "int[] intArray = new int[3];", "intArray", "new int[3]", "3", "for (int i = 0; i < 3; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}", "{\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}", "intArray[i] = Integer.parseInt(strArray[i])", "intArray[i]", "intArray", "i", "Integer.parseInt(strArray[i])", "Integer.parseInt", "Integer", "strArray[i]", "strArray", "i", "return intArray;", "intArray", "String[] strArray", "strArray", "/**\n\t * ?????°???????????????????????´??????\n\t *\n\t * @param n\n\t * ???????????????\n\t * @return ?????°??????????????????\n\t */\n\tprivate static int calcPower(int n) {\n\t\treturn n * n;\n\t}", "calcPower", "{\n\t\treturn n * n;\n\t}", "return n * n;", "n * n", "n", "n", "int n", "n", "/**\n\t * ????????°??????????????????????????´??????\n\t *\n\t * @param n\n\t * ??´??°1\n\t * @param m\n\t * ??´??°2\n\t * @return ????????°??????????????????\n\t */\n\tprivate static int calcSumPower(int n, int m) {\n\t\treturn calcPower(n) + calcPower(m);\n\t}", "calcSumPower", "{\n\t\treturn calcPower(n) + calcPower(m);\n\t}", "return calcPower(n) + calcPower(m);", "calcPower(n) + calcPower(m)", "calcPower(n)", "calcPower", "n", "calcPower(m)", "calcPower", "m", "int n", "n", "int m", "m", "public class Main {\n\n\t/** YES:??´?§?????§???¢??§?????? */\n\tprivate static final String RIGHT_TRIANGLE = \"YES\";\n\n\t/** NO:??´?§?????§???¢??§????????? */\n\tprivate static final String NOT_RIGHT_TRIANGLE = \"NO\";\n\n\t/**\n\t * AOJ Is it a Right Triangle?\n\t *\n\t * @param args\n\t * @throws IOException\n\t * ??\\?????¨??????\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\n\t\tint numsOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n\t\tfor (int i = 0; i < numsOfDataSets; i++) {\n\t\t\tString[] triangle = bufferedReader.readLine().split(\"\\\\s\");\n\n\t\t\tint[] sides = getIntArray(triangle);\n\t\t\tif (isRightTriangle(sides)) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}\n\n\t\tbufferedReader.close();\n\t}\n\n\t/**\n\t * 3???????????????????????´?§?????§???¢????????????????????????\n\t *\n\t * @param triangle\n\t * @return\n\t */\n\tprivate static boolean isRightTriangle(int[] sides) {\n\n\t\tArrays.sort(sides);\n\t\tif (calcSumPower(sides[0], sides[1]) == calcPower(sides[2])) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * String????????????int?????????????????????????????´??????\n\t *\n\t * @param strArray\n\t * String?????????\n\t * @return int?????????\n\t */\n\tprivate static int[] getIntArray(String[] strArray) {\n\t\tint[] intArray = new int[3];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\treturn intArray;\n\t}\n\n\t/**\n\t * ?????°???????????????????????´??????\n\t *\n\t * @param n\n\t * ???????????????\n\t * @return ?????°??????????????????\n\t */\n\tprivate static int calcPower(int n) {\n\t\treturn n * n;\n\t}\n\n\t/**\n\t * ????????°??????????????????????????´??????\n\t *\n\t * @param n\n\t * ??´??°1\n\t * @param m\n\t * ??´??°2\n\t * @return ????????°??????????????????\n\t */\n\tprivate static int calcSumPower(int n, int m) {\n\t\treturn calcPower(n) + calcPower(m);\n\t}\n\n}", "public class Main {\n\n\t/** YES:??´?§?????§???¢??§?????? */\n\tprivate static final String RIGHT_TRIANGLE = \"YES\";\n\n\t/** NO:??´?§?????§???¢??§????????? */\n\tprivate static final String NOT_RIGHT_TRIANGLE = \"NO\";\n\n\t/**\n\t * AOJ Is it a Right Triangle?\n\t *\n\t * @param args\n\t * @throws IOException\n\t * ??\\?????¨??????\n\t */\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader bufferedReader = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\n\t\tint numsOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n\t\tfor (int i = 0; i < numsOfDataSets; i++) {\n\t\t\tString[] triangle = bufferedReader.readLine().split(\"\\\\s\");\n\n\t\t\tint[] sides = getIntArray(triangle);\n\t\t\tif (isRightTriangle(sides)) {\n\t\t\t\tSystem.out.println(RIGHT_TRIANGLE);\n\t\t\t} else {\n\t\t\t\tSystem.out.println(NOT_RIGHT_TRIANGLE);\n\t\t\t}\n\t\t}\n\n\t\tbufferedReader.close();\n\t}\n\n\t/**\n\t * 3???????????????????????´?§?????§???¢????????????????????????\n\t *\n\t * @param triangle\n\t * @return\n\t */\n\tprivate static boolean isRightTriangle(int[] sides) {\n\n\t\tArrays.sort(sides);\n\t\tif (calcSumPower(sides[0], sides[1]) == calcPower(sides[2])) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\t/**\n\t * String????????????int?????????????????????????????´??????\n\t *\n\t * @param strArray\n\t * String?????????\n\t * @return int?????????\n\t */\n\tprivate static int[] getIntArray(String[] strArray) {\n\t\tint[] intArray = new int[3];\n\t\tfor (int i = 0; i < 3; i++) {\n\t\t\tintArray[i] = Integer.parseInt(strArray[i]);\n\t\t}\n\t\treturn intArray;\n\t}\n\n\t/**\n\t * ?????°???????????????????????´??????\n\t *\n\t * @param n\n\t * ???????????????\n\t * @return ?????°??????????????????\n\t */\n\tprivate static int calcPower(int n) {\n\t\treturn n * n;\n\t}\n\n\t/**\n\t * ????????°??????????????????????????´??????\n\t *\n\t * @param n\n\t * ??´??°1\n\t * @param m\n\t * ??´??°2\n\t * @return ????????°??????????????????\n\t */\n\tprivate static int calcSumPower(int n, int m) {\n\t\treturn calcPower(n) + calcPower(m);\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { /** YES:??´?§?????§???¢??§?????? */ private static final String RIGHT_TRIANGLE = "YES"; /** NO:??´?§?????§???¢??§????????? */ private static final String NOT_RIGHT_TRIANGLE = "NO"; /** * AOJ Is it a Right Triangle? * * @param args * @throws IOException * ??\?????¨?????? */ public static void main(String[] args) throws IOException { BufferedReader bufferedReader = new BufferedReader( new InputStreamReader(System.in)); int numsOfDataSets = Integer.parseInt(bufferedReader.readLine()); for (int i = 0; i < numsOfDataSets; i++) { String[] triangle = bufferedReader.readLine().split("\\s"); int[] sides = getIntArray(triangle); if (isRightTriangle(sides)) { System.out.println(RIGHT_TRIANGLE); } else { System.out.println(NOT_RIGHT_TRIANGLE); } } bufferedReader.close(); } /** * 3???????????????????????´?§?????§???¢???????????????????????? * * @param triangle * @return */ private static boolean isRightTriangle(int[] sides) { Arrays.sort(sides); if (calcSumPower(sides[0], sides[1]) == calcPower(sides[2])) { return true; } return false; } /** * String????????????int?????????????????????????????´?????? * * @param strArray * String????????? * @return int????????? */ private static int[] getIntArray(String[] strArray) { int[] intArray = new int[3]; for (int i = 0; i < 3; i++) { intArray[i] = Integer.parseInt(strArray[i]); } return intArray; } /** * ?????°???????????????????????´?????? * * @param n * ??????????????? * @return ?????°?????????????????? */ private static int calcPower(int n) { return n * n; } /** * ????????°??????????????????????????´?????? * * @param n * ??´??°1 * @param m * ??´??°2 * @return ????????°?????????????????? */ private static int calcSumPower(int n, int m) { return calcPower(n) + calcPower(m); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 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 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 29, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 51, 53 ], [ 46, 54 ], [ 54, 55 ], [ 54, 56 ], [ 45, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 45, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 70, 72 ], [ 65, 73 ], [ 73, 74 ], [ 73, 75 ], [ 64, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 64, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 84, 92 ], [ 92, 93 ], [ 92, 94 ], [ 83, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 83, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 6, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint c = s.nextInt();\n\t\t\t\n\t\t\tif((a * a + b * b) == c * c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((b * b + c * c) == a * a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((c * c + a * a) == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint c = s.nextInt();\n\t\t\t\n\t\t\tif((a * a + b * b) == c * c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((b * b + c * c) == a * a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((c * c + a * a) == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint c = s.nextInt();\n\t\t\t\n\t\t\tif((a * a + b * b) == c * c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((b * b + c * c) == a * a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((c * c + a * a) == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "main", "{\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint c = s.nextInt();\n\t\t\t\n\t\t\tif((a * a + b * b) == c * c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((b * b + c * c) == a * a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((c * c + a * a) == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}", "Scanner s = new Scanner(System.in);", "s", "new Scanner(System.in)", "int n = s.nextInt();", "n", "s.nextInt()", "s.nextInt", "s", "for(int i = 0; i < n; i++) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint c = s.nextInt();\n\t\t\t\n\t\t\tif((a * a + b * b) == c * c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((b * b + c * c) == a * a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((c * c + a * a) == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint c = s.nextInt();\n\t\t\t\n\t\t\tif((a * a + b * b) == c * c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((b * b + c * c) == a * a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((c * c + a * a) == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}", "{\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint c = s.nextInt();\n\t\t\t\n\t\t\tif((a * a + b * b) == c * c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((b * b + c * c) == a * a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((c * c + a * a) == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}", "int a = s.nextInt();", "a", "s.nextInt()", "s.nextInt", "s", "int b = s.nextInt();", "b", "s.nextInt()", "s.nextInt", "s", "int c = s.nextInt();", "c", "s.nextInt()", "s.nextInt", "s", "if((a * a + b * b) == c * c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((b * b + c * c) == a * a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((c * c + a * a) == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "(a * a + b * b) == c * c", "(a * a + b * b)", "a * a", "a", "a", "b * b", "b", "b", "c * c", "c", "c", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if((b * b + c * c) == a * a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((c * c + a * a) == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "(b * b + c * c) == a * a", "(b * b + c * c)", "b * b", "b", "b", "c * c", "c", "c", "a * a", "a", "a", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "if((c * c + a * a) == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "(c * c + a * a) == b * b", "(c * c + a * a)", "c * c", "c", "c", "a * a", "a", "a", "b * b", "b", "b", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint c = s.nextInt();\n\t\t\t\n\t\t\tif((a * a + b * b) == c * c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((b * b + c * c) == a * a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((c * c + a * a) == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\tint a = s.nextInt();\n\t\t\tint b = s.nextInt();\n\t\t\tint c = s.nextInt();\n\t\t\t\n\t\t\tif((a * a + b * b) == c * c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((b * b + c * c) == a * a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if((c * c + a * a) == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\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 s = new Scanner(System.in); int n = s.nextInt(); for(int i = 0; i < n; i++) { int a = s.nextInt(); int b = s.nextInt(); int c = s.nextInt(); if((a * a + b * b) == c * c) { System.out.println("YES"); } else if((b * b + c * c) == a * a) { System.out.println("YES"); } else if((c * c + a * a) == b * b) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 4, 18, 13, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 29, 34 ], [ 34, 35 ], [ 29, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 29, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 29, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 29, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 53, 64 ], [ 64, 65 ], [ 64, 66 ], [ 52, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 75, 77 ], [ 51, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 51, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 6, 92 ], [ 92, 93 ] ]
[ "import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n \tScanner scn = new Scanner(System.in);\n \tint n = scn.nextInt();\n \t\n \tfor(int i=0; i<n; i++){\n \t\tint a,b,c;\n \t\ta = scn.nextInt();\n \t\tb = scn.nextInt();\n \t\tc = scn.nextInt();\n \t\t\n \t\tif(Math.abs(a*a-b*b) == c*c || a*a+b*b == c*c){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t}\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n \tScanner scn = new Scanner(System.in);\n \tint n = scn.nextInt();\n \t\n \tfor(int i=0; i<n; i++){\n \t\tint a,b,c;\n \t\ta = scn.nextInt();\n \t\tb = scn.nextInt();\n \t\tc = scn.nextInt();\n \t\t\n \t\tif(Math.abs(a*a-b*b) == c*c || a*a+b*b == c*c){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t}\n }\n}", "Main", "public static void main(String[] args){\n \tScanner scn = new Scanner(System.in);\n \tint n = scn.nextInt();\n \t\n \tfor(int i=0; i<n; i++){\n \t\tint a,b,c;\n \t\ta = scn.nextInt();\n \t\tb = scn.nextInt();\n \t\tc = scn.nextInt();\n \t\t\n \t\tif(Math.abs(a*a-b*b) == c*c || a*a+b*b == c*c){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t}\n }", "main", "{\n \tScanner scn = new Scanner(System.in);\n \tint n = scn.nextInt();\n \t\n \tfor(int i=0; i<n; i++){\n \t\tint a,b,c;\n \t\ta = scn.nextInt();\n \t\tb = scn.nextInt();\n \t\tc = scn.nextInt();\n \t\t\n \t\tif(Math.abs(a*a-b*b) == c*c || a*a+b*b == c*c){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t}\n }", "Scanner scn = new Scanner(System.in);", "scn", "new Scanner(System.in)", "int n = scn.nextInt();", "n", "scn.nextInt()", "scn.nextInt", "scn", "for(int i=0; i<n; i++){\n \t\tint a,b,c;\n \t\ta = scn.nextInt();\n \t\tb = scn.nextInt();\n \t\tc = scn.nextInt();\n \t\t\n \t\tif(Math.abs(a*a-b*b) == c*c || a*a+b*b == c*c){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n \t\tint a,b,c;\n \t\ta = scn.nextInt();\n \t\tb = scn.nextInt();\n \t\tc = scn.nextInt();\n \t\t\n \t\tif(Math.abs(a*a-b*b) == c*c || a*a+b*b == c*c){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t}", "{\n \t\tint a,b,c;\n \t\ta = scn.nextInt();\n \t\tb = scn.nextInt();\n \t\tc = scn.nextInt();\n \t\t\n \t\tif(Math.abs(a*a-b*b) == c*c || a*a+b*b == c*c){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t}", "int a", "a", "b", "b", "c;", "c", "a = scn.nextInt()", "a", "scn.nextInt()", "scn.nextInt", "scn", "b = scn.nextInt()", "b", "scn.nextInt()", "scn.nextInt", "scn", "c = scn.nextInt()", "c", "scn.nextInt()", "scn.nextInt", "scn", "if(Math.abs(a*a-b*b) == c*c || a*a+b*b == c*c){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}", "Math.abs(a*a-b*b) == c*c || a*a+b*b == c*c", "Math.abs(a*a-b*b) == c*c", "Math.abs(a*a-b*b)", "Math.abs", "Math", "a*a-b*b", "a*a", "a", "a", "b*b", "b", "b", "c*c", "c", "c", "a*a+b*b == c*c", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "c*c", "c", "c", "{\n \t\t\tSystem.out.println(\"YES\");\n \t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner scn = new Scanner(System.in); int n = scn.nextInt(); for(int i=0; i<n; i++){ int a,b,c; a = scn.nextInt(); b = scn.nextInt(); c = scn.nextInt(); if(Math.abs(a*a-b*b) == c*c || a*a+b*b == c*c){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 14, 2, 13, 17, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 18, 13, 13, 2, 2, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 8, 18, 13, 13, 17, 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 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 21, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 28, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 40, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 40, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 61, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 63, 67 ], [ 67, 68 ], [ 67, 69 ], [ 62, 70 ], [ 70, 71 ], [ 70, 72 ], [ 61, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 73, 81 ], [ 81, 82 ], [ 81, 83 ], [ 61, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 84, 92 ], [ 92, 93 ], [ 92, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 100, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 95, 106 ], [ 107, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 113, 118 ], [ 6, 119 ], [ 119, 120 ] ]
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n boolean[] judge = new boolean[n];\n if(n > 1000) n = 1000;\n for(int i = 0;i < n;i++){\n int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt();\n judge[i] = (a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a);\n }\n for(int i = 0;i < n;i++){\n System.out.println(judge[i] ? \"YES\" : \"NO\");\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n boolean[] judge = new boolean[n];\n if(n > 1000) n = 1000;\n for(int i = 0;i < n;i++){\n int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt();\n judge[i] = (a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a);\n }\n for(int i = 0;i < n;i++){\n System.out.println(judge[i] ? \"YES\" : \"NO\");\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n boolean[] judge = new boolean[n];\n if(n > 1000) n = 1000;\n for(int i = 0;i < n;i++){\n int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt();\n judge[i] = (a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a);\n }\n for(int i = 0;i < n;i++){\n System.out.println(judge[i] ? \"YES\" : \"NO\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n boolean[] judge = new boolean[n];\n if(n > 1000) n = 1000;\n for(int i = 0;i < n;i++){\n int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt();\n judge[i] = (a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a);\n }\n for(int i = 0;i < n;i++){\n System.out.println(judge[i] ? \"YES\" : \"NO\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "boolean[] judge = new boolean[n];", "judge", "new boolean[n]", "n", "if(n > 1000) n = 1000;", "n > 1000", "n", "1000", "n = 1000", "n", "1000", "for(int i = 0;i < n;i++){\n int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt();\n judge[i] = (a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt();\n judge[i] = (a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a);\n }", "{\n int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt();\n judge[i] = (a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a);\n }", "int a = sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b = sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "c = sc.nextInt();", "c", "sc.nextInt()", "sc.nextInt", "sc", "judge[i] = (a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a)", "judge[i]", "judge", "i", "(a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a)", "(a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a)", "(a * a + b * b == c * c)", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "c * c", "c", "c", "(a * a + c * c == b * b)", "a * a + c * c", "a * a", "a", "a", "c * c", "c", "c", "b * b", "b", "b", "(b * b + c * c == a * a)", "b * b + c * c", "b * b", "b", "b", "c * c", "c", "c", "a * a", "a", "a", "for(int i = 0;i < n;i++){\n System.out.println(judge[i] ? \"YES\" : \"NO\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n System.out.println(judge[i] ? \"YES\" : \"NO\");\n }", "{\n System.out.println(judge[i] ? \"YES\" : \"NO\");\n }", "System.out.println(judge[i] ? \"YES\" : \"NO\")", "System.out.println", "System.out", "System", "System.out", "judge[i] ? \"YES\" : \"NO\"", "judge[i]", "judge", "i", "\"YES\"", "\"NO\"", "String[] args", "args" ]
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); boolean[] judge = new boolean[n]; if(n > 1000) n = 1000; for(int i = 0;i < n;i++){ int a = sc.nextInt(),b = sc.nextInt(),c = sc.nextInt(); judge[i] = (a * a + b * b == c * c) || (a * a + c * c == b * b) || (b * b + c * c == a * a); } for(int i = 0;i < n;i++){ System.out.println(judge[i] ? "YES" : "NO"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 2, 4, 18, 13, 17, 1, 40, 13, 30, 30, 41, 13, 41, 13, 41, 13, 0, 13, 2, 4, 18, 13, 2, 13, 17, 4, 18, 13, 2, 13, 17, 0, 13, 2, 4, 18, 13, 2, 2, 13, 17, 17, 4, 18, 13, 2, 2, 13, 17, 17, 0, 13, 2, 4, 18, 13, 2, 2, 13, 17, 17, 4, 18, 13, 2, 2, 13, 17, 17, 14, 2, 2, 2, 2, 13, 13, 13, 2, 2, 13, 13, 13, 2, 2, 13, 13, 13, 4, 18, 13, 17, 4, 18, 13, 17, 29, 13, 23, 13, 12, 13, 30, 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, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 13, 2, 13, 17, 1, 40, 13, 30, 30, 38, 5, 13, 30, 3, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 20, 0, 13, 4, 13, 13, 4, 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 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 15, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 15, 27 ], [ 27, 28 ], [ 28, 29 ], [ 15, 30 ], [ 31, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 34, 35 ], [ 31, 36 ], [ 36, 37 ], [ 31, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 44, 45 ], [ 44, 46 ], [ 40, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 50, 52 ], [ 31, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 55, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 31, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 74, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 31, 91 ], [ 91, 92 ], [ 93, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 93, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 93, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 104, 108 ], [ 91, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 91, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 11, 117 ], [ 117, 118 ], [ 9, 119 ], [ 119, 120 ], [ 7, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 126, 128 ], [ 124, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 124, 134 ], [ 134, 135 ], [ 135, 136 ], [ 124, 137 ], [ 138, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 121, 148 ], [ 148, 149 ], [ 7, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 156, 157 ], [ 156, 158 ], [ 152, 159 ], [ 159, 160 ], [ 152, 161 ], [ 161, 162 ], [ 161, 163 ], [ 163, 164 ], [ 164, 165 ], [ 163, 166 ], [ 166, 167 ], [ 167, 168 ], [ 152, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 169, 174 ], [ 174, 175 ], [ 174, 176 ], [ 169, 177 ], [ 177, 178 ], [ 178, 179 ], [ 169, 180 ], [ 181, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 182, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 188, 193 ], [ 193, 194 ], [ 193, 195 ], [ 188, 196 ], [ 196, 197 ], [ 197, 198 ], [ 188, 199 ], [ 200, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 203, 204 ], [ 204, 205 ], [ 200, 206 ], [ 206, 207 ], [ 207, 208 ], [ 206, 209 ], [ 209, 210 ], [ 210, 211 ], [ 209, 212 ], [ 152, 213 ], [ 213, 214 ], [ 213, 215 ], [ 152, 216 ], [ 216, 217 ], [ 216, 218 ], [ 218, 219 ], [ 218, 220 ], [ 152, 221 ], [ 221, 222 ], [ 221, 223 ], [ 150, 224 ], [ 224, 225 ] ]
[ "import java.io.*;\nimport java.util.*;\n\nclass Main{\n\tprivate static ArrayList<String> tri_check(ArrayList<Integer> a){\n\t\tArrayList<String> b = new ArrayList<String>();\n\t\t\n\t\tfor(int i = 0;i<a.size()/3;i++){\n\t\t\tint x2,y2,z2;\n\n\t\t\tx2 = a.get(i*3)*a.get(i*3);\n\t\t\ty2 = a.get(i*3+1)*a.get(i*3+1);\n\t\t\tz2 = a.get(i*3+2)*a.get(i*3+2);\n\t\t\t\n\t\t\tif((x2+ y2) == z2 || (x2 + z2) == y2 || (y2 + z2) == x2)b.add(\"YES\"); \n\t\t\telse b.add(\"NO\");\n\t\t\t}\n\t\treturn b;\n\t}\n\tprivate static void print_tri(ArrayList<String> a){\n\t\tfor(int i = 0;i<a.size();i++){\n\t\t\tSystem.out.println(a.get(i));\n\t\t}\n\t}\n\t\tpublic static void main(String args[]) throws IOException{\n\t\t\tArrayList<Integer> tri = new ArrayList<Integer>();\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\t\n\t\t\tint a;\n\t\t\t\n\t\t\ta = Integer.parseInt(scan.next());\n\t\t\t\n\t\t\tfor(int i = a;i > 0;i--){\n\t\t\t\ttry{\n\t\t\t\t\tfor(int j = 0;j<3;j++){\n\t\t\t\t\t\tString str1 = scan.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttri.add(Integer.parseInt(str1));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException e){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrayList<String> res = new ArrayList<String>();\n\t\t\tres = tri_check(tri);\n\t\t\tprint_tri(res);\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main{\n\tprivate static ArrayList<String> tri_check(ArrayList<Integer> a){\n\t\tArrayList<String> b = new ArrayList<String>();\n\t\t\n\t\tfor(int i = 0;i<a.size()/3;i++){\n\t\t\tint x2,y2,z2;\n\n\t\t\tx2 = a.get(i*3)*a.get(i*3);\n\t\t\ty2 = a.get(i*3+1)*a.get(i*3+1);\n\t\t\tz2 = a.get(i*3+2)*a.get(i*3+2);\n\t\t\t\n\t\t\tif((x2+ y2) == z2 || (x2 + z2) == y2 || (y2 + z2) == x2)b.add(\"YES\"); \n\t\t\telse b.add(\"NO\");\n\t\t\t}\n\t\treturn b;\n\t}\n\tprivate static void print_tri(ArrayList<String> a){\n\t\tfor(int i = 0;i<a.size();i++){\n\t\t\tSystem.out.println(a.get(i));\n\t\t}\n\t}\n\t\tpublic static void main(String args[]) throws IOException{\n\t\t\tArrayList<Integer> tri = new ArrayList<Integer>();\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\t\n\t\t\tint a;\n\t\t\t\n\t\t\ta = Integer.parseInt(scan.next());\n\t\t\t\n\t\t\tfor(int i = a;i > 0;i--){\n\t\t\t\ttry{\n\t\t\t\t\tfor(int j = 0;j<3;j++){\n\t\t\t\t\t\tString str1 = scan.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttri.add(Integer.parseInt(str1));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException e){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrayList<String> res = new ArrayList<String>();\n\t\t\tres = tri_check(tri);\n\t\t\tprint_tri(res);\n\t}\n}", "Main", "private static ArrayList<String> tri_check(ArrayList<Integer> a){\n\t\tArrayList<String> b = new ArrayList<String>();\n\t\t\n\t\tfor(int i = 0;i<a.size()/3;i++){\n\t\t\tint x2,y2,z2;\n\n\t\t\tx2 = a.get(i*3)*a.get(i*3);\n\t\t\ty2 = a.get(i*3+1)*a.get(i*3+1);\n\t\t\tz2 = a.get(i*3+2)*a.get(i*3+2);\n\t\t\t\n\t\t\tif((x2+ y2) == z2 || (x2 + z2) == y2 || (y2 + z2) == x2)b.add(\"YES\"); \n\t\t\telse b.add(\"NO\");\n\t\t\t}\n\t\treturn b;\n\t}", "tri_check", "{\n\t\tArrayList<String> b = new ArrayList<String>();\n\t\t\n\t\tfor(int i = 0;i<a.size()/3;i++){\n\t\t\tint x2,y2,z2;\n\n\t\t\tx2 = a.get(i*3)*a.get(i*3);\n\t\t\ty2 = a.get(i*3+1)*a.get(i*3+1);\n\t\t\tz2 = a.get(i*3+2)*a.get(i*3+2);\n\t\t\t\n\t\t\tif((x2+ y2) == z2 || (x2 + z2) == y2 || (y2 + z2) == x2)b.add(\"YES\"); \n\t\t\telse b.add(\"NO\");\n\t\t\t}\n\t\treturn b;\n\t}", "ArrayList<String> b = new ArrayList<String>();", "b", "new ArrayList<String>()", "for(int i = 0;i<a.size()/3;i++){\n\t\t\tint x2,y2,z2;\n\n\t\t\tx2 = a.get(i*3)*a.get(i*3);\n\t\t\ty2 = a.get(i*3+1)*a.get(i*3+1);\n\t\t\tz2 = a.get(i*3+2)*a.get(i*3+2);\n\t\t\t\n\t\t\tif((x2+ y2) == z2 || (x2 + z2) == y2 || (y2 + z2) == x2)b.add(\"YES\"); \n\t\t\telse b.add(\"NO\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<a.size()/3", "i", "a.size()/3", "a.size()", "a.size", "a", "3", "i++", "i++", "i", "{\n\t\t\tint x2,y2,z2;\n\n\t\t\tx2 = a.get(i*3)*a.get(i*3);\n\t\t\ty2 = a.get(i*3+1)*a.get(i*3+1);\n\t\t\tz2 = a.get(i*3+2)*a.get(i*3+2);\n\t\t\t\n\t\t\tif((x2+ y2) == z2 || (x2 + z2) == y2 || (y2 + z2) == x2)b.add(\"YES\"); \n\t\t\telse b.add(\"NO\");\n\t\t\t}", "{\n\t\t\tint x2,y2,z2;\n\n\t\t\tx2 = a.get(i*3)*a.get(i*3);\n\t\t\ty2 = a.get(i*3+1)*a.get(i*3+1);\n\t\t\tz2 = a.get(i*3+2)*a.get(i*3+2);\n\t\t\t\n\t\t\tif((x2+ y2) == z2 || (x2 + z2) == y2 || (y2 + z2) == x2)b.add(\"YES\"); \n\t\t\telse b.add(\"NO\");\n\t\t\t}", "int x2", "x2", "y2", "y2", "z2;", "z2", "x2 = a.get(i*3)*a.get(i*3)", "x2", "a.get(i*3)*a.get(i*3)", "a.get(i*3)", "a.get", "a", "i*3", "i", "3", "a.get(i*3)", "a.get", "a", "i*3", "i", "3", "y2 = a.get(i*3+1)*a.get(i*3+1)", "y2", "a.get(i*3+1)*a.get(i*3+1)", "a.get(i*3+1)", "a.get", "a", "i*3+1", "i*3", "i", "3", "1", "a.get(i*3+1)", "a.get", "a", "i*3+1", "i*3", "i", "3", "1", "z2 = a.get(i*3+2)*a.get(i*3+2)", "z2", "a.get(i*3+2)*a.get(i*3+2)", "a.get(i*3+2)", "a.get", "a", "i*3+2", "i*3", "i", "3", "2", "a.get(i*3+2)", "a.get", "a", "i*3+2", "i*3", "i", "3", "2", "if((x2+ y2) == z2 || (x2 + z2) == y2 || (y2 + z2) == x2)b.add(\"YES\"); \n\t\t\telse b.add(\"NO\");", "(x2+ y2) == z2 || (x2 + z2) == y2 || (y2 + z2) == x2", "(x2+ y2) == z2 || (x2 + z2) == y2 || (y2 + z2) == x2", "(x2+ y2) == z2", "(x2+ y2)", "x2", "y2", "z2", "(x2 + z2) == y2", "(x2 + z2)", "x2", "z2", "y2", "(y2 + z2) == x2", "(y2 + z2)", "y2", "z2", "x2", "b.add(\"YES\")", "b.add", "b", "\"YES\"", "b.add(\"NO\")", "b.add", "b", "\"NO\"", "return b;", "b", "ArrayList<Integer> a", "a", "private static void print_tri(ArrayList<String> a){\n\t\tfor(int i = 0;i<a.size();i++){\n\t\t\tSystem.out.println(a.get(i));\n\t\t}\n\t}", "print_tri", "{\n\t\tfor(int i = 0;i<a.size();i++){\n\t\t\tSystem.out.println(a.get(i));\n\t\t}\n\t}", "for(int i = 0;i<a.size();i++){\n\t\t\tSystem.out.println(a.get(i));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<a.size()", "i", "a.size()", "a.size", "a", "i++", "i++", "i", "{\n\t\t\tSystem.out.println(a.get(i));\n\t\t}", "{\n\t\t\tSystem.out.println(a.get(i));\n\t\t}", "System.out.println(a.get(i))", "System.out.println", "System.out", "System", "System.out", "a.get(i)", "a.get", "a", "i", "ArrayList<String> a", "a", "public static void main(String args[]) throws IOException{\n\t\t\tArrayList<Integer> tri = new ArrayList<Integer>();\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\t\n\t\t\tint a;\n\t\t\t\n\t\t\ta = Integer.parseInt(scan.next());\n\t\t\t\n\t\t\tfor(int i = a;i > 0;i--){\n\t\t\t\ttry{\n\t\t\t\t\tfor(int j = 0;j<3;j++){\n\t\t\t\t\t\tString str1 = scan.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttri.add(Integer.parseInt(str1));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException e){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrayList<String> res = new ArrayList<String>();\n\t\t\tres = tri_check(tri);\n\t\t\tprint_tri(res);\n\t}", "main", "{\n\t\t\tArrayList<Integer> tri = new ArrayList<Integer>();\n\t\t\tScanner scan = new Scanner(System.in);\n\t\t\t\n\t\t\tint a;\n\t\t\t\n\t\t\ta = Integer.parseInt(scan.next());\n\t\t\t\n\t\t\tfor(int i = a;i > 0;i--){\n\t\t\t\ttry{\n\t\t\t\t\tfor(int j = 0;j<3;j++){\n\t\t\t\t\t\tString str1 = scan.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttri.add(Integer.parseInt(str1));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException e){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tArrayList<String> res = new ArrayList<String>();\n\t\t\tres = tri_check(tri);\n\t\t\tprint_tri(res);\n\t}", "ArrayList<Integer> tri = new ArrayList<Integer>();", "tri", "new ArrayList<Integer>()", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int a;", "a", "a = Integer.parseInt(scan.next())", "a", "Integer.parseInt(scan.next())", "Integer.parseInt", "Integer", "scan.next()", "scan.next", "scan", "for(int i = a;i > 0;i--){\n\t\t\t\ttry{\n\t\t\t\t\tfor(int j = 0;j<3;j++){\n\t\t\t\t\t\tString str1 = scan.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttri.add(Integer.parseInt(str1));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException e){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "int i = a;", "int i = a;", "i", "a", "i > 0", "i", "0", "i--", "i--", "i", "{\n\t\t\t\ttry{\n\t\t\t\t\tfor(int j = 0;j<3;j++){\n\t\t\t\t\t\tString str1 = scan.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttri.add(Integer.parseInt(str1));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException e){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\ttry{\n\t\t\t\t\tfor(int j = 0;j<3;j++){\n\t\t\t\t\t\tString str1 = scan.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttri.add(Integer.parseInt(str1));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException e){\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}", "try{\n\t\t\t\t\tfor(int j = 0;j<3;j++){\n\t\t\t\t\t\tString str1 = scan.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttri.add(Integer.parseInt(str1));\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\tcatch(NumberFormatException e){\n\t\t\t\t\tbreak;\n\t\t\t\t}", "catch(NumberFormatException e){\n\t\t\t\t\tbreak;\n\t\t\t\t}", "NumberFormatException e", "{\n\t\t\t\t\tbreak;\n\t\t\t\t}", "break;", "{\n\t\t\t\t\tfor(int j = 0;j<3;j++){\n\t\t\t\t\t\tString str1 = scan.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttri.add(Integer.parseInt(str1));\n\t\t\t\t\t\t}\n\t\t\t\t\t}", "for(int j = 0;j<3;j++){\n\t\t\t\t\t\tString str1 = scan.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttri.add(Integer.parseInt(str1));\n\t\t\t\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j<3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\t\t\tString str1 = scan.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttri.add(Integer.parseInt(str1));\n\t\t\t\t\t\t}", "{\n\t\t\t\t\t\tString str1 = scan.next();\n\t\t\t\t\t\t\n\t\t\t\t\t\ttri.add(Integer.parseInt(str1));\n\t\t\t\t\t\t}", "String str1 = scan.next();", "str1", "scan.next()", "scan.next", "scan", "tri.add(Integer.parseInt(str1))", "tri.add", "tri", "Integer.parseInt(str1)", "Integer.parseInt", "Integer", "str1", "ArrayList<String> res = new ArrayList<String>();", "res", "new ArrayList<String>()", "res = tri_check(tri)", "res", "tri_check(tri)", "tri_check", "tri", "print_tri(res)", "print_tri", "res", "String args[]", "args" ]
import java.io.*; import java.util.*; class Main{ private static ArrayList<String> tri_check(ArrayList<Integer> a){ ArrayList<String> b = new ArrayList<String>(); for(int i = 0;i<a.size()/3;i++){ int x2,y2,z2; x2 = a.get(i*3)*a.get(i*3); y2 = a.get(i*3+1)*a.get(i*3+1); z2 = a.get(i*3+2)*a.get(i*3+2); if((x2+ y2) == z2 || (x2 + z2) == y2 || (y2 + z2) == x2)b.add("YES"); else b.add("NO"); } return b; } private static void print_tri(ArrayList<String> a){ for(int i = 0;i<a.size();i++){ System.out.println(a.get(i)); } } public static void main(String args[]) throws IOException{ ArrayList<Integer> tri = new ArrayList<Integer>(); Scanner scan = new Scanner(System.in); int a; a = Integer.parseInt(scan.next()); for(int i = a;i > 0;i--){ try{ for(int j = 0;j<3;j++){ String str1 = scan.next(); tri.add(Integer.parseInt(str1)); } } catch(NumberFormatException e){ break; } } ArrayList<String> res = new ArrayList<String>(); res = tri_check(tri); print_tri(res); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 17, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 13, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 103, 8 ], [ 103, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 32, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 32, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 32, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 32, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 63, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 62, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 62, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 9, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n for(int i=0; i<n; i++) {\n int[] ia = new int[3];\n ia[0] = scanner.nextInt();\n ia[1] = scanner.nextInt();\n ia[2] = scanner.nextInt();\n Arrays.sort(ia);\n if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }\n }\n}", "import java.util.Arrays;", "Arrays", "java.util", "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 int n = scanner.nextInt();\n for(int i=0; i<n; i++) {\n int[] ia = new int[3];\n ia[0] = scanner.nextInt();\n ia[1] = scanner.nextInt();\n ia[2] = scanner.nextInt();\n Arrays.sort(ia);\n if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n for(int i=0; i<n; i++) {\n int[] ia = new int[3];\n ia[0] = scanner.nextInt();\n ia[1] = scanner.nextInt();\n ia[2] = scanner.nextInt();\n Arrays.sort(ia);\n if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n for(int i=0; i<n; i++) {\n int[] ia = new int[3];\n ia[0] = scanner.nextInt();\n ia[1] = scanner.nextInt();\n ia[2] = scanner.nextInt();\n Arrays.sort(ia);\n if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "for(int i=0; i<n; i++) {\n int[] ia = new int[3];\n ia[0] = scanner.nextInt();\n ia[1] = scanner.nextInt();\n ia[2] = scanner.nextInt();\n Arrays.sort(ia);\n if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n int[] ia = new int[3];\n ia[0] = scanner.nextInt();\n ia[1] = scanner.nextInt();\n ia[2] = scanner.nextInt();\n Arrays.sort(ia);\n if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }", "{\n int[] ia = new int[3];\n ia[0] = scanner.nextInt();\n ia[1] = scanner.nextInt();\n ia[2] = scanner.nextInt();\n Arrays.sort(ia);\n if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }", "int[] ia = new int[3];", "ia", "new int[3]", "3", "ia[0] = scanner.nextInt()", "ia[0]", "ia", "0", "scanner.nextInt()", "scanner.nextInt", "scanner", "ia[1] = scanner.nextInt()", "ia[1]", "ia", "1", "scanner.nextInt()", "scanner.nextInt", "scanner", "ia[2] = scanner.nextInt()", "ia[2]", "ia", "2", "scanner.nextInt()", "scanner.nextInt", "scanner", "Arrays.sort(ia)", "Arrays.sort", "Arrays", "ia", "if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }", "ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]", "ia[0]*ia[0] + ia[1]*ia[1]", "ia[0]*ia[0]", "ia[0]", "ia", "0", "ia[0]", "ia", "0", "ia[1]*ia[1]", "ia[1]", "ia", "1", "ia[1]", "ia", "1", "ia[2]*ia[2]", "ia[2]", "ia", "2", "ia[2]", "ia", "2", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n for(int i=0; i<n; i++) {\n int[] ia = new int[3];\n ia[0] = scanner.nextInt();\n ia[1] = scanner.nextInt();\n ia[2] = scanner.nextInt();\n Arrays.sort(ia);\n if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n for(int i=0; i<n; i++) {\n int[] ia = new int[3];\n ia[0] = scanner.nextInt();\n ia[1] = scanner.nextInt();\n ia[2] = scanner.nextInt();\n Arrays.sort(ia);\n if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }\n }\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); for(int i=0; i<n; i++) { int[] ia = new int[3]; ia[0] = scanner.nextInt(); ia[1] = scanner.nextInt(); ia[2] = scanner.nextInt(); Arrays.sort(ia); if(ia[0]*ia[0] + ia[1]*ia[1] == ia[2]*ia[2]) { System.out.println("YES"); }else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 8, 2, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 17, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 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 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 23, 32 ], [ 32, 33 ], [ 32, 34 ], [ 23, 35 ], [ 35, 36 ], [ 35, 37 ], [ 23, 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 ], [ 51, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 51, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 51, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 51, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 86, 88 ], [ 81, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 90, 94 ], [ 94, 95 ], [ 94, 96 ], [ 89, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 101, 102 ], [ 101, 103 ], [ 80, 104 ], [ 80, 105 ], [ 51, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 23, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 21, 116 ], [ 116, 117 ] ]
[ "import java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\nimport java.util.Arrays;\nimport java.util.Collections;\n\nclass Main {\n public static void main (String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n StringBuilder sb = new StringBuilder(\"\");\n int[] sides = new int[3];\n for (int i = 0; i < n; i++) {\n sides[0] = sc.nextInt();\n sides[1] = sc.nextInt();\n sides[2] = sc.nextInt();\n Arrays.sort(sides);\n sb.append((sides[2] * sides[2] == sides[1] * sides[1] + sides[0] * sides[0]) ? \"YES\" : \"NO\");\n sb.append('\\n');\n }\n System.out.print(sb);\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Collections;", "Collections", "java.util", "class Main {\n public static void main (String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n StringBuilder sb = new StringBuilder(\"\");\n int[] sides = new int[3];\n for (int i = 0; i < n; i++) {\n sides[0] = sc.nextInt();\n sides[1] = sc.nextInt();\n sides[2] = sc.nextInt();\n Arrays.sort(sides);\n sb.append((sides[2] * sides[2] == sides[1] * sides[1] + sides[0] * sides[0]) ? \"YES\" : \"NO\");\n sb.append('\\n');\n }\n System.out.print(sb);\n }\n}", "Main", "public static void main (String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n StringBuilder sb = new StringBuilder(\"\");\n int[] sides = new int[3];\n for (int i = 0; i < n; i++) {\n sides[0] = sc.nextInt();\n sides[1] = sc.nextInt();\n sides[2] = sc.nextInt();\n Arrays.sort(sides);\n sb.append((sides[2] * sides[2] == sides[1] * sides[1] + sides[0] * sides[0]) ? \"YES\" : \"NO\");\n sb.append('\\n');\n }\n System.out.print(sb);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n StringBuilder sb = new StringBuilder(\"\");\n int[] sides = new int[3];\n for (int i = 0; i < n; i++) {\n sides[0] = sc.nextInt();\n sides[1] = sc.nextInt();\n sides[2] = sc.nextInt();\n Arrays.sort(sides);\n sb.append((sides[2] * sides[2] == sides[1] * sides[1] + sides[0] * sides[0]) ? \"YES\" : \"NO\");\n sb.append('\\n');\n }\n System.out.print(sb);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "StringBuilder sb = new StringBuilder(\"\");", "sb", "new StringBuilder(\"\")", "int[] sides = new int[3];", "sides", "new int[3]", "3", "for (int i = 0; i < n; i++) {\n sides[0] = sc.nextInt();\n sides[1] = sc.nextInt();\n sides[2] = sc.nextInt();\n Arrays.sort(sides);\n sb.append((sides[2] * sides[2] == sides[1] * sides[1] + sides[0] * sides[0]) ? \"YES\" : \"NO\");\n sb.append('\\n');\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sides[0] = sc.nextInt();\n sides[1] = sc.nextInt();\n sides[2] = sc.nextInt();\n Arrays.sort(sides);\n sb.append((sides[2] * sides[2] == sides[1] * sides[1] + sides[0] * sides[0]) ? \"YES\" : \"NO\");\n sb.append('\\n');\n }", "{\n sides[0] = sc.nextInt();\n sides[1] = sc.nextInt();\n sides[2] = sc.nextInt();\n Arrays.sort(sides);\n sb.append((sides[2] * sides[2] == sides[1] * sides[1] + sides[0] * sides[0]) ? \"YES\" : \"NO\");\n sb.append('\\n');\n }", "sides[0] = sc.nextInt()", "sides[0]", "sides", "0", "sc.nextInt()", "sc.nextInt", "sc", "sides[1] = sc.nextInt()", "sides[1]", "sides", "1", "sc.nextInt()", "sc.nextInt", "sc", "sides[2] = sc.nextInt()", "sides[2]", "sides", "2", "sc.nextInt()", "sc.nextInt", "sc", "Arrays.sort(sides)", "Arrays.sort", "Arrays", "sides", "sb.append((sides[2] * sides[2] == sides[1] * sides[1] + sides[0] * sides[0]) ? \"YES\" : \"NO\")", "sb.append", "sb", "(sides[2] * sides[2] == sides[1] * sides[1] + sides[0] * sides[0]) ? \"YES\" : \"NO\"", "(sides[2] * sides[2] == sides[1] * sides[1] + sides[0] * sides[0])", "sides[2] * sides[2]", "sides[2]", "sides", "2", "sides[2]", "sides", "2", "sides[1] * sides[1] + sides[0] * sides[0]", "sides[1] * sides[1]", "sides[1]", "sides", "1", "sides[1]", "sides", "1", "sides[0] * sides[0]", "sides[0]", "sides", "0", "sides[0]", "sides", "0", "\"YES\"", "\"NO\"", "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.IOException; import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; import java.util.Arrays; import java.util.Collections; class Main { public static void main (String[] args) throws IOException { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); StringBuilder sb = new StringBuilder(""); int[] sides = new int[3]; for (int i = 0; i < n; i++) { sides[0] = sc.nextInt(); sides[1] = sc.nextInt(); sides[2] = sc.nextInt(); Arrays.sort(sides); sb.append((sides[2] * sides[2] == sides[1] * sides[1] + sides[0] * sides[0]) ? "YES" : "NO"); sb.append('\n'); } System.out.print(sb); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 14, 2, 18, 13, 13, 13, 0, 13, 18, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 14, 2, 18, 13, 13, 13, 0, 13, 2, 18, 13, 13, 18, 13, 13, 14, 2, 2, 13, 13, 13, 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 ], [ 142, 11 ], [ 142, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 38, 50 ], [ 50, 51 ], [ 50, 52 ], [ 38, 54 ], [ 54, 55 ], [ 54, 56 ], [ 38, 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 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 77, 79 ], [ 69, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 38, 91 ], [ 91, 92 ], [ 91, 93 ], [ 38, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 99, 100 ], [ 99, 101 ], [ 94, 102 ], [ 102, 103 ], [ 103, 104 ], [ 94, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 106, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 118, 120 ], [ 38, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 122, 126 ], [ 121, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 121, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 12, 139 ], [ 139, 140 ], [ 0, 141 ], [ 141, 142 ], [ 141, 143 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint[] m = new int[3];\n\t\t\tint max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tm[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(m[j]>max)max=m[j];\n\t\t\t}\n\t\t\tint tmp=0;\n\t\t\tfor(int j=0;j<3;j++)if(m[j]!=max)tmp+=m[j]*m[j];\n\t\t\tif(max*max==tmp)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint[] m = new int[3];\n\t\t\tint max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tm[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(m[j]>max)max=m[j];\n\t\t\t}\n\t\t\tint tmp=0;\n\t\t\tfor(int j=0;j<3;j++)if(m[j]!=max)tmp+=m[j]*m[j];\n\t\t\tif(max*max==tmp)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint[] m = new int[3];\n\t\t\tint max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tm[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(m[j]>max)max=m[j];\n\t\t\t}\n\t\t\tint tmp=0;\n\t\t\tfor(int j=0;j<3;j++)if(m[j]!=max)tmp+=m[j]*m[j];\n\t\t\tif(max*max==tmp)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint[] m = new int[3];\n\t\t\tint max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tm[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(m[j]>max)max=m[j];\n\t\t\t}\n\t\t\tint tmp=0;\n\t\t\tfor(int j=0;j<3;j++)if(m[j]!=max)tmp+=m[j]*m[j];\n\t\t\tif(max*max==tmp)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int i=0;i<n;i++){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint[] m = new int[3];\n\t\t\tint max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tm[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(m[j]>max)max=m[j];\n\t\t\t}\n\t\t\tint tmp=0;\n\t\t\tfor(int j=0;j<3;j++)if(m[j]!=max)tmp+=m[j]*m[j];\n\t\t\tif(max*max==tmp)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint[] m = new int[3];\n\t\t\tint max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tm[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(m[j]>max)max=m[j];\n\t\t\t}\n\t\t\tint tmp=0;\n\t\t\tfor(int j=0;j<3;j++)if(m[j]!=max)tmp+=m[j]*m[j];\n\t\t\tif(max*max==tmp)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}", "{\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint[] m = new int[3];\n\t\t\tint max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tm[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(m[j]>max)max=m[j];\n\t\t\t}\n\t\t\tint tmp=0;\n\t\t\tfor(int j=0;j<3;j++)if(m[j]!=max)tmp+=m[j]*m[j];\n\t\t\tif(max*max==tmp)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "String[] str = line.split(\" \");", "str", "line.split(\" \")", "line.split", "line", "\" \"", "int[] m = new int[3];", "m", "new int[3]", "3", "int max=0;", "max", "0", "for(int j=0;j<3;j++){\n\t\t\t\tm[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(m[j]>max)max=m[j];\n\t\t\t}", "int j=0;", "int j=0;", "j", "0", "j<3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\tm[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(m[j]>max)max=m[j];\n\t\t\t}", "{\n\t\t\t\tm[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(m[j]>max)max=m[j];\n\t\t\t}", "m[j]=Integer.parseInt(str[j])", "m[j]", "m", "j", "Integer.parseInt(str[j])", "Integer.parseInt", "Integer", "str[j]", "str", "j", "if(m[j]>max)max=m[j];", "m[j]>max", "m[j]", "m", "j", "max", "max=m[j]", "max", "m[j]", "m", "j", "int tmp=0;", "tmp", "0", "for(int j=0;j<3;j++)if(m[j]!=max)tmp+=m[j]*m[j];", "int j=0;", "int j=0;", "j", "0", "j<3", "j", "3", "j++", "j++", "j", "if(m[j]!=max)tmp+=m[j]*m[j];", "if(m[j]!=max)tmp+=m[j]*m[j];", "m[j]!=max", "m[j]", "m", "j", "max", "tmp+=m[j]*m[j]", "tmp", "m[j]*m[j]", "m[j]", "m", "j", "m[j]", "m", "j", "if(max*max==tmp)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");", "max*max==tmp", "max*max", "max", "max", "tmp", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "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\tint n = Integer.parseInt(br.readLine());\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint[] m = new int[3];\n\t\t\tint max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tm[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(m[j]>max)max=m[j];\n\t\t\t}\n\t\t\tint tmp=0;\n\t\t\tfor(int j=0;j<3;j++)if(m[j]!=max)tmp+=m[j]*m[j];\n\t\t\tif(max*max==tmp)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor(int i=0;i<n;i++){\n\t\t\tString line = br.readLine();\n\t\t\tString[] str = line.split(\" \");\n\t\t\tint[] m = new int[3];\n\t\t\tint max=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tm[j]=Integer.parseInt(str[j]);\n\t\t\t\tif(m[j]>max)max=m[j];\n\t\t\t}\n\t\t\tint tmp=0;\n\t\t\tfor(int j=0;j<3;j++)if(m[j]!=max)tmp+=m[j]*m[j];\n\t\t\tif(max*max==tmp)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); for(int i=0;i<n;i++){ String line = br.readLine(); String[] str = line.split(" "); int[] m = new int[3]; int max=0; for(int j=0;j<3;j++){ m[j]=Integer.parseInt(str[j]); if(m[j]>max)max=m[j]; } int tmp=0; for(int j=0;j<3;j++)if(m[j]!=max)tmp+=m[j]*m[j]; if(max*max==tmp)System.out.println("YES"); else System.out.println("NO"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 14, 2, 2, 2, 13, 2, 13, 13, 2, 13, 2, 13, 13, 2, 13, 2, 13, 13, 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 ], [ 93, 5 ], [ 93, 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 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 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 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 29, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 29, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 29, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 57, 59 ], [ 29, 60 ], [ 60, 61 ], [ 62, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 62, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 62, 73 ], [ 73, 74 ], [ 73, 75 ], [ 75, 76 ], [ 75, 77 ], [ 60, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 78, 83 ], [ 60, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 6, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta = a*a;\n\t\t\tb = b*b;\n\t\t\tc = c*c;\n\t\t\t\n\t\t\tif(a == b + c || b == a + c || c == a + b )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta = a*a;\n\t\t\tb = b*b;\n\t\t\tc = c*c;\n\t\t\t\n\t\t\tif(a == b + c || b == a + c || c == a + b )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta = a*a;\n\t\t\tb = b*b;\n\t\t\tc = c*c;\n\t\t\t\n\t\t\tif(a == b + c || b == a + c || c == a + b )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta = a*a;\n\t\t\tb = b*b;\n\t\t\tc = c*c;\n\t\t\t\n\t\t\tif(a == b + c || b == a + c || c == a + b )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0; i<n; i++){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta = a*a;\n\t\t\tb = b*b;\n\t\t\tc = c*c;\n\t\t\t\n\t\t\tif(a == b + c || b == a + c || c == a + b )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\n\t\t\t\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta = a*a;\n\t\t\tb = b*b;\n\t\t\tc = c*c;\n\t\t\t\n\t\t\tif(a == b + c || b == a + c || c == a + b )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\n\t\t\t\n\t\t}", "{\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta = a*a;\n\t\t\tb = b*b;\n\t\t\tc = c*c;\n\t\t\t\n\t\t\tif(a == b + c || b == a + c || c == a + b )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\n\t\t\t\n\t\t}", "int a = sc.nextInt();", "a", "sc.nextInt()", "sc.nextInt", "sc", "int b = sc.nextInt();", "b", "sc.nextInt()", "sc.nextInt", "sc", "int c = sc.nextInt();", "c", "sc.nextInt()", "sc.nextInt", "sc", "a = a*a", "a", "a*a", "a", "a", "b = b*b", "b", "b*b", "b", "b", "c = c*c", "c", "c*c", "c", "c", "if(a == b + c || b == a + c || c == a + b )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");", "a == b + c || b == a + c || c == a + b", "a == b + c || b == a + c || c == a + b", "a == b + c", "a", "b + c", "b", "c", "b == a + c", "b", "a + c", "a", "c", "c == a + b", "c", "a + b", "a", "b", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main{\n\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta = a*a;\n\t\t\tb = b*b;\n\t\t\tc = c*c;\n\t\t\t\n\t\t\tif(a == b + c || b == a + c || c == a + b )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}\n\n}", "public class Main{\n\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta = a*a;\n\t\t\tb = b*b;\n\t\t\tc = c*c;\n\t\t\t\n\t\t\tif(a == b + c || b == a + c || c == a + b )\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\t\t\t\n\t\t\t\n\t\t}\n\t\t\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for(int i=0; i<n; i++){ int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); a = a*a; b = b*b; c = c*c; if(a == b + c || b == a + c || c == a + b ) System.out.println("YES"); else System.out.println("NO"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 20, 12, 13, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 12, 13, 30, 4, 13, 13, 41, 13, 41, 13, 41, 13, 0, 13, 18, 13, 17, 0, 13, 18, 13, 17, 0, 13, 18, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 29, 17, 30, 29, 17, 12, 13, 30, 0, 13, 4, 18, 13, 42, 2, 40, 13, 17, 30, 4, 13, 4, 18, 18, 13, 13, 4, 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 ], [ 112, 11 ], [ 11, 12 ], [ 11, 13 ], [ 112, 15 ], [ 15, 16 ], [ 15, 17 ], [ 112, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 30, 31 ], [ 21, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 112, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 43, 49 ], [ 49, 50 ], [ 43, 51 ], [ 51, 52 ], [ 43, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 43, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 60, 62 ], [ 43, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 65, 67 ], [ 43, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 77, 78 ], [ 77, 79 ], [ 68, 80 ], [ 80, 81 ], [ 81, 82 ], [ 68, 83 ], [ 83, 84 ], [ 84, 85 ], [ 112, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 88, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 94, 99 ], [ 99, 100 ], [ 100, 101 ], [ 99, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 102, 107 ], [ 107, 108 ], [ 86, 109 ], [ 109, 110 ], [ 0, 111 ], [ 111, 112 ], [ 111, 113 ] ]
[ "/**\n * @author yuichirw\n *\n */\nimport java.util.*;\nimport static java.util.Arrays.*;\n\npublic class Main {\n\tstatic int n;\n\tstatic int[] edges = new int[3];\n\tstatic Scanner sc = new Scanner(System.in);\n\t\n\tstatic void read() {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tedges[i] = sc.nextInt();\n\t\t}\n\t}\n\t\n\tstatic String solve() {\n\t\tsort(edges);\n\t\tint a,b,c;\n\t\ta = edges[0]; b = edges[1]; c = edges[2];\n\t\tif((a * a + b * b) == (c * c)) {\n\t\t\treturn \"YES\";\n\t\t} else {\n\t\t\treturn \"NO\";\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tn = sc.nextInt();\n\t\twhile(n-- > 0) {\n\t\t\tread();\n\t\t\tSystem.out.println(solve());\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "import static java.util.Arrays.*;", "import static java.util.Arrays.*;", "import static java.util.Arrays.*;", "public class Main {\n\tstatic int n;\n\tstatic int[] edges = new int[3];\n\tstatic Scanner sc = new Scanner(System.in);\n\t\n\tstatic void read() {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tedges[i] = sc.nextInt();\n\t\t}\n\t}\n\t\n\tstatic String solve() {\n\t\tsort(edges);\n\t\tint a,b,c;\n\t\ta = edges[0]; b = edges[1]; c = edges[2];\n\t\tif((a * a + b * b) == (c * c)) {\n\t\t\treturn \"YES\";\n\t\t} else {\n\t\t\treturn \"NO\";\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tn = sc.nextInt();\n\t\twhile(n-- > 0) {\n\t\t\tread();\n\t\t\tSystem.out.println(solve());\n\t\t}\n\t}\n}", "Main", "static int n;", "n", "static int[] edges = new int[3];", "edges", "new int[3]", "3", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "static void read() {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tedges[i] = sc.nextInt();\n\t\t}\n\t}", "read", "{\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tedges[i] = sc.nextInt();\n\t\t}\n\t}", "for(int i = 0; i < 3; i++) {\n\t\t\tedges[i] = sc.nextInt();\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tedges[i] = sc.nextInt();\n\t\t}", "{\n\t\t\tedges[i] = sc.nextInt();\n\t\t}", "edges[i] = sc.nextInt()", "edges[i]", "edges", "i", "sc.nextInt()", "sc.nextInt", "sc", "static String solve() {\n\t\tsort(edges);\n\t\tint a,b,c;\n\t\ta = edges[0]; b = edges[1]; c = edges[2];\n\t\tif((a * a + b * b) == (c * c)) {\n\t\t\treturn \"YES\";\n\t\t} else {\n\t\t\treturn \"NO\";\n\t\t}\n\t}", "solve", "{\n\t\tsort(edges);\n\t\tint a,b,c;\n\t\ta = edges[0]; b = edges[1]; c = edges[2];\n\t\tif((a * a + b * b) == (c * c)) {\n\t\t\treturn \"YES\";\n\t\t} else {\n\t\t\treturn \"NO\";\n\t\t}\n\t}", "sort(edges)", "sort", "edges", "int a", "a", "b", "b", "c;", "c", "a = edges[0]", "a", "edges[0]", "edges", "0", "b = edges[1]", "b", "edges[1]", "edges", "1", "c = edges[2]", "c", "edges[2]", "edges", "2", "if((a * a + b * b) == (c * c)) {\n\t\t\treturn \"YES\";\n\t\t} else {\n\t\t\treturn \"NO\";\n\t\t}", "(a * a + b * b) == (c * c)", "(a * a + b * b)", "a * a", "a", "a", "b * b", "b", "b", "(c * c)", "c", "c", "{\n\t\t\treturn \"YES\";\n\t\t}", "return \"YES\";", "\"YES\"", "{\n\t\t\treturn \"NO\";\n\t\t}", "return \"NO\";", "\"NO\"", "public static void main(String[] args) {\n\t\tn = sc.nextInt();\n\t\twhile(n-- > 0) {\n\t\t\tread();\n\t\t\tSystem.out.println(solve());\n\t\t}\n\t}", "main", "{\n\t\tn = sc.nextInt();\n\t\twhile(n-- > 0) {\n\t\t\tread();\n\t\t\tSystem.out.println(solve());\n\t\t}\n\t}", "n = sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "while(n-- > 0) {\n\t\t\tread();\n\t\t\tSystem.out.println(solve());\n\t\t}", "n-- > 0", "n--", "n", "0", "{\n\t\t\tread();\n\t\t\tSystem.out.println(solve());\n\t\t}", "read()", "read", "System.out.println(solve())", "System.out.println", "System.out", "System", "System.out", "solve()", "solve", "String[] args", "args", "public class Main {\n\tstatic int n;\n\tstatic int[] edges = new int[3];\n\tstatic Scanner sc = new Scanner(System.in);\n\t\n\tstatic void read() {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tedges[i] = sc.nextInt();\n\t\t}\n\t}\n\t\n\tstatic String solve() {\n\t\tsort(edges);\n\t\tint a,b,c;\n\t\ta = edges[0]; b = edges[1]; c = edges[2];\n\t\tif((a * a + b * b) == (c * c)) {\n\t\t\treturn \"YES\";\n\t\t} else {\n\t\t\treturn \"NO\";\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tn = sc.nextInt();\n\t\twhile(n-- > 0) {\n\t\t\tread();\n\t\t\tSystem.out.println(solve());\n\t\t}\n\t}\n}", "public class Main {\n\tstatic int n;\n\tstatic int[] edges = new int[3];\n\tstatic Scanner sc = new Scanner(System.in);\n\t\n\tstatic void read() {\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tedges[i] = sc.nextInt();\n\t\t}\n\t}\n\t\n\tstatic String solve() {\n\t\tsort(edges);\n\t\tint a,b,c;\n\t\ta = edges[0]; b = edges[1]; c = edges[2];\n\t\tif((a * a + b * b) == (c * c)) {\n\t\t\treturn \"YES\";\n\t\t} else {\n\t\t\treturn \"NO\";\n\t\t}\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\tn = sc.nextInt();\n\t\twhile(n-- > 0) {\n\t\t\tread();\n\t\t\tSystem.out.println(solve());\n\t\t}\n\t}\n}", "Main" ]
/** * @author yuichirw * */ import java.util.*; import static java.util.Arrays.*; public class Main { static int n; static int[] edges = new int[3]; static Scanner sc = new Scanner(System.in); static void read() { for(int i = 0; i < 3; i++) { edges[i] = sc.nextInt(); } } static String solve() { sort(edges); int a,b,c; a = edges[0]; b = edges[1]; c = edges[2]; if((a * a + b * b) == (c * c)) { return "YES"; } else { return "NO"; } } public static void main(String[] args) { n = sc.nextInt(); while(n-- > 0) { read(); System.out.println(solve()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 14, 2, 2, 2, 13, 2, 13, 13, 2, 13, 2, 13, 13, 2, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 8, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 35, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 35, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 35, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 35, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 58, 60 ], [ 35, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 35, 66 ], [ 66, 67 ], [ 68, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 68, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 76, 78 ], [ 68, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 66, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 66, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 6, 98 ], [ 98, 99 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n public static void main (String args[]) {\n\tScanner scan = new Scanner(System.in);\n\tint N = scan.nextInt(); // the number of data set\n\tint a, b, c; // length\n\n\tfor(int i=0; i<N; i++) {\n\t a = scan.nextInt();\n\t b = scan.nextInt();\n\t c = scan.nextInt();\n\n\t a = a*a; b = b*b; c = c*c;\n\n\t if ((a == b+c) || (b == c+a) || (c == a+b)) {\n\t\tSystem.out.println(\"YES\");\n\t }\n\t else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t \n\t}\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main (String args[]) {\n\tScanner scan = new Scanner(System.in);\n\tint N = scan.nextInt(); // the number of data set\n\tint a, b, c; // length\n\n\tfor(int i=0; i<N; i++) {\n\t a = scan.nextInt();\n\t b = scan.nextInt();\n\t c = scan.nextInt();\n\n\t a = a*a; b = b*b; c = c*c;\n\n\t if ((a == b+c) || (b == c+a) || (c == a+b)) {\n\t\tSystem.out.println(\"YES\");\n\t }\n\t else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t \n\t}\n }\n}", "Main", "public static void main (String args[]) {\n\tScanner scan = new Scanner(System.in);\n\tint N = scan.nextInt(); // the number of data set\n\tint a, b, c; // length\n\n\tfor(int i=0; i<N; i++) {\n\t a = scan.nextInt();\n\t b = scan.nextInt();\n\t c = scan.nextInt();\n\n\t a = a*a; b = b*b; c = c*c;\n\n\t if ((a == b+c) || (b == c+a) || (c == a+b)) {\n\t\tSystem.out.println(\"YES\");\n\t }\n\t else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t \n\t}\n }", "main", "{\n\tScanner scan = new Scanner(System.in);\n\tint N = scan.nextInt(); // the number of data set\n\tint a, b, c; // length\n\n\tfor(int i=0; i<N; i++) {\n\t a = scan.nextInt();\n\t b = scan.nextInt();\n\t c = scan.nextInt();\n\n\t a = a*a; b = b*b; c = c*c;\n\n\t if ((a == b+c) || (b == c+a) || (c == a+b)) {\n\t\tSystem.out.println(\"YES\");\n\t }\n\t else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t \n\t}\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int N = scan.nextInt();", "N", "scan.nextInt()", "scan.nextInt", "scan", "int a", "a", "b", "b", "c;", "c", "for(int i=0; i<N; i++) {\n\t a = scan.nextInt();\n\t b = scan.nextInt();\n\t c = scan.nextInt();\n\n\t a = a*a; b = b*b; c = c*c;\n\n\t if ((a == b+c) || (b == c+a) || (c == a+b)) {\n\t\tSystem.out.println(\"YES\");\n\t }\n\t else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t \n\t}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n\t a = scan.nextInt();\n\t b = scan.nextInt();\n\t c = scan.nextInt();\n\n\t a = a*a; b = b*b; c = c*c;\n\n\t if ((a == b+c) || (b == c+a) || (c == a+b)) {\n\t\tSystem.out.println(\"YES\");\n\t }\n\t else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t \n\t}", "{\n\t a = scan.nextInt();\n\t b = scan.nextInt();\n\t c = scan.nextInt();\n\n\t a = a*a; b = b*b; c = c*c;\n\n\t if ((a == b+c) || (b == c+a) || (c == a+b)) {\n\t\tSystem.out.println(\"YES\");\n\t }\n\t else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t \n\t}", "a = scan.nextInt()", "a", "scan.nextInt()", "scan.nextInt", "scan", "b = scan.nextInt()", "b", "scan.nextInt()", "scan.nextInt", "scan", "c = scan.nextInt()", "c", "scan.nextInt()", "scan.nextInt", "scan", "a = a*a", "a", "a*a", "a", "a", "b = b*b", "b", "b*b", "b", "b", "c = c*c", "c", "c*c", "c", "c", "if ((a == b+c) || (b == c+a) || (c == a+b)) {\n\t\tSystem.out.println(\"YES\");\n\t }\n\t else {\n\t\tSystem.out.println(\"NO\");\n\t }", "(a == b+c) || (b == c+a) || (c == a+b)", "(a == b+c) || (b == c+a) || (c == a+b)", "(a == b+c)", "a", "b+c", "b", "c", "(b == c+a)", "b", "c+a", "c", "a", "(c == a+b)", "c", "a+b", "a", "b", "{\n\t\tSystem.out.println(\"YES\");\n\t }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\tSystem.out.println(\"NO\");\n\t }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String args[]", "args" ]
import java.util.Scanner; class Main { public static void main (String args[]) { Scanner scan = new Scanner(System.in); int N = scan.nextInt(); // the number of data set int a, b, c; // length for(int i=0; i<N; i++) { a = scan.nextInt(); b = scan.nextInt(); c = scan.nextInt(); a = a*a; b = b*b; c = c*c; if ((a == b+c) || (b == c+a) || (c == a+b)) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 2, 2, 13, 13, 2, 13, 13, 41, 13, 2, 2, 13, 13, 2, 13, 13, 41, 13, 2, 2, 13, 13, 2, 13, 13, 14, 2, 2, 2, 2, 13, 13, 13, 2, 2, 13, 13, 13, 2, 2, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 130, 8 ], [ 130, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 38, 43 ], [ 35, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 49, 51 ], [ 35, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 35, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 65, 67 ], [ 35, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 35, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 35, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 35, 95 ], [ 95, 96 ], [ 97, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 97, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 95, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 114, 119 ], [ 95, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 9, 127 ], [ 127, 128 ], [ 0, 129 ], [ 129, 130 ], [ 129, 131 ] ]
[ "import java.io.*;\nimport java.util.*;\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\t\n\t\tint length = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0;i<length;i++){\n\t\t\tString[] num = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(num[0]);\n\t\t\tint b = Integer.parseInt(num[1]);\n\t\t\tint c = Integer.parseInt(num[2]);\n\t\t\t\n\t\t\tint rightc = a*a+b*b;\n\t\t\tint rightb = a*a+c*c;\n\t\t\tint righta = b*b+c*c;\n\t\t\tif(c*c==rightc ||b*b==rightb || a*a==righta){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}\n\t\t\t", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "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\t\n\t\tint length = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0;i<length;i++){\n\t\t\tString[] num = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(num[0]);\n\t\t\tint b = Integer.parseInt(num[1]);\n\t\t\tint c = Integer.parseInt(num[2]);\n\t\t\t\n\t\t\tint rightc = a*a+b*b;\n\t\t\tint rightb = a*a+c*c;\n\t\t\tint righta = b*b+c*c;\n\t\t\tif(c*c==rightc ||b*b==rightb || a*a==righta){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\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\t\n\t\tint length = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0;i<length;i++){\n\t\t\tString[] num = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(num[0]);\n\t\t\tint b = Integer.parseInt(num[1]);\n\t\t\tint c = Integer.parseInt(num[2]);\n\t\t\t\n\t\t\tint rightc = a*a+b*b;\n\t\t\tint rightb = a*a+c*c;\n\t\t\tint righta = b*b+c*c;\n\t\t\tif(c*c==rightc ||b*b==rightb || a*a==righta){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint length = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0;i<length;i++){\n\t\t\tString[] num = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(num[0]);\n\t\t\tint b = Integer.parseInt(num[1]);\n\t\t\tint c = Integer.parseInt(num[2]);\n\t\t\t\n\t\t\tint rightc = a*a+b*b;\n\t\t\tint rightb = a*a+c*c;\n\t\t\tint righta = b*b+c*c;\n\t\t\tif(c*c==rightc ||b*b==rightb || a*a==righta){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\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 length = Integer.parseInt(br.readLine());", "length", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for(int i = 0;i<length;i++){\n\t\t\tString[] num = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(num[0]);\n\t\t\tint b = Integer.parseInt(num[1]);\n\t\t\tint c = Integer.parseInt(num[2]);\n\t\t\t\n\t\t\tint rightc = a*a+b*b;\n\t\t\tint rightb = a*a+c*c;\n\t\t\tint righta = b*b+c*c;\n\t\t\tif(c*c==rightc ||b*b==rightb || a*a==righta){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<length", "i", "length", "i++", "i++", "i", "{\n\t\t\tString[] num = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(num[0]);\n\t\t\tint b = Integer.parseInt(num[1]);\n\t\t\tint c = Integer.parseInt(num[2]);\n\t\t\t\n\t\t\tint rightc = a*a+b*b;\n\t\t\tint rightb = a*a+c*c;\n\t\t\tint righta = b*b+c*c;\n\t\t\tif(c*c==rightc ||b*b==rightb || a*a==righta){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tString[] num = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(num[0]);\n\t\t\tint b = Integer.parseInt(num[1]);\n\t\t\tint c = Integer.parseInt(num[2]);\n\t\t\t\n\t\t\tint rightc = a*a+b*b;\n\t\t\tint rightb = a*a+c*c;\n\t\t\tint righta = b*b+c*c;\n\t\t\tif(c*c==rightc ||b*b==rightb || a*a==righta){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "String[] num = br.readLine().split(\" \");", "num", "br.readLine().split(\" \")", "br.readLine().split", "br.readLine()", "br.readLine", "br", "\" \"", "int a = Integer.parseInt(num[0]);", "a", "Integer.parseInt(num[0])", "Integer.parseInt", "Integer", "num[0]", "num", "0", "int b = Integer.parseInt(num[1]);", "b", "Integer.parseInt(num[1])", "Integer.parseInt", "Integer", "num[1]", "num", "1", "int c = Integer.parseInt(num[2]);", "c", "Integer.parseInt(num[2])", "Integer.parseInt", "Integer", "num[2]", "num", "2", "int rightc = a*a+b*b;", "rightc", "a*a+b*b", "a*a", "a", "a", "b*b", "b", "b", "int rightb = a*a+c*c;", "rightb", "a*a+c*c", "a*a", "a", "a", "c*c", "c", "c", "int righta = b*b+c*c;", "righta", "b*b+c*c", "b*b", "b", "b", "c*c", "c", "c", "if(c*c==rightc ||b*b==rightb || a*a==righta){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "c*c==rightc ||b*b==rightb || a*a==righta", "c*c==rightc ||b*b==rightb || a*a==righta", "c*c==rightc", "c*c", "c", "c", "rightc", "b*b==rightb", "b*b", "b", "b", "rightb", "a*a==righta", "a*a", "a", "a", "righta", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "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\t\n\t\tint length = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0;i<length;i++){\n\t\t\tString[] num = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(num[0]);\n\t\t\tint b = Integer.parseInt(num[1]);\n\t\t\tint c = Integer.parseInt(num[2]);\n\t\t\t\n\t\t\tint rightc = a*a+b*b;\n\t\t\tint rightb = a*a+c*c;\n\t\t\tint righta = b*b+c*c;\n\t\t\tif(c*c==rightc ||b*b==rightb || a*a==righta){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\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\t\n\t\tint length = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0;i<length;i++){\n\t\t\tString[] num = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(num[0]);\n\t\t\tint b = Integer.parseInt(num[1]);\n\t\t\tint c = Integer.parseInt(num[2]);\n\t\t\t\n\t\t\tint rightc = a*a+b*b;\n\t\t\tint rightb = a*a+c*c;\n\t\t\tint righta = b*b+c*c;\n\t\t\tif(c*c==rightc ||b*b==rightb || a*a==righta){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int length = Integer.parseInt(br.readLine()); for(int i = 0;i<length;i++){ String[] num = br.readLine().split(" "); int a = Integer.parseInt(num[0]); int b = Integer.parseInt(num[1]); int c = Integer.parseInt(num[2]); int rightc = a*a+b*b; int rightb = a*a+c*c; int righta = b*b+c*c; if(c*c==rightc ||b*b==rightb || a*a==righta){ System.out.println("YES"); } else{ System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 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, 0, 13, 4, 18, 13, 18, 13, 17, 14, 4, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 14, 2, 2, 2, 2, 13, 13, 13, 2, 2, 13, 13, 13, 2, 2, 13, 13, 13, 30, 29, 17, 29, 17, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 143, 5 ], [ 143, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 14, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 28, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 43, 48 ], [ 40, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 40, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 40, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 40, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 74, 77 ], [ 74, 78 ], [ 73, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 73, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 6, 93 ], [ 93, 94 ], [ 143, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 100, 102 ], [ 97, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 105, 107 ], [ 97, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 97, 113 ], [ 113, 114 ], [ 115, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 115, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 121, 125 ], [ 115, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 113, 131 ], [ 131, 132 ], [ 132, 133 ], [ 97, 134 ], [ 134, 135 ], [ 95, 136 ], [ 136, 137 ], [ 95, 138 ], [ 138, 139 ], [ 95, 140 ], [ 140, 141 ], [ 0, 142 ], [ 142, 143 ], [ 142, 144 ] ]
[ "import java.util.Scanner;\npublic class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner (System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tString[] input;\n\tint a, b, c;\n\tfor (int i = 0; i < n; i++) {\n\t input = scan.nextLine().split(\" \");\n\t a = Integer.parseInt(input[0]);\n\t b = Integer.parseInt(input[1]);\n\t c = Integer.parseInt(input[2]);\n\t if (isRightTriangle(a, b, c)) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }\n static boolean isRightTriangle (int a, int b, int c) {\n\tint a2 = a * a, b2 = b * b, c2 = c * c;\n\tif (a2 + b2 == c2 || a2 + c2 == b2 || b2 + c2 == a2) {\n\t return true;\n\t}\n\treturn false;\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner (System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tString[] input;\n\tint a, b, c;\n\tfor (int i = 0; i < n; i++) {\n\t input = scan.nextLine().split(\" \");\n\t a = Integer.parseInt(input[0]);\n\t b = Integer.parseInt(input[1]);\n\t c = Integer.parseInt(input[2]);\n\t if (isRightTriangle(a, b, c)) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }\n static boolean isRightTriangle (int a, int b, int c) {\n\tint a2 = a * a, b2 = b * b, c2 = c * c;\n\tif (a2 + b2 == c2 || a2 + c2 == b2 || b2 + c2 == a2) {\n\t return true;\n\t}\n\treturn false;\n }\n}", "Main", "public static void main (String[] args) {\n\tScanner scan = new Scanner (System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tString[] input;\n\tint a, b, c;\n\tfor (int i = 0; i < n; i++) {\n\t input = scan.nextLine().split(\" \");\n\t a = Integer.parseInt(input[0]);\n\t b = Integer.parseInt(input[1]);\n\t c = Integer.parseInt(input[2]);\n\t if (isRightTriangle(a, b, c)) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }", "main", "{\n\tScanner scan = new Scanner (System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tString[] input;\n\tint a, b, c;\n\tfor (int i = 0; i < n; i++) {\n\t input = scan.nextLine().split(\" \");\n\t a = Integer.parseInt(input[0]);\n\t b = Integer.parseInt(input[1]);\n\t c = Integer.parseInt(input[2]);\n\t if (isRightTriangle(a, b, c)) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }", "Scanner scan = new Scanner (System.in);", "scan", "new Scanner (System.in)", "int n = Integer.parseInt(scan.nextLine());", "n", "Integer.parseInt(scan.nextLine())", "Integer.parseInt", "Integer", "scan.nextLine()", "scan.nextLine", "scan", "String[] input;", "input", "int a", "a", "b", "b", "c;", "c", "for (int i = 0; i < n; i++) {\n\t input = scan.nextLine().split(\" \");\n\t a = Integer.parseInt(input[0]);\n\t b = Integer.parseInt(input[1]);\n\t c = Integer.parseInt(input[2]);\n\t if (isRightTriangle(a, b, c)) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t input = scan.nextLine().split(\" \");\n\t a = Integer.parseInt(input[0]);\n\t b = Integer.parseInt(input[1]);\n\t c = Integer.parseInt(input[2]);\n\t if (isRightTriangle(a, b, c)) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}", "{\n\t input = scan.nextLine().split(\" \");\n\t a = Integer.parseInt(input[0]);\n\t b = Integer.parseInt(input[1]);\n\t c = Integer.parseInt(input[2]);\n\t if (isRightTriangle(a, b, c)) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}", "input = scan.nextLine().split(\" \")", "input", "scan.nextLine().split(\" \")", "scan.nextLine().split", "scan.nextLine()", "scan.nextLine", "scan", "\" \"", "a = Integer.parseInt(input[0])", "a", "Integer.parseInt(input[0])", "Integer.parseInt", "Integer", "input[0]", "input", "0", "b = Integer.parseInt(input[1])", "b", "Integer.parseInt(input[1])", "Integer.parseInt", "Integer", "input[1]", "input", "1", "c = Integer.parseInt(input[2])", "c", "Integer.parseInt(input[2])", "Integer.parseInt", "Integer", "input[2]", "input", "2", "if (isRightTriangle(a, b, c)) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }", "isRightTriangle(a, b, c)", "isRightTriangle", "a", "b", "c", "{\n\t\tSystem.out.println(\"YES\");\n\t }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\tSystem.out.println(\"NO\");\n\t }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "static boolean isRightTriangle (int a, int b, int c) {\n\tint a2 = a * a, b2 = b * b, c2 = c * c;\n\tif (a2 + b2 == c2 || a2 + c2 == b2 || b2 + c2 == a2) {\n\t return true;\n\t}\n\treturn false;\n }", "isRightTriangle", "{\n\tint a2 = a * a, b2 = b * b, c2 = c * c;\n\tif (a2 + b2 == c2 || a2 + c2 == b2 || b2 + c2 == a2) {\n\t return true;\n\t}\n\treturn false;\n }", "int a2 = a * a", "a2", "a * a", "a", "a", "b2 = b * b", "b2", "b * b", "b", "b", "c2 = c * c;", "c2", "c * c", "c", "c", "if (a2 + b2 == c2 || a2 + c2 == b2 || b2 + c2 == a2) {\n\t return true;\n\t}", "a2 + b2 == c2 || a2 + c2 == b2 || b2 + c2 == a2", "a2 + b2 == c2 || a2 + c2 == b2 || b2 + c2 == a2", "a2 + b2 == c2", "a2 + b2", "a2", "b2", "c2", "a2 + c2 == b2", "a2 + c2", "a2", "c2", "b2", "b2 + c2 == a2", "b2 + c2", "b2", "c2", "a2", "{\n\t return true;\n\t}", "return true;", "true", "return false;", "false", "int a", "a", "int b", "b", "int c", "c", "public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner (System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tString[] input;\n\tint a, b, c;\n\tfor (int i = 0; i < n; i++) {\n\t input = scan.nextLine().split(\" \");\n\t a = Integer.parseInt(input[0]);\n\t b = Integer.parseInt(input[1]);\n\t c = Integer.parseInt(input[2]);\n\t if (isRightTriangle(a, b, c)) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }\n static boolean isRightTriangle (int a, int b, int c) {\n\tint a2 = a * a, b2 = b * b, c2 = c * c;\n\tif (a2 + b2 == c2 || a2 + c2 == b2 || b2 + c2 == a2) {\n\t return true;\n\t}\n\treturn false;\n }\n}", "public class Main {\n public static void main (String[] args) {\n\tScanner scan = new Scanner (System.in);\n\tint n = Integer.parseInt(scan.nextLine());\n\tString[] input;\n\tint a, b, c;\n\tfor (int i = 0; i < n; i++) {\n\t input = scan.nextLine().split(\" \");\n\t a = Integer.parseInt(input[0]);\n\t b = Integer.parseInt(input[1]);\n\t c = Integer.parseInt(input[2]);\n\t if (isRightTriangle(a, b, c)) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }\n static boolean isRightTriangle (int a, int b, int c) {\n\tint a2 = a * a, b2 = b * b, c2 = c * c;\n\tif (a2 + b2 == c2 || a2 + c2 == b2 || b2 + c2 == a2) {\n\t return true;\n\t}\n\treturn false;\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main (String[] args) { Scanner scan = new Scanner (System.in); int n = Integer.parseInt(scan.nextLine()); String[] input; int a, b, c; for (int i = 0; i < n; i++) { input = scan.nextLine().split(" "); a = Integer.parseInt(input[0]); b = Integer.parseInt(input[1]); c = Integer.parseInt(input[2]); if (isRightTriangle(a, b, c)) { System.out.println("YES"); } else { System.out.println("NO"); } } } static boolean isRightTriangle (int a, int b, int c) { int a2 = a * a, b2 = b * b, c2 = c * c; if (a2 + b2 == c2 || a2 + c2 == b2 || b2 + c2 == a2) { return true; } return false; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 0, 13, 17, 14, 13, 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 ], [ 113, 5 ], [ 113, 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 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 32, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 49, 50 ], [ 32, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 60, 62 ], [ 51, 63 ], [ 63, 64 ], [ 63, 65 ], [ 51, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 75, 77 ], [ 66, 78 ], [ 78, 79 ], [ 78, 80 ], [ 66, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 82, 90 ], [ 90, 91 ], [ 90, 92 ], [ 81, 93 ], [ 93, 94 ], [ 93, 95 ], [ 32, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 96, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 6, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.Scanner;\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean yes = false;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tyes = false;\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tint z = sc.nextInt();\n\t\t\tif(((x*x)+(y*y))==(z*z)) yes = true;\n\t\t\telse if(((z*z)+(y*y))==(x*x)) yes = true;\n\t\t\telse if(((x*x)+(z*z))==(y*y)) yes = true;\n\t\t\t\n\t\t\tif(yes) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n \t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean yes = false;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tyes = false;\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tint z = sc.nextInt();\n\t\t\tif(((x*x)+(y*y))==(z*z)) yes = true;\n\t\t\telse if(((z*z)+(y*y))==(x*x)) yes = true;\n\t\t\telse if(((x*x)+(z*z))==(y*y)) yes = true;\n\t\t\t\n\t\t\tif(yes) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n \t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean yes = false;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tyes = false;\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tint z = sc.nextInt();\n\t\t\tif(((x*x)+(y*y))==(z*z)) yes = true;\n\t\t\telse if(((z*z)+(y*y))==(x*x)) yes = true;\n\t\t\telse if(((x*x)+(z*z))==(y*y)) yes = true;\n\t\t\t\n\t\t\tif(yes) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n \t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean yes = false;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tyes = false;\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tint z = sc.nextInt();\n\t\t\tif(((x*x)+(y*y))==(z*z)) yes = true;\n\t\t\telse if(((z*z)+(y*y))==(x*x)) yes = true;\n\t\t\telse if(((x*x)+(z*z))==(y*y)) yes = true;\n\t\t\t\n\t\t\tif(yes) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n \t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "boolean yes = false;", "yes", "false", "for(int i = 0;i<n;i++){\n\t\t\tyes = false;\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tint z = sc.nextInt();\n\t\t\tif(((x*x)+(y*y))==(z*z)) yes = true;\n\t\t\telse if(((z*z)+(y*y))==(x*x)) yes = true;\n\t\t\telse if(((x*x)+(z*z))==(y*y)) yes = true;\n\t\t\t\n\t\t\tif(yes) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tyes = false;\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tint z = sc.nextInt();\n\t\t\tif(((x*x)+(y*y))==(z*z)) yes = true;\n\t\t\telse if(((z*z)+(y*y))==(x*x)) yes = true;\n\t\t\telse if(((x*x)+(z*z))==(y*y)) yes = true;\n\t\t\t\n\t\t\tif(yes) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}", "{\n\t\t\tyes = false;\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tint z = sc.nextInt();\n\t\t\tif(((x*x)+(y*y))==(z*z)) yes = true;\n\t\t\telse if(((z*z)+(y*y))==(x*x)) yes = true;\n\t\t\telse if(((x*x)+(z*z))==(y*y)) yes = true;\n\t\t\t\n\t\t\tif(yes) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}", "yes = false", "yes", "false", "int x = sc.nextInt();", "x", "sc.nextInt()", "sc.nextInt", "sc", "int y = sc.nextInt();", "y", "sc.nextInt()", "sc.nextInt", "sc", "int z = sc.nextInt();", "z", "sc.nextInt()", "sc.nextInt", "sc", "if(((x*x)+(y*y))==(z*z)) yes = true;\n\t\t\telse if(((z*z)+(y*y))==(x*x)) yes = true;\n\t\t\telse if(((x*x)+(z*z))==(y*y)) yes = true;", "((x*x)+(y*y))==(z*z)", "((x*x)+(y*y))", "(x*x)", "x", "x", "(y*y)", "y", "y", "(z*z)", "z", "z", "yes = true", "yes", "true", "if(((z*z)+(y*y))==(x*x)) yes = true;\n\t\t\telse if(((x*x)+(z*z))==(y*y)) yes = true;", "((z*z)+(y*y))==(x*x)", "((z*z)+(y*y))", "(z*z)", "z", "z", "(y*y)", "y", "y", "(x*x)", "x", "x", "yes = true", "yes", "true", "if(((x*x)+(z*z))==(y*y)) yes = true;", "((x*x)+(z*z))==(y*y)", "((x*x)+(z*z))", "(x*x)", "x", "x", "(z*z)", "z", "z", "(y*y)", "y", "y", "yes = true", "yes", "true", "if(yes) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");", "yes", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean yes = false;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tyes = false;\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tint z = sc.nextInt();\n\t\t\tif(((x*x)+(y*y))==(z*z)) yes = true;\n\t\t\telse if(((z*z)+(y*y))==(x*x)) yes = true;\n\t\t\telse if(((x*x)+(z*z))==(y*y)) yes = true;\n\t\t\t\n\t\t\tif(yes) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n \t}\n\n}", "public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean yes = false;\n\t\tfor(int i = 0;i<n;i++){\n\t\t\tyes = false;\n\t\t\tint x = sc.nextInt();\n\t\t\tint y = sc.nextInt();\n\t\t\tint z = sc.nextInt();\n\t\t\tif(((x*x)+(y*y))==(z*z)) yes = true;\n\t\t\telse if(((z*z)+(y*y))==(x*x)) yes = true;\n\t\t\telse if(((x*x)+(z*z))==(y*y)) yes = true;\n\t\t\t\n\t\t\tif(yes) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n \t}\n\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); boolean yes = false; for(int i = 0;i<n;i++){ yes = false; int x = sc.nextInt(); int y = sc.nextInt(); int z = sc.nextInt(); if(((x*x)+(y*y))==(z*z)) yes = true; else if(((z*z)+(y*y))==(x*x)) yes = true; else if(((x*x)+(z*z))==(y*y)) yes = true; if(yes) System.out.println("YES"); else System.out.println("NO"); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 4, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 0, 13, 20, 41, 13, 4, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 20, 17, 0, 18, 13, 17, 4, 13, 0, 18, 13, 17, 4, 13, 0, 18, 13, 17, 4, 13, 4, 18, 13, 13, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 14, 2, 2, 13, 17, 40, 4, 18, 13, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 41, 13, 20, 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 ], [ 164, 17 ], [ 164, 18 ], [ 18, 19 ], [ 164, 20 ], [ 20, 21 ], [ 164, 22 ], [ 22, 23 ], [ 164, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 164, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 32, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 39, 46 ], [ 46, 47 ], [ 46, 48 ], [ 48, 49 ], [ 39, 50 ], [ 50, 51 ], [ 39, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 61, 62 ], [ 52, 63 ], [ 64, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 64, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 64, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 64, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 64, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 98, 100 ], [ 93, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 105, 107 ], [ 92, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 112, 113 ], [ 112, 114 ], [ 91, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 91, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 164, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 134, 135 ], [ 164, 136 ], [ 136, 137 ], [ 136, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 139, 148 ], [ 148, 149 ], [ 148, 150 ], [ 138, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 164, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 155, 161 ], [ 161, 162 ], [ 0, 163 ], [ 163, 164 ], [ 163, 165 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\tprivate StringTokenizer st;\n\tprivate BufferedReader bf;\n\tprivate int w;\n\t\n\tMain() {\n\t\treadData();\n\t\t\n\n\t}\t\n\n\tprivate void readData() {\n\t\ttry {\n\t\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t\n\t\t\tint n = nextInt();\n\t\t\tint[] a;\n\t\t\tfor (int i = 0;i < n ; i++) {\n\t\t\t\ta = new int[3];\n\t\t\t\ta[0] = nextInt();\n\t\t\t\ta[1] = nextInt();\n\t\t\t\ta[2] = nextInt();\n\t\t\t\tArrays.sort(a);\n\t\t\t\t\n//\t\t\t\tfor(int k: a)\n//\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\n\t\t\t\tif ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2])\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\t\n\tprivate int nextInt() throws IOException {\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\t\n\tprivate String next() throws IOException {\n\t\tif (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\treturn st.nextToken();\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tMain m = new Main();\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", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\tprivate StringTokenizer st;\n\tprivate BufferedReader bf;\n\tprivate int w;\n\t\n\tMain() {\n\t\treadData();\n\t\t\n\n\t}\t\n\n\tprivate void readData() {\n\t\ttry {\n\t\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t\n\t\t\tint n = nextInt();\n\t\t\tint[] a;\n\t\t\tfor (int i = 0;i < n ; i++) {\n\t\t\t\ta = new int[3];\n\t\t\t\ta[0] = nextInt();\n\t\t\t\ta[1] = nextInt();\n\t\t\t\ta[2] = nextInt();\n\t\t\t\tArrays.sort(a);\n\t\t\t\t\n//\t\t\t\tfor(int k: a)\n//\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\n\t\t\t\tif ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2])\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\t\n\tprivate int nextInt() throws IOException {\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\t\n\tprivate String next() throws IOException {\n\t\tif (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\treturn st.nextToken();\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tMain m = new Main();\n\t}\n\n}", "Main", "private StringTokenizer st;", "st", "private BufferedReader bf;", "bf", "private int w;", "w", "Main() {\n\t\treadData();\n\t\t\n\n\t}", "Main", "{\n\t\treadData();\n\t\t\n\n\t}", "readData()", "readData", "private void readData() {\n\t\ttry {\n\t\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t\n\t\t\tint n = nextInt();\n\t\t\tint[] a;\n\t\t\tfor (int i = 0;i < n ; i++) {\n\t\t\t\ta = new int[3];\n\t\t\t\ta[0] = nextInt();\n\t\t\t\ta[1] = nextInt();\n\t\t\t\ta[2] = nextInt();\n\t\t\t\tArrays.sort(a);\n\t\t\t\t\n//\t\t\t\tfor(int k: a)\n//\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\n\t\t\t\tif ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2])\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "readData", "{\n\t\ttry {\n\t\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t\n\t\t\tint n = nextInt();\n\t\t\tint[] a;\n\t\t\tfor (int i = 0;i < n ; i++) {\n\t\t\t\ta = new int[3];\n\t\t\t\ta[0] = nextInt();\n\t\t\t\ta[1] = nextInt();\n\t\t\t\ta[2] = nextInt();\n\t\t\t\tArrays.sort(a);\n\t\t\t\t\n//\t\t\t\tfor(int k: a)\n//\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\n\t\t\t\tif ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2])\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}", "try {\n\t\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t\n\t\t\tint n = nextInt();\n\t\t\tint[] a;\n\t\t\tfor (int i = 0;i < n ; i++) {\n\t\t\t\ta = new int[3];\n\t\t\t\ta[0] = nextInt();\n\t\t\t\ta[1] = nextInt();\n\t\t\t\ta[2] = nextInt();\n\t\t\t\tArrays.sort(a);\n\t\t\t\t\n//\t\t\t\tfor(int k: a)\n//\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\n\t\t\t\tif ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2])\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}", "Exception e", "{\n\t\t\te.printStackTrace();\n\t\t}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n\t\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t\n\t\t\tint n = nextInt();\n\t\t\tint[] a;\n\t\t\tfor (int i = 0;i < n ; i++) {\n\t\t\t\ta = new int[3];\n\t\t\t\ta[0] = nextInt();\n\t\t\t\ta[1] = nextInt();\n\t\t\t\ta[2] = nextInt();\n\t\t\t\tArrays.sort(a);\n\t\t\t\t\n//\t\t\t\tfor(int k: a)\n//\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\n\t\t\t\tif ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2])\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}", "bf = new BufferedReader(new InputStreamReader(System.in))", "bf", "new BufferedReader(new InputStreamReader(System.in))", "st = new StringTokenizer(bf.readLine())", "st", "new StringTokenizer(bf.readLine())", "int n = nextInt();", "n", "nextInt()", "nextInt", "int[] a;", "a", "for (int i = 0;i < n ; i++) {\n\t\t\t\ta = new int[3];\n\t\t\t\ta[0] = nextInt();\n\t\t\t\ta[1] = nextInt();\n\t\t\t\ta[2] = nextInt();\n\t\t\t\tArrays.sort(a);\n\t\t\t\t\n//\t\t\t\tfor(int k: a)\n//\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\n\t\t\t\tif ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2])\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\ta = new int[3];\n\t\t\t\ta[0] = nextInt();\n\t\t\t\ta[1] = nextInt();\n\t\t\t\ta[2] = nextInt();\n\t\t\t\tArrays.sort(a);\n\t\t\t\t\n//\t\t\t\tfor(int k: a)\n//\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\n\t\t\t\tif ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2])\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "{\n\t\t\t\ta = new int[3];\n\t\t\t\ta[0] = nextInt();\n\t\t\t\ta[1] = nextInt();\n\t\t\t\ta[2] = nextInt();\n\t\t\t\tArrays.sort(a);\n\t\t\t\t\n//\t\t\t\tfor(int k: a)\n//\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\n\t\t\t\tif ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2])\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "a = new int[3]", "a", "new int[3]", "3", "a[0] = nextInt()", "a[0]", "a", "0", "nextInt()", "nextInt", "a[1] = nextInt()", "a[1]", "a", "1", "nextInt()", "nextInt", "a[2] = nextInt()", "a[2]", "a", "2", "nextInt()", "nextInt", "Arrays.sort(a)", "Arrays.sort", "Arrays", "a", "if ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2])\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");", "(a[0]*a[0]+a[1]*a[1])==a[2]*a[2]", "(a[0]*a[0]+a[1]*a[1])", "a[0]*a[0]", "a[0]", "a", "0", "a[0]", "a", "0", "a[1]*a[1]", "a[1]", "a", "1", "a[1]", "a", "1", "a[2]*a[2]", "a[2]", "a", "2", "a[2]", "a", "2", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "private int nextInt() throws IOException {\n\t\treturn Integer.parseInt(next());\n\t}", "nextInt", "{\n\t\treturn Integer.parseInt(next());\n\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "private String next() throws IOException {\n\t\tif (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\treturn st.nextToken();\n\t}", "next", "{\n\t\tif (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\treturn st.nextToken();\n\t}", "if (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(bf.readLine());", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "st = new StringTokenizer(bf.readLine())", "st", "new StringTokenizer(bf.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tMain m = new Main();\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tMain m = new Main();\n\t}", "Main m = new Main();", "m", "new Main()", "String[] args", "args", "public class Main {\n\tprivate StringTokenizer st;\n\tprivate BufferedReader bf;\n\tprivate int w;\n\t\n\tMain() {\n\t\treadData();\n\t\t\n\n\t}\t\n\n\tprivate void readData() {\n\t\ttry {\n\t\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t\n\t\t\tint n = nextInt();\n\t\t\tint[] a;\n\t\t\tfor (int i = 0;i < n ; i++) {\n\t\t\t\ta = new int[3];\n\t\t\t\ta[0] = nextInt();\n\t\t\t\ta[1] = nextInt();\n\t\t\t\ta[2] = nextInt();\n\t\t\t\tArrays.sort(a);\n\t\t\t\t\n//\t\t\t\tfor(int k: a)\n//\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\n\t\t\t\tif ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2])\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\t\n\tprivate int nextInt() throws IOException {\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\t\n\tprivate String next() throws IOException {\n\t\tif (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\treturn st.nextToken();\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tMain m = new Main();\n\t}\n\n}", "public class Main {\n\tprivate StringTokenizer st;\n\tprivate BufferedReader bf;\n\tprivate int w;\n\t\n\tMain() {\n\t\treadData();\n\t\t\n\n\t}\t\n\n\tprivate void readData() {\n\t\ttry {\n\t\t\tbf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\t\t\n\t\t\tint n = nextInt();\n\t\t\tint[] a;\n\t\t\tfor (int i = 0;i < n ; i++) {\n\t\t\t\ta = new int[3];\n\t\t\t\ta[0] = nextInt();\n\t\t\t\ta[1] = nextInt();\n\t\t\t\ta[2] = nextInt();\n\t\t\t\tArrays.sort(a);\n\t\t\t\t\n//\t\t\t\tfor(int k: a)\n//\t\t\t\t\tSystem.out.println(k);\n\t\t\t\t\t\n\t\t\t\tif ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2])\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\t\n\tprivate int nextInt() throws IOException {\n\t\treturn Integer.parseInt(next());\n\t}\n\t\n\t\n\tprivate String next() throws IOException {\n\t\tif (st == null || !st.hasMoreTokens())\n\t\t\tst = new StringTokenizer(bf.readLine());\n\t\treturn st.nextToken();\n\t}\n\t\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tMain m = new Main();\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class Main { private StringTokenizer st; private BufferedReader bf; private int w; Main() { readData(); } private void readData() { try { bf = new BufferedReader(new InputStreamReader(System.in)); st = new StringTokenizer(bf.readLine()); int n = nextInt(); int[] a; for (int i = 0;i < n ; i++) { a = new int[3]; a[0] = nextInt(); a[1] = nextInt(); a[2] = nextInt(); Arrays.sort(a); // for(int k: a) // System.out.println(k); if ((a[0]*a[0]+a[1]*a[1])==a[2]*a[2]) System.out.println("YES"); else System.out.println("NO"); } } catch (Exception e) { e.printStackTrace(); } } private int nextInt() throws IOException { return Integer.parseInt(next()); } private String next() throws IOException { if (st == null || !st.hasMoreTokens()) st = new StringTokenizer(bf.readLine()); return st.nextToken(); } public static void main(String[] args) { // TODO Auto-generated method stub Main m = new Main(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 0, 13, 4, 18, 13, 4, 18, 13, 18, 13, 17, 17, 0, 13, 4, 18, 13, 4, 18, 13, 18, 13, 17, 17, 0, 13, 4, 18, 13, 4, 18, 13, 18, 13, 17, 17, 14, 2, 2, 2, 2, 13, 13, 13, 2, 2, 13, 13, 13, 2, 2, 13, 13, 13, 30, 4, 18, 13, 17, 30, 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 ], [ 126, 8 ], [ 126, 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 ], [ 20, 23 ], [ 23, 24 ], [ 24, 25 ], [ 11, 26 ], [ 26, 27 ], [ 11, 28 ], [ 28, 29 ], [ 11, 30 ], [ 30, 31 ], [ 11, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 47, 52 ], [ 44, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 61, 62 ], [ 61, 63 ], [ 55, 64 ], [ 44, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 73, 74 ], [ 73, 75 ], [ 67, 76 ], [ 44, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 85, 87 ], [ 79, 88 ], [ 44, 89 ], [ 89, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 91, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 97, 101 ], [ 91, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 89, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 89, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 11, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 9, 123 ], [ 123, 124 ], [ 0, 125 ], [ 125, 126 ], [ 125, 127 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n StringBuffer sb = new StringBuffer();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n \n double a,b,c;\n for(int i=0;i<n;i++){\n String[] str = (br.readLine()).split(\" \");\n a = Math.pow(Integer.parseInt(str[0]),2);\n b = Math.pow(Integer.parseInt(str[1]),2);\n c = Math.pow(Integer.parseInt(str[2]),2);\n if(a+b==c || a+c==b || b+c==a){\n sb.append(\"YES\\n\");\n }\n else{\n sb.append(\"NO\\n\");\n }\n }\n System.out.print(sb);\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 StringBuffer sb = new StringBuffer();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n \n double a,b,c;\n for(int i=0;i<n;i++){\n String[] str = (br.readLine()).split(\" \");\n a = Math.pow(Integer.parseInt(str[0]),2);\n b = Math.pow(Integer.parseInt(str[1]),2);\n c = Math.pow(Integer.parseInt(str[2]),2);\n if(a+b==c || a+c==b || b+c==a){\n sb.append(\"YES\\n\");\n }\n else{\n sb.append(\"NO\\n\");\n }\n }\n System.out.print(sb);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n StringBuffer sb = new StringBuffer();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n \n double a,b,c;\n for(int i=0;i<n;i++){\n String[] str = (br.readLine()).split(\" \");\n a = Math.pow(Integer.parseInt(str[0]),2);\n b = Math.pow(Integer.parseInt(str[1]),2);\n c = Math.pow(Integer.parseInt(str[2]),2);\n if(a+b==c || a+c==b || b+c==a){\n sb.append(\"YES\\n\");\n }\n else{\n sb.append(\"NO\\n\");\n }\n }\n System.out.print(sb);\n }", "main", "{\n StringBuffer sb = new StringBuffer();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n \n double a,b,c;\n for(int i=0;i<n;i++){\n String[] str = (br.readLine()).split(\" \");\n a = Math.pow(Integer.parseInt(str[0]),2);\n b = Math.pow(Integer.parseInt(str[1]),2);\n c = Math.pow(Integer.parseInt(str[2]),2);\n if(a+b==c || a+c==b || b+c==a){\n sb.append(\"YES\\n\");\n }\n else{\n sb.append(\"NO\\n\");\n }\n }\n System.out.print(sb);\n }", "StringBuffer sb = new StringBuffer();", "sb", "new StringBuffer()", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "int n = Integer.parseInt(br.readLine());", "n", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "double a", "a", "b", "b", "c;", "c", "for(int i=0;i<n;i++){\n String[] str = (br.readLine()).split(\" \");\n a = Math.pow(Integer.parseInt(str[0]),2);\n b = Math.pow(Integer.parseInt(str[1]),2);\n c = Math.pow(Integer.parseInt(str[2]),2);\n if(a+b==c || a+c==b || b+c==a){\n sb.append(\"YES\\n\");\n }\n else{\n sb.append(\"NO\\n\");\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n String[] str = (br.readLine()).split(\" \");\n a = Math.pow(Integer.parseInt(str[0]),2);\n b = Math.pow(Integer.parseInt(str[1]),2);\n c = Math.pow(Integer.parseInt(str[2]),2);\n if(a+b==c || a+c==b || b+c==a){\n sb.append(\"YES\\n\");\n }\n else{\n sb.append(\"NO\\n\");\n }\n }", "{\n String[] str = (br.readLine()).split(\" \");\n a = Math.pow(Integer.parseInt(str[0]),2);\n b = Math.pow(Integer.parseInt(str[1]),2);\n c = Math.pow(Integer.parseInt(str[2]),2);\n if(a+b==c || a+c==b || b+c==a){\n sb.append(\"YES\\n\");\n }\n else{\n sb.append(\"NO\\n\");\n }\n }", "String[] str = (br.readLine()).split(\" \");", "str", "(br.readLine()).split(\" \")", "(br.readLine()).split", "(br.readLine())", "br.readLine", "br", "\" \"", "a = Math.pow(Integer.parseInt(str[0]),2)", "a", "Math.pow(Integer.parseInt(str[0]),2)", "Math.pow", "Math", "Integer.parseInt(str[0])", "Integer.parseInt", "Integer", "str[0]", "str", "0", "2", "b = Math.pow(Integer.parseInt(str[1]),2)", "b", "Math.pow(Integer.parseInt(str[1]),2)", "Math.pow", "Math", "Integer.parseInt(str[1])", "Integer.parseInt", "Integer", "str[1]", "str", "1", "2", "c = Math.pow(Integer.parseInt(str[2]),2)", "c", "Math.pow(Integer.parseInt(str[2]),2)", "Math.pow", "Math", "Integer.parseInt(str[2])", "Integer.parseInt", "Integer", "str[2]", "str", "2", "2", "if(a+b==c || a+c==b || b+c==a){\n sb.append(\"YES\\n\");\n }\n else{\n sb.append(\"NO\\n\");\n }", "a+b==c || a+c==b || b+c==a", "a+b==c || a+c==b || b+c==a", "a+b==c", "a+b", "a", "b", "c", "a+c==b", "a+c", "a", "c", "b", "b+c==a", "b+c", "b", "c", "a", "{\n sb.append(\"YES\\n\");\n }", "sb.append(\"YES\\n\")", "sb.append", "sb", "\"YES\\n\"", "{\n sb.append(\"NO\\n\");\n }", "sb.append(\"NO\\n\")", "sb.append", "sb", "\"NO\\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 Exception {\n StringBuffer sb = new StringBuffer();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n \n double a,b,c;\n for(int i=0;i<n;i++){\n String[] str = (br.readLine()).split(\" \");\n a = Math.pow(Integer.parseInt(str[0]),2);\n b = Math.pow(Integer.parseInt(str[1]),2);\n c = Math.pow(Integer.parseInt(str[2]),2);\n if(a+b==c || a+c==b || b+c==a){\n sb.append(\"YES\\n\");\n }\n else{\n sb.append(\"NO\\n\");\n }\n }\n System.out.print(sb);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n StringBuffer sb = new StringBuffer();\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n \n double a,b,c;\n for(int i=0;i<n;i++){\n String[] str = (br.readLine()).split(\" \");\n a = Math.pow(Integer.parseInt(str[0]),2);\n b = Math.pow(Integer.parseInt(str[1]),2);\n c = Math.pow(Integer.parseInt(str[2]),2);\n if(a+b==c || a+c==b || b+c==a){\n sb.append(\"YES\\n\");\n }\n else{\n sb.append(\"NO\\n\");\n }\n }\n System.out.print(sb);\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws Exception { StringBuffer sb = new StringBuffer(); BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.readLine()); double a,b,c; for(int i=0;i<n;i++){ String[] str = (br.readLine()).split(" "); a = Math.pow(Integer.parseInt(str[0]),2); b = Math.pow(Integer.parseInt(str[1]),2); c = Math.pow(Integer.parseInt(str[2]),2); if(a+b==c || a+c==b || b+c==a){ sb.append("YES\n"); } else{ sb.append("NO\n"); } } System.out.print(sb); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 0, 18, 13, 13, 2, 13, 13, 4, 18, 13, 13, 14, 2, 2, 18, 13, 17, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 95, 8 ], [ 95, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 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 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 49, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 55, 59 ], [ 59, 60 ], [ 59, 61 ], [ 36, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 36, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 72, 74 ], [ 67, 75 ], [ 75, 76 ], [ 75, 77 ], [ 66, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 66, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 9, 92 ], [ 92, 93 ], [ 0, 94 ], [ 94, 95 ], [ 94, 96 ] ]
[ "\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int kosu = sc.nextInt();\n int hen [] = new int [3];\n\n for(int j=0; j<kosu; j++ ){\n for(int k=0; k<3; k++){\n int len = sc.nextInt();\n hen[k] = len*len;\n }\n Arrays.sort(hen);\n \n if((hen[0] + hen[1]) == hen[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n \n }\n\n }\n \n }", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int kosu = sc.nextInt();\n int hen [] = new int [3];\n\n for(int j=0; j<kosu; j++ ){\n for(int k=0; k<3; k++){\n int len = sc.nextInt();\n hen[k] = len*len;\n }\n Arrays.sort(hen);\n \n if((hen[0] + hen[1]) == hen[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n \n }\n\n }\n \n }", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int kosu = sc.nextInt();\n int hen [] = new int [3];\n\n for(int j=0; j<kosu; j++ ){\n for(int k=0; k<3; k++){\n int len = sc.nextInt();\n hen[k] = len*len;\n }\n Arrays.sort(hen);\n \n if((hen[0] + hen[1]) == hen[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n \n }\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int kosu = sc.nextInt();\n int hen [] = new int [3];\n\n for(int j=0; j<kosu; j++ ){\n for(int k=0; k<3; k++){\n int len = sc.nextInt();\n hen[k] = len*len;\n }\n Arrays.sort(hen);\n \n if((hen[0] + hen[1]) == hen[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n \n }\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int kosu = sc.nextInt();", "kosu", "sc.nextInt()", "sc.nextInt", "sc", "int hen [] = new int [3];", "hen", "new int [3]", "3", "for(int j=0; j<kosu; j++ ){\n for(int k=0; k<3; k++){\n int len = sc.nextInt();\n hen[k] = len*len;\n }\n Arrays.sort(hen);\n \n if((hen[0] + hen[1]) == hen[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n \n }", "int j=0;", "int j=0;", "j", "0", "j<kosu", "j", "kosu", "j++", "j++", "j", "{\n for(int k=0; k<3; k++){\n int len = sc.nextInt();\n hen[k] = len*len;\n }\n Arrays.sort(hen);\n \n if((hen[0] + hen[1]) == hen[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n \n }", "{\n for(int k=0; k<3; k++){\n int len = sc.nextInt();\n hen[k] = len*len;\n }\n Arrays.sort(hen);\n \n if((hen[0] + hen[1]) == hen[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n \n }", "for(int k=0; k<3; k++){\n int len = sc.nextInt();\n hen[k] = len*len;\n }", "int k=0;", "int k=0;", "k", "0", "k<3", "k", "3", "k++", "k++", "k", "{\n int len = sc.nextInt();\n hen[k] = len*len;\n }", "{\n int len = sc.nextInt();\n hen[k] = len*len;\n }", "int len = sc.nextInt();", "len", "sc.nextInt()", "sc.nextInt", "sc", "hen[k] = len*len", "hen[k]", "hen", "k", "len*len", "len", "len", "Arrays.sort(hen)", "Arrays.sort", "Arrays", "hen", "if((hen[0] + hen[1]) == hen[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }", "(hen[0] + hen[1]) == hen[2]", "(hen[0] + hen[1])", "hen[0]", "hen", "0", "hen[1]", "hen", "1", "hen[2]", "hen", "2", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int kosu = sc.nextInt();\n int hen [] = new int [3];\n\n for(int j=0; j<kosu; j++ ){\n for(int k=0; k<3; k++){\n int len = sc.nextInt();\n hen[k] = len*len;\n }\n Arrays.sort(hen);\n \n if((hen[0] + hen[1]) == hen[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n \n }\n\n }\n \n }", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int kosu = sc.nextInt();\n int hen [] = new int [3];\n\n for(int j=0; j<kosu; j++ ){\n for(int k=0; k<3; k++){\n int len = sc.nextInt();\n hen[k] = len*len;\n }\n Arrays.sort(hen);\n \n if((hen[0] + hen[1]) == hen[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n \n }\n\n }\n \n }", "Main" ]
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int kosu = sc.nextInt(); int hen [] = new int [3]; for(int j=0; j<kosu; j++ ){ for(int k=0; k<3; k++){ int len = sc.nextInt(); hen[k] = len*len; } Arrays.sort(hen); if((hen[0] + hen[1]) == hen[2]){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 29, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 40, 13, 17, 30, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 14, 4, 13, 18, 13, 17, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 12, 13, 30, 4, 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 ], [ 13, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 13, 21 ], [ 21, 22 ], [ 21, 23 ], [ 9, 24 ], [ 24, 25 ], [ 9, 26 ], [ 26, 27 ], [ 9, 28 ], [ 28, 29 ], [ 7, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 32, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 32, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 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 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 69, 70 ], [ 46, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 46, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 76, 84 ], [ 84, 85 ], [ 84, 86 ], [ 75, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 75, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 7, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 101, 106 ], [ 106, 107 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\nclass Main {\n private static boolean isRightTriangle(int a, int b, int c) {\n return a * a + b * b == c * c;\n }\n\n private static void solve() {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n while (n-- > 0) {\n int[] triangle = new int[3];\n for (int i = 0; i < 3; i++) {\n triangle[i] = scanner.nextInt();\n }\n Arrays.sort(triangle);\n if (isRightTriangle(triangle[0], triangle[1], triangle[2])) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n public static void main(String... args) {\n solve();\n }\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n private static boolean isRightTriangle(int a, int b, int c) {\n return a * a + b * b == c * c;\n }\n\n private static void solve() {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n while (n-- > 0) {\n int[] triangle = new int[3];\n for (int i = 0; i < 3; i++) {\n triangle[i] = scanner.nextInt();\n }\n Arrays.sort(triangle);\n if (isRightTriangle(triangle[0], triangle[1], triangle[2])) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n public static void main(String... args) {\n solve();\n }\n}", "Main", "private static boolean isRightTriangle(int a, int b, int c) {\n return a * a + b * b == c * c;\n }", "isRightTriangle", "{\n return a * a + b * b == c * c;\n }", "return a * a + b * b == c * c;", "a * a + b * b == c * c", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "c * c", "c", "c", "int a", "a", "int b", "b", "int c", "c", "private static void solve() {\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n while (n-- > 0) {\n int[] triangle = new int[3];\n for (int i = 0; i < 3; i++) {\n triangle[i] = scanner.nextInt();\n }\n Arrays.sort(triangle);\n if (isRightTriangle(triangle[0], triangle[1], triangle[2])) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "solve", "{\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n while (n-- > 0) {\n int[] triangle = new int[3];\n for (int i = 0; i < 3; i++) {\n triangle[i] = scanner.nextInt();\n }\n Arrays.sort(triangle);\n if (isRightTriangle(triangle[0], triangle[1], triangle[2])) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "while (n-- > 0) {\n int[] triangle = new int[3];\n for (int i = 0; i < 3; i++) {\n triangle[i] = scanner.nextInt();\n }\n Arrays.sort(triangle);\n if (isRightTriangle(triangle[0], triangle[1], triangle[2])) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "n-- > 0", "n--", "n", "0", "{\n int[] triangle = new int[3];\n for (int i = 0; i < 3; i++) {\n triangle[i] = scanner.nextInt();\n }\n Arrays.sort(triangle);\n if (isRightTriangle(triangle[0], triangle[1], triangle[2])) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "int[] triangle = new int[3];", "triangle", "new int[3]", "3", "for (int i = 0; i < 3; i++) {\n triangle[i] = scanner.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n triangle[i] = scanner.nextInt();\n }", "{\n triangle[i] = scanner.nextInt();\n }", "triangle[i] = scanner.nextInt()", "triangle[i]", "triangle", "i", "scanner.nextInt()", "scanner.nextInt", "scanner", "Arrays.sort(triangle)", "Arrays.sort", "Arrays", "triangle", "if (isRightTriangle(triangle[0], triangle[1], triangle[2])) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "isRightTriangle(triangle[0], triangle[1], triangle[2])", "isRightTriangle", "triangle[0]", "triangle", "0", "triangle[1]", "triangle", "1", "triangle[2]", "triangle", "2", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "public static void main(String... args) {\n solve();\n }", "main", "{\n solve();\n }", "solve()", "solve", "String... args", "args" ]
import java.util.Arrays; import java.util.Scanner; class Main { private static boolean isRightTriangle(int a, int b, int c) { return a * a + b * b == c * c; } private static void solve() { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); while (n-- > 0) { int[] triangle = new int[3]; for (int i = 0; i < 3; i++) { triangle[i] = scanner.nextInt(); } Arrays.sort(triangle); if (isRightTriangle(triangle[0], triangle[1], triangle[2])) { System.out.println("YES"); } else { System.out.println("NO"); } } } public static void main(String... args) { solve(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 42, 2, 40, 13, 17, 30, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 17, 14, 2, 2, 2, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 6 ], [ 6, 7 ], [ 6, 8 ], [ 104, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 47, 48 ], [ 48, 49 ], [ 44, 50 ], [ 22, 51 ], [ 51, 52 ], [ 53, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 53, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 53, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 84, 86 ], [ 51, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 51, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 9, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint num = sc.nextInt();\n\n\t\twhile(num-- != 0) {\n\t\t\tint[] side = new int[3];\n\t\t\tfor(int count = 0; count < 3; count++) {\n\t\t\t\tside[count] = (int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\n\t\t\tif(side[0] == side[1] + side[2] || side[1] == side[0] + side[2] || side[2] == side[0] + side[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint num = sc.nextInt();\n\n\t\twhile(num-- != 0) {\n\t\t\tint[] side = new int[3];\n\t\t\tfor(int count = 0; count < 3; count++) {\n\t\t\t\tside[count] = (int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\n\t\t\tif(side[0] == side[1] + side[2] || side[1] == side[0] + side[2] || side[2] == side[0] + side[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args) {\n\n\t\tint num = sc.nextInt();\n\n\t\twhile(num-- != 0) {\n\t\t\tint[] side = new int[3];\n\t\t\tfor(int count = 0; count < 3; count++) {\n\t\t\t\tside[count] = (int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\n\t\t\tif(side[0] == side[1] + side[2] || side[1] == side[0] + side[2] || side[2] == side[0] + side[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}", "main", "{\n\n\t\tint num = sc.nextInt();\n\n\t\twhile(num-- != 0) {\n\t\t\tint[] side = new int[3];\n\t\t\tfor(int count = 0; count < 3; count++) {\n\t\t\t\tside[count] = (int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\n\t\t\tif(side[0] == side[1] + side[2] || side[1] == side[0] + side[2] || side[2] == side[0] + side[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}", "int num = sc.nextInt();", "num", "sc.nextInt()", "sc.nextInt", "sc", "while(num-- != 0) {\n\t\t\tint[] side = new int[3];\n\t\t\tfor(int count = 0; count < 3; count++) {\n\t\t\t\tside[count] = (int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\n\t\t\tif(side[0] == side[1] + side[2] || side[1] == side[0] + side[2] || side[2] == side[0] + side[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "num-- != 0", "num--", "num", "0", "{\n\t\t\tint[] side = new int[3];\n\t\t\tfor(int count = 0; count < 3; count++) {\n\t\t\t\tside[count] = (int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\n\t\t\tif(side[0] == side[1] + side[2] || side[1] == side[0] + side[2] || side[2] == side[0] + side[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int[] side = new int[3];", "side", "new int[3]", "3", "for(int count = 0; count < 3; count++) {\n\t\t\t\tside[count] = (int)Math.pow(sc.nextInt(), 2);\n\t\t\t}", "int count = 0;", "int count = 0;", "count", "0", "count < 3", "count", "3", "count++", "count++", "count", "{\n\t\t\t\tside[count] = (int)Math.pow(sc.nextInt(), 2);\n\t\t\t}", "{\n\t\t\t\tside[count] = (int)Math.pow(sc.nextInt(), 2);\n\t\t\t}", "side[count] = (int)Math.pow(sc.nextInt(), 2)", "side[count]", "side", "count", "(int)Math.pow(sc.nextInt(), 2)", "Math.pow", "Math", "sc.nextInt()", "sc.nextInt", "sc", "2", "if(side[0] == side[1] + side[2] || side[1] == side[0] + side[2] || side[2] == side[0] + side[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "side[0] == side[1] + side[2] || side[1] == side[0] + side[2] || side[2] == side[0] + side[1]", "side[0] == side[1] + side[2] || side[1] == side[0] + side[2] || side[2] == side[0] + side[1]", "side[0] == side[1] + side[2]", "side[0]", "side", "0", "side[1] + side[2]", "side[1]", "side", "1", "side[2]", "side", "2", "side[1] == side[0] + side[2]", "side[1]", "side", "1", "side[0] + side[2]", "side[0]", "side", "0", "side[2]", "side", "2", "side[2] == side[0] + side[1]", "side[2]", "side", "2", "side[0] + side[1]", "side[0]", "side", "0", "side[1]", "side", "1", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint num = sc.nextInt();\n\n\t\twhile(num-- != 0) {\n\t\t\tint[] side = new int[3];\n\t\t\tfor(int count = 0; count < 3; count++) {\n\t\t\t\tside[count] = (int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\n\t\t\tif(side[0] == side[1] + side[2] || side[1] == side[0] + side[2] || side[2] == side[0] + side[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n\n}", "public class Main {\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint num = sc.nextInt();\n\n\t\twhile(num-- != 0) {\n\t\t\tint[] side = new int[3];\n\t\t\tfor(int count = 0; count < 3; count++) {\n\t\t\t\tside[count] = (int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\n\t\t\tif(side[0] == side[1] + side[2] || side[1] == side[0] + side[2] || side[2] == side[0] + side[1]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { static Scanner sc = new Scanner(System.in); public static void main(String[] args) { int num = sc.nextInt(); while(num-- != 0) { int[] side = new int[3]; for(int count = 0; count < 3; count++) { side[count] = (int)Math.pow(sc.nextInt(), 2); } if(side[0] == side[1] + side[2] || side[1] == side[0] + side[2] || side[2] == side[0] + side[1]) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 14, 2, 2, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 138, 8 ], [ 138, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 17, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 29, 31 ], [ 11, 32 ], [ 32, 33 ], [ 11, 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 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 46, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 46, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 66, 68 ], [ 46, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 74, 76 ], [ 46, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 82, 83 ], [ 82, 84 ], [ 46, 85 ], [ 85, 86 ], [ 87, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 88, 96 ], [ 96, 97 ], [ 96, 98 ], [ 87, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 99, 107 ], [ 107, 108 ], [ 107, 109 ], [ 87, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 111, 115 ], [ 115, 116 ], [ 115, 117 ], [ 110, 118 ], [ 118, 119 ], [ 118, 120 ], [ 85, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 122, 127 ], [ 85, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 129, 134 ], [ 9, 135 ], [ 135, 136 ], [ 0, 137 ], [ 137, 138 ], [ 137, 139 ] ]
[ "import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n int count = Integer.parseInt(sc.nextLine());\n int a = 0;\n int b = 0;\n int c = 0;\n\n String[] req;\n for (int i = 0; i < count; i++) {\n sc.hasNext();\n String s = sc.nextLine();\n req = s.split(\" \");\n a = Integer.parseInt(req[0]);\n b = Integer.parseInt(req[1]);\n c = Integer.parseInt(req[2]);\n\n if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n int count = Integer.parseInt(sc.nextLine());\n int a = 0;\n int b = 0;\n int c = 0;\n\n String[] req;\n for (int i = 0; i < count; i++) {\n sc.hasNext();\n String s = sc.nextLine();\n req = s.split(\" \");\n a = Integer.parseInt(req[0]);\n b = Integer.parseInt(req[1]);\n c = Integer.parseInt(req[2]);\n\n if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}", "Main", "public static void main(String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n int count = Integer.parseInt(sc.nextLine());\n int a = 0;\n int b = 0;\n int c = 0;\n\n String[] req;\n for (int i = 0; i < count; i++) {\n sc.hasNext();\n String s = sc.nextLine();\n req = s.split(\" \");\n a = Integer.parseInt(req[0]);\n b = Integer.parseInt(req[1]);\n c = Integer.parseInt(req[2]);\n\n if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int count = Integer.parseInt(sc.nextLine());\n int a = 0;\n int b = 0;\n int c = 0;\n\n String[] req;\n for (int i = 0; i < count; i++) {\n sc.hasNext();\n String s = sc.nextLine();\n req = s.split(\" \");\n a = Integer.parseInt(req[0]);\n b = Integer.parseInt(req[1]);\n c = Integer.parseInt(req[2]);\n\n if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int count = Integer.parseInt(sc.nextLine());", "count", "Integer.parseInt(sc.nextLine())", "Integer.parseInt", "Integer", "sc.nextLine()", "sc.nextLine", "sc", "int a = 0;", "a", "0", "int b = 0;", "b", "0", "int c = 0;", "c", "0", "String[] req;", "req", "for (int i = 0; i < count; i++) {\n sc.hasNext();\n String s = sc.nextLine();\n req = s.split(\" \");\n a = Integer.parseInt(req[0]);\n b = Integer.parseInt(req[1]);\n c = Integer.parseInt(req[2]);\n\n if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < count", "i", "count", "i++", "i++", "i", "{\n sc.hasNext();\n String s = sc.nextLine();\n req = s.split(\" \");\n a = Integer.parseInt(req[0]);\n b = Integer.parseInt(req[1]);\n c = Integer.parseInt(req[2]);\n\n if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "{\n sc.hasNext();\n String s = sc.nextLine();\n req = s.split(\" \");\n a = Integer.parseInt(req[0]);\n b = Integer.parseInt(req[1]);\n c = Integer.parseInt(req[2]);\n\n if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "sc.hasNext()", "sc.hasNext", "sc", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "req = s.split(\" \")", "req", "s.split(\" \")", "s.split", "s", "\" \"", "a = Integer.parseInt(req[0])", "a", "Integer.parseInt(req[0])", "Integer.parseInt", "Integer", "req[0]", "req", "0", "b = Integer.parseInt(req[1])", "b", "Integer.parseInt(req[1])", "Integer.parseInt", "Integer", "req[1]", "req", "1", "c = Integer.parseInt(req[2])", "c", "Integer.parseInt(req[2])", "Integer.parseInt", "Integer", "req[2]", "req", "2", "if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b", "a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b", "a * a + b * b == c * c", "a * a + b * b", "a * a", "a", "a", "b * b", "b", "b", "c * c", "c", "c", "b * b + c * c == a * a", "b * b + c * c", "b * b", "b", "b", "c * c", "c", "c", "a * a", "a", "a", "c * c + a * a == b * b", "c * c + a * a", "c * c", "c", "c", "a * a", "a", "a", "b * b", "b", "b", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String args[]", "args", "public class Main {\n public static void main(String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n int count = Integer.parseInt(sc.nextLine());\n int a = 0;\n int b = 0;\n int c = 0;\n\n String[] req;\n for (int i = 0; i < count; i++) {\n sc.hasNext();\n String s = sc.nextLine();\n req = s.split(\" \");\n a = Integer.parseInt(req[0]);\n b = Integer.parseInt(req[1]);\n c = Integer.parseInt(req[2]);\n\n if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}", "public class Main {\n public static void main(String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n int count = Integer.parseInt(sc.nextLine());\n int a = 0;\n int b = 0;\n int c = 0;\n\n String[] req;\n for (int i = 0; i < count; i++) {\n sc.hasNext();\n String s = sc.nextLine();\n req = s.split(\" \");\n a = Integer.parseInt(req[0]);\n b = Integer.parseInt(req[1]);\n c = Integer.parseInt(req[2]);\n\n if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\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); int count = Integer.parseInt(sc.nextLine()); int a = 0; int b = 0; int c = 0; String[] req; for (int i = 0; i < count; i++) { sc.hasNext(); String s = sc.nextLine(); req = s.split(" "); a = Integer.parseInt(req[0]); b = Integer.parseInt(req[1]); c = Integer.parseInt(req[2]); if (a * a + b * b == c * c || b * b + c * c == a * a || c * c + a * a == b * b) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 58, 59 ], [ 38, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 38, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 38, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 70, 73 ], [ 38, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 38, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 38, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 88, 92 ], [ 92, 93 ], [ 92, 94 ], [ 87, 95 ], [ 95, 96 ], [ 95, 97 ], [ 86, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 86, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 106, 111 ], [ 15, 112 ], [ 112, 113 ] ]
[ "import java.io.*;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) throws IOException {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n for(int i=0;i<n;i++) {\n ArrayList<Integer>intArr = new ArrayList<Integer>();\n for(int j=0;j<3;j++)\n intArr.add(in.nextInt());\n Collections.sort(intArr);\n Collections.reverse(intArr);\n int c = intArr.get(0);\n int a = intArr.get(1);\n int b = intArr.get(2);\n if(a*a + b*b == c*c) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n public static void main(String[] args) throws IOException {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n for(int i=0;i<n;i++) {\n ArrayList<Integer>intArr = new ArrayList<Integer>();\n for(int j=0;j<3;j++)\n intArr.add(in.nextInt());\n Collections.sort(intArr);\n Collections.reverse(intArr);\n int c = intArr.get(0);\n int a = intArr.get(1);\n int b = intArr.get(2);\n if(a*a + b*b == c*c) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n for(int i=0;i<n;i++) {\n ArrayList<Integer>intArr = new ArrayList<Integer>();\n for(int j=0;j<3;j++)\n intArr.add(in.nextInt());\n Collections.sort(intArr);\n Collections.reverse(intArr);\n int c = intArr.get(0);\n int a = intArr.get(1);\n int b = intArr.get(2);\n if(a*a + b*b == c*c) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "main", "{\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n for(int i=0;i<n;i++) {\n ArrayList<Integer>intArr = new ArrayList<Integer>();\n for(int j=0;j<3;j++)\n intArr.add(in.nextInt());\n Collections.sort(intArr);\n Collections.reverse(intArr);\n int c = intArr.get(0);\n int a = intArr.get(1);\n int b = intArr.get(2);\n if(a*a + b*b == c*c) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "int n = in.nextInt();", "n", "in.nextInt()", "in.nextInt", "in", "for(int i=0;i<n;i++) {\n ArrayList<Integer>intArr = new ArrayList<Integer>();\n for(int j=0;j<3;j++)\n intArr.add(in.nextInt());\n Collections.sort(intArr);\n Collections.reverse(intArr);\n int c = intArr.get(0);\n int a = intArr.get(1);\n int b = intArr.get(2);\n if(a*a + b*b == c*c) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n ArrayList<Integer>intArr = new ArrayList<Integer>();\n for(int j=0;j<3;j++)\n intArr.add(in.nextInt());\n Collections.sort(intArr);\n Collections.reverse(intArr);\n int c = intArr.get(0);\n int a = intArr.get(1);\n int b = intArr.get(2);\n if(a*a + b*b == c*c) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "{\n ArrayList<Integer>intArr = new ArrayList<Integer>();\n for(int j=0;j<3;j++)\n intArr.add(in.nextInt());\n Collections.sort(intArr);\n Collections.reverse(intArr);\n int c = intArr.get(0);\n int a = intArr.get(1);\n int b = intArr.get(2);\n if(a*a + b*b == c*c) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }", "ArrayList<Integer>intArr = new ArrayList<Integer>();", "intArr", "new ArrayList<Integer>()", "for(int j=0;j<3;j++)\n intArr.add(in.nextInt());", "int j=0;", "int j=0;", "j", "0", "j<3", "j", "3", "j++", "j++", "j", "intArr.add(in.nextInt());", "intArr.add(in.nextInt())", "intArr.add", "intArr", "in.nextInt()", "in.nextInt", "in", "Collections.sort(intArr)", "Collections.sort", "Collections", "intArr", "Collections.reverse(intArr)", "Collections.reverse", "Collections", "intArr", "int c = intArr.get(0);", "c", "intArr.get(0)", "intArr.get", "intArr", "0", "int a = intArr.get(1);", "a", "intArr.get(1)", "intArr.get", "intArr", "1", "int b = intArr.get(2);", "b", "intArr.get(2)", "intArr.get", "intArr", "2", "if(a*a + b*b == c*c) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }", "a*a + b*b == c*c", "a*a + b*b", "a*a", "a", "a", "b*b", "b", "b", "c*c", "c", "c", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args" ]
import java.io.*; import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; class Main { public static void main(String[] args) throws IOException { Scanner in = new Scanner(System.in); int n = in.nextInt(); for(int i=0;i<n;i++) { ArrayList<Integer>intArr = new ArrayList<Integer>(); for(int j=0;j<3;j++) intArr.add(in.nextInt()); Collections.sort(intArr); Collections.reverse(intArr); int c = intArr.get(0); int a = intArr.get(1); int b = intArr.get(2); if(a*a + b*b == c*c) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 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, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 20, 0, 13, 20, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 2, 4, 18, 13, 17, 4, 18, 13, 17, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 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 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 155, 20 ], [ 155, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 27, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 37, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 37, 51 ], [ 51, 52 ], [ 37, 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 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 65, 71 ], [ 71, 72 ], [ 71, 73 ], [ 65, 74 ], [ 74, 75 ], [ 74, 76 ], [ 65, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 65, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 92, 93 ], [ 93, 94 ], [ 65, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 102, 103 ], [ 65, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 65, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 111, 116 ], [ 116, 117 ], [ 117, 118 ], [ 116, 119 ], [ 110, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 120, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 109, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 129, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 108, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 139, 144 ], [ 108, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 146, 151 ], [ 21, 152 ], [ 152, 153 ], [ 0, 154 ], [ 154, 155 ], [ 154, 156 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.StringTokenizer;\n\npublic class Main{\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n ArrayList<Integer> side;\n String line = br.readLine();\n int x = Integer.parseInt(line);\n StringTokenizer tokens;\n for(int i=0;i<x;i++){\n line = br.readLine();\n tokens = new StringTokenizer(line);\n side = new ArrayList<>();\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n Collections.sort(side);\n if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n catch(Exception e){\n System.out.println(e);\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", "import java.util.Collections;", "Collections", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main{\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n ArrayList<Integer> side;\n String line = br.readLine();\n int x = Integer.parseInt(line);\n StringTokenizer tokens;\n for(int i=0;i<x;i++){\n line = br.readLine();\n tokens = new StringTokenizer(line);\n side = new ArrayList<>();\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n Collections.sort(side);\n if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n catch(Exception e){\n System.out.println(e);\n }\n\n }\n\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n ArrayList<Integer> side;\n String line = br.readLine();\n int x = Integer.parseInt(line);\n StringTokenizer tokens;\n for(int i=0;i<x;i++){\n line = br.readLine();\n tokens = new StringTokenizer(line);\n side = new ArrayList<>();\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n Collections.sort(side);\n if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n catch(Exception e){\n System.out.println(e);\n }\n\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n ArrayList<Integer> side;\n String line = br.readLine();\n int x = Integer.parseInt(line);\n StringTokenizer tokens;\n for(int i=0;i<x;i++){\n line = br.readLine();\n tokens = new StringTokenizer(line);\n side = new ArrayList<>();\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n Collections.sort(side);\n if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n catch(Exception e){\n System.out.println(e);\n }\n\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "try{\n ArrayList<Integer> side;\n String line = br.readLine();\n int x = Integer.parseInt(line);\n StringTokenizer tokens;\n for(int i=0;i<x;i++){\n line = br.readLine();\n tokens = new StringTokenizer(line);\n side = new ArrayList<>();\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n Collections.sort(side);\n if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n catch(Exception e){\n System.out.println(e);\n }", "catch(Exception e){\n System.out.println(e);\n }", "Exception e", "{\n System.out.println(e);\n }", "System.out.println(e)", "System.out.println", "System.out", "System", "System.out", "e", "{\n ArrayList<Integer> side;\n String line = br.readLine();\n int x = Integer.parseInt(line);\n StringTokenizer tokens;\n for(int i=0;i<x;i++){\n line = br.readLine();\n tokens = new StringTokenizer(line);\n side = new ArrayList<>();\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n Collections.sort(side);\n if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }", "ArrayList<Integer> side;", "side", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "int x = Integer.parseInt(line);", "x", "Integer.parseInt(line)", "Integer.parseInt", "Integer", "line", "StringTokenizer tokens;", "tokens", "for(int i=0;i<x;i++){\n line = br.readLine();\n tokens = new StringTokenizer(line);\n side = new ArrayList<>();\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n Collections.sort(side);\n if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<x", "i", "x", "i++", "i++", "i", "{\n line = br.readLine();\n tokens = new StringTokenizer(line);\n side = new ArrayList<>();\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n Collections.sort(side);\n if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }", "{\n line = br.readLine();\n tokens = new StringTokenizer(line);\n side = new ArrayList<>();\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n Collections.sort(side);\n if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }", "line = br.readLine()", "line", "br.readLine()", "br.readLine", "br", "tokens = new StringTokenizer(line)", "tokens", "new StringTokenizer(line)", "side = new ArrayList<>()", "side", "new ArrayList<>()", "side.add(Integer.parseInt(tokens.nextToken()))", "side.add", "side", "Integer.parseInt(tokens.nextToken())", "Integer.parseInt", "Integer", "tokens.nextToken()", "tokens.nextToken", "tokens", "side.add(Integer.parseInt(tokens.nextToken()))", "side.add", "side", "Integer.parseInt(tokens.nextToken())", "Integer.parseInt", "Integer", "tokens.nextToken()", "tokens.nextToken", "tokens", "side.add(Integer.parseInt(tokens.nextToken()))", "side.add", "side", "Integer.parseInt(tokens.nextToken())", "Integer.parseInt", "Integer", "tokens.nextToken()", "tokens.nextToken", "tokens", "Collections.sort(side)", "Collections.sort", "Collections", "side", "if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }", "side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)", "side.get(0)*side.get(0)+side.get(1)*side.get(1)", "side.get(0)*side.get(0)", "side.get(0)", "side.get", "side", "0", "side.get(0)", "side.get", "side", "0", "side.get(1)*side.get(1)", "side.get(1)", "side.get", "side", "1", "side.get(1)", "side.get", "side", "1", "side.get(2)*side.get(2)", "side.get(2)", "side.get", "side", "2", "side.get(2)", "side.get", "side", "2", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "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 try{\n ArrayList<Integer> side;\n String line = br.readLine();\n int x = Integer.parseInt(line);\n StringTokenizer tokens;\n for(int i=0;i<x;i++){\n line = br.readLine();\n tokens = new StringTokenizer(line);\n side = new ArrayList<>();\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n Collections.sort(side);\n if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n catch(Exception e){\n System.out.println(e);\n }\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 try{\n ArrayList<Integer> side;\n String line = br.readLine();\n int x = Integer.parseInt(line);\n StringTokenizer tokens;\n for(int i=0;i<x;i++){\n line = br.readLine();\n tokens = new StringTokenizer(line);\n side = new ArrayList<>();\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n side.add(Integer.parseInt(tokens.nextToken()));\n Collections.sort(side);\n if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n catch(Exception e){\n System.out.println(e);\n }\n\n }\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.StringTokenizer; public class Main{ public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ ArrayList<Integer> side; String line = br.readLine(); int x = Integer.parseInt(line); StringTokenizer tokens; for(int i=0;i<x;i++){ line = br.readLine(); tokens = new StringTokenizer(line); side = new ArrayList<>(); side.add(Integer.parseInt(tokens.nextToken())); side.add(Integer.parseInt(tokens.nextToken())); side.add(Integer.parseInt(tokens.nextToken())); Collections.sort(side); if(side.get(0)*side.get(0)+side.get(1)*side.get(1)==side.get(2)*side.get(2)){ System.out.println("YES"); }else{ System.out.println("NO"); } } } catch(Exception e){ System.out.println(e); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 30, 4, 18, 13, 17, 40, 13, 30, 4, 18, 13, 17, 40, 13, 11, 1, 41, 13, 17, 2, 13, 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 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 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 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 41, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 41, 57 ], [ 57, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 59, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 59, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 82, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 57, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 93, 98 ], [ 98, 99 ], [ 57, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 100, 105 ], [ 105, 106 ], [ 8, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 112, 113 ], [ 112, 114 ], [ 107, 115 ], [ 115, 116 ], [ 116, 117 ], [ 107, 118 ], [ 119, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 122, 123 ], [ 122, 124 ], [ 120, 125 ], [ 125, 126 ], [ 126, 127 ], [ 125, 128 ], [ 6, 129 ], [ 129, 130 ] ]
[ "import java.util.*;\n \nclass Main {\n public static void main(String[] args) {\n \t\n \tScanner sc = new Scanner(System.in);\n \tArrayList<String> ynJudge = new ArrayList<>();\n \t\n \tint N = sc.nextInt();\n \tint sideA, sideB, sideC;\n \tint cnt = 0;\n \tfor(int i = 0; i < N; i++) {\n \t\tsideA = sc.nextInt();\n \t\tsideB = sc.nextInt();\n \t\tsideC = sc.nextInt();\n \t\tif(sideA * sideA == sideB * sideB + sideC * sideC ||\n \t\t sideB * sideB == sideA * sideA + sideC * sideC ||\n \t\t sideC * sideC == sideA * sideA + sideB * sideB) {\n \t\t\tynJudge.add(\"YES\");\n \t\t\tcnt++;\n \t\t} else {\n \t\t\tynJudge.add(\"NO\");\n \t\t\tcnt++;\n \t\t}\n \t}\n \tfor(int i = 0; i < cnt; i++) {\n \t\tSystem.out.println(ynJudge.get(i));\n \t}\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n \t\n \tScanner sc = new Scanner(System.in);\n \tArrayList<String> ynJudge = new ArrayList<>();\n \t\n \tint N = sc.nextInt();\n \tint sideA, sideB, sideC;\n \tint cnt = 0;\n \tfor(int i = 0; i < N; i++) {\n \t\tsideA = sc.nextInt();\n \t\tsideB = sc.nextInt();\n \t\tsideC = sc.nextInt();\n \t\tif(sideA * sideA == sideB * sideB + sideC * sideC ||\n \t\t sideB * sideB == sideA * sideA + sideC * sideC ||\n \t\t sideC * sideC == sideA * sideA + sideB * sideB) {\n \t\t\tynJudge.add(\"YES\");\n \t\t\tcnt++;\n \t\t} else {\n \t\t\tynJudge.add(\"NO\");\n \t\t\tcnt++;\n \t\t}\n \t}\n \tfor(int i = 0; i < cnt; i++) {\n \t\tSystem.out.println(ynJudge.get(i));\n \t}\n }\n}", "Main", "public static void main(String[] args) {\n \t\n \tScanner sc = new Scanner(System.in);\n \tArrayList<String> ynJudge = new ArrayList<>();\n \t\n \tint N = sc.nextInt();\n \tint sideA, sideB, sideC;\n \tint cnt = 0;\n \tfor(int i = 0; i < N; i++) {\n \t\tsideA = sc.nextInt();\n \t\tsideB = sc.nextInt();\n \t\tsideC = sc.nextInt();\n \t\tif(sideA * sideA == sideB * sideB + sideC * sideC ||\n \t\t sideB * sideB == sideA * sideA + sideC * sideC ||\n \t\t sideC * sideC == sideA * sideA + sideB * sideB) {\n \t\t\tynJudge.add(\"YES\");\n \t\t\tcnt++;\n \t\t} else {\n \t\t\tynJudge.add(\"NO\");\n \t\t\tcnt++;\n \t\t}\n \t}\n \tfor(int i = 0; i < cnt; i++) {\n \t\tSystem.out.println(ynJudge.get(i));\n \t}\n }", "main", "{\n \t\n \tScanner sc = new Scanner(System.in);\n \tArrayList<String> ynJudge = new ArrayList<>();\n \t\n \tint N = sc.nextInt();\n \tint sideA, sideB, sideC;\n \tint cnt = 0;\n \tfor(int i = 0; i < N; i++) {\n \t\tsideA = sc.nextInt();\n \t\tsideB = sc.nextInt();\n \t\tsideC = sc.nextInt();\n \t\tif(sideA * sideA == sideB * sideB + sideC * sideC ||\n \t\t sideB * sideB == sideA * sideA + sideC * sideC ||\n \t\t sideC * sideC == sideA * sideA + sideB * sideB) {\n \t\t\tynJudge.add(\"YES\");\n \t\t\tcnt++;\n \t\t} else {\n \t\t\tynJudge.add(\"NO\");\n \t\t\tcnt++;\n \t\t}\n \t}\n \tfor(int i = 0; i < cnt; i++) {\n \t\tSystem.out.println(ynJudge.get(i));\n \t}\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "ArrayList<String> ynJudge = new ArrayList<>();", "ynJudge", "new ArrayList<>()", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int sideA", "sideA", "sideB", "sideB", "sideC;", "sideC", "int cnt = 0;", "cnt", "0", "for(int i = 0; i < N; i++) {\n \t\tsideA = sc.nextInt();\n \t\tsideB = sc.nextInt();\n \t\tsideC = sc.nextInt();\n \t\tif(sideA * sideA == sideB * sideB + sideC * sideC ||\n \t\t sideB * sideB == sideA * sideA + sideC * sideC ||\n \t\t sideC * sideC == sideA * sideA + sideB * sideB) {\n \t\t\tynJudge.add(\"YES\");\n \t\t\tcnt++;\n \t\t} else {\n \t\t\tynJudge.add(\"NO\");\n \t\t\tcnt++;\n \t\t}\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n \t\tsideA = sc.nextInt();\n \t\tsideB = sc.nextInt();\n \t\tsideC = sc.nextInt();\n \t\tif(sideA * sideA == sideB * sideB + sideC * sideC ||\n \t\t sideB * sideB == sideA * sideA + sideC * sideC ||\n \t\t sideC * sideC == sideA * sideA + sideB * sideB) {\n \t\t\tynJudge.add(\"YES\");\n \t\t\tcnt++;\n \t\t} else {\n \t\t\tynJudge.add(\"NO\");\n \t\t\tcnt++;\n \t\t}\n \t}", "{\n \t\tsideA = sc.nextInt();\n \t\tsideB = sc.nextInt();\n \t\tsideC = sc.nextInt();\n \t\tif(sideA * sideA == sideB * sideB + sideC * sideC ||\n \t\t sideB * sideB == sideA * sideA + sideC * sideC ||\n \t\t sideC * sideC == sideA * sideA + sideB * sideB) {\n \t\t\tynJudge.add(\"YES\");\n \t\t\tcnt++;\n \t\t} else {\n \t\t\tynJudge.add(\"NO\");\n \t\t\tcnt++;\n \t\t}\n \t}", "sideA = sc.nextInt()", "sideA", "sc.nextInt()", "sc.nextInt", "sc", "sideB = sc.nextInt()", "sideB", "sc.nextInt()", "sc.nextInt", "sc", "sideC = sc.nextInt()", "sideC", "sc.nextInt()", "sc.nextInt", "sc", "if(sideA * sideA == sideB * sideB + sideC * sideC ||\n \t\t sideB * sideB == sideA * sideA + sideC * sideC ||\n \t\t sideC * sideC == sideA * sideA + sideB * sideB) {\n \t\t\tynJudge.add(\"YES\");\n \t\t\tcnt++;\n \t\t} else {\n \t\t\tynJudge.add(\"NO\");\n \t\t\tcnt++;\n \t\t}", "sideA * sideA == sideB * sideB + sideC * sideC ||\n \t\t sideB * sideB == sideA * sideA + sideC * sideC ||\n \t\t sideC * sideC == sideA * sideA + sideB * sideB", "sideA * sideA == sideB * sideB + sideC * sideC ||\n \t\t sideB * sideB == sideA * sideA + sideC * sideC ||\n \t\t sideC * sideC == sideA * sideA + sideB * sideB", "sideA * sideA == sideB * sideB + sideC * sideC", "sideA * sideA", "sideA", "sideA", "sideB * sideB + sideC * sideC", "sideB * sideB", "sideB", "sideB", "sideC * sideC", "sideC", "sideC", "sideB * sideB == sideA * sideA + sideC * sideC", "sideB * sideB", "sideB", "sideB", "sideA * sideA + sideC * sideC", "sideA * sideA", "sideA", "sideA", "sideC * sideC", "sideC", "sideC", "sideC * sideC == sideA * sideA + sideB * sideB", "sideC * sideC", "sideC", "sideC", "sideA * sideA + sideB * sideB", "sideA * sideA", "sideA", "sideA", "sideB * sideB", "sideB", "sideB", "{\n \t\t\tynJudge.add(\"YES\");\n \t\t\tcnt++;\n \t\t}", "ynJudge.add(\"YES\")", "ynJudge.add", "ynJudge", "\"YES\"", "cnt++", "cnt", "{\n \t\t\tynJudge.add(\"NO\");\n \t\t\tcnt++;\n \t\t}", "ynJudge.add(\"NO\")", "ynJudge.add", "ynJudge", "\"NO\"", "cnt++", "cnt", "for(int i = 0; i < cnt; i++) {\n \t\tSystem.out.println(ynJudge.get(i));\n \t}", "int i = 0;", "int i = 0;", "i", "0", "i < cnt", "i", "cnt", "i++", "i++", "i", "{\n \t\tSystem.out.println(ynJudge.get(i));\n \t}", "{\n \t\tSystem.out.println(ynJudge.get(i));\n \t}", "System.out.println(ynJudge.get(i))", "System.out.println", "System.out", "System", "System.out", "ynJudge.get(i)", "ynJudge.get", "ynJudge", "i", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<String> ynJudge = new ArrayList<>(); int N = sc.nextInt(); int sideA, sideB, sideC; int cnt = 0; for(int i = 0; i < N; i++) { sideA = sc.nextInt(); sideB = sc.nextInt(); sideC = sc.nextInt(); if(sideA * sideA == sideB * sideB + sideC * sideC || sideB * sideB == sideA * sideA + sideC * sideC || sideC * sideC == sideA * sideA + sideB * sideB) { ynJudge.add("YES"); cnt++; } else { ynJudge.add("NO"); cnt++; } } for(int i = 0; i < cnt; i++) { System.out.println(ynJudge.get(i)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 13, 14, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 4, 13, 18, 13, 13, 12, 13, 30, 4, 13, 18, 13, 13, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 13, 29, 17, 30, 0, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 29, 17, 29, 17, 12, 13, 30, 14, 4, 13, 29, 18, 13, 40, 13, 29, 40, 17, 12, 13, 30, 29, 2, 2, 17, 13, 2, 13, 17, 23, 13, 12, 13, 30, 42, 2, 4, 13, 40, 4, 13, 18, 13, 13, 40, 13, 12, 13, 30, 4, 13, 29, 4, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 17, 41, 13, 17, 41, 13, 4, 13, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 14, 2, 2, 13, 17, 2, 17, 13, 37, 20, 42, 17, 30, 14, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 2, 13, 40, 17, 40, 4, 13, 13, 29, 8, 13, 40, 13, 13, 37, 20, 0, 13, 4, 13, 12, 13, 30, 41, 13, 4, 13, 14, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 37, 20, 29, 13, 12, 13, 30, 4, 18, 33, 38, 5, 13, 30, 30, 4, 18, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 344, 8 ], [ 344, 9 ], [ 9, 10 ], [ 9, 11 ], [ 344, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 14, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 29, 30 ], [ 29, 31 ], [ 24, 32 ], [ 32, 33 ], [ 33, 34 ], [ 24, 35 ], [ 36, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 42, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 48, 49 ], [ 49, 50 ], [ 36, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 55, 56 ], [ 56, 57 ], [ 36, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 36, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 72, 76 ], [ 76, 77 ], [ 76, 78 ], [ 63, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 62, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 86, 91 ], [ 62, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 12, 98 ], [ 98, 99 ], [ 344, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 100, 104 ], [ 104, 105 ], [ 104, 106 ], [ 100, 108 ], [ 108, 109 ], [ 108, 110 ], [ 100, 111 ], [ 111, 112 ], [ 111, 113 ], [ 100, 114 ], [ 114, 115 ], [ 114, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 119, 121 ], [ 100, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 127, 129 ], [ 124, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 122, 135 ], [ 135, 136 ], [ 100, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 144, 145 ], [ 140, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 150, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 146, 164 ], [ 164, 165 ], [ 165, 166 ], [ 165, 167 ], [ 164, 168 ], [ 168, 169 ], [ 139, 170 ], [ 170, 171 ], [ 100, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 178, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 175, 183 ], [ 183, 184 ], [ 184, 185 ], [ 100, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 194, 195 ], [ 194, 196 ], [ 186, 197 ], [ 197, 198 ], [ 100, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 203, 206 ], [ 206, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 209, 211 ], [ 202, 212 ], [ 212, 213 ], [ 100, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 217, 218 ], [ 216, 219 ], [ 219, 220 ], [ 220, 221 ], [ 100, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 225, 229 ], [ 229, 230 ], [ 224, 231 ], [ 231, 232 ], [ 231, 233 ], [ 224, 234 ], [ 234, 235 ], [ 234, 236 ], [ 224, 237 ], [ 237, 238 ], [ 237, 239 ], [ 239, 240 ], [ 224, 241 ], [ 241, 242 ], [ 242, 243 ], [ 242, 244 ], [ 241, 245 ], [ 245, 246 ], [ 246, 247 ], [ 246, 248 ], [ 245, 249 ], [ 249, 250 ], [ 249, 251 ], [ 251, 252 ], [ 224, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 255, 257 ], [ 254, 258 ], [ 258, 259 ], [ 258, 260 ], [ 253, 261 ], [ 261, 262 ], [ 224, 263 ], [ 263, 264 ], [ 263, 265 ], [ 265, 266 ], [ 266, 267 ], [ 267, 268 ], [ 268, 269 ], [ 268, 270 ], [ 267, 271 ], [ 271, 272 ], [ 271, 273 ], [ 266, 274 ], [ 274, 275 ], [ 275, 276 ], [ 275, 277 ], [ 274, 278 ], [ 278, 279 ], [ 278, 280 ], [ 280, 281 ], [ 280, 282 ], [ 266, 283 ], [ 283, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 287, 288 ], [ 284, 289 ], [ 289, 290 ], [ 290, 291 ], [ 290, 292 ], [ 283, 293 ], [ 293, 294 ], [ 294, 295 ], [ 294, 296 ], [ 296, 297 ], [ 294, 298 ], [ 283, 299 ], [ 299, 300 ], [ 265, 301 ], [ 301, 302 ], [ 301, 303 ], [ 303, 304 ], [ 100, 305 ], [ 305, 306 ], [ 305, 307 ], [ 307, 308 ], [ 308, 309 ], [ 308, 310 ], [ 310, 311 ], [ 307, 312 ], [ 312, 313 ], [ 313, 314 ], [ 314, 315 ], [ 314, 316 ], [ 316, 317 ], [ 316, 318 ], [ 313, 319 ], [ 319, 320 ], [ 319, 321 ], [ 321, 322 ], [ 321, 323 ], [ 312, 324 ], [ 324, 325 ], [ 307, 326 ], [ 326, 327 ], [ 100, 328 ], [ 328, 329 ], [ 328, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 330, 334 ], [ 334, 335 ], [ 335, 336 ], [ 335, 337 ], [ 334, 338 ], [ 338, 339 ], [ 339, 340 ], [ 340, 341 ], [ 100, 342 ], [ 0, 343 ], [ 343, 344 ], [ 343, 345 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n static IO io = new IO();\n public static void main(String[] args) {\n int n = io.nextInt();\n int l[] = new int[3];\n for (int i = 0; i < n; i++) {\n l[0] = io.nextInt();\n l[1] = io.nextInt();\n l[2] = io.nextInt();\n Arrays.sort(l);\n if (l[0]*l[0]+l[1]*l[1]==l[2]*l[2]) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }\n\n static class IO extends PrintWriter {\n private final InputStream in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n IO() {\n this(System.in);\n }\n\n IO(InputStream source) {\n super(System.out);\n this.in = source;\n }\n\n boolean hasNextByte() {\n if (ptr < buflen) return true;\n else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) return false;\n }\n return true;\n }\n\n int readByte() {\n if (hasNextByte()) return buffer[ptr++];\n else return -1;\n }\n\n boolean isPrintableChar(int c) {\n return 33 <= c && c <= 126;\n }\n\n void skipUnprintable() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n }\n\n boolean hasNext() {\n skipUnprintable();\n return hasNextByte();\n }\n\n long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }\n }\n\n int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n\n public void close() {\n super.close();\n try {\n in.close();\n } catch (IOException ignored) {\n }\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n static IO io = new IO();\n public static void main(String[] args) {\n int n = io.nextInt();\n int l[] = new int[3];\n for (int i = 0; i < n; i++) {\n l[0] = io.nextInt();\n l[1] = io.nextInt();\n l[2] = io.nextInt();\n Arrays.sort(l);\n if (l[0]*l[0]+l[1]*l[1]==l[2]*l[2]) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }\n\n static class IO extends PrintWriter {\n private final InputStream in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n IO() {\n this(System.in);\n }\n\n IO(InputStream source) {\n super(System.out);\n this.in = source;\n }\n\n boolean hasNextByte() {\n if (ptr < buflen) return true;\n else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) return false;\n }\n return true;\n }\n\n int readByte() {\n if (hasNextByte()) return buffer[ptr++];\n else return -1;\n }\n\n boolean isPrintableChar(int c) {\n return 33 <= c && c <= 126;\n }\n\n void skipUnprintable() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n }\n\n boolean hasNext() {\n skipUnprintable();\n return hasNextByte();\n }\n\n long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }\n }\n\n int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n\n public void close() {\n super.close();\n try {\n in.close();\n } catch (IOException ignored) {\n }\n }\n }\n}", "Main", "static IO io = new IO();", "io", "new IO()", "public static void main(String[] args) {\n int n = io.nextInt();\n int l[] = new int[3];\n for (int i = 0; i < n; i++) {\n l[0] = io.nextInt();\n l[1] = io.nextInt();\n l[2] = io.nextInt();\n Arrays.sort(l);\n if (l[0]*l[0]+l[1]*l[1]==l[2]*l[2]) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }", "main", "{\n int n = io.nextInt();\n int l[] = new int[3];\n for (int i = 0; i < n; i++) {\n l[0] = io.nextInt();\n l[1] = io.nextInt();\n l[2] = io.nextInt();\n Arrays.sort(l);\n if (l[0]*l[0]+l[1]*l[1]==l[2]*l[2]) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }", "int n = io.nextInt();", "n", "io.nextInt()", "io.nextInt", "io", "int l[] = new int[3];", "l", "new int[3]", "3", "for (int i = 0; i < n; i++) {\n l[0] = io.nextInt();\n l[1] = io.nextInt();\n l[2] = io.nextInt();\n Arrays.sort(l);\n if (l[0]*l[0]+l[1]*l[1]==l[2]*l[2]) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n l[0] = io.nextInt();\n l[1] = io.nextInt();\n l[2] = io.nextInt();\n Arrays.sort(l);\n if (l[0]*l[0]+l[1]*l[1]==l[2]*l[2]) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }", "{\n l[0] = io.nextInt();\n l[1] = io.nextInt();\n l[2] = io.nextInt();\n Arrays.sort(l);\n if (l[0]*l[0]+l[1]*l[1]==l[2]*l[2]) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }", "l[0] = io.nextInt()", "l[0]", "l", "0", "io.nextInt()", "io.nextInt", "io", "l[1] = io.nextInt()", "l[1]", "l", "1", "io.nextInt()", "io.nextInt", "io", "l[2] = io.nextInt()", "l[2]", "l", "2", "io.nextInt()", "io.nextInt", "io", "Arrays.sort(l)", "Arrays.sort", "Arrays", "l", "if (l[0]*l[0]+l[1]*l[1]==l[2]*l[2]) System.out.println(\"YES\");\n else System.out.println(\"NO\");", "l[0]*l[0]+l[1]*l[1]==l[2]*l[2]", "l[0]*l[0]+l[1]*l[1]", "l[0]*l[0]", "l[0]", "l", "0", "l[0]", "l", "0", "l[1]*l[1]", "l[1]", "l", "1", "l[1]", "l", "1", "l[2]*l[2]", "l[2]", "l", "2", "l[2]", "l", "2", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "static class IO extends PrintWriter {\n private final InputStream in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n IO() {\n this(System.in);\n }\n\n IO(InputStream source) {\n super(System.out);\n this.in = source;\n }\n\n boolean hasNextByte() {\n if (ptr < buflen) return true;\n else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) return false;\n }\n return true;\n }\n\n int readByte() {\n if (hasNextByte()) return buffer[ptr++];\n else return -1;\n }\n\n boolean isPrintableChar(int c) {\n return 33 <= c && c <= 126;\n }\n\n void skipUnprintable() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n }\n\n boolean hasNext() {\n skipUnprintable();\n return hasNextByte();\n }\n\n long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }\n }\n\n int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n\n public void close() {\n super.close();\n try {\n in.close();\n } catch (IOException ignored) {\n }\n }\n }", "IO", "private final InputStream in;", "in", "private final byte[] buffer = new byte[1024];", "buffer", "new byte[1024]", "1024", "private int ptr = 0;", "ptr", "0", "private int buflen = 0;", "buflen", "0", "IO() {\n this(System.in);\n }", "IO", "{\n this(System.in);\n }", "this(System.in)", "this", "System.in", "System", "System.in", "IO(InputStream source) {\n super(System.out);\n this.in = source;\n }", "IO", "{\n super(System.out);\n this.in = source;\n }", "super(System.out)", "super", "System.out", "System", "System.out", "this.in = source", "this.in", "this", "this.in", "source", "InputStream source", "source", "boolean hasNextByte() {\n if (ptr < buflen) return true;\n else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) return false;\n }\n return true;\n }", "hasNextByte", "{\n if (ptr < buflen) return true;\n else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) return false;\n }\n return true;\n }", "if (ptr < buflen) return true;\n else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) return false;\n }", "ptr < buflen", "ptr", "buflen", "return true;", "true", "{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) return false;\n }", "ptr = 0", "ptr", "0", "try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n buflen = in.read(buffer);\n }", "buflen = in.read(buffer)", "buflen", "in.read(buffer)", "in.read", "in", "buffer", "if (buflen <= 0) return false;", "buflen <= 0", "buflen", "0", "return false;", "false", "return true;", "true", "int readByte() {\n if (hasNextByte()) return buffer[ptr++];\n else return -1;\n }", "readByte", "{\n if (hasNextByte()) return buffer[ptr++];\n else return -1;\n }", "if (hasNextByte()) return buffer[ptr++];\n else return -1;", "hasNextByte()", "hasNextByte", "return buffer[ptr++];", "buffer[ptr++]", "buffer", "ptr++", "ptr", "return -1;", "-1", "1", "boolean isPrintableChar(int c) {\n return 33 <= c && c <= 126;\n }", "isPrintableChar", "{\n return 33 <= c && c <= 126;\n }", "return 33 <= c && c <= 126;", "33 <= c && c <= 126", "33 <= c", "33", "c", "c <= 126", "c", "126", "int c", "c", "void skipUnprintable() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n }", "skipUnprintable", "{\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n }", "while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;", "hasNextByte() && !isPrintableChar(buffer[ptr])", "hasNextByte()", "hasNextByte", "!isPrintableChar(buffer[ptr])", "isPrintableChar(buffer[ptr])", "isPrintableChar", "buffer[ptr]", "buffer", "ptr", "ptr++", "ptr", "boolean hasNext() {\n skipUnprintable();\n return hasNextByte();\n }", "hasNext", "{\n skipUnprintable();\n return hasNextByte();\n }", "skipUnprintable()", "skipUnprintable", "return hasNextByte();", "hasNextByte()", "hasNextByte", "long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }\n }", "nextLong", "{\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }\n }", "if (!hasNext()) throw new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "long n = 0;", "n", "0", "boolean minus = false;", "minus", "false", "int b = readByte();", "b", "readByte()", "readByte", "if (b == '-') {\n minus = true;\n b = readByte();\n }", "b == '-'", "b", "'-'", "{\n minus = true;\n b = readByte();\n }", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "if (b < '0' || '9' < b) throw new NumberFormatException();", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "throw new NumberFormatException();", "new NumberFormatException()", "while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }", "true", "{\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }", "if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "{\n n *= 10;\n n += b - '0';\n }", "n *= 10", "n", "10", "n += b - '0'", "n", "b - '0'", "b", "'0'", "if (b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();", "b == -1 || !isPrintableChar(b)", "b == -1", "b", "-1", "1", "!isPrintableChar(b)", "isPrintableChar(b)", "isPrintableChar", "b", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "throw new NumberFormatException();", "new NumberFormatException()", "b = readByte()", "b", "readByte()", "readByte", "int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }", "nextInt", "{\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }", "long nl = nextLong();", "nl", "nextLong()", "nextLong", "if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();", "nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE", "nl < Integer.MIN_VALUE", "nl", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "nl > Integer.MAX_VALUE", "nl", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "throw new NumberFormatException();", "new NumberFormatException()", "return (int) nl;", "(int) nl", "public void close() {\n super.close();\n try {\n in.close();\n } catch (IOException ignored) {\n }\n }", "close", "{\n super.close();\n try {\n in.close();\n } catch (IOException ignored) {\n }\n }", "super.close()", "super.close", "super", "try {\n in.close();\n } catch (IOException ignored) {\n }", "catch (IOException ignored) {\n }", "IOException ignored", "{\n }", "{\n in.close();\n }", "in.close()", "in.close", "in", "PrintWriter", "public class Main {\n static IO io = new IO();\n public static void main(String[] args) {\n int n = io.nextInt();\n int l[] = new int[3];\n for (int i = 0; i < n; i++) {\n l[0] = io.nextInt();\n l[1] = io.nextInt();\n l[2] = io.nextInt();\n Arrays.sort(l);\n if (l[0]*l[0]+l[1]*l[1]==l[2]*l[2]) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }\n\n static class IO extends PrintWriter {\n private final InputStream in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n IO() {\n this(System.in);\n }\n\n IO(InputStream source) {\n super(System.out);\n this.in = source;\n }\n\n boolean hasNextByte() {\n if (ptr < buflen) return true;\n else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) return false;\n }\n return true;\n }\n\n int readByte() {\n if (hasNextByte()) return buffer[ptr++];\n else return -1;\n }\n\n boolean isPrintableChar(int c) {\n return 33 <= c && c <= 126;\n }\n\n void skipUnprintable() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n }\n\n boolean hasNext() {\n skipUnprintable();\n return hasNextByte();\n }\n\n long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }\n }\n\n int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n\n public void close() {\n super.close();\n try {\n in.close();\n } catch (IOException ignored) {\n }\n }\n }\n}", "public class Main {\n static IO io = new IO();\n public static void main(String[] args) {\n int n = io.nextInt();\n int l[] = new int[3];\n for (int i = 0; i < n; i++) {\n l[0] = io.nextInt();\n l[1] = io.nextInt();\n l[2] = io.nextInt();\n Arrays.sort(l);\n if (l[0]*l[0]+l[1]*l[1]==l[2]*l[2]) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }\n\n static class IO extends PrintWriter {\n private final InputStream in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n IO() {\n this(System.in);\n }\n\n IO(InputStream source) {\n super(System.out);\n this.in = source;\n }\n\n boolean hasNextByte() {\n if (ptr < buflen) return true;\n else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) return false;\n }\n return true;\n }\n\n int readByte() {\n if (hasNextByte()) return buffer[ptr++];\n else return -1;\n }\n\n boolean isPrintableChar(int c) {\n return 33 <= c && c <= 126;\n }\n\n void skipUnprintable() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++;\n }\n\n boolean hasNext() {\n skipUnprintable();\n return hasNextByte();\n }\n\n long nextLong() {\n if (!hasNext()) throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) throw new NumberFormatException();\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) return minus ? -n : n;\n else throw new NumberFormatException();\n b = readByte();\n }\n }\n\n int nextInt() {\n long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException();\n return (int) nl;\n }\n\n public void close() {\n super.close();\n try {\n in.close();\n } catch (IOException ignored) {\n }\n }\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { static IO io = new IO(); public static void main(String[] args) { int n = io.nextInt(); int l[] = new int[3]; for (int i = 0; i < n; i++) { l[0] = io.nextInt(); l[1] = io.nextInt(); l[2] = io.nextInt(); Arrays.sort(l); if (l[0]*l[0]+l[1]*l[1]==l[2]*l[2]) System.out.println("YES"); else System.out.println("NO"); } } static class IO extends PrintWriter { private final InputStream in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; IO() { this(System.in); } IO(InputStream source) { super(System.out); this.in = source; } boolean hasNextByte() { if (ptr < buflen) return true; else { ptr = 0; try { buflen = in.read(buffer); } catch (IOException e) { e.printStackTrace(); } if (buflen <= 0) return false; } return true; } int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1; } boolean isPrintableChar(int c) { return 33 <= c && c <= 126; } void skipUnprintable() { while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; } boolean hasNext() { skipUnprintable(); return hasNextByte(); } long nextLong() { if (!hasNext()) throw new NoSuchElementException(); long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) throw new NumberFormatException(); while (true) { if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; } else if (b == -1 || !isPrintableChar(b)) return minus ? -n : n; else throw new NumberFormatException(); b = readByte(); } } int nextInt() { long nl = nextLong(); if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public void close() { super.close(); try { in.close(); } catch (IOException ignored) { } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 18, 13, 17, 4, 18, 13, 4, 18, 13, 18, 13, 17, 4, 18, 13, 4, 18, 13, 18, 13, 17, 4, 18, 13, 13, 14, 4, 13, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 29, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13, 23, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 146, 20 ], [ 146, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 23, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 32, 33 ], [ 33, 34 ], [ 23, 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 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 47, 53 ], [ 53, 54 ], [ 53, 55 ], [ 47, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 47, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 47, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 77, 79 ], [ 47, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 86, 87 ], [ 86, 88 ], [ 47, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 47, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 94, 100 ], [ 100, 101 ], [ 101, 102 ], [ 100, 103 ], [ 94, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 93, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 93, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 21, 122 ], [ 122, 123 ], [ 146, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 136, 138 ], [ 124, 139 ], [ 139, 140 ], [ 124, 141 ], [ 141, 142 ], [ 124, 143 ], [ 143, 144 ], [ 0, 145 ], [ 145, 146 ], [ 145, 147 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\n\npublic class Main {\n\n\t/**\n\t * <p>\n\t * 与えられた三辺で直角三角形が作れるかを判定する。\n\t * </p>\n\t *\n\t * @param args\n\t * 利用しない。\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint lineCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\n\t\t\tString line = br.readLine();\n\n\t\t\t// 三辺の長さをリストに格納し、ソート\n\t\t\tList<Integer> sideList = new ArrayList<Integer>();\n\t\t\tString[] input = line.split(\" \");\n\t\t\tsideList.add(Integer.parseInt(input[0]));\n\t\t\tsideList.add(Integer.parseInt(input[1]));\n\t\t\tsideList.add(Integer.parseInt(input[2]));\n\t\t\tCollections.sort(sideList);\n\n\t\t\tif (isRightTriangle(sideList.get(2), sideList.get(1),\n\t\t\t\t\tsideList.get(0))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * 三辺の長さから、直角三角形であるかどうかを判定する。<br>\n\t * 注意:第一引数に最も長い辺を与えること。\n\t *\n\t * @param side1\n\t * 辺1\n\t * @param side2\n\t * 辺2\n\t * @param side3\n\t * 辺3\n\t * @return 直角三角形であるかどうか\n\t */\n\tprivate static boolean isRightTriangle(int side1, int side2, int side3) {\n\t\treturn (side1 * side1 == side2 * side2 + side3 * side3);\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.List;", "List", "java.util", "public class Main {\n\n\t/**\n\t * <p>\n\t * 与えられた三辺で直角三角形が作れるかを判定する。\n\t * </p>\n\t *\n\t * @param args\n\t * 利用しない。\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint lineCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\n\t\t\tString line = br.readLine();\n\n\t\t\t// 三辺の長さをリストに格納し、ソート\n\t\t\tList<Integer> sideList = new ArrayList<Integer>();\n\t\t\tString[] input = line.split(\" \");\n\t\t\tsideList.add(Integer.parseInt(input[0]));\n\t\t\tsideList.add(Integer.parseInt(input[1]));\n\t\t\tsideList.add(Integer.parseInt(input[2]));\n\t\t\tCollections.sort(sideList);\n\n\t\t\tif (isRightTriangle(sideList.get(2), sideList.get(1),\n\t\t\t\t\tsideList.get(0))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * 三辺の長さから、直角三角形であるかどうかを判定する。<br>\n\t * 注意:第一引数に最も長い辺を与えること。\n\t *\n\t * @param side1\n\t * 辺1\n\t * @param side2\n\t * 辺2\n\t * @param side3\n\t * 辺3\n\t * @return 直角三角形であるかどうか\n\t */\n\tprivate static boolean isRightTriangle(int side1, int side2, int side3) {\n\t\treturn (side1 * side1 == side2 * side2 + side3 * side3);\n\t}\n}", "Main", "/**\n\t * <p>\n\t * 与えられた三辺で直角三角形が作れるかを判定する。\n\t * </p>\n\t *\n\t * @param args\n\t * 利用しない。\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint lineCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\n\t\t\tString line = br.readLine();\n\n\t\t\t// 三辺の長さをリストに格納し、ソート\n\t\t\tList<Integer> sideList = new ArrayList<Integer>();\n\t\t\tString[] input = line.split(\" \");\n\t\t\tsideList.add(Integer.parseInt(input[0]));\n\t\t\tsideList.add(Integer.parseInt(input[1]));\n\t\t\tsideList.add(Integer.parseInt(input[2]));\n\t\t\tCollections.sort(sideList);\n\n\t\t\tif (isRightTriangle(sideList.get(2), sideList.get(1),\n\t\t\t\t\tsideList.get(0))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint lineCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\n\t\t\tString line = br.readLine();\n\n\t\t\t// 三辺の長さをリストに格納し、ソート\n\t\t\tList<Integer> sideList = new ArrayList<Integer>();\n\t\t\tString[] input = line.split(\" \");\n\t\t\tsideList.add(Integer.parseInt(input[0]));\n\t\t\tsideList.add(Integer.parseInt(input[1]));\n\t\t\tsideList.add(Integer.parseInt(input[2]));\n\t\t\tCollections.sort(sideList);\n\n\t\t\tif (isRightTriangle(sideList.get(2), sideList.get(1),\n\t\t\t\t\tsideList.get(0))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\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 lineCount = Integer.parseInt(br.readLine());", "lineCount", "Integer.parseInt(br.readLine())", "Integer.parseInt", "Integer", "br.readLine()", "br.readLine", "br", "for (int i = 0; i < lineCount; i++) {\n\n\t\t\tString line = br.readLine();\n\n\t\t\t// 三辺の長さをリストに格納し、ソート\n\t\t\tList<Integer> sideList = new ArrayList<Integer>();\n\t\t\tString[] input = line.split(\" \");\n\t\t\tsideList.add(Integer.parseInt(input[0]));\n\t\t\tsideList.add(Integer.parseInt(input[1]));\n\t\t\tsideList.add(Integer.parseInt(input[2]));\n\t\t\tCollections.sort(sideList);\n\n\t\t\tif (isRightTriangle(sideList.get(2), sideList.get(1),\n\t\t\t\t\tsideList.get(0))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < lineCount", "i", "lineCount", "i++", "i++", "i", "{\n\n\t\t\tString line = br.readLine();\n\n\t\t\t// 三辺の長さをリストに格納し、ソート\n\t\t\tList<Integer> sideList = new ArrayList<Integer>();\n\t\t\tString[] input = line.split(\" \");\n\t\t\tsideList.add(Integer.parseInt(input[0]));\n\t\t\tsideList.add(Integer.parseInt(input[1]));\n\t\t\tsideList.add(Integer.parseInt(input[2]));\n\t\t\tCollections.sort(sideList);\n\n\t\t\tif (isRightTriangle(sideList.get(2), sideList.get(1),\n\t\t\t\t\tsideList.get(0))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\n\t\t\tString line = br.readLine();\n\n\t\t\t// 三辺の長さをリストに格納し、ソート\n\t\t\tList<Integer> sideList = new ArrayList<Integer>();\n\t\t\tString[] input = line.split(\" \");\n\t\t\tsideList.add(Integer.parseInt(input[0]));\n\t\t\tsideList.add(Integer.parseInt(input[1]));\n\t\t\tsideList.add(Integer.parseInt(input[2]));\n\t\t\tCollections.sort(sideList);\n\n\t\t\tif (isRightTriangle(sideList.get(2), sideList.get(1),\n\t\t\t\t\tsideList.get(0))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "List<Integer> sideList = new ArrayList<Integer>();", "sideList", "new ArrayList<Integer>()", "String[] input = line.split(\" \");", "input", "line.split(\" \")", "line.split", "line", "\" \"", "sideList.add(Integer.parseInt(input[0]))", "sideList.add", "sideList", "Integer.parseInt(input[0])", "Integer.parseInt", "Integer", "input[0]", "input", "0", "sideList.add(Integer.parseInt(input[1]))", "sideList.add", "sideList", "Integer.parseInt(input[1])", "Integer.parseInt", "Integer", "input[1]", "input", "1", "sideList.add(Integer.parseInt(input[2]))", "sideList.add", "sideList", "Integer.parseInt(input[2])", "Integer.parseInt", "Integer", "input[2]", "input", "2", "Collections.sort(sideList)", "Collections.sort", "Collections", "sideList", "if (isRightTriangle(sideList.get(2), sideList.get(1),\n\t\t\t\t\tsideList.get(0))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "isRightTriangle(sideList.get(2), sideList.get(1),\n\t\t\t\t\tsideList.get(0))", "isRightTriangle", "sideList.get(2)", "sideList.get", "sideList", "2", "sideList.get(1)", "sideList.get", "sideList", "1", "sideList.get(0)", "sideList.get", "sideList", "0", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "/**\n\t * 三辺の長さから、直角三角形であるかどうかを判定する。<br>\n\t * 注意:第一引数に最も長い辺を与えること。\n\t *\n\t * @param side1\n\t * 辺1\n\t * @param side2\n\t * 辺2\n\t * @param side3\n\t * 辺3\n\t * @return 直角三角形であるかどうか\n\t */\n\tprivate static boolean isRightTriangle(int side1, int side2, int side3) {\n\t\treturn (side1 * side1 == side2 * side2 + side3 * side3);\n\t}", "isRightTriangle", "{\n\t\treturn (side1 * side1 == side2 * side2 + side3 * side3);\n\t}", "return (side1 * side1 == side2 * side2 + side3 * side3);", "(side1 * side1 == side2 * side2 + side3 * side3)", "side1 * side1", "side1", "side1", "side2 * side2 + side3 * side3", "side2 * side2", "side2", "side2", "side3 * side3", "side3", "side3", "int side1", "side1", "int side2", "side2", "int side3", "side3", "public class Main {\n\n\t/**\n\t * <p>\n\t * 与えられた三辺で直角三角形が作れるかを判定する。\n\t * </p>\n\t *\n\t * @param args\n\t * 利用しない。\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint lineCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\n\t\t\tString line = br.readLine();\n\n\t\t\t// 三辺の長さをリストに格納し、ソート\n\t\t\tList<Integer> sideList = new ArrayList<Integer>();\n\t\t\tString[] input = line.split(\" \");\n\t\t\tsideList.add(Integer.parseInt(input[0]));\n\t\t\tsideList.add(Integer.parseInt(input[1]));\n\t\t\tsideList.add(Integer.parseInt(input[2]));\n\t\t\tCollections.sort(sideList);\n\n\t\t\tif (isRightTriangle(sideList.get(2), sideList.get(1),\n\t\t\t\t\tsideList.get(0))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * 三辺の長さから、直角三角形であるかどうかを判定する。<br>\n\t * 注意:第一引数に最も長い辺を与えること。\n\t *\n\t * @param side1\n\t * 辺1\n\t * @param side2\n\t * 辺2\n\t * @param side3\n\t * 辺3\n\t * @return 直角三角形であるかどうか\n\t */\n\tprivate static boolean isRightTriangle(int side1, int side2, int side3) {\n\t\treturn (side1 * side1 == side2 * side2 + side3 * side3);\n\t}\n}", "public class Main {\n\n\t/**\n\t * <p>\n\t * 与えられた三辺で直角三角形が作れるかを判定する。\n\t * </p>\n\t *\n\t * @param args\n\t * 利用しない。\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint lineCount = Integer.parseInt(br.readLine());\n\t\tfor (int i = 0; i < lineCount; i++) {\n\n\t\t\tString line = br.readLine();\n\n\t\t\t// 三辺の長さをリストに格納し、ソート\n\t\t\tList<Integer> sideList = new ArrayList<Integer>();\n\t\t\tString[] input = line.split(\" \");\n\t\t\tsideList.add(Integer.parseInt(input[0]));\n\t\t\tsideList.add(Integer.parseInt(input[1]));\n\t\t\tsideList.add(Integer.parseInt(input[2]));\n\t\t\tCollections.sort(sideList);\n\n\t\t\tif (isRightTriangle(sideList.get(2), sideList.get(1),\n\t\t\t\t\tsideList.get(0))) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * 三辺の長さから、直角三角形であるかどうかを判定する。<br>\n\t * 注意:第一引数に最も長い辺を与えること。\n\t *\n\t * @param side1\n\t * 辺1\n\t * @param side2\n\t * 辺2\n\t * @param side3\n\t * 辺3\n\t * @return 直角三角形であるかどうか\n\t */\n\tprivate static boolean isRightTriangle(int side1, int side2, int side3) {\n\t\treturn (side1 * side1 == side2 * side2 + side3 * side3);\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.List; public class Main { /** * <p> * 与えられた三辺で直角三角形が作れるかを判定する。 * </p> * * @param args * 利用しない。 * @throws IOException */ public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int lineCount = Integer.parseInt(br.readLine()); for (int i = 0; i < lineCount; i++) { String line = br.readLine(); // 三辺の長さをリストに格納し、ソート List<Integer> sideList = new ArrayList<Integer>(); String[] input = line.split(" "); sideList.add(Integer.parseInt(input[0])); sideList.add(Integer.parseInt(input[1])); sideList.add(Integer.parseInt(input[2])); Collections.sort(sideList); if (isRightTriangle(sideList.get(2), sideList.get(1), sideList.get(0))) { System.out.println("YES"); } else { System.out.println("NO"); } } } /** * 三辺の長さから、直角三角形であるかどうかを判定する。<br> * 注意:第一引数に最も長い辺を与えること。 * * @param side1 * 辺1 * @param side2 * 辺2 * @param side3 * 辺3 * @return 直角三角形であるかどうか */ private static boolean isRightTriangle(int side1, int side2, int side3) { return (side1 * side1 == side2 * side2 + side3 * side3); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 4, 18, 13, 30, 41, 13, 20, 17, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 13, 41, 13, 2, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 4, 18, 18, 13, 13, 8, 13, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 93, 8 ], [ 93, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 13, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 13, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 35, 36 ], [ 36, 37 ], [ 26, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 43, 44 ], [ 26, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 26, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 26, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 71, 73 ], [ 58, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 26, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 86, 87 ], [ 86, 88 ], [ 86, 89 ], [ 9, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tfinal int n = sc.nextInt();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tint[] x = new int[3];\n\t\t\t\tx[0] = sc.nextInt();\n\t\t\t\tx[1] = sc.nextInt();\n\t\t\t\tx[2] = sc.nextInt();\n\t\t\t\tArrays.sort(x);\n\t\t\t\tboolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]);\n\t\t\t\tSystem.out.println(isTriangle ? \"YES\" : \"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tfinal int n = sc.nextInt();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tint[] x = new int[3];\n\t\t\t\tx[0] = sc.nextInt();\n\t\t\t\tx[1] = sc.nextInt();\n\t\t\t\tx[2] = sc.nextInt();\n\t\t\t\tArrays.sort(x);\n\t\t\t\tboolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]);\n\t\t\t\tSystem.out.println(isTriangle ? \"YES\" : \"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tfinal int n = sc.nextInt();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tint[] x = new int[3];\n\t\t\t\tx[0] = sc.nextInt();\n\t\t\t\tx[1] = sc.nextInt();\n\t\t\t\tx[2] = sc.nextInt();\n\t\t\t\tArrays.sort(x);\n\t\t\t\tboolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]);\n\t\t\t\tSystem.out.println(isTriangle ? \"YES\" : \"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tfinal int n = sc.nextInt();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tint[] x = new int[3];\n\t\t\t\tx[0] = sc.nextInt();\n\t\t\t\tx[1] = sc.nextInt();\n\t\t\t\tx[2] = sc.nextInt();\n\t\t\t\tArrays.sort(x);\n\t\t\t\tboolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]);\n\t\t\t\tSystem.out.println(isTriangle ? \"YES\" : \"NO\");\n\t\t\t}\n\t\t}\n\t}", "try (Scanner sc = new Scanner(System.in)) {\n\t\t\tfinal int n = sc.nextInt();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tint[] x = new int[3];\n\t\t\t\tx[0] = sc.nextInt();\n\t\t\t\tx[1] = sc.nextInt();\n\t\t\t\tx[2] = sc.nextInt();\n\t\t\t\tArrays.sort(x);\n\t\t\t\tboolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]);\n\t\t\t\tSystem.out.println(isTriangle ? \"YES\" : \"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\tfinal int n = sc.nextInt();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tint[] x = new int[3];\n\t\t\t\tx[0] = sc.nextInt();\n\t\t\t\tx[1] = sc.nextInt();\n\t\t\t\tx[2] = sc.nextInt();\n\t\t\t\tArrays.sort(x);\n\t\t\t\tboolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]);\n\t\t\t\tSystem.out.println(isTriangle ? \"YES\" : \"NO\");\n\t\t\t}\n\t\t}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "final int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "while (sc.hasNext()) {\n\t\t\t\tint[] x = new int[3];\n\t\t\t\tx[0] = sc.nextInt();\n\t\t\t\tx[1] = sc.nextInt();\n\t\t\t\tx[2] = sc.nextInt();\n\t\t\t\tArrays.sort(x);\n\t\t\t\tboolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]);\n\t\t\t\tSystem.out.println(isTriangle ? \"YES\" : \"NO\");\n\t\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\t\tint[] x = new int[3];\n\t\t\t\tx[0] = sc.nextInt();\n\t\t\t\tx[1] = sc.nextInt();\n\t\t\t\tx[2] = sc.nextInt();\n\t\t\t\tArrays.sort(x);\n\t\t\t\tboolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]);\n\t\t\t\tSystem.out.println(isTriangle ? \"YES\" : \"NO\");\n\t\t\t}", "int[] x = new int[3];", "x", "new int[3]", "3", "x[0] = sc.nextInt()", "x[0]", "x", "0", "sc.nextInt()", "sc.nextInt", "sc", "x[1] = sc.nextInt()", "x[1]", "x", "1", "sc.nextInt()", "sc.nextInt", "sc", "x[2] = sc.nextInt()", "x[2]", "x", "2", "sc.nextInt()", "sc.nextInt", "sc", "Arrays.sort(x)", "Arrays.sort", "Arrays", "x", "boolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]);", "isTriangle", "(x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2])", "(x[0] * x[0]) + (x[1] * x[1])", "(x[0] * x[0])", "x[0]", "x", "0", "x[0]", "x", "0", "(x[1] * x[1])", "x[1]", "x", "1", "x[1]", "x", "1", "(x[2] * x[2])", "x[2]", "x", "2", "x[2]", "x", "2", "System.out.println(isTriangle ? \"YES\" : \"NO\")", "System.out.println", "System.out", "System", "System.out", "isTriangle ? \"YES\" : \"NO\"", "isTriangle", "\"YES\"", "\"NO\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tfinal int n = sc.nextInt();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tint[] x = new int[3];\n\t\t\t\tx[0] = sc.nextInt();\n\t\t\t\tx[1] = sc.nextInt();\n\t\t\t\tx[2] = sc.nextInt();\n\t\t\t\tArrays.sort(x);\n\t\t\t\tboolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]);\n\t\t\t\tSystem.out.println(isTriangle ? \"YES\" : \"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tfinal int n = sc.nextInt();\n\t\t\twhile (sc.hasNext()) {\n\t\t\t\tint[] x = new int[3];\n\t\t\t\tx[0] = sc.nextInt();\n\t\t\t\tx[1] = sc.nextInt();\n\t\t\t\tx[2] = sc.nextInt();\n\t\t\t\tArrays.sort(x);\n\t\t\t\tboolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]);\n\t\t\t\tSystem.out.println(isTriangle ? \"YES\" : \"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { final int n = sc.nextInt(); while (sc.hasNext()) { int[] x = new int[3]; x[0] = sc.nextInt(); x[1] = sc.nextInt(); x[2] = sc.nextInt(); Arrays.sort(x); boolean isTriangle = (x[0] * x[0]) + (x[1] * x[1]) == (x[2] * x[2]); System.out.println(isTriangle ? "YES" : "NO"); } } } }
[ 7, 15, 13, 17, 6, 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, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 17, 18, 13, 13, 30, 41, 13, 18, 13, 17, 0, 18, 13, 17, 18, 13, 13, 0, 18, 13, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 42, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 41, 13, 41, 13, 0, 13, 20, 13, 41, 13, 0, 13, 20, 13, 41, 13, 17, 42, 2, 13, 13, 30, 0, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 17, 17, 0, 18, 13, 13, 4, 13, 18, 13, 13, 40, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 2, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 235, 5 ], [ 235, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 15, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 15, 25 ], [ 25, 26 ], [ 26, 27 ], [ 15, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 37, 38 ], [ 37, 39 ], [ 8, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 40, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 60, 62 ], [ 55, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 63, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 63, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 8, 81 ], [ 81, 82 ], [ 6, 83 ], [ 83, 84 ], [ 235, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 87, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 87, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 87, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 107, 108 ], [ 107, 109 ], [ 102, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 110, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 87, 122 ], [ 122, 123 ], [ 87, 124 ], [ 124, 125 ], [ 87, 126 ], [ 126, 127 ], [ 126, 128 ], [ 87, 130 ], [ 130, 131 ], [ 87, 132 ], [ 132, 133 ], [ 132, 134 ], [ 87, 136 ], [ 136, 137 ], [ 136, 138 ], [ 87, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 143, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 149, 153 ], [ 153, 154 ], [ 154, 155 ], [ 153, 156 ], [ 153, 157 ], [ 143, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 164, 166 ], [ 143, 167 ], [ 167, 168 ], [ 87, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 169, 174 ], [ 174, 175 ], [ 174, 176 ], [ 169, 177 ], [ 177, 178 ], [ 178, 179 ], [ 169, 180 ], [ 181, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 186, 187 ], [ 186, 188 ], [ 185, 189 ], [ 184, 190 ], [ 190, 191 ], [ 191, 192 ], [ 191, 193 ], [ 190, 194 ], [ 183, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 198, 200 ], [ 197, 201 ], [ 196, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 202, 206 ], [ 195, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 207, 213 ], [ 213, 214 ], [ 214, 215 ], [ 214, 216 ], [ 213, 217 ], [ 182, 218 ], [ 218, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 221, 223 ], [ 219, 224 ], [ 182, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 228, 230 ], [ 226, 231 ], [ 85, 232 ], [ 232, 233 ], [ 0, 234 ], [ 234, 235 ], [ 234, 236 ] ]
[ "import java.io.*;\npublic class Main{\n\n public static int[] sort(String s[]){\n int[] sides = new int[s.length];\n for(int i = 0;i < s.length; i++){\n sides[i] = Integer.parseInt(s[i]);\n }\n for(int j = 1;j < sides.length; j++){\n if(sides[0] < sides[j]){\n int n = sides[0];\n sides[0] = sides[j];\n sides[j] = n;\n }\n }\n return sides;\n }\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n int num = Integer.parseInt(str);\n while(num <= 0 || num > 1000){\n str = br.readLine();\n num = Integer.parseInt(str);\n }\n String str1;\n String side[][];\n side = new String[num][];\n int sides[][];\n sides = new int[num][];\n int a = 0;\n while(a != num){\n str1 = br.readLine();\n side[a] = str1.split(\" \", 3);\n sides[a] = sort(side[a]);\n a++;\n }\n for(int k = 0;k < num;k++){\n if(sides[k][0]*sides[k][0] == sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n}", "import java.io.*;", "io.*", "java", "public class Main{\n\n public static int[] sort(String s[]){\n int[] sides = new int[s.length];\n for(int i = 0;i < s.length; i++){\n sides[i] = Integer.parseInt(s[i]);\n }\n for(int j = 1;j < sides.length; j++){\n if(sides[0] < sides[j]){\n int n = sides[0];\n sides[0] = sides[j];\n sides[j] = n;\n }\n }\n return sides;\n }\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n int num = Integer.parseInt(str);\n while(num <= 0 || num > 1000){\n str = br.readLine();\n num = Integer.parseInt(str);\n }\n String str1;\n String side[][];\n side = new String[num][];\n int sides[][];\n sides = new int[num][];\n int a = 0;\n while(a != num){\n str1 = br.readLine();\n side[a] = str1.split(\" \", 3);\n sides[a] = sort(side[a]);\n a++;\n }\n for(int k = 0;k < num;k++){\n if(sides[k][0]*sides[k][0] == sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n}", "Main", "public static int[] sort(String s[]){\n int[] sides = new int[s.length];\n for(int i = 0;i < s.length; i++){\n sides[i] = Integer.parseInt(s[i]);\n }\n for(int j = 1;j < sides.length; j++){\n if(sides[0] < sides[j]){\n int n = sides[0];\n sides[0] = sides[j];\n sides[j] = n;\n }\n }\n return sides;\n }", "sort", "{\n int[] sides = new int[s.length];\n for(int i = 0;i < s.length; i++){\n sides[i] = Integer.parseInt(s[i]);\n }\n for(int j = 1;j < sides.length; j++){\n if(sides[0] < sides[j]){\n int n = sides[0];\n sides[0] = sides[j];\n sides[j] = n;\n }\n }\n return sides;\n }", "int[] sides = new int[s.length];", "sides", "new int[s.length]", "s.length", "s", "s.length", "for(int i = 0;i < s.length; i++){\n sides[i] = Integer.parseInt(s[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length", "i", "s.length", "s", "s.length", "i++", "i++", "i", "{\n sides[i] = Integer.parseInt(s[i]);\n }", "{\n sides[i] = Integer.parseInt(s[i]);\n }", "sides[i] = Integer.parseInt(s[i])", "sides[i]", "sides", "i", "Integer.parseInt(s[i])", "Integer.parseInt", "Integer", "s[i]", "s", "i", "for(int j = 1;j < sides.length; j++){\n if(sides[0] < sides[j]){\n int n = sides[0];\n sides[0] = sides[j];\n sides[j] = n;\n }\n }", "int j = 1;", "int j = 1;", "j", "1", "j < sides.length", "j", "sides.length", "sides", "sides.length", "j++", "j++", "j", "{\n if(sides[0] < sides[j]){\n int n = sides[0];\n sides[0] = sides[j];\n sides[j] = n;\n }\n }", "{\n if(sides[0] < sides[j]){\n int n = sides[0];\n sides[0] = sides[j];\n sides[j] = n;\n }\n }", "if(sides[0] < sides[j]){\n int n = sides[0];\n sides[0] = sides[j];\n sides[j] = n;\n }", "sides[0] < sides[j]", "sides[0]", "sides", "0", "sides[j]", "sides", "j", "{\n int n = sides[0];\n sides[0] = sides[j];\n sides[j] = n;\n }", "int n = sides[0];", "n", "sides[0]", "sides", "0", "sides[0] = sides[j]", "sides[0]", "sides", "0", "sides[j]", "sides", "j", "sides[j] = n", "sides[j]", "sides", "j", "n", "return sides;", "sides", "String s[]", "s", "public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n int num = Integer.parseInt(str);\n while(num <= 0 || num > 1000){\n str = br.readLine();\n num = Integer.parseInt(str);\n }\n String str1;\n String side[][];\n side = new String[num][];\n int sides[][];\n sides = new int[num][];\n int a = 0;\n while(a != num){\n str1 = br.readLine();\n side[a] = str1.split(\" \", 3);\n sides[a] = sort(side[a]);\n a++;\n }\n for(int k = 0;k < num;k++){\n if(sides[k][0]*sides[k][0] == sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }", "main", "{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n int num = Integer.parseInt(str);\n while(num <= 0 || num > 1000){\n str = br.readLine();\n num = Integer.parseInt(str);\n }\n String str1;\n String side[][];\n side = new String[num][];\n int sides[][];\n sides = new int[num][];\n int a = 0;\n while(a != num){\n str1 = br.readLine();\n side[a] = str1.split(\" \", 3);\n sides[a] = sort(side[a]);\n a++;\n }\n for(int k = 0;k < num;k++){\n if(sides[k][0]*sides[k][0] == sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String str = br.readLine();", "str", "br.readLine()", "br.readLine", "br", "int num = Integer.parseInt(str);", "num", "Integer.parseInt(str)", "Integer.parseInt", "Integer", "str", "while(num <= 0 || num > 1000){\n str = br.readLine();\n num = Integer.parseInt(str);\n }", "num <= 0 || num > 1000", "num <= 0", "num", "0", "num > 1000", "num", "1000", "{\n str = br.readLine();\n num = Integer.parseInt(str);\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "num = Integer.parseInt(str)", "num", "Integer.parseInt(str)", "Integer.parseInt", "Integer", "str", "String str1;", "str1", "String side[][];", "side", "side = new String[num][]", "side", "new String[num][]", "num", "int sides[][];", "sides", "sides = new int[num][]", "sides", "new int[num][]", "num", "int a = 0;", "a", "0", "while(a != num){\n str1 = br.readLine();\n side[a] = str1.split(\" \", 3);\n sides[a] = sort(side[a]);\n a++;\n }", "a != num", "a", "num", "{\n str1 = br.readLine();\n side[a] = str1.split(\" \", 3);\n sides[a] = sort(side[a]);\n a++;\n }", "str1 = br.readLine()", "str1", "br.readLine()", "br.readLine", "br", "side[a] = str1.split(\" \", 3)", "side[a]", "side", "a", "str1.split(\" \", 3)", "str1.split", "str1", "\" \"", "3", "sides[a] = sort(side[a])", "sides[a]", "sides", "a", "sort(side[a])", "sort", "side[a]", "side", "a", "a++", "a", "for(int k = 0;k < num;k++){\n if(sides[k][0]*sides[k][0] == sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }", "int k = 0;", "int k = 0;", "k", "0", "k < num", "k", "num", "k++", "k++", "k", "{\n if(sides[k][0]*sides[k][0] == sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }", "{\n if(sides[k][0]*sides[k][0] == sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }", "if(sides[k][0]*sides[k][0] == sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }", "sides[k][0]*sides[k][0] == sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]", "sides[k][0]*sides[k][0]", "sides[k][0]", "sides[k]", "sides", "k", "0", "sides[k][0]", "sides[k]", "sides", "k", "0", "sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]", "sides[k][2]*sides[k][2]", "sides[k][2]", "sides[k]", "sides", "k", "2", "sides[k][2]", "sides[k]", "sides", "k", "2", "sides[k][1]*sides[k][1]", "sides[k][1]", "sides[k]", "sides", "k", "1", "sides[k][1]", "sides[k]", "sides", "k", "1", "{\n System.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n System.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args", "public class Main{\n\n public static int[] sort(String s[]){\n int[] sides = new int[s.length];\n for(int i = 0;i < s.length; i++){\n sides[i] = Integer.parseInt(s[i]);\n }\n for(int j = 1;j < sides.length; j++){\n if(sides[0] < sides[j]){\n int n = sides[0];\n sides[0] = sides[j];\n sides[j] = n;\n }\n }\n return sides;\n }\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n int num = Integer.parseInt(str);\n while(num <= 0 || num > 1000){\n str = br.readLine();\n num = Integer.parseInt(str);\n }\n String str1;\n String side[][];\n side = new String[num][];\n int sides[][];\n sides = new int[num][];\n int a = 0;\n while(a != num){\n str1 = br.readLine();\n side[a] = str1.split(\" \", 3);\n sides[a] = sort(side[a]);\n a++;\n }\n for(int k = 0;k < num;k++){\n if(sides[k][0]*sides[k][0] == sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n}", "public class Main{\n\n public static int[] sort(String s[]){\n int[] sides = new int[s.length];\n for(int i = 0;i < s.length; i++){\n sides[i] = Integer.parseInt(s[i]);\n }\n for(int j = 1;j < sides.length; j++){\n if(sides[0] < sides[j]){\n int n = sides[0];\n sides[0] = sides[j];\n sides[j] = n;\n }\n }\n return sides;\n }\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n int num = Integer.parseInt(str);\n while(num <= 0 || num > 1000){\n str = br.readLine();\n num = Integer.parseInt(str);\n }\n String str1;\n String side[][];\n side = new String[num][];\n int sides[][];\n sides = new int[num][];\n int a = 0;\n while(a != num){\n str1 = br.readLine();\n side[a] = str1.split(\" \", 3);\n sides[a] = sort(side[a]);\n a++;\n }\n for(int k = 0;k < num;k++){\n if(sides[k][0]*sides[k][0] == sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n}", "Main" ]
import java.io.*; public class Main{ public static int[] sort(String s[]){ int[] sides = new int[s.length]; for(int i = 0;i < s.length; i++){ sides[i] = Integer.parseInt(s[i]); } for(int j = 1;j < sides.length; j++){ if(sides[0] < sides[j]){ int n = sides[0]; sides[0] = sides[j]; sides[j] = n; } } return sides; } public static void main(String[] args)throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int num = Integer.parseInt(str); while(num <= 0 || num > 1000){ str = br.readLine(); num = Integer.parseInt(str); } String str1; String side[][]; side = new String[num][]; int sides[][]; sides = new int[num][]; int a = 0; while(a != num){ str1 = br.readLine(); side[a] = str1.split(" ", 3); sides[a] = sort(side[a]); a++; } for(int k = 0;k < num;k++){ if(sides[k][0]*sides[k][0] == sides[k][2]*sides[k][2] +sides[k][1]*sides[k][1]){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 35, 4, 13, 13, 13, 13, 34, 17, 1, 14, 4, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 14, 4, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 14, 4, 13, 13, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 3, 23, 13, 12, 13, 30, 14, 2, 13, 13, 30, 14, 2, 13, 13, 30, 29, 17, 30, 29, 17, 14, 2, 13, 13, 30, 29, 17, 30, 29, 17, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 29, 2, 13, 2, 13, 13, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 190, 5 ], [ 190, 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 ], [ 18, 19 ], [ 19, 20 ], [ 19, 21 ], [ 17, 22 ], [ 22, 23 ], [ 22, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 29, 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 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 29, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 46, 50 ], [ 45, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 55, 58 ], [ 55, 59 ], [ 54, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 54, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 53, 74 ], [ 45, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 79, 82 ], [ 79, 83 ], [ 78, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 78, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 77, 98 ], [ 45, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 103, 106 ], [ 103, 107 ], [ 102, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 102, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 101, 122 ], [ 6, 123 ], [ 123, 124 ], [ 190, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 133, 140 ], [ 140, 141 ], [ 141, 142 ], [ 128, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 143, 150 ], [ 150, 151 ], [ 151, 152 ], [ 125, 153 ], [ 153, 154 ], [ 125, 155 ], [ 155, 156 ], [ 125, 157 ], [ 157, 158 ], [ 190, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 164, 165 ], [ 164, 166 ], [ 161, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 169, 171 ], [ 161, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 174, 176 ], [ 161, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 180, 182 ], [ 159, 183 ], [ 183, 184 ], [ 159, 185 ], [ 185, 186 ], [ 159, 187 ], [ 187, 188 ], [ 0, 189 ], [ 189, 190 ], [ 189, 191 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\n\t\tint n=sc.nextInt();\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();\n\t\t\tswitch(biggestLength(a, b, c)){\n\t\t\tcase 'a':\n\t\t\t\tif(isRightTriangle(a,b,c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tif(isRightTriangle(b, a, c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tif(isRightTriangle(c, a, b)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t}\n\n\tstatic char biggestLength(int a,int b,int c){\n\t\tif(a<=b){\n\t\t\tif(b<=c){\n\t\t\t\treturn 'c';\n\t\t\t}else{\n\t\t\t\treturn 'b';\n\t\t\t}\n\t\t}else if(a<=c){\n\t\t\treturn 'c';\n\t\t}else{\n\t\t\treturn 'a';\n\t\t}\n\t}\n\n\tstatic boolean isRightTriangle(int longest,int other1,int other2){\n\t\tint longestP=longest*longest;\n\t\tint other1P=other1*other1;\n\t\tint other2P=other2*other2;\n\n\t\treturn longestP==other2P+other1P;\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\n\t\tint n=sc.nextInt();\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();\n\t\t\tswitch(biggestLength(a, b, c)){\n\t\t\tcase 'a':\n\t\t\t\tif(isRightTriangle(a,b,c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tif(isRightTriangle(b, a, c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tif(isRightTriangle(c, a, b)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t}\n\n\tstatic char biggestLength(int a,int b,int c){\n\t\tif(a<=b){\n\t\t\tif(b<=c){\n\t\t\t\treturn 'c';\n\t\t\t}else{\n\t\t\t\treturn 'b';\n\t\t\t}\n\t\t}else if(a<=c){\n\t\t\treturn 'c';\n\t\t}else{\n\t\t\treturn 'a';\n\t\t}\n\t}\n\n\tstatic boolean isRightTriangle(int longest,int other1,int other2){\n\t\tint longestP=longest*longest;\n\t\tint other1P=other1*other1;\n\t\tint other2P=other2*other2;\n\n\t\treturn longestP==other2P+other1P;\n\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\n\t\tint n=sc.nextInt();\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();\n\t\t\tswitch(biggestLength(a, b, c)){\n\t\t\tcase 'a':\n\t\t\t\tif(isRightTriangle(a,b,c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tif(isRightTriangle(b, a, c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tif(isRightTriangle(c, a, b)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\n\t\tint n=sc.nextInt();\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();\n\t\t\tswitch(biggestLength(a, b, c)){\n\t\t\tcase 'a':\n\t\t\t\tif(isRightTriangle(a,b,c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tif(isRightTriangle(b, a, c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tif(isRightTriangle(c, a, b)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "for(int i=0;i<n;i++){\n\t\t\tint a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();\n\t\t\tswitch(biggestLength(a, b, c)){\n\t\t\tcase 'a':\n\t\t\t\tif(isRightTriangle(a,b,c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tif(isRightTriangle(b, a, c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tif(isRightTriangle(c, a, b)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tint a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();\n\t\t\tswitch(biggestLength(a, b, c)){\n\t\t\tcase 'a':\n\t\t\t\tif(isRightTriangle(a,b,c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tif(isRightTriangle(b, a, c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tif(isRightTriangle(c, a, b)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "{\n\t\t\tint a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();\n\t\t\tswitch(biggestLength(a, b, c)){\n\t\t\tcase 'a':\n\t\t\t\tif(isRightTriangle(a,b,c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tif(isRightTriangle(b, a, c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tif(isRightTriangle(c, a, b)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}", "int a=sc.nextInt()", "a", "sc.nextInt()", "sc.nextInt", "sc", "b=sc.nextInt()", "b", "sc.nextInt()", "sc.nextInt", "sc", "c=sc.nextInt();", "c", "sc.nextInt()", "sc.nextInt", "sc", "switch(biggestLength(a, b, c)){\n\t\t\tcase 'a':\n\t\t\t\tif(isRightTriangle(a,b,c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tif(isRightTriangle(b, a, c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tif(isRightTriangle(c, a, b)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}", "biggestLength(a, b, c)", "biggestLength", "a", "b", "c", "case 'a':", "'a'", "case 'a':", "if(isRightTriangle(a,b,c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}", "isRightTriangle(a,b,c)", "isRightTriangle", "a", "b", "c", "{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "break;", "case 'b':", "'b'", "case 'b':", "if(isRightTriangle(b, a, c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}", "isRightTriangle(b, a, c)", "isRightTriangle", "b", "a", "c", "{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "break;", "case 'c':", "'c'", "case 'c':", "if(isRightTriangle(c, a, b)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}", "isRightTriangle(c, a, b)", "isRightTriangle", "c", "a", "b", "{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "break;", "String[] args", "args", "static char biggestLength(int a,int b,int c){\n\t\tif(a<=b){\n\t\t\tif(b<=c){\n\t\t\t\treturn 'c';\n\t\t\t}else{\n\t\t\t\treturn 'b';\n\t\t\t}\n\t\t}else if(a<=c){\n\t\t\treturn 'c';\n\t\t}else{\n\t\t\treturn 'a';\n\t\t}\n\t}", "biggestLength", "{\n\t\tif(a<=b){\n\t\t\tif(b<=c){\n\t\t\t\treturn 'c';\n\t\t\t}else{\n\t\t\t\treturn 'b';\n\t\t\t}\n\t\t}else if(a<=c){\n\t\t\treturn 'c';\n\t\t}else{\n\t\t\treturn 'a';\n\t\t}\n\t}", "if(a<=b){\n\t\t\tif(b<=c){\n\t\t\t\treturn 'c';\n\t\t\t}else{\n\t\t\t\treturn 'b';\n\t\t\t}\n\t\t}else if(a<=c){\n\t\t\treturn 'c';\n\t\t}else{\n\t\t\treturn 'a';\n\t\t}", "a<=b", "a", "b", "{\n\t\t\tif(b<=c){\n\t\t\t\treturn 'c';\n\t\t\t}else{\n\t\t\t\treturn 'b';\n\t\t\t}\n\t\t}", "if(b<=c){\n\t\t\t\treturn 'c';\n\t\t\t}else{\n\t\t\t\treturn 'b';\n\t\t\t}", "b<=c", "b", "c", "{\n\t\t\t\treturn 'c';\n\t\t\t}", "return 'c';", "'c'", "{\n\t\t\t\treturn 'b';\n\t\t\t}", "return 'b';", "'b'", "if(a<=c){\n\t\t\treturn 'c';\n\t\t}else{\n\t\t\treturn 'a';\n\t\t}", "a<=c", "a", "c", "{\n\t\t\treturn 'c';\n\t\t}", "return 'c';", "'c'", "{\n\t\t\treturn 'a';\n\t\t}", "return 'a';", "'a'", "int a", "a", "int b", "b", "int c", "c", "static boolean isRightTriangle(int longest,int other1,int other2){\n\t\tint longestP=longest*longest;\n\t\tint other1P=other1*other1;\n\t\tint other2P=other2*other2;\n\n\t\treturn longestP==other2P+other1P;\n\n\t}", "isRightTriangle", "{\n\t\tint longestP=longest*longest;\n\t\tint other1P=other1*other1;\n\t\tint other2P=other2*other2;\n\n\t\treturn longestP==other2P+other1P;\n\n\t}", "int longestP=longest*longest;", "longestP", "longest*longest", "longest", "longest", "int other1P=other1*other1;", "other1P", "other1*other1", "other1", "other1", "int other2P=other2*other2;", "other2P", "other2*other2", "other2", "other2", "return longestP==other2P+other1P;", "longestP==other2P+other1P", "longestP", "other2P+other1P", "other2P", "other1P", "int longest", "longest", "int other1", "other1", "int other2", "other2", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\n\t\tint n=sc.nextInt();\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();\n\t\t\tswitch(biggestLength(a, b, c)){\n\t\t\tcase 'a':\n\t\t\t\tif(isRightTriangle(a,b,c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tif(isRightTriangle(b, a, c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tif(isRightTriangle(c, a, b)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t}\n\n\tstatic char biggestLength(int a,int b,int c){\n\t\tif(a<=b){\n\t\t\tif(b<=c){\n\t\t\t\treturn 'c';\n\t\t\t}else{\n\t\t\t\treturn 'b';\n\t\t\t}\n\t\t}else if(a<=c){\n\t\t\treturn 'c';\n\t\t}else{\n\t\t\treturn 'a';\n\t\t}\n\t}\n\n\tstatic boolean isRightTriangle(int longest,int other1,int other2){\n\t\tint longestP=longest*longest;\n\t\tint other1P=other1*other1;\n\t\tint other2P=other2*other2;\n\n\t\treturn longestP==other2P+other1P;\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\n\t\tint n=sc.nextInt();\n\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt();\n\t\t\tswitch(biggestLength(a, b, c)){\n\t\t\tcase 'a':\n\t\t\t\tif(isRightTriangle(a,b,c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'b':\n\t\t\t\tif(isRightTriangle(b, a, c)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\tcase 'c':\n\t\t\t\tif(isRightTriangle(c, a, b)){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t\tbreak;\n\t\t\t}\n\n\t\t}\n\n\t}\n\n\tstatic char biggestLength(int a,int b,int c){\n\t\tif(a<=b){\n\t\t\tif(b<=c){\n\t\t\t\treturn 'c';\n\t\t\t}else{\n\t\t\t\treturn 'b';\n\t\t\t}\n\t\t}else if(a<=c){\n\t\t\treturn 'c';\n\t\t}else{\n\t\t\treturn 'a';\n\t\t}\n\t}\n\n\tstatic boolean isRightTriangle(int longest,int other1,int other2){\n\t\tint longestP=longest*longest;\n\t\tint other1P=other1*other1;\n\t\tint other2P=other2*other2;\n\n\t\treturn longestP==other2P+other1P;\n\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); int n=sc.nextInt(); for(int i=0;i<n;i++){ int a=sc.nextInt(),b=sc.nextInt(),c=sc.nextInt(); switch(biggestLength(a, b, c)){ case 'a': if(isRightTriangle(a,b,c)){ System.out.println("YES"); }else{ System.out.println("NO"); } break; case 'b': if(isRightTriangle(b, a, c)){ System.out.println("YES"); }else{ System.out.println("NO"); } break; case 'c': if(isRightTriangle(c, a, b)){ System.out.println("YES"); }else{ System.out.println("NO"); } break; } } } static char biggestLength(int a,int b,int c){ if(a<=b){ if(b<=c){ return 'c'; }else{ return 'b'; } }else if(a<=c){ return 'c'; }else{ return 'a'; } } static boolean isRightTriangle(int longest,int other1,int other2){ int longestP=longest*longest; int other1P=other1*other1; int other2P=other2*other2; return longestP==other2P+other1P; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 4, 18, 13, 4, 18, 13, 18, 13, 17, 4, 18, 13, 4, 18, 13, 18, 13, 17, 4, 18, 13, 4, 18, 13, 18, 13, 17, 4, 18, 13, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 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 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 38, 43 ], [ 35, 44 ], [ 44, 45 ], [ 44, 46 ], [ 35, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 53, 54 ], [ 53, 55 ], [ 35, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 62, 64 ], [ 35, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 35, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 35, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 35, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 86, 89 ], [ 35, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 35, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 105, 106 ], [ 105, 107 ], [ 96, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 96, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 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[] ) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n String M = sc.nextLine();\n int N = Integer.parseInt(M);\n \n\n for (int i=0; i<N; i++) {\n \tString[] array = sc.nextLine().split(\" \");\n \tList<Integer> triangle = new ArrayList<Integer>();\n\n triangle.add(Integer.parseInt(array[0]));\n triangle.add(Integer.parseInt(array[1]));\n triangle.add(Integer.parseInt(array[2]));\n \n Collections.sort(triangle);\n \n int A = (int)triangle.get(0);\n int B = (int)triangle.get(1);\n int C = (int)triangle.get(2);\n \n if((B*B + A*A) == C*C){\n \tSystem.out.println(\"YES\");\n }else{\n \tSystem.out.println(\"NO\");\n }\n }\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String args[] ) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n String M = sc.nextLine();\n int N = Integer.parseInt(M);\n \n\n for (int i=0; i<N; i++) {\n \tString[] array = sc.nextLine().split(\" \");\n \tList<Integer> triangle = new ArrayList<Integer>();\n\n triangle.add(Integer.parseInt(array[0]));\n triangle.add(Integer.parseInt(array[1]));\n triangle.add(Integer.parseInt(array[2]));\n \n Collections.sort(triangle);\n \n int A = (int)triangle.get(0);\n int B = (int)triangle.get(1);\n int C = (int)triangle.get(2);\n \n if((B*B + A*A) == C*C){\n \tSystem.out.println(\"YES\");\n }else{\n \tSystem.out.println(\"NO\");\n }\n }\n }\n}", "Main", "public static void main(String args[] ) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n String M = sc.nextLine();\n int N = Integer.parseInt(M);\n \n\n for (int i=0; i<N; i++) {\n \tString[] array = sc.nextLine().split(\" \");\n \tList<Integer> triangle = new ArrayList<Integer>();\n\n triangle.add(Integer.parseInt(array[0]));\n triangle.add(Integer.parseInt(array[1]));\n triangle.add(Integer.parseInt(array[2]));\n \n Collections.sort(triangle);\n \n int A = (int)triangle.get(0);\n int B = (int)triangle.get(1);\n int C = (int)triangle.get(2);\n \n if((B*B + A*A) == C*C){\n \tSystem.out.println(\"YES\");\n }else{\n \tSystem.out.println(\"NO\");\n }\n }\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n String M = sc.nextLine();\n int N = Integer.parseInt(M);\n \n\n for (int i=0; i<N; i++) {\n \tString[] array = sc.nextLine().split(\" \");\n \tList<Integer> triangle = new ArrayList<Integer>();\n\n triangle.add(Integer.parseInt(array[0]));\n triangle.add(Integer.parseInt(array[1]));\n triangle.add(Integer.parseInt(array[2]));\n \n Collections.sort(triangle);\n \n int A = (int)triangle.get(0);\n int B = (int)triangle.get(1);\n int C = (int)triangle.get(2);\n \n if((B*B + A*A) == C*C){\n \tSystem.out.println(\"YES\");\n }else{\n \tSystem.out.println(\"NO\");\n }\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String M = sc.nextLine();", "M", "sc.nextLine()", "sc.nextLine", "sc", "int N = Integer.parseInt(M);", "N", "Integer.parseInt(M)", "Integer.parseInt", "Integer", "M", "for (int i=0; i<N; i++) {\n \tString[] array = sc.nextLine().split(\" \");\n \tList<Integer> triangle = new ArrayList<Integer>();\n\n triangle.add(Integer.parseInt(array[0]));\n triangle.add(Integer.parseInt(array[1]));\n triangle.add(Integer.parseInt(array[2]));\n \n Collections.sort(triangle);\n \n int A = (int)triangle.get(0);\n int B = (int)triangle.get(1);\n int C = (int)triangle.get(2);\n \n if((B*B + A*A) == C*C){\n \tSystem.out.println(\"YES\");\n }else{\n \tSystem.out.println(\"NO\");\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n \tString[] array = sc.nextLine().split(\" \");\n \tList<Integer> triangle = new ArrayList<Integer>();\n\n triangle.add(Integer.parseInt(array[0]));\n triangle.add(Integer.parseInt(array[1]));\n triangle.add(Integer.parseInt(array[2]));\n \n Collections.sort(triangle);\n \n int A = (int)triangle.get(0);\n int B = (int)triangle.get(1);\n int C = (int)triangle.get(2);\n \n if((B*B + A*A) == C*C){\n \tSystem.out.println(\"YES\");\n }else{\n \tSystem.out.println(\"NO\");\n }\n }", "{\n \tString[] array = sc.nextLine().split(\" \");\n \tList<Integer> triangle = new ArrayList<Integer>();\n\n triangle.add(Integer.parseInt(array[0]));\n triangle.add(Integer.parseInt(array[1]));\n triangle.add(Integer.parseInt(array[2]));\n \n Collections.sort(triangle);\n \n int A = (int)triangle.get(0);\n int B = (int)triangle.get(1);\n int C = (int)triangle.get(2);\n \n if((B*B + A*A) == C*C){\n \tSystem.out.println(\"YES\");\n }else{\n \tSystem.out.println(\"NO\");\n }\n }", "String[] array = sc.nextLine().split(\" \");", "array", "sc.nextLine().split(\" \")", "sc.nextLine().split", "sc.nextLine()", "sc.nextLine", "sc", "\" \"", "List<Integer> triangle = new ArrayList<Integer>();", "triangle", "new ArrayList<Integer>()", "triangle.add(Integer.parseInt(array[0]))", "triangle.add", "triangle", "Integer.parseInt(array[0])", "Integer.parseInt", "Integer", "array[0]", "array", "0", "triangle.add(Integer.parseInt(array[1]))", "triangle.add", "triangle", "Integer.parseInt(array[1])", "Integer.parseInt", "Integer", "array[1]", "array", "1", "triangle.add(Integer.parseInt(array[2]))", "triangle.add", "triangle", "Integer.parseInt(array[2])", "Integer.parseInt", "Integer", "array[2]", "array", "2", "Collections.sort(triangle)", "Collections.sort", "Collections", "triangle", "int A = (int)triangle.get(0);", "A", "(int)triangle.get(0)", "triangle.get", "triangle", "0", "int B = (int)triangle.get(1);", "B", "(int)triangle.get(1)", "triangle.get", "triangle", "1", "int C = (int)triangle.get(2);", "C", "(int)triangle.get(2)", "triangle.get", "triangle", "2", "if((B*B + A*A) == C*C){\n \tSystem.out.println(\"YES\");\n }else{\n \tSystem.out.println(\"NO\");\n }", "(B*B + A*A) == C*C", "(B*B + A*A)", "B*B", "B", "B", "A*A", "A", "A", "C*C", "C", "C", "{\n \tSystem.out.println(\"YES\");\n }", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n \tSystem.out.println(\"NO\");\n }", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String args[]", "args", "public class Main {\n public static void main(String args[] ) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n String M = sc.nextLine();\n int N = Integer.parseInt(M);\n \n\n for (int i=0; i<N; i++) {\n \tString[] array = sc.nextLine().split(\" \");\n \tList<Integer> triangle = new ArrayList<Integer>();\n\n triangle.add(Integer.parseInt(array[0]));\n triangle.add(Integer.parseInt(array[1]));\n triangle.add(Integer.parseInt(array[2]));\n \n Collections.sort(triangle);\n \n int A = (int)triangle.get(0);\n int B = (int)triangle.get(1);\n int C = (int)triangle.get(2);\n \n if((B*B + A*A) == C*C){\n \tSystem.out.println(\"YES\");\n }else{\n \tSystem.out.println(\"NO\");\n }\n }\n }\n}", "public class Main {\n public static void main(String args[] ) throws Exception {\n\n Scanner sc = new Scanner(System.in);\n String M = sc.nextLine();\n int N = Integer.parseInt(M);\n \n\n for (int i=0; i<N; i++) {\n \tString[] array = sc.nextLine().split(\" \");\n \tList<Integer> triangle = new ArrayList<Integer>();\n\n triangle.add(Integer.parseInt(array[0]));\n triangle.add(Integer.parseInt(array[1]));\n triangle.add(Integer.parseInt(array[2]));\n \n Collections.sort(triangle);\n \n int A = (int)triangle.get(0);\n int B = (int)triangle.get(1);\n int C = (int)triangle.get(2);\n \n if((B*B + A*A) == C*C){\n \tSystem.out.println(\"YES\");\n }else{\n \tSystem.out.println(\"NO\");\n }\n }\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String args[] ) throws Exception { Scanner sc = new Scanner(System.in); String M = sc.nextLine(); int N = Integer.parseInt(M); for (int i=0; i<N; i++) { String[] array = sc.nextLine().split(" "); List<Integer> triangle = new ArrayList<Integer>(); triangle.add(Integer.parseInt(array[0])); triangle.add(Integer.parseInt(array[1])); triangle.add(Integer.parseInt(array[2])); Collections.sort(triangle); int A = (int)triangle.get(0); int B = (int)triangle.get(1); int C = (int)triangle.get(2); if((B*B + A*A) == C*C){ System.out.println("YES"); }else{ System.out.println("NO"); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 20, 41, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 4, 18, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 18, 13, 13, 30, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 4, 18, 13, 2, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, 18, 13, 17, 2, 18, 13, 17, 18, 13, 17, 28, 13, 13, 30, 4, 18, 18, 13, 13, 8, 4, 18, 13, 17, 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 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 182, 17 ], [ 182, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 23, 24 ], [ 23, 25 ], [ 20, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 20, 32 ], [ 32, 33 ], [ 32, 34 ], [ 20, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 40, 41 ], [ 41, 42 ], [ 20, 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 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 58, 63 ], [ 55, 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 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 83, 85 ], [ 55, 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 ], [ 99, 104 ], [ 104, 105 ], [ 104, 106 ], [ 99, 107 ], [ 107, 108 ], [ 108, 109 ], [ 99, 110 ], [ 111, 111 ], [ 111, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 117, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 120, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 130, 131 ], [ 130, 132 ], [ 120, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 55, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 146, 147 ], [ 146, 148 ], [ 141, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 150, 154 ], [ 154, 155 ], [ 154, 156 ], [ 149, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 161, 163 ], [ 20, 164 ], [ 164, 165 ], [ 164, 166 ], [ 164, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 170, 172 ], [ 168, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 173, 177 ], [ 173, 178 ], [ 18, 179 ], [ 179, 180 ], [ 0, 181 ], [ 181, 182 ], [ 181, 183 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\n\n\npublic class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t\n\t\tint \tcountMax;\n\t\tint[]\t\tidata = new int[3];\n\t\tString[]\tdata;\n\t\tList<Boolean> list = new ArrayList<Boolean>();\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tcountMax = Integer.parseInt(reader.readLine());\n\t\tfor(int i = 0; i < countMax; i++){\n\t\t\tdata = reader.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < 3; j++) idata[j] = Integer.parseInt(data[j]);\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(((idata[2] * idata[2]) == (idata[0] * idata[0] + idata[1] * idata[1])));\n\t\t}\n\t\t\n\t\tfor(Boolean bool : list)\tSystem.out.println(bool.booleanValue() ? \"YES\" : \"NO\");\n\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t\n\t\tint \tcountMax;\n\t\tint[]\t\tidata = new int[3];\n\t\tString[]\tdata;\n\t\tList<Boolean> list = new ArrayList<Boolean>();\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tcountMax = Integer.parseInt(reader.readLine());\n\t\tfor(int i = 0; i < countMax; i++){\n\t\t\tdata = reader.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < 3; j++) idata[j] = Integer.parseInt(data[j]);\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(((idata[2] * idata[2]) == (idata[0] * idata[0] + idata[1] * idata[1])));\n\t\t}\n\t\t\n\t\tfor(Boolean bool : list)\tSystem.out.println(bool.booleanValue() ? \"YES\" : \"NO\");\n\n\t}\n}", "Main", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\t\n\t\tint \tcountMax;\n\t\tint[]\t\tidata = new int[3];\n\t\tString[]\tdata;\n\t\tList<Boolean> list = new ArrayList<Boolean>();\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tcountMax = Integer.parseInt(reader.readLine());\n\t\tfor(int i = 0; i < countMax; i++){\n\t\t\tdata = reader.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < 3; j++) idata[j] = Integer.parseInt(data[j]);\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(((idata[2] * idata[2]) == (idata[0] * idata[0] + idata[1] * idata[1])));\n\t\t}\n\t\t\n\t\tfor(Boolean bool : list)\tSystem.out.println(bool.booleanValue() ? \"YES\" : \"NO\");\n\n\t}", "main", "{\n\t\t\n\t\tint \tcountMax;\n\t\tint[]\t\tidata = new int[3];\n\t\tString[]\tdata;\n\t\tList<Boolean> list = new ArrayList<Boolean>();\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tcountMax = Integer.parseInt(reader.readLine());\n\t\tfor(int i = 0; i < countMax; i++){\n\t\t\tdata = reader.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < 3; j++) idata[j] = Integer.parseInt(data[j]);\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(((idata[2] * idata[2]) == (idata[0] * idata[0] + idata[1] * idata[1])));\n\t\t}\n\t\t\n\t\tfor(Boolean bool : list)\tSystem.out.println(bool.booleanValue() ? \"YES\" : \"NO\");\n\n\t}", "int \tcountMax;", "countMax", "int[]\t\tidata = new int[3];", "idata", "new int[3]", "3", "String[]\tdata;", "data", "List<Boolean> list = new ArrayList<Boolean>();", "list", "new ArrayList<Boolean>()", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "countMax = Integer.parseInt(reader.readLine())", "countMax", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "for(int i = 0; i < countMax; i++){\n\t\t\tdata = reader.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < 3; j++) idata[j] = Integer.parseInt(data[j]);\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(((idata[2] * idata[2]) == (idata[0] * idata[0] + idata[1] * idata[1])));\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < countMax", "i", "countMax", "i++", "i++", "i", "{\n\t\t\tdata = reader.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < 3; j++) idata[j] = Integer.parseInt(data[j]);\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(((idata[2] * idata[2]) == (idata[0] * idata[0] + idata[1] * idata[1])));\n\t\t}", "{\n\t\t\tdata = reader.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < 3; j++) idata[j] = Integer.parseInt(data[j]);\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(((idata[2] * idata[2]) == (idata[0] * idata[0] + idata[1] * idata[1])));\n\t\t}", "data = reader.readLine().split(\" \")", "data", "reader.readLine().split(\" \")", "reader.readLine().split", "reader.readLine()", "reader.readLine", "reader", "\" \"", "for(int j = 0; j < 3; j++) idata[j] = Integer.parseInt(data[j]);", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "idata[j] = Integer.parseInt(data[j]);", "idata[j] = Integer.parseInt(data[j])", "idata[j]", "idata", "j", "Integer.parseInt(data[j])", "Integer.parseInt", "Integer", "data[j]", "data", "j", "for(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\tfor(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tfor(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "for(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}", "int k = 0;", "int k = 0;", "k", "0", "k < 3", "k", "3", "k++", "k++", "k", "{\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}", "{\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}", "if(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}", "idata[j] < idata[k]", "idata[j]", "idata", "j", "idata[k]", "idata", "k", "{\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}", "int tmp = idata[j];", "tmp", "idata[j]", "idata", "j", "idata[j] = idata[k]", "idata[j]", "idata", "j", "idata[k]", "idata", "k", "idata[k] = tmp", "idata[k]", "idata", "k", "tmp", "list.add(((idata[2] * idata[2]) == (idata[0] * idata[0] + idata[1] * idata[1])))", "list.add", "list", "((idata[2] * idata[2]) == (idata[0] * idata[0] + idata[1] * idata[1]))", "(idata[2] * idata[2])", "idata[2]", "idata", "2", "idata[2]", "idata", "2", "(idata[0] * idata[0] + idata[1] * idata[1])", "idata[0] * idata[0]", "idata[0]", "idata", "0", "idata[0]", "idata", "0", "idata[1] * idata[1]", "idata[1]", "idata", "1", "idata[1]", "idata", "1", "for(Boolean bool : list)\tSystem.out.println(bool.booleanValue() ? \"YES\" : \"NO\");", "Boolean bool", "list", "System.out.println(bool.booleanValue() ? \"YES\" : \"NO\");", "System.out.println(bool.booleanValue() ? \"YES\" : \"NO\")", "System.out.println", "System.out", "System", "System.out", "bool.booleanValue() ? \"YES\" : \"NO\"", "bool.booleanValue()", "bool.booleanValue", "bool", "\"YES\"", "\"NO\"", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t\n\t\tint \tcountMax;\n\t\tint[]\t\tidata = new int[3];\n\t\tString[]\tdata;\n\t\tList<Boolean> list = new ArrayList<Boolean>();\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tcountMax = Integer.parseInt(reader.readLine());\n\t\tfor(int i = 0; i < countMax; i++){\n\t\t\tdata = reader.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < 3; j++) idata[j] = Integer.parseInt(data[j]);\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(((idata[2] * idata[2]) == (idata[0] * idata[0] + idata[1] * idata[1])));\n\t\t}\n\t\t\n\t\tfor(Boolean bool : list)\tSystem.out.println(bool.booleanValue() ? \"YES\" : \"NO\");\n\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t\n\t\tint \tcountMax;\n\t\tint[]\t\tidata = new int[3];\n\t\tString[]\tdata;\n\t\tList<Boolean> list = new ArrayList<Boolean>();\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tcountMax = Integer.parseInt(reader.readLine());\n\t\tfor(int i = 0; i < countMax; i++){\n\t\t\tdata = reader.readLine().split(\" \");\n\t\t\tfor(int j = 0; j < 3; j++) idata[j] = Integer.parseInt(data[j]);\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tfor(int k = 0; k < 3; k++){\n\t\t\t\t\tif(idata[j] < idata[k]){\n\t\t\t\t\t\tint tmp = idata[j];\n\t\t\t\t\t\tidata[j] = idata[k];\n\t\t\t\t\t\tidata[k] = tmp;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tlist.add(((idata[2] * idata[2]) == (idata[0] * idata[0] + idata[1] * idata[1])));\n\t\t}\n\t\t\n\t\tfor(Boolean bool : list)\tSystem.out.println(bool.booleanValue() ? \"YES\" : \"NO\");\n\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { int countMax; int[] idata = new int[3]; String[] data; List<Boolean> list = new ArrayList<Boolean>(); BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); countMax = Integer.parseInt(reader.readLine()); for(int i = 0; i < countMax; i++){ data = reader.readLine().split(" "); for(int j = 0; j < 3; j++) idata[j] = Integer.parseInt(data[j]); for(int j = 0; j < 3; j++){ for(int k = 0; k < 3; k++){ if(idata[j] < idata[k]){ int tmp = idata[j]; idata[j] = idata[k]; idata[k] = tmp; } } } list.add(((idata[2] * idata[2]) == (idata[0] * idata[0] + idata[1] * idata[1]))); } for(Boolean bool : list) System.out.println(bool.booleanValue() ? "YES" : "NO"); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 4, 18, 13, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 17, 2, 2, 4, 18, 13, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 104, 5 ], [ 104, 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 ], [ 8, 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 ], [ 40, 41 ], [ 41, 42 ], [ 37, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 37, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 56, 67 ], [ 67, 68 ], [ 67, 69 ], [ 55, 70 ], [ 54, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 72, 83 ], [ 83, 84 ], [ 83, 85 ], [ 71, 86 ], [ 53, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 53, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 6, 101 ], [ 101, 102 ], [ 0, 103 ], [ 103, 104 ], [ 103, 105 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint num;\n\t\tint a, b, c;\n\n\t\tnum = scanner.nextInt();\n\t\tfor (int i = 0; i < num; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\t\t\tif (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\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 scanner = new Scanner(System.in);\n\t\tint num;\n\t\tint a, b, c;\n\n\t\tnum = scanner.nextInt();\n\t\tfor (int i = 0; i < num; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\t\t\tif (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "Main", "public static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint num;\n\t\tint a, b, c;\n\n\t\tnum = scanner.nextInt();\n\t\tfor (int i = 0; i < num; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\t\t\tif (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "main", "{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint num;\n\t\tint a, b, c;\n\n\t\tnum = scanner.nextInt();\n\t\tfor (int i = 0; i < num; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\t\t\tif (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int num;", "num", "int a", "a", "b", "b", "c;", "c", "num = scanner.nextInt()", "num", "scanner.nextInt()", "scanner.nextInt", "scanner", "for (int i = 0; i < num; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\t\t\tif (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < num", "i", "num", "i++", "i++", "i", "{\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\t\t\tif (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "{\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\t\t\tif (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}", "a = scanner.nextInt()", "a", "scanner.nextInt()", "scanner.nextInt", "scanner", "b = scanner.nextInt()", "b", "scanner.nextInt()", "scanner.nextInt", "scanner", "c = scanner.nextInt()", "c", "scanner.nextInt()", "scanner.nextInt", "scanner", "if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0", "((Math.abs(a*a - b*b) - c*c) == 0)", "(Math.abs(a*a - b*b) - c*c)", "Math.abs(a*a - b*b)", "Math.abs", "Math", "a*a - b*b", "a*a", "a", "a", "b*b", "b", "b", "c*c", "c", "c", "0", "(Math.abs(a*a - c*c) - b*b) == 0", "(Math.abs(a*a - c*c) - b*b)", "Math.abs(a*a - c*c)", "Math.abs", "Math", "a*a - c*c", "a*a", "a", "a", "c*c", "c", "c", "b*b", "b", "b", "0", "{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String args[]", "args", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint num;\n\t\tint a, b, c;\n\n\t\tnum = scanner.nextInt();\n\t\tfor (int i = 0; i < num; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\t\t\tif (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint num;\n\t\tint a, b, c;\n\n\t\tnum = scanner.nextInt();\n\t\tfor (int i = 0; i < num; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\t\t\tif (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\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 scanner = new Scanner(System.in); int num; int a, b, c; num = scanner.nextInt(); for (int i = 0; i < num; i++){ a = scanner.nextInt(); b = scanner.nextInt(); c = scanner.nextInt(); if (((Math.abs(a*a - b*b) - c*c) == 0) || (Math.abs(a*a - c*c) - b*b) == 0) { System.out.println("YES"); } else { System.out.println("NO"); } } } }
[ 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, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 18, 13, 13, 4, 18, 13, 13, 14, 2, 2, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 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 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 125, 14 ], [ 125, 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 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 17, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 47, 52 ], [ 44, 53 ], [ 53, 54 ], [ 53, 55 ], [ 44, 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 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 77, 78 ], [ 77, 79 ], [ 44, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 44, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 87, 90 ], [ 90, 91 ], [ 90, 92 ], [ 87, 93 ], [ 86, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 97, 99 ], [ 94, 100 ], [ 85, 101 ], [ 101, 102 ], [ 102, 103 ], [ 101, 104 ], [ 104, 105 ], [ 104, 106 ], [ 101, 107 ], [ 84, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 84, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 17, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 15, 122 ], [ 122, 123 ], [ 0, 124 ], [ 124, 125 ], [ 124, 126 ] ]
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\tint a = Integer.parseInt(reader.readLine());\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString[] line = reader.readLine().split(\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tnums[j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t\tArrays.sort(nums);\n\t\t\tif (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n\t\t\t\t\tnums[2], 2))\n\t\t\t\tbuilder.append(\"YES\\n\");\n\t\t\telse\n\t\t\t\tbuilder.append(\"NO\\n\");\n\t\t}\n\t\tSystem.out.print(builder);\n\n\t}\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\tint a = Integer.parseInt(reader.readLine());\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString[] line = reader.readLine().split(\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tnums[j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t\tArrays.sort(nums);\n\t\t\tif (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n\t\t\t\t\tnums[2], 2))\n\t\t\t\tbuilder.append(\"YES\\n\");\n\t\t\telse\n\t\t\t\tbuilder.append(\"NO\\n\");\n\t\t}\n\t\tSystem.out.print(builder);\n\n\t}\n}", "Main", "public static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\tint a = Integer.parseInt(reader.readLine());\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString[] line = reader.readLine().split(\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tnums[j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t\tArrays.sort(nums);\n\t\t\tif (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n\t\t\t\t\tnums[2], 2))\n\t\t\t\tbuilder.append(\"YES\\n\");\n\t\t\telse\n\t\t\t\tbuilder.append(\"NO\\n\");\n\t\t}\n\t\tSystem.out.print(builder);\n\n\t}", "main", "{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\tint a = Integer.parseInt(reader.readLine());\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString[] line = reader.readLine().split(\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tnums[j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t\tArrays.sort(nums);\n\t\t\tif (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n\t\t\t\t\tnums[2], 2))\n\t\t\t\tbuilder.append(\"YES\\n\");\n\t\t\telse\n\t\t\t\tbuilder.append(\"NO\\n\");\n\t\t}\n\t\tSystem.out.print(builder);\n\n\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));", "reader", "new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))", "StringBuilder builder = new StringBuilder();", "builder", "new StringBuilder()", "int a = Integer.parseInt(reader.readLine());", "a", "Integer.parseInt(reader.readLine())", "Integer.parseInt", "Integer", "reader.readLine()", "reader.readLine", "reader", "for (int i = 0; i < a; i++) {\n\t\t\tString[] line = reader.readLine().split(\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tnums[j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t\tArrays.sort(nums);\n\t\t\tif (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n\t\t\t\t\tnums[2], 2))\n\t\t\t\tbuilder.append(\"YES\\n\");\n\t\t\telse\n\t\t\t\tbuilder.append(\"NO\\n\");\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < a", "i", "a", "i++", "i++", "i", "{\n\t\t\tString[] line = reader.readLine().split(\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tnums[j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t\tArrays.sort(nums);\n\t\t\tif (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n\t\t\t\t\tnums[2], 2))\n\t\t\t\tbuilder.append(\"YES\\n\");\n\t\t\telse\n\t\t\t\tbuilder.append(\"NO\\n\");\n\t\t}", "{\n\t\t\tString[] line = reader.readLine().split(\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tnums[j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t\tArrays.sort(nums);\n\t\t\tif (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n\t\t\t\t\tnums[2], 2))\n\t\t\t\tbuilder.append(\"YES\\n\");\n\t\t\telse\n\t\t\t\tbuilder.append(\"NO\\n\");\n\t\t}", "String[] line = reader.readLine().split(\" \");", "line", "reader.readLine().split(\" \")", "reader.readLine().split", "reader.readLine()", "reader.readLine", "reader", "\" \"", "int[] nums = new int[3];", "nums", "new int[3]", "3", "for (int j = 0; j < 3; j++) {\n\t\t\t\tnums[j] = Integer.parseInt(line[j]);\n\t\t\t}", "int j = 0;", "int j = 0;", "j", "0", "j < 3", "j", "3", "j++", "j++", "j", "{\n\t\t\t\tnums[j] = Integer.parseInt(line[j]);\n\t\t\t}", "{\n\t\t\t\tnums[j] = Integer.parseInt(line[j]);\n\t\t\t}", "nums[j] = Integer.parseInt(line[j])", "nums[j]", "nums", "j", "Integer.parseInt(line[j])", "Integer.parseInt", "Integer", "line[j]", "line", "j", "Arrays.sort(nums)", "Arrays.sort", "Arrays", "nums", "if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n\t\t\t\t\tnums[2], 2))\n\t\t\t\tbuilder.append(\"YES\\n\");\n\t\t\telse\n\t\t\t\tbuilder.append(\"NO\\n\");", "Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n\t\t\t\t\tnums[2], 2)", "Math.pow(nums[0], 2) + Math.pow(nums[1], 2)", "Math.pow(nums[0], 2)", "Math.pow", "Math", "nums[0]", "nums", "0", "2", "Math.pow(nums[1], 2)", "Math.pow", "Math", "nums[1]", "nums", "1", "2", "Math.pow(\n\t\t\t\t\tnums[2], 2)", "Math.pow", "Math", "nums[2]", "nums", "2", "2", "builder.append(\"YES\\n\")", "builder.append", "builder", "\"YES\\n\"", "builder.append(\"NO\\n\")", "builder.append", "builder", "\"NO\\n\"", "System.out.print(builder)", "System.out.print", "System.out", "System", "System.out", "builder", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\tint a = Integer.parseInt(reader.readLine());\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString[] line = reader.readLine().split(\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tnums[j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t\tArrays.sort(nums);\n\t\t\tif (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n\t\t\t\t\tnums[2], 2))\n\t\t\t\tbuilder.append(\"YES\\n\");\n\t\t\telse\n\t\t\t\tbuilder.append(\"NO\\n\");\n\t\t}\n\t\tSystem.out.print(builder);\n\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException,\n\t\t\tIOException {\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\tStringBuilder builder = new StringBuilder();\n\t\tint a = Integer.parseInt(reader.readLine());\n\t\tfor (int i = 0; i < a; i++) {\n\t\t\tString[] line = reader.readLine().split(\" \");\n\t\t\tint[] nums = new int[3];\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tnums[j] = Integer.parseInt(line[j]);\n\t\t\t}\n\t\t\tArrays.sort(nums);\n\t\t\tif (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n\t\t\t\t\tnums[2], 2))\n\t\t\t\tbuilder.append(\"YES\\n\");\n\t\t\telse\n\t\t\t\tbuilder.append(\"NO\\n\");\n\t\t}\n\t\tSystem.out.print(builder);\n\n\t}\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader reader = new BufferedReader(new InputStreamReader( System.in)); StringBuilder builder = new StringBuilder(); int a = Integer.parseInt(reader.readLine()); for (int i = 0; i < a; i++) { String[] line = reader.readLine().split(" "); int[] nums = new int[3]; for (int j = 0; j < 3; j++) { nums[j] = Integer.parseInt(line[j]); } Arrays.sort(nums); if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow( nums[2], 2)) builder.append("YES\n"); else builder.append("NO\n"); } System.out.print(builder); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 13, 14, 2, 4, 18, 13, 18, 13, 17, 17, 2, 4, 18, 13, 18, 13, 17, 17, 4, 18, 13, 18, 13, 17, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 14, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 39, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 39, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 39, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 70, 72 ], [ 67, 73 ], [ 66, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 75, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 85, 87 ], [ 82, 88 ], [ 65, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 65, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 12, 101 ], [ 101, 102 ] ]
[ "import java.lang.Math.*;\nimport java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main{\n public static void main(String[] args){\n\tfinal Scanner sc = new Scanner(System.in);\n\tint n=sc.nextInt();\n\tint[] a=new int[3]; \n\tfor(int i=0;i<n;i++){\n\t a[0]=sc.nextInt();\n\t a[1]=sc.nextInt();\n\t a[2]=sc.nextInt();\n\t Arrays.sort(a);\t \n\t if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}\n }\n}", "import java.lang.Math.*;", "Math.*", "java.lang", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "class Main{\n public static void main(String[] args){\n\tfinal Scanner sc = new Scanner(System.in);\n\tint n=sc.nextInt();\n\tint[] a=new int[3]; \n\tfor(int i=0;i<n;i++){\n\t a[0]=sc.nextInt();\n\t a[1]=sc.nextInt();\n\t a[2]=sc.nextInt();\n\t Arrays.sort(a);\t \n\t if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}\n }\n}", "Main", "public static void main(String[] args){\n\tfinal Scanner sc = new Scanner(System.in);\n\tint n=sc.nextInt();\n\tint[] a=new int[3]; \n\tfor(int i=0;i<n;i++){\n\t a[0]=sc.nextInt();\n\t a[1]=sc.nextInt();\n\t a[2]=sc.nextInt();\n\t Arrays.sort(a);\t \n\t if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}\n }", "main", "{\n\tfinal Scanner sc = new Scanner(System.in);\n\tint n=sc.nextInt();\n\tint[] a=new int[3]; \n\tfor(int i=0;i<n;i++){\n\t a[0]=sc.nextInt();\n\t a[1]=sc.nextInt();\n\t a[2]=sc.nextInt();\n\t Arrays.sort(a);\t \n\t if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}\n }", "final Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int[] a=new int[3];", "a", "new int[3]", "3", "for(int i=0;i<n;i++){\n\t a[0]=sc.nextInt();\n\t a[1]=sc.nextInt();\n\t a[2]=sc.nextInt();\n\t Arrays.sort(a);\t \n\t if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t a[0]=sc.nextInt();\n\t a[1]=sc.nextInt();\n\t a[2]=sc.nextInt();\n\t Arrays.sort(a);\t \n\t if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}", "{\n\t a[0]=sc.nextInt();\n\t a[1]=sc.nextInt();\n\t a[2]=sc.nextInt();\n\t Arrays.sort(a);\t \n\t if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}", "a[0]=sc.nextInt()", "a[0]", "a", "0", "sc.nextInt()", "sc.nextInt", "sc", "a[1]=sc.nextInt()", "a[1]", "a", "1", "sc.nextInt()", "sc.nextInt", "sc", "a[2]=sc.nextInt()", "a[2]", "a", "2", "sc.nextInt()", "sc.nextInt", "sc", "Arrays.sort(a)", "Arrays.sort", "Arrays", "a", "if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println(\"YES\");\n\t else System.out.println(\"NO\");", "Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)", "Math.pow(a[2],2)", "Math.pow", "Math", "a[2]", "a", "2", "2", "Math.pow(a[0],2)+Math.pow(a[1],2)", "Math.pow(a[0],2)", "Math.pow", "Math", "a[0]", "a", "0", "2", "Math.pow(a[1],2)", "Math.pow", "Math", "a[1]", "a", "1", "2", "System.out.println(\"YES\")", "System.out.println", "System.out", "System", "System.out", "\"YES\"", "System.out.println(\"NO\")", "System.out.println", "System.out", "System", "System.out", "\"NO\"", "String[] args", "args" ]
import java.lang.Math.*; import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] args){ final Scanner sc = new Scanner(System.in); int n=sc.nextInt(); int[] a=new int[3]; for(int i=0;i<n;i++){ a[0]=sc.nextInt(); a[1]=sc.nextInt(); a[2]=sc.nextInt(); Arrays.sort(a); if(Math.pow(a[2],2)==Math.pow(a[0],2)+Math.pow(a[1],2)) System.out.println("YES"); else System.out.println("NO"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 23, 13, 12, 13, 30, 41, 13, 20, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 2, 2, 4, 13, 13, 13, 17, 4, 13, 13, 13, 12, 13, 30, 41, 13, 13, 41, 13, 13, 42, 17, 30, 14, 2, 13, 13, 30, 3, 42, 2, 13, 13, 30, 0, 13, 13, 42, 2, 13, 13, 30, 0, 13, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 0, 13, 13, 0, 13, 13, 0, 13, 13, 41, 13, 42, 2, 13, 17, 30, 0, 13, 13, 0, 13, 2, 13, 13, 0, 13, 13, 0, 13, 13, 29, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 136, 5 ], [ 136, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 6, 11 ], [ 11, 12 ], [ 136, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 15, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 19, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 41, 44 ], [ 40, 45 ], [ 40, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 136, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 52, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 61, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 68, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 61, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 52, 84 ], [ 84, 85 ], [ 50, 86 ], [ 86, 87 ], [ 50, 88 ], [ 88, 89 ], [ 136, 90 ], [ 90, 91 ], [ 90, 92 ], [ 92, 93 ], [ 93, 94 ], [ 92, 95 ], [ 95, 96 ], [ 92, 97 ], [ 97, 98 ], [ 92, 99 ], [ 99, 100 ], [ 99, 101 ], [ 92, 102 ], [ 102, 103 ], [ 102, 104 ], [ 92, 105 ], [ 105, 106 ], [ 105, 107 ], [ 92, 108 ], [ 108, 109 ], [ 92, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 110, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 120, 122 ], [ 114, 123 ], [ 123, 124 ], [ 123, 125 ], [ 114, 126 ], [ 126, 127 ], [ 126, 128 ], [ 92, 129 ], [ 129, 130 ], [ 90, 131 ], [ 131, 132 ], [ 90, 133 ], [ 133, 134 ], [ 0, 135 ], [ 135, 136 ], [ 135, 137 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tdoIt();\n\n\t}\n\tpublic static void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tSystem.out.println(getLCM(a, b) + \" \" + getGCD(a, b));\n\t\t}\n//\t\tSystem.out.println(getGCD(8, 6));;\n//\t\tSystem.out.println(getGCD(50000000, 30000000));;\n//\t\tSystem.out.println(getGCD(3, 1));;\n\t}\n\t\n\t//a >= b\n\tpublic static long getGCD(long a, long b){\n\t\tlong ta = a, tb = b;\n\t\twhile(true){\n\t\t\tif(ta == tb){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile(ta > tb){\n\t\t\t\ttb += b;\n\t\t\t}\n\t\t\twhile(tb > ta){\n\t\t\t\tta += a;\n\t\t\t}\n\t\t\t//System.out.println(\"ta = \" + ta + \", tb = \" + tb);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn ta;\n\t}\n\t\n\t//a >= b\n\tpublic static long getLCM(long a, long b){\n\t\tlong p, q, r;\n\t\tp = a;\n\t\tq = b;\n\t\tr = b;\n\t\tlong tmp;\n\t\tdo{\n\t\t\ttmp = r;\n\t\t\tr = p % q;\n\t\t\tp = q;\n\t\t\tq = r;\n\t\t\t\n\t\t}while(r != 0);\n\t\t\n\t\treturn tmp;\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tdoIt();\n\n\t}\n\tpublic static void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tSystem.out.println(getLCM(a, b) + \" \" + getGCD(a, b));\n\t\t}\n//\t\tSystem.out.println(getGCD(8, 6));;\n//\t\tSystem.out.println(getGCD(50000000, 30000000));;\n//\t\tSystem.out.println(getGCD(3, 1));;\n\t}\n\t\n\t//a >= b\n\tpublic static long getGCD(long a, long b){\n\t\tlong ta = a, tb = b;\n\t\twhile(true){\n\t\t\tif(ta == tb){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile(ta > tb){\n\t\t\t\ttb += b;\n\t\t\t}\n\t\t\twhile(tb > ta){\n\t\t\t\tta += a;\n\t\t\t}\n\t\t\t//System.out.println(\"ta = \" + ta + \", tb = \" + tb);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn ta;\n\t}\n\t\n\t//a >= b\n\tpublic static long getLCM(long a, long b){\n\t\tlong p, q, r;\n\t\tp = a;\n\t\tq = b;\n\t\tr = b;\n\t\tlong tmp;\n\t\tdo{\n\t\t\ttmp = r;\n\t\t\tr = p % q;\n\t\t\tp = q;\n\t\t\tq = r;\n\t\t\t\n\t\t}while(r != 0);\n\t\t\n\t\treturn tmp;\n\t}\n\n}", "Main", "/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tdoIt();\n\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tdoIt();\n\n\t}", "doIt()", "doIt", "String[] args", "args", "public static void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tSystem.out.println(getLCM(a, b) + \" \" + getGCD(a, b));\n\t\t}\n//\t\tSystem.out.println(getGCD(8, 6));;\n//\t\tSystem.out.println(getGCD(50000000, 30000000));;\n//\t\tSystem.out.println(getGCD(3, 1));;\n\t}", "doIt", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tSystem.out.println(getLCM(a, b) + \" \" + getGCD(a, b));\n\t\t}\n//\t\tSystem.out.println(getGCD(8, 6));;\n//\t\tSystem.out.println(getGCD(50000000, 30000000));;\n//\t\tSystem.out.println(getGCD(3, 1));;\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "while(sc.hasNext()){\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tSystem.out.println(getLCM(a, b) + \" \" + getGCD(a, b));\n\t\t}", "sc.hasNext()", "sc.hasNext", "sc", "{\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tSystem.out.println(getLCM(a, b) + \" \" + getGCD(a, b));\n\t\t}", "long a = sc.nextLong();", "a", "sc.nextLong()", "sc.nextLong", "sc", "long b = sc.nextLong();", "b", "sc.nextLong()", "sc.nextLong", "sc", "System.out.println(getLCM(a, b) + \" \" + getGCD(a, b))", "System.out.println", "System.out", "System", "System.out", "getLCM(a, b) + \" \" + getGCD(a, b)", "getLCM(a, b) + \" \" + getGCD(a, b)", "getLCM(a, b)", "getLCM", "a", "b", "\" \"", "getGCD(a, b)", "getGCD", "a", "b", "//a >= b\n\tpublic static long getGCD(long a, long b){\n\t\tlong ta = a, tb = b;\n\t\twhile(true){\n\t\t\tif(ta == tb){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile(ta > tb){\n\t\t\t\ttb += b;\n\t\t\t}\n\t\t\twhile(tb > ta){\n\t\t\t\tta += a;\n\t\t\t}\n\t\t\t//System.out.println(\"ta = \" + ta + \", tb = \" + tb);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn ta;\n\t}", "getGCD", "{\n\t\tlong ta = a, tb = b;\n\t\twhile(true){\n\t\t\tif(ta == tb){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile(ta > tb){\n\t\t\t\ttb += b;\n\t\t\t}\n\t\t\twhile(tb > ta){\n\t\t\t\tta += a;\n\t\t\t}\n\t\t\t//System.out.println(\"ta = \" + ta + \", tb = \" + tb);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn ta;\n\t}", "long ta = a", "ta", "a", "tb = b;", "tb", "b", "while(true){\n\t\t\tif(ta == tb){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile(ta > tb){\n\t\t\t\ttb += b;\n\t\t\t}\n\t\t\twhile(tb > ta){\n\t\t\t\tta += a;\n\t\t\t}\n\t\t\t//System.out.println(\"ta = \" + ta + \", tb = \" + tb);\n\t\t\t\n\t\t}", "true", "{\n\t\t\tif(ta == tb){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile(ta > tb){\n\t\t\t\ttb += b;\n\t\t\t}\n\t\t\twhile(tb > ta){\n\t\t\t\tta += a;\n\t\t\t}\n\t\t\t//System.out.println(\"ta = \" + ta + \", tb = \" + tb);\n\t\t\t\n\t\t}", "if(ta == tb){\n\t\t\t\tbreak;\n\t\t\t}", "ta == tb", "ta", "tb", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "while(ta > tb){\n\t\t\t\ttb += b;\n\t\t\t}", "ta > tb", "ta", "tb", "{\n\t\t\t\ttb += b;\n\t\t\t}", "tb += b", "tb", "b", "while(tb > ta){\n\t\t\t\tta += a;\n\t\t\t}", "tb > ta", "tb", "ta", "{\n\t\t\t\tta += a;\n\t\t\t}", "ta += a", "ta", "a", "return ta;", "ta", "long a", "a", "long b", "b", "//a >= b\n\tpublic static long getLCM(long a, long b){\n\t\tlong p, q, r;\n\t\tp = a;\n\t\tq = b;\n\t\tr = b;\n\t\tlong tmp;\n\t\tdo{\n\t\t\ttmp = r;\n\t\t\tr = p % q;\n\t\t\tp = q;\n\t\t\tq = r;\n\t\t\t\n\t\t}while(r != 0);\n\t\t\n\t\treturn tmp;\n\t}", "getLCM", "{\n\t\tlong p, q, r;\n\t\tp = a;\n\t\tq = b;\n\t\tr = b;\n\t\tlong tmp;\n\t\tdo{\n\t\t\ttmp = r;\n\t\t\tr = p % q;\n\t\t\tp = q;\n\t\t\tq = r;\n\t\t\t\n\t\t}while(r != 0);\n\t\t\n\t\treturn tmp;\n\t}", "long p", "p", "q", "q", "r;", "r", "p = a", "p", "a", "q = b", "q", "b", "r = b", "r", "b", "long tmp;", "tmp", "do{\n\t\t\ttmp = r;\n\t\t\tr = p % q;\n\t\t\tp = q;\n\t\t\tq = r;\n\t\t\t\n\t\t}while(r != 0);", "r != 0", "r", "0", "{\n\t\t\ttmp = r;\n\t\t\tr = p % q;\n\t\t\tp = q;\n\t\t\tq = r;\n\t\t\t\n\t\t}", "tmp = r", "tmp", "r", "r = p % q", "r", "p % q", "p", "q", "p = q", "p", "q", "q = r", "q", "r", "return tmp;", "tmp", "long a", "a", "long b", "b", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tdoIt();\n\n\t}\n\tpublic static void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tSystem.out.println(getLCM(a, b) + \" \" + getGCD(a, b));\n\t\t}\n//\t\tSystem.out.println(getGCD(8, 6));;\n//\t\tSystem.out.println(getGCD(50000000, 30000000));;\n//\t\tSystem.out.println(getGCD(3, 1));;\n\t}\n\t\n\t//a >= b\n\tpublic static long getGCD(long a, long b){\n\t\tlong ta = a, tb = b;\n\t\twhile(true){\n\t\t\tif(ta == tb){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile(ta > tb){\n\t\t\t\ttb += b;\n\t\t\t}\n\t\t\twhile(tb > ta){\n\t\t\t\tta += a;\n\t\t\t}\n\t\t\t//System.out.println(\"ta = \" + ta + \", tb = \" + tb);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn ta;\n\t}\n\t\n\t//a >= b\n\tpublic static long getLCM(long a, long b){\n\t\tlong p, q, r;\n\t\tp = a;\n\t\tq = b;\n\t\tr = b;\n\t\tlong tmp;\n\t\tdo{\n\t\t\ttmp = r;\n\t\t\tr = p % q;\n\t\t\tp = q;\n\t\t\tq = r;\n\t\t\t\n\t\t}while(r != 0);\n\t\t\n\t\treturn tmp;\n\t}\n\n}", "public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tdoIt();\n\n\t}\n\tpublic static void doIt(){\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile(sc.hasNext()){\n\t\t\tlong a = sc.nextLong();\n\t\t\tlong b = sc.nextLong();\n\t\t\tSystem.out.println(getLCM(a, b) + \" \" + getGCD(a, b));\n\t\t}\n//\t\tSystem.out.println(getGCD(8, 6));;\n//\t\tSystem.out.println(getGCD(50000000, 30000000));;\n//\t\tSystem.out.println(getGCD(3, 1));;\n\t}\n\t\n\t//a >= b\n\tpublic static long getGCD(long a, long b){\n\t\tlong ta = a, tb = b;\n\t\twhile(true){\n\t\t\tif(ta == tb){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\twhile(ta > tb){\n\t\t\t\ttb += b;\n\t\t\t}\n\t\t\twhile(tb > ta){\n\t\t\t\tta += a;\n\t\t\t}\n\t\t\t//System.out.println(\"ta = \" + ta + \", tb = \" + tb);\n\t\t\t\n\t\t}\n\t\t\n\t\treturn ta;\n\t}\n\t\n\t//a >= b\n\tpublic static long getLCM(long a, long b){\n\t\tlong p, q, r;\n\t\tp = a;\n\t\tq = b;\n\t\tr = b;\n\t\tlong tmp;\n\t\tdo{\n\t\t\ttmp = r;\n\t\t\tr = p % q;\n\t\t\tp = q;\n\t\t\tq = r;\n\t\t\t\n\t\t}while(r != 0);\n\t\t\n\t\treturn tmp;\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { /** * @param args */ public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ doIt(); } public static void doIt(){ Scanner sc = new Scanner(System.in); while(sc.hasNext()){ long a = sc.nextLong(); long b = sc.nextLong(); System.out.println(getLCM(a, b) + " " + getGCD(a, b)); } // System.out.println(getGCD(8, 6));; // System.out.println(getGCD(50000000, 30000000));; // System.out.println(getGCD(3, 1));; } //a >= b public static long getGCD(long a, long b){ long ta = a, tb = b; while(true){ if(ta == tb){ break; } while(ta > tb){ tb += b; } while(tb > ta){ ta += a; } //System.out.println("ta = " + ta + ", tb = " + tb); } return ta; } //a >= b public static long getLCM(long a, long b){ long p, q, r; p = a; q = b; r = b; long tmp; do{ tmp = r; r = p % q; p = q; q = r; }while(r != 0); return tmp; } }