node_ids
sequencelengths 4
1.4k
| edge_index
sequencelengths 1
2.22k
| text
sequencelengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
0,
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,
41,
13,
41,
13,
0,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
0,
13,
2,
2,
2,
2,
13,
13,
13,
13,
13,
4,
18,
18,
13,
13,
8,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
17,
17,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
113,
5
],
[
113,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
6,
12
],
[
12,
13
],
[
113,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
16,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
16,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
27,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
32,
37
],
[
37,
38
],
[
32,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
32,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
32,
54
],
[
54,
55
],
[
32,
56
],
[
56,
57
],
[
32,
58
],
[
58,
59
],
[
32,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
66,
70
],
[
32,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
32,
82
],
[
82,
83
],
[
82,
84
],
[
85,
85
],
[
85,
86
],
[
87,
87
],
[
87,
88
],
[
87,
89
],
[
87,
90
],
[
85,
91
],
[
85,
92
],
[
32,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
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
],
[
98,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
] | [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in); \n\t\tint n;\n\t\tn = sc.nextInt();\n\t\twhile(n-->0){\n\t\t\tint x,y,z;\n\t\t\tx = sc.nextInt();\n\t\t\ty = sc.nextInt();\n\t\t\tz = sc.nextInt();\n\t\t\t\n\t\t\tint a,b,c;\n\t\t\ta = Math.min(x,Math.min(y,z));\n\t\t\tc = Math.max(x,Math.max(y,z));\n\t\t\tb = x+y+z-a-c;\n\t\t\t\n\t\t\tSystem.out.println(a*a+b*b==c*c?\"YES\":\"NO\");\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in); \n\t\tint n;\n\t\tn = sc.nextInt();\n\t\twhile(n-->0){\n\t\t\tint x,y,z;\n\t\t\tx = sc.nextInt();\n\t\t\ty = sc.nextInt();\n\t\t\tz = sc.nextInt();\n\t\t\t\n\t\t\tint a,b,c;\n\t\t\ta = Math.min(x,Math.min(y,z));\n\t\t\tc = Math.max(x,Math.max(y,z));\n\t\t\tb = x+y+z-a-c;\n\t\t\t\n\t\t\tSystem.out.println(a*a+b*b==c*c?\"YES\":\"NO\");\n\t\t}\n\t}\n}",
"Main",
"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 void run() {\n\t\tScanner sc = new Scanner(System.in); \n\t\tint n;\n\t\tn = sc.nextInt();\n\t\twhile(n-->0){\n\t\t\tint x,y,z;\n\t\t\tx = sc.nextInt();\n\t\t\ty = sc.nextInt();\n\t\t\tz = sc.nextInt();\n\t\t\t\n\t\t\tint a,b,c;\n\t\t\ta = Math.min(x,Math.min(y,z));\n\t\t\tc = Math.max(x,Math.max(y,z));\n\t\t\tb = x+y+z-a-c;\n\t\t\t\n\t\t\tSystem.out.println(a*a+b*b==c*c?\"YES\":\"NO\");\n\t\t}\n\t}",
"run",
"{\n\t\tScanner sc = new Scanner(System.in); \n\t\tint n;\n\t\tn = sc.nextInt();\n\t\twhile(n-->0){\n\t\t\tint x,y,z;\n\t\t\tx = sc.nextInt();\n\t\t\ty = sc.nextInt();\n\t\t\tz = sc.nextInt();\n\t\t\t\n\t\t\tint a,b,c;\n\t\t\ta = Math.min(x,Math.min(y,z));\n\t\t\tc = Math.max(x,Math.max(y,z));\n\t\t\tb = x+y+z-a-c;\n\t\t\t\n\t\t\tSystem.out.println(a*a+b*b==c*c?\"YES\":\"NO\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n;",
"n",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(n-->0){\n\t\t\tint x,y,z;\n\t\t\tx = sc.nextInt();\n\t\t\ty = sc.nextInt();\n\t\t\tz = sc.nextInt();\n\t\t\t\n\t\t\tint a,b,c;\n\t\t\ta = Math.min(x,Math.min(y,z));\n\t\t\tc = Math.max(x,Math.max(y,z));\n\t\t\tb = x+y+z-a-c;\n\t\t\t\n\t\t\tSystem.out.println(a*a+b*b==c*c?\"YES\":\"NO\");\n\t\t}",
"n-->0",
"n--",
"n",
"0",
"{\n\t\t\tint x,y,z;\n\t\t\tx = sc.nextInt();\n\t\t\ty = sc.nextInt();\n\t\t\tz = sc.nextInt();\n\t\t\t\n\t\t\tint a,b,c;\n\t\t\ta = Math.min(x,Math.min(y,z));\n\t\t\tc = Math.max(x,Math.max(y,z));\n\t\t\tb = x+y+z-a-c;\n\t\t\t\n\t\t\tSystem.out.println(a*a+b*b==c*c?\"YES\":\"NO\");\n\t\t}",
"int x",
"x",
"y",
"y",
"z;",
"z",
"x = sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"y = sc.nextInt()",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"z = sc.nextInt()",
"z",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a",
"a",
"b",
"b",
"c;",
"c",
"a = Math.min(x,Math.min(y,z))",
"a",
"Math.min(x,Math.min(y,z))",
"Math.min",
"Math",
"x",
"Math.min(y,z)",
"Math.min",
"Math",
"y",
"z",
"c = Math.max(x,Math.max(y,z))",
"c",
"Math.max(x,Math.max(y,z))",
"Math.max",
"Math",
"x",
"Math.max(y,z)",
"Math.max",
"Math",
"y",
"z",
"b = x+y+z-a-c",
"b",
"x+y+z-a-c",
"x+y+z-a-c",
"x+y+z",
"x+y+z",
"x",
"y",
"z",
"a",
"c",
"System.out.println(a*a+b*b==c*c?\"YES\":\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"a*a+b*b==c*c?\"YES\":\"NO\"",
"a*a+b*b==c*c",
"a*a+b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"\"YES\"",
"\"NO\"",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in); \n\t\tint n;\n\t\tn = sc.nextInt();\n\t\twhile(n-->0){\n\t\t\tint x,y,z;\n\t\t\tx = sc.nextInt();\n\t\t\ty = sc.nextInt();\n\t\t\tz = sc.nextInt();\n\t\t\t\n\t\t\tint a,b,c;\n\t\t\ta = Math.min(x,Math.min(y,z));\n\t\t\tc = Math.max(x,Math.max(y,z));\n\t\t\tb = x+y+z-a-c;\n\t\t\t\n\t\t\tSystem.out.println(a*a+b*b==c*c?\"YES\":\"NO\");\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in); \n\t\tint n;\n\t\tn = sc.nextInt();\n\t\twhile(n-->0){\n\t\t\tint x,y,z;\n\t\t\tx = sc.nextInt();\n\t\t\ty = sc.nextInt();\n\t\t\tz = sc.nextInt();\n\t\t\t\n\t\t\tint a,b,c;\n\t\t\ta = Math.min(x,Math.min(y,z));\n\t\t\tc = Math.max(x,Math.max(y,z));\n\t\t\tb = x+y+z-a-c;\n\t\t\t\n\t\t\tSystem.out.println(a*a+b*b==c*c?\"YES\":\"NO\");\n\t\t}\n\t}\n}",
"Main"
] | import java.util.*;
public class Main{
public static void main(String[] args) {
new Main().run();
}
public void run() {
Scanner sc = new Scanner(System.in);
int n;
n = sc.nextInt();
while(n-->0){
int x,y,z;
x = sc.nextInt();
y = sc.nextInt();
z = sc.nextInt();
int a,b,c;
a = Math.min(x,Math.min(y,z));
c = Math.max(x,Math.max(y,z));
b = x+y+z-a-c;
System.out.println(a*a+b*b==c*c?"YES":"NO");
}
}
} |
[
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,
5,
13,
30,
4,
18,
13,
30,
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,
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,
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
],
[
133,
11
],
[
133,
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
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
18,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
31,
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
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
52,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
52,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
52,
100
],
[
100,
101
],
[
102,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
102,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
100,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
100,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
12,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tString[] values = in.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\tint c = Integer.parseInt(values[2]);\n\n\t\t\t\tint x = a * a;\n\t\t\t\tint y = b * b;\n\t\t\t\tint z = c * c;\n\t\t\t\tif (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tString[] values = in.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\tint c = Integer.parseInt(values[2]);\n\n\t\t\t\tint x = a * a;\n\t\t\t\tint y = b * b;\n\t\t\t\tint z = c * c;\n\t\t\t\tif (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tString[] values = in.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\tint c = Integer.parseInt(values[2]);\n\n\t\t\t\tint x = a * a;\n\t\t\t\tint y = b * b;\n\t\t\t\tint z = c * c;\n\t\t\t\tif (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tString[] values = in.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\tint c = Integer.parseInt(values[2]);\n\n\t\t\t\tint x = a * a;\n\t\t\t\tint y = b * b;\n\t\t\t\tint z = c * c;\n\t\t\t\tif (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tString[] values = in.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\tint c = Integer.parseInt(values[2]);\n\n\t\t\t\tint x = a * a;\n\t\t\t\tint y = b * b;\n\t\t\t\tint z = c * c;\n\t\t\t\tif (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"NumberFormatException e",
"{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tString[] values = in.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\tint c = Integer.parseInt(values[2]);\n\n\t\t\t\tint x = a * a;\n\t\t\t\tint y = b * b;\n\t\t\t\tint z = c * c;\n\t\t\t\tif (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"int lim = Integer.parseInt(in.readLine());",
"lim",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"for (int i = 0; i < lim; i++) {\n\t\t\t\tString[] values = in.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\tint c = Integer.parseInt(values[2]);\n\n\t\t\t\tint x = a * a;\n\t\t\t\tint y = b * b;\n\t\t\t\tint z = c * c;\n\t\t\t\tif (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < lim",
"i",
"lim",
"i++",
"i++",
"i",
"{\n\t\t\t\tString[] values = in.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\tint c = Integer.parseInt(values[2]);\n\n\t\t\t\tint x = a * a;\n\t\t\t\tint y = b * b;\n\t\t\t\tint z = c * c;\n\t\t\t\tif (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}",
"{\n\t\t\t\tString[] values = in.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\tint c = Integer.parseInt(values[2]);\n\n\t\t\t\tint x = a * a;\n\t\t\t\tint y = b * b;\n\t\t\t\tint z = c * c;\n\t\t\t\tif (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}",
"String[] values = in.readLine().split(\" \");",
"values",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int a = Integer.parseInt(values[0]);",
"a",
"Integer.parseInt(values[0])",
"Integer.parseInt",
"Integer",
"values[0]",
"values",
"0",
"int b = Integer.parseInt(values[1]);",
"b",
"Integer.parseInt(values[1])",
"Integer.parseInt",
"Integer",
"values[1]",
"values",
"1",
"int c = Integer.parseInt(values[2]);",
"c",
"Integer.parseInt(values[2])",
"Integer.parseInt",
"Integer",
"values[2]",
"values",
"2",
"int x = a * a;",
"x",
"a * a",
"a",
"a",
"int y = b * b;",
"y",
"b * b",
"b",
"b",
"int z = c * c;",
"z",
"c * c",
"c",
"c",
"if (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");",
"((x + y) == z) || ((y + z) == x) || ((z + x) == y)",
"((x + y) == z) || ((y + z) == x) || ((z + x) == y)",
"((x + y) == z)",
"(x + y)",
"x",
"y",
"z",
"((y + z) == x)",
"(y + z)",
"y",
"z",
"x",
"((z + x) == y)",
"(z + x)",
"z",
"x",
"y",
"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\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tString[] values = in.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\tint c = Integer.parseInt(values[2]);\n\n\t\t\t\tint x = a * a;\n\t\t\t\tint y = b * b;\n\t\t\t\tint z = c * c;\n\t\t\t\tif (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t\t\n\t\t\tfor (int i = 0; i < lim; i++) {\n\t\t\t\tString[] values = in.readLine().split(\" \");\n\t\t\t\tint a = Integer.parseInt(values[0]);\n\t\t\t\tint b = Integer.parseInt(values[1]);\n\t\t\t\tint c = Integer.parseInt(values[2]);\n\n\t\t\t\tint x = a * a;\n\t\t\t\tint y = b * b;\n\t\t\t\tint z = c * c;\n\t\t\t\tif (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
try {
int lim = Integer.parseInt(in.readLine());
for (int i = 0; i < lim; i++) {
String[] values = in.readLine().split(" ");
int a = Integer.parseInt(values[0]);
int b = Integer.parseInt(values[1]);
int c = Integer.parseInt(values[2]);
int x = a * a;
int y = b * b;
int z = c * c;
if (((x + y) == z) || ((y + z) == x) || ((z + x) == y)) System.out.println("YES");
else System.out.println("NO");
}
} catch (NumberFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
11,
1,
0,
13,
4,
18,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
39,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
18,
13,
13,
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,
29,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
81,
2
],
[
81,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
5,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
22,
23
],
[
11,
24
],
[
25,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
28,
35
],
[
35,
36
],
[
36,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
38,
45
],
[
25,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
52,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
51,
75
],
[
51,
76
],
[
5,
77
],
[
3,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"public class\nMain\n{\n public static void\n main (\n String[ ] args\n )\n {\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n int n;\n\n for ( n = cin.nextInt ( ); n != 0; --n )\n {\n int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };\n\n java.util.Arrays.sort ( a );\n System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]\n ? \"YES\" : \"NO\" );\n }\n\n return ;\n }\n}",
"Main\n{\n public static void\n main (\n String[ ] args\n )\n {\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n int n;\n\n for ( n = cin.nextInt ( ); n != 0; --n )\n {\n int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };\n\n java.util.Arrays.sort ( a );\n System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]\n ? \"YES\" : \"NO\" );\n }\n\n return ;\n }\n}",
"Main",
"public static void\n main (\n String[ ] args\n )\n {\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n int n;\n\n for ( n = cin.nextInt ( ); n != 0; --n )\n {\n int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };\n\n java.util.Arrays.sort ( a );\n System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]\n ? \"YES\" : \"NO\" );\n }\n\n return ;\n }",
"main",
"{\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n int n;\n\n for ( n = cin.nextInt ( ); n != 0; --n )\n {\n int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };\n\n java.util.Arrays.sort ( a );\n System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]\n ? \"YES\" : \"NO\" );\n }\n\n return ;\n }",
"java.util.Scanner cin = new java.util.Scanner ( System.in );",
"cin",
"new java.util.Scanner ( System.in )",
"int n;",
"n",
"for ( n = cin.nextInt ( ); n != 0; --n )\n {\n int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };\n\n java.util.Arrays.sort ( a );\n System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]\n ? \"YES\" : \"NO\" );\n }",
"n = cin.nextInt ( );",
"n = cin.nextInt ( )",
"n",
"cin.nextInt ( )",
"cin.nextInt",
"cin",
"n != 0",
"n",
"0",
"--n",
"--n",
"n",
"{\n int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };\n\n java.util.Arrays.sort ( a );\n System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]\n ? \"YES\" : \"NO\" );\n }",
"{\n int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };\n\n java.util.Arrays.sort ( a );\n System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]\n ? \"YES\" : \"NO\" );\n }",
"int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };",
"a",
"{ cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) }",
"cin.nextInt ( )",
"cin.nextInt",
"cin",
"cin.nextInt ( )",
"cin.nextInt",
"cin",
"cin.nextInt ( )",
"cin.nextInt",
"cin",
"java.util.Arrays.sort ( a )",
"java.util.Arrays.sort",
"java.util.Arrays",
"java.util",
"java",
"java.util",
"java.util.Arrays",
"a",
"System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]\n ? \"YES\" : \"NO\" )",
"System.out.println",
"System.out",
"System",
"System.out",
"a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]\n ? \"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\"",
"return ;",
"String[ ] args",
"args",
"Main\n{\n public static void\n main (\n String[ ] args\n )\n {\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n int n;\n\n for ( n = cin.nextInt ( ); n != 0; --n )\n {\n int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };\n\n java.util.Arrays.sort ( a );\n System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]\n ? \"YES\" : \"NO\" );\n }\n\n return ;\n }\n}",
"Main\n{\n public static void\n main (\n String[ ] args\n )\n {\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n int n;\n\n for ( n = cin.nextInt ( ); n != 0; --n )\n {\n int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };\n\n java.util.Arrays.sort ( a );\n System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]\n ? \"YES\" : \"NO\" );\n }\n\n return ;\n }\n}",
"Main"
] | public class
Main
{
public static void
main (
String[ ] args
)
{
java.util.Scanner cin = new java.util.Scanner ( System.in );
int n;
for ( n = cin.nextInt ( ); n != 0; --n )
{
int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };
java.util.Arrays.sort ( a );
System.out.println ( a[ 0 ] * a[ 0 ] + a[ 1 ] * a[ 1 ] == a[ 2 ] * a[ 2 ]
? "YES" : "NO" );
}
return ;
}
} |
[
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,
14,
2,
2,
13,
17,
2,
13,
17,
30,
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,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
41,
13,
20,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
4,
18,
13,
17,
17,
14,
2,
2,
13,
13,
13,
30,
4,
18,
13,
17,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
179,
11
],
[
179,
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
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
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
],
[
68,
65
],
[
81,
66
],
[
78,
67
],
[
75,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
75,
75
],
[
75,
76
],
[
75,
77
],
[
78,
78
],
[
78,
79
],
[
78,
80
],
[
81,
81
],
[
81,
82
],
[
81,
83
],
[
68,
84
],
[
84,
85
],
[
84,
86
],
[
63,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
87,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
87,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
87,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
109,
116
],
[
87,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
119,
126
],
[
87,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
129,
136
],
[
87,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
137,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
137,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
34,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
152,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
152,
162
],
[
162,
163
],
[
163,
164
],
[
152,
165
],
[
166,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
12,
176
],
[
176,
177
],
[
0,
178
],
[
178,
179
],
[
178,
180
]
] | [
"import java.util.Scanner;\nimport java.util.ArrayList;\nimport java.util.*;\npublic class Main\n{\n public static void main(String args[])\n {\n Scanner input=new Scanner(System.in);\n ArrayList<String> list=new ArrayList<String>();\n int cases=input.nextInt();\n if(cases>=1 && cases<=1000)\n {\n for(int i=0;i<cases;i++)\n {\n int a=input.nextInt();\n int b=input.nextInt();\n int c=input.nextInt();\n if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)\n {\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }\n }\n for(int i=0;i<list.size();i++)\n {\n System.out.println(list.get(i));\n }\n }\n }\n}\n\n ",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n public static void main(String args[])\n {\n Scanner input=new Scanner(System.in);\n ArrayList<String> list=new ArrayList<String>();\n int cases=input.nextInt();\n if(cases>=1 && cases<=1000)\n {\n for(int i=0;i<cases;i++)\n {\n int a=input.nextInt();\n int b=input.nextInt();\n int c=input.nextInt();\n if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)\n {\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }\n }\n for(int i=0;i<list.size();i++)\n {\n System.out.println(list.get(i));\n }\n }\n }\n}",
"Main",
"public static void main(String args[])\n {\n Scanner input=new Scanner(System.in);\n ArrayList<String> list=new ArrayList<String>();\n int cases=input.nextInt();\n if(cases>=1 && cases<=1000)\n {\n for(int i=0;i<cases;i++)\n {\n int a=input.nextInt();\n int b=input.nextInt();\n int c=input.nextInt();\n if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)\n {\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }\n }\n for(int i=0;i<list.size();i++)\n {\n System.out.println(list.get(i));\n }\n }\n }",
"main",
"{\n Scanner input=new Scanner(System.in);\n ArrayList<String> list=new ArrayList<String>();\n int cases=input.nextInt();\n if(cases>=1 && cases<=1000)\n {\n for(int i=0;i<cases;i++)\n {\n int a=input.nextInt();\n int b=input.nextInt();\n int c=input.nextInt();\n if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)\n {\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }\n }\n for(int i=0;i<list.size();i++)\n {\n System.out.println(list.get(i));\n }\n }\n }",
"Scanner input=new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"ArrayList<String> list=new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"int cases=input.nextInt();",
"cases",
"input.nextInt()",
"input.nextInt",
"input",
"if(cases>=1 && cases<=1000)\n {\n for(int i=0;i<cases;i++)\n {\n int a=input.nextInt();\n int b=input.nextInt();\n int c=input.nextInt();\n if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)\n {\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }\n }\n for(int i=0;i<list.size();i++)\n {\n System.out.println(list.get(i));\n }\n }",
"cases>=1 && cases<=1000",
"cases>=1",
"cases",
"1",
"cases<=1000",
"cases",
"1000",
"{\n for(int i=0;i<cases;i++)\n {\n int a=input.nextInt();\n int b=input.nextInt();\n int c=input.nextInt();\n if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)\n {\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }\n }\n for(int i=0;i<list.size();i++)\n {\n System.out.println(list.get(i));\n }\n }",
"for(int i=0;i<cases;i++)\n {\n int a=input.nextInt();\n int b=input.nextInt();\n int c=input.nextInt();\n if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)\n {\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<cases",
"i",
"cases",
"i++",
"i++",
"i",
"{\n int a=input.nextInt();\n int b=input.nextInt();\n int c=input.nextInt();\n if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)\n {\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }\n }",
"{\n int a=input.nextInt();\n int b=input.nextInt();\n int c=input.nextInt();\n if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)\n {\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }\n }",
"int a=input.nextInt();",
"a",
"input.nextInt()",
"input.nextInt",
"input",
"int b=input.nextInt();",
"b",
"input.nextInt()",
"input.nextInt",
"input",
"int c=input.nextInt();",
"c",
"input.nextInt()",
"input.nextInt",
"input",
"if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)\n {\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }",
"a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000",
"b<=1000",
"a<=1000",
"c>=1",
"a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000",
"a>=1",
"a",
"1",
"b>=1",
"b",
"1",
"c>=1",
"c",
"1",
"a<=1000",
"a",
"1000",
"b<=1000",
"b",
"1000",
"c<=1000",
"c",
"1000",
"{\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }",
"ArrayList<Integer> list1=new ArrayList<Integer>();",
"list1",
"new ArrayList<Integer>()",
"list1.add(a)",
"list1.add",
"list1",
"a",
"list1.add(b)",
"list1.add",
"list1",
"b",
"list1.add(c)",
"list1.add",
"list1",
"c",
"Collections.sort(list1)",
"Collections.sort",
"Collections",
"list1",
"Double d=Math.pow(list1.get(0),2);",
"d",
"Math.pow(list1.get(0),2)",
"Math.pow",
"Math",
"list1.get(0)",
"list1.get",
"list1",
"0",
"2",
"Double e=Math.pow(list1.get(1),2);",
"e",
"Math.pow(list1.get(1),2)",
"Math.pow",
"Math",
"list1.get(1)",
"list1.get",
"list1",
"1",
"2",
"Double f=Math.pow(list1.get(2),2);",
"f",
"Math.pow(list1.get(2),2)",
"Math.pow",
"Math",
"list1.get(2)",
"list1.get",
"list1",
"2",
"2",
"if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");",
"d+e==f",
"d+e",
"d",
"e",
"f",
"{\n list.add(\"YES\");\n }",
"list.add(\"YES\")",
"list.add",
"list",
"\"YES\"",
"list.add(\"NO\")",
"list.add",
"list",
"\"NO\"",
"for(int i=0;i<list.size();i++)\n {\n System.out.println(list.get(i));\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<list.size()",
"i",
"list.size()",
"list.size",
"list",
"i++",
"i++",
"i",
"{\n System.out.println(list.get(i));\n }",
"{\n System.out.println(list.get(i));\n }",
"System.out.println(list.get(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"list.get(i)",
"list.get",
"list",
"i",
"String args[]",
"args",
"public class Main\n{\n public static void main(String args[])\n {\n Scanner input=new Scanner(System.in);\n ArrayList<String> list=new ArrayList<String>();\n int cases=input.nextInt();\n if(cases>=1 && cases<=1000)\n {\n for(int i=0;i<cases;i++)\n {\n int a=input.nextInt();\n int b=input.nextInt();\n int c=input.nextInt();\n if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)\n {\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }\n }\n for(int i=0;i<list.size();i++)\n {\n System.out.println(list.get(i));\n }\n }\n }\n}",
"public class Main\n{\n public static void main(String args[])\n {\n Scanner input=new Scanner(System.in);\n ArrayList<String> list=new ArrayList<String>();\n int cases=input.nextInt();\n if(cases>=1 && cases<=1000)\n {\n for(int i=0;i<cases;i++)\n {\n int a=input.nextInt();\n int b=input.nextInt();\n int c=input.nextInt();\n if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)\n {\n ArrayList<Integer> list1=new ArrayList<Integer>();\n list1.add(a);\n list1.add(b);\n list1.add(c);\n Collections.sort(list1);\n Double d=Math.pow(list1.get(0),2);\n Double e=Math.pow(list1.get(1),2);\n Double f=Math.pow(list1.get(2),2);\n if(d+e==f)\n {\n list.add(\"YES\");\n }else\n list.add(\"NO\");\n }\n }\n for(int i=0;i<list.size();i++)\n {\n System.out.println(list.get(i));\n }\n }\n }\n}",
"Main"
] | import java.util.Scanner;
import java.util.ArrayList;
import java.util.*;
public class Main
{
public static void main(String args[])
{
Scanner input=new Scanner(System.in);
ArrayList<String> list=new ArrayList<String>();
int cases=input.nextInt();
if(cases>=1 && cases<=1000)
{
for(int i=0;i<cases;i++)
{
int a=input.nextInt();
int b=input.nextInt();
int c=input.nextInt();
if(a>=1 && b>=1 && c>=1 && a<=1000 && b<=1000 && c<=1000)
{
ArrayList<Integer> list1=new ArrayList<Integer>();
list1.add(a);
list1.add(b);
list1.add(c);
Collections.sort(list1);
Double d=Math.pow(list1.get(0),2);
Double e=Math.pow(list1.get(1),2);
Double f=Math.pow(list1.get(2),2);
if(d+e==f)
{
list.add("YES");
}else
list.add("NO");
}
}
for(int i=0;i<list.size();i++)
{
System.out.println(list.get(i));
}
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
0,
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,
2,
2,
13,
13,
13,
2,
2,
13,
13,
13,
2,
2,
13,
13,
13,
30,
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,
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
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
14,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
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
],
[
34,
37
],
[
37,
38
],
[
34,
39
],
[
39,
40
],
[
34,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
34,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
34,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
34,
56
],
[
56,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
58,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
56,
74
],
[
74,
75
],
[
75,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
86,
88
],
[
77,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
97,
99
],
[
77,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
108,
110
],
[
75,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
75,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
56,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
9,
132
],
[
132,
133
]
] | [
"import java.io.*;\nimport java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n int N;\n Scanner sc = new Scanner(System.in);\n\n N = sc.nextInt();\n\n for (int i = 0; i < N; i++) {\n int a,b,c;\n\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n\n if (a+b > c && a+c > b && b+c > a) {\n if (a*a+b*b == c*c || a*a+c*c==b*b || b*b+c*c==a*a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n int N;\n Scanner sc = new Scanner(System.in);\n\n N = sc.nextInt();\n\n for (int i = 0; i < N; i++) {\n int a,b,c;\n\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n\n if (a+b > c && a+c > b && b+c > a) {\n if (a*a+b*b == c*c || a*a+c*c==b*b || b*b+c*c==a*a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n int N;\n Scanner sc = new Scanner(System.in);\n\n N = sc.nextInt();\n\n for (int i = 0; i < N; i++) {\n int a,b,c;\n\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n\n if (a+b > c && a+c > b && b+c > a) {\n if (a*a+b*b == c*c || a*a+c*c==b*b || b*b+c*c==a*a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n } else {\n System.out.println(\"NO\");\n }\n }\n }",
"main",
"{\n int N;\n Scanner sc = new Scanner(System.in);\n\n N = sc.nextInt();\n\n for (int i = 0; i < N; i++) {\n int a,b,c;\n\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n\n if (a+b > c && a+c > b && b+c > a) {\n if (a*a+b*b == c*c || a*a+c*c==b*b || b*b+c*c==a*a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n } else {\n System.out.println(\"NO\");\n }\n }\n }",
"int N;",
"N",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"N = sc.nextInt()",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < N; i++) {\n int a,b,c;\n\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n\n if (a+b > c && a+c > b && b+c > a) {\n if (a*a+b*b == c*c || a*a+c*c==b*b || b*b+c*c==a*a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\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,b,c;\n\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n\n if (a+b > c && a+c > b && b+c > a) {\n if (a*a+b*b == c*c || a*a+c*c==b*b || b*b+c*c==a*a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n } else {\n System.out.println(\"NO\");\n }\n }",
"{\n int a,b,c;\n\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n\n if (a+b > c && a+c > b && b+c > a) {\n if (a*a+b*b == c*c || a*a+c*c==b*b || b*b+c*c==a*a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n } else {\n System.out.println(\"NO\");\n }\n }",
"int a",
"a",
"b",
"b",
"c;",
"c",
"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 > c && a+c > b && b+c > a) {\n if (a*a+b*b == c*c || a*a+c*c==b*b || b*b+c*c==a*a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n } else {\n System.out.println(\"NO\");\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 if (a*a+b*b == c*c || a*a+c*c==b*b || b*b+c*c==a*a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"if (a*a+b*b == c*c || a*a+c*c==b*b || b*b+c*c==a*a) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }",
"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",
"{\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\"",
"{\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.*;
class Main {
public static void main(String[] args) {
int N;
Scanner sc = new Scanner(System.in);
N = sc.nextInt();
for (int i = 0; i < N; i++) {
int a,b,c;
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
if (a+b > c && a+c > b && b+c > a) {
if (a*a+b*b == c*c || a*a+c*c==b*b || b*b+c*c==a*a) {
System.out.println("YES");
} else {
System.out.println("NO");
}
} 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,
17,
41,
13,
20,
0,
13,
4,
18,
13,
42,
2,
13,
17,
30,
40,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
18,
13,
17,
13,
0,
18,
13,
17,
13,
0,
18,
13,
17,
13,
4,
18,
13,
13,
4,
18,
18,
13,
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,
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
],
[
110,
11
],
[
110,
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,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
14,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
39,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
39,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
39,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
39,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
39,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
39,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
39,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
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
],
[
81,
106
],
[
12,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
] | [
"import java.util.*;\nimport java.util.Scanner ; \nimport java.math.BigInteger;\n\npublic class Main {\n public static void main(String[] args) {\n int t,n1,n2,n3;\n int [] a = new int[3];\n Scanner sc = new Scanner(System.in);\n t = sc.nextInt();\n while(t>0){\n t--;\n n1 = sc.nextInt();\n n2 = sc.nextInt();\n n3 = sc.nextInt();\n a[0] = n1 ; a[1] = n2 ; a[2]=n3;\n Arrays.sort(a);\n System.out.println((a[2]*a[2]==a[0]*a[0]+a[1]*a[1])? \"YES\" : \"NO\" );\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.util.Scanner ;",
"Scanner",
"java.util",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main {\n public static void main(String[] args) {\n int t,n1,n2,n3;\n int [] a = new int[3];\n Scanner sc = new Scanner(System.in);\n t = sc.nextInt();\n while(t>0){\n t--;\n n1 = sc.nextInt();\n n2 = sc.nextInt();\n n3 = sc.nextInt();\n a[0] = n1 ; a[1] = n2 ; a[2]=n3;\n Arrays.sort(a);\n System.out.println((a[2]*a[2]==a[0]*a[0]+a[1]*a[1])? \"YES\" : \"NO\" );\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n int t,n1,n2,n3;\n int [] a = new int[3];\n Scanner sc = new Scanner(System.in);\n t = sc.nextInt();\n while(t>0){\n t--;\n n1 = sc.nextInt();\n n2 = sc.nextInt();\n n3 = sc.nextInt();\n a[0] = n1 ; a[1] = n2 ; a[2]=n3;\n Arrays.sort(a);\n System.out.println((a[2]*a[2]==a[0]*a[0]+a[1]*a[1])? \"YES\" : \"NO\" );\n }\n }",
"main",
"{\n int t,n1,n2,n3;\n int [] a = new int[3];\n Scanner sc = new Scanner(System.in);\n t = sc.nextInt();\n while(t>0){\n t--;\n n1 = sc.nextInt();\n n2 = sc.nextInt();\n n3 = sc.nextInt();\n a[0] = n1 ; a[1] = n2 ; a[2]=n3;\n Arrays.sort(a);\n System.out.println((a[2]*a[2]==a[0]*a[0]+a[1]*a[1])? \"YES\" : \"NO\" );\n }\n }",
"int t",
"t",
"n1",
"n1",
"n2",
"n2",
"n3;",
"n3",
"int [] a = new int[3];",
"a",
"new int[3]",
"3",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"t = sc.nextInt()",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(t>0){\n t--;\n n1 = sc.nextInt();\n n2 = sc.nextInt();\n n3 = sc.nextInt();\n a[0] = n1 ; a[1] = n2 ; a[2]=n3;\n Arrays.sort(a);\n System.out.println((a[2]*a[2]==a[0]*a[0]+a[1]*a[1])? \"YES\" : \"NO\" );\n }",
"t>0",
"t",
"0",
"{\n t--;\n n1 = sc.nextInt();\n n2 = sc.nextInt();\n n3 = sc.nextInt();\n a[0] = n1 ; a[1] = n2 ; a[2]=n3;\n Arrays.sort(a);\n System.out.println((a[2]*a[2]==a[0]*a[0]+a[1]*a[1])? \"YES\" : \"NO\" );\n }",
"t--",
"t",
"n1 = sc.nextInt()",
"n1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"n2 = sc.nextInt()",
"n2",
"sc.nextInt()",
"sc.nextInt",
"sc",
"n3 = sc.nextInt()",
"n3",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[0] = n1",
"a[0]",
"a",
"0",
"n1",
"a[1] = n2",
"a[1]",
"a",
"1",
"n2",
"a[2]=n3",
"a[2]",
"a",
"2",
"n3",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"System.out.println((a[2]*a[2]==a[0]*a[0]+a[1]*a[1])? \"YES\" : \"NO\" )",
"System.out.println",
"System.out",
"System",
"System.out",
"(a[2]*a[2]==a[0]*a[0]+a[1]*a[1])? \"YES\" : \"NO\"",
"(a[2]*a[2]==a[0]*a[0]+a[1]*a[1])",
"a[2]*a[2]",
"a[2]",
"a",
"2",
"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",
"\"YES\"",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n int t,n1,n2,n3;\n int [] a = new int[3];\n Scanner sc = new Scanner(System.in);\n t = sc.nextInt();\n while(t>0){\n t--;\n n1 = sc.nextInt();\n n2 = sc.nextInt();\n n3 = sc.nextInt();\n a[0] = n1 ; a[1] = n2 ; a[2]=n3;\n Arrays.sort(a);\n System.out.println((a[2]*a[2]==a[0]*a[0]+a[1]*a[1])? \"YES\" : \"NO\" );\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n int t,n1,n2,n3;\n int [] a = new int[3];\n Scanner sc = new Scanner(System.in);\n t = sc.nextInt();\n while(t>0){\n t--;\n n1 = sc.nextInt();\n n2 = sc.nextInt();\n n3 = sc.nextInt();\n a[0] = n1 ; a[1] = n2 ; a[2]=n3;\n Arrays.sort(a);\n System.out.println((a[2]*a[2]==a[0]*a[0]+a[1]*a[1])? \"YES\" : \"NO\" );\n }\n }\n}",
"Main"
] | import java.util.*;
import java.util.Scanner ;
import java.math.BigInteger;
public class Main {
public static void main(String[] args) {
int t,n1,n2,n3;
int [] a = new int[3];
Scanner sc = new Scanner(System.in);
t = sc.nextInt();
while(t>0){
t--;
n1 = sc.nextInt();
n2 = sc.nextInt();
n3 = sc.nextInt();
a[0] = n1 ; a[1] = n2 ; a[2]=n3;
Arrays.sort(a);
System.out.println((a[2]*a[2]==a[0]*a[0]+a[1]*a[1])? "YES" : "NO" );
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
0,
13,
4,
18,
13,
41,
13,
11,
1,
0,
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,
13,
17,
2,
13,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
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,
29,
17,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
170,
8
],
[
170,
9
],
[
9,
10
],
[
9,
11
],
[
170,
12
],
[
12,
13
],
[
12,
14
],
[
170,
15
],
[
15,
16
],
[
170,
17
],
[
17,
18
],
[
170,
19
],
[
19,
20
],
[
170,
21
],
[
21,
22
],
[
170,
23
],
[
23,
24
],
[
170,
25
],
[
25,
26
],
[
170,
27
],
[
27,
28
],
[
170,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
29,
34
],
[
34,
35
],
[
170,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
44
],
[
44,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
58,
74
],
[
74,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
76,
83
],
[
83,
84
],
[
83,
85
],
[
74,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
58,
93
],
[
93,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
95,
102
],
[
102,
103
],
[
102,
104
],
[
93,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
105,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
105,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
118,
120
],
[
105,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
121,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
121,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
137,
139
],
[
134,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
134,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
150,
152
],
[
147,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
147,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
161,
166
],
[
38,
167
],
[
167,
168
],
[
0,
169
],
[
169,
170
],
[
169,
171
]
] | [
"import java.util.*;\nimport java.io.*;\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static InputStreamReader reader = new InputStreamReader(System.in);\n static int n, a, b, c;//prepare \"number\" and \"Edge\".\n static int A,B,C;\n public static void main(String[] args) {\n\t\n\tread();\n\t\n }\n \n static boolean read(){\n\t//\tSystem.out.println(\"Input the nummber.\");\n\t n = sc.nextInt();//read \"number\".\n\t int i;\n\t for(i = 0; i < n; i++){\n\t\ta = sc.nextInt();//read \"edge\".\n\t\tb = sc.nextInt();//read \"edge\".\n\t\tc = sc.nextInt();//read \"edge\".\n\n\t\tif(a == 0 || b == 0 || c == 0){\n\t\t System.out.println(\"NO\");\n\t\t}//end of if\n\n\t\t\n\t\tif(a != 0 && b != 0 && c!= 0){\n\t\t A = a * a;//calculate the power of edge of A.\n\t\t B = b * b;//calculate the power of edge of B.\n\t\t C = c * c;//calculate the power of edge of C.\n\t\t if(A == B + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }\n\t\t}//end of if\t\t \n\t }//end of for\n\t return true;\n }//brock of read()\n}//brock of Main()",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static InputStreamReader reader = new InputStreamReader(System.in);\n static int n, a, b, c;//prepare \"number\" and \"Edge\".\n static int A,B,C;\n public static void main(String[] args) {\n\t\n\tread();\n\t\n }\n \n static boolean read(){\n\t//\tSystem.out.println(\"Input the nummber.\");\n\t n = sc.nextInt();//read \"number\".\n\t int i;\n\t for(i = 0; i < n; i++){\n\t\ta = sc.nextInt();//read \"edge\".\n\t\tb = sc.nextInt();//read \"edge\".\n\t\tc = sc.nextInt();//read \"edge\".\n\n\t\tif(a == 0 || b == 0 || c == 0){\n\t\t System.out.println(\"NO\");\n\t\t}//end of if\n\n\t\t\n\t\tif(a != 0 && b != 0 && c!= 0){\n\t\t A = a * a;//calculate the power of edge of A.\n\t\t B = b * b;//calculate the power of edge of B.\n\t\t C = c * c;//calculate the power of edge of C.\n\t\t if(A == B + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }\n\t\t}//end of if\t\t \n\t }//end of for\n\t return true;\n }//brock of read()\n}//brock of Main()",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"static InputStreamReader reader = new InputStreamReader(System.in);",
"reader",
"new InputStreamReader(System.in)",
"static int n",
"n",
"a",
"a",
"b",
"b",
"c;//prepare \"number\" and \"Edge\".",
"c",
"static int A",
"A",
"B",
"B",
"C;",
"C",
"public static void main(String[] args) {\n\t\n\tread();\n\t\n }",
"main",
"{\n\t\n\tread();\n\t\n }",
"read()",
"read",
"String[] args",
"args",
"static boolean read(){\n\t//\tSystem.out.println(\"Input the nummber.\");\n\t n = sc.nextInt();//read \"number\".\n\t int i;\n\t for(i = 0; i < n; i++){\n\t\ta = sc.nextInt();//read \"edge\".\n\t\tb = sc.nextInt();//read \"edge\".\n\t\tc = sc.nextInt();//read \"edge\".\n\n\t\tif(a == 0 || b == 0 || c == 0){\n\t\t System.out.println(\"NO\");\n\t\t}//end of if\n\n\t\t\n\t\tif(a != 0 && b != 0 && c!= 0){\n\t\t A = a * a;//calculate the power of edge of A.\n\t\t B = b * b;//calculate the power of edge of B.\n\t\t C = c * c;//calculate the power of edge of C.\n\t\t if(A == B + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }\n\t\t}//end of if\t\t \n\t }//end of for\n\t return true;\n }//brock of read()",
"read",
"{\n\t//\tSystem.out.println(\"Input the nummber.\");\n\t n = sc.nextInt();//read \"number\".\n\t int i;\n\t for(i = 0; i < n; i++){\n\t\ta = sc.nextInt();//read \"edge\".\n\t\tb = sc.nextInt();//read \"edge\".\n\t\tc = sc.nextInt();//read \"edge\".\n\n\t\tif(a == 0 || b == 0 || c == 0){\n\t\t System.out.println(\"NO\");\n\t\t}//end of if\n\n\t\t\n\t\tif(a != 0 && b != 0 && c!= 0){\n\t\t A = a * a;//calculate the power of edge of A.\n\t\t B = b * b;//calculate the power of edge of B.\n\t\t C = c * c;//calculate the power of edge of C.\n\t\t if(A == B + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }\n\t\t}//end of if\t\t \n\t }//end of for\n\t return true;\n }",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i;",
"i",
"for(i = 0; i < n; i++){\n\t\ta = sc.nextInt();//read \"edge\".\n\t\tb = sc.nextInt();//read \"edge\".\n\t\tc = sc.nextInt();//read \"edge\".\n\n\t\tif(a == 0 || b == 0 || c == 0){\n\t\t System.out.println(\"NO\");\n\t\t}//end of if\n\n\t\t\n\t\tif(a != 0 && b != 0 && c!= 0){\n\t\t A = a * a;//calculate the power of edge of A.\n\t\t B = b * b;//calculate the power of edge of B.\n\t\t C = c * c;//calculate the power of edge of C.\n\t\t if(A == B + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }\n\t\t}//end of if\t\t \n\t }//end of for",
"i = 0;",
"i = 0",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\ta = sc.nextInt();//read \"edge\".\n\t\tb = sc.nextInt();//read \"edge\".\n\t\tc = sc.nextInt();//read \"edge\".\n\n\t\tif(a == 0 || b == 0 || c == 0){\n\t\t System.out.println(\"NO\");\n\t\t}//end of if\n\n\t\t\n\t\tif(a != 0 && b != 0 && c!= 0){\n\t\t A = a * a;//calculate the power of edge of A.\n\t\t B = b * b;//calculate the power of edge of B.\n\t\t C = c * c;//calculate the power of edge of C.\n\t\t if(A == B + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }\n\t\t}//end of if\t\t \n\t }//end of for",
"{\n\t\ta = sc.nextInt();//read \"edge\".\n\t\tb = sc.nextInt();//read \"edge\".\n\t\tc = sc.nextInt();//read \"edge\".\n\n\t\tif(a == 0 || b == 0 || c == 0){\n\t\t System.out.println(\"NO\");\n\t\t}//end of if\n\n\t\t\n\t\tif(a != 0 && b != 0 && c!= 0){\n\t\t A = a * a;//calculate the power of edge of A.\n\t\t B = b * b;//calculate the power of edge of B.\n\t\t C = c * c;//calculate the power of edge of C.\n\t\t if(A == B + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }\n\t\t}//end of if\t\t \n\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 == 0 || b == 0 || c == 0){\n\t\t System.out.println(\"NO\");\n\t\t}//end of if",
"a == 0 || b == 0 || c == 0",
"a == 0 || b == 0 || c == 0",
"a == 0",
"a",
"0",
"b == 0",
"b",
"0",
"c == 0",
"c",
"0",
"{\n\t\t System.out.println(\"NO\");\n\t\t}",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"if(a != 0 && b != 0 && c!= 0){\n\t\t A = a * a;//calculate the power of edge of A.\n\t\t B = b * b;//calculate the power of edge of B.\n\t\t C = c * c;//calculate the power of edge of C.\n\t\t if(A == B + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }\n\t\t}//end of if\t\t ",
"a != 0 && b != 0 && c!= 0",
"a != 0 && b != 0 && c!= 0",
"a != 0",
"a",
"0",
"b != 0",
"b",
"0",
"c!= 0",
"c",
"0",
"{\n\t\t A = a * a;//calculate the power of edge of A.\n\t\t B = b * b;//calculate the power of edge of B.\n\t\t C = c * c;//calculate the power of edge of C.\n\t\t if(A == B + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }\n\t\t}",
"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){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }",
"A == B + C",
"A",
"B + C",
"B",
"C",
"{//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }",
"B == A + C",
"B",
"A + C",
"A",
"C",
"{//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }",
"C == A + B",
"C",
"A + B",
"A",
"B",
"{//compare\n\t\t\tSystem.out.println(\"YES\");//output\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\"",
"return true;",
"true",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static InputStreamReader reader = new InputStreamReader(System.in);\n static int n, a, b, c;//prepare \"number\" and \"Edge\".\n static int A,B,C;\n public static void main(String[] args) {\n\t\n\tread();\n\t\n }\n \n static boolean read(){\n\t//\tSystem.out.println(\"Input the nummber.\");\n\t n = sc.nextInt();//read \"number\".\n\t int i;\n\t for(i = 0; i < n; i++){\n\t\ta = sc.nextInt();//read \"edge\".\n\t\tb = sc.nextInt();//read \"edge\".\n\t\tc = sc.nextInt();//read \"edge\".\n\n\t\tif(a == 0 || b == 0 || c == 0){\n\t\t System.out.println(\"NO\");\n\t\t}//end of if\n\n\t\t\n\t\tif(a != 0 && b != 0 && c!= 0){\n\t\t A = a * a;//calculate the power of edge of A.\n\t\t B = b * b;//calculate the power of edge of B.\n\t\t C = c * c;//calculate the power of edge of C.\n\t\t if(A == B + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }\n\t\t}//end of if\t\t \n\t }//end of for\n\t return true;\n }//brock of read()\n}//brock of Main()",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static InputStreamReader reader = new InputStreamReader(System.in);\n static int n, a, b, c;//prepare \"number\" and \"Edge\".\n static int A,B,C;\n public static void main(String[] args) {\n\t\n\tread();\n\t\n }\n \n static boolean read(){\n\t//\tSystem.out.println(\"Input the nummber.\");\n\t n = sc.nextInt();//read \"number\".\n\t int i;\n\t for(i = 0; i < n; i++){\n\t\ta = sc.nextInt();//read \"edge\".\n\t\tb = sc.nextInt();//read \"edge\".\n\t\tc = sc.nextInt();//read \"edge\".\n\n\t\tif(a == 0 || b == 0 || c == 0){\n\t\t System.out.println(\"NO\");\n\t\t}//end of if\n\n\t\t\n\t\tif(a != 0 && b != 0 && c!= 0){\n\t\t A = a * a;//calculate the power of edge of A.\n\t\t B = b * b;//calculate the power of edge of B.\n\t\t C = c * c;//calculate the power of edge of C.\n\t\t if(A == B + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(B == A + C){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else if(C == A + B){//compare\n\t\t\tSystem.out.println(\"YES\");//output\n\t\t }else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t }\n\t\t}//end of if\t\t \n\t }//end of for\n\t return true;\n }//brock of read()\n}//brock of Main()",
"Main"
] | import java.util.*;
import java.io.*;
public class Main {
static Scanner sc = new Scanner(System.in);
static InputStreamReader reader = new InputStreamReader(System.in);
static int n, a, b, c;//prepare "number" and "Edge".
static int A,B,C;
public static void main(String[] args) {
read();
}
static boolean read(){
// System.out.println("Input the nummber.");
n = sc.nextInt();//read "number".
int i;
for(i = 0; i < n; i++){
a = sc.nextInt();//read "edge".
b = sc.nextInt();//read "edge".
c = sc.nextInt();//read "edge".
if(a == 0 || b == 0 || c == 0){
System.out.println("NO");
}//end of if
if(a != 0 && b != 0 && c!= 0){
A = a * a;//calculate the power of edge of A.
B = b * b;//calculate the power of edge of B.
C = c * c;//calculate the power of edge of C.
if(A == B + C){//compare
System.out.println("YES");//output
}else if(B == A + C){//compare
System.out.println("YES");//output
}else if(C == A + B){//compare
System.out.println("YES");//output
}else{
System.out.println("NO");
}
}//end of if
}//end of for
return true;
}//brock of read()
}//brock of Main() |
[
7,
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,
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,
41,
13,
20,
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,
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
],
[
136,
8
],
[
136,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
15,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
23,
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
],
[
44,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
44,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
44,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
44,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
44,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
116,
118
],
[
95,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
95,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
9,
133
],
[
133,
134
],
[
0,
135
],
[
135,
136
],
[
135,
137
]
] | [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n int n = Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n String st = br.readLine();\n String[] s = st.split(\" \",0);\n int[] k = new int[3];\n k[0]=Integer.parseInt(s[0]);\n k[1]=Integer.parseInt(s[1]);\n k[2]=Integer.parseInt(s[2]);\n Arrays.sort(k);\n if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch (Exception ex){\n System.exit(0);\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n int n = Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n String st = br.readLine();\n String[] s = st.split(\" \",0);\n int[] k = new int[3];\n k[0]=Integer.parseInt(s[0]);\n k[1]=Integer.parseInt(s[1]);\n k[2]=Integer.parseInt(s[2]);\n Arrays.sort(k);\n if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch (Exception ex){\n System.exit(0);\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n int n = Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n String st = br.readLine();\n String[] s = st.split(\" \",0);\n int[] k = new int[3];\n k[0]=Integer.parseInt(s[0]);\n k[1]=Integer.parseInt(s[1]);\n k[2]=Integer.parseInt(s[2]);\n Arrays.sort(k);\n if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch (Exception ex){\n System.exit(0);\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n int n = Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n String st = br.readLine();\n String[] s = st.split(\" \",0);\n int[] k = new int[3];\n k[0]=Integer.parseInt(s[0]);\n k[1]=Integer.parseInt(s[1]);\n k[2]=Integer.parseInt(s[2]);\n Arrays.sort(k);\n if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch (Exception ex){\n System.exit(0);\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try{\n int n = Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n String st = br.readLine();\n String[] s = st.split(\" \",0);\n int[] k = new int[3];\n k[0]=Integer.parseInt(s[0]);\n k[1]=Integer.parseInt(s[1]);\n k[2]=Integer.parseInt(s[2]);\n Arrays.sort(k);\n if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\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 n = Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n String st = br.readLine();\n String[] s = st.split(\" \",0);\n int[] k = new int[3];\n k[0]=Integer.parseInt(s[0]);\n k[1]=Integer.parseInt(s[1]);\n k[2]=Integer.parseInt(s[2]);\n Arrays.sort(k);\n if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }",
"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 st = br.readLine();\n String[] s = st.split(\" \",0);\n int[] k = new int[3];\n k[0]=Integer.parseInt(s[0]);\n k[1]=Integer.parseInt(s[1]);\n k[2]=Integer.parseInt(s[2]);\n Arrays.sort(k);\n if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){\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 st = br.readLine();\n String[] s = st.split(\" \",0);\n int[] k = new int[3];\n k[0]=Integer.parseInt(s[0]);\n k[1]=Integer.parseInt(s[1]);\n k[2]=Integer.parseInt(s[2]);\n Arrays.sort(k);\n if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"{\n String st = br.readLine();\n String[] s = st.split(\" \",0);\n int[] k = new int[3];\n k[0]=Integer.parseInt(s[0]);\n k[1]=Integer.parseInt(s[1]);\n k[2]=Integer.parseInt(s[2]);\n Arrays.sort(k);\n if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"String st = br.readLine();",
"st",
"br.readLine()",
"br.readLine",
"br",
"String[] s = st.split(\" \",0);",
"s",
"st.split(\" \",0)",
"st.split",
"st",
"\" \"",
"0",
"int[] k = new int[3];",
"k",
"new int[3]",
"3",
"k[0]=Integer.parseInt(s[0])",
"k[0]",
"k",
"0",
"Integer.parseInt(s[0])",
"Integer.parseInt",
"Integer",
"s[0]",
"s",
"0",
"k[1]=Integer.parseInt(s[1])",
"k[1]",
"k",
"1",
"Integer.parseInt(s[1])",
"Integer.parseInt",
"Integer",
"s[1]",
"s",
"1",
"k[2]=Integer.parseInt(s[2])",
"k[2]",
"k",
"2",
"Integer.parseInt(s[2])",
"Integer.parseInt",
"Integer",
"s[2]",
"s",
"2",
"Arrays.sort(k)",
"Arrays.sort",
"Arrays",
"k",
"if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])",
"k[2]*k[2]",
"k[2]",
"k",
"2",
"k[2]",
"k",
"2",
"(k[1]*k[1])+(k[0]*k[0])",
"(k[1]*k[1])",
"k[1]",
"k",
"1",
"k[1]",
"k",
"1",
"(k[0]*k[0])",
"k[0]",
"k",
"0",
"k[0]",
"k",
"0",
"{\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 int n = Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n String st = br.readLine();\n String[] s = st.split(\" \",0);\n int[] k = new int[3];\n k[0]=Integer.parseInt(s[0]);\n k[1]=Integer.parseInt(s[1]);\n k[2]=Integer.parseInt(s[2]);\n Arrays.sort(k);\n if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch (Exception ex){\n System.exit(0);\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 int n = Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n String st = br.readLine();\n String[] s = st.split(\" \",0);\n int[] k = new int[3];\n k[0]=Integer.parseInt(s[0]);\n k[1]=Integer.parseInt(s[1]);\n k[2]=Integer.parseInt(s[2]);\n Arrays.sort(k);\n if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch (Exception ex){\n System.exit(0);\n }\n }\n}",
"Main"
] | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try{
int n = Integer.parseInt(br.readLine());
for(int i=0;i<n;i++){
String st = br.readLine();
String[] s = st.split(" ",0);
int[] k = new int[3];
k[0]=Integer.parseInt(s[0]);
k[1]=Integer.parseInt(s[1]);
k[2]=Integer.parseInt(s[2]);
Arrays.sort(k);
if(k[2]*k[2]==(k[1]*k[1])+(k[0]*k[0])){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}catch (Exception ex){
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
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,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
4,
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,
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
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
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,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
35,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
49,
50
],
[
35,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
55,
56
],
[
35,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
35,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
35,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
35,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
35,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
87,
91
],
[
80,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
92,
96
],
[
79,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
79,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
12,
111
],
[
111,
112
]
] | [
"import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n\n int noDataSet = sc.nextInt();\n\n for (int i = 0; i < noDataSet; i++) {\n ArrayList<Integer> nums = new ArrayList<Integer>();\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n Collections.sort(nums);\n\n int a = nums.get(0);\n int b = nums.get(1);\n int c = nums.get(2);\n\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}",
"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[]) {\n Scanner sc = new Scanner(System.in);\n\n int noDataSet = sc.nextInt();\n\n for (int i = 0; i < noDataSet; i++) {\n ArrayList<Integer> nums = new ArrayList<Integer>();\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n Collections.sort(nums);\n\n int a = nums.get(0);\n int b = nums.get(1);\n int c = nums.get(2);\n\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 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 sc = new Scanner(System.in);\n\n int noDataSet = sc.nextInt();\n\n for (int i = 0; i < noDataSet; i++) {\n ArrayList<Integer> nums = new ArrayList<Integer>();\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n Collections.sort(nums);\n\n int a = nums.get(0);\n int b = nums.get(1);\n int c = nums.get(2);\n\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int noDataSet = sc.nextInt();\n\n for (int i = 0; i < noDataSet; i++) {\n ArrayList<Integer> nums = new ArrayList<Integer>();\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n Collections.sort(nums);\n\n int a = nums.get(0);\n int b = nums.get(1);\n int c = nums.get(2);\n\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\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 noDataSet = sc.nextInt();",
"noDataSet",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < noDataSet; i++) {\n ArrayList<Integer> nums = new ArrayList<Integer>();\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n Collections.sort(nums);\n\n int a = nums.get(0);\n int b = nums.get(1);\n int c = nums.get(2);\n\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < noDataSet",
"i",
"noDataSet",
"i++",
"i++",
"i",
"{\n ArrayList<Integer> nums = new ArrayList<Integer>();\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n Collections.sort(nums);\n\n int a = nums.get(0);\n int b = nums.get(1);\n int c = nums.get(2);\n\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"{\n ArrayList<Integer> nums = new ArrayList<Integer>();\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n nums.add(sc.nextInt());\n Collections.sort(nums);\n\n int a = nums.get(0);\n int b = nums.get(1);\n int c = nums.get(2);\n\n if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"ArrayList<Integer> nums = new ArrayList<Integer>();",
"nums",
"new ArrayList<Integer>()",
"nums.add(sc.nextInt())",
"nums.add",
"nums",
"sc.nextInt()",
"sc.nextInt",
"sc",
"nums.add(sc.nextInt())",
"nums.add",
"nums",
"sc.nextInt()",
"sc.nextInt",
"sc",
"nums.add(sc.nextInt())",
"nums.add",
"nums",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Collections.sort(nums)",
"Collections.sort",
"Collections",
"nums",
"int a = nums.get(0);",
"a",
"nums.get(0)",
"nums.get",
"nums",
"0",
"int b = nums.get(1);",
"b",
"nums.get(1)",
"nums.get",
"nums",
"1",
"int c = nums.get(2);",
"c",
"nums.get(2)",
"nums.get",
"nums",
"2",
"if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 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\"",
"{\n System.out.println(\"NO\");\n }",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String args[]",
"args"
] | import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int noDataSet = sc.nextInt();
for (int i = 0; i < noDataSet; i++) {
ArrayList<Integer> nums = new ArrayList<Integer>();
nums.add(sc.nextInt());
nums.add(sc.nextInt());
nums.add(sc.nextInt());
Collections.sort(nums);
int a = nums.get(0);
int b = nums.get(1);
int c = nums.get(2);
if (Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 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,
14,
2,
13,
17,
30,
41,
13,
20,
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,
17,
2,
13,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
2,
13,
17,
2,
13,
17,
30,
41,
13,
4,
13,
13,
13,
13,
0,
18,
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,
41,
13,
17,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
17,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
17,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
17,
29,
13,
23,
13,
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
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
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
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
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
],
[
83,
84
],
[
83,
85
],
[
83,
86
],
[
83,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
21,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
93,
104
],
[
105,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
6,
114
],
[
114,
115
],
[
4,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
131,
133
],
[
122,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
122,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
147,
149
],
[
138,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
138,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
163,
165
],
[
154,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
118,
170
],
[
170,
171
],
[
116,
172
],
[
172,
173
],
[
116,
174
],
[
174,
175
],
[
116,
176
],
[
176,
177
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tif (count <= 1000) {\n\t\t\tString[] triangles = new String[count];\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tint side1 = sc.nextInt();\n\t\t\t\tint side2 = sc.nextInt();\n\t\t\t\tint side3 = sc.nextInt();\n\t\t\t\tif (side1 >= 1 && side1 <= 1000) {\n\t\t\t\t\tif (side2 >= 1 && side2 <= 1000) {\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\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\tfor (int k = 0; k < count; k++) {\n\t\t\t\tSystem.out.println(triangles[k]);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static String isRightTriangle(int s1, int s2, int s3) {\n\t\tString test = \"NO\";\n\t\tif ((s1 * s1) == (s2 * s2) + (s3 * s3)) {\n\t\t\ttest = \"YES\";\n\t\t} else if ((s2 * s2) == (s1 * s1) + (s3 * s3)) {\n\t\t\ttest = \"YES\";\n\t\t} else if ((s3 * s3) == (s1 * s1) + (s2 * s2)) {\n\t\t\ttest = \"YES\";\n\t\t}\n\t\treturn test;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tif (count <= 1000) {\n\t\t\tString[] triangles = new String[count];\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tint side1 = sc.nextInt();\n\t\t\t\tint side2 = sc.nextInt();\n\t\t\t\tint side3 = sc.nextInt();\n\t\t\t\tif (side1 >= 1 && side1 <= 1000) {\n\t\t\t\t\tif (side2 >= 1 && side2 <= 1000) {\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\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\tfor (int k = 0; k < count; k++) {\n\t\t\t\tSystem.out.println(triangles[k]);\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static String isRightTriangle(int s1, int s2, int s3) {\n\t\tString test = \"NO\";\n\t\tif ((s1 * s1) == (s2 * s2) + (s3 * s3)) {\n\t\t\ttest = \"YES\";\n\t\t} else if ((s2 * s2) == (s1 * s1) + (s3 * s3)) {\n\t\t\ttest = \"YES\";\n\t\t} else if ((s3 * s3) == (s1 * s1) + (s2 * s2)) {\n\t\t\ttest = \"YES\";\n\t\t}\n\t\treturn test;\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tif (count <= 1000) {\n\t\t\tString[] triangles = new String[count];\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tint side1 = sc.nextInt();\n\t\t\t\tint side2 = sc.nextInt();\n\t\t\t\tint side3 = sc.nextInt();\n\t\t\t\tif (side1 >= 1 && side1 <= 1000) {\n\t\t\t\t\tif (side2 >= 1 && side2 <= 1000) {\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\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\tfor (int k = 0; k < count; k++) {\n\t\t\t\tSystem.out.println(triangles[k]);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tif (count <= 1000) {\n\t\t\tString[] triangles = new String[count];\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tint side1 = sc.nextInt();\n\t\t\t\tint side2 = sc.nextInt();\n\t\t\t\tint side3 = sc.nextInt();\n\t\t\t\tif (side1 >= 1 && side1 <= 1000) {\n\t\t\t\t\tif (side2 >= 1 && side2 <= 1000) {\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\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\tfor (int k = 0; k < count; k++) {\n\t\t\t\tSystem.out.println(triangles[k]);\n\t\t\t}\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int count = sc.nextInt();",
"count",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (count <= 1000) {\n\t\t\tString[] triangles = new String[count];\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tint side1 = sc.nextInt();\n\t\t\t\tint side2 = sc.nextInt();\n\t\t\t\tint side3 = sc.nextInt();\n\t\t\t\tif (side1 >= 1 && side1 <= 1000) {\n\t\t\t\t\tif (side2 >= 1 && side2 <= 1000) {\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\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\tfor (int k = 0; k < count; k++) {\n\t\t\t\tSystem.out.println(triangles[k]);\n\t\t\t}\n\t\t}",
"count <= 1000",
"count",
"1000",
"{\n\t\t\tString[] triangles = new String[count];\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tint side1 = sc.nextInt();\n\t\t\t\tint side2 = sc.nextInt();\n\t\t\t\tint side3 = sc.nextInt();\n\t\t\t\tif (side1 >= 1 && side1 <= 1000) {\n\t\t\t\t\tif (side2 >= 1 && side2 <= 1000) {\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\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\tfor (int k = 0; k < count; k++) {\n\t\t\t\tSystem.out.println(triangles[k]);\n\t\t\t}\n\t\t}",
"String[] triangles = new String[count];",
"triangles",
"new String[count]",
"count",
"for (int j = 0; j < count; j++) {\n\t\t\t\tint side1 = sc.nextInt();\n\t\t\t\tint side2 = sc.nextInt();\n\t\t\t\tint side3 = sc.nextInt();\n\t\t\t\tif (side1 >= 1 && side1 <= 1000) {\n\t\t\t\t\tif (side2 >= 1 && side2 <= 1000) {\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < count",
"j",
"count",
"j++",
"j++",
"j",
"{\n\t\t\t\tint side1 = sc.nextInt();\n\t\t\t\tint side2 = sc.nextInt();\n\t\t\t\tint side3 = sc.nextInt();\n\t\t\t\tif (side1 >= 1 && side1 <= 1000) {\n\t\t\t\t\tif (side2 >= 1 && side2 <= 1000) {\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\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\t\tint side1 = sc.nextInt();\n\t\t\t\tint side2 = sc.nextInt();\n\t\t\t\tint side3 = sc.nextInt();\n\t\t\t\tif (side1 >= 1 && side1 <= 1000) {\n\t\t\t\t\tif (side2 >= 1 && side2 <= 1000) {\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int side1 = sc.nextInt();",
"side1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int side2 = sc.nextInt();",
"side2",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int side3 = sc.nextInt();",
"side3",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (side1 >= 1 && side1 <= 1000) {\n\t\t\t\t\tif (side2 >= 1 && side2 <= 1000) {\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"side1 >= 1 && side1 <= 1000",
"side1 >= 1",
"side1",
"1",
"side1 <= 1000",
"side1",
"1000",
"{\n\t\t\t\t\tif (side2 >= 1 && side2 <= 1000) {\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"if (side2 >= 1 && side2 <= 1000) {\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"side2 >= 1 && side2 <= 1000",
"side2 >= 1",
"side2",
"1",
"side2 <= 1000",
"side2",
"1000",
"{\n\t\t\t\t\t\tif (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"if (side3 >= 1 && side3 <= 1000) {\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\n\t\t\t\t\t\t}",
"side3 >= 1 && side3 <= 1000",
"side3 >= 1",
"side3",
"1",
"side3 <= 1000",
"side3",
"1000",
"{\n\t\t\t\t\t\t\tString result = isRightTriangle(side1, side2, side3);\n\t\t\t\t\t\t\ttriangles[j] = result;\n\t\t\t\t\t\t}",
"String result = isRightTriangle(side1, side2, side3);",
"result",
"isRightTriangle(side1, side2, side3)",
"isRightTriangle",
"side1",
"side2",
"side3",
"triangles[j] = result",
"triangles[j]",
"triangles",
"j",
"result",
"for (int k = 0; k < count; k++) {\n\t\t\t\tSystem.out.println(triangles[k]);\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k < count",
"k",
"count",
"k++",
"k++",
"k",
"{\n\t\t\t\tSystem.out.println(triangles[k]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(triangles[k]);\n\t\t\t}",
"System.out.println(triangles[k])",
"System.out.println",
"System.out",
"System",
"System.out",
"triangles[k]",
"triangles",
"k",
"String[] args",
"args",
"private static String isRightTriangle(int s1, int s2, int s3) {\n\t\tString test = \"NO\";\n\t\tif ((s1 * s1) == (s2 * s2) + (s3 * s3)) {\n\t\t\ttest = \"YES\";\n\t\t} else if ((s2 * s2) == (s1 * s1) + (s3 * s3)) {\n\t\t\ttest = \"YES\";\n\t\t} else if ((s3 * s3) == (s1 * s1) + (s2 * s2)) {\n\t\t\ttest = \"YES\";\n\t\t}\n\t\treturn test;\n\t}",
"isRightTriangle",
"{\n\t\tString test = \"NO\";\n\t\tif ((s1 * s1) == (s2 * s2) + (s3 * s3)) {\n\t\t\ttest = \"YES\";\n\t\t} else if ((s2 * s2) == (s1 * s1) + (s3 * s3)) {\n\t\t\ttest = \"YES\";\n\t\t} else if ((s3 * s3) == (s1 * s1) + (s2 * s2)) {\n\t\t\ttest = \"YES\";\n\t\t}\n\t\treturn test;\n\t}",
"String test = \"NO\";",
"test",
"\"NO\"",
"if ((s1 * s1) == (s2 * s2) + (s3 * s3)) {\n\t\t\ttest = \"YES\";\n\t\t} else if ((s2 * s2) == (s1 * s1) + (s3 * s3)) {\n\t\t\ttest = \"YES\";\n\t\t} else if ((s3 * s3) == (s1 * s1) + (s2 * s2)) {\n\t\t\ttest = \"YES\";\n\t\t}",
"(s1 * s1) == (s2 * s2) + (s3 * s3)",
"(s1 * s1)",
"s1",
"s1",
"(s2 * s2) + (s3 * s3)",
"(s2 * s2)",
"s2",
"s2",
"(s3 * s3)",
"s3",
"s3",
"{\n\t\t\ttest = \"YES\";\n\t\t}",
"test = \"YES\"",
"test",
"\"YES\"",
"if ((s2 * s2) == (s1 * s1) + (s3 * s3)) {\n\t\t\ttest = \"YES\";\n\t\t} else if ((s3 * s3) == (s1 * s1) + (s2 * s2)) {\n\t\t\ttest = \"YES\";\n\t\t}",
"(s2 * s2) == (s1 * s1) + (s3 * s3)",
"(s2 * s2)",
"s2",
"s2",
"(s1 * s1) + (s3 * s3)",
"(s1 * s1)",
"s1",
"s1",
"(s3 * s3)",
"s3",
"s3",
"{\n\t\t\ttest = \"YES\";\n\t\t}",
"test = \"YES\"",
"test",
"\"YES\"",
"if ((s3 * s3) == (s1 * s1) + (s2 * s2)) {\n\t\t\ttest = \"YES\";\n\t\t}",
"(s3 * s3) == (s1 * s1) + (s2 * s2)",
"(s3 * s3)",
"s3",
"s3",
"(s1 * s1) + (s2 * s2)",
"(s1 * s1)",
"s1",
"s1",
"(s2 * s2)",
"s2",
"s2",
"{\n\t\t\ttest = \"YES\";\n\t\t}",
"test = \"YES\"",
"test",
"\"YES\"",
"return test;",
"test",
"int s1",
"s1",
"int s2",
"s2",
"int s3",
"s3"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int count = sc.nextInt();
if (count <= 1000) {
String[] triangles = new String[count];
for (int j = 0; j < count; j++) {
int side1 = sc.nextInt();
int side2 = sc.nextInt();
int side3 = sc.nextInt();
if (side1 >= 1 && side1 <= 1000) {
if (side2 >= 1 && side2 <= 1000) {
if (side3 >= 1 && side3 <= 1000) {
String result = isRightTriangle(side1, side2, side3);
triangles[j] = result;
}
}
}
}
for (int k = 0; k < count; k++) {
System.out.println(triangles[k]);
}
}
}
private static String isRightTriangle(int s1, int s2, int s3) {
String test = "NO";
if ((s1 * s1) == (s2 * s2) + (s3 * s3)) {
test = "YES";
} else if ((s2 * s2) == (s1 * s1) + (s3 * s3)) {
test = "YES";
} else if ((s3 * s3) == (s1 * s1) + (s2 * s2)) {
test = "YES";
}
return test;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
17,
4,
13,
17,
13,
13,
4,
18,
13,
13,
14,
4,
13,
13,
30,
29,
17,
30,
29,
17,
23,
13,
12,
13,
30,
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,
29,
17,
29,
17,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
38,
30,
4,
18,
13,
4,
18,
13,
30,
42,
2,
0,
13,
4,
18,
13,
17,
30,
14,
13,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
30,
41,
13,
4,
18,
13,
13,
4,
18,
13,
13,
29,
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
],
[
219,
20
],
[
219,
21
],
[
21,
22
],
[
21,
23
],
[
219,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
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
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
24,
59
],
[
59,
60
],
[
219,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
68,
71
],
[
68,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
63,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
77,
84
],
[
84,
85
],
[
85,
86
],
[
61,
87
],
[
87,
88
],
[
219,
89
],
[
89,
90
],
[
89,
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
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
92,
116
],
[
116,
117
],
[
117,
118
],
[
91,
119
],
[
119,
120
],
[
89,
121
],
[
121,
122
],
[
219,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
143,
146
],
[
146,
147
],
[
146,
148
],
[
123,
149
],
[
149,
150
],
[
123,
151
],
[
151,
152
],
[
123,
153
],
[
153,
154
],
[
219,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
161,
163
],
[
157,
164
],
[
164,
165
],
[
164,
166
],
[
157,
167
],
[
167,
168
],
[
167,
169
],
[
157,
170
],
[
170,
171
],
[
170,
172
],
[
157,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
174,
178
],
[
178,
179
],
[
179,
180
],
[
173,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
183,
189
],
[
182,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
197,
198
],
[
196,
199
],
[
193,
200
],
[
200,
201
],
[
200,
202
],
[
191,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
206,
209
],
[
203,
210
],
[
210,
211
],
[
211,
212
],
[
210,
213
],
[
181,
214
],
[
214,
215
],
[
155,
216
],
[
216,
217
],
[
0,
218
],
[
218,
219
],
[
218,
220
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n\n/**\n * 0003:Is it a Right Triangle?\n * \n * @author Lyu\n * @version 2015/07/12\n */\npublic class Main {\n\n /** 区切り文字:スペース */\n private static final String DELIMITER_SPACE = \" \";\n\n /**\n * データセットで与えられた数を3辺とする三角形が直角三角形かを判断する。\n * \n * @param args\n * @throws IOException\n * @throws NumberFormatException\n */\n public static void main(String[] args) throws NumberFormatException, IOException {\n\n List<String[]> dataSets = new ArrayList<String[]>();\n int countOfDataSet = getInput(dataSets);\n\n for (int i = 0; i < countOfDataSet; ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }\n }\n\n private static String getResult(String[] dataSets) {\n int[] lengths = new int[3];\n toIntArray(3, lengths, dataSets);\n Arrays.sort(lengths);\n\n if (isRightTriangle(lengths)) {\n return \"YES\";\n } else {\n return \"NO\";\n }\n }\n\n private static boolean isRightTriangle(int[] lengths) {\n if (lengths[2] * lengths[2] == lengths[0] * lengths[0] + lengths[1] * lengths[1]) {\n return true;\n }\n return false;\n }\n\n private static void toIntArray(int lengthOfArray, int[] intArray, String[] stringArray) {\n for (int i = 0; i < lengthOfArray; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n }\n\n private static int getInput(List<String[]> target) throws NumberFormatException, IOException {\n // 入力読取り\n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n\n String line = null;\n boolean isFirst = true;\n int numberOfDataSet = 0;\n\n try {\n while ((line = bufferedReader.readLine()) != null) {\n if (isFirst) {\n numberOfDataSet = Integer.parseInt(line);\n isFirst = false;\n } else {\n String[] lengths = line.split(DELIMITER_SPACE);\n target.add(lengths);\n }\n }\n return numberOfDataSet;\n } finally {\n bufferedReader.close();\n streamReader.close();\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.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"public class Main {\n\n /** 区切り文字:スペース */\n private static final String DELIMITER_SPACE = \" \";\n\n /**\n * データセットで与えられた数を3辺とする三角形が直角三角形かを判断する。\n * \n * @param args\n * @throws IOException\n * @throws NumberFormatException\n */\n public static void main(String[] args) throws NumberFormatException, IOException {\n\n List<String[]> dataSets = new ArrayList<String[]>();\n int countOfDataSet = getInput(dataSets);\n\n for (int i = 0; i < countOfDataSet; ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }\n }\n\n private static String getResult(String[] dataSets) {\n int[] lengths = new int[3];\n toIntArray(3, lengths, dataSets);\n Arrays.sort(lengths);\n\n if (isRightTriangle(lengths)) {\n return \"YES\";\n } else {\n return \"NO\";\n }\n }\n\n private static boolean isRightTriangle(int[] lengths) {\n if (lengths[2] * lengths[2] == lengths[0] * lengths[0] + lengths[1] * lengths[1]) {\n return true;\n }\n return false;\n }\n\n private static void toIntArray(int lengthOfArray, int[] intArray, String[] stringArray) {\n for (int i = 0; i < lengthOfArray; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n }\n\n private static int getInput(List<String[]> target) throws NumberFormatException, IOException {\n // 入力読取り\n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n\n String line = null;\n boolean isFirst = true;\n int numberOfDataSet = 0;\n\n try {\n while ((line = bufferedReader.readLine()) != null) {\n if (isFirst) {\n numberOfDataSet = Integer.parseInt(line);\n isFirst = false;\n } else {\n String[] lengths = line.split(DELIMITER_SPACE);\n target.add(lengths);\n }\n }\n return numberOfDataSet;\n } finally {\n bufferedReader.close();\n streamReader.close();\n }\n }\n}",
"Main",
"/** 区切り文字:スペース */\n private static final String DELIMITER_SPACE = \" \";",
"DELIMITER_SPACE",
"\" \"",
"/**\n * データセットで与えられた数を3辺とする三角形が直角三角形かを判断する。\n * \n * @param args\n * @throws IOException\n * @throws NumberFormatException\n */\n public static void main(String[] args) throws NumberFormatException, IOException {\n\n List<String[]> dataSets = new ArrayList<String[]>();\n int countOfDataSet = getInput(dataSets);\n\n for (int i = 0; i < countOfDataSet; ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }\n }",
"main",
"{\n\n List<String[]> dataSets = new ArrayList<String[]>();\n int countOfDataSet = getInput(dataSets);\n\n for (int i = 0; i < countOfDataSet; ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }\n }",
"List<String[]> dataSets = new ArrayList<String[]>();",
"dataSets",
"new ArrayList<String[]>()",
"int countOfDataSet = getInput(dataSets);",
"countOfDataSet",
"getInput(dataSets)",
"getInput",
"dataSets",
"for (int i = 0; i < countOfDataSet; ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < countOfDataSet",
"i",
"countOfDataSet",
"++i",
"++i",
"i",
"{\n System.out.println(getResult(dataSets.get(i)));\n }",
"{\n System.out.println(getResult(dataSets.get(i)));\n }",
"System.out.println(getResult(dataSets.get(i)))",
"System.out.println",
"System.out",
"System",
"System.out",
"getResult(dataSets.get(i))",
"getResult",
"dataSets.get(i)",
"dataSets.get",
"dataSets",
"i",
"String[] args",
"args",
"private static String getResult(String[] dataSets) {\n int[] lengths = new int[3];\n toIntArray(3, lengths, dataSets);\n Arrays.sort(lengths);\n\n if (isRightTriangle(lengths)) {\n return \"YES\";\n } else {\n return \"NO\";\n }\n }",
"getResult",
"{\n int[] lengths = new int[3];\n toIntArray(3, lengths, dataSets);\n Arrays.sort(lengths);\n\n if (isRightTriangle(lengths)) {\n return \"YES\";\n } else {\n return \"NO\";\n }\n }",
"int[] lengths = new int[3];",
"lengths",
"new int[3]",
"3",
"toIntArray(3, lengths, dataSets)",
"toIntArray",
"3",
"lengths",
"dataSets",
"Arrays.sort(lengths)",
"Arrays.sort",
"Arrays",
"lengths",
"if (isRightTriangle(lengths)) {\n return \"YES\";\n } else {\n return \"NO\";\n }",
"isRightTriangle(lengths)",
"isRightTriangle",
"lengths",
"{\n return \"YES\";\n }",
"return \"YES\";",
"\"YES\"",
"{\n return \"NO\";\n }",
"return \"NO\";",
"\"NO\"",
"String[] dataSets",
"dataSets",
"private static boolean isRightTriangle(int[] lengths) {\n if (lengths[2] * lengths[2] == lengths[0] * lengths[0] + lengths[1] * lengths[1]) {\n return true;\n }\n return false;\n }",
"isRightTriangle",
"{\n if (lengths[2] * lengths[2] == lengths[0] * lengths[0] + lengths[1] * lengths[1]) {\n return true;\n }\n return false;\n }",
"if (lengths[2] * lengths[2] == lengths[0] * lengths[0] + lengths[1] * lengths[1]) {\n return true;\n }",
"lengths[2] * lengths[2] == lengths[0] * lengths[0] + lengths[1] * lengths[1]",
"lengths[2] * lengths[2]",
"lengths[2]",
"lengths",
"2",
"lengths[2]",
"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",
"{\n return true;\n }",
"return true;",
"true",
"return false;",
"false",
"int[] lengths",
"lengths",
"private static void toIntArray(int lengthOfArray, int[] intArray, String[] stringArray) {\n for (int i = 0; i < lengthOfArray; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n }",
"toIntArray",
"{\n for (int i = 0; i < lengthOfArray; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n }",
"for (int i = 0; i < lengthOfArray; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < lengthOfArray",
"i",
"lengthOfArray",
"++i",
"++i",
"i",
"{\n intArray[i] = Integer.parseInt(stringArray[i]);\n }",
"{\n intArray[i] = Integer.parseInt(stringArray[i]);\n }",
"intArray[i] = Integer.parseInt(stringArray[i])",
"intArray[i]",
"intArray",
"i",
"Integer.parseInt(stringArray[i])",
"Integer.parseInt",
"Integer",
"stringArray[i]",
"stringArray",
"i",
"int lengthOfArray",
"lengthOfArray",
"int[] intArray",
"intArray",
"String[] stringArray",
"stringArray",
"private static int getInput(List<String[]> target) throws NumberFormatException, IOException {\n // 入力読取り\n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n\n String line = null;\n boolean isFirst = true;\n int numberOfDataSet = 0;\n\n try {\n while ((line = bufferedReader.readLine()) != null) {\n if (isFirst) {\n numberOfDataSet = Integer.parseInt(line);\n isFirst = false;\n } else {\n String[] lengths = line.split(DELIMITER_SPACE);\n target.add(lengths);\n }\n }\n return numberOfDataSet;\n } finally {\n bufferedReader.close();\n streamReader.close();\n }\n }",
"getInput",
"{\n // 入力読取り\n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n\n String line = null;\n boolean isFirst = true;\n int numberOfDataSet = 0;\n\n try {\n while ((line = bufferedReader.readLine()) != null) {\n if (isFirst) {\n numberOfDataSet = Integer.parseInt(line);\n isFirst = false;\n } else {\n String[] lengths = line.split(DELIMITER_SPACE);\n target.add(lengths);\n }\n }\n return numberOfDataSet;\n } finally {\n bufferedReader.close();\n streamReader.close();\n }\n }",
"InputStreamReader streamReader = new InputStreamReader(System.in);",
"streamReader",
"new InputStreamReader(System.in)",
"BufferedReader bufferedReader = new BufferedReader(streamReader);",
"bufferedReader",
"new BufferedReader(streamReader)",
"String line = null;",
"line",
"null",
"boolean isFirst = true;",
"isFirst",
"true",
"int numberOfDataSet = 0;",
"numberOfDataSet",
"0",
"try {\n while ((line = bufferedReader.readLine()) != null) {\n if (isFirst) {\n numberOfDataSet = Integer.parseInt(line);\n isFirst = false;\n } else {\n String[] lengths = line.split(DELIMITER_SPACE);\n target.add(lengths);\n }\n }\n return numberOfDataSet;\n } finally {\n bufferedReader.close();\n streamReader.close();\n }",
"{\n bufferedReader.close();\n streamReader.close();\n }",
"bufferedReader.close()",
"bufferedReader.close",
"bufferedReader",
"streamReader.close()",
"streamReader.close",
"streamReader",
"{\n while ((line = bufferedReader.readLine()) != null) {\n if (isFirst) {\n numberOfDataSet = Integer.parseInt(line);\n isFirst = false;\n } else {\n String[] lengths = line.split(DELIMITER_SPACE);\n target.add(lengths);\n }\n }\n return numberOfDataSet;\n }",
"while ((line = bufferedReader.readLine()) != null) {\n if (isFirst) {\n numberOfDataSet = Integer.parseInt(line);\n isFirst = false;\n } else {\n String[] lengths = line.split(DELIMITER_SPACE);\n target.add(lengths);\n }\n }",
"(line = bufferedReader.readLine()) != null",
"(line = bufferedReader.readLine())",
"line",
"bufferedReader.readLine()",
"bufferedReader.readLine",
"bufferedReader",
"null",
"{\n if (isFirst) {\n numberOfDataSet = Integer.parseInt(line);\n isFirst = false;\n } else {\n String[] lengths = line.split(DELIMITER_SPACE);\n target.add(lengths);\n }\n }",
"if (isFirst) {\n numberOfDataSet = Integer.parseInt(line);\n isFirst = false;\n } else {\n String[] lengths = line.split(DELIMITER_SPACE);\n target.add(lengths);\n }",
"isFirst",
"{\n numberOfDataSet = Integer.parseInt(line);\n isFirst = false;\n }",
"numberOfDataSet = Integer.parseInt(line)",
"numberOfDataSet",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"isFirst = false",
"isFirst",
"false",
"{\n String[] lengths = line.split(DELIMITER_SPACE);\n target.add(lengths);\n }",
"String[] lengths = line.split(DELIMITER_SPACE);",
"lengths",
"line.split(DELIMITER_SPACE)",
"line.split",
"line",
"DELIMITER_SPACE",
"target.add(lengths)",
"target.add",
"target",
"lengths",
"return numberOfDataSet;",
"numberOfDataSet",
"List<String[]> target",
"target",
"public class Main {\n\n /** 区切り文字:スペース */\n private static final String DELIMITER_SPACE = \" \";\n\n /**\n * データセットで与えられた数を3辺とする三角形が直角三角形かを判断する。\n * \n * @param args\n * @throws IOException\n * @throws NumberFormatException\n */\n public static void main(String[] args) throws NumberFormatException, IOException {\n\n List<String[]> dataSets = new ArrayList<String[]>();\n int countOfDataSet = getInput(dataSets);\n\n for (int i = 0; i < countOfDataSet; ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }\n }\n\n private static String getResult(String[] dataSets) {\n int[] lengths = new int[3];\n toIntArray(3, lengths, dataSets);\n Arrays.sort(lengths);\n\n if (isRightTriangle(lengths)) {\n return \"YES\";\n } else {\n return \"NO\";\n }\n }\n\n private static boolean isRightTriangle(int[] lengths) {\n if (lengths[2] * lengths[2] == lengths[0] * lengths[0] + lengths[1] * lengths[1]) {\n return true;\n }\n return false;\n }\n\n private static void toIntArray(int lengthOfArray, int[] intArray, String[] stringArray) {\n for (int i = 0; i < lengthOfArray; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n }\n\n private static int getInput(List<String[]> target) throws NumberFormatException, IOException {\n // 入力読取り\n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n\n String line = null;\n boolean isFirst = true;\n int numberOfDataSet = 0;\n\n try {\n while ((line = bufferedReader.readLine()) != null) {\n if (isFirst) {\n numberOfDataSet = Integer.parseInt(line);\n isFirst = false;\n } else {\n String[] lengths = line.split(DELIMITER_SPACE);\n target.add(lengths);\n }\n }\n return numberOfDataSet;\n } finally {\n bufferedReader.close();\n streamReader.close();\n }\n }\n}",
"public class Main {\n\n /** 区切り文字:スペース */\n private static final String DELIMITER_SPACE = \" \";\n\n /**\n * データセットで与えられた数を3辺とする三角形が直角三角形かを判断する。\n * \n * @param args\n * @throws IOException\n * @throws NumberFormatException\n */\n public static void main(String[] args) throws NumberFormatException, IOException {\n\n List<String[]> dataSets = new ArrayList<String[]>();\n int countOfDataSet = getInput(dataSets);\n\n for (int i = 0; i < countOfDataSet; ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }\n }\n\n private static String getResult(String[] dataSets) {\n int[] lengths = new int[3];\n toIntArray(3, lengths, dataSets);\n Arrays.sort(lengths);\n\n if (isRightTriangle(lengths)) {\n return \"YES\";\n } else {\n return \"NO\";\n }\n }\n\n private static boolean isRightTriangle(int[] lengths) {\n if (lengths[2] * lengths[2] == lengths[0] * lengths[0] + lengths[1] * lengths[1]) {\n return true;\n }\n return false;\n }\n\n private static void toIntArray(int lengthOfArray, int[] intArray, String[] stringArray) {\n for (int i = 0; i < lengthOfArray; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n }\n\n private static int getInput(List<String[]> target) throws NumberFormatException, IOException {\n // 入力読取り\n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n\n String line = null;\n boolean isFirst = true;\n int numberOfDataSet = 0;\n\n try {\n while ((line = bufferedReader.readLine()) != null) {\n if (isFirst) {\n numberOfDataSet = Integer.parseInt(line);\n isFirst = false;\n } else {\n String[] lengths = line.split(DELIMITER_SPACE);\n target.add(lengths);\n }\n }\n return numberOfDataSet;\n } finally {\n bufferedReader.close();\n streamReader.close();\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
/**
* 0003:Is it a Right Triangle?
*
* @author Lyu
* @version 2015/07/12
*/
public class Main {
/** 区切り文字:スペース */
private static final String DELIMITER_SPACE = " ";
/**
* データセットで与えられた数を3辺とする三角形が直角三角形かを判断する。
*
* @param args
* @throws IOException
* @throws NumberFormatException
*/
public static void main(String[] args) throws NumberFormatException, IOException {
List<String[]> dataSets = new ArrayList<String[]>();
int countOfDataSet = getInput(dataSets);
for (int i = 0; i < countOfDataSet; ++i) {
System.out.println(getResult(dataSets.get(i)));
}
}
private static String getResult(String[] dataSets) {
int[] lengths = new int[3];
toIntArray(3, lengths, dataSets);
Arrays.sort(lengths);
if (isRightTriangle(lengths)) {
return "YES";
} else {
return "NO";
}
}
private static boolean isRightTriangle(int[] lengths) {
if (lengths[2] * lengths[2] == lengths[0] * lengths[0] + lengths[1] * lengths[1]) {
return true;
}
return false;
}
private static void toIntArray(int lengthOfArray, int[] intArray, String[] stringArray) {
for (int i = 0; i < lengthOfArray; ++i) {
intArray[i] = Integer.parseInt(stringArray[i]);
}
}
private static int getInput(List<String[]> target) throws NumberFormatException, IOException {
// 入力読取り
InputStreamReader streamReader = new InputStreamReader(System.in);
BufferedReader bufferedReader = new BufferedReader(streamReader);
String line = null;
boolean isFirst = true;
int numberOfDataSet = 0;
try {
while ((line = bufferedReader.readLine()) != null) {
if (isFirst) {
numberOfDataSet = Integer.parseInt(line);
isFirst = false;
} else {
String[] lengths = line.split(DELIMITER_SPACE);
target.add(lengths);
}
}
return numberOfDataSet;
} finally {
bufferedReader.close();
streamReader.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,
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,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
20,
4,
18,
13,
13,
41,
13,
4,
18,
13,
2,
4,
18,
13,
4,
18,
4,
18,
13,
17,
17,
4,
18,
13,
4,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
4,
18,
13,
17,
14,
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
],
[
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
],
[
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,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
41,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
41,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
41,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
41,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
75,
84
],
[
74,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
85,
94
],
[
41,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
41,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
103,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
15,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\nimport java.math.*;\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n for(int i=0;i<count;i++) {\n String[] line = br.readLine().split(\" \");\n List<Integer> list = new ArrayList<Integer>();\n list.add(new Integer(line[0]));\n list.add(new Integer(line[1]));\n list.add(new Integer(line[2]));\n Collections.sort(list);\n double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); \n double ex = list.get(2).doubleValue();\n if(cor == ex) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n for(int i=0;i<count;i++) {\n String[] line = br.readLine().split(\" \");\n List<Integer> list = new ArrayList<Integer>();\n list.add(new Integer(line[0]));\n list.add(new Integer(line[1]));\n list.add(new Integer(line[2]));\n Collections.sort(list);\n double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); \n double ex = list.get(2).doubleValue();\n if(cor == ex) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n for(int i=0;i<count;i++) {\n String[] line = br.readLine().split(\" \");\n List<Integer> list = new ArrayList<Integer>();\n list.add(new Integer(line[0]));\n list.add(new Integer(line[1]));\n list.add(new Integer(line[2]));\n Collections.sort(list);\n double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); \n double ex = list.get(2).doubleValue();\n if(cor == ex) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n for(int i=0;i<count;i++) {\n String[] line = br.readLine().split(\" \");\n List<Integer> list = new ArrayList<Integer>();\n list.add(new Integer(line[0]));\n list.add(new Integer(line[1]));\n list.add(new Integer(line[2]));\n Collections.sort(list);\n double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); \n double ex = list.get(2).doubleValue();\n if(cor == ex) 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 count = Integer.parseInt(br.readLine());",
"count",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i=0;i<count;i++) {\n String[] line = br.readLine().split(\" \");\n List<Integer> list = new ArrayList<Integer>();\n list.add(new Integer(line[0]));\n list.add(new Integer(line[1]));\n list.add(new Integer(line[2]));\n Collections.sort(list);\n double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); \n double ex = list.get(2).doubleValue();\n if(cor == ex) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<count",
"i",
"count",
"i++",
"i++",
"i",
"{\n String[] line = br.readLine().split(\" \");\n List<Integer> list = new ArrayList<Integer>();\n list.add(new Integer(line[0]));\n list.add(new Integer(line[1]));\n list.add(new Integer(line[2]));\n Collections.sort(list);\n double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); \n double ex = list.get(2).doubleValue();\n if(cor == ex) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"{\n String[] line = br.readLine().split(\" \");\n List<Integer> list = new ArrayList<Integer>();\n list.add(new Integer(line[0]));\n list.add(new Integer(line[1]));\n list.add(new Integer(line[2]));\n Collections.sort(list);\n double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); \n double ex = list.get(2).doubleValue();\n if(cor == ex) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"String[] line = br.readLine().split(\" \");",
"line",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"List<Integer> list = new ArrayList<Integer>();",
"list",
"new ArrayList<Integer>()",
"list.add(new Integer(line[0]))",
"list.add",
"list",
"new Integer(line[0])",
"list.add(new Integer(line[1]))",
"list.add",
"list",
"new Integer(line[1])",
"list.add(new Integer(line[2]))",
"list.add",
"list",
"new Integer(line[2])",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2));",
"cor",
"Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2))",
"Math.sqrt",
"Math",
"Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)",
"Math.pow(list.get(0).doubleValue(),2)",
"Math.pow",
"Math",
"list.get(0).doubleValue()",
"list.get(0).doubleValue",
"list.get(0)",
"list.get",
"list",
"0",
"2",
"Math.pow(list.get(1).doubleValue(),2)",
"Math.pow",
"Math",
"list.get(1).doubleValue()",
"list.get(1).doubleValue",
"list.get(1)",
"list.get",
"list",
"1",
"2",
"double ex = list.get(2).doubleValue();",
"ex",
"list.get(2).doubleValue()",
"list.get(2).doubleValue",
"list.get(2)",
"list.get",
"list",
"2",
"if(cor == ex) System.out.println(\"YES\");\n else System.out.println(\"NO\");",
"cor == ex",
"cor",
"ex",
"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 Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n for(int i=0;i<count;i++) {\n String[] line = br.readLine().split(\" \");\n List<Integer> list = new ArrayList<Integer>();\n list.add(new Integer(line[0]));\n list.add(new Integer(line[1]));\n list.add(new Integer(line[2]));\n Collections.sort(list);\n double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); \n double ex = list.get(2).doubleValue();\n if(cor == ex) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n for(int i=0;i<count;i++) {\n String[] line = br.readLine().split(\" \");\n List<Integer> list = new ArrayList<Integer>();\n list.add(new Integer(line[0]));\n list.add(new Integer(line[1]));\n list.add(new Integer(line[2]));\n Collections.sort(list);\n double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2)); \n double ex = list.get(2).doubleValue();\n if(cor == ex) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
import java.math.*;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int count = Integer.parseInt(br.readLine());
for(int i=0;i<count;i++) {
String[] line = br.readLine().split(" ");
List<Integer> list = new ArrayList<Integer>();
list.add(new Integer(line[0]));
list.add(new Integer(line[1]));
list.add(new Integer(line[2]));
Collections.sort(list);
double cor = Math.sqrt(Math.pow(list.get(0).doubleValue(),2) + Math.pow(list.get(1).doubleValue(),2));
double ex = list.get(2).doubleValue();
if(cor == ex) 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,
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,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
105,
11
],
[
105,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
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
],
[
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
],
[
35,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
35,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
65,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
64,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
64,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
12,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i++){\n int a[] = new int[3];\n for (int j = 0; j < 3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if (a[0]*a[0] + a[1]*a[1] == a[2]*a[2]){\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",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i++){\n int a[] = new int[3];\n for (int j = 0; j < 3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if (a[0]*a[0] + a[1]*a[1] == a[2]*a[2]){\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 n = sc.nextInt();\n for (int i = 0; i < n; i++){\n int a[] = new int[3];\n for (int j = 0; j < 3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if (a[0]*a[0] + a[1]*a[1] == a[2]*a[2]){\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[] = new int[3];\n for (int j = 0; j < 3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if (a[0]*a[0] + a[1]*a[1] == a[2]*a[2]){\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[] = new int[3];\n for (int j = 0; j < 3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if (a[0]*a[0] + a[1]*a[1] == a[2]*a[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 a[] = new int[3];\n for (int j = 0; j < 3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if (a[0]*a[0] + a[1]*a[1] == a[2]*a[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"{\n int a[] = new int[3];\n for (int j = 0; j < 3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if (a[0]*a[0] + a[1]*a[1] == a[2]*a[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"int a[] = new int[3];",
"a",
"new int[3]",
"3",
"for (int j = 0; j < 3; j++){\n a[j] = sc.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n a[j] = sc.nextInt();\n }",
"{\n a[j] = sc.nextInt();\n }",
"a[j] = sc.nextInt()",
"a[j]",
"a",
"j",
"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 System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"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 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 n = sc.nextInt();\n for (int i = 0; i < n; i++){\n int a[] = new int[3];\n for (int j = 0; j < 3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if (a[0]*a[0] + a[1]*a[1] == a[2]*a[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) throws IOException {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i++){\n int a[] = new int[3];\n for (int j = 0; j < 3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if (a[0]*a[0] + a[1]*a[1] == a[2]*a[2]){\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;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws IOException {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 0; i < n; i++){
int a[] = new int[3];
for (int j = 0; j < 3; j++){
a[j] = 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,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
20,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
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,
41,
13,
4,
18,
13,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
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
],
[
118,
8
],
[
118,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
19,
25
],
[
25,
26
],
[
25,
27
],
[
19,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
37,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
37,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
37,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
79,
85
],
[
37,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
91,
93
],
[
88,
94
],
[
37,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
95,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
9,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
] | [
"import java.io.*;\nimport java.util.*;\npublic class Main{\n public static void main(String args[]){\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n try{\n String str=br.readLine();\n int n[]=new int[3];\n while((str=br.readLine())!=null){\n StringTokenizer st=new StringTokenizer(str);\n for(int i=0;i<=2;i++){\n n[i]=Integer.parseInt(st.nextToken());\n }\n Arrays.sort(n);\n int a=(int)Math.pow(n[0],2);\n int b=(int)Math.pow(n[1],2);\n int c=(int)Math.pow(n[2],2);\n if(a+b==c){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch(Exception ex){\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String args[]){\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n try{\n String str=br.readLine();\n int n[]=new int[3];\n while((str=br.readLine())!=null){\n StringTokenizer st=new StringTokenizer(str);\n for(int i=0;i<=2;i++){\n n[i]=Integer.parseInt(st.nextToken());\n }\n Arrays.sort(n);\n int a=(int)Math.pow(n[0],2);\n int b=(int)Math.pow(n[1],2);\n int c=(int)Math.pow(n[2],2);\n if(a+b==c){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch(Exception ex){\n }\n }\n}",
"Main",
"public static void main(String args[]){\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n try{\n String str=br.readLine();\n int n[]=new int[3];\n while((str=br.readLine())!=null){\n StringTokenizer st=new StringTokenizer(str);\n for(int i=0;i<=2;i++){\n n[i]=Integer.parseInt(st.nextToken());\n }\n Arrays.sort(n);\n int a=(int)Math.pow(n[0],2);\n int b=(int)Math.pow(n[1],2);\n int c=(int)Math.pow(n[2],2);\n if(a+b==c){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch(Exception ex){\n }\n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n try{\n String str=br.readLine();\n int n[]=new int[3];\n while((str=br.readLine())!=null){\n StringTokenizer st=new StringTokenizer(str);\n for(int i=0;i<=2;i++){\n n[i]=Integer.parseInt(st.nextToken());\n }\n Arrays.sort(n);\n int a=(int)Math.pow(n[0],2);\n int b=(int)Math.pow(n[1],2);\n int c=(int)Math.pow(n[2],2);\n if(a+b==c){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch(Exception ex){\n }\n }",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try{\n String str=br.readLine();\n int n[]=new int[3];\n while((str=br.readLine())!=null){\n StringTokenizer st=new StringTokenizer(str);\n for(int i=0;i<=2;i++){\n n[i]=Integer.parseInt(st.nextToken());\n }\n Arrays.sort(n);\n int a=(int)Math.pow(n[0],2);\n int b=(int)Math.pow(n[1],2);\n int c=(int)Math.pow(n[2],2);\n if(a+b==c){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch(Exception ex){\n }",
"catch(Exception ex){\n }",
"Exception ex",
"{\n }",
"{\n String str=br.readLine();\n int n[]=new int[3];\n while((str=br.readLine())!=null){\n StringTokenizer st=new StringTokenizer(str);\n for(int i=0;i<=2;i++){\n n[i]=Integer.parseInt(st.nextToken());\n }\n Arrays.sort(n);\n int a=(int)Math.pow(n[0],2);\n int b=(int)Math.pow(n[1],2);\n int c=(int)Math.pow(n[2],2);\n if(a+b==c){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }",
"String str=br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"int n[]=new int[3];",
"n",
"new int[3]",
"3",
"while((str=br.readLine())!=null){\n StringTokenizer st=new StringTokenizer(str);\n for(int i=0;i<=2;i++){\n n[i]=Integer.parseInt(st.nextToken());\n }\n Arrays.sort(n);\n int a=(int)Math.pow(n[0],2);\n int b=(int)Math.pow(n[1],2);\n int c=(int)Math.pow(n[2],2);\n if(a+b==c){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"(str=br.readLine())!=null",
"(str=br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n StringTokenizer st=new StringTokenizer(str);\n for(int i=0;i<=2;i++){\n n[i]=Integer.parseInt(st.nextToken());\n }\n Arrays.sort(n);\n int a=(int)Math.pow(n[0],2);\n int b=(int)Math.pow(n[1],2);\n int c=(int)Math.pow(n[2],2);\n if(a+b==c){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"StringTokenizer st=new StringTokenizer(str);",
"st",
"new StringTokenizer(str)",
"for(int i=0;i<=2;i++){\n n[i]=Integer.parseInt(st.nextToken());\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=2",
"i",
"2",
"i++",
"i++",
"i",
"{\n n[i]=Integer.parseInt(st.nextToken());\n }",
"{\n n[i]=Integer.parseInt(st.nextToken());\n }",
"n[i]=Integer.parseInt(st.nextToken())",
"n[i]",
"n",
"i",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"Arrays.sort(n)",
"Arrays.sort",
"Arrays",
"n",
"int a=(int)Math.pow(n[0],2);",
"a",
"(int)Math.pow(n[0],2)",
"Math.pow",
"Math",
"n[0]",
"n",
"0",
"2",
"int b=(int)Math.pow(n[1],2);",
"b",
"(int)Math.pow(n[1],2)",
"Math.pow",
"Math",
"n[1]",
"n",
"1",
"2",
"int c=(int)Math.pow(n[2],2);",
"c",
"(int)Math.pow(n[2],2)",
"Math.pow",
"Math",
"n[2]",
"n",
"2",
"2",
"if(a+b==c){\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\"",
"{\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 BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n try{\n String str=br.readLine();\n int n[]=new int[3];\n while((str=br.readLine())!=null){\n StringTokenizer st=new StringTokenizer(str);\n for(int i=0;i<=2;i++){\n n[i]=Integer.parseInt(st.nextToken());\n }\n Arrays.sort(n);\n int a=(int)Math.pow(n[0],2);\n int b=(int)Math.pow(n[1],2);\n int c=(int)Math.pow(n[2],2);\n if(a+b==c){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch(Exception ex){\n }\n }\n}",
"public class Main{\n public static void main(String args[]){\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n try{\n String str=br.readLine();\n int n[]=new int[3];\n while((str=br.readLine())!=null){\n StringTokenizer st=new StringTokenizer(str);\n for(int i=0;i<=2;i++){\n n[i]=Integer.parseInt(st.nextToken());\n }\n Arrays.sort(n);\n int a=(int)Math.pow(n[0],2);\n int b=(int)Math.pow(n[1],2);\n int c=(int)Math.pow(n[2],2);\n if(a+b==c){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }catch(Exception ex){\n }\n }\n}",
"Main"
] | import java.io.*;
import java.util.*;
public class Main{
public static void main(String args[]){
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
try{
String str=br.readLine();
int n[]=new int[3];
while((str=br.readLine())!=null){
StringTokenizer st=new StringTokenizer(str);
for(int i=0;i<=2;i++){
n[i]=Integer.parseInt(st.nextToken());
}
Arrays.sort(n);
int a=(int)Math.pow(n[0],2);
int b=(int)Math.pow(n[1],2);
int c=(int)Math.pow(n[2],2);
if(a+b==c){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}catch(Exception ex){
}
}
} |
[
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,
4,
13,
18,
13,
17,
18,
13,
17,
18,
13,
17,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
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
],
[
131,
14
],
[
131,
15
],
[
15,
16
],
[
15,
17
],
[
131,
18
],
[
18,
19
],
[
18,
20
],
[
131,
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
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
90,
92
],
[
81,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
81,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
21,
107
],
[
107,
108
],
[
131,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
109,
124
],
[
124,
125
],
[
109,
126
],
[
126,
127
],
[
109,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\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 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[] 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 (isRightTriangle(side[2], side[0], 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\n\t/**\n\t * 三辺の長さから、直角三角形であるかどうかを判定する。<br>\n\t * 注意:第一引数に最も長い辺を与えること。\n\t *\n\t * @param side1 辺1\n\t * @param side2 辺2\n\t * @param side3 辺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.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 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[] 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 (isRightTriangle(side[2], side[0], 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\n\t/**\n\t * 三辺の長さから、直角三角形であるかどうかを判定する。<br>\n\t * 注意:第一引数に最も長い辺を与えること。\n\t *\n\t * @param side1 辺1\n\t * @param side2 辺2\n\t * @param side3 辺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",
"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 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[] 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 (isRightTriangle(side[2], side[0], 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 (isRightTriangle(side[2], side[0], 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 (isRightTriangle(side[2], side[0], 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 (isRightTriangle(side[2], side[0], 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 (isRightTriangle(side[2], side[0], 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 (isRightTriangle(side[2], side[0], 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}",
"isRightTriangle(side[2], side[0], side[1])",
"isRightTriangle",
"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}",
"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",
"/**\n\t * 三辺の長さから、直角三角形であるかどうかを判定する。<br>\n\t * 注意:第一引数に最も長い辺を与えること。\n\t *\n\t * @param side1 辺1\n\t * @param side2 辺2\n\t * @param side3 辺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\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 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[] 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 (isRightTriangle(side[2], side[0], 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\n\t/**\n\t * 三辺の長さから、直角三角形であるかどうかを判定する。<br>\n\t * 注意:第一引数に最も長い辺を与えること。\n\t *\n\t * @param side1 辺1\n\t * @param side2 辺2\n\t * @param side3 辺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\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 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[] 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 (isRightTriangle(side[2], side[0], 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\n\t/**\n\t * 三辺の長さから、直角三角形であるかどうかを判定する。<br>\n\t * 注意:第一引数に最も長い辺を与えること。\n\t *\n\t * @param side1 辺1\n\t * @param side2 辺2\n\t * @param side3 辺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.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 NumberFormatException,
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 (isRightTriangle(side[2], side[0], side[1])) {
System.out.println(RIGHT_TRIANGLE);
} else {
System.out.println(NOT_RIGHT_TRIANGLE);
}
}
}
/**
* 三辺の長さから、直角三角形であるかどうかを判定する。<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,
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,
28,
13,
4,
18,
13,
17,
30,
30,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
125,
20
],
[
125,
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
],
[
56,
62
],
[
63,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
47,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
47,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
47,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
47,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
47,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
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
],
[
21,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.ArrayList;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int inputCount = Integer.parseInt(br.readLine());\n for( int i = 0; i < inputCount; i++) {\n String line = br.readLine();\n List<Integer> sideLengthList = new ArrayList<>();\n for( String s : line.split(\" \") ) {\n sideLengthList.add( Integer.parseInt(s) );\n }\n Collections.sort(sideLengthList, Collections.reverseOrder());\n int cSide = sideLengthList.get(0);\n int aSide = sideLengthList.get(1);\n int bSide = sideLengthList.get(2);\n if( cSide * cSide == aSide * aSide + bSide * bSide) {\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.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int inputCount = Integer.parseInt(br.readLine());\n for( int i = 0; i < inputCount; i++) {\n String line = br.readLine();\n List<Integer> sideLengthList = new ArrayList<>();\n for( String s : line.split(\" \") ) {\n sideLengthList.add( Integer.parseInt(s) );\n }\n Collections.sort(sideLengthList, Collections.reverseOrder());\n int cSide = sideLengthList.get(0);\n int aSide = sideLengthList.get(1);\n int bSide = sideLengthList.get(2);\n if( cSide * cSide == aSide * aSide + bSide * bSide) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int inputCount = Integer.parseInt(br.readLine());\n for( int i = 0; i < inputCount; i++) {\n String line = br.readLine();\n List<Integer> sideLengthList = new ArrayList<>();\n for( String s : line.split(\" \") ) {\n sideLengthList.add( Integer.parseInt(s) );\n }\n Collections.sort(sideLengthList, Collections.reverseOrder());\n int cSide = sideLengthList.get(0);\n int aSide = sideLengthList.get(1);\n int bSide = sideLengthList.get(2);\n if( cSide * cSide == aSide * aSide + bSide * bSide) {\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 inputCount = Integer.parseInt(br.readLine());\n for( int i = 0; i < inputCount; i++) {\n String line = br.readLine();\n List<Integer> sideLengthList = new ArrayList<>();\n for( String s : line.split(\" \") ) {\n sideLengthList.add( Integer.parseInt(s) );\n }\n Collections.sort(sideLengthList, Collections.reverseOrder());\n int cSide = sideLengthList.get(0);\n int aSide = sideLengthList.get(1);\n int bSide = sideLengthList.get(2);\n if( cSide * cSide == aSide * aSide + bSide * bSide) {\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 inputCount = Integer.parseInt(br.readLine());",
"inputCount",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for( int i = 0; i < inputCount; i++) {\n String line = br.readLine();\n List<Integer> sideLengthList = new ArrayList<>();\n for( String s : line.split(\" \") ) {\n sideLengthList.add( Integer.parseInt(s) );\n }\n Collections.sort(sideLengthList, Collections.reverseOrder());\n int cSide = sideLengthList.get(0);\n int aSide = sideLengthList.get(1);\n int bSide = sideLengthList.get(2);\n if( cSide * cSide == aSide * aSide + bSide * bSide) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < inputCount",
"i",
"inputCount",
"i++",
"i++",
"i",
"{\n String line = br.readLine();\n List<Integer> sideLengthList = new ArrayList<>();\n for( String s : line.split(\" \") ) {\n sideLengthList.add( Integer.parseInt(s) );\n }\n Collections.sort(sideLengthList, Collections.reverseOrder());\n int cSide = sideLengthList.get(0);\n int aSide = sideLengthList.get(1);\n int bSide = sideLengthList.get(2);\n if( cSide * cSide == aSide * aSide + bSide * bSide) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"{\n String line = br.readLine();\n List<Integer> sideLengthList = new ArrayList<>();\n for( String s : line.split(\" \") ) {\n sideLengthList.add( Integer.parseInt(s) );\n }\n Collections.sort(sideLengthList, Collections.reverseOrder());\n int cSide = sideLengthList.get(0);\n int aSide = sideLengthList.get(1);\n int bSide = sideLengthList.get(2);\n if( cSide * cSide == aSide * aSide + bSide * bSide) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"List<Integer> sideLengthList = new ArrayList<>();",
"sideLengthList",
"new ArrayList<>()",
"for( String s : line.split(\" \") ) {\n sideLengthList.add( Integer.parseInt(s) );\n }",
"String s",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"{\n sideLengthList.add( Integer.parseInt(s) );\n }",
"{\n sideLengthList.add( Integer.parseInt(s) );\n }",
"sideLengthList.add( Integer.parseInt(s) )",
"sideLengthList.add",
"sideLengthList",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"Collections.sort(sideLengthList, Collections.reverseOrder())",
"Collections.sort",
"Collections",
"sideLengthList",
"Collections.reverseOrder()",
"Collections.reverseOrder",
"Collections",
"int cSide = sideLengthList.get(0);",
"cSide",
"sideLengthList.get(0)",
"sideLengthList.get",
"sideLengthList",
"0",
"int aSide = sideLengthList.get(1);",
"aSide",
"sideLengthList.get(1)",
"sideLengthList.get",
"sideLengthList",
"1",
"int bSide = sideLengthList.get(2);",
"bSide",
"sideLengthList.get(2)",
"sideLengthList.get",
"sideLengthList",
"2",
"if( cSide * cSide == aSide * aSide + bSide * bSide) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }",
"cSide * cSide == aSide * aSide + bSide * bSide",
"cSide * cSide",
"cSide",
"cSide",
"aSide * aSide + bSide * bSide",
"aSide * aSide",
"aSide",
"aSide",
"bSide * bSide",
"bSide",
"bSide",
"{\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 BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int inputCount = Integer.parseInt(br.readLine());\n for( int i = 0; i < inputCount; i++) {\n String line = br.readLine();\n List<Integer> sideLengthList = new ArrayList<>();\n for( String s : line.split(\" \") ) {\n sideLengthList.add( Integer.parseInt(s) );\n }\n Collections.sort(sideLengthList, Collections.reverseOrder());\n int cSide = sideLengthList.get(0);\n int aSide = sideLengthList.get(1);\n int bSide = sideLengthList.get(2);\n if( cSide * cSide == aSide * aSide + bSide * bSide) {\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 Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int inputCount = Integer.parseInt(br.readLine());\n for( int i = 0; i < inputCount; i++) {\n String line = br.readLine();\n List<Integer> sideLengthList = new ArrayList<>();\n for( String s : line.split(\" \") ) {\n sideLengthList.add( Integer.parseInt(s) );\n }\n Collections.sort(sideLengthList, Collections.reverseOrder());\n int cSide = sideLengthList.get(0);\n int aSide = sideLengthList.get(1);\n int bSide = sideLengthList.get(2);\n if( cSide * cSide == aSide * aSide + bSide * bSide) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.Collections;
import java.util.List;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int inputCount = Integer.parseInt(br.readLine());
for( int i = 0; i < inputCount; i++) {
String line = br.readLine();
List<Integer> sideLengthList = new ArrayList<>();
for( String s : line.split(" ") ) {
sideLengthList.add( Integer.parseInt(s) );
}
Collections.sort(sideLengthList, Collections.reverseOrder());
int cSide = sideLengthList.get(0);
int aSide = sideLengthList.get(1);
int bSide = sideLengthList.get(2);
if( cSide * cSide == aSide * aSide + bSide * bSide) {
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,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
17,
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,
4,
18,
18,
13,
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,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
127,
5
],
[
127,
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
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
29,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
54,
65
],
[
66,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
75,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
29,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
119,
121
],
[
98,
122
],
[
98,
123
],
[
6,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
] | [
"import java.util.Scanner;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tint[] a = new int[3];\n\t\t\tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t\ta[j] = scanner.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j=1; j<3; j++)\n\t\t\t{\n\t\t\t\tif(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println( (a[0]*a[0]==a[1]*a[1]+a[2]*a[2]) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tint[] a = new int[3];\n\t\t\tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t\ta[j] = scanner.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j=1; j<3; j++)\n\t\t\t{\n\t\t\t\tif(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println( (a[0]*a[0]==a[1]*a[1]+a[2]*a[2]) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tint[] a = new int[3];\n\t\t\tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t\ta[j] = scanner.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j=1; j<3; j++)\n\t\t\t{\n\t\t\t\tif(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println( (a[0]*a[0]==a[1]*a[1]+a[2]*a[2]) ? \"YES\" : \"NO\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tint[] a = new int[3];\n\t\t\tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t\ta[j] = scanner.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j=1; j<3; j++)\n\t\t\t{\n\t\t\t\tif(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println( (a[0]*a[0]==a[1]*a[1]+a[2]*a[2]) ? \"YES\" : \"NO\");\n\t\t}\n\t}",
"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\t\t{\n\t\t\tint[] a = new int[3];\n\t\t\tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t\ta[j] = scanner.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j=1; j<3; j++)\n\t\t\t{\n\t\t\t\tif(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println( (a[0]*a[0]==a[1]*a[1]+a[2]*a[2]) ? \"YES\" : \"NO\");\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint[] a = new int[3];\n\t\t\tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t\ta[j] = scanner.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j=1; j<3; j++)\n\t\t\t{\n\t\t\t\tif(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println( (a[0]*a[0]==a[1]*a[1]+a[2]*a[2]) ? \"YES\" : \"NO\");\n\t\t}",
"{\n\t\t\tint[] a = new int[3];\n\t\t\tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t\ta[j] = scanner.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j=1; j<3; j++)\n\t\t\t{\n\t\t\t\tif(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println( (a[0]*a[0]==a[1]*a[1]+a[2]*a[2]) ? \"YES\" : \"NO\");\n\t\t}",
"int[] a = new int[3];",
"a",
"new int[3]",
"3",
"for(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t\ta[j] = scanner.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[j] = scanner.nextInt();\n\t\t\t}",
"{\n\t\t\t\ta[j] = scanner.nextInt();\n\t\t\t}",
"a[j] = scanner.nextInt()",
"a[j]",
"a",
"j",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int j=1; j<3; j++)\n\t\t\t{\n\t\t\t\tif(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}\n\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}\n\t\t\t}",
"if(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}",
"a[0] < a[j]",
"a[0]",
"a",
"0",
"a[j]",
"a",
"j",
"{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}",
"int buf = a[0];",
"buf",
"a[0]",
"a",
"0",
"a[0] = a[j]",
"a[0]",
"a",
"0",
"a[j]",
"a",
"j",
"a[j] = buf",
"a[j]",
"a",
"j",
"buf",
"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[0]",
"a",
"0",
"a[0]",
"a",
"0",
"a[1]*a[1]+a[2]*a[2]",
"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\"",
"String[] args",
"args",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tint[] a = new int[3];\n\t\t\tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t\ta[j] = scanner.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j=1; j<3; j++)\n\t\t\t{\n\t\t\t\tif(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println( (a[0]*a[0]==a[1]*a[1]+a[2]*a[2]) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tint[] a = new int[3];\n\t\t\tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t\ta[j] = scanner.nextInt();\n\t\t\t}\n\t\t\t\n\t\t\tfor(int j=1; j<3; j++)\n\t\t\t{\n\t\t\t\tif(a[0] < a[j])\n\t\t\t\t{\n\t\t\t\t\tint buf = a[0];\n\t\t\t\t\ta[0] = a[j];\n\t\t\t\t\ta[j] = buf;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println( (a[0]*a[0]==a[1]*a[1]+a[2]*a[2]) ? \"YES\" : \"NO\");\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 n = scanner.nextInt();
for(int i=0; i<n; i++)
{
int[] a = new int[3];
for(int j=0; j<3; j++)
{
a[j] = scanner.nextInt();
}
for(int j=1; j<3; j++)
{
if(a[0] < a[j])
{
int buf = a[0];
a[0] = a[j];
a[j] = buf;
}
}
System.out.println( (a[0]*a[0]==a[1]*a[1]+a[2]*a[2]) ? "YES" : "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,
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,
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
],
[
102,
8
],
[
102,
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
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
62,
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
],
[
9,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] | [
"import java.util.Scanner;\nimport java.util.Arrays;\n \npublic class Main\n{\n public static void main(String[] args)\n {\n\tScanner cin = new Scanner(System.in);\n\tint N = cin.nextInt();\n\tfor(int i=1; i<=N; i++){\n\t\tint[] len = new int[3];\n\t\tfor(int j=0; j<3; j++){ len[j] = cin.nextInt();}\n\t\tArrays.sort(len);\n\t\tif(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println(\"YES\");} else{System.out.println(\"NO\");}\n\t}\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main\n{\n public static void main(String[] args)\n {\n\tScanner cin = new Scanner(System.in);\n\tint N = cin.nextInt();\n\tfor(int i=1; i<=N; i++){\n\t\tint[] len = new int[3];\n\t\tfor(int j=0; j<3; j++){ len[j] = cin.nextInt();}\n\t\tArrays.sort(len);\n\t\tif(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println(\"YES\");} else{System.out.println(\"NO\");}\n\t}\n }\n}",
"Main",
"public static void main(String[] args)\n {\n\tScanner cin = new Scanner(System.in);\n\tint N = cin.nextInt();\n\tfor(int i=1; i<=N; i++){\n\t\tint[] len = new int[3];\n\t\tfor(int j=0; j<3; j++){ len[j] = cin.nextInt();}\n\t\tArrays.sort(len);\n\t\tif(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println(\"YES\");} else{System.out.println(\"NO\");}\n\t}\n }",
"main",
"{\n\tScanner cin = new Scanner(System.in);\n\tint N = cin.nextInt();\n\tfor(int i=1; i<=N; i++){\n\t\tint[] len = new int[3];\n\t\tfor(int j=0; j<3; j++){ len[j] = cin.nextInt();}\n\t\tArrays.sort(len);\n\t\tif(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println(\"YES\");} else{System.out.println(\"NO\");}\n\t}\n }",
"Scanner cin = new Scanner(System.in);",
"cin",
"new Scanner(System.in)",
"int N = cin.nextInt();",
"N",
"cin.nextInt()",
"cin.nextInt",
"cin",
"for(int i=1; i<=N; i++){\n\t\tint[] len = new int[3];\n\t\tfor(int j=0; j<3; j++){ len[j] = cin.nextInt();}\n\t\tArrays.sort(len);\n\t\tif(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println(\"YES\");} else{System.out.println(\"NO\");}\n\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\tint[] len = new int[3];\n\t\tfor(int j=0; j<3; j++){ len[j] = cin.nextInt();}\n\t\tArrays.sort(len);\n\t\tif(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println(\"YES\");} else{System.out.println(\"NO\");}\n\t}",
"{\n\t\tint[] len = new int[3];\n\t\tfor(int j=0; j<3; j++){ len[j] = cin.nextInt();}\n\t\tArrays.sort(len);\n\t\tif(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println(\"YES\");} else{System.out.println(\"NO\");}\n\t}",
"int[] len = new int[3];",
"len",
"new int[3]",
"3",
"for(int j=0; j<3; j++){ len[j] = cin.nextInt();}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{ len[j] = cin.nextInt();}",
"{ len[j] = cin.nextInt();}",
"len[j] = cin.nextInt()",
"len[j]",
"len",
"j",
"cin.nextInt()",
"cin.nextInt",
"cin",
"Arrays.sort(len)",
"Arrays.sort",
"Arrays",
"len",
"if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println(\"YES\");} else{System.out.println(\"NO\");}",
"len[0]*len[0] + len[1]*len[1] == len[2]*len[2]",
"len[0]*len[0] + len[1]*len[1]",
"len[0]*len[0]",
"len[0]",
"len",
"0",
"len[0]",
"len",
"0",
"len[1]*len[1]",
"len[1]",
"len",
"1",
"len[1]",
"len",
"1",
"len[2]*len[2]",
"len[2]",
"len",
"2",
"len[2]",
"len",
"2",
"{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 class Main\n{\n public static void main(String[] args)\n {\n\tScanner cin = new Scanner(System.in);\n\tint N = cin.nextInt();\n\tfor(int i=1; i<=N; i++){\n\t\tint[] len = new int[3];\n\t\tfor(int j=0; j<3; j++){ len[j] = cin.nextInt();}\n\t\tArrays.sort(len);\n\t\tif(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println(\"YES\");} else{System.out.println(\"NO\");}\n\t}\n }\n}",
"public class Main\n{\n public static void main(String[] args)\n {\n\tScanner cin = new Scanner(System.in);\n\tint N = cin.nextInt();\n\tfor(int i=1; i<=N; i++){\n\t\tint[] len = new int[3];\n\t\tfor(int j=0; j<3; j++){ len[j] = cin.nextInt();}\n\t\tArrays.sort(len);\n\t\tif(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]){System.out.println(\"YES\");} else{System.out.println(\"NO\");}\n\t}\n }\n}",
"Main"
] | import java.util.Scanner;
import java.util.Arrays;
public class Main
{
public static void main(String[] args)
{
Scanner cin = new Scanner(System.in);
int N = cin.nextInt();
for(int i=1; i<=N; i++){
int[] len = new int[3];
for(int j=0; j<3; j++){ len[j] = cin.nextInt();}
Arrays.sort(len);
if(len[0]*len[0] + len[1]*len[1] == len[2]*len[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,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
20,
17,
41,
13,
4,
18,
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,
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,
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,
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
],
[
136,
14
],
[
136,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
17,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
17,
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
],
[
53,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
53,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
67,
76
],
[
53,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
79,
88
],
[
53,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
91,
100
],
[
53,
101
],
[
101,
102
],
[
103,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
103,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
111,
113
],
[
103,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
101,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
101,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
15,
133
],
[
133,
134
],
[
0,
135
],
[
135,
136
],
[
135,
137
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n PrintWriter out = new PrintWriter(System.out);\n String line;\n String[] numList = new String[2];\n int n = Integer.parseInt(br.readLine());\n for(int i=0; i<n; i++) {\n line = br.readLine();\n numList = line.split(\" \");\n double num0 = Math.pow(Double.parseDouble(numList[0]), 2);\n double num1 = Math.pow(Double.parseDouble(numList[1]), 2);\n double num2 = Math.pow(Double.parseDouble(numList[2]), 2);\n if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\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.io.PrintWriter;",
"PrintWriter",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n PrintWriter out = new PrintWriter(System.out);\n String line;\n String[] numList = new String[2];\n int n = Integer.parseInt(br.readLine());\n for(int i=0; i<n; i++) {\n line = br.readLine();\n numList = line.split(\" \");\n double num0 = Math.pow(Double.parseDouble(numList[0]), 2);\n double num1 = Math.pow(Double.parseDouble(numList[1]), 2);\n double num2 = Math.pow(Double.parseDouble(numList[2]), 2);\n if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {\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 InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n PrintWriter out = new PrintWriter(System.out);\n String line;\n String[] numList = new String[2];\n int n = Integer.parseInt(br.readLine());\n for(int i=0; i<n; i++) {\n line = br.readLine();\n numList = line.split(\" \");\n double num0 = Math.pow(Double.parseDouble(numList[0]), 2);\n double num1 = Math.pow(Double.parseDouble(numList[1]), 2);\n double num2 = Math.pow(Double.parseDouble(numList[2]), 2);\n if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }\n }",
"main",
"{\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n PrintWriter out = new PrintWriter(System.out);\n String line;\n String[] numList = new String[2];\n int n = Integer.parseInt(br.readLine());\n for(int i=0; i<n; i++) {\n line = br.readLine();\n numList = line.split(\" \");\n double num0 = Math.pow(Double.parseDouble(numList[0]), 2);\n double num1 = Math.pow(Double.parseDouble(numList[1]), 2);\n double num2 = Math.pow(Double.parseDouble(numList[2]), 2);\n if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }\n }",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"String line;",
"line",
"String[] numList = new String[2];",
"numList",
"new String[2]",
"2",
"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 line = br.readLine();\n numList = line.split(\" \");\n double num0 = Math.pow(Double.parseDouble(numList[0]), 2);\n double num1 = Math.pow(Double.parseDouble(numList[1]), 2);\n double num2 = Math.pow(Double.parseDouble(numList[2]), 2);\n if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {\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 line = br.readLine();\n numList = line.split(\" \");\n double num0 = Math.pow(Double.parseDouble(numList[0]), 2);\n double num1 = Math.pow(Double.parseDouble(numList[1]), 2);\n double num2 = Math.pow(Double.parseDouble(numList[2]), 2);\n if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }",
"{\n line = br.readLine();\n numList = line.split(\" \");\n double num0 = Math.pow(Double.parseDouble(numList[0]), 2);\n double num1 = Math.pow(Double.parseDouble(numList[1]), 2);\n double num2 = Math.pow(Double.parseDouble(numList[2]), 2);\n if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"numList = line.split(\" \")",
"numList",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"double num0 = Math.pow(Double.parseDouble(numList[0]), 2);",
"num0",
"Math.pow(Double.parseDouble(numList[0]), 2)",
"Math.pow",
"Math",
"Double.parseDouble(numList[0])",
"Double.parseDouble",
"Double",
"numList[0]",
"numList",
"0",
"2",
"double num1 = Math.pow(Double.parseDouble(numList[1]), 2);",
"num1",
"Math.pow(Double.parseDouble(numList[1]), 2)",
"Math.pow",
"Math",
"Double.parseDouble(numList[1])",
"Double.parseDouble",
"Double",
"numList[1]",
"numList",
"1",
"2",
"double num2 = Math.pow(Double.parseDouble(numList[2]), 2);",
"num2",
"Math.pow(Double.parseDouble(numList[2]), 2)",
"Math.pow",
"Math",
"Double.parseDouble(numList[2])",
"Double.parseDouble",
"Double",
"numList[2]",
"numList",
"2",
"2",
"if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }",
"(num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)",
"(num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)",
"(num2 == num0 + num1)",
"num2",
"num0 + num1",
"num0",
"num1",
"(num0 == num1 + num2)",
"num0",
"num1 + num2",
"num1",
"num2",
"(num1 == num0 + num2)",
"num1",
"num0 + num2",
"num0",
"num2",
"{\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 InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n PrintWriter out = new PrintWriter(System.out);\n String line;\n String[] numList = new String[2];\n int n = Integer.parseInt(br.readLine());\n for(int i=0; i<n; i++) {\n line = br.readLine();\n numList = line.split(\" \");\n double num0 = Math.pow(Double.parseDouble(numList[0]), 2);\n double num1 = Math.pow(Double.parseDouble(numList[1]), 2);\n double num2 = Math.pow(Double.parseDouble(numList[2]), 2);\n if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {\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 InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n PrintWriter out = new PrintWriter(System.out);\n String line;\n String[] numList = new String[2];\n int n = Integer.parseInt(br.readLine());\n for(int i=0; i<n; i++) {\n line = br.readLine();\n numList = line.split(\" \");\n double num0 = Math.pow(Double.parseDouble(numList[0]), 2);\n double num1 = Math.pow(Double.parseDouble(numList[1]), 2);\n double num2 = Math.pow(Double.parseDouble(numList[2]), 2);\n if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {\n System.out.println(\"YES\");\n }else {\n System.out.println(\"NO\");\n }\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
PrintWriter out = new PrintWriter(System.out);
String line;
String[] numList = new String[2];
int n = Integer.parseInt(br.readLine());
for(int i=0; i<n; i++) {
line = br.readLine();
numList = line.split(" ");
double num0 = Math.pow(Double.parseDouble(numList[0]), 2);
double num1 = Math.pow(Double.parseDouble(numList[1]), 2);
double num2 = Math.pow(Double.parseDouble(numList[2]), 2);
if ((num2 == num0 + num1) || (num0 == num1 + num2) || (num1 == num0 + num2)) {
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,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
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
] | [
[
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
],
[
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
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
21,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
21,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
21,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
52,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
65,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
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
],
[
6,
98
],
[
98,
99
]
] | [
"import java.util.Scanner;\n\nclass Main{\n\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint length = sc.nextInt();\n\n\t\twhile(sc.hasNext()){\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\n\t\t\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\n\t\tif(a2 + b2 == c2) {\n\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\t\telse if(b2 + c2 == a2){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t\telse if(a2 + c2 == b2) {\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\n\t\telse {\n\t\tSystem.out.println(\"NO\");\n\t\t}\n\t\t}\n\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint length = sc.nextInt();\n\n\t\twhile(sc.hasNext()){\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\n\t\t\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\n\t\tif(a2 + b2 == c2) {\n\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\t\telse if(b2 + c2 == a2){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t\telse if(a2 + c2 == b2) {\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\n\t\telse {\n\t\tSystem.out.println(\"NO\");\n\t\t}\n\t\t}\n\n\n\t}\n\n}",
"Main",
"public static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint length = sc.nextInt();\n\n\t\twhile(sc.hasNext()){\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\n\t\t\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\n\t\tif(a2 + b2 == c2) {\n\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\t\telse if(b2 + c2 == a2){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t\telse if(a2 + c2 == b2) {\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\n\t\telse {\n\t\tSystem.out.println(\"NO\");\n\t\t}\n\t\t}\n\n\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint length = sc.nextInt();\n\n\t\twhile(sc.hasNext()){\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\n\t\t\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\n\t\tif(a2 + b2 == c2) {\n\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\t\telse if(b2 + c2 == a2){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t\telse if(a2 + c2 == b2) {\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\n\t\telse {\n\t\tSystem.out.println(\"NO\");\n\t\t}\n\t\t}\n\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int length = sc.nextInt();",
"length",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(sc.hasNext()){\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\n\t\t\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\n\t\tif(a2 + b2 == c2) {\n\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\t\telse if(b2 + c2 == a2){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t\telse if(a2 + c2 == b2) {\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\n\t\telse {\n\t\tSystem.out.println(\"NO\");\n\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\n\t\t\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\n\t\tif(a2 + b2 == c2) {\n\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\t\telse if(b2 + c2 == a2){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t\telse if(a2 + c2 == b2) {\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\n\t\telse {\n\t\tSystem.out.println(\"NO\");\n\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",
"int a2 = a * a;",
"a2",
"a * a",
"a",
"a",
"int b2 = b * b;",
"b2",
"b * b",
"b",
"b",
"int c2 = c * c;",
"c2",
"c * c",
"c",
"c",
"if(a2 + b2 == c2) {\n\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\t\telse if(b2 + c2 == a2){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t\telse if(a2 + c2 == b2) {\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\n\t\telse {\n\t\tSystem.out.println(\"NO\");\n\t\t}",
"a2 + b2 == c2",
"a2 + b2",
"a2",
"b2",
"c2",
"{\n\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"if(b2 + c2 == a2){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t\telse if(a2 + c2 == b2) {\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\n\t\telse {\n\t\tSystem.out.println(\"NO\");\n\t\t}",
"b2 + c2 == a2",
"b2 + c2",
"b2",
"c2",
"a2",
"{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"if(a2 + c2 == b2) {\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}\n\n\t\telse {\n\t\tSystem.out.println(\"NO\");\n\t\t}",
"a2 + c2 == b2",
"a2 + c2",
"a2",
"c2",
"b2",
"{\n\t\t\tSystem.out.println(\"YES\");\n\n\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\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.Scanner;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int length = sc.nextInt();
while(sc.hasNext()){
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int a2 = a * a;
int b2 = b * b;
int c2 = c * c;
if(a2 + b2 == c2) {
System.out.println("YES");
}
else if(b2 + c2 == a2){
System.out.println("YES");
}
else if(a2 + c2 == b2) {
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,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
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
] | [
[
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
],
[
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
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
44,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
52,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
44,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
44,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
90,
96
],
[
81,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
100,
102
],
[
97,
103
],
[
80,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
80,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
18,
116
],
[
116,
117
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\nimport java.util.Arrays;\nclass Main {\n \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 for(int i=0;i<n;i++){\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int array[] =new int[3];\n for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());\n Arrays.sort(array);\n if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))\n System.out.println(\"YES\");\n else System.out.println(\"NO\");\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.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"class Main {\n \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 for(int i=0;i<n;i++){\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int array[] =new int[3];\n for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());\n Arrays.sort(array);\n if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))\n System.out.println(\"YES\");\n else 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 for(int i=0;i<n;i++){\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int array[] =new int[3];\n for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());\n Arrays.sort(array);\n if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))\n System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }",
"main",
"{\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int array[] =new int[3];\n for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());\n Arrays.sort(array);\n if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))\n 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 StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int array[] =new int[3];\n for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());\n Arrays.sort(array);\n if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))\n 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 StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int array[] =new int[3];\n for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());\n Arrays.sort(array);\n if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))\n System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"{\n StringTokenizer st=new StringTokenizer(br.readLine(),\" \");\n int array[] =new int[3];\n for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());\n Arrays.sort(array);\n if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))\n System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"StringTokenizer st=new StringTokenizer(br.readLine(),\" \");",
"st",
"new StringTokenizer(br.readLine(),\" \")",
"int array[] =new int[3];",
"array",
"new int[3]",
"3",
"for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());",
"int j=0;",
"int j=0;",
"j",
"0",
"j<array.length",
"j",
"array.length",
"array",
"array.length",
"j++",
"j++",
"j",
"array[j]=Integer.parseInt(st.nextToken());",
"array[j]=Integer.parseInt(st.nextToken())",
"array[j]",
"array",
"j",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"Arrays.sort(array)",
"Arrays.sort",
"Arrays",
"array",
"if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2))\n System.out.println(\"YES\");\n else System.out.println(\"NO\");",
"Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 2)",
"Math.pow(array[0],2)+Math.pow(array[1],2)",
"Math.pow(array[0],2)",
"Math.pow",
"Math",
"array[0]",
"array",
"0",
"2",
"Math.pow(array[1],2)",
"Math.pow",
"Math",
"array[1]",
"array",
"1",
"2",
"Math.pow(array[2], 2)",
"Math.pow",
"Math",
"array[2]",
"array",
"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"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
import java.util.Arrays;
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++){
StringTokenizer st=new StringTokenizer(br.readLine()," ");
int array[] =new int[3];
for(int j=0;j<array.length;j++) array[j]=Integer.parseInt(st.nextToken());
Arrays.sort(array);
if(Math.pow(array[0],2)+Math.pow(array[1],2)==Math.pow(array[2], 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,
12,
13,
30,
41,
13,
4,
13,
28,
13,
13,
30,
30,
41,
13,
4,
13,
13,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
2,
13,
17,
4,
18,
13,
2,
4,
18,
13,
17,
30,
29,
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,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
20,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
30,
28,
13,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
17,
30,
9,
41,
13,
4,
18,
13,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
29,
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
],
[
20,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
22,
25
],
[
26,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
29,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
32,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
15,
48
],
[
48,
49
],
[
13,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
55,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
62,
66
],
[
53,
67
],
[
67,
68
],
[
68,
69
],
[
52,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
52,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
52,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
52,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
52,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
101,
103
],
[
92,
104
],
[
104,
105
],
[
105,
106
],
[
52,
107
],
[
107,
108
],
[
50,
109
],
[
109,
110
],
[
13,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
117,
119
],
[
113,
120
],
[
120,
121
],
[
120,
122
],
[
113,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
123,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
123,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
138,
149
],
[
150,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
151,
154
],
[
154,
155
],
[
155,
156
],
[
113,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
158,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
162,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
169,
173
],
[
168,
174
],
[
174,
175
],
[
162,
176
],
[
176,
177
],
[
176,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
162,
182
],
[
182,
183
],
[
182,
184
],
[
162,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
192,
194
],
[
185,
195
],
[
195,
196
],
[
196,
197
],
[
185,
198
],
[
199,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
202,
204
],
[
199,
205
],
[
205,
206
],
[
206,
207
],
[
205,
208
],
[
208,
209
],
[
209,
210
],
[
208,
211
],
[
211,
212
],
[
212,
213
],
[
162,
214
],
[
214,
215
],
[
215,
216
],
[
214,
217
],
[
113,
218
],
[
218,
219
]
] | [
"\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.Scanner;\n\n class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// get user input\n\t\tList<List<Integer>> userInputs = getUserInputs();\n\t\tfor (List<Integer> triangleSides : userInputs) {\n\t\t\t// check whether triagle is rightAngleTriable or not\n\t\t\tboolean isRightAngleTrangle = isRightAngleTraingle(triangleSides);\n\t\t\tif (isRightAngleTrangle) {\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\n\tprivate static boolean isRightAngleTraingle(List<Integer> intList) {\n\t\tif(intList == null || intList.isEmpty() || intList.size() != 3){\n\t\t\treturn false;\n\t\t}\n\t\tCollections.sort(intList);\n\t\t\n\t\tint aSide = intList.get(0);\n\t\tint bSide = intList.get(1);\n\t\tint cSide = intList.get(2);\n\t\tif ((cSide * cSide) == ((aSide * aSide) + (bSide * bSide))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\t\n\tprivate static List<List<Integer>> getUserInputs() {\n\t\tint repetation = 0;\n\t\tList<List<Integer>> returnList = new ArrayList<>();\n\n\t\t// get user input\n\t\tList<String> userList = new ArrayList<String>();\n\t\t{\n\t\t\tScanner in = new Scanner(System.in);\n\t\t\tString sNum = in.nextLine();\n\t\t\trepetation = Integer.parseInt(sNum);\n\t\t\t\n\t\t\tfor (int i = 0; i < repetation; i++) {\n\t\t\t\tuserList.add(in.nextLine());\n\t\t\t}\n\t\t}\n\t\t// convert string into Integer\n\t\t{\n\n\t\t\tfor (String input : userList) {\n\t\t\t\tinput = input.trim();\n\t\t\t\tif(input.length() == 0){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString array[] = input.split(\"\\\\s+\");\n\t\t\t\tArrayList<Integer> intList = new ArrayList<Integer>();\n\t\t\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\t\t\tString num = array[i];\t\t\t\t\t\n\t\t\t\t\tintList.add(Integer.parseInt(num.trim()));\n\t\t\t\t}\n\t\t\t\treturnList.add(intList);\n\t\t\t}\n\t\t}\n\t\treturn returnList;\n\t}\n\n}",
"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",
"class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// get user input\n\t\tList<List<Integer>> userInputs = getUserInputs();\n\t\tfor (List<Integer> triangleSides : userInputs) {\n\t\t\t// check whether triagle is rightAngleTriable or not\n\t\t\tboolean isRightAngleTrangle = isRightAngleTraingle(triangleSides);\n\t\t\tif (isRightAngleTrangle) {\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\n\tprivate static boolean isRightAngleTraingle(List<Integer> intList) {\n\t\tif(intList == null || intList.isEmpty() || intList.size() != 3){\n\t\t\treturn false;\n\t\t}\n\t\tCollections.sort(intList);\n\t\t\n\t\tint aSide = intList.get(0);\n\t\tint bSide = intList.get(1);\n\t\tint cSide = intList.get(2);\n\t\tif ((cSide * cSide) == ((aSide * aSide) + (bSide * bSide))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}\n\n\t\n\tprivate static List<List<Integer>> getUserInputs() {\n\t\tint repetation = 0;\n\t\tList<List<Integer>> returnList = new ArrayList<>();\n\n\t\t// get user input\n\t\tList<String> userList = new ArrayList<String>();\n\t\t{\n\t\t\tScanner in = new Scanner(System.in);\n\t\t\tString sNum = in.nextLine();\n\t\t\trepetation = Integer.parseInt(sNum);\n\t\t\t\n\t\t\tfor (int i = 0; i < repetation; i++) {\n\t\t\t\tuserList.add(in.nextLine());\n\t\t\t}\n\t\t}\n\t\t// convert string into Integer\n\t\t{\n\n\t\t\tfor (String input : userList) {\n\t\t\t\tinput = input.trim();\n\t\t\t\tif(input.length() == 0){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString array[] = input.split(\"\\\\s+\");\n\t\t\t\tArrayList<Integer> intList = new ArrayList<Integer>();\n\t\t\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\t\t\tString num = array[i];\t\t\t\t\t\n\t\t\t\t\tintList.add(Integer.parseInt(num.trim()));\n\t\t\t\t}\n\t\t\t\treturnList.add(intList);\n\t\t\t}\n\t\t}\n\t\treturn returnList;\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\t// get user input\n\t\tList<List<Integer>> userInputs = getUserInputs();\n\t\tfor (List<Integer> triangleSides : userInputs) {\n\t\t\t// check whether triagle is rightAngleTriable or not\n\t\t\tboolean isRightAngleTrangle = isRightAngleTraingle(triangleSides);\n\t\t\tif (isRightAngleTrangle) {\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\t// get user input\n\t\tList<List<Integer>> userInputs = getUserInputs();\n\t\tfor (List<Integer> triangleSides : userInputs) {\n\t\t\t// check whether triagle is rightAngleTriable or not\n\t\t\tboolean isRightAngleTrangle = isRightAngleTraingle(triangleSides);\n\t\t\tif (isRightAngleTrangle) {\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}",
"List<List<Integer>> userInputs = getUserInputs();",
"userInputs",
"getUserInputs()",
"getUserInputs",
"for (List<Integer> triangleSides : userInputs) {\n\t\t\t// check whether triagle is rightAngleTriable or not\n\t\t\tboolean isRightAngleTrangle = isRightAngleTraingle(triangleSides);\n\t\t\tif (isRightAngleTrangle) {\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}",
"List<Integer> triangleSides",
"userInputs",
"{\n\t\t\t// check whether triagle is rightAngleTriable or not\n\t\t\tboolean isRightAngleTrangle = isRightAngleTraingle(triangleSides);\n\t\t\tif (isRightAngleTrangle) {\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\t// check whether triagle is rightAngleTriable or not\n\t\t\tboolean isRightAngleTrangle = isRightAngleTraingle(triangleSides);\n\t\t\tif (isRightAngleTrangle) {\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}",
"boolean isRightAngleTrangle = isRightAngleTraingle(triangleSides);",
"isRightAngleTrangle",
"isRightAngleTraingle(triangleSides)",
"isRightAngleTraingle",
"triangleSides",
"if (isRightAngleTrangle) {\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}",
"isRightAngleTrangle",
"{\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 isRightAngleTraingle(List<Integer> intList) {\n\t\tif(intList == null || intList.isEmpty() || intList.size() != 3){\n\t\t\treturn false;\n\t\t}\n\t\tCollections.sort(intList);\n\t\t\n\t\tint aSide = intList.get(0);\n\t\tint bSide = intList.get(1);\n\t\tint cSide = intList.get(2);\n\t\tif ((cSide * cSide) == ((aSide * aSide) + (bSide * bSide))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"isRightAngleTraingle",
"{\n\t\tif(intList == null || intList.isEmpty() || intList.size() != 3){\n\t\t\treturn false;\n\t\t}\n\t\tCollections.sort(intList);\n\t\t\n\t\tint aSide = intList.get(0);\n\t\tint bSide = intList.get(1);\n\t\tint cSide = intList.get(2);\n\t\tif ((cSide * cSide) == ((aSide * aSide) + (bSide * bSide))) {\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"if(intList == null || intList.isEmpty() || intList.size() != 3){\n\t\t\treturn false;\n\t\t}",
"intList == null || intList.isEmpty() || intList.size() != 3",
"intList == null || intList.isEmpty() || intList.size() != 3",
"intList == null",
"intList",
"null",
"intList.isEmpty()",
"intList.isEmpty",
"intList",
"intList.size() != 3",
"intList.size()",
"intList.size",
"intList",
"3",
"{\n\t\t\treturn false;\n\t\t}",
"return false;",
"false",
"Collections.sort(intList)",
"Collections.sort",
"Collections",
"intList",
"int aSide = intList.get(0);",
"aSide",
"intList.get(0)",
"intList.get",
"intList",
"0",
"int bSide = intList.get(1);",
"bSide",
"intList.get(1)",
"intList.get",
"intList",
"1",
"int cSide = intList.get(2);",
"cSide",
"intList.get(2)",
"intList.get",
"intList",
"2",
"if ((cSide * cSide) == ((aSide * aSide) + (bSide * bSide))) {\n\t\t\treturn true;\n\t\t}",
"(cSide * cSide) == ((aSide * aSide) + (bSide * bSide))",
"(cSide * cSide)",
"cSide",
"cSide",
"((aSide * aSide) + (bSide * bSide))",
"(aSide * aSide)",
"aSide",
"aSide",
"(bSide * bSide)",
"bSide",
"bSide",
"{\n\t\t\treturn true;\n\t\t}",
"return true;",
"true",
"return false;",
"false",
"List<Integer> intList",
"intList",
"private static List<List<Integer>> getUserInputs() {\n\t\tint repetation = 0;\n\t\tList<List<Integer>> returnList = new ArrayList<>();\n\n\t\t// get user input\n\t\tList<String> userList = new ArrayList<String>();\n\t\t{\n\t\t\tScanner in = new Scanner(System.in);\n\t\t\tString sNum = in.nextLine();\n\t\t\trepetation = Integer.parseInt(sNum);\n\t\t\t\n\t\t\tfor (int i = 0; i < repetation; i++) {\n\t\t\t\tuserList.add(in.nextLine());\n\t\t\t}\n\t\t}\n\t\t// convert string into Integer\n\t\t{\n\n\t\t\tfor (String input : userList) {\n\t\t\t\tinput = input.trim();\n\t\t\t\tif(input.length() == 0){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString array[] = input.split(\"\\\\s+\");\n\t\t\t\tArrayList<Integer> intList = new ArrayList<Integer>();\n\t\t\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\t\t\tString num = array[i];\t\t\t\t\t\n\t\t\t\t\tintList.add(Integer.parseInt(num.trim()));\n\t\t\t\t}\n\t\t\t\treturnList.add(intList);\n\t\t\t}\n\t\t}\n\t\treturn returnList;\n\t}",
"getUserInputs",
"{\n\t\tint repetation = 0;\n\t\tList<List<Integer>> returnList = new ArrayList<>();\n\n\t\t// get user input\n\t\tList<String> userList = new ArrayList<String>();\n\t\t{\n\t\t\tScanner in = new Scanner(System.in);\n\t\t\tString sNum = in.nextLine();\n\t\t\trepetation = Integer.parseInt(sNum);\n\t\t\t\n\t\t\tfor (int i = 0; i < repetation; i++) {\n\t\t\t\tuserList.add(in.nextLine());\n\t\t\t}\n\t\t}\n\t\t// convert string into Integer\n\t\t{\n\n\t\t\tfor (String input : userList) {\n\t\t\t\tinput = input.trim();\n\t\t\t\tif(input.length() == 0){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString array[] = input.split(\"\\\\s+\");\n\t\t\t\tArrayList<Integer> intList = new ArrayList<Integer>();\n\t\t\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\t\t\tString num = array[i];\t\t\t\t\t\n\t\t\t\t\tintList.add(Integer.parseInt(num.trim()));\n\t\t\t\t}\n\t\t\t\treturnList.add(intList);\n\t\t\t}\n\t\t}\n\t\treturn returnList;\n\t}",
"int repetation = 0;",
"repetation",
"0",
"List<List<Integer>> returnList = new ArrayList<>();",
"returnList",
"new ArrayList<>()",
"List<String> userList = new ArrayList<String>();",
"userList",
"new ArrayList<String>()",
"{\n\t\t\tScanner in = new Scanner(System.in);\n\t\t\tString sNum = in.nextLine();\n\t\t\trepetation = Integer.parseInt(sNum);\n\t\t\t\n\t\t\tfor (int i = 0; i < repetation; i++) {\n\t\t\t\tuserList.add(in.nextLine());\n\t\t\t}\n\t\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"String sNum = in.nextLine();",
"sNum",
"in.nextLine()",
"in.nextLine",
"in",
"repetation = Integer.parseInt(sNum)",
"repetation",
"Integer.parseInt(sNum)",
"Integer.parseInt",
"Integer",
"sNum",
"for (int i = 0; i < repetation; i++) {\n\t\t\t\tuserList.add(in.nextLine());\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < repetation",
"i",
"repetation",
"i++",
"i++",
"i",
"{\n\t\t\t\tuserList.add(in.nextLine());\n\t\t\t}",
"{\n\t\t\t\tuserList.add(in.nextLine());\n\t\t\t}",
"userList.add(in.nextLine())",
"userList.add",
"userList",
"in.nextLine()",
"in.nextLine",
"in",
"{\n\n\t\t\tfor (String input : userList) {\n\t\t\t\tinput = input.trim();\n\t\t\t\tif(input.length() == 0){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString array[] = input.split(\"\\\\s+\");\n\t\t\t\tArrayList<Integer> intList = new ArrayList<Integer>();\n\t\t\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\t\t\tString num = array[i];\t\t\t\t\t\n\t\t\t\t\tintList.add(Integer.parseInt(num.trim()));\n\t\t\t\t}\n\t\t\t\treturnList.add(intList);\n\t\t\t}\n\t\t}",
"for (String input : userList) {\n\t\t\t\tinput = input.trim();\n\t\t\t\tif(input.length() == 0){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString array[] = input.split(\"\\\\s+\");\n\t\t\t\tArrayList<Integer> intList = new ArrayList<Integer>();\n\t\t\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\t\t\tString num = array[i];\t\t\t\t\t\n\t\t\t\t\tintList.add(Integer.parseInt(num.trim()));\n\t\t\t\t}\n\t\t\t\treturnList.add(intList);\n\t\t\t}",
"String input",
"userList",
"{\n\t\t\t\tinput = input.trim();\n\t\t\t\tif(input.length() == 0){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString array[] = input.split(\"\\\\s+\");\n\t\t\t\tArrayList<Integer> intList = new ArrayList<Integer>();\n\t\t\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\t\t\tString num = array[i];\t\t\t\t\t\n\t\t\t\t\tintList.add(Integer.parseInt(num.trim()));\n\t\t\t\t}\n\t\t\t\treturnList.add(intList);\n\t\t\t}",
"{\n\t\t\t\tinput = input.trim();\n\t\t\t\tif(input.length() == 0){\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tString array[] = input.split(\"\\\\s+\");\n\t\t\t\tArrayList<Integer> intList = new ArrayList<Integer>();\n\t\t\t\tfor (int i = 0; i < array.length; i++) {\n\t\t\t\t\tString num = array[i];\t\t\t\t\t\n\t\t\t\t\tintList.add(Integer.parseInt(num.trim()));\n\t\t\t\t}\n\t\t\t\treturnList.add(intList);\n\t\t\t}",
"input = input.trim()",
"input",
"input.trim()",
"input.trim",
"input",
"if(input.length() == 0){\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"input.length() == 0",
"input.length()",
"input.length",
"input",
"0",
"{\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"continue;",
"String array[] = input.split(\"\\\\s+\");",
"array",
"input.split(\"\\\\s+\")",
"input.split",
"input",
"\"\\\\s+\"",
"ArrayList<Integer> intList = new ArrayList<Integer>();",
"intList",
"new ArrayList<Integer>()",
"for (int i = 0; i < array.length; i++) {\n\t\t\t\t\tString num = array[i];\t\t\t\t\t\n\t\t\t\t\tintList.add(Integer.parseInt(num.trim()));\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < array.length",
"i",
"array.length",
"array",
"array.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tString num = array[i];\t\t\t\t\t\n\t\t\t\t\tintList.add(Integer.parseInt(num.trim()));\n\t\t\t\t}",
"{\n\t\t\t\t\tString num = array[i];\t\t\t\t\t\n\t\t\t\t\tintList.add(Integer.parseInt(num.trim()));\n\t\t\t\t}",
"String num = array[i];",
"num",
"array[i]",
"array",
"i",
"intList.add(Integer.parseInt(num.trim()))",
"intList.add",
"intList",
"Integer.parseInt(num.trim())",
"Integer.parseInt",
"Integer",
"num.trim()",
"num.trim",
"num",
"returnList.add(intList)",
"returnList.add",
"returnList",
"intList",
"return returnList;",
"returnList"
] |
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
// get user input
List<List<Integer>> userInputs = getUserInputs();
for (List<Integer> triangleSides : userInputs) {
// check whether triagle is rightAngleTriable or not
boolean isRightAngleTrangle = isRightAngleTraingle(triangleSides);
if (isRightAngleTrangle) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
private static boolean isRightAngleTraingle(List<Integer> intList) {
if(intList == null || intList.isEmpty() || intList.size() != 3){
return false;
}
Collections.sort(intList);
int aSide = intList.get(0);
int bSide = intList.get(1);
int cSide = intList.get(2);
if ((cSide * cSide) == ((aSide * aSide) + (bSide * bSide))) {
return true;
}
return false;
}
private static List<List<Integer>> getUserInputs() {
int repetation = 0;
List<List<Integer>> returnList = new ArrayList<>();
// get user input
List<String> userList = new ArrayList<String>();
{
Scanner in = new Scanner(System.in);
String sNum = in.nextLine();
repetation = Integer.parseInt(sNum);
for (int i = 0; i < repetation; i++) {
userList.add(in.nextLine());
}
}
// convert string into Integer
{
for (String input : userList) {
input = input.trim();
if(input.length() == 0){
continue;
}
String array[] = input.split("\\s+");
ArrayList<Integer> intList = new ArrayList<Integer>();
for (int i = 0; i < array.length; i++) {
String num = array[i];
intList.add(Integer.parseInt(num.trim()));
}
returnList.add(intList);
}
}
return returnList;
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
42,
4,
13,
30,
23,
13,
12,
13,
30,
14,
40,
4,
18,
13,
29,
17,
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,
4,
13,
29,
17,
12,
13,
30,
14,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
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,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
157,
5
],
[
157,
6
],
[
6,
7
],
[
6,
8
],
[
157,
9
],
[
9,
10
],
[
157,
11
],
[
11,
12
],
[
157,
13
],
[
13,
14
],
[
157,
15
],
[
15,
16
],
[
157,
17
],
[
17,
18
],
[
157,
19
],
[
19,
20
],
[
157,
21
],
[
21,
22
],
[
157,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
23,
30
],
[
30,
31
],
[
157,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
35,
40
],
[
40,
41
],
[
34,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
34,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
59,
75
],
[
75,
76
],
[
34,
77
],
[
77,
78
],
[
157,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
84,
91
],
[
91,
92
],
[
91,
93
],
[
82,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
97,
99
],
[
94,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
94,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
107,
109
],
[
94,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
110,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
110,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
126,
128
],
[
123,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
130,
135
],
[
123,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
139,
141
],
[
136,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
136,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
0,
156
],
[
156,
157
],
[
156,
158
]
] | [
"import java.util.*;\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static int n, a, b, c;\n static int A,B,C;\n public static void main(String[] args) {\n while(read()){\n\n }\n }\n\n static boolean read(){\n if(!sc.hasNext())return false;\n n = sc.nextInt();\n for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n solve();\n }\n return true;\n }\n\n static void solve(){\n if(a != 0 && b != 0 && c!= 0){\n A = a * a;\n B = b * b;\n C = c * c;\n if(A == B + C){\n System.out.println(\"YES\");\n }else if(B == A + C){\n System.out.println(\"YES\");\n }else if(C == A + B){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static int n, a, b, c;\n static int A,B,C;\n public static void main(String[] args) {\n while(read()){\n\n }\n }\n\n static boolean read(){\n if(!sc.hasNext())return false;\n n = sc.nextInt();\n for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n solve();\n }\n return true;\n }\n\n static void solve(){\n if(a != 0 && b != 0 && c!= 0){\n A = a * a;\n B = b * b;\n C = c * c;\n if(A == B + C){\n System.out.println(\"YES\");\n }else if(B == A + C){\n System.out.println(\"YES\");\n }else if(C == A + B){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"static int n",
"n",
"a",
"a",
"b",
"b",
"c;",
"c",
"static int A",
"A",
"B",
"B",
"C;",
"C",
"public static void main(String[] args) {\n while(read()){\n\n }\n }",
"main",
"{\n while(read()){\n\n }\n }",
"while(read()){\n\n }",
"read()",
"read",
"{\n\n }",
"String[] args",
"args",
"static boolean read(){\n if(!sc.hasNext())return false;\n n = sc.nextInt();\n for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n solve();\n }\n return true;\n }",
"read",
"{\n if(!sc.hasNext())return false;\n n = sc.nextInt();\n for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n solve();\n }\n return true;\n }",
"if(!sc.hasNext())return false;",
"!sc.hasNext()",
"sc.hasNext()",
"sc.hasNext",
"sc",
"return false;",
"false",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n solve();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n solve();\n }",
"{\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n solve();\n }",
"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",
"solve()",
"solve",
"return true;",
"true",
"static void solve(){\n if(a != 0 && b != 0 && c!= 0){\n A = a * a;\n B = b * b;\n C = c * c;\n if(A == B + C){\n System.out.println(\"YES\");\n }else if(B == A + C){\n System.out.println(\"YES\");\n }else if(C == A + B){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }",
"solve",
"{\n if(a != 0 && b != 0 && c!= 0){\n A = a * a;\n B = b * b;\n C = c * c;\n if(A == B + C){\n System.out.println(\"YES\");\n }else if(B == A + C){\n System.out.println(\"YES\");\n }else if(C == A + B){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }",
"if(a != 0 && b != 0 && c!= 0){\n A = a * a;\n B = b * b;\n C = c * c;\n if(A == B + C){\n System.out.println(\"YES\");\n }else if(B == A + C){\n System.out.println(\"YES\");\n }else if(C == A + B){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"a != 0 && b != 0 && c!= 0",
"a != 0 && b != 0 && c!= 0",
"a != 0",
"a",
"0",
"b != 0",
"b",
"0",
"c!= 0",
"c",
"0",
"{\n A = a * a;\n B = b * b;\n C = c * c;\n if(A == B + C){\n System.out.println(\"YES\");\n }else if(B == A + C){\n System.out.println(\"YES\");\n }else if(C == A + B){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"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 System.out.println(\"YES\");\n }else if(B == A + C){\n System.out.println(\"YES\");\n }else if(C == A + B){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"A == B + C",
"A",
"B + C",
"B",
"C",
"{\n System.out.println(\"YES\");\n }",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"if(B == A + C){\n System.out.println(\"YES\");\n }else if(C == A + B){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"B == A + C",
"B",
"A + C",
"A",
"C",
"{\n System.out.println(\"YES\");\n }",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"if(C == A + B){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"C == A + B",
"C",
"A + B",
"A",
"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\"",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static int n, a, b, c;\n static int A,B,C;\n public static void main(String[] args) {\n while(read()){\n\n }\n }\n\n static boolean read(){\n if(!sc.hasNext())return false;\n n = sc.nextInt();\n for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n solve();\n }\n return true;\n }\n\n static void solve(){\n if(a != 0 && b != 0 && c!= 0){\n A = a * a;\n B = b * b;\n C = c * c;\n if(A == B + C){\n System.out.println(\"YES\");\n }else if(B == A + C){\n System.out.println(\"YES\");\n }else if(C == A + B){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n\n}",
"public class Main {\n static Scanner sc = new Scanner(System.in);\n static int n, a, b, c;\n static int A,B,C;\n public static void main(String[] args) {\n while(read()){\n\n }\n }\n\n static boolean read(){\n if(!sc.hasNext())return false;\n n = sc.nextInt();\n for(int i = 0; i < n; i++){\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n solve();\n }\n return true;\n }\n\n static void solve(){\n if(a != 0 && b != 0 && c!= 0){\n A = a * a;\n B = b * b;\n C = c * c;\n if(A == B + C){\n System.out.println(\"YES\");\n }else if(B == A + C){\n System.out.println(\"YES\");\n }else if(C == A + B){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n\n}",
"Main"
] | import java.util.*;
public class Main {
static Scanner sc = new Scanner(System.in);
static int n, a, b, c;
static int A,B,C;
public static void main(String[] args) {
while(read()){
}
}
static boolean read(){
if(!sc.hasNext())return false;
n = sc.nextInt();
for(int i = 0; i < n; i++){
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
solve();
}
return true;
}
static void solve(){
if(a != 0 && b != 0 && c!= 0){
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
0,
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,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
124,
14
],
[
124,
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
],
[
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
],
[
44,
53
],
[
53,
54
],
[
44,
55
],
[
55,
56
],
[
55,
57
],
[
44,
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
],
[
44,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
44,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
84,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
104,
106
],
[
83,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
83,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
15,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main {\n public static void main(String[] args) throws java.io.IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n int N = Integer.parseInt(line);\n for (int i=0; i<N; i++){\n String l = br.readLine();\n Scanner sc = new Scanner(l);\n \n int a[];\n a = new int[3];\n for (int j=0; j<3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n}",
"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",
"public class Main {\n public static void main(String[] args) throws java.io.IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n int N = Integer.parseInt(line);\n for (int i=0; i<N; i++){\n String l = br.readLine();\n Scanner sc = new Scanner(l);\n \n int a[];\n a = new int[3];\n for (int j=0; j<3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws java.io.IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n int N = Integer.parseInt(line);\n for (int i=0; i<N; i++){\n String l = br.readLine();\n Scanner sc = new Scanner(l);\n \n int a[];\n a = new int[3];\n for (int j=0; j<3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){\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 line = br.readLine();\n int N = Integer.parseInt(line);\n for (int i=0; i<N; i++){\n String l = br.readLine();\n Scanner sc = new Scanner(l);\n \n int a[];\n a = new int[3];\n for (int j=0; j<3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){\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 line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"int N = Integer.parseInt(line);",
"N",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"for (int i=0; i<N; i++){\n String l = br.readLine();\n Scanner sc = new Scanner(l);\n \n int a[];\n a = new int[3];\n for (int j=0; j<3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[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 String l = br.readLine();\n Scanner sc = new Scanner(l);\n \n int a[];\n a = new int[3];\n for (int j=0; j<3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"{\n String l = br.readLine();\n Scanner sc = new Scanner(l);\n \n int a[];\n a = new int[3];\n for (int j=0; j<3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"String l = br.readLine();",
"l",
"br.readLine()",
"br.readLine",
"br",
"Scanner sc = new Scanner(l);",
"sc",
"new Scanner(l)",
"int a[];",
"a",
"a = new int[3]",
"a",
"new int[3]",
"3",
"for (int j=0; j<3; j++){\n a[j] = sc.nextInt();\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n a[j] = sc.nextInt();\n }",
"{\n a[j] = sc.nextInt();\n }",
"a[j] = sc.nextInt()",
"a[j]",
"a",
"j",
"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 System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"(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 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 java.io.IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n int N = Integer.parseInt(line);\n for (int i=0; i<N; i++){\n String l = br.readLine();\n Scanner sc = new Scanner(l);\n \n int a[];\n a = new int[3];\n for (int j=0; j<3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[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) throws java.io.IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n int N = Integer.parseInt(line);\n for (int i=0; i<N; i++){\n String l = br.readLine();\n Scanner sc = new Scanner(l);\n \n int a[];\n a = new int[3];\n for (int j=0; j<3; j++){\n a[j] = sc.nextInt();\n }\n Arrays.sort(a);\n if ((a[0]*a[0] + a[1]*a[1]) == a[2]*a[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws java.io.IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
int N = Integer.parseInt(line);
for (int i=0; i<N; i++){
String l = br.readLine();
Scanner sc = new Scanner(l);
int a[];
a = new int[3];
for (int j=0; j<3; j++){
a[j] = 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,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
17,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
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,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
14,
2,
18,
13,
13,
18,
13,
13,
0,
13,
13,
0,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
14,
2,
18,
13,
13,
18,
13,
13,
0,
18,
13,
40,
13,
13,
14,
2,
2,
18,
13,
13,
18,
13,
13,
2,
2,
18,
13,
18,
13,
17,
18,
13,
18,
13,
17,
2,
18,
13,
18,
13,
17,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
204,
14
],
[
204,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
17,
30
],
[
30,
31
],
[
30,
32
],
[
17,
34
],
[
34,
35
],
[
34,
36
],
[
17,
37
],
[
37,
38
],
[
17,
39
],
[
39,
40
],
[
17,
41
],
[
41,
42
],
[
17,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
17,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
17,
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
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
66,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
93,
94
],
[
66,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
102,
103
],
[
103,
104
],
[
66,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
114,
115
],
[
105,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
125,
127
],
[
66,
128
],
[
128,
129
],
[
128,
130
],
[
66,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
131,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
148,
150
],
[
143,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
151,
156
],
[
66,
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
],
[
168,
170
],
[
170,
171
],
[
170,
172
],
[
167,
173
],
[
173,
174
],
[
173,
175
],
[
175,
176
],
[
175,
177
],
[
166,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
181,
182
],
[
181,
183
],
[
178,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
186,
188
],
[
157,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
189,
194
],
[
157,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
195,
200
],
[
15,
201
],
[
201,
202
],
[
0,
203
],
[
203,
204
],
[
203,
205
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\tpublic static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);\n\t\tString str = \"\";\n\t\tStringTokenizer st;\n\t\tint num[] = new int[3];\n\t\tint index[] = new int[2];\n\t\tint max = 0, i, j, k;\n\t\t\n\t\tstr = br.readLine();\n\t\tint datasets = Integer.parseInt(str);\n\t\t\n\t\tfor (i = 0; i < datasets; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tst = new StringTokenizer(str, \" \");\n\t\t\tnum[0] = Integer.parseInt(st.nextToken());\n\t\t\tnum[1] = Integer.parseInt(st.nextToken());\n\t\t\tnum[2] = Integer.parseInt(st.nextToken());\n\t\t\tfor (j =0; j < 3; j++) \n\t if(num[max] < num[j]) max = j;\n\t\t\tk = 0;\n\t\t\tfor (j = 0; j < 3; j++) \n\t if(num[j] != num[max]) index[k++] = j;\n\t\t\tif ((num[max] * num[max]) == (num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]]))\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}",
"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\tpublic static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);\n\t\tString str = \"\";\n\t\tStringTokenizer st;\n\t\tint num[] = new int[3];\n\t\tint index[] = new int[2];\n\t\tint max = 0, i, j, k;\n\t\t\n\t\tstr = br.readLine();\n\t\tint datasets = Integer.parseInt(str);\n\t\t\n\t\tfor (i = 0; i < datasets; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tst = new StringTokenizer(str, \" \");\n\t\t\tnum[0] = Integer.parseInt(st.nextToken());\n\t\t\tnum[1] = Integer.parseInt(st.nextToken());\n\t\t\tnum[2] = Integer.parseInt(st.nextToken());\n\t\t\tfor (j =0; j < 3; j++) \n\t if(num[max] < num[j]) max = j;\n\t\t\tk = 0;\n\t\t\tfor (j = 0; j < 3; j++) \n\t if(num[j] != num[max]) index[k++] = j;\n\t\t\tif ((num[max] * num[max]) == (num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]]))\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}",
"Main",
"public static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);\n\t\tString str = \"\";\n\t\tStringTokenizer st;\n\t\tint num[] = new int[3];\n\t\tint index[] = new int[2];\n\t\tint max = 0, i, j, k;\n\t\t\n\t\tstr = br.readLine();\n\t\tint datasets = Integer.parseInt(str);\n\t\t\n\t\tfor (i = 0; i < datasets; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tst = new StringTokenizer(str, \" \");\n\t\t\tnum[0] = Integer.parseInt(st.nextToken());\n\t\t\tnum[1] = Integer.parseInt(st.nextToken());\n\t\t\tnum[2] = Integer.parseInt(st.nextToken());\n\t\t\tfor (j =0; j < 3; j++) \n\t if(num[max] < num[j]) max = j;\n\t\t\tk = 0;\n\t\t\tfor (j = 0; j < 3; j++) \n\t if(num[j] != num[max]) index[k++] = j;\n\t\t\tif ((num[max] * num[max]) == (num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]]))\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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);\n\t\tString str = \"\";\n\t\tStringTokenizer st;\n\t\tint num[] = new int[3];\n\t\tint index[] = new int[2];\n\t\tint max = 0, i, j, k;\n\t\t\n\t\tstr = br.readLine();\n\t\tint datasets = Integer.parseInt(str);\n\t\t\n\t\tfor (i = 0; i < datasets; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tst = new StringTokenizer(str, \" \");\n\t\t\tnum[0] = Integer.parseInt(st.nextToken());\n\t\t\tnum[1] = Integer.parseInt(st.nextToken());\n\t\t\tnum[2] = Integer.parseInt(st.nextToken());\n\t\t\tfor (j =0; j < 3; j++) \n\t if(num[max] < num[j]) max = j;\n\t\t\tk = 0;\n\t\t\tfor (j = 0; j < 3; j++) \n\t if(num[j] != num[max]) index[k++] = j;\n\t\t\tif ((num[max] * num[max]) == (num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]]))\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}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);",
"br",
"new BufferedReader(new InputStreamReader(System.in), 1)",
"String str = \"\";",
"str",
"\"\"",
"StringTokenizer st;",
"st",
"int num[] = new int[3];",
"num",
"new int[3]",
"3",
"int index[] = new int[2];",
"index",
"new int[2]",
"2",
"int max = 0",
"max",
"0",
"i",
"i",
"j",
"j",
"k;",
"k",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"int datasets = Integer.parseInt(str);",
"datasets",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"for (i = 0; i < datasets; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tst = new StringTokenizer(str, \" \");\n\t\t\tnum[0] = Integer.parseInt(st.nextToken());\n\t\t\tnum[1] = Integer.parseInt(st.nextToken());\n\t\t\tnum[2] = Integer.parseInt(st.nextToken());\n\t\t\tfor (j =0; j < 3; j++) \n\t if(num[max] < num[j]) max = j;\n\t\t\tk = 0;\n\t\t\tfor (j = 0; j < 3; j++) \n\t if(num[j] != num[max]) index[k++] = j;\n\t\t\tif ((num[max] * num[max]) == (num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]]))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < datasets",
"i",
"datasets",
"i++",
"i++",
"i",
"{\n\t\t\tstr = br.readLine();\n\t\t\tst = new StringTokenizer(str, \" \");\n\t\t\tnum[0] = Integer.parseInt(st.nextToken());\n\t\t\tnum[1] = Integer.parseInt(st.nextToken());\n\t\t\tnum[2] = Integer.parseInt(st.nextToken());\n\t\t\tfor (j =0; j < 3; j++) \n\t if(num[max] < num[j]) max = j;\n\t\t\tk = 0;\n\t\t\tfor (j = 0; j < 3; j++) \n\t if(num[j] != num[max]) index[k++] = j;\n\t\t\tif ((num[max] * num[max]) == (num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]]))\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\tstr = br.readLine();\n\t\t\tst = new StringTokenizer(str, \" \");\n\t\t\tnum[0] = Integer.parseInt(st.nextToken());\n\t\t\tnum[1] = Integer.parseInt(st.nextToken());\n\t\t\tnum[2] = Integer.parseInt(st.nextToken());\n\t\t\tfor (j =0; j < 3; j++) \n\t if(num[max] < num[j]) max = j;\n\t\t\tk = 0;\n\t\t\tfor (j = 0; j < 3; j++) \n\t if(num[j] != num[max]) index[k++] = j;\n\t\t\tif ((num[max] * num[max]) == (num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]]))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"st = new StringTokenizer(str, \" \")",
"st",
"new StringTokenizer(str, \" \")",
"num[0] = Integer.parseInt(st.nextToken())",
"num[0]",
"num",
"0",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"num[1] = Integer.parseInt(st.nextToken())",
"num[1]",
"num",
"1",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"num[2] = Integer.parseInt(st.nextToken())",
"num[2]",
"num",
"2",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"for (j =0; j < 3; j++) \n\t if(num[max] < num[j]) max = j;",
"j =0;",
"j =0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"if(num[max] < num[j]) max = j;",
"if(num[max] < num[j]) max = j;",
"num[max] < num[j]",
"num[max]",
"num",
"max",
"num[j]",
"num",
"j",
"max = j",
"max",
"j",
"k = 0",
"k",
"0",
"for (j = 0; j < 3; j++) \n\t if(num[j] != num[max]) index[k++] = j;",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"if(num[j] != num[max]) index[k++] = j;",
"if(num[j] != num[max]) index[k++] = j;",
"num[j] != num[max]",
"num[j]",
"num",
"j",
"num[max]",
"num",
"max",
"index[k++] = j",
"index[k++]",
"index",
"k++",
"k",
"j",
"if ((num[max] * num[max]) == (num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]]))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");",
"(num[max] * num[max]) == (num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]])",
"(num[max] * num[max])",
"num[max]",
"num",
"max",
"num[max]",
"num",
"max",
"(num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]])",
"num[index[0]] * num[index[0]]",
"num[index[0]]",
"num",
"index[0]",
"index",
"0",
"num[index[0]]",
"num",
"index[0]",
"index",
"0",
"num[index[1]] * num[index[1]]",
"num[index[1]]",
"num",
"index[1]",
"index",
"1",
"num[index[1]]",
"num",
"index[1]",
"index",
"1",
"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[] a",
"a",
"public class Main {\n\tpublic static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);\n\t\tString str = \"\";\n\t\tStringTokenizer st;\n\t\tint num[] = new int[3];\n\t\tint index[] = new int[2];\n\t\tint max = 0, i, j, k;\n\t\t\n\t\tstr = br.readLine();\n\t\tint datasets = Integer.parseInt(str);\n\t\t\n\t\tfor (i = 0; i < datasets; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tst = new StringTokenizer(str, \" \");\n\t\t\tnum[0] = Integer.parseInt(st.nextToken());\n\t\t\tnum[1] = Integer.parseInt(st.nextToken());\n\t\t\tnum[2] = Integer.parseInt(st.nextToken());\n\t\t\tfor (j =0; j < 3; j++) \n\t if(num[max] < num[j]) max = j;\n\t\t\tk = 0;\n\t\t\tfor (j = 0; j < 3; j++) \n\t if(num[j] != num[max]) index[k++] = j;\n\t\t\tif ((num[max] * num[max]) == (num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]]))\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}",
"public class Main {\n\tpublic static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);\n\t\tString str = \"\";\n\t\tStringTokenizer st;\n\t\tint num[] = new int[3];\n\t\tint index[] = new int[2];\n\t\tint max = 0, i, j, k;\n\t\t\n\t\tstr = br.readLine();\n\t\tint datasets = Integer.parseInt(str);\n\t\t\n\t\tfor (i = 0; i < datasets; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tst = new StringTokenizer(str, \" \");\n\t\t\tnum[0] = Integer.parseInt(st.nextToken());\n\t\t\tnum[1] = Integer.parseInt(st.nextToken());\n\t\t\tnum[2] = Integer.parseInt(st.nextToken());\n\t\t\tfor (j =0; j < 3; j++) \n\t if(num[max] < num[j]) max = j;\n\t\t\tk = 0;\n\t\t\tfor (j = 0; j < 3; j++) \n\t if(num[j] != num[max]) index[k++] = j;\n\t\t\tif ((num[max] * num[max]) == (num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]]))\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}",
"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[] a) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);
String str = "";
StringTokenizer st;
int num[] = new int[3];
int index[] = new int[2];
int max = 0, i, j, k;
str = br.readLine();
int datasets = Integer.parseInt(str);
for (i = 0; i < datasets; i++) {
str = br.readLine();
st = new StringTokenizer(str, " ");
num[0] = Integer.parseInt(st.nextToken());
num[1] = Integer.parseInt(st.nextToken());
num[2] = Integer.parseInt(st.nextToken());
for (j =0; j < 3; j++)
if(num[max] < num[j]) max = j;
k = 0;
for (j = 0; j < 3; j++)
if(num[j] != num[max]) index[k++] = j;
if ((num[max] * num[max]) == (num[index[0]] * num[index[0]] + num[index[1]] * num[index[1]]))
System.out.println("YES");
else
System.out.println("NO");
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
0,
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,
39,
17,
17,
17,
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,
17,
4,
18,
18,
18,
13,
13,
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,
4,
18,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
109,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
16,
19
],
[
19,
20
],
[
20,
21
],
[
10,
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
],
[
37,
38
],
[
37,
39
],
[
37,
40
],
[
34,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
58,
67
],
[
34,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
68,
75
],
[
34,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
85,
87
],
[
76,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
76,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
10,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
8,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tprivate static Scanner scan;\n\tpublic static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint a[] = {0,0,0};\n\t\t\tfor (int j = 0;j <3;j++){\n\t\t\t\ta[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);\n\t\t\t}\n\t\t\tjava.util.Arrays.sort(a);\n\t\t\tif(a[0]+a[1]==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\tSystem.exit(0);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tprivate static Scanner scan;\n\tpublic static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint a[] = {0,0,0};\n\t\t\tfor (int j = 0;j <3;j++){\n\t\t\t\ta[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);\n\t\t\t}\n\t\t\tjava.util.Arrays.sort(a);\n\t\t\tif(a[0]+a[1]==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\tSystem.exit(0);\n\t}\n}",
"Main",
"private static Scanner scan;",
"scan",
"public static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint a[] = {0,0,0};\n\t\t\tfor (int j = 0;j <3;j++){\n\t\t\t\ta[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);\n\t\t\t}\n\t\t\tjava.util.Arrays.sort(a);\n\t\t\tif(a[0]+a[1]==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\tSystem.exit(0);\n\t}",
"main",
"{\n\t\tscan = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint a[] = {0,0,0};\n\t\t\tfor (int j = 0;j <3;j++){\n\t\t\t\ta[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);\n\t\t\t}\n\t\t\tjava.util.Arrays.sort(a);\n\t\t\tif(a[0]+a[1]==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\tSystem.exit(0);\n\t}",
"scan = new Scanner(System.in)",
"scan",
"new Scanner(System.in)",
"int n = Integer.parseInt(scan.next());",
"n",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"for(int i = 0;i < n;i++){\n\t\t\tint a[] = {0,0,0};\n\t\t\tfor (int j = 0;j <3;j++){\n\t\t\t\ta[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);\n\t\t\t}\n\t\t\tjava.util.Arrays.sort(a);\n\t\t\tif(a[0]+a[1]==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 < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint a[] = {0,0,0};\n\t\t\tfor (int j = 0;j <3;j++){\n\t\t\t\ta[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);\n\t\t\t}\n\t\t\tjava.util.Arrays.sort(a);\n\t\t\tif(a[0]+a[1]==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[] = {0,0,0};\n\t\t\tfor (int j = 0;j <3;j++){\n\t\t\t\ta[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);\n\t\t\t}\n\t\t\tjava.util.Arrays.sort(a);\n\t\t\tif(a[0]+a[1]==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[] = {0,0,0};",
"a",
"{0,0,0}",
"0",
"0",
"0",
"for (int j = 0;j <3;j++){\n\t\t\t\ta[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j <3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);\n\t\t\t}",
"{\n\t\t\t\ta[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);\n\t\t\t}",
"a[j] = (int) Math.pow(Integer.parseInt(scan.next()),2)",
"a[j]",
"a",
"j",
"(int) Math.pow(Integer.parseInt(scan.next()),2)",
"Math.pow",
"Math",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"2",
"java.util.Arrays.sort(a)",
"java.util.Arrays.sort",
"java.util.Arrays",
"java.util",
"java",
"java.util",
"java.util.Arrays",
"a",
"if(a[0]+a[1]==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[1]==a[2]",
"a[0]+a[1]",
"a[0]",
"a",
"0",
"a[1]",
"a",
"1",
"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\"",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"public class Main {\n\tprivate static Scanner scan;\n\tpublic static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint a[] = {0,0,0};\n\t\t\tfor (int j = 0;j <3;j++){\n\t\t\t\ta[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);\n\t\t\t}\n\t\t\tjava.util.Arrays.sort(a);\n\t\t\tif(a[0]+a[1]==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\tSystem.exit(0);\n\t}\n}",
"public class Main {\n\tprivate static Scanner scan;\n\tpublic static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint a[] = {0,0,0};\n\t\t\tfor (int j = 0;j <3;j++){\n\t\t\t\ta[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);\n\t\t\t}\n\t\t\tjava.util.Arrays.sort(a);\n\t\t\tif(a[0]+a[1]==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\tSystem.exit(0);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
private static Scanner scan;
public static void main(String[] args) {
scan = new Scanner(System.in);
int n = Integer.parseInt(scan.next());
for(int i = 0;i < n;i++){
int a[] = {0,0,0};
for (int j = 0;j <3;j++){
a[j] = (int) Math.pow(Integer.parseInt(scan.next()),2);
}
java.util.Arrays.sort(a);
if(a[0]+a[1]==a[2]){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
System.exit(0);
}
} |
[
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,
20,
4,
18,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
13,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
13,
0,
13,
4,
18,
13,
18,
13,
17,
0,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
4,
13,
18,
36,
13,
18,
36,
13,
18,
36,
13,
14,
2,
13,
17,
30,
0,
13,
4,
13,
18,
36,
13,
18,
36,
13,
18,
36,
13,
14,
2,
13,
17,
30,
0,
13,
4,
13,
18,
36,
13,
18,
36,
13,
18,
36,
13,
4,
18,
18,
13,
13,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
4,
18,
13,
13,
13,
14,
2,
13,
13,
30,
29,
17,
14,
2,
13,
13,
30,
29,
17,
14,
2,
13,
13,
30,
29,
17,
30,
29,
17,
12,
13,
30,
41,
13,
17,
14,
2,
13,
2,
13,
13,
30,
0,
13,
17,
30,
0,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
224,
5
],
[
224,
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
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
6,
39
],
[
39,
40
],
[
0,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
41,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
41,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
51,
60
],
[
60,
61
],
[
60,
62
],
[
51,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
51,
71
],
[
71,
72
],
[
71,
73
],
[
51,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
51,
82
],
[
82,
83
],
[
82,
84
],
[
49,
85
],
[
85,
86
],
[
41,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
112,
114
],
[
97,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
122,
130
],
[
130,
131
],
[
130,
132
],
[
115,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
148,
150
],
[
89,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
41,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
162,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
166,
170
],
[
159,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
175,
176
],
[
176,
177
],
[
171,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
183,
184
],
[
178,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
190,
191
],
[
185,
192
],
[
192,
193
],
[
193,
194
],
[
41,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
197,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
204,
205
],
[
204,
206
],
[
201,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
201,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
197,
215
],
[
215,
216
],
[
195,
217
],
[
217,
218
],
[
195,
219
],
[
219,
220
],
[
195,
221
],
[
221,
222
],
[
0,
223
],
[
223,
224
],
[
223,
225
]
] | [
"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 roop = Integer.parseInt(sc.nextLine());\n\t\tfor(int i=0; i<roop; i++) {\n\t\t\tTriangle tri = new Triangle(sc.nextLine().split(\" \"));\n\t\t\ttri.execute();\n\t\t}\n\t}\n}\n\nclass Triangle {\n\tprivate int a;\n\tprivate int b;\n\tprivate int c;\n\tpublic Triangle(String[] nums) {\n\t\ta = Integer.parseInt(nums[0]);\n\t\ta *= a;\n\t\tb = Integer.parseInt(nums[1]);\n\t\tb *= b;\n\t\tc = Integer.parseInt(nums[2]);\n\t\tc *= c;\n\t}\n\t\n\tpublic void execute() {\n\t\tint biggest = biggest();\n\t\tString result = \"\";\n\t\tif(biggest == 0) {\n\t\t\tresult = sumNum(this.b, this.c, this.a);\n\t\t} else if(biggest == 1) {\n\t\t\tresult = sumNum(this.a, this.c, this.b);\n\t\t} else if(biggest == 2) {\n\t\t\tresult = sumNum(this.a, this.b, this.c);\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n\t\n\tprivate int biggest() {\n\t\tint result = Math.max(c, Math.max(a, b));\n\t\tif(result == a) {\n\t\t\treturn 0;\n\t\t} else if(result == b) {\n\t\t\treturn 1;\n\t\t} else if(result == c) {\n\t\t\treturn 2;\n\t\t} else {\n\t\t\treturn 3;\n\t\t}\n\t}\n\t\n\tprivate String sumNum(int a, int b, int c) {\n\t\tString result = \"\";\n\t\tif(c == a + b) {\n\t\t\tresult = \"YES\";\n\t\t} else {\n\t\t\tresult = \"NO\";\n\t\t}\n\t\treturn result;\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 roop = Integer.parseInt(sc.nextLine());\n\t\tfor(int i=0; i<roop; i++) {\n\t\t\tTriangle tri = new Triangle(sc.nextLine().split(\" \"));\n\t\t\ttri.execute();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint roop = Integer.parseInt(sc.nextLine());\n\t\tfor(int i=0; i<roop; i++) {\n\t\t\tTriangle tri = new Triangle(sc.nextLine().split(\" \"));\n\t\t\ttri.execute();\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint roop = Integer.parseInt(sc.nextLine());\n\t\tfor(int i=0; i<roop; i++) {\n\t\t\tTriangle tri = new Triangle(sc.nextLine().split(\" \"));\n\t\t\ttri.execute();\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int roop = Integer.parseInt(sc.nextLine());",
"roop",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"for(int i=0; i<roop; i++) {\n\t\t\tTriangle tri = new Triangle(sc.nextLine().split(\" \"));\n\t\t\ttri.execute();\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<roop",
"i",
"roop",
"i++",
"i++",
"i",
"{\n\t\t\tTriangle tri = new Triangle(sc.nextLine().split(\" \"));\n\t\t\ttri.execute();\n\t\t}",
"{\n\t\t\tTriangle tri = new Triangle(sc.nextLine().split(\" \"));\n\t\t\ttri.execute();\n\t\t}",
"Triangle tri = new Triangle(sc.nextLine().split(\" \"));",
"tri",
"new Triangle(sc.nextLine().split(\" \"))",
"tri.execute()",
"tri.execute",
"tri",
"String[] args",
"args",
"class Triangle {\n\tprivate int a;\n\tprivate int b;\n\tprivate int c;\n\tpublic Triangle(String[] nums) {\n\t\ta = Integer.parseInt(nums[0]);\n\t\ta *= a;\n\t\tb = Integer.parseInt(nums[1]);\n\t\tb *= b;\n\t\tc = Integer.parseInt(nums[2]);\n\t\tc *= c;\n\t}\n\t\n\tpublic void execute() {\n\t\tint biggest = biggest();\n\t\tString result = \"\";\n\t\tif(biggest == 0) {\n\t\t\tresult = sumNum(this.b, this.c, this.a);\n\t\t} else if(biggest == 1) {\n\t\t\tresult = sumNum(this.a, this.c, this.b);\n\t\t} else if(biggest == 2) {\n\t\t\tresult = sumNum(this.a, this.b, this.c);\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n\t\n\tprivate int biggest() {\n\t\tint result = Math.max(c, Math.max(a, b));\n\t\tif(result == a) {\n\t\t\treturn 0;\n\t\t} else if(result == b) {\n\t\t\treturn 1;\n\t\t} else if(result == c) {\n\t\t\treturn 2;\n\t\t} else {\n\t\t\treturn 3;\n\t\t}\n\t}\n\t\n\tprivate String sumNum(int a, int b, int c) {\n\t\tString result = \"\";\n\t\tif(c == a + b) {\n\t\t\tresult = \"YES\";\n\t\t} else {\n\t\t\tresult = \"NO\";\n\t\t}\n\t\treturn result;\n\t}\n}",
"Triangle",
"private int a;",
"a",
"private int b;",
"b",
"private int c;",
"c",
"public Triangle(String[] nums) {\n\t\ta = Integer.parseInt(nums[0]);\n\t\ta *= a;\n\t\tb = Integer.parseInt(nums[1]);\n\t\tb *= b;\n\t\tc = Integer.parseInt(nums[2]);\n\t\tc *= c;\n\t}",
"Triangle",
"{\n\t\ta = Integer.parseInt(nums[0]);\n\t\ta *= a;\n\t\tb = Integer.parseInt(nums[1]);\n\t\tb *= b;\n\t\tc = Integer.parseInt(nums[2]);\n\t\tc *= c;\n\t}",
"a = Integer.parseInt(nums[0])",
"a",
"Integer.parseInt(nums[0])",
"Integer.parseInt",
"Integer",
"nums[0]",
"nums",
"0",
"a *= a",
"a",
"a",
"b = Integer.parseInt(nums[1])",
"b",
"Integer.parseInt(nums[1])",
"Integer.parseInt",
"Integer",
"nums[1]",
"nums",
"1",
"b *= b",
"b",
"b",
"c = Integer.parseInt(nums[2])",
"c",
"Integer.parseInt(nums[2])",
"Integer.parseInt",
"Integer",
"nums[2]",
"nums",
"2",
"c *= c",
"c",
"c",
"String[] nums",
"nums",
"public void execute() {\n\t\tint biggest = biggest();\n\t\tString result = \"\";\n\t\tif(biggest == 0) {\n\t\t\tresult = sumNum(this.b, this.c, this.a);\n\t\t} else if(biggest == 1) {\n\t\t\tresult = sumNum(this.a, this.c, this.b);\n\t\t} else if(biggest == 2) {\n\t\t\tresult = sumNum(this.a, this.b, this.c);\n\t\t}\n\t\tSystem.out.println(result);\n\t}",
"execute",
"{\n\t\tint biggest = biggest();\n\t\tString result = \"\";\n\t\tif(biggest == 0) {\n\t\t\tresult = sumNum(this.b, this.c, this.a);\n\t\t} else if(biggest == 1) {\n\t\t\tresult = sumNum(this.a, this.c, this.b);\n\t\t} else if(biggest == 2) {\n\t\t\tresult = sumNum(this.a, this.b, this.c);\n\t\t}\n\t\tSystem.out.println(result);\n\t}",
"int biggest = biggest();",
"biggest",
"biggest()",
"biggest",
"String result = \"\";",
"result",
"\"\"",
"if(biggest == 0) {\n\t\t\tresult = sumNum(this.b, this.c, this.a);\n\t\t} else if(biggest == 1) {\n\t\t\tresult = sumNum(this.a, this.c, this.b);\n\t\t} else if(biggest == 2) {\n\t\t\tresult = sumNum(this.a, this.b, this.c);\n\t\t}",
"biggest == 0",
"biggest",
"0",
"{\n\t\t\tresult = sumNum(this.b, this.c, this.a);\n\t\t}",
"result = sumNum(this.b, this.c, this.a)",
"result",
"sumNum(this.b, this.c, this.a)",
"sumNum",
"this.b",
"this",
"this.b",
"this.c",
"this",
"this.c",
"this.a",
"this",
"this.a",
"if(biggest == 1) {\n\t\t\tresult = sumNum(this.a, this.c, this.b);\n\t\t} else if(biggest == 2) {\n\t\t\tresult = sumNum(this.a, this.b, this.c);\n\t\t}",
"biggest == 1",
"biggest",
"1",
"{\n\t\t\tresult = sumNum(this.a, this.c, this.b);\n\t\t}",
"result = sumNum(this.a, this.c, this.b)",
"result",
"sumNum(this.a, this.c, this.b)",
"sumNum",
"this.a",
"this",
"this.a",
"this.c",
"this",
"this.c",
"this.b",
"this",
"this.b",
"if(biggest == 2) {\n\t\t\tresult = sumNum(this.a, this.b, this.c);\n\t\t}",
"biggest == 2",
"biggest",
"2",
"{\n\t\t\tresult = sumNum(this.a, this.b, this.c);\n\t\t}",
"result = sumNum(this.a, this.b, this.c)",
"result",
"sumNum(this.a, this.b, this.c)",
"sumNum",
"this.a",
"this",
"this.a",
"this.b",
"this",
"this.b",
"this.c",
"this",
"this.c",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"private int biggest() {\n\t\tint result = Math.max(c, Math.max(a, b));\n\t\tif(result == a) {\n\t\t\treturn 0;\n\t\t} else if(result == b) {\n\t\t\treturn 1;\n\t\t} else if(result == c) {\n\t\t\treturn 2;\n\t\t} else {\n\t\t\treturn 3;\n\t\t}\n\t}",
"biggest",
"{\n\t\tint result = Math.max(c, Math.max(a, b));\n\t\tif(result == a) {\n\t\t\treturn 0;\n\t\t} else if(result == b) {\n\t\t\treturn 1;\n\t\t} else if(result == c) {\n\t\t\treturn 2;\n\t\t} else {\n\t\t\treturn 3;\n\t\t}\n\t}",
"int result = Math.max(c, Math.max(a, b));",
"result",
"Math.max(c, Math.max(a, b))",
"Math.max",
"Math",
"c",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"if(result == a) {\n\t\t\treturn 0;\n\t\t} else if(result == b) {\n\t\t\treturn 1;\n\t\t} else if(result == c) {\n\t\t\treturn 2;\n\t\t} else {\n\t\t\treturn 3;\n\t\t}",
"result == a",
"result",
"a",
"{\n\t\t\treturn 0;\n\t\t}",
"return 0;",
"0",
"if(result == b) {\n\t\t\treturn 1;\n\t\t} else if(result == c) {\n\t\t\treturn 2;\n\t\t} else {\n\t\t\treturn 3;\n\t\t}",
"result == b",
"result",
"b",
"{\n\t\t\treturn 1;\n\t\t}",
"return 1;",
"1",
"if(result == c) {\n\t\t\treturn 2;\n\t\t} else {\n\t\t\treturn 3;\n\t\t}",
"result == c",
"result",
"c",
"{\n\t\t\treturn 2;\n\t\t}",
"return 2;",
"2",
"{\n\t\t\treturn 3;\n\t\t}",
"return 3;",
"3",
"private String sumNum(int a, int b, int c) {\n\t\tString result = \"\";\n\t\tif(c == a + b) {\n\t\t\tresult = \"YES\";\n\t\t} else {\n\t\t\tresult = \"NO\";\n\t\t}\n\t\treturn result;\n\t}",
"sumNum",
"{\n\t\tString result = \"\";\n\t\tif(c == a + b) {\n\t\t\tresult = \"YES\";\n\t\t} else {\n\t\t\tresult = \"NO\";\n\t\t}\n\t\treturn result;\n\t}",
"String result = \"\";",
"result",
"\"\"",
"if(c == a + b) {\n\t\t\tresult = \"YES\";\n\t\t} else {\n\t\t\tresult = \"NO\";\n\t\t}",
"c == a + b",
"c",
"a + b",
"a",
"b",
"{\n\t\t\tresult = \"YES\";\n\t\t}",
"result = \"YES\"",
"result",
"\"YES\"",
"{\n\t\t\tresult = \"NO\";\n\t\t}",
"result = \"NO\"",
"result",
"\"NO\"",
"return result;",
"result",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint roop = Integer.parseInt(sc.nextLine());\n\t\tfor(int i=0; i<roop; i++) {\n\t\t\tTriangle tri = new Triangle(sc.nextLine().split(\" \"));\n\t\t\ttri.execute();\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 roop = Integer.parseInt(sc.nextLine());\n\t\tfor(int i=0; i<roop; i++) {\n\t\t\tTriangle tri = new Triangle(sc.nextLine().split(\" \"));\n\t\t\ttri.execute();\n\t\t}\n\t}\n}",
"Main"
] | import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int roop = Integer.parseInt(sc.nextLine());
for(int i=0; i<roop; i++) {
Triangle tri = new Triangle(sc.nextLine().split(" "));
tri.execute();
}
}
}
class Triangle {
private int a;
private int b;
private int c;
public Triangle(String[] nums) {
a = Integer.parseInt(nums[0]);
a *= a;
b = Integer.parseInt(nums[1]);
b *= b;
c = Integer.parseInt(nums[2]);
c *= c;
}
public void execute() {
int biggest = biggest();
String result = "";
if(biggest == 0) {
result = sumNum(this.b, this.c, this.a);
} else if(biggest == 1) {
result = sumNum(this.a, this.c, this.b);
} else if(biggest == 2) {
result = sumNum(this.a, this.b, this.c);
}
System.out.println(result);
}
private int biggest() {
int result = Math.max(c, Math.max(a, b));
if(result == a) {
return 0;
} else if(result == b) {
return 1;
} else if(result == c) {
return 2;
} else {
return 3;
}
}
private String sumNum(int a, int b, int c) {
String result = "";
if(c == a + b) {
result = "YES";
} else {
result = "NO";
}
return result;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
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,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
2,
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,
41,
13,
2,
18,
13,
17,
18,
13,
17,
41,
13,
2,
18,
13,
17,
18,
13,
17,
41,
13,
2,
18,
13,
17,
18,
13,
17,
41,
13,
2,
13,
2,
13,
13,
14,
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
],
[
188,
11
],
[
188,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
14,
29
],
[
29,
30
],
[
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
],
[
49,
52
],
[
49,
53
],
[
41,
54
],
[
54,
55
],
[
54,
56
],
[
41,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
41,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
81,
92
],
[
93,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
94,
101
],
[
101,
102
],
[
101,
103
],
[
94,
104
],
[
104,
105
],
[
105,
106
],
[
94,
107
],
[
108,
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
],
[
120,
121
],
[
120,
122
],
[
117,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
127,
129
],
[
117,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
41,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
141,
143
],
[
41,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
150,
152
],
[
41,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
159,
161
],
[
41,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
164,
166
],
[
166,
167
],
[
166,
168
],
[
41,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
169,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
179,
184
],
[
12,
185
],
[
185,
186
],
[
0,
187
],
[
187,
188
],
[
187,
189
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] arg) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tint count = Integer.parseInt(str);\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] datasetstr = str.split(\" \", 3);\n\t\t\tint[] datasetint = new int[3];\n\t\t\tfor (int j = 0; j <= 2; j++) {\n\n\t\t\t\tdatasetint[j] = Integer.parseInt(datasetstr[j]);\n\t\t\t}\n\t\t\tfor (int k = 0; k <= 1; k++) {\n\t\t\t\tfor (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tint cc = datasetint[0] * datasetint[0];\n\t\t\tint aa = datasetint[1] * datasetint[1];\n\t\t\tint bb = datasetint[2] * datasetint[2];\n\t\t\tBoolean isRight = cc == (aa + bb);\n\t\t\tif (isRight) {\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",
"public class Main {\n\n\tpublic static void main(String[] arg) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tint count = Integer.parseInt(str);\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] datasetstr = str.split(\" \", 3);\n\t\t\tint[] datasetint = new int[3];\n\t\t\tfor (int j = 0; j <= 2; j++) {\n\n\t\t\t\tdatasetint[j] = Integer.parseInt(datasetstr[j]);\n\t\t\t}\n\t\t\tfor (int k = 0; k <= 1; k++) {\n\t\t\t\tfor (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tint cc = datasetint[0] * datasetint[0];\n\t\t\tint aa = datasetint[1] * datasetint[1];\n\t\t\tint bb = datasetint[2] * datasetint[2];\n\t\t\tBoolean isRight = cc == (aa + bb);\n\t\t\tif (isRight) {\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 IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tint count = Integer.parseInt(str);\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] datasetstr = str.split(\" \", 3);\n\t\t\tint[] datasetint = new int[3];\n\t\t\tfor (int j = 0; j <= 2; j++) {\n\n\t\t\t\tdatasetint[j] = Integer.parseInt(datasetstr[j]);\n\t\t\t}\n\t\t\tfor (int k = 0; k <= 1; k++) {\n\t\t\t\tfor (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tint cc = datasetint[0] * datasetint[0];\n\t\t\tint aa = datasetint[1] * datasetint[1];\n\t\t\tint bb = datasetint[2] * datasetint[2];\n\t\t\tBoolean isRight = cc == (aa + bb);\n\t\t\tif (isRight) {\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\tString str = br.readLine();\n\t\tint count = Integer.parseInt(str);\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] datasetstr = str.split(\" \", 3);\n\t\t\tint[] datasetint = new int[3];\n\t\t\tfor (int j = 0; j <= 2; j++) {\n\n\t\t\t\tdatasetint[j] = Integer.parseInt(datasetstr[j]);\n\t\t\t}\n\t\t\tfor (int k = 0; k <= 1; k++) {\n\t\t\t\tfor (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tint cc = datasetint[0] * datasetint[0];\n\t\t\tint aa = datasetint[1] * datasetint[1];\n\t\t\tint bb = datasetint[2] * datasetint[2];\n\t\t\tBoolean isRight = cc == (aa + bb);\n\t\t\tif (isRight) {\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 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\tstr = br.readLine();\n\t\t\tString[] datasetstr = str.split(\" \", 3);\n\t\t\tint[] datasetint = new int[3];\n\t\t\tfor (int j = 0; j <= 2; j++) {\n\n\t\t\t\tdatasetint[j] = Integer.parseInt(datasetstr[j]);\n\t\t\t}\n\t\t\tfor (int k = 0; k <= 1; k++) {\n\t\t\t\tfor (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tint cc = datasetint[0] * datasetint[0];\n\t\t\tint aa = datasetint[1] * datasetint[1];\n\t\t\tint bb = datasetint[2] * datasetint[2];\n\t\t\tBoolean isRight = cc == (aa + bb);\n\t\t\tif (isRight) {\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\tstr = br.readLine();\n\t\t\tString[] datasetstr = str.split(\" \", 3);\n\t\t\tint[] datasetint = new int[3];\n\t\t\tfor (int j = 0; j <= 2; j++) {\n\n\t\t\t\tdatasetint[j] = Integer.parseInt(datasetstr[j]);\n\t\t\t}\n\t\t\tfor (int k = 0; k <= 1; k++) {\n\t\t\t\tfor (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tint cc = datasetint[0] * datasetint[0];\n\t\t\tint aa = datasetint[1] * datasetint[1];\n\t\t\tint bb = datasetint[2] * datasetint[2];\n\t\t\tBoolean isRight = cc == (aa + bb);\n\t\t\tif (isRight) {\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\tstr = br.readLine();\n\t\t\tString[] datasetstr = str.split(\" \", 3);\n\t\t\tint[] datasetint = new int[3];\n\t\t\tfor (int j = 0; j <= 2; j++) {\n\n\t\t\t\tdatasetint[j] = Integer.parseInt(datasetstr[j]);\n\t\t\t}\n\t\t\tfor (int k = 0; k <= 1; k++) {\n\t\t\t\tfor (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tint cc = datasetint[0] * datasetint[0];\n\t\t\tint aa = datasetint[1] * datasetint[1];\n\t\t\tint bb = datasetint[2] * datasetint[2];\n\t\t\tBoolean isRight = cc == (aa + bb);\n\t\t\tif (isRight) {\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}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] datasetstr = str.split(\" \", 3);",
"datasetstr",
"str.split(\" \", 3)",
"str.split",
"str",
"\" \"",
"3",
"int[] datasetint = new int[3];",
"datasetint",
"new int[3]",
"3",
"for (int j = 0; j <= 2; j++) {\n\n\t\t\t\tdatasetint[j] = Integer.parseInt(datasetstr[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j <= 2",
"j",
"2",
"j++",
"j++",
"j",
"{\n\n\t\t\t\tdatasetint[j] = Integer.parseInt(datasetstr[j]);\n\t\t\t}",
"{\n\n\t\t\t\tdatasetint[j] = Integer.parseInt(datasetstr[j]);\n\t\t\t}",
"datasetint[j] = Integer.parseInt(datasetstr[j])",
"datasetint[j]",
"datasetint",
"j",
"Integer.parseInt(datasetstr[j])",
"Integer.parseInt",
"Integer",
"datasetstr[j]",
"datasetstr",
"j",
"for (int k = 0; k <= 1; k++) {\n\t\t\t\tfor (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int k = 0;",
"int k = 0;",
"k",
"0",
"k <= 1",
"k",
"1",
"k++",
"k++",
"k",
"{\n\t\t\t\tfor (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}",
"int l = k + 1;",
"int l = k + 1;",
"l",
"k + 1",
"k",
"1",
"l <= 2",
"l",
"2",
"l++",
"l++",
"l",
"{\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}",
"if (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}",
"datasetint[k] < datasetint[l]",
"datasetint[k]",
"datasetint",
"k",
"datasetint[l]",
"datasetint",
"l",
"{\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}",
"int temporary = datasetint[k];",
"temporary",
"datasetint[k]",
"datasetint",
"k",
"datasetint[k] = datasetint[l]",
"datasetint[k]",
"datasetint",
"k",
"datasetint[l]",
"datasetint",
"l",
"datasetint[l] = temporary",
"datasetint[l]",
"datasetint",
"l",
"temporary",
"int cc = datasetint[0] * datasetint[0];",
"cc",
"datasetint[0] * datasetint[0]",
"datasetint[0]",
"datasetint",
"0",
"datasetint[0]",
"datasetint",
"0",
"int aa = datasetint[1] * datasetint[1];",
"aa",
"datasetint[1] * datasetint[1]",
"datasetint[1]",
"datasetint",
"1",
"datasetint[1]",
"datasetint",
"1",
"int bb = datasetint[2] * datasetint[2];",
"bb",
"datasetint[2] * datasetint[2]",
"datasetint[2]",
"datasetint",
"2",
"datasetint[2]",
"datasetint",
"2",
"Boolean isRight = cc == (aa + bb);",
"isRight",
"cc == (aa + bb)",
"cc",
"(aa + bb)",
"aa",
"bb",
"if (isRight) {\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}",
"isRight",
"{\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",
"public class Main {\n\n\tpublic static void main(String[] arg) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tint count = Integer.parseInt(str);\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] datasetstr = str.split(\" \", 3);\n\t\t\tint[] datasetint = new int[3];\n\t\t\tfor (int j = 0; j <= 2; j++) {\n\n\t\t\t\tdatasetint[j] = Integer.parseInt(datasetstr[j]);\n\t\t\t}\n\t\t\tfor (int k = 0; k <= 1; k++) {\n\t\t\t\tfor (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tint cc = datasetint[0] * datasetint[0];\n\t\t\tint aa = datasetint[1] * datasetint[1];\n\t\t\tint bb = datasetint[2] * datasetint[2];\n\t\t\tBoolean isRight = cc == (aa + bb);\n\t\t\tif (isRight) {\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[] arg) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tint count = Integer.parseInt(str);\n\t\tfor (int i = 0; i < count; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString[] datasetstr = str.split(\" \", 3);\n\t\t\tint[] datasetint = new int[3];\n\t\t\tfor (int j = 0; j <= 2; j++) {\n\n\t\t\t\tdatasetint[j] = Integer.parseInt(datasetstr[j]);\n\t\t\t}\n\t\t\tfor (int k = 0; k <= 1; k++) {\n\t\t\t\tfor (int l = k + 1; l <= 2; l++) {\n\t\t\t\t\tif (datasetint[k] < datasetint[l]) {\n\t\t\t\t\t\tint temporary = datasetint[k];\n\t\t\t\t\t\tdatasetint[k] = datasetint[l];\n\t\t\t\t\t\tdatasetint[l] = temporary;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tint cc = datasetint[0] * datasetint[0];\n\t\t\tint aa = datasetint[1] * datasetint[1];\n\t\t\tint bb = datasetint[2] * datasetint[2];\n\t\t\tBoolean isRight = cc == (aa + bb);\n\t\t\tif (isRight) {\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[] arg) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
int count = Integer.parseInt(str);
for (int i = 0; i < count; i++) {
str = br.readLine();
String[] datasetstr = str.split(" ", 3);
int[] datasetint = new int[3];
for (int j = 0; j <= 2; j++) {
datasetint[j] = Integer.parseInt(datasetstr[j]);
}
for (int k = 0; k <= 1; k++) {
for (int l = k + 1; l <= 2; l++) {
if (datasetint[k] < datasetint[l]) {
int temporary = datasetint[k];
datasetint[k] = datasetint[l];
datasetint[l] = temporary;
}
}
}
int cc = datasetint[0] * datasetint[0];
int aa = datasetint[1] * datasetint[1];
int bb = datasetint[2] * datasetint[2];
Boolean isRight = cc == (aa + bb);
if (isRight) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
11,
1,
41,
13,
4,
18,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
39,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
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,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
80,
8
],
[
80,
9
],
[
9,
10
],
[
9,
11
],
[
80,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
15,
22
],
[
22,
23
],
[
22,
24
],
[
15,
25
],
[
25,
26
],
[
26,
27
],
[
15,
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
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
52,
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
],
[
72,
74
],
[
51,
75
],
[
51,
76
],
[
12,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main{\n\t\n\tstatic final Scanner s=new Scanner(System.in);\n\t\n\tpublic static void main(String args[]){\n\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\tint[] in={s.nextInt(),s.nextInt(),s.nextInt()};\n\t\t\tArrays.sort(in);\n\t\t\tSystem.out.println(\n\t\t\t\t\tin[2]*in[2]==(in[1]*in[1]+in[0]*in[0])\n\t\t\t\t\t?\"YES\":\"NO\");\n\t\t}\n\t}\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\t\n\tstatic final Scanner s=new Scanner(System.in);\n\t\n\tpublic static void main(String args[]){\n\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\tint[] in={s.nextInt(),s.nextInt(),s.nextInt()};\n\t\t\tArrays.sort(in);\n\t\t\tSystem.out.println(\n\t\t\t\t\tin[2]*in[2]==(in[1]*in[1]+in[0]*in[0])\n\t\t\t\t\t?\"YES\":\"NO\");\n\t\t}\n\t}\n}",
"Main",
"static final Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"public static void main(String args[]){\n\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\tint[] in={s.nextInt(),s.nextInt(),s.nextInt()};\n\t\t\tArrays.sort(in);\n\t\t\tSystem.out.println(\n\t\t\t\t\tin[2]*in[2]==(in[1]*in[1]+in[0]*in[0])\n\t\t\t\t\t?\"YES\":\"NO\");\n\t\t}\n\t}",
"main",
"{\n\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\tint[] in={s.nextInt(),s.nextInt(),s.nextInt()};\n\t\t\tArrays.sort(in);\n\t\t\tSystem.out.println(\n\t\t\t\t\tin[2]*in[2]==(in[1]*in[1]+in[0]*in[0])\n\t\t\t\t\t?\"YES\":\"NO\");\n\t\t}\n\t}",
"for(int i=s.nextInt(); i>0; i--){\n\t\t\tint[] in={s.nextInt(),s.nextInt(),s.nextInt()};\n\t\t\tArrays.sort(in);\n\t\t\tSystem.out.println(\n\t\t\t\t\tin[2]*in[2]==(in[1]*in[1]+in[0]*in[0])\n\t\t\t\t\t?\"YES\":\"NO\");\n\t\t}",
"int i=s.nextInt();",
"int i=s.nextInt();",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"i>0",
"i",
"0",
"i--",
"i--",
"i",
"{\n\t\t\tint[] in={s.nextInt(),s.nextInt(),s.nextInt()};\n\t\t\tArrays.sort(in);\n\t\t\tSystem.out.println(\n\t\t\t\t\tin[2]*in[2]==(in[1]*in[1]+in[0]*in[0])\n\t\t\t\t\t?\"YES\":\"NO\");\n\t\t}",
"{\n\t\t\tint[] in={s.nextInt(),s.nextInt(),s.nextInt()};\n\t\t\tArrays.sort(in);\n\t\t\tSystem.out.println(\n\t\t\t\t\tin[2]*in[2]==(in[1]*in[1]+in[0]*in[0])\n\t\t\t\t\t?\"YES\":\"NO\");\n\t\t}",
"int[] in={s.nextInt(),s.nextInt(),s.nextInt()};",
"in",
"{s.nextInt(),s.nextInt(),s.nextInt()}",
"s.nextInt()",
"s.nextInt",
"s",
"s.nextInt()",
"s.nextInt",
"s",
"s.nextInt()",
"s.nextInt",
"s",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"System.out.println(\n\t\t\t\t\tin[2]*in[2]==(in[1]*in[1]+in[0]*in[0])\n\t\t\t\t\t?\"YES\":\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"in[2]*in[2]==(in[1]*in[1]+in[0]*in[0])\n\t\t\t\t\t?\"YES\":\"NO\"",
"in[2]*in[2]==(in[1]*in[1]+in[0]*in[0])",
"in[2]*in[2]",
"in[2]",
"in",
"2",
"in[2]",
"in",
"2",
"(in[1]*in[1]+in[0]*in[0])",
"in[1]*in[1]",
"in[1]",
"in",
"1",
"in[1]",
"in",
"1",
"in[0]*in[0]",
"in[0]",
"in",
"0",
"in[0]",
"in",
"0",
"\"YES\"",
"\"NO\"",
"String args[]",
"args",
"public class Main{\n\t\n\tstatic final Scanner s=new Scanner(System.in);\n\t\n\tpublic static void main(String args[]){\n\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\tint[] in={s.nextInt(),s.nextInt(),s.nextInt()};\n\t\t\tArrays.sort(in);\n\t\t\tSystem.out.println(\n\t\t\t\t\tin[2]*in[2]==(in[1]*in[1]+in[0]*in[0])\n\t\t\t\t\t?\"YES\":\"NO\");\n\t\t}\n\t}\n}",
"public class Main{\n\t\n\tstatic final Scanner s=new Scanner(System.in);\n\t\n\tpublic static void main(String args[]){\n\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\tint[] in={s.nextInt(),s.nextInt(),s.nextInt()};\n\t\t\tArrays.sort(in);\n\t\t\tSystem.out.println(\n\t\t\t\t\tin[2]*in[2]==(in[1]*in[1]+in[0]*in[0])\n\t\t\t\t\t?\"YES\":\"NO\");\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main{
static final Scanner s=new Scanner(System.in);
public static void main(String args[]){
for(int i=s.nextInt(); i>0; i--){
int[] in={s.nextInt(),s.nextInt(),s.nextInt()};
Arrays.sort(in);
System.out.println(
in[2]*in[2]==(in[1]*in[1]+in[0]*in[0])
?"YES":"NO");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
0,
18,
18,
13,
13,
17,
4,
18,
13,
18,
13,
17,
0,
18,
18,
13,
13,
17,
4,
18,
13,
18,
13,
17,
0,
18,
18,
13,
13,
17,
4,
18,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
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,
29,
17,
29,
17,
23,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
177,
5
],
[
177,
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
],
[
20,
22
],
[
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
],
[
42,
43
],
[
43,
44
],
[
40,
45
],
[
37,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
55,
57
],
[
37,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
67,
69
],
[
37,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
91,
92
],
[
82,
93
],
[
94,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
96,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
96,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
95,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
95,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
6,
125
],
[
125,
126
],
[
177,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
132,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
141,
143
],
[
132,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
152,
154
],
[
132,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
163,
165
],
[
130,
166
],
[
166,
167
],
[
130,
168
],
[
168,
169
],
[
127,
170
],
[
170,
171
],
[
127,
172
],
[
172,
173
],
[
127,
174
],
[
174,
175
],
[
0,
176
],
[
176,
177
],
[
176,
178
]
] | [
"import java.util.*;\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 dataSize = Integer.parseInt(sc.nextLine());\n\t\tint[][] data = new int[dataSize][3];\n\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tString[] splitted = sc.nextLine().split(\"\\\\s+\");\n\t\t\tdata[i][0] = Integer.parseInt(splitted[0]);\n\t\t\tdata[i][1] = Integer.parseInt(splitted[1]);\n\t\t\tdata[i][2] = Integer.parseInt(splitted[2]);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tif(IsRight(data[i][0],data[i][1],data[i][2]))\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\n\t}\n\t\n\tpublic static boolean IsRight(int a, int b, int c)\n\t{\n\t\tif((a*a == b*b + c*c) || (b*b == a*a + c*c ) || (c*c == a*a + b*b))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\t\n\t}\n\t\n\t\n\t\n\t\n\n\t\n} ",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint dataSize = Integer.parseInt(sc.nextLine());\n\t\tint[][] data = new int[dataSize][3];\n\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tString[] splitted = sc.nextLine().split(\"\\\\s+\");\n\t\t\tdata[i][0] = Integer.parseInt(splitted[0]);\n\t\t\tdata[i][1] = Integer.parseInt(splitted[1]);\n\t\t\tdata[i][2] = Integer.parseInt(splitted[2]);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tif(IsRight(data[i][0],data[i][1],data[i][2]))\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\n\t}\n\t\n\tpublic static boolean IsRight(int a, int b, int c)\n\t{\n\t\tif((a*a == b*b + c*c) || (b*b == a*a + c*c ) || (c*c == a*a + b*b))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\t\n\t}\n\t\n\t\n\t\n\t\n\n\t\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint dataSize = Integer.parseInt(sc.nextLine());\n\t\tint[][] data = new int[dataSize][3];\n\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tString[] splitted = sc.nextLine().split(\"\\\\s+\");\n\t\t\tdata[i][0] = Integer.parseInt(splitted[0]);\n\t\t\tdata[i][1] = Integer.parseInt(splitted[1]);\n\t\t\tdata[i][2] = Integer.parseInt(splitted[2]);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tif(IsRight(data[i][0],data[i][1],data[i][2]))\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\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint dataSize = Integer.parseInt(sc.nextLine());\n\t\tint[][] data = new int[dataSize][3];\n\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tString[] splitted = sc.nextLine().split(\"\\\\s+\");\n\t\t\tdata[i][0] = Integer.parseInt(splitted[0]);\n\t\t\tdata[i][1] = Integer.parseInt(splitted[1]);\n\t\t\tdata[i][2] = Integer.parseInt(splitted[2]);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tif(IsRight(data[i][0],data[i][1],data[i][2]))\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\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int dataSize = Integer.parseInt(sc.nextLine());",
"dataSize",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int[][] data = new int[dataSize][3];",
"data",
"new int[dataSize][3]",
"dataSize",
"3",
"for(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tString[] splitted = sc.nextLine().split(\"\\\\s+\");\n\t\t\tdata[i][0] = Integer.parseInt(splitted[0]);\n\t\t\tdata[i][1] = Integer.parseInt(splitted[1]);\n\t\t\tdata[i][2] = Integer.parseInt(splitted[2]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < dataSize",
"i",
"dataSize",
"++i",
"++i",
"i",
"{\n\t\t\tString[] splitted = sc.nextLine().split(\"\\\\s+\");\n\t\t\tdata[i][0] = Integer.parseInt(splitted[0]);\n\t\t\tdata[i][1] = Integer.parseInt(splitted[1]);\n\t\t\tdata[i][2] = Integer.parseInt(splitted[2]);\n\t\t}",
"{\n\t\t\tString[] splitted = sc.nextLine().split(\"\\\\s+\");\n\t\t\tdata[i][0] = Integer.parseInt(splitted[0]);\n\t\t\tdata[i][1] = Integer.parseInt(splitted[1]);\n\t\t\tdata[i][2] = Integer.parseInt(splitted[2]);\n\t\t}",
"String[] splitted = sc.nextLine().split(\"\\\\s+\");",
"splitted",
"sc.nextLine().split(\"\\\\s+\")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\"\\\\s+\"",
"data[i][0] = Integer.parseInt(splitted[0])",
"data[i][0]",
"data[i]",
"data",
"i",
"0",
"Integer.parseInt(splitted[0])",
"Integer.parseInt",
"Integer",
"splitted[0]",
"splitted",
"0",
"data[i][1] = Integer.parseInt(splitted[1])",
"data[i][1]",
"data[i]",
"data",
"i",
"1",
"Integer.parseInt(splitted[1])",
"Integer.parseInt",
"Integer",
"splitted[1]",
"splitted",
"1",
"data[i][2] = Integer.parseInt(splitted[2])",
"data[i][2]",
"data[i]",
"data",
"i",
"2",
"Integer.parseInt(splitted[2])",
"Integer.parseInt",
"Integer",
"splitted[2]",
"splitted",
"2",
"for(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tif(IsRight(data[i][0],data[i][1],data[i][2]))\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 < dataSize",
"i",
"dataSize",
"++i",
"++i",
"i",
"{\n\t\t\tif(IsRight(data[i][0],data[i][1],data[i][2]))\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\tif(IsRight(data[i][0],data[i][1],data[i][2]))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}",
"if(IsRight(data[i][0],data[i][1],data[i][2]))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");",
"IsRight(data[i][0],data[i][1],data[i][2])",
"IsRight",
"data[i][0]",
"data[i]",
"data",
"i",
"0",
"data[i][1]",
"data[i]",
"data",
"i",
"1",
"data[i][2]",
"data[i]",
"data",
"i",
"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 static boolean IsRight(int a, int b, int c)\n\t{\n\t\tif((a*a == b*b + c*c) || (b*b == a*a + c*c ) || (c*c == a*a + b*b))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\t\n\t}",
"IsRight",
"{\n\t\tif((a*a == b*b + c*c) || (b*b == a*a + c*c ) || (c*c == a*a + b*b))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\t\n\t}",
"if((a*a == b*b + c*c) || (b*b == a*a + c*c ) || (c*c == a*a + b*b))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;",
"(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",
"return true;",
"true",
"return false;",
"false",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public class Main {\n\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint dataSize = Integer.parseInt(sc.nextLine());\n\t\tint[][] data = new int[dataSize][3];\n\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tString[] splitted = sc.nextLine().split(\"\\\\s+\");\n\t\t\tdata[i][0] = Integer.parseInt(splitted[0]);\n\t\t\tdata[i][1] = Integer.parseInt(splitted[1]);\n\t\t\tdata[i][2] = Integer.parseInt(splitted[2]);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tif(IsRight(data[i][0],data[i][1],data[i][2]))\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\n\t}\n\t\n\tpublic static boolean IsRight(int a, int b, int c)\n\t{\n\t\tif((a*a == b*b + c*c) || (b*b == a*a + c*c ) || (c*c == a*a + b*b))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\t\n\t}\n\t\n\t\n\t\n\t\n\n\t\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 dataSize = Integer.parseInt(sc.nextLine());\n\t\tint[][] data = new int[dataSize][3];\n\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tString[] splitted = sc.nextLine().split(\"\\\\s+\");\n\t\t\tdata[i][0] = Integer.parseInt(splitted[0]);\n\t\t\tdata[i][1] = Integer.parseInt(splitted[1]);\n\t\t\tdata[i][2] = Integer.parseInt(splitted[2]);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tif(IsRight(data[i][0],data[i][1],data[i][2]))\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\n\t}\n\t\n\tpublic static boolean IsRight(int a, int b, int c)\n\t{\n\t\tif((a*a == b*b + c*c) || (b*b == a*a + c*c ) || (c*c == a*a + b*b))\n\t\t\treturn true;\n\t\telse \n\t\t\treturn false;\t\n\t}\n\t\n\t\n\t\n\t\n\n\t\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int dataSize = Integer.parseInt(sc.nextLine());
int[][] data = new int[dataSize][3];
for(int i = 0; i < dataSize; ++i)
{
String[] splitted = sc.nextLine().split("\\s+");
data[i][0] = Integer.parseInt(splitted[0]);
data[i][1] = Integer.parseInt(splitted[1]);
data[i][2] = Integer.parseInt(splitted[2]);
}
for(int i = 0; i < dataSize; ++i)
{
if(IsRight(data[i][0],data[i][1],data[i][2]))
System.out.println("YES");
else
System.out.println("NO");
}
}
public static boolean IsRight(int a, int b, int c)
{
if((a*a == b*b + c*c) || (b*b == a*a + c*c ) || (c*c == a*a + b*b))
return true;
else
return false;
}
} |
[
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,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
4,
18,
13,
13,
17,
2,
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
],
[
120,
5
],
[
120,
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
],
[
35,
38
],
[
38,
39
],
[
39,
40
],
[
32,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
32,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
55,
56
],
[
32,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
68,
69
],
[
68,
70
],
[
32,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
75,
82
],
[
82,
83
],
[
82,
84
],
[
32,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
87,
91
],
[
86,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
98,
102
],
[
85,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
85,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
6,
117
],
[
117,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = Integer.parseInt(sc.next());\n\n for (int i = 0; i < N; i++) {\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int c = Integer.parseInt(sc.next());\n\n if (a < b) {\n a ^= b;\n b ^= a;\n a ^= b;\n }\n\n if (a < c) {\n a ^= c;\n c ^= a;\n a ^= c;\n }\n\n if (Math.pow(a, 2) == (Math.pow(b, 2) + Math.pow(c, 2))) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = Integer.parseInt(sc.next());\n\n for (int i = 0; i < N; i++) {\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int c = Integer.parseInt(sc.next());\n\n if (a < b) {\n a ^= b;\n b ^= a;\n a ^= b;\n }\n\n if (a < c) {\n a ^= c;\n c ^= a;\n a ^= c;\n }\n\n if (Math.pow(a, 2) == (Math.pow(b, 2) + Math.pow(c, 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 sc = new Scanner(System.in);\n\n int N = Integer.parseInt(sc.next());\n\n for (int i = 0; i < N; i++) {\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int c = Integer.parseInt(sc.next());\n\n if (a < b) {\n a ^= b;\n b ^= a;\n a ^= b;\n }\n\n if (a < c) {\n a ^= c;\n c ^= a;\n a ^= c;\n }\n\n if (Math.pow(a, 2) == (Math.pow(b, 2) + Math.pow(c, 2))) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int N = Integer.parseInt(sc.next());\n\n for (int i = 0; i < N; i++) {\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int c = Integer.parseInt(sc.next());\n\n if (a < b) {\n a ^= b;\n b ^= a;\n a ^= b;\n }\n\n if (a < c) {\n a ^= c;\n c ^= a;\n a ^= c;\n }\n\n if (Math.pow(a, 2) == (Math.pow(b, 2) + Math.pow(c, 2))) {\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 = Integer.parseInt(sc.next());",
"N",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"for (int i = 0; i < N; i++) {\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int c = Integer.parseInt(sc.next());\n\n if (a < b) {\n a ^= b;\n b ^= a;\n a ^= b;\n }\n\n if (a < c) {\n a ^= c;\n c ^= a;\n a ^= c;\n }\n\n if (Math.pow(a, 2) == (Math.pow(b, 2) + Math.pow(c, 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 a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int c = Integer.parseInt(sc.next());\n\n if (a < b) {\n a ^= b;\n b ^= a;\n a ^= b;\n }\n\n if (a < c) {\n a ^= c;\n c ^= a;\n a ^= c;\n }\n\n if (Math.pow(a, 2) == (Math.pow(b, 2) + Math.pow(c, 2))) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"{\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int c = Integer.parseInt(sc.next());\n\n if (a < b) {\n a ^= b;\n b ^= a;\n a ^= b;\n }\n\n if (a < c) {\n a ^= c;\n c ^= a;\n a ^= c;\n }\n\n if (Math.pow(a, 2) == (Math.pow(b, 2) + Math.pow(c, 2))) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"int a = Integer.parseInt(sc.next());",
"a",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int b = Integer.parseInt(sc.next());",
"b",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"int c = Integer.parseInt(sc.next());",
"c",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"if (a < b) {\n a ^= b;\n b ^= a;\n a ^= b;\n }",
"a < b",
"a",
"b",
"{\n a ^= b;\n b ^= a;\n a ^= b;\n }",
"a ^= b",
"a",
"b",
"b ^= a",
"b",
"a",
"a ^= b",
"a",
"b",
"if (a < c) {\n a ^= c;\n c ^= a;\n a ^= c;\n }",
"a < c",
"a",
"c",
"{\n a ^= c;\n c ^= a;\n a ^= c;\n }",
"a ^= c",
"a",
"c",
"c ^= a",
"c",
"a",
"a ^= c",
"a",
"c",
"if (Math.pow(a, 2) == (Math.pow(b, 2) + Math.pow(c, 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",
"Math",
"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",
"{\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 sc = new Scanner(System.in);\n\n int N = Integer.parseInt(sc.next());\n\n for (int i = 0; i < N; i++) {\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int c = Integer.parseInt(sc.next());\n\n if (a < b) {\n a ^= b;\n b ^= a;\n a ^= b;\n }\n\n if (a < c) {\n a ^= c;\n c ^= a;\n a ^= c;\n }\n\n if (Math.pow(a, 2) == (Math.pow(b, 2) + Math.pow(c, 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 sc = new Scanner(System.in);\n\n int N = Integer.parseInt(sc.next());\n\n for (int i = 0; i < N; i++) {\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseInt(sc.next());\n int c = Integer.parseInt(sc.next());\n\n if (a < b) {\n a ^= b;\n b ^= a;\n a ^= b;\n }\n\n if (a < c) {\n a ^= c;\n c ^= a;\n a ^= c;\n }\n\n if (Math.pow(a, 2) == (Math.pow(b, 2) + Math.pow(c, 2))) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\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.next());
for (int i = 0; i < N; i++) {
int a = Integer.parseInt(sc.next());
int b = Integer.parseInt(sc.next());
int c = Integer.parseInt(sc.next());
if (a < b) {
a ^= b;
b ^= a;
a ^= b;
}
if (a < c) {
a ^= c;
c ^= a;
a ^= c;
}
if (Math.pow(a, 2) == (Math.pow(b, 2) + Math.pow(c, 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,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
8,
2,
13,
2,
13,
13,
17,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
94,
5
],
[
94,
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
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
32,
41
],
[
41,
42
],
[
42,
43
],
[
29,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
29,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
50,
57
],
[
29,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
60,
67
],
[
29,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
70,
77
],
[
29,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
83,
90
],
[
6,
91
],
[
91,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
] | [
"import java.util.*;\n\npublic class Main\n{\n public static void main(String... args)\n {\n final Scanner scanner = new Scanner(System.in);\n final int set = scanner.nextInt();\n for (int i = 0; i < set; i++) {\n final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());\n Collections.sort(integers);\n final double a = Math.pow(integers.get(0), 2);\n final double b = Math.pow(integers.get(1), 2);\n final double c = Math.pow(integers.get(2), 2);\n System.out.println(c == a + b ? \"YES\" : \"NO\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n public static void main(String... args)\n {\n final Scanner scanner = new Scanner(System.in);\n final int set = scanner.nextInt();\n for (int i = 0; i < set; i++) {\n final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());\n Collections.sort(integers);\n final double a = Math.pow(integers.get(0), 2);\n final double b = Math.pow(integers.get(1), 2);\n final double c = Math.pow(integers.get(2), 2);\n System.out.println(c == a + b ? \"YES\" : \"NO\");\n }\n }\n}",
"Main",
"public static void main(String... args)\n {\n final Scanner scanner = new Scanner(System.in);\n final int set = scanner.nextInt();\n for (int i = 0; i < set; i++) {\n final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());\n Collections.sort(integers);\n final double a = Math.pow(integers.get(0), 2);\n final double b = Math.pow(integers.get(1), 2);\n final double c = Math.pow(integers.get(2), 2);\n System.out.println(c == a + b ? \"YES\" : \"NO\");\n }\n }",
"main",
"{\n final Scanner scanner = new Scanner(System.in);\n final int set = scanner.nextInt();\n for (int i = 0; i < set; i++) {\n final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());\n Collections.sort(integers);\n final double a = Math.pow(integers.get(0), 2);\n final double b = Math.pow(integers.get(1), 2);\n final double c = Math.pow(integers.get(2), 2);\n System.out.println(c == a + b ? \"YES\" : \"NO\");\n }\n }",
"final Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"final int set = scanner.nextInt();",
"set",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i = 0; i < set; i++) {\n final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());\n Collections.sort(integers);\n final double a = Math.pow(integers.get(0), 2);\n final double b = Math.pow(integers.get(1), 2);\n final double c = Math.pow(integers.get(2), 2);\n System.out.println(c == a + b ? \"YES\" : \"NO\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < set",
"i",
"set",
"i++",
"i++",
"i",
"{\n final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());\n Collections.sort(integers);\n final double a = Math.pow(integers.get(0), 2);\n final double b = Math.pow(integers.get(1), 2);\n final double c = Math.pow(integers.get(2), 2);\n System.out.println(c == a + b ? \"YES\" : \"NO\");\n }",
"{\n final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());\n Collections.sort(integers);\n final double a = Math.pow(integers.get(0), 2);\n final double b = Math.pow(integers.get(1), 2);\n final double c = Math.pow(integers.get(2), 2);\n System.out.println(c == a + b ? \"YES\" : \"NO\");\n }",
"final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());",
"integers",
"Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt())",
"Arrays.asList",
"Arrays",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"Collections.sort(integers)",
"Collections.sort",
"Collections",
"integers",
"final double a = Math.pow(integers.get(0), 2);",
"a",
"Math.pow(integers.get(0), 2)",
"Math.pow",
"Math",
"integers.get(0)",
"integers.get",
"integers",
"0",
"2",
"final double b = Math.pow(integers.get(1), 2);",
"b",
"Math.pow(integers.get(1), 2)",
"Math.pow",
"Math",
"integers.get(1)",
"integers.get",
"integers",
"1",
"2",
"final double c = Math.pow(integers.get(2), 2);",
"c",
"Math.pow(integers.get(2), 2)",
"Math.pow",
"Math",
"integers.get(2)",
"integers.get",
"integers",
"2",
"2",
"System.out.println(c == a + b ? \"YES\" : \"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"c == a + b ? \"YES\" : \"NO\"",
"c == a + b",
"c",
"a + b",
"a",
"b",
"\"YES\"",
"\"NO\"",
"String... args",
"args",
"public class Main\n{\n public static void main(String... args)\n {\n final Scanner scanner = new Scanner(System.in);\n final int set = scanner.nextInt();\n for (int i = 0; i < set; i++) {\n final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());\n Collections.sort(integers);\n final double a = Math.pow(integers.get(0), 2);\n final double b = Math.pow(integers.get(1), 2);\n final double c = Math.pow(integers.get(2), 2);\n System.out.println(c == a + b ? \"YES\" : \"NO\");\n }\n }\n}",
"public class Main\n{\n public static void main(String... args)\n {\n final Scanner scanner = new Scanner(System.in);\n final int set = scanner.nextInt();\n for (int i = 0; i < set; i++) {\n final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());\n Collections.sort(integers);\n final double a = Math.pow(integers.get(0), 2);\n final double b = Math.pow(integers.get(1), 2);\n final double c = Math.pow(integers.get(2), 2);\n System.out.println(c == a + b ? \"YES\" : \"NO\");\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main
{
public static void main(String... args)
{
final Scanner scanner = new Scanner(System.in);
final int set = scanner.nextInt();
for (int i = 0; i < set; i++) {
final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextInt(), scanner.nextInt());
Collections.sort(integers);
final double a = Math.pow(integers.get(0), 2);
final double b = Math.pow(integers.get(1), 2);
final double c = Math.pow(integers.get(2), 2);
System.out.println(c == a + b ? "YES" : "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,
41,
13,
4,
18,
13,
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,
39,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
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,
8,
2,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
17,
17,
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
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
16,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
16,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
43,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
57,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
67,
69
],
[
57,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
43,
76
],
[
76,
77
],
[
78,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
79,
87
],
[
87,
88
],
[
87,
89
],
[
78,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
98,
100
],
[
78,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
109,
111
],
[
76,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
76,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
12,
126
],
[
126,
127
],
[
10,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
135,
139
],
[
134,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
140,
144
],
[
133,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
145,
149
],
[
132,
150
],
[
132,
151
],
[
128,
152
],
[
152,
153
],
[
128,
154
],
[
154,
155
],
[
128,
156
],
[
156,
157
]
] | [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String[] a) throws IOException{\n\n// \tfor(int i=1; i<=9; i++) {\n// \t\tfor (int j=1; j<=9; j++) {\n// \t\t\tSystem.out.println(i + \"x\" + j + \"=\" + (i*j));\n// \t\t}\n// \t}\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line1 = br.readLine();\n int N = Integer.parseInt(line1);\n\n for (int i=0; i<N; i++) {\n \tString line = br.readLine();\n \tString[] tmp = line.split(\" \");\n \tint[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};\n\n\n \tif (pitagoras(tri[0], tri[1], tri[2])\n \t\t\t|| pitagoras(tri[1], tri[2], tri[0])\n \t\t\t|| pitagoras(tri[2], tri[0], tri[1]) ) {\n\n \t\tSystem.out.println(\"YES\");\n \t} else {\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }\n }\n\n\n }\n\n\n private static boolean pitagoras(int a, int b, int c) {\n \treturn Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false;\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main{\n public static void main(String[] a) throws IOException{\n\n// \tfor(int i=1; i<=9; i++) {\n// \t\tfor (int j=1; j<=9; j++) {\n// \t\t\tSystem.out.println(i + \"x\" + j + \"=\" + (i*j));\n// \t\t}\n// \t}\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line1 = br.readLine();\n int N = Integer.parseInt(line1);\n\n for (int i=0; i<N; i++) {\n \tString line = br.readLine();\n \tString[] tmp = line.split(\" \");\n \tint[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};\n\n\n \tif (pitagoras(tri[0], tri[1], tri[2])\n \t\t\t|| pitagoras(tri[1], tri[2], tri[0])\n \t\t\t|| pitagoras(tri[2], tri[0], tri[1]) ) {\n\n \t\tSystem.out.println(\"YES\");\n \t} else {\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }\n }\n\n\n }\n\n\n private static boolean pitagoras(int a, int b, int c) {\n \treturn Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false;\n }\n}",
"Main",
"public static void main(String[] a) throws IOException{\n\n// \tfor(int i=1; i<=9; i++) {\n// \t\tfor (int j=1; j<=9; j++) {\n// \t\t\tSystem.out.println(i + \"x\" + j + \"=\" + (i*j));\n// \t\t}\n// \t}\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line1 = br.readLine();\n int N = Integer.parseInt(line1);\n\n for (int i=0; i<N; i++) {\n \tString line = br.readLine();\n \tString[] tmp = line.split(\" \");\n \tint[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};\n\n\n \tif (pitagoras(tri[0], tri[1], tri[2])\n \t\t\t|| pitagoras(tri[1], tri[2], tri[0])\n \t\t\t|| pitagoras(tri[2], tri[0], tri[1]) ) {\n\n \t\tSystem.out.println(\"YES\");\n \t} else {\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }\n }\n\n\n }",
"main",
"{\n\n// \tfor(int i=1; i<=9; i++) {\n// \t\tfor (int j=1; j<=9; j++) {\n// \t\t\tSystem.out.println(i + \"x\" + j + \"=\" + (i*j));\n// \t\t}\n// \t}\n\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line1 = br.readLine();\n int N = Integer.parseInt(line1);\n\n for (int i=0; i<N; i++) {\n \tString line = br.readLine();\n \tString[] tmp = line.split(\" \");\n \tint[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};\n\n\n \tif (pitagoras(tri[0], tri[1], tri[2])\n \t\t\t|| pitagoras(tri[1], tri[2], tri[0])\n \t\t\t|| pitagoras(tri[2], tri[0], tri[1]) ) {\n\n \t\tSystem.out.println(\"YES\");\n \t} else {\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }\n }\n\n\n }",
"try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n\n String line1 = br.readLine();\n int N = Integer.parseInt(line1);\n\n for (int i=0; i<N; i++) {\n \tString line = br.readLine();\n \tString[] tmp = line.split(\" \");\n \tint[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};\n\n\n \tif (pitagoras(tri[0], tri[1], tri[2])\n \t\t\t|| pitagoras(tri[1], tri[2], tri[0])\n \t\t\t|| pitagoras(tri[2], tri[0], tri[1]) ) {\n\n \t\tSystem.out.println(\"YES\");\n \t} else {\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }\n }",
"{\n\n String line1 = br.readLine();\n int N = Integer.parseInt(line1);\n\n for (int i=0; i<N; i++) {\n \tString line = br.readLine();\n \tString[] tmp = line.split(\" \");\n \tint[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};\n\n\n \tif (pitagoras(tri[0], tri[1], tri[2])\n \t\t\t|| pitagoras(tri[1], tri[2], tri[0])\n \t\t\t|| pitagoras(tri[2], tri[0], tri[1]) ) {\n\n \t\tSystem.out.println(\"YES\");\n \t} else {\n \t\tSystem.out.println(\"NO\");\n \t}\n\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 line1 = br.readLine();",
"line1",
"br.readLine()",
"br.readLine",
"br",
"int N = Integer.parseInt(line1);",
"N",
"Integer.parseInt(line1)",
"Integer.parseInt",
"Integer",
"line1",
"for (int i=0; i<N; i++) {\n \tString line = br.readLine();\n \tString[] tmp = line.split(\" \");\n \tint[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};\n\n\n \tif (pitagoras(tri[0], tri[1], tri[2])\n \t\t\t|| pitagoras(tri[1], tri[2], tri[0])\n \t\t\t|| pitagoras(tri[2], tri[0], tri[1]) ) {\n\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<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n \tString line = br.readLine();\n \tString[] tmp = line.split(\" \");\n \tint[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};\n\n\n \tif (pitagoras(tri[0], tri[1], tri[2])\n \t\t\t|| pitagoras(tri[1], tri[2], tri[0])\n \t\t\t|| pitagoras(tri[2], tri[0], tri[1]) ) {\n\n \t\tSystem.out.println(\"YES\");\n \t} else {\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }",
"{\n \tString line = br.readLine();\n \tString[] tmp = line.split(\" \");\n \tint[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};\n\n\n \tif (pitagoras(tri[0], tri[1], tri[2])\n \t\t\t|| pitagoras(tri[1], tri[2], tri[0])\n \t\t\t|| pitagoras(tri[2], tri[0], tri[1]) ) {\n\n \t\tSystem.out.println(\"YES\");\n \t} else {\n \t\tSystem.out.println(\"NO\");\n \t}\n\n }",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"String[] tmp = line.split(\" \");",
"tmp",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};",
"tri",
"{Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])}",
"Integer.parseInt(tmp[0])",
"Integer.parseInt",
"Integer",
"tmp[0]",
"tmp",
"0",
"Integer.parseInt(tmp[1])",
"Integer.parseInt",
"Integer",
"tmp[1]",
"tmp",
"1",
"Integer.parseInt(tmp[2])",
"Integer.parseInt",
"Integer",
"tmp[2]",
"tmp",
"2",
"if (pitagoras(tri[0], tri[1], tri[2])\n \t\t\t|| pitagoras(tri[1], tri[2], tri[0])\n \t\t\t|| pitagoras(tri[2], tri[0], tri[1]) ) {\n\n \t\tSystem.out.println(\"YES\");\n \t} else {\n \t\tSystem.out.println(\"NO\");\n \t}",
"pitagoras(tri[0], tri[1], tri[2])\n \t\t\t|| pitagoras(tri[1], tri[2], tri[0])\n \t\t\t|| pitagoras(tri[2], tri[0], tri[1])",
"pitagoras(tri[0], tri[1], tri[2])\n \t\t\t|| pitagoras(tri[1], tri[2], tri[0])\n \t\t\t|| pitagoras(tri[2], tri[0], tri[1])",
"pitagoras(tri[0], tri[1], tri[2])",
"pitagoras",
"tri[0]",
"tri",
"0",
"tri[1]",
"tri",
"1",
"tri[2]",
"tri",
"2",
"pitagoras(tri[1], tri[2], tri[0])",
"pitagoras",
"tri[1]",
"tri",
"1",
"tri[2]",
"tri",
"2",
"tri[0]",
"tri",
"0",
"pitagoras(tri[2], tri[0], tri[1])",
"pitagoras",
"tri[2]",
"tri",
"2",
"tri[0]",
"tri",
"0",
"tri[1]",
"tri",
"1",
"{\n\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[] a",
"a",
"private static boolean pitagoras(int a, int b, int c) {\n \treturn Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false;\n }",
"pitagoras",
"{\n \treturn Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false;\n }",
"return Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false;",
"Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false",
"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",
"true",
"false",
"int a",
"a",
"int b",
"b",
"int c",
"c"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String[] a) throws IOException{
// for(int i=1; i<=9; i++) {
// for (int j=1; j<=9; j++) {
// System.out.println(i + "x" + j + "=" + (i*j));
// }
// }
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
String line1 = br.readLine();
int N = Integer.parseInt(line1);
for (int i=0; i<N; i++) {
String line = br.readLine();
String[] tmp = line.split(" ");
int[] tri = {Integer.parseInt(tmp[0]), Integer.parseInt(tmp[1]),Integer.parseInt(tmp[2])};
if (pitagoras(tri[0], tri[1], tri[2])
|| pitagoras(tri[1], tri[2], tri[0])
|| pitagoras(tri[2], tri[0], tri[1]) ) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
}
private static boolean pitagoras(int a, int b, int c) {
return Math.pow(a, 2) + Math.pow(b, 2) == Math.pow(c, 2) ? true : false;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
41,
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,
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,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
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,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
155,
11
],
[
155,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
12,
17
],
[
17,
18
],
[
155,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
25,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
32,
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
],
[
64,
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
],
[
95,
97
],
[
56,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
56,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
56,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
108,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
121,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
121,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
134,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
134,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
148,
153
],
[
0,
154
],
[
154,
155
],
[
154,
156
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tprint();\n\t}\n\n\tprivate static void print() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tString str = br.readLine();\n\t\t\tint numberOfReceivedDataset = Integer.parseInt(str);\n\n\t\t\tfor (int i = 1; i <= numberOfReceivedDataset; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] nums = str.split(\" \", 0);\n\n\t\t\t\tint x = Integer.parseInt(nums[0]);\n\t\t\t\tint y = Integer.parseInt(nums[1]);\n\t\t\t\tint z = Integer.parseInt(nums[2]);\n\n\t\t\t\tint xToSecondPower = x * x;\n\t\t\t\tint yToSecondPower = y * y;\n\t\t\t\tint zToSecondPower = z * z;\n\n\t\t\t\tif (xToSecondPower + yToSecondPower == zToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tprint();\n\t}\n\n\tprivate static void print() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tString str = br.readLine();\n\t\t\tint numberOfReceivedDataset = Integer.parseInt(str);\n\n\t\t\tfor (int i = 1; i <= numberOfReceivedDataset; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] nums = str.split(\" \", 0);\n\n\t\t\t\tint x = Integer.parseInt(nums[0]);\n\t\t\t\tint y = Integer.parseInt(nums[1]);\n\t\t\t\tint z = Integer.parseInt(nums[2]);\n\n\t\t\t\tint xToSecondPower = x * x;\n\t\t\t\tint yToSecondPower = y * y;\n\t\t\t\tint zToSecondPower = z * z;\n\n\t\t\t\tif (xToSecondPower + yToSecondPower == zToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tprint();\n\t}",
"main",
"{\n\t\tprint();\n\t}",
"print()",
"print",
"String[] args",
"args",
"private static void print() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tString str = br.readLine();\n\t\t\tint numberOfReceivedDataset = Integer.parseInt(str);\n\n\t\t\tfor (int i = 1; i <= numberOfReceivedDataset; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] nums = str.split(\" \", 0);\n\n\t\t\t\tint x = Integer.parseInt(nums[0]);\n\t\t\t\tint y = Integer.parseInt(nums[1]);\n\t\t\t\tint z = Integer.parseInt(nums[2]);\n\n\t\t\t\tint xToSecondPower = x * x;\n\t\t\t\tint yToSecondPower = y * y;\n\t\t\t\tint zToSecondPower = z * z;\n\n\t\t\t\tif (xToSecondPower + yToSecondPower == zToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"print",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tString str = br.readLine();\n\t\t\tint numberOfReceivedDataset = Integer.parseInt(str);\n\n\t\t\tfor (int i = 1; i <= numberOfReceivedDataset; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] nums = str.split(\" \", 0);\n\n\t\t\t\tint x = Integer.parseInt(nums[0]);\n\t\t\t\tint y = Integer.parseInt(nums[1]);\n\t\t\t\tint z = Integer.parseInt(nums[2]);\n\n\t\t\t\tint xToSecondPower = x * x;\n\t\t\t\tint yToSecondPower = y * y;\n\t\t\t\tint zToSecondPower = z * z;\n\n\t\t\t\tif (xToSecondPower + yToSecondPower == zToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n\t\t\tString str = br.readLine();\n\t\t\tint numberOfReceivedDataset = Integer.parseInt(str);\n\n\t\t\tfor (int i = 1; i <= numberOfReceivedDataset; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] nums = str.split(\" \", 0);\n\n\t\t\t\tint x = Integer.parseInt(nums[0]);\n\t\t\t\tint y = Integer.parseInt(nums[1]);\n\t\t\t\tint z = Integer.parseInt(nums[2]);\n\n\t\t\t\tint xToSecondPower = x * x;\n\t\t\t\tint yToSecondPower = y * y;\n\t\t\t\tint zToSecondPower = z * z;\n\n\t\t\t\tif (xToSecondPower + yToSecondPower == zToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tString str = br.readLine();\n\t\t\tint numberOfReceivedDataset = Integer.parseInt(str);\n\n\t\t\tfor (int i = 1; i <= numberOfReceivedDataset; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] nums = str.split(\" \", 0);\n\n\t\t\t\tint x = Integer.parseInt(nums[0]);\n\t\t\t\tint y = Integer.parseInt(nums[1]);\n\t\t\t\tint z = Integer.parseInt(nums[2]);\n\n\t\t\t\tint xToSecondPower = x * x;\n\t\t\t\tint yToSecondPower = y * y;\n\t\t\t\tint zToSecondPower = z * z;\n\n\t\t\t\tif (xToSecondPower + yToSecondPower == zToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"int numberOfReceivedDataset = Integer.parseInt(str);",
"numberOfReceivedDataset",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"for (int i = 1; i <= numberOfReceivedDataset; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] nums = str.split(\" \", 0);\n\n\t\t\t\tint x = Integer.parseInt(nums[0]);\n\t\t\t\tint y = Integer.parseInt(nums[1]);\n\t\t\t\tint z = Integer.parseInt(nums[2]);\n\n\t\t\t\tint xToSecondPower = x * x;\n\t\t\t\tint yToSecondPower = y * y;\n\t\t\t\tint zToSecondPower = z * z;\n\n\t\t\t\tif (xToSecondPower + yToSecondPower == zToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= numberOfReceivedDataset",
"i",
"numberOfReceivedDataset",
"i++",
"i++",
"i",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] nums = str.split(\" \", 0);\n\n\t\t\t\tint x = Integer.parseInt(nums[0]);\n\t\t\t\tint y = Integer.parseInt(nums[1]);\n\t\t\t\tint z = Integer.parseInt(nums[2]);\n\n\t\t\t\tint xToSecondPower = x * x;\n\t\t\t\tint yToSecondPower = y * y;\n\t\t\t\tint zToSecondPower = z * z;\n\n\t\t\t\tif (xToSecondPower + yToSecondPower == zToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}",
"{\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] nums = str.split(\" \", 0);\n\n\t\t\t\tint x = Integer.parseInt(nums[0]);\n\t\t\t\tint y = Integer.parseInt(nums[1]);\n\t\t\t\tint z = Integer.parseInt(nums[2]);\n\n\t\t\t\tint xToSecondPower = x * x;\n\t\t\t\tint yToSecondPower = y * y;\n\t\t\t\tint zToSecondPower = z * z;\n\n\t\t\t\tif (xToSecondPower + yToSecondPower == zToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] nums = str.split(\" \", 0);",
"nums",
"str.split(\" \", 0)",
"str.split",
"str",
"\" \"",
"0",
"int x = Integer.parseInt(nums[0]);",
"x",
"Integer.parseInt(nums[0])",
"Integer.parseInt",
"Integer",
"nums[0]",
"nums",
"0",
"int y = Integer.parseInt(nums[1]);",
"y",
"Integer.parseInt(nums[1])",
"Integer.parseInt",
"Integer",
"nums[1]",
"nums",
"1",
"int z = Integer.parseInt(nums[2]);",
"z",
"Integer.parseInt(nums[2])",
"Integer.parseInt",
"Integer",
"nums[2]",
"nums",
"2",
"int xToSecondPower = x * x;",
"xToSecondPower",
"x * x",
"x",
"x",
"int yToSecondPower = y * y;",
"yToSecondPower",
"y * y",
"y",
"y",
"int zToSecondPower = z * z;",
"zToSecondPower",
"z * z",
"z",
"z",
"if (xToSecondPower + yToSecondPower == zToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}",
"xToSecondPower + yToSecondPower == zToSecondPower",
"xToSecondPower + yToSecondPower",
"xToSecondPower",
"yToSecondPower",
"zToSecondPower",
"{\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\"",
"if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}",
"zToSecondPower + yToSecondPower == xToSecondPower",
"zToSecondPower + yToSecondPower",
"zToSecondPower",
"yToSecondPower",
"xToSecondPower",
"{\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\"",
"if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}",
"zToSecondPower + xToSecondPower == yToSecondPower",
"zToSecondPower + xToSecondPower",
"zToSecondPower",
"xToSecondPower",
"yToSecondPower",
"{\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\"",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tprint();\n\t}\n\n\tprivate static void print() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tString str = br.readLine();\n\t\t\tint numberOfReceivedDataset = Integer.parseInt(str);\n\n\t\t\tfor (int i = 1; i <= numberOfReceivedDataset; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] nums = str.split(\" \", 0);\n\n\t\t\t\tint x = Integer.parseInt(nums[0]);\n\t\t\t\tint y = Integer.parseInt(nums[1]);\n\t\t\t\tint z = Integer.parseInt(nums[2]);\n\n\t\t\t\tint xToSecondPower = x * x;\n\t\t\t\tint yToSecondPower = y * y;\n\t\t\t\tint zToSecondPower = z * z;\n\n\t\t\t\tif (xToSecondPower + yToSecondPower == zToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tprint();\n\t}\n\n\tprivate static void print() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tString str = br.readLine();\n\t\t\tint numberOfReceivedDataset = Integer.parseInt(str);\n\n\t\t\tfor (int i = 1; i <= numberOfReceivedDataset; i++) {\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] nums = str.split(\" \", 0);\n\n\t\t\t\tint x = Integer.parseInt(nums[0]);\n\t\t\t\tint y = Integer.parseInt(nums[1]);\n\t\t\t\tint z = Integer.parseInt(nums[2]);\n\n\t\t\t\tint xToSecondPower = x * x;\n\t\t\t\tint yToSecondPower = y * y;\n\t\t\t\tint zToSecondPower = z * z;\n\n\t\t\t\tif (xToSecondPower + yToSecondPower == zToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + yToSecondPower == xToSecondPower) {\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t} else if (zToSecondPower + xToSecondPower == yToSecondPower) {\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}\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
print();
}
private static void print() {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
String str = br.readLine();
int numberOfReceivedDataset = Integer.parseInt(str);
for (int i = 1; i <= numberOfReceivedDataset; i++) {
str = br.readLine();
String[] nums = str.split(" ", 0);
int x = Integer.parseInt(nums[0]);
int y = Integer.parseInt(nums[1]);
int z = Integer.parseInt(nums[2]);
int xToSecondPower = x * x;
int yToSecondPower = y * y;
int zToSecondPower = z * z;
if (xToSecondPower + yToSecondPower == zToSecondPower) {
System.out.println("YES");
} else if (zToSecondPower + yToSecondPower == xToSecondPower) {
System.out.println("YES");
} else if (zToSecondPower + xToSecondPower == yToSecondPower) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
0,
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,
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,
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,
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
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
13,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
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
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
38,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
61,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
73,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
38,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
100,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
99,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
119,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
111,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
130,
136
],
[
8,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
142,
143
],
[
142,
144
],
[
137,
145
],
[
145,
146
],
[
146,
147
],
[
137,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
152,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
151,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
164,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
163,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
175,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
150,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
187,
192
],
[
150,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
6,
200
],
[
200,
201
]
] | [
"/* Volume0 0003 Is it a Right Triangle? */\nimport java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args){\n\n\t\tint n, temp;\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tn = stdIn.nextInt();\n\t\tint[][] side = new int[n][3];\n\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tfor( int j = 0; j < 3; j++) {\n\t\t\t\tside[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][1] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][1];\n\t\t\t\tside[i][1] = temp;\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][2] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][2];\n\t\t\t\tside[i][2] = temp;\n\t\t\t}\n\t\t}\n\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tif ( side[i][0]*side[i][0] == side[i][1]*side[i][1] + side[i][2]*side[i][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}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args){\n\n\t\tint n, temp;\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tn = stdIn.nextInt();\n\t\tint[][] side = new int[n][3];\n\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tfor( int j = 0; j < 3; j++) {\n\t\t\t\tside[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][1] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][1];\n\t\t\t\tside[i][1] = temp;\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][2] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][2];\n\t\t\t\tside[i][2] = temp;\n\t\t\t}\n\t\t}\n\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tif ( side[i][0]*side[i][0] == side[i][1]*side[i][1] + side[i][2]*side[i][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}\n}",
"Main",
"public static void main(String[] args){\n\n\t\tint n, temp;\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tn = stdIn.nextInt();\n\t\tint[][] side = new int[n][3];\n\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tfor( int j = 0; j < 3; j++) {\n\t\t\t\tside[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][1] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][1];\n\t\t\t\tside[i][1] = temp;\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][2] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][2];\n\t\t\t\tside[i][2] = temp;\n\t\t\t}\n\t\t}\n\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tif ( side[i][0]*side[i][0] == side[i][1]*side[i][1] + side[i][2]*side[i][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}",
"main",
"{\n\n\t\tint n, temp;\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tn = stdIn.nextInt();\n\t\tint[][] side = new int[n][3];\n\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tfor( int j = 0; j < 3; j++) {\n\t\t\t\tside[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][1] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][1];\n\t\t\t\tside[i][1] = temp;\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][2] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][2];\n\t\t\t\tside[i][2] = temp;\n\t\t\t}\n\t\t}\n\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tif ( side[i][0]*side[i][0] == side[i][1]*side[i][1] + side[i][2]*side[i][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}",
"int n",
"n",
"temp;",
"temp",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"n = stdIn.nextInt()",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int[][] side = new int[n][3];",
"side",
"new int[n][3]",
"n",
"3",
"for( int i = 0; i < n; i++) {\n\t\t\tfor( int j = 0; j < 3; j++) {\n\t\t\t\tside[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][1] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][1];\n\t\t\t\tside[i][1] = temp;\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][2] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][2];\n\t\t\t\tside[i][2] = temp;\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\tside[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][1] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][1];\n\t\t\t\tside[i][1] = temp;\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][2] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][2];\n\t\t\t\tside[i][2] = temp;\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor( int j = 0; j < 3; j++) {\n\t\t\t\tside[i][j] = stdIn.nextInt();\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][1] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][1];\n\t\t\t\tside[i][1] = temp;\n\t\t\t}\n\t\t\tif ( side[i][0] < side[i][2] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][2];\n\t\t\t\tside[i][2] = temp;\n\t\t\t}\n\t\t}",
"for( int j = 0; j < 3; j++) {\n\t\t\t\tside[i][j] = stdIn.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tside[i][j] = stdIn.nextInt();\n\t\t\t}",
"{\n\t\t\t\tside[i][j] = stdIn.nextInt();\n\t\t\t}",
"side[i][j] = stdIn.nextInt()",
"side[i][j]",
"side[i]",
"side",
"i",
"j",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"if ( side[i][0] < side[i][1] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][1];\n\t\t\t\tside[i][1] = temp;\n\t\t\t}",
"side[i][0] < side[i][1]",
"side[i][0]",
"side[i]",
"side",
"i",
"0",
"side[i][1]",
"side[i]",
"side",
"i",
"1",
"{\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][1];\n\t\t\t\tside[i][1] = temp;\n\t\t\t}",
"temp = side[i][0]",
"temp",
"side[i][0]",
"side[i]",
"side",
"i",
"0",
"side[i][0] = side[i][1]",
"side[i][0]",
"side[i]",
"side",
"i",
"0",
"side[i][1]",
"side[i]",
"side",
"i",
"1",
"side[i][1] = temp",
"side[i][1]",
"side[i]",
"side",
"i",
"1",
"temp",
"if ( side[i][0] < side[i][2] ){\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][2];\n\t\t\t\tside[i][2] = temp;\n\t\t\t}",
"side[i][0] < side[i][2]",
"side[i][0]",
"side[i]",
"side",
"i",
"0",
"side[i][2]",
"side[i]",
"side",
"i",
"2",
"{\n\t\t\t\ttemp = side[i][0] ;\n\t\t\t\tside[i][0] = side[i][2];\n\t\t\t\tside[i][2] = temp;\n\t\t\t}",
"temp = side[i][0]",
"temp",
"side[i][0]",
"side[i]",
"side",
"i",
"0",
"side[i][0] = side[i][2]",
"side[i][0]",
"side[i]",
"side",
"i",
"0",
"side[i][2]",
"side[i]",
"side",
"i",
"2",
"side[i][2] = temp",
"side[i][2]",
"side[i]",
"side",
"i",
"2",
"temp",
"for( int i = 0; i < n; i++) {\n\t\t\tif ( side[i][0]*side[i][0] == side[i][1]*side[i][1] + side[i][2]*side[i][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 < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif ( side[i][0]*side[i][0] == side[i][1]*side[i][1] + side[i][2]*side[i][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\tif ( side[i][0]*side[i][0] == side[i][1]*side[i][1] + side[i][2]*side[i][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}",
"if ( side[i][0]*side[i][0] == side[i][1]*side[i][1] + side[i][2]*side[i][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}",
"side[i][0]*side[i][0] == side[i][1]*side[i][1] + side[i][2]*side[i][2]",
"side[i][0]*side[i][0]",
"side[i][0]",
"side[i]",
"side",
"i",
"0",
"side[i][0]",
"side[i]",
"side",
"i",
"0",
"side[i][1]*side[i][1] + side[i][2]*side[i][2]",
"side[i][1]*side[i][1]",
"side[i][1]",
"side[i]",
"side",
"i",
"1",
"side[i][1]",
"side[i]",
"side",
"i",
"1",
"side[i][2]*side[i][2]",
"side[i][2]",
"side[i]",
"side",
"i",
"2",
"side[i][2]",
"side[i]",
"side",
"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"
] | /* Volume0 0003 Is it a Right Triangle? */
import java.util.Scanner;
class Main{
public static void main(String[] args){
int n, temp;
Scanner stdIn = new Scanner(System.in);
n = stdIn.nextInt();
int[][] side = new int[n][3];
for( int i = 0; i < n; i++) {
for( int j = 0; j < 3; j++) {
side[i][j] = stdIn.nextInt();
}
if ( side[i][0] < side[i][1] ){
temp = side[i][0] ;
side[i][0] = side[i][1];
side[i][1] = temp;
}
if ( side[i][0] < side[i][2] ){
temp = side[i][0] ;
side[i][0] = side[i][2];
side[i][2] = temp;
}
}
for( int i = 0; i < n; i++) {
if ( side[i][0]*side[i][0] == side[i][1]*side[i][1] + side[i][2]*side[i][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,
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,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
4,
18,
13,
13,
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,
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
],
[
117,
14
],
[
117,
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
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
66,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
41,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
41,
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
],
[
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
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
] | [
"import 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 NumberFormatException, 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[] tmpStr = br.readLine().split(\" \");\n int[] linesq = new int[3];\n\n for(int j = 0; j < 3; j++){\n linesq[j] = Integer.parseInt(tmpStr[j]);\n linesq[j] *= linesq[j];\n }\n\n Arrays.sort(linesq);\n\n if(linesq[2] == linesq[1] + linesq[0] ){\n System.out.println(\"YES\");\n }\n else {\n System.out.println(\"NO\");\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.Arrays;",
"Arrays",
"java.util",
"public class Main {\n\n public static void main(String[] args) throws NumberFormatException, 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[] tmpStr = br.readLine().split(\" \");\n int[] linesq = new int[3];\n\n for(int j = 0; j < 3; j++){\n linesq[j] = Integer.parseInt(tmpStr[j]);\n linesq[j] *= linesq[j];\n }\n\n Arrays.sort(linesq);\n\n if(linesq[2] == linesq[1] + linesq[0] ){\n System.out.println(\"YES\");\n }\n else {\n System.out.println(\"NO\");\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, 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[] tmpStr = br.readLine().split(\" \");\n int[] linesq = new int[3];\n\n for(int j = 0; j < 3; j++){\n linesq[j] = Integer.parseInt(tmpStr[j]);\n linesq[j] *= linesq[j];\n }\n\n Arrays.sort(linesq);\n\n if(linesq[2] == linesq[1] + linesq[0] ){\n System.out.println(\"YES\");\n }\n else {\n System.out.println(\"NO\");\n }\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[] tmpStr = br.readLine().split(\" \");\n int[] linesq = new int[3];\n\n for(int j = 0; j < 3; j++){\n linesq[j] = Integer.parseInt(tmpStr[j]);\n linesq[j] *= linesq[j];\n }\n\n Arrays.sort(linesq);\n\n if(linesq[2] == linesq[1] + linesq[0] ){\n System.out.println(\"YES\");\n }\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[] tmpStr = br.readLine().split(\" \");\n int[] linesq = new int[3];\n\n for(int j = 0; j < 3; j++){\n linesq[j] = Integer.parseInt(tmpStr[j]);\n linesq[j] *= linesq[j];\n }\n\n Arrays.sort(linesq);\n\n if(linesq[2] == linesq[1] + linesq[0] ){\n System.out.println(\"YES\");\n }\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[] tmpStr = br.readLine().split(\" \");\n int[] linesq = new int[3];\n\n for(int j = 0; j < 3; j++){\n linesq[j] = Integer.parseInt(tmpStr[j]);\n linesq[j] *= linesq[j];\n }\n\n Arrays.sort(linesq);\n\n if(linesq[2] == linesq[1] + linesq[0] ){\n System.out.println(\"YES\");\n }\n else {\n System.out.println(\"NO\");\n }\n }",
"{\n String[] tmpStr = br.readLine().split(\" \");\n int[] linesq = new int[3];\n\n for(int j = 0; j < 3; j++){\n linesq[j] = Integer.parseInt(tmpStr[j]);\n linesq[j] *= linesq[j];\n }\n\n Arrays.sort(linesq);\n\n if(linesq[2] == linesq[1] + linesq[0] ){\n System.out.println(\"YES\");\n }\n else {\n System.out.println(\"NO\");\n }\n }",
"String[] tmpStr = br.readLine().split(\" \");",
"tmpStr",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int[] linesq = new int[3];",
"linesq",
"new int[3]",
"3",
"for(int j = 0; j < 3; j++){\n linesq[j] = Integer.parseInt(tmpStr[j]);\n linesq[j] *= linesq[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n linesq[j] = Integer.parseInt(tmpStr[j]);\n linesq[j] *= linesq[j];\n }",
"{\n linesq[j] = Integer.parseInt(tmpStr[j]);\n linesq[j] *= linesq[j];\n }",
"linesq[j] = Integer.parseInt(tmpStr[j])",
"linesq[j]",
"linesq",
"j",
"Integer.parseInt(tmpStr[j])",
"Integer.parseInt",
"Integer",
"tmpStr[j]",
"tmpStr",
"j",
"linesq[j] *= linesq[j]",
"linesq[j]",
"linesq",
"j",
"linesq[j]",
"linesq",
"j",
"Arrays.sort(linesq)",
"Arrays.sort",
"Arrays",
"linesq",
"if(linesq[2] == linesq[1] + linesq[0] ){\n System.out.println(\"YES\");\n }\n else {\n System.out.println(\"NO\");\n }",
"linesq[2] == linesq[1] + linesq[0]",
"linesq[2]",
"linesq",
"2",
"linesq[1] + linesq[0]",
"linesq[1]",
"linesq",
"1",
"linesq[0]",
"linesq",
"0",
"{\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 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[] tmpStr = br.readLine().split(\" \");\n int[] linesq = new int[3];\n\n for(int j = 0; j < 3; j++){\n linesq[j] = Integer.parseInt(tmpStr[j]);\n linesq[j] *= linesq[j];\n }\n\n Arrays.sort(linesq);\n\n if(linesq[2] == linesq[1] + linesq[0] ){\n System.out.println(\"YES\");\n }\n else {\n System.out.println(\"NO\");\n }\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws NumberFormatException, 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[] tmpStr = br.readLine().split(\" \");\n int[] linesq = new int[3];\n\n for(int j = 0; j < 3; j++){\n linesq[j] = Integer.parseInt(tmpStr[j]);\n linesq[j] *= linesq[j];\n }\n\n Arrays.sort(linesq);\n\n if(linesq[2] == linesq[1] + linesq[0] ){\n System.out.println(\"YES\");\n }\n else {\n System.out.println(\"NO\");\n }\n }\n }\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 br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
for(int i = 0; i < n; i++){
String[] tmpStr = br.readLine().split(" ");
int[] linesq = new int[3];
for(int j = 0; j < 3; j++){
linesq[j] = Integer.parseInt(tmpStr[j]);
linesq[j] *= linesq[j];
}
Arrays.sort(linesq);
if(linesq[2] == linesq[1] + linesq[0] ){
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,
42,
2,
40,
13,
17,
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,
18,
13,
13,
8,
2,
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,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
91,
8
],
[
91,
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
],
[
25,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
29,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
29,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
29,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
62,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
61,
85
],
[
60,
86
],
[
60,
87
],
[
9,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint[] l = new int[3];\n\t\twhile (n-->0) {\n\t\t\tl[0] = s.nextInt();\n\t\t\tl[1] = s.nextInt();\n\t\t\tl[2] = s.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println((l[0]*l[0]+l[1]*l[1]-l[2]*l[2] == 0)?\"YES\":\"NO\");\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\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint[] l = new int[3];\n\t\twhile (n-->0) {\n\t\t\tl[0] = s.nextInt();\n\t\t\tl[1] = s.nextInt();\n\t\t\tl[2] = s.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println((l[0]*l[0]+l[1]*l[1]-l[2]*l[2] == 0)?\"YES\":\"NO\");\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\tint[] l = new int[3];\n\t\twhile (n-->0) {\n\t\t\tl[0] = s.nextInt();\n\t\t\tl[1] = s.nextInt();\n\t\t\tl[2] = s.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println((l[0]*l[0]+l[1]*l[1]-l[2]*l[2] == 0)?\"YES\":\"NO\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint[] l = new int[3];\n\t\twhile (n-->0) {\n\t\t\tl[0] = s.nextInt();\n\t\t\tl[1] = s.nextInt();\n\t\t\tl[2] = s.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println((l[0]*l[0]+l[1]*l[1]-l[2]*l[2] == 0)?\"YES\":\"NO\");\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",
"int[] l = new int[3];",
"l",
"new int[3]",
"3",
"while (n-->0) {\n\t\t\tl[0] = s.nextInt();\n\t\t\tl[1] = s.nextInt();\n\t\t\tl[2] = s.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println((l[0]*l[0]+l[1]*l[1]-l[2]*l[2] == 0)?\"YES\":\"NO\");\n\t\t}",
"n-->0",
"n--",
"n",
"0",
"{\n\t\t\tl[0] = s.nextInt();\n\t\t\tl[1] = s.nextInt();\n\t\t\tl[2] = s.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println((l[0]*l[0]+l[1]*l[1]-l[2]*l[2] == 0)?\"YES\":\"NO\");\n\t\t}",
"l[0] = s.nextInt()",
"l[0]",
"l",
"0",
"s.nextInt()",
"s.nextInt",
"s",
"l[1] = s.nextInt()",
"l[1]",
"l",
"1",
"s.nextInt()",
"s.nextInt",
"s",
"l[2] = s.nextInt()",
"l[2]",
"l",
"2",
"s.nextInt()",
"s.nextInt",
"s",
"Arrays.sort(l)",
"Arrays.sort",
"Arrays",
"l",
"System.out.println((l[0]*l[0]+l[1]*l[1]-l[2]*l[2] == 0)?\"YES\":\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"(l[0]*l[0]+l[1]*l[1]-l[2]*l[2] == 0)?\"YES\":\"NO\"",
"(l[0]*l[0]+l[1]*l[1]-l[2]*l[2] == 0)",
"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",
"0",
"\"YES\"",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint[] l = new int[3];\n\t\twhile (n-->0) {\n\t\t\tl[0] = s.nextInt();\n\t\t\tl[1] = s.nextInt();\n\t\t\tl[2] = s.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println((l[0]*l[0]+l[1]*l[1]-l[2]*l[2] == 0)?\"YES\":\"NO\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint[] l = new int[3];\n\t\twhile (n-->0) {\n\t\t\tl[0] = s.nextInt();\n\t\t\tl[1] = s.nextInt();\n\t\t\tl[2] = s.nextInt();\n\t\t\tArrays.sort(l);\n\t\t\tSystem.out.println((l[0]*l[0]+l[1]*l[1]-l[2]*l[2] == 0)?\"YES\":\"NO\");\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int[] l = new int[3];
while (n-->0) {
l[0] = s.nextInt();
l[1] = s.nextInt();
l[2] = s.nextInt();
Arrays.sort(l);
System.out.println((l[0]*l[0]+l[1]*l[1]-l[2]*l[2] == 0)?"YES":"NO");
}
}
} |
[
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,
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,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
121,
5
],
[
121,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
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
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
66,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
79,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
92,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
121,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
112,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
] | [
"\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tvoid run() {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\n\t\tint a, b, c;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\n\t\t\ta = a * a;\n\t\t\tb = b * b;\n\t\t\tc = c * c;\n\n\t\t\tif (a + b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (a + c == 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\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tvoid run() {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\n\t\tint a, b, c;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\n\t\t\ta = a * a;\n\t\t\tb = b * b;\n\t\t\tc = c * c;\n\n\t\t\tif (a + b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (a + c == 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\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main",
"void run() {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\n\t\tint a, b, c;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\n\t\t\ta = a * a;\n\t\t\tb = b * b;\n\t\t\tc = c * c;\n\n\t\t\tif (a + b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (a + c == 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\n\t}",
"run",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\n\t\tint a, b, c;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\n\t\t\ta = a * a;\n\t\t\tb = b * b;\n\t\t\tc = c * c;\n\n\t\t\tif (a + b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (a + c == 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\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",
"a",
"b",
"b",
"c;",
"c",
"for (int i = 0; i < N; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\n\t\t\ta = a * a;\n\t\t\tb = b * b;\n\t\t\tc = c * c;\n\n\t\t\tif (a + b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (a + c == 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\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\n\t\t\ta = a * a;\n\t\t\tb = b * b;\n\t\t\tc = c * c;\n\n\t\t\tif (a + b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (a + c == 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\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\n\t\t\ta = a * a;\n\t\t\tb = b * b;\n\t\t\tc = c * c;\n\n\t\t\tif (a + b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (a + c == 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}",
"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",
"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\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (a + c == 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 + b == c",
"a + b",
"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\"",
"if (b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (a + c == 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}",
"b + c == a",
"b + c",
"b",
"c",
"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 (a + c == 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 + c == b",
"a + c",
"a",
"c",
"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\"",
"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 class Main {\n\n\tvoid run() {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\n\t\tint a, b, c;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\n\t\t\ta = a * a;\n\t\t\tb = b * b;\n\t\t\tc = c * c;\n\n\t\t\tif (a + b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (a + c == 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\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"public class Main {\n\n\tvoid run() {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\n\t\tint a, b, c;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\n\t\t\ta = a * a;\n\t\t\tb = b * b;\n\t\t\tc = c * c;\n\n\t\t\tif (a + b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else if (a + c == 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\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
void run() {
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int a, b, c;
for (int i = 0; i < N; i++) {
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
a = a * a;
b = b * b;
c = c * c;
if (a + b == c) {
System.out.println("YES");
} else if (b + c == a) {
System.out.println("YES");
} else if (a + c == b) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
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,
41,
13,
4,
18,
13,
4,
18,
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,
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,
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
],
[
121,
8
],
[
121,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
22,
23
],
[
23,
24
],
[
11,
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
],
[
45,
48
],
[
37,
49
],
[
49,
50
],
[
49,
51
],
[
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
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
37,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
37,
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
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
80,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
9,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
] | [
"import java.io.*;\nimport java.util.Arrays;\npublic class Main {\n\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint set = Integer.parseInt(br.readLine());\n\t\t\t\t\t\n\t\tfor(int i = 0; i < set; i++) {\n\t\t\tline = br.readLine();\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint[] numSet = new int[3];\n\n\t\t\tfor (int j = 0; j < 3; j++){\n\t\t\t\tnumSet[j] = Integer.parseInt(numbers[j]);\n\t\t\t}\n\n\t\t\tArrays.sort(numSet);\n\n\t\t\tif(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint set = Integer.parseInt(br.readLine());\n\t\t\t\t\t\n\t\tfor(int i = 0; i < set; i++) {\n\t\t\tline = br.readLine();\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint[] numSet = new int[3];\n\n\t\t\tfor (int j = 0; j < 3; j++){\n\t\t\t\tnumSet[j] = Integer.parseInt(numbers[j]);\n\t\t\t}\n\n\t\t\tArrays.sort(numSet);\n\n\t\t\tif(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint set = Integer.parseInt(br.readLine());\n\t\t\t\t\t\n\t\tfor(int i = 0; i < set; i++) {\n\t\t\tline = br.readLine();\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint[] numSet = new int[3];\n\n\t\t\tfor (int j = 0; j < 3; j++){\n\t\t\t\tnumSet[j] = Integer.parseInt(numbers[j]);\n\t\t\t}\n\n\t\t\tArrays.sort(numSet);\n\n\t\t\tif(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint set = Integer.parseInt(br.readLine());\n\t\t\t\t\t\n\t\tfor(int i = 0; i < set; i++) {\n\t\t\tline = br.readLine();\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint[] numSet = new int[3];\n\n\t\t\tfor (int j = 0; j < 3; j++){\n\t\t\t\tnumSet[j] = Integer.parseInt(numbers[j]);\n\t\t\t}\n\n\t\t\tArrays.sort(numSet);\n\n\t\t\tif(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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))",
"String line;",
"line",
"int set = Integer.parseInt(br.readLine());",
"set",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0; i < set; i++) {\n\t\t\tline = br.readLine();\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint[] numSet = new int[3];\n\n\t\t\tfor (int j = 0; j < 3; j++){\n\t\t\t\tnumSet[j] = Integer.parseInt(numbers[j]);\n\t\t\t}\n\n\t\t\tArrays.sort(numSet);\n\n\t\t\tif(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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 < set",
"i",
"set",
"i++",
"i++",
"i",
"{\n\t\t\tline = br.readLine();\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint[] numSet = new int[3];\n\n\t\t\tfor (int j = 0; j < 3; j++){\n\t\t\t\tnumSet[j] = Integer.parseInt(numbers[j]);\n\t\t\t}\n\n\t\t\tArrays.sort(numSet);\n\n\t\t\tif(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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\tline = br.readLine();\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint[] numSet = new int[3];\n\n\t\t\tfor (int j = 0; j < 3; j++){\n\t\t\t\tnumSet[j] = Integer.parseInt(numbers[j]);\n\t\t\t}\n\n\t\t\tArrays.sort(numSet);\n\n\t\t\tif(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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}",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"String[] numbers = line.split(\" \");",
"numbers",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int[] numSet = new int[3];",
"numSet",
"new int[3]",
"3",
"for (int j = 0; j < 3; j++){\n\t\t\t\tnumSet[j] = Integer.parseInt(numbers[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tnumSet[j] = Integer.parseInt(numbers[j]);\n\t\t\t}",
"{\n\t\t\t\tnumSet[j] = Integer.parseInt(numbers[j]);\n\t\t\t}",
"numSet[j] = Integer.parseInt(numbers[j])",
"numSet[j]",
"numSet",
"j",
"Integer.parseInt(numbers[j])",
"Integer.parseInt",
"Integer",
"numbers[j]",
"numbers",
"j",
"Arrays.sort(numSet)",
"Arrays.sort",
"Arrays",
"numSet",
"if(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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}",
"numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[0]",
"numSet[2]*numSet[2]",
"numSet[2]",
"numSet",
"2",
"numSet[2]",
"numSet",
"2",
"numSet[1]*numSet[1] + numSet[0]*numSet[0]",
"numSet[1]*numSet[1]",
"numSet[1]",
"numSet",
"1",
"numSet[1]",
"numSet",
"1",
"numSet[0]*numSet[0]",
"numSet[0]",
"numSet",
"0",
"numSet[0]",
"numSet",
"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\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint set = Integer.parseInt(br.readLine());\n\t\t\t\t\t\n\t\tfor(int i = 0; i < set; i++) {\n\t\t\tline = br.readLine();\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint[] numSet = new int[3];\n\n\t\t\tfor (int j = 0; j < 3; j++){\n\t\t\t\tnumSet[j] = Integer.parseInt(numbers[j]);\n\t\t\t}\n\n\t\t\tArrays.sort(numSet);\n\n\t\t\tif(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint set = Integer.parseInt(br.readLine());\n\t\t\t\t\t\n\t\tfor(int i = 0; i < set; i++) {\n\t\t\tline = br.readLine();\n\t\t\tString[] numbers = line.split(\" \");\n\t\t\tint[] numSet = new int[3];\n\n\t\t\tfor (int j = 0; j < 3; j++){\n\t\t\t\tnumSet[j] = Integer.parseInt(numbers[j]);\n\t\t\t}\n\n\t\t\tArrays.sort(numSet);\n\n\t\t\tif(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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.io.*;
import java.util.Arrays;
public class Main {
public static void main (String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
int set = Integer.parseInt(br.readLine());
for(int i = 0; i < set; i++) {
line = br.readLine();
String[] numbers = line.split(" ");
int[] numSet = new int[3];
for (int j = 0; j < 3; j++){
numSet[j] = Integer.parseInt(numbers[j]);
}
Arrays.sort(numSet);
if(numSet[2]*numSet[2] == numSet[1]*numSet[1] + numSet[0]*numSet[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,
17,
41,
13,
41,
13,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
2,
13,
17,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
17,
0,
13,
17,
0,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
18,
13,
13,
17,
14,
2,
13,
4,
18,
13,
18,
13,
13,
30,
0,
13,
4,
18,
13,
18,
13,
13,
0,
13,
4,
18,
13,
13,
17,
14,
2,
13,
4,
18,
13,
13,
17,
4,
18,
13,
17,
4,
18,
13,
17,
40,
13,
28,
13,
13,
30,
30,
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
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
17,
34
],
[
34,
35
],
[
17,
36
],
[
36,
37
],
[
37,
38
],
[
17,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
39,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
51,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
51,
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
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
79,
88
],
[
76,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
95,
97
],
[
89,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
51,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
109,
113
],
[
51,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
117,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
114,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
51,
130
],
[
130,
131
],
[
17,
132
],
[
132,
133
],
[
132,
134
],
[
132,
135
],
[
136,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
137,
142
],
[
15,
143
],
[
143,
144
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\nclass Main\n{\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> strLst = new ArrayList<String>();\n\t\tint cnt = 0;\n\t\tint max;\n\t\tint other;\n\t\tString inputLine = \"\";\n\t\tString[] lines;\n\n\t\tbr.readLine();\n\t\twhile (cnt <= 1000 && (inputLine = br.readLine()) != null)\n\t\t{\n\t\t\tmax = 0;\n\t\t\tother = 0;\n\t\t\tlines = inputLine.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; ++i)\n\t\t\t{\n\t\t\t\tother += (int) Math.pow(Integer.parseInt(lines[i]), 2);\n\t\t\t\tif (max < Integer.parseInt(lines[i]))\n\t\t\t\t{\n\t\t\t\t\tmax = Integer.parseInt(lines[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tother -=(int) Math.pow(max, 2);\n\n\t\t\tif (other == (int) Math.pow(max, 2))\n\t\t\t\tstrLst.add(\"YES\");\n\t\t\telse\n\t\t\t\tstrLst.add(\"NO\");\n\n\t\t\t++cnt;\n\t\t}\n\n\t\tfor(String result : strLst)\n\t\t{\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"class Main\n{\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> strLst = new ArrayList<String>();\n\t\tint cnt = 0;\n\t\tint max;\n\t\tint other;\n\t\tString inputLine = \"\";\n\t\tString[] lines;\n\n\t\tbr.readLine();\n\t\twhile (cnt <= 1000 && (inputLine = br.readLine()) != null)\n\t\t{\n\t\t\tmax = 0;\n\t\t\tother = 0;\n\t\t\tlines = inputLine.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; ++i)\n\t\t\t{\n\t\t\t\tother += (int) Math.pow(Integer.parseInt(lines[i]), 2);\n\t\t\t\tif (max < Integer.parseInt(lines[i]))\n\t\t\t\t{\n\t\t\t\t\tmax = Integer.parseInt(lines[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tother -=(int) Math.pow(max, 2);\n\n\t\t\tif (other == (int) Math.pow(max, 2))\n\t\t\t\tstrLst.add(\"YES\");\n\t\t\telse\n\t\t\t\tstrLst.add(\"NO\");\n\n\t\t\t++cnt;\n\t\t}\n\n\t\tfor(String result : strLst)\n\t\t{\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> strLst = new ArrayList<String>();\n\t\tint cnt = 0;\n\t\tint max;\n\t\tint other;\n\t\tString inputLine = \"\";\n\t\tString[] lines;\n\n\t\tbr.readLine();\n\t\twhile (cnt <= 1000 && (inputLine = br.readLine()) != null)\n\t\t{\n\t\t\tmax = 0;\n\t\t\tother = 0;\n\t\t\tlines = inputLine.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; ++i)\n\t\t\t{\n\t\t\t\tother += (int) Math.pow(Integer.parseInt(lines[i]), 2);\n\t\t\t\tif (max < Integer.parseInt(lines[i]))\n\t\t\t\t{\n\t\t\t\t\tmax = Integer.parseInt(lines[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tother -=(int) Math.pow(max, 2);\n\n\t\t\tif (other == (int) Math.pow(max, 2))\n\t\t\t\tstrLst.add(\"YES\");\n\t\t\telse\n\t\t\t\tstrLst.add(\"NO\");\n\n\t\t\t++cnt;\n\t\t}\n\n\t\tfor(String result : strLst)\n\t\t{\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tArrayList<String> strLst = new ArrayList<String>();\n\t\tint cnt = 0;\n\t\tint max;\n\t\tint other;\n\t\tString inputLine = \"\";\n\t\tString[] lines;\n\n\t\tbr.readLine();\n\t\twhile (cnt <= 1000 && (inputLine = br.readLine()) != null)\n\t\t{\n\t\t\tmax = 0;\n\t\t\tother = 0;\n\t\t\tlines = inputLine.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; ++i)\n\t\t\t{\n\t\t\t\tother += (int) Math.pow(Integer.parseInt(lines[i]), 2);\n\t\t\t\tif (max < Integer.parseInt(lines[i]))\n\t\t\t\t{\n\t\t\t\t\tmax = Integer.parseInt(lines[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tother -=(int) Math.pow(max, 2);\n\n\t\t\tif (other == (int) Math.pow(max, 2))\n\t\t\t\tstrLst.add(\"YES\");\n\t\t\telse\n\t\t\t\tstrLst.add(\"NO\");\n\n\t\t\t++cnt;\n\t\t}\n\n\t\tfor(String result : strLst)\n\t\t{\n\t\t\tSystem.out.println(result);\n\t\t}\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"ArrayList<String> strLst = new ArrayList<String>();",
"strLst",
"new ArrayList<String>()",
"int cnt = 0;",
"cnt",
"0",
"int max;",
"max",
"int other;",
"other",
"String inputLine = \"\";",
"inputLine",
"\"\"",
"String[] lines;",
"lines",
"br.readLine()",
"br.readLine",
"br",
"while (cnt <= 1000 && (inputLine = br.readLine()) != null)\n\t\t{\n\t\t\tmax = 0;\n\t\t\tother = 0;\n\t\t\tlines = inputLine.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; ++i)\n\t\t\t{\n\t\t\t\tother += (int) Math.pow(Integer.parseInt(lines[i]), 2);\n\t\t\t\tif (max < Integer.parseInt(lines[i]))\n\t\t\t\t{\n\t\t\t\t\tmax = Integer.parseInt(lines[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tother -=(int) Math.pow(max, 2);\n\n\t\t\tif (other == (int) Math.pow(max, 2))\n\t\t\t\tstrLst.add(\"YES\");\n\t\t\telse\n\t\t\t\tstrLst.add(\"NO\");\n\n\t\t\t++cnt;\n\t\t}",
"cnt <= 1000 && (inputLine = br.readLine()) != null",
"cnt <= 1000",
"cnt",
"1000",
"(inputLine = br.readLine()) != null",
"(inputLine = br.readLine())",
"inputLine",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tmax = 0;\n\t\t\tother = 0;\n\t\t\tlines = inputLine.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; ++i)\n\t\t\t{\n\t\t\t\tother += (int) Math.pow(Integer.parseInt(lines[i]), 2);\n\t\t\t\tif (max < Integer.parseInt(lines[i]))\n\t\t\t\t{\n\t\t\t\t\tmax = Integer.parseInt(lines[i]);\n\t\t\t\t}\n\t\t\t}\n\t\t\tother -=(int) Math.pow(max, 2);\n\n\t\t\tif (other == (int) Math.pow(max, 2))\n\t\t\t\tstrLst.add(\"YES\");\n\t\t\telse\n\t\t\t\tstrLst.add(\"NO\");\n\n\t\t\t++cnt;\n\t\t}",
"max = 0",
"max",
"0",
"other = 0",
"other",
"0",
"lines = inputLine.split(\" \")",
"lines",
"inputLine.split(\" \")",
"inputLine.split",
"inputLine",
"\" \"",
"for (int i = 0; i < 3; ++i)\n\t\t\t{\n\t\t\t\tother += (int) Math.pow(Integer.parseInt(lines[i]), 2);\n\t\t\t\tif (max < Integer.parseInt(lines[i]))\n\t\t\t\t{\n\t\t\t\t\tmax = Integer.parseInt(lines[i]);\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"++i",
"++i",
"i",
"{\n\t\t\t\tother += (int) Math.pow(Integer.parseInt(lines[i]), 2);\n\t\t\t\tif (max < Integer.parseInt(lines[i]))\n\t\t\t\t{\n\t\t\t\t\tmax = Integer.parseInt(lines[i]);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tother += (int) Math.pow(Integer.parseInt(lines[i]), 2);\n\t\t\t\tif (max < Integer.parseInt(lines[i]))\n\t\t\t\t{\n\t\t\t\t\tmax = Integer.parseInt(lines[i]);\n\t\t\t\t}\n\t\t\t}",
"other += (int) Math.pow(Integer.parseInt(lines[i]), 2)",
"other",
"(int) Math.pow(Integer.parseInt(lines[i]), 2)",
"Math.pow",
"Math",
"Integer.parseInt(lines[i])",
"Integer.parseInt",
"Integer",
"lines[i]",
"lines",
"i",
"2",
"if (max < Integer.parseInt(lines[i]))\n\t\t\t\t{\n\t\t\t\t\tmax = Integer.parseInt(lines[i]);\n\t\t\t\t}",
"max < Integer.parseInt(lines[i])",
"max",
"Integer.parseInt(lines[i])",
"Integer.parseInt",
"Integer",
"lines[i]",
"lines",
"i",
"{\n\t\t\t\t\tmax = Integer.parseInt(lines[i]);\n\t\t\t\t}",
"max = Integer.parseInt(lines[i])",
"max",
"Integer.parseInt(lines[i])",
"Integer.parseInt",
"Integer",
"lines[i]",
"lines",
"i",
"other -=(int) Math.pow(max, 2)",
"other",
"(int) Math.pow(max, 2)",
"Math.pow",
"Math",
"max",
"2",
"if (other == (int) Math.pow(max, 2))\n\t\t\t\tstrLst.add(\"YES\");\n\t\t\telse\n\t\t\t\tstrLst.add(\"NO\");",
"other == (int) Math.pow(max, 2)",
"other",
"(int) Math.pow(max, 2)",
"Math.pow",
"Math",
"max",
"2",
"strLst.add(\"YES\")",
"strLst.add",
"strLst",
"\"YES\"",
"strLst.add(\"NO\")",
"strLst.add",
"strLst",
"\"NO\"",
"++cnt",
"cnt",
"for(String result : strLst)\n\t\t{\n\t\t\tSystem.out.println(result);\n\t\t}",
"String result",
"strLst",
"{\n\t\t\tSystem.out.println(result);\n\t\t}",
"{\n\t\t\tSystem.out.println(result);\n\t\t}",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
class Main
{
public static void main(String[] args) throws NumberFormatException, IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
ArrayList<String> strLst = new ArrayList<String>();
int cnt = 0;
int max;
int other;
String inputLine = "";
String[] lines;
br.readLine();
while (cnt <= 1000 && (inputLine = br.readLine()) != null)
{
max = 0;
other = 0;
lines = inputLine.split(" ");
for (int i = 0; i < 3; ++i)
{
other += (int) Math.pow(Integer.parseInt(lines[i]), 2);
if (max < Integer.parseInt(lines[i]))
{
max = Integer.parseInt(lines[i]);
}
}
other -=(int) Math.pow(max, 2);
if (other == (int) Math.pow(max, 2))
strLst.add("YES");
else
strLst.add("NO");
++cnt;
}
for(String result : strLst)
{
System.out.println(result);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
4,
18,
13,
30,
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,
41,
13,
17,
14,
2,
2,
18,
13,
17,
18,
13,
17,
18,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
13,
12,
13,
30,
20,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
101,
5
],
[
101,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
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
],
[
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
],
[
63,
65
],
[
38,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
38,
70
],
[
70,
71
],
[
70,
72
],
[
38,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
82,
84
],
[
73,
85
],
[
85,
86
],
[
85,
87
],
[
38,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
101,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
94,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
] | [
"import java.util.*;\n\npublic class Main{\n Main(){\n\tScanner sc = new Scanner(System.in);\n\tint[] a = new int[3];\n\n\twhile(sc.hasNext()){\n\t int n = sc.nextInt();\n\t for(int cs = 0; cs < n; cs++){\n\t\tfor(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}\n\t\tArrays.sort(a);\n\t\tString s = \"NO\";\n\t\tif(a[0]+a[1] == a[2]) s = \"YES\";\n\t\tSystem.out.println(s); \n\t }\n\t}\n }\n public static void main(String[] args){\n\tnew Main();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n Main(){\n\tScanner sc = new Scanner(System.in);\n\tint[] a = new int[3];\n\n\twhile(sc.hasNext()){\n\t int n = sc.nextInt();\n\t for(int cs = 0; cs < n; cs++){\n\t\tfor(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}\n\t\tArrays.sort(a);\n\t\tString s = \"NO\";\n\t\tif(a[0]+a[1] == a[2]) s = \"YES\";\n\t\tSystem.out.println(s); \n\t }\n\t}\n }\n public static void main(String[] args){\n\tnew Main();\n }\n}",
"Main",
"Main(){\n\tScanner sc = new Scanner(System.in);\n\tint[] a = new int[3];\n\n\twhile(sc.hasNext()){\n\t int n = sc.nextInt();\n\t for(int cs = 0; cs < n; cs++){\n\t\tfor(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}\n\t\tArrays.sort(a);\n\t\tString s = \"NO\";\n\t\tif(a[0]+a[1] == a[2]) s = \"YES\";\n\t\tSystem.out.println(s); \n\t }\n\t}\n }",
"Main",
"{\n\tScanner sc = new Scanner(System.in);\n\tint[] a = new int[3];\n\n\twhile(sc.hasNext()){\n\t int n = sc.nextInt();\n\t for(int cs = 0; cs < n; cs++){\n\t\tfor(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}\n\t\tArrays.sort(a);\n\t\tString s = \"NO\";\n\t\tif(a[0]+a[1] == a[2]) s = \"YES\";\n\t\tSystem.out.println(s); \n\t }\n\t}\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int[] a = new int[3];",
"a",
"new int[3]",
"3",
"while(sc.hasNext()){\n\t int n = sc.nextInt();\n\t for(int cs = 0; cs < n; cs++){\n\t\tfor(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}\n\t\tArrays.sort(a);\n\t\tString s = \"NO\";\n\t\tif(a[0]+a[1] == a[2]) s = \"YES\";\n\t\tSystem.out.println(s); \n\t }\n\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t int n = sc.nextInt();\n\t for(int cs = 0; cs < n; cs++){\n\t\tfor(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}\n\t\tArrays.sort(a);\n\t\tString s = \"NO\";\n\t\tif(a[0]+a[1] == a[2]) s = \"YES\";\n\t\tSystem.out.println(s); \n\t }\n\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int cs = 0; cs < n; cs++){\n\t\tfor(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}\n\t\tArrays.sort(a);\n\t\tString s = \"NO\";\n\t\tif(a[0]+a[1] == a[2]) s = \"YES\";\n\t\tSystem.out.println(s); \n\t }",
"int cs = 0;",
"int cs = 0;",
"cs",
"0",
"cs < n",
"cs",
"n",
"cs++",
"cs++",
"cs",
"{\n\t\tfor(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}\n\t\tArrays.sort(a);\n\t\tString s = \"NO\";\n\t\tif(a[0]+a[1] == a[2]) s = \"YES\";\n\t\tSystem.out.println(s); \n\t }",
"{\n\t\tfor(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}\n\t\tArrays.sort(a);\n\t\tString s = \"NO\";\n\t\tif(a[0]+a[1] == a[2]) s = \"YES\";\n\t\tSystem.out.println(s); \n\t }",
"for(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}",
"{\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}",
"a[i] = sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[i] *= a[i]",
"a[i]",
"a",
"i",
"a[i]",
"a",
"i",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"String s = \"NO\";",
"s",
"\"NO\"",
"if(a[0]+a[1] == a[2]) s = \"YES\";",
"a[0]+a[1] == a[2]",
"a[0]+a[1]",
"a[0]",
"a",
"0",
"a[1]",
"a",
"1",
"a[2]",
"a",
"2",
"s = \"YES\"",
"s",
"\"YES\"",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"public static void main(String[] args){\n\tnew Main();\n }",
"main",
"{\n\tnew Main();\n }",
"new Main()",
"String[] args",
"args",
"public class Main{\n Main(){\n\tScanner sc = new Scanner(System.in);\n\tint[] a = new int[3];\n\n\twhile(sc.hasNext()){\n\t int n = sc.nextInt();\n\t for(int cs = 0; cs < n; cs++){\n\t\tfor(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}\n\t\tArrays.sort(a);\n\t\tString s = \"NO\";\n\t\tif(a[0]+a[1] == a[2]) s = \"YES\";\n\t\tSystem.out.println(s); \n\t }\n\t}\n }\n public static void main(String[] args){\n\tnew Main();\n }\n}",
"public class Main{\n Main(){\n\tScanner sc = new Scanner(System.in);\n\tint[] a = new int[3];\n\n\twhile(sc.hasNext()){\n\t int n = sc.nextInt();\n\t for(int cs = 0; cs < n; cs++){\n\t\tfor(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}\n\t\tArrays.sort(a);\n\t\tString s = \"NO\";\n\t\tif(a[0]+a[1] == a[2]) s = \"YES\";\n\t\tSystem.out.println(s); \n\t }\n\t}\n }\n public static void main(String[] args){\n\tnew Main();\n }\n}",
"Main"
] | import java.util.*;
public class Main{
Main(){
Scanner sc = new Scanner(System.in);
int[] a = new int[3];
while(sc.hasNext()){
int n = sc.nextInt();
for(int cs = 0; cs < n; cs++){
for(int i = 0; i < 3; i++){
a[i] = sc.nextInt();
a[i] *= a[i];
}
Arrays.sort(a);
String s = "NO";
if(a[0]+a[1] == a[2]) s = "YES";
System.out.println(s);
}
}
}
public static void main(String[] args){
new Main();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
38,
5,
13,
30,
4,
18,
13,
17,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
42,
2,
40,
13,
17,
30,
0,
13,
4,
18,
13,
0,
13,
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,
14,
2,
18,
13,
17,
18,
13,
17,
30,
0,
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,
0,
13,
18,
13,
17,
0,
18,
13,
17,
18,
13,
17,
0,
18,
13,
17,
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
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
18,
21
],
[
14,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
22,
29
],
[
29,
30
],
[
29,
31
],
[
22,
33
],
[
33,
34
],
[
33,
35
],
[
22,
37
],
[
37,
38
],
[
22,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
22,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
22,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
55,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
67,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
55,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
98,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
55,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
127,
129
],
[
124,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
124,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
55,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
149,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
156,
158
],
[
143,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
163,
165
],
[
142,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
166,
171
],
[
142,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
9,
178
],
[
178,
179
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nclass Main{\n public static void main(String args[]){\n\tString str;\n\ttry{\n\t InputStreamReader is = new InputStreamReader(System.in);\n\t BufferedReader br = new BufferedReader(is);\n\t String[] strary = new String[3];\n\t int[] len = new int[3];\n\t int temp;\n\t str = br.readLine();\n\t int count = Integer.parseInt(str);\n\t while((count--) != 0){\n\t\tstr = br.readLine();\n\t\tstrary = str.split(\" \");\n\t\tfor(int i=0;i<3;i++){\n\t\t len[i] = Integer.parseInt(strary[i]);\n\t\t}\n\t\tif(len[0] > len[1]){\n\t\t temp = len[0];\n\t\t len[0] = len[1];\n\t\t len[1] = temp;\n\t\t}\n\t\tif(len[1] > len[2]){\n\t\t temp = len[1];\n\t\t len[1] = len[2];\n\t\t len[2] = temp;\n\t\t}\n\t\tif((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))\n\t\t System.out.println(\"YES\");\n\t\telse\n\t\t System.out.println(\"NO\");\n\t }\n\t}\n\tcatch(Exception e){\n\t System.exit(0);\n\t}\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main{\n public static void main(String args[]){\n\tString str;\n\ttry{\n\t InputStreamReader is = new InputStreamReader(System.in);\n\t BufferedReader br = new BufferedReader(is);\n\t String[] strary = new String[3];\n\t int[] len = new int[3];\n\t int temp;\n\t str = br.readLine();\n\t int count = Integer.parseInt(str);\n\t while((count--) != 0){\n\t\tstr = br.readLine();\n\t\tstrary = str.split(\" \");\n\t\tfor(int i=0;i<3;i++){\n\t\t len[i] = Integer.parseInt(strary[i]);\n\t\t}\n\t\tif(len[0] > len[1]){\n\t\t temp = len[0];\n\t\t len[0] = len[1];\n\t\t len[1] = temp;\n\t\t}\n\t\tif(len[1] > len[2]){\n\t\t temp = len[1];\n\t\t len[1] = len[2];\n\t\t len[2] = temp;\n\t\t}\n\t\tif((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))\n\t\t System.out.println(\"YES\");\n\t\telse\n\t\t System.out.println(\"NO\");\n\t }\n\t}\n\tcatch(Exception e){\n\t System.exit(0);\n\t}\n }\n}",
"Main",
"public static void main(String args[]){\n\tString str;\n\ttry{\n\t InputStreamReader is = new InputStreamReader(System.in);\n\t BufferedReader br = new BufferedReader(is);\n\t String[] strary = new String[3];\n\t int[] len = new int[3];\n\t int temp;\n\t str = br.readLine();\n\t int count = Integer.parseInt(str);\n\t while((count--) != 0){\n\t\tstr = br.readLine();\n\t\tstrary = str.split(\" \");\n\t\tfor(int i=0;i<3;i++){\n\t\t len[i] = Integer.parseInt(strary[i]);\n\t\t}\n\t\tif(len[0] > len[1]){\n\t\t temp = len[0];\n\t\t len[0] = len[1];\n\t\t len[1] = temp;\n\t\t}\n\t\tif(len[1] > len[2]){\n\t\t temp = len[1];\n\t\t len[1] = len[2];\n\t\t len[2] = temp;\n\t\t}\n\t\tif((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))\n\t\t System.out.println(\"YES\");\n\t\telse\n\t\t System.out.println(\"NO\");\n\t }\n\t}\n\tcatch(Exception e){\n\t System.exit(0);\n\t}\n }",
"main",
"{\n\tString str;\n\ttry{\n\t InputStreamReader is = new InputStreamReader(System.in);\n\t BufferedReader br = new BufferedReader(is);\n\t String[] strary = new String[3];\n\t int[] len = new int[3];\n\t int temp;\n\t str = br.readLine();\n\t int count = Integer.parseInt(str);\n\t while((count--) != 0){\n\t\tstr = br.readLine();\n\t\tstrary = str.split(\" \");\n\t\tfor(int i=0;i<3;i++){\n\t\t len[i] = Integer.parseInt(strary[i]);\n\t\t}\n\t\tif(len[0] > len[1]){\n\t\t temp = len[0];\n\t\t len[0] = len[1];\n\t\t len[1] = temp;\n\t\t}\n\t\tif(len[1] > len[2]){\n\t\t temp = len[1];\n\t\t len[1] = len[2];\n\t\t len[2] = temp;\n\t\t}\n\t\tif((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))\n\t\t System.out.println(\"YES\");\n\t\telse\n\t\t System.out.println(\"NO\");\n\t }\n\t}\n\tcatch(Exception e){\n\t System.exit(0);\n\t}\n }",
"String str;",
"str",
"try{\n\t InputStreamReader is = new InputStreamReader(System.in);\n\t BufferedReader br = new BufferedReader(is);\n\t String[] strary = new String[3];\n\t int[] len = new int[3];\n\t int temp;\n\t str = br.readLine();\n\t int count = Integer.parseInt(str);\n\t while((count--) != 0){\n\t\tstr = br.readLine();\n\t\tstrary = str.split(\" \");\n\t\tfor(int i=0;i<3;i++){\n\t\t len[i] = Integer.parseInt(strary[i]);\n\t\t}\n\t\tif(len[0] > len[1]){\n\t\t temp = len[0];\n\t\t len[0] = len[1];\n\t\t len[1] = temp;\n\t\t}\n\t\tif(len[1] > len[2]){\n\t\t temp = len[1];\n\t\t len[1] = len[2];\n\t\t len[2] = temp;\n\t\t}\n\t\tif((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))\n\t\t System.out.println(\"YES\");\n\t\telse\n\t\t System.out.println(\"NO\");\n\t }\n\t}\n\tcatch(Exception e){\n\t System.exit(0);\n\t}",
"catch(Exception e){\n\t System.exit(0);\n\t}",
"Exception e",
"{\n\t System.exit(0);\n\t}",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n\t InputStreamReader is = new InputStreamReader(System.in);\n\t BufferedReader br = new BufferedReader(is);\n\t String[] strary = new String[3];\n\t int[] len = new int[3];\n\t int temp;\n\t str = br.readLine();\n\t int count = Integer.parseInt(str);\n\t while((count--) != 0){\n\t\tstr = br.readLine();\n\t\tstrary = str.split(\" \");\n\t\tfor(int i=0;i<3;i++){\n\t\t len[i] = Integer.parseInt(strary[i]);\n\t\t}\n\t\tif(len[0] > len[1]){\n\t\t temp = len[0];\n\t\t len[0] = len[1];\n\t\t len[1] = temp;\n\t\t}\n\t\tif(len[1] > len[2]){\n\t\t temp = len[1];\n\t\t len[1] = len[2];\n\t\t len[2] = temp;\n\t\t}\n\t\tif((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))\n\t\t System.out.println(\"YES\");\n\t\telse\n\t\t System.out.println(\"NO\");\n\t }\n\t}",
"InputStreamReader is = new InputStreamReader(System.in);",
"is",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(is);",
"br",
"new BufferedReader(is)",
"String[] strary = new String[3];",
"strary",
"new String[3]",
"3",
"int[] len = new int[3];",
"len",
"new int[3]",
"3",
"int temp;",
"temp",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"int count = Integer.parseInt(str);",
"count",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"while((count--) != 0){\n\t\tstr = br.readLine();\n\t\tstrary = str.split(\" \");\n\t\tfor(int i=0;i<3;i++){\n\t\t len[i] = Integer.parseInt(strary[i]);\n\t\t}\n\t\tif(len[0] > len[1]){\n\t\t temp = len[0];\n\t\t len[0] = len[1];\n\t\t len[1] = temp;\n\t\t}\n\t\tif(len[1] > len[2]){\n\t\t temp = len[1];\n\t\t len[1] = len[2];\n\t\t len[2] = temp;\n\t\t}\n\t\tif((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))\n\t\t System.out.println(\"YES\");\n\t\telse\n\t\t System.out.println(\"NO\");\n\t }",
"(count--) != 0",
"(count--)",
"count",
"0",
"{\n\t\tstr = br.readLine();\n\t\tstrary = str.split(\" \");\n\t\tfor(int i=0;i<3;i++){\n\t\t len[i] = Integer.parseInt(strary[i]);\n\t\t}\n\t\tif(len[0] > len[1]){\n\t\t temp = len[0];\n\t\t len[0] = len[1];\n\t\t len[1] = temp;\n\t\t}\n\t\tif(len[1] > len[2]){\n\t\t temp = len[1];\n\t\t len[1] = len[2];\n\t\t len[2] = temp;\n\t\t}\n\t\tif((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))\n\t\t System.out.println(\"YES\");\n\t\telse\n\t\t System.out.println(\"NO\");\n\t }",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"strary = str.split(\" \")",
"strary",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for(int i=0;i<3;i++){\n\t\t len[i] = Integer.parseInt(strary[i]);\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t len[i] = Integer.parseInt(strary[i]);\n\t\t}",
"{\n\t\t len[i] = Integer.parseInt(strary[i]);\n\t\t}",
"len[i] = Integer.parseInt(strary[i])",
"len[i]",
"len",
"i",
"Integer.parseInt(strary[i])",
"Integer.parseInt",
"Integer",
"strary[i]",
"strary",
"i",
"if(len[0] > len[1]){\n\t\t temp = len[0];\n\t\t len[0] = len[1];\n\t\t len[1] = temp;\n\t\t}",
"len[0] > len[1]",
"len[0]",
"len",
"0",
"len[1]",
"len",
"1",
"{\n\t\t temp = len[0];\n\t\t len[0] = len[1];\n\t\t len[1] = temp;\n\t\t}",
"temp = len[0]",
"temp",
"len[0]",
"len",
"0",
"len[0] = len[1]",
"len[0]",
"len",
"0",
"len[1]",
"len",
"1",
"len[1] = temp",
"len[1]",
"len",
"1",
"temp",
"if(len[1] > len[2]){\n\t\t temp = len[1];\n\t\t len[1] = len[2];\n\t\t len[2] = temp;\n\t\t}",
"len[1] > len[2]",
"len[1]",
"len",
"1",
"len[2]",
"len",
"2",
"{\n\t\t temp = len[1];\n\t\t len[1] = len[2];\n\t\t len[2] = temp;\n\t\t}",
"temp = len[1]",
"temp",
"len[1]",
"len",
"1",
"len[1] = len[2]",
"len[1]",
"len",
"1",
"len[2]",
"len",
"2",
"len[2] = temp",
"len[2]",
"len",
"2",
"temp",
"if((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))\n\t\t System.out.println(\"YES\");\n\t\telse\n\t\t System.out.println(\"NO\");",
"(len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2])",
"(len[0]*len[0] + len[1]*len[1])",
"len[0]*len[0]",
"len[0]",
"len",
"0",
"len[0]",
"len",
"0",
"len[1]*len[1]",
"len[1]",
"len",
"1",
"len[1]",
"len",
"1",
"(len[2]*len[2])",
"len[2]",
"len",
"2",
"len[2]",
"len",
"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.io.BufferedReader;
import java.io.InputStreamReader;
class Main{
public static void main(String args[]){
String str;
try{
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
String[] strary = new String[3];
int[] len = new int[3];
int temp;
str = br.readLine();
int count = Integer.parseInt(str);
while((count--) != 0){
str = br.readLine();
strary = str.split(" ");
for(int i=0;i<3;i++){
len[i] = Integer.parseInt(strary[i]);
}
if(len[0] > len[1]){
temp = len[0];
len[0] = len[1];
len[1] = temp;
}
if(len[1] > len[2]){
temp = len[1];
len[1] = len[2];
len[2] = temp;
}
if((len[0]*len[0] + len[1]*len[1]) == (len[2]*len[2]))
System.out.println("YES");
else
System.out.println("NO");
}
}
catch(Exception e){
System.exit(0);
}
}
} |
[
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,
41,
13,
20,
42,
2,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
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,
13,
17,
30,
4,
18,
13,
17,
40,
13,
28,
13,
13,
30,
30,
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
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
23,
35
],
[
35,
36
],
[
35,
37
],
[
23,
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
],
[
42,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
42,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
42,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
73,
74
],
[
42,
75
],
[
75,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
86,
88
],
[
77,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
97,
99
],
[
77,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
108,
110
],
[
75,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
75,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
42,
121
],
[
121,
122
],
[
23,
123
],
[
123,
124
],
[
123,
125
],
[
123,
126
],
[
127,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
21,
134
],
[
134,
135
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.StringTokenizer;\n\nclass Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint ndata = Integer.parseInt(br.readLine());\n\t\tList<String> results = new ArrayList<String>();\n\t\t\n\t\twhile (ndata > 0) {\n\t\t\tString line = br.readLine();\n\t\t\tStringTokenizer st = new StringTokenizer(line);\n\n\t\t\tint a = Integer.parseInt(st.nextToken());\n\t\t\tint b = Integer.parseInt(st.nextToken());\n\t\t\tint c = Integer.parseInt(st.nextToken());\n\t\t\t\n\t\t\tif (a*a + b*b == c*c || b*b + c*c == a*a || a*a + c*c == b*b) {\n\t\t\t\tresults.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tresults.add(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\tndata--;\n\t\t}\n\t\t\n\t\tfor (String r : results) {\n\t\t\tSystem.out.println(r);\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.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"class Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint ndata = Integer.parseInt(br.readLine());\n\t\tList<String> results = new ArrayList<String>();\n\t\t\n\t\twhile (ndata > 0) {\n\t\t\tString line = br.readLine();\n\t\t\tStringTokenizer st = new StringTokenizer(line);\n\n\t\t\tint a = Integer.parseInt(st.nextToken());\n\t\t\tint b = Integer.parseInt(st.nextToken());\n\t\t\tint c = Integer.parseInt(st.nextToken());\n\t\t\t\n\t\t\tif (a*a + b*b == c*c || b*b + c*c == a*a || a*a + c*c == b*b) {\n\t\t\t\tresults.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tresults.add(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\tndata--;\n\t\t}\n\t\t\n\t\tfor (String r : results) {\n\t\t\tSystem.out.println(r);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint ndata = Integer.parseInt(br.readLine());\n\t\tList<String> results = new ArrayList<String>();\n\t\t\n\t\twhile (ndata > 0) {\n\t\t\tString line = br.readLine();\n\t\t\tStringTokenizer st = new StringTokenizer(line);\n\n\t\t\tint a = Integer.parseInt(st.nextToken());\n\t\t\tint b = Integer.parseInt(st.nextToken());\n\t\t\tint c = Integer.parseInt(st.nextToken());\n\t\t\t\n\t\t\tif (a*a + b*b == c*c || b*b + c*c == a*a || a*a + c*c == b*b) {\n\t\t\t\tresults.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tresults.add(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\tndata--;\n\t\t}\n\t\t\n\t\tfor (String r : results) {\n\t\t\tSystem.out.println(r);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint ndata = Integer.parseInt(br.readLine());\n\t\tList<String> results = new ArrayList<String>();\n\t\t\n\t\twhile (ndata > 0) {\n\t\t\tString line = br.readLine();\n\t\t\tStringTokenizer st = new StringTokenizer(line);\n\n\t\t\tint a = Integer.parseInt(st.nextToken());\n\t\t\tint b = Integer.parseInt(st.nextToken());\n\t\t\tint c = Integer.parseInt(st.nextToken());\n\t\t\t\n\t\t\tif (a*a + b*b == c*c || b*b + c*c == a*a || a*a + c*c == b*b) {\n\t\t\t\tresults.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tresults.add(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\tndata--;\n\t\t}\n\t\t\n\t\tfor (String r : results) {\n\t\t\tSystem.out.println(r);\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int ndata = Integer.parseInt(br.readLine());",
"ndata",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"List<String> results = new ArrayList<String>();",
"results",
"new ArrayList<String>()",
"while (ndata > 0) {\n\t\t\tString line = br.readLine();\n\t\t\tStringTokenizer st = new StringTokenizer(line);\n\n\t\t\tint a = Integer.parseInt(st.nextToken());\n\t\t\tint b = Integer.parseInt(st.nextToken());\n\t\t\tint c = Integer.parseInt(st.nextToken());\n\t\t\t\n\t\t\tif (a*a + b*b == c*c || b*b + c*c == a*a || a*a + c*c == b*b) {\n\t\t\t\tresults.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tresults.add(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\tndata--;\n\t\t}",
"ndata > 0",
"ndata",
"0",
"{\n\t\t\tString line = br.readLine();\n\t\t\tStringTokenizer st = new StringTokenizer(line);\n\n\t\t\tint a = Integer.parseInt(st.nextToken());\n\t\t\tint b = Integer.parseInt(st.nextToken());\n\t\t\tint c = Integer.parseInt(st.nextToken());\n\t\t\t\n\t\t\tif (a*a + b*b == c*c || b*b + c*c == a*a || a*a + c*c == b*b) {\n\t\t\t\tresults.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tresults.add(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t\tndata--;\n\t\t}",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"StringTokenizer st = new StringTokenizer(line);",
"st",
"new StringTokenizer(line)",
"int a = Integer.parseInt(st.nextToken());",
"a",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int b = Integer.parseInt(st.nextToken());",
"b",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"int c = Integer.parseInt(st.nextToken());",
"c",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"if (a*a + b*b == c*c || b*b + c*c == a*a || a*a + c*c == b*b) {\n\t\t\t\tresults.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tresults.add(\"NO\");\n\t\t\t}",
"a*a + b*b == c*c || b*b + c*c == a*a || a*a + c*c == b*b",
"a*a + b*b == c*c || b*b + c*c == a*a || a*a + c*c == 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",
"a*a + c*c == b*b",
"a*a + c*c",
"a*a",
"a",
"a",
"c*c",
"c",
"c",
"b*b",
"b",
"b",
"{\n\t\t\t\tresults.add(\"YES\");\n\t\t\t}",
"results.add(\"YES\")",
"results.add",
"results",
"\"YES\"",
"{\n\t\t\t\tresults.add(\"NO\");\n\t\t\t}",
"results.add(\"NO\")",
"results.add",
"results",
"\"NO\"",
"ndata--",
"ndata",
"for (String r : results) {\n\t\t\tSystem.out.println(r);\n\t\t}",
"String r",
"results",
"{\n\t\t\tSystem.out.println(r);\n\t\t}",
"{\n\t\t\tSystem.out.println(r);\n\t\t}",
"System.out.println(r)",
"System.out.println",
"System.out",
"System",
"System.out",
"r",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.List;
import java.util.StringTokenizer;
class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int ndata = Integer.parseInt(br.readLine());
List<String> results = new ArrayList<String>();
while (ndata > 0) {
String line = br.readLine();
StringTokenizer st = new StringTokenizer(line);
int a = Integer.parseInt(st.nextToken());
int b = Integer.parseInt(st.nextToken());
int c = Integer.parseInt(st.nextToken());
if (a*a + b*b == c*c || b*b + c*c == a*a || a*a + c*c == b*b) {
results.add("YES");
} else {
results.add("NO");
}
ndata--;
}
for (String r : results) {
System.out.println(r);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
0,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
0,
13,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
13,
14,
2,
2,
2,
2,
13,
13,
13,
2,
2,
13,
13,
13,
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
],
[
177,
5
],
[
177,
6
],
[
6,
7
],
[
6,
8
],
[
177,
9
],
[
9,
10
],
[
9,
11
],
[
177,
12
],
[
12,
13
],
[
12,
14
],
[
177,
15
],
[
15,
16
],
[
15,
17
],
[
177,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
20,
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
],
[
49,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
83,
85
],
[
20,
86
],
[
86,
87
],
[
20,
88
],
[
88,
89
],
[
20,
90
],
[
90,
91
],
[
20,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
92,
103
],
[
104,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
107,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
104,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
120,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
104,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
133,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
104,
144
],
[
144,
145
],
[
146,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
146,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
146,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
144,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
144,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
168,
173
],
[
18,
174
],
[
174,
175
],
[
0,
176
],
[
176,
177
],
[
176,
178
]
] | [
"import java.io.*;\n\npublic class Main {\n\n\tprivate static final int subNum = 3;\n\tprivate static final int adge1 = 0;\n\tprivate static final int adge2 = 1;\n\tprivate static final int adge3 = 2;\n\n\tpublic static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint[][] tryangle = new int[num][subNum];\n\n\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strBuf = str.split(\" \");\n\n\t\t\tfor (int j = 0; j < subNum; j++) {\n\t\t\t\ttryangle[i][j] = Integer.parseInt(strBuf[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint x, y, z;\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tx = tryangle[i][adge1] * tryangle[i][adge1];\n\t\t\ty = tryangle[i][adge2] * tryangle[i][adge2];\n\t\t\tz = tryangle[i][adge3] * tryangle[i][adge3];\n\t\t\tif (((x + y) == z) || ((y + z) == x) || ((x + z) == y))\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}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\tprivate static final int subNum = 3;\n\tprivate static final int adge1 = 0;\n\tprivate static final int adge2 = 1;\n\tprivate static final int adge3 = 2;\n\n\tpublic static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint[][] tryangle = new int[num][subNum];\n\n\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strBuf = str.split(\" \");\n\n\t\t\tfor (int j = 0; j < subNum; j++) {\n\t\t\t\ttryangle[i][j] = Integer.parseInt(strBuf[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint x, y, z;\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tx = tryangle[i][adge1] * tryangle[i][adge1];\n\t\t\ty = tryangle[i][adge2] * tryangle[i][adge2];\n\t\t\tz = tryangle[i][adge3] * tryangle[i][adge3];\n\t\t\tif (((x + y) == z) || ((y + z) == x) || ((x + z) == y))\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}",
"Main",
"private static final int subNum = 3;",
"subNum",
"3",
"private static final int adge1 = 0;",
"adge1",
"0",
"private static final int adge2 = 1;",
"adge2",
"1",
"private static final int adge3 = 2;",
"adge3",
"2",
"public static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint[][] tryangle = new int[num][subNum];\n\n\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strBuf = str.split(\" \");\n\n\t\t\tfor (int j = 0; j < subNum; j++) {\n\t\t\t\ttryangle[i][j] = Integer.parseInt(strBuf[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint x, y, z;\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tx = tryangle[i][adge1] * tryangle[i][adge1];\n\t\t\ty = tryangle[i][adge2] * tryangle[i][adge2];\n\t\t\tz = tryangle[i][adge3] * tryangle[i][adge3];\n\t\t\tif (((x + y) == z) || ((y + z) == x) || ((x + z) == y))\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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint[][] tryangle = new int[num][subNum];\n\n\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strBuf = str.split(\" \");\n\n\t\t\tfor (int j = 0; j < subNum; j++) {\n\t\t\t\ttryangle[i][j] = Integer.parseInt(strBuf[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint x, y, z;\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tx = tryangle[i][adge1] * tryangle[i][adge1];\n\t\t\ty = tryangle[i][adge2] * tryangle[i][adge2];\n\t\t\tz = tryangle[i][adge3] * tryangle[i][adge3];\n\t\t\tif (((x + y) == z) || ((y + z) == x) || ((x + z) == y))\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}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int num = Integer.parseInt(br.readLine());",
"num",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int[][] tryangle = new int[num][subNum];",
"tryangle",
"new int[num][subNum]",
"num",
"subNum",
"for (int i = 0; i < num; i++) {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strBuf = str.split(\" \");\n\n\t\t\tfor (int j = 0; j < subNum; j++) {\n\t\t\t\ttryangle[i][j] = Integer.parseInt(strBuf[j]);\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strBuf = str.split(\" \");\n\n\t\t\tfor (int j = 0; j < subNum; j++) {\n\t\t\t\ttryangle[i][j] = Integer.parseInt(strBuf[j]);\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strBuf = str.split(\" \");\n\n\t\t\tfor (int j = 0; j < subNum; j++) {\n\t\t\t\ttryangle[i][j] = Integer.parseInt(strBuf[j]);\n\t\t\t}\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] strBuf = str.split(\" \");",
"strBuf",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for (int j = 0; j < subNum; j++) {\n\t\t\t\ttryangle[i][j] = Integer.parseInt(strBuf[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < subNum",
"j",
"subNum",
"j++",
"j++",
"j",
"{\n\t\t\t\ttryangle[i][j] = Integer.parseInt(strBuf[j]);\n\t\t\t}",
"{\n\t\t\t\ttryangle[i][j] = Integer.parseInt(strBuf[j]);\n\t\t\t}",
"tryangle[i][j] = Integer.parseInt(strBuf[j])",
"tryangle[i][j]",
"tryangle[i]",
"tryangle",
"i",
"j",
"Integer.parseInt(strBuf[j])",
"Integer.parseInt",
"Integer",
"strBuf[j]",
"strBuf",
"j",
"int x",
"x",
"y",
"y",
"z;",
"z",
"for (int i = 0; i < num; i++) {\n\t\t\tx = tryangle[i][adge1] * tryangle[i][adge1];\n\t\t\ty = tryangle[i][adge2] * tryangle[i][adge2];\n\t\t\tz = tryangle[i][adge3] * tryangle[i][adge3];\n\t\t\tif (((x + y) == z) || ((y + z) == x) || ((x + z) == y))\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 < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tx = tryangle[i][adge1] * tryangle[i][adge1];\n\t\t\ty = tryangle[i][adge2] * tryangle[i][adge2];\n\t\t\tz = tryangle[i][adge3] * tryangle[i][adge3];\n\t\t\tif (((x + y) == z) || ((y + z) == x) || ((x + z) == y))\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\tx = tryangle[i][adge1] * tryangle[i][adge1];\n\t\t\ty = tryangle[i][adge2] * tryangle[i][adge2];\n\t\t\tz = tryangle[i][adge3] * tryangle[i][adge3];\n\t\t\tif (((x + y) == z) || ((y + z) == x) || ((x + z) == y))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}",
"x = tryangle[i][adge1] * tryangle[i][adge1]",
"x",
"tryangle[i][adge1] * tryangle[i][adge1]",
"tryangle[i][adge1]",
"tryangle[i]",
"tryangle",
"i",
"adge1",
"tryangle[i][adge1]",
"tryangle[i]",
"tryangle",
"i",
"adge1",
"y = tryangle[i][adge2] * tryangle[i][adge2]",
"y",
"tryangle[i][adge2] * tryangle[i][adge2]",
"tryangle[i][adge2]",
"tryangle[i]",
"tryangle",
"i",
"adge2",
"tryangle[i][adge2]",
"tryangle[i]",
"tryangle",
"i",
"adge2",
"z = tryangle[i][adge3] * tryangle[i][adge3]",
"z",
"tryangle[i][adge3] * tryangle[i][adge3]",
"tryangle[i][adge3]",
"tryangle[i]",
"tryangle",
"i",
"adge3",
"tryangle[i][adge3]",
"tryangle[i]",
"tryangle",
"i",
"adge3",
"if (((x + y) == z) || ((y + z) == x) || ((x + z) == y))\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");",
"((x + y) == z) || ((y + z) == x) || ((x + z) == y)",
"((x + y) == z) || ((y + z) == x) || ((x + z) == y)",
"((x + y) == z)",
"(x + y)",
"x",
"y",
"z",
"((y + z) == x)",
"(y + z)",
"y",
"z",
"x",
"((x + z) == y)",
"(x + z)",
"x",
"z",
"y",
"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[] a",
"a",
"public class Main {\n\n\tprivate static final int subNum = 3;\n\tprivate static final int adge1 = 0;\n\tprivate static final int adge2 = 1;\n\tprivate static final int adge3 = 2;\n\n\tpublic static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint[][] tryangle = new int[num][subNum];\n\n\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strBuf = str.split(\" \");\n\n\t\t\tfor (int j = 0; j < subNum; j++) {\n\t\t\t\ttryangle[i][j] = Integer.parseInt(strBuf[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint x, y, z;\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tx = tryangle[i][adge1] * tryangle[i][adge1];\n\t\t\ty = tryangle[i][adge2] * tryangle[i][adge2];\n\t\t\tz = tryangle[i][adge3] * tryangle[i][adge3];\n\t\t\tif (((x + y) == z) || ((y + z) == x) || ((x + z) == y))\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}",
"public class Main {\n\n\tprivate static final int subNum = 3;\n\tprivate static final int adge1 = 0;\n\tprivate static final int adge2 = 1;\n\tprivate static final int adge3 = 2;\n\n\tpublic static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint num = Integer.parseInt(br.readLine());\n\t\tint[][] tryangle = new int[num][subNum];\n\n\t\tfor (int i = 0; i < num; i++) {\n\n\t\t\tString str = br.readLine();\n\t\t\tString[] strBuf = str.split(\" \");\n\n\t\t\tfor (int j = 0; j < subNum; j++) {\n\t\t\t\ttryangle[i][j] = Integer.parseInt(strBuf[j]);\n\t\t\t}\n\t\t}\n\t\t\n\t\tint x, y, z;\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tx = tryangle[i][adge1] * tryangle[i][adge1];\n\t\t\ty = tryangle[i][adge2] * tryangle[i][adge2];\n\t\t\tz = tryangle[i][adge3] * tryangle[i][adge3];\n\t\t\tif (((x + y) == z) || ((y + z) == x) || ((x + z) == y))\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}",
"Main"
] | import java.io.*;
public class Main {
private static final int subNum = 3;
private static final int adge1 = 0;
private static final int adge2 = 1;
private static final int adge3 = 2;
public static void main(String[] a) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int num = Integer.parseInt(br.readLine());
int[][] tryangle = new int[num][subNum];
for (int i = 0; i < num; i++) {
String str = br.readLine();
String[] strBuf = str.split(" ");
for (int j = 0; j < subNum; j++) {
tryangle[i][j] = Integer.parseInt(strBuf[j]);
}
}
int x, y, z;
for (int i = 0; i < num; i++) {
x = tryangle[i][adge1] * tryangle[i][adge1];
y = tryangle[i][adge2] * tryangle[i][adge2];
z = tryangle[i][adge3] * tryangle[i][adge3];
if (((x + y) == z) || ((y + z) == x) || ((x + z) == y))
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,
0,
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,
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,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
100,
5
],
[
100,
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
],
[
19,
21
],
[
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
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
36,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
35,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
35,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
60,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
60,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
6,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] | [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t \n\tScanner sc= new Scanner (System.in);\n\tint n = sc.nextInt();\n\tint i[];\n\ti = new int[3];\nfor(int count=0;count<n;count++){\t\n\t\tfor(int d=0;d<3;d++ ){\n\t\t\ti[d]=sc.nextInt();\n\t\t}\n\t\tArrays.sort(i);\n\t\tif((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse System.out.println(\"NO\");\n\t\t}\n\t \n\t\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t \n\tScanner sc= new Scanner (System.in);\n\tint n = sc.nextInt();\n\tint i[];\n\ti = new int[3];\nfor(int count=0;count<n;count++){\t\n\t\tfor(int d=0;d<3;d++ ){\n\t\t\ti[d]=sc.nextInt();\n\t\t}\n\t\tArrays.sort(i);\n\t\tif((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse System.out.println(\"NO\");\n\t\t}\n\t \n\t\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t \n\tScanner sc= new Scanner (System.in);\n\tint n = sc.nextInt();\n\tint i[];\n\ti = new int[3];\nfor(int count=0;count<n;count++){\t\n\t\tfor(int d=0;d<3;d++ ){\n\t\t\ti[d]=sc.nextInt();\n\t\t}\n\t\tArrays.sort(i);\n\t\tif((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse System.out.println(\"NO\");\n\t\t}\n\t \n\t\n\t}",
"main",
"{\n\t \n\tScanner sc= new Scanner (System.in);\n\tint n = sc.nextInt();\n\tint i[];\n\ti = new int[3];\nfor(int count=0;count<n;count++){\t\n\t\tfor(int d=0;d<3;d++ ){\n\t\t\ti[d]=sc.nextInt();\n\t\t}\n\t\tArrays.sort(i);\n\t\tif((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse System.out.println(\"NO\");\n\t\t}\n\t \n\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 i[];",
"i",
"i = new int[3]",
"i",
"new int[3]",
"3",
"for(int count=0;count<n;count++){\t\n\t\tfor(int d=0;d<3;d++ ){\n\t\t\ti[d]=sc.nextInt();\n\t\t}\n\t\tArrays.sort(i);\n\t\tif((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse System.out.println(\"NO\");\n\t\t}",
"int count=0;",
"int count=0;",
"count",
"0",
"count<n",
"count",
"n",
"count++",
"count++",
"count",
"{\t\n\t\tfor(int d=0;d<3;d++ ){\n\t\t\ti[d]=sc.nextInt();\n\t\t}\n\t\tArrays.sort(i);\n\t\tif((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse System.out.println(\"NO\");\n\t\t}",
"{\t\n\t\tfor(int d=0;d<3;d++ ){\n\t\t\ti[d]=sc.nextInt();\n\t\t}\n\t\tArrays.sort(i);\n\t\tif((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse System.out.println(\"NO\");\n\t\t}",
"for(int d=0;d<3;d++ ){\n\t\t\ti[d]=sc.nextInt();\n\t\t}",
"int d=0;",
"int d=0;",
"d",
"0",
"d<3",
"d",
"3",
"d++",
"d++",
"d",
"{\n\t\t\ti[d]=sc.nextInt();\n\t\t}",
"{\n\t\t\ti[d]=sc.nextInt();\n\t\t}",
"i[d]=sc.nextInt()",
"i[d]",
"i",
"d",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Arrays.sort(i)",
"Arrays.sort",
"Arrays",
"i",
"if((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse System.out.println(\"NO\");",
"(i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])",
"(i[2]*i[2])",
"i[2]",
"i",
"2",
"i[2]",
"i",
"2",
"(i[0]*i[0])+(i[1]*i[1])",
"(i[0]*i[0])",
"i[0]",
"i",
"0",
"i[0]",
"i",
"0",
"(i[1]*i[1])",
"i[1]",
"i",
"1",
"i[1]",
"i",
"1",
"{\n\t\t\tSystem.out.println(\"YES\");\n\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\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t \n\tScanner sc= new Scanner (System.in);\n\tint n = sc.nextInt();\n\tint i[];\n\ti = new int[3];\nfor(int count=0;count<n;count++){\t\n\t\tfor(int d=0;d<3;d++ ){\n\t\t\ti[d]=sc.nextInt();\n\t\t}\n\t\tArrays.sort(i);\n\t\tif((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse System.out.println(\"NO\");\n\t\t}\n\t \n\t\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t \n\tScanner sc= new Scanner (System.in);\n\tint n = sc.nextInt();\n\tint i[];\n\ti = new int[3];\nfor(int count=0;count<n;count++){\t\n\t\tfor(int d=0;d<3;d++ ){\n\t\t\ti[d]=sc.nextInt();\n\t\t}\n\t\tArrays.sort(i);\n\t\tif((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse System.out.println(\"NO\");\n\t\t}\n\t \n\t\n\t}\n\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner sc= new Scanner (System.in);
int n = sc.nextInt();
int i[];
i = new int[3];
for(int count=0;count<n;count++){
for(int d=0;d<3;d++ ){
i[d]=sc.nextInt();
}
Arrays.sort(i);
if((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[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,
38,
5,
13,
30,
30,
4,
18,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
13,
13,
13,
14,
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,
14,
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,
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
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
33,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
45,
46
],
[
45,
47
],
[
33,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
53,
55
],
[
33,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
33,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
69,
73
],
[
66,
74
],
[
33,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
80,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
80,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
75,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
120,
122
],
[
111,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
111,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
106,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
143,
147
],
[
147,
148
],
[
147,
149
],
[
138,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
151,
156
],
[
138,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
9,
164
],
[
164,
165
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString line;\n\t\ttry {\n\t\t\tbr.readLine();\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] v = line.split(\" \");\n\t\t\t\tint a = Integer.parseInt(v[0]);\n\t\t\t\tint b = Integer.parseInt(v[1]);\n\t\t\t\tint c = Integer.parseInt(v[2]);\n\t\t\t\tint max = Math.max(Math.max(a, b), c);\n\n\t\t\t\tif (max == a) {\n\t\t\t\t\tif (a * a == b * b + 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 if (max == b) {\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 * c == a * a + b * b) {\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}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString line;\n\t\ttry {\n\t\t\tbr.readLine();\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] v = line.split(\" \");\n\t\t\t\tint a = Integer.parseInt(v[0]);\n\t\t\t\tint b = Integer.parseInt(v[1]);\n\t\t\t\tint c = Integer.parseInt(v[2]);\n\t\t\t\tint max = Math.max(Math.max(a, b), c);\n\n\t\t\t\tif (max == a) {\n\t\t\t\t\tif (a * a == b * b + 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 if (max == b) {\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 * c == a * a + b * b) {\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}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString line;\n\t\ttry {\n\t\t\tbr.readLine();\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] v = line.split(\" \");\n\t\t\t\tint a = Integer.parseInt(v[0]);\n\t\t\t\tint b = Integer.parseInt(v[1]);\n\t\t\t\tint c = Integer.parseInt(v[2]);\n\t\t\t\tint max = Math.max(Math.max(a, b), c);\n\n\t\t\t\tif (max == a) {\n\t\t\t\t\tif (a * a == b * b + 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 if (max == b) {\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 * c == a * a + b * b) {\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}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString line;\n\t\ttry {\n\t\t\tbr.readLine();\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] v = line.split(\" \");\n\t\t\t\tint a = Integer.parseInt(v[0]);\n\t\t\t\tint b = Integer.parseInt(v[1]);\n\t\t\t\tint c = Integer.parseInt(v[2]);\n\t\t\t\tint max = Math.max(Math.max(a, b), c);\n\n\t\t\t\tif (max == a) {\n\t\t\t\t\tif (a * a == b * b + 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 if (max == b) {\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 * c == a * a + b * b) {\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}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"try {\n\t\t\tbr.readLine();\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] v = line.split(\" \");\n\t\t\t\tint a = Integer.parseInt(v[0]);\n\t\t\t\tint b = Integer.parseInt(v[1]);\n\t\t\t\tint c = Integer.parseInt(v[2]);\n\t\t\t\tint max = Math.max(Math.max(a, b), c);\n\n\t\t\t\tif (max == a) {\n\t\t\t\t\tif (a * a == b * b + 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 if (max == b) {\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 * c == a * a + b * b) {\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}\n\t\t\t}\n\t\t} catch (Exception e) {\n\t\t}",
"catch (Exception e) {\n\t\t}",
"Exception e",
"{\n\t\t}",
"{\n\t\t\tbr.readLine();\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\tString[] v = line.split(\" \");\n\t\t\t\tint a = Integer.parseInt(v[0]);\n\t\t\t\tint b = Integer.parseInt(v[1]);\n\t\t\t\tint c = Integer.parseInt(v[2]);\n\t\t\t\tint max = Math.max(Math.max(a, b), c);\n\n\t\t\t\tif (max == a) {\n\t\t\t\t\tif (a * a == b * b + 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 if (max == b) {\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 * c == a * a + b * b) {\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}\n\t\t\t}\n\t\t}",
"br.readLine()",
"br.readLine",
"br",
"while ((line = br.readLine()) != null) {\n\t\t\t\tString[] v = line.split(\" \");\n\t\t\t\tint a = Integer.parseInt(v[0]);\n\t\t\t\tint b = Integer.parseInt(v[1]);\n\t\t\t\tint c = Integer.parseInt(v[2]);\n\t\t\t\tint max = Math.max(Math.max(a, b), c);\n\n\t\t\t\tif (max == a) {\n\t\t\t\t\tif (a * a == b * b + 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 if (max == b) {\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 * c == a * a + b * b) {\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}\n\t\t\t}",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\t\tString[] v = line.split(\" \");\n\t\t\t\tint a = Integer.parseInt(v[0]);\n\t\t\t\tint b = Integer.parseInt(v[1]);\n\t\t\t\tint c = Integer.parseInt(v[2]);\n\t\t\t\tint max = Math.max(Math.max(a, b), c);\n\n\t\t\t\tif (max == a) {\n\t\t\t\t\tif (a * a == b * b + 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 if (max == b) {\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 * c == a * a + b * b) {\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}\n\t\t\t}",
"String[] v = line.split(\" \");",
"v",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int a = Integer.parseInt(v[0]);",
"a",
"Integer.parseInt(v[0])",
"Integer.parseInt",
"Integer",
"v[0]",
"v",
"0",
"int b = Integer.parseInt(v[1]);",
"b",
"Integer.parseInt(v[1])",
"Integer.parseInt",
"Integer",
"v[1]",
"v",
"1",
"int c = Integer.parseInt(v[2]);",
"c",
"Integer.parseInt(v[2])",
"Integer.parseInt",
"Integer",
"v[2]",
"v",
"2",
"int max = Math.max(Math.max(a, b), c);",
"max",
"Math.max(Math.max(a, b), c)",
"Math.max",
"Math",
"Math.max(a, b)",
"Math.max",
"Math",
"a",
"b",
"c",
"if (max == a) {\n\t\t\t\t\tif (a * a == b * b + 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 if (max == b) {\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 * c == a * a + b * b) {\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}",
"max == a",
"max",
"a",
"{\n\t\t\t\t\tif (a * a == b * b + 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 (a * a == b * b + 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}",
"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\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 (max == b) {\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 * c == a * a + b * b) {\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}",
"max == b",
"max",
"b",
"{\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 * c == a * a + b * b) {\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 (c * c == a * a + b * b) {\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}",
"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\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\"",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
try {
br.readLine();
while ((line = br.readLine()) != null) {
String[] v = line.split(" ");
int a = Integer.parseInt(v[0]);
int b = Integer.parseInt(v[1]);
int c = Integer.parseInt(v[2]);
int max = Math.max(Math.max(a, b), c);
if (max == a) {
if (a * a == b * b + c * c) {
System.out.println("YES");
} else {
System.out.println("NO");
}
} else if (max == b) {
if (b * b == a * a + c * c) {
System.out.println("YES");
} else {
System.out.println("NO");
}
} else {
if (c * c == a * a + b * b) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
} catch (Exception e) {
}
}
} |
[
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,
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,
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
],
[
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
],
[
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
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
56,
58
],
[
47,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
67,
69
],
[
47,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
78,
80
],
[
45,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
45,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
6,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
] | [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner input=new Scanner(System.in);\n\t\t\n\t\tint circle=input.nextInt();\n\t\tfor(int i=0;i<circle;i++){\n\t\t\tint a=input.nextInt();\n\t\t\tint b=input.nextInt();\n\t\t\tint c=input.nextInt();\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a)\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}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner input=new Scanner(System.in);\n\t\t\n\t\tint circle=input.nextInt();\n\t\tfor(int i=0;i<circle;i++){\n\t\t\tint a=input.nextInt();\n\t\t\tint b=input.nextInt();\n\t\t\tint c=input.nextInt();\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a)\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}",
"Main",
"public static void main(String[] args){\n\t\tScanner input=new Scanner(System.in);\n\t\t\n\t\tint circle=input.nextInt();\n\t\tfor(int i=0;i<circle;i++){\n\t\t\tint a=input.nextInt();\n\t\t\tint b=input.nextInt();\n\t\t\tint c=input.nextInt();\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a)\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 input=new Scanner(System.in);\n\t\t\n\t\tint circle=input.nextInt();\n\t\tfor(int i=0;i<circle;i++){\n\t\t\tint a=input.nextInt();\n\t\t\tint b=input.nextInt();\n\t\t\tint c=input.nextInt();\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a)\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 input=new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int circle=input.nextInt();",
"circle",
"input.nextInt()",
"input.nextInt",
"input",
"for(int i=0;i<circle;i++){\n\t\t\tint a=input.nextInt();\n\t\t\tint b=input.nextInt();\n\t\t\tint c=input.nextInt();\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a)\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<circle",
"i",
"circle",
"i++",
"i++",
"i",
"{\n\t\t\tint a=input.nextInt();\n\t\t\tint b=input.nextInt();\n\t\t\tint c=input.nextInt();\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a)\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=input.nextInt();\n\t\t\tint b=input.nextInt();\n\t\t\tint c=input.nextInt();\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a)\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=input.nextInt();",
"a",
"input.nextInt()",
"input.nextInt",
"input",
"int b=input.nextInt();",
"b",
"input.nextInt()",
"input.nextInt",
"input",
"int c=input.nextInt();",
"c",
"input.nextInt()",
"input.nextInt",
"input",
"if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a)\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+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",
"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\tScanner input=new Scanner(System.in);\n\t\t\n\t\tint circle=input.nextInt();\n\t\tfor(int i=0;i<circle;i++){\n\t\t\tint a=input.nextInt();\n\t\t\tint b=input.nextInt();\n\t\t\tint c=input.nextInt();\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a)\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}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner input=new Scanner(System.in);\n\t\t\n\t\tint circle=input.nextInt();\n\t\tfor(int i=0;i<circle;i++){\n\t\t\tint a=input.nextInt();\n\t\t\tint b=input.nextInt();\n\t\t\tint c=input.nextInt();\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a)\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}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args){
Scanner input=new Scanner(System.in);
int circle=input.nextInt();
for(int i=0;i<circle;i++){
int a=input.nextInt();
int b=input.nextInt();
int c=input.nextInt();
if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==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,
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,
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,
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
],
[
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
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
33,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
33,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
33,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
65,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
64,
88
],
[
64,
89
],
[
6,
90
],
[
90,
91
]
] | [
"import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] sides = new int[3];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsides[0] = scanner.nextInt();\n\t\t\tsides[1] = scanner.nextInt();\n\t\t\tsides[2] = scanner.nextInt();\n\t\t\tArrays.sort(sides);\n\t\t\tSystem.out.println(\n\t\t\t\tsides[0] * sides[0] + sides[1] * sides[1] == sides[2] * sides[2] ?\n\t\t\t\t\"YES\" : \"NO\"\n\t\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 scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] sides = new int[3];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsides[0] = scanner.nextInt();\n\t\t\tsides[1] = scanner.nextInt();\n\t\t\tsides[2] = scanner.nextInt();\n\t\t\tArrays.sort(sides);\n\t\t\tSystem.out.println(\n\t\t\t\tsides[0] * sides[0] + sides[1] * sides[1] == sides[2] * sides[2] ?\n\t\t\t\t\"YES\" : \"NO\"\n\t\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 n = scanner.nextInt();\n\t\tint[] sides = new int[3];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsides[0] = scanner.nextInt();\n\t\t\tsides[1] = scanner.nextInt();\n\t\t\tsides[2] = scanner.nextInt();\n\t\t\tArrays.sort(sides);\n\t\t\tSystem.out.println(\n\t\t\t\tsides[0] * sides[0] + sides[1] * sides[1] == sides[2] * sides[2] ?\n\t\t\t\t\"YES\" : \"NO\"\n\t\t\t\t);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] sides = new int[3];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsides[0] = scanner.nextInt();\n\t\t\tsides[1] = scanner.nextInt();\n\t\t\tsides[2] = scanner.nextInt();\n\t\t\tArrays.sort(sides);\n\t\t\tSystem.out.println(\n\t\t\t\tsides[0] * sides[0] + sides[1] * sides[1] == sides[2] * sides[2] ?\n\t\t\t\t\"YES\" : \"NO\"\n\t\t\t\t);\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[] sides = new int[3];",
"sides",
"new int[3]",
"3",
"for (int i = 0; i < n; i++) {\n\t\t\tsides[0] = scanner.nextInt();\n\t\t\tsides[1] = scanner.nextInt();\n\t\t\tsides[2] = scanner.nextInt();\n\t\t\tArrays.sort(sides);\n\t\t\tSystem.out.println(\n\t\t\t\tsides[0] * sides[0] + sides[1] * sides[1] == sides[2] * sides[2] ?\n\t\t\t\t\"YES\" : \"NO\"\n\t\t\t\t);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tsides[0] = scanner.nextInt();\n\t\t\tsides[1] = scanner.nextInt();\n\t\t\tsides[2] = scanner.nextInt();\n\t\t\tArrays.sort(sides);\n\t\t\tSystem.out.println(\n\t\t\t\tsides[0] * sides[0] + sides[1] * sides[1] == sides[2] * sides[2] ?\n\t\t\t\t\"YES\" : \"NO\"\n\t\t\t\t);\n\t\t}",
"{\n\t\t\tsides[0] = scanner.nextInt();\n\t\t\tsides[1] = scanner.nextInt();\n\t\t\tsides[2] = scanner.nextInt();\n\t\t\tArrays.sort(sides);\n\t\t\tSystem.out.println(\n\t\t\t\tsides[0] * sides[0] + sides[1] * sides[1] == sides[2] * sides[2] ?\n\t\t\t\t\"YES\" : \"NO\"\n\t\t\t\t);\n\t\t}",
"sides[0] = scanner.nextInt()",
"sides[0]",
"sides",
"0",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"sides[1] = scanner.nextInt()",
"sides[1]",
"sides",
"1",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"sides[2] = scanner.nextInt()",
"sides[2]",
"sides",
"2",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"Arrays.sort(sides)",
"Arrays.sort",
"Arrays",
"sides",
"System.out.println(\n\t\t\t\tsides[0] * sides[0] + sides[1] * sides[1] == sides[2] * sides[2] ?\n\t\t\t\t\"YES\" : \"NO\"\n\t\t\t\t)",
"System.out.println",
"System.out",
"System",
"System.out",
"sides[0] * sides[0] + sides[1] * sides[1] == sides[2] * sides[2] ?\n\t\t\t\t\"YES\" : \"NO\"",
"sides[0] * sides[0] + sides[1] * sides[1] == sides[2] * sides[2]",
"sides[0] * sides[0] + sides[1] * sides[1]",
"sides[0] * sides[0]",
"sides[0]",
"sides",
"0",
"sides[0]",
"sides",
"0",
"sides[1] * sides[1]",
"sides[1]",
"sides",
"1",
"sides[1]",
"sides",
"1",
"sides[2] * sides[2]",
"sides[2]",
"sides",
"2",
"sides[2]",
"sides",
"2",
"\"YES\"",
"\"NO\"",
"String[] args",
"args"
] | import java.util.*;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int[] sides = new int[3];
for (int i = 0; i < n; i++) {
sides[0] = scanner.nextInt();
sides[1] = scanner.nextInt();
sides[2] = scanner.nextInt();
Arrays.sort(sides);
System.out.println(
sides[0] * sides[0] + sides[1] * sides[1] == sides[2] * sides[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,
18,
13,
41,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
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,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
119,
14
],
[
119,
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
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
17,
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
],
[
47,
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
],
[
68,
71
],
[
71,
72
],
[
72,
73
],
[
47,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
47,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
79,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
78,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
78,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
15,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(r.readLine());\n\t\tStringTokenizer st;\n\t\t\n\t\tint side[] = new int[3];\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tst = new StringTokenizer(r.readLine());\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t side[j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(side);\n if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n\t\t}\n\t\t\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(r.readLine());\n\t\tStringTokenizer st;\n\t\t\n\t\tint side[] = new int[3];\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tst = new StringTokenizer(r.readLine());\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t side[j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(side);\n if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(r.readLine());\n\t\tStringTokenizer st;\n\t\t\n\t\tint side[] = new int[3];\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tst = new StringTokenizer(r.readLine());\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t side[j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(side);\n if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\t\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(r.readLine());\n\t\tStringTokenizer st;\n\t\t\n\t\tint side[] = new int[3];\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tst = new StringTokenizer(r.readLine());\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t side[j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(side);\n if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n\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.parseInt(r.readLine());",
"n",
"Integer.parseInt(r.readLine())",
"Integer.parseInt",
"Integer",
"r.readLine()",
"r.readLine",
"r",
"StringTokenizer st;",
"st",
"int side[] = new int[3];",
"side",
"new int[3]",
"3",
"for (int i = 0; i < n; i++) {\n\t\t\tst = new StringTokenizer(r.readLine());\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t side[j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(side);\n if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tst = new StringTokenizer(r.readLine());\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t side[j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(side);\n if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n\t\t}",
"{\n\t\t\tst = new StringTokenizer(r.readLine());\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t side[j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(side);\n if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n\t\t}",
"st = new StringTokenizer(r.readLine())",
"st",
"new StringTokenizer(r.readLine())",
"for(int j = 0;j < 3;j++){\n\t\t\t\t side[j] = Integer.parseInt(st.nextToken());\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\t side[j] = Integer.parseInt(st.nextToken());\n\t\t\t}",
"{\n\t\t\t\t side[j] = Integer.parseInt(st.nextToken());\n\t\t\t}",
"side[j] = Integer.parseInt(st.nextToken())",
"side[j]",
"side",
"j",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"Arrays.sort(side)",
"Arrays.sort",
"Arrays",
"side",
"if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }",
"(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 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\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(r.readLine());\n\t\tStringTokenizer st;\n\t\t\n\t\tint side[] = new int[3];\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tst = new StringTokenizer(r.readLine());\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t side[j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(side);\n if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n\t\t}\n\t\t\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(r.readLine());\n\t\tStringTokenizer st;\n\t\t\n\t\tint side[] = new int[3];\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tst = new StringTokenizer(r.readLine());\n\t\t\tfor(int j = 0;j < 3;j++){\n\t\t\t\t side[j] = Integer.parseInt(st.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(side);\n if((side[0]*side[0] + side[1]*side[1]) == side[2]*side[2]) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n\t\t}\n\t\t\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
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.parseInt(r.readLine());
StringTokenizer st;
int side[] = new int[3];
for (int i = 0; i < n; i++) {
st = new StringTokenizer(r.readLine());
for(int j = 0;j < 3;j++){
side[j] = Integer.parseInt(st.nextToken());
}
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");
}
}
}
} |
[
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,
41,
13,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
2,
13,
13,
0,
13,
2,
2,
13,
13,
2,
13,
13,
14,
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
],
[
122,
5
],
[
122,
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
],
[
8,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
60,
67
],
[
67,
68
],
[
67,
69
],
[
45,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
45,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
79,
86
],
[
86,
87
],
[
86,
88
],
[
45,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
45,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
45,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
103,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
6,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tint a,b,c,n,i,temp,x,y;\n\t\tn=s.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta=s.nextInt();\n\t\t\tb=s.nextInt();\n\t\t\tif(b>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=b;\n\t\t\t\tb=temp;\n\t\t\t}\n\t\t\tc=s.nextInt();\n\t\t\tif(c>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=c;\n\t\t\t\tc=temp;\n\t\t\t}\n\t\t\tx=a*a;y=b*b+c*c;\n\t\t\tif(x!=y)\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tint a,b,c,n,i,temp,x,y;\n\t\tn=s.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta=s.nextInt();\n\t\t\tb=s.nextInt();\n\t\t\tif(b>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=b;\n\t\t\t\tb=temp;\n\t\t\t}\n\t\t\tc=s.nextInt();\n\t\t\tif(c>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=c;\n\t\t\t\tc=temp;\n\t\t\t}\n\t\t\tx=a*a;y=b*b+c*c;\n\t\t\tif(x!=y)\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tint a,b,c,n,i,temp,x,y;\n\t\tn=s.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta=s.nextInt();\n\t\t\tb=s.nextInt();\n\t\t\tif(b>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=b;\n\t\t\t\tb=temp;\n\t\t\t}\n\t\t\tc=s.nextInt();\n\t\t\tif(c>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=c;\n\t\t\t\tc=temp;\n\t\t\t}\n\t\t\tx=a*a;y=b*b+c*c;\n\t\t\tif(x!=y)\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner s=new Scanner(System.in);\n\t\tint a,b,c,n,i,temp,x,y;\n\t\tn=s.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta=s.nextInt();\n\t\t\tb=s.nextInt();\n\t\t\tif(b>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=b;\n\t\t\t\tb=temp;\n\t\t\t}\n\t\t\tc=s.nextInt();\n\t\t\tif(c>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=c;\n\t\t\t\tc=temp;\n\t\t\t}\n\t\t\tx=a*a;y=b*b+c*c;\n\t\t\tif(x!=y)\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t}",
"Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int a",
"a",
"b",
"b",
"c",
"c",
"n",
"n",
"i",
"i",
"temp",
"temp",
"x",
"x",
"y;",
"y",
"n=s.nextInt()",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"for(i=0;i<n;i++){\n\t\t\ta=s.nextInt();\n\t\t\tb=s.nextInt();\n\t\t\tif(b>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=b;\n\t\t\t\tb=temp;\n\t\t\t}\n\t\t\tc=s.nextInt();\n\t\t\tif(c>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=c;\n\t\t\t\tc=temp;\n\t\t\t}\n\t\t\tx=a*a;y=b*b+c*c;\n\t\t\tif(x!=y)\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta=s.nextInt();\n\t\t\tb=s.nextInt();\n\t\t\tif(b>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=b;\n\t\t\t\tb=temp;\n\t\t\t}\n\t\t\tc=s.nextInt();\n\t\t\tif(c>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=c;\n\t\t\t\tc=temp;\n\t\t\t}\n\t\t\tx=a*a;y=b*b+c*c;\n\t\t\tif(x!=y)\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t}",
"{\n\t\t\ta=s.nextInt();\n\t\t\tb=s.nextInt();\n\t\t\tif(b>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=b;\n\t\t\t\tb=temp;\n\t\t\t}\n\t\t\tc=s.nextInt();\n\t\t\tif(c>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=c;\n\t\t\t\tc=temp;\n\t\t\t}\n\t\t\tx=a*a;y=b*b+c*c;\n\t\t\tif(x!=y)\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t}",
"a=s.nextInt()",
"a",
"s.nextInt()",
"s.nextInt",
"s",
"b=s.nextInt()",
"b",
"s.nextInt()",
"s.nextInt",
"s",
"if(b>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=b;\n\t\t\t\tb=temp;\n\t\t\t}",
"b>a",
"b",
"a",
"{\n\t\t\t\ttemp=a;\n\t\t\t\ta=b;\n\t\t\t\tb=temp;\n\t\t\t}",
"temp=a",
"temp",
"a",
"a=b",
"a",
"b",
"b=temp",
"b",
"temp",
"c=s.nextInt()",
"c",
"s.nextInt()",
"s.nextInt",
"s",
"if(c>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=c;\n\t\t\t\tc=temp;\n\t\t\t}",
"c>a",
"c",
"a",
"{\n\t\t\t\ttemp=a;\n\t\t\t\ta=c;\n\t\t\t\tc=temp;\n\t\t\t}",
"temp=a",
"temp",
"a",
"a=c",
"a",
"c",
"c=temp",
"c",
"temp",
"x=a*a",
"x",
"a*a",
"a",
"a",
"y=b*b+c*c",
"y",
"b*b+c*c",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"if(x!=y)\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"YES\");",
"x!=y",
"x",
"y",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"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 a,b,c,n,i,temp,x,y;\n\t\tn=s.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta=s.nextInt();\n\t\t\tb=s.nextInt();\n\t\t\tif(b>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=b;\n\t\t\t\tb=temp;\n\t\t\t}\n\t\t\tc=s.nextInt();\n\t\t\tif(c>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=c;\n\t\t\t\tc=temp;\n\t\t\t}\n\t\t\tx=a*a;y=b*b+c*c;\n\t\t\tif(x!=y)\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tint a,b,c,n,i,temp,x,y;\n\t\tn=s.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta=s.nextInt();\n\t\t\tb=s.nextInt();\n\t\t\tif(b>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=b;\n\t\t\t\tb=temp;\n\t\t\t}\n\t\t\tc=s.nextInt();\n\t\t\tif(c>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=c;\n\t\t\t\tc=temp;\n\t\t\t}\n\t\t\tx=a*a;y=b*b+c*c;\n\t\t\tif(x!=y)\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\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,n,i,temp,x,y;
n=s.nextInt();
for(i=0;i<n;i++){
a=s.nextInt();
b=s.nextInt();
if(b>a){
temp=a;
a=b;
b=temp;
}
c=s.nextInt();
if(c>a){
temp=a;
a=c;
c=temp;
}
x=a*a;y=b*b+c*c;
if(x!=y)
System.out.println("NO");
else
System.out.println("YES");
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
11,
1,
41,
13,
17,
41,
13,
4,
18,
13,
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,
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
],
[
83,
5
],
[
83,
6
],
[
6,
7
],
[
6,
8
],
[
83,
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
],
[
12,
22
],
[
22,
23
],
[
22,
24
],
[
12,
25
],
[
25,
26
],
[
26,
27
],
[
12,
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
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
48,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
29,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
76,
79
],
[
9,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] | [
"import java.util.*;\n\npublic class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()};\n Arrays.sort(ary);\n boolean flg = ary[0] * ary[0] + ary[1] * ary[1] == ary[2] * ary[2];\n System.out.println(flg ? \"YES\" : \"NO\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()};\n Arrays.sort(ary);\n boolean flg = ary[0] * ary[0] + ary[1] * ary[1] == ary[2] * ary[2];\n System.out.println(flg ? \"YES\" : \"NO\");\n }\n }\n}",
"Main",
"private static final Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"public static void main(String[] args) {\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()};\n Arrays.sort(ary);\n boolean flg = ary[0] * ary[0] + ary[1] * ary[1] == ary[2] * ary[2];\n System.out.println(flg ? \"YES\" : \"NO\");\n }\n }",
"main",
"{\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()};\n Arrays.sort(ary);\n boolean flg = ary[0] * ary[0] + ary[1] * ary[1] == ary[2] * ary[2];\n System.out.println(flg ? \"YES\" : \"NO\");\n }\n }",
"for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()};\n Arrays.sort(ary);\n boolean flg = ary[0] * ary[0] + ary[1] * ary[1] == ary[2] * ary[2];\n System.out.println(flg ? \"YES\" : \"NO\");\n }",
"int i = 0, n = scn.nextInt();",
"int i = 0",
"i",
"0",
"n = scn.nextInt();",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()};\n Arrays.sort(ary);\n boolean flg = ary[0] * ary[0] + ary[1] * ary[1] == ary[2] * ary[2];\n System.out.println(flg ? \"YES\" : \"NO\");\n }",
"{\n int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()};\n Arrays.sort(ary);\n boolean flg = ary[0] * ary[0] + ary[1] * ary[1] == ary[2] * ary[2];\n System.out.println(flg ? \"YES\" : \"NO\");\n }",
"int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()};",
"ary",
"{scn.nextInt(), scn.nextInt(), scn.nextInt()}",
"scn.nextInt()",
"scn.nextInt",
"scn",
"scn.nextInt()",
"scn.nextInt",
"scn",
"scn.nextInt()",
"scn.nextInt",
"scn",
"Arrays.sort(ary)",
"Arrays.sort",
"Arrays",
"ary",
"boolean flg = ary[0] * ary[0] + ary[1] * ary[1] == ary[2] * ary[2];",
"flg",
"ary[0] * ary[0] + ary[1] * ary[1] == ary[2] * ary[2]",
"ary[0] * ary[0] + ary[1] * ary[1]",
"ary[0] * ary[0]",
"ary[0]",
"ary",
"0",
"ary[0]",
"ary",
"0",
"ary[1] * ary[1]",
"ary[1]",
"ary",
"1",
"ary[1]",
"ary",
"1",
"ary[2] * ary[2]",
"ary[2]",
"ary",
"2",
"ary[2]",
"ary",
"2",
"System.out.println(flg ? \"YES\" : \"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"flg ? \"YES\" : \"NO\"",
"flg",
"\"YES\"",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()};\n Arrays.sort(ary);\n boolean flg = ary[0] * ary[0] + ary[1] * ary[1] == ary[2] * ary[2];\n System.out.println(flg ? \"YES\" : \"NO\");\n }\n }\n}",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()};\n Arrays.sort(ary);\n boolean flg = ary[0] * ary[0] + ary[1] * ary[1] == ary[2] * ary[2];\n System.out.println(flg ? \"YES\" : \"NO\");\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
private static final Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
for(int i = 0, n = scn.nextInt(); i < n; i++) {
int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()};
Arrays.sort(ary);
boolean flg = ary[0] * ary[0] + ary[1] * ary[1] == ary[2] * ary[2];
System.out.println(flg ? "YES" : "NO");
}
}
} |
[
7,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
41,
13,
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,
41,
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,
0,
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
],
[
125,
8
],
[
125,
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
],
[
11,
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
],
[
53,
54
],
[
53,
55
],
[
38,
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
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
38,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
38,
84
],
[
84,
85
],
[
38,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
87,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
86,
110
],
[
110,
111
],
[
110,
112
],
[
86,
113
],
[
113,
114
],
[
113,
115
],
[
38,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
9,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
] | [
"import java.io.*;\nimport java.util.*;\npublic class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=reader.readLine();\n\t\tint n=Integer.parseInt(s);\n\t\tfor(int j=0;j<n;j++){\n\t\t\ts=reader.readLine();\n\t\t\tString t[] =s.split(\" \");\n\t\t\tint[] in=new int[t.length];\n\t\t\tfor(int i=0;i<t.length;i++)\n\t\t\t\tin[i]=Integer.parseInt(t[i]);\n\t\t\tArrays.sort(in);\n\t\t\tString ans;\n\t\t\tif(in[0]*in[0]+in[1]*in[1]==in[2]*in[2])\n\t\t\t\tans=\"YES\";\n\t\t\telse ans=\"NO\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\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 reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=reader.readLine();\n\t\tint n=Integer.parseInt(s);\n\t\tfor(int j=0;j<n;j++){\n\t\t\ts=reader.readLine();\n\t\t\tString t[] =s.split(\" \");\n\t\t\tint[] in=new int[t.length];\n\t\t\tfor(int i=0;i<t.length;i++)\n\t\t\t\tin[i]=Integer.parseInt(t[i]);\n\t\t\tArrays.sort(in);\n\t\t\tString ans;\n\t\t\tif(in[0]*in[0]+in[1]*in[1]==in[2]*in[2])\n\t\t\t\tans=\"YES\";\n\t\t\telse ans=\"NO\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=reader.readLine();\n\t\tint n=Integer.parseInt(s);\n\t\tfor(int j=0;j<n;j++){\n\t\t\ts=reader.readLine();\n\t\t\tString t[] =s.split(\" \");\n\t\t\tint[] in=new int[t.length];\n\t\t\tfor(int i=0;i<t.length;i++)\n\t\t\t\tin[i]=Integer.parseInt(t[i]);\n\t\t\tArrays.sort(in);\n\t\t\tString ans;\n\t\t\tif(in[0]*in[0]+in[1]*in[1]==in[2]*in[2])\n\t\t\t\tans=\"YES\";\n\t\t\telse ans=\"NO\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\n\t}",
"main",
"{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=reader.readLine();\n\t\tint n=Integer.parseInt(s);\n\t\tfor(int j=0;j<n;j++){\n\t\t\ts=reader.readLine();\n\t\t\tString t[] =s.split(\" \");\n\t\t\tint[] in=new int[t.length];\n\t\t\tfor(int i=0;i<t.length;i++)\n\t\t\t\tin[i]=Integer.parseInt(t[i]);\n\t\t\tArrays.sort(in);\n\t\t\tString ans;\n\t\t\tif(in[0]*in[0]+in[1]*in[1]==in[2]*in[2])\n\t\t\t\tans=\"YES\";\n\t\t\telse ans=\"NO\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\n\t}",
"BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String s=reader.readLine();",
"s",
"reader.readLine()",
"reader.readLine",
"reader",
"int n=Integer.parseInt(s);",
"n",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"for(int j=0;j<n;j++){\n\t\t\ts=reader.readLine();\n\t\t\tString t[] =s.split(\" \");\n\t\t\tint[] in=new int[t.length];\n\t\t\tfor(int i=0;i<t.length;i++)\n\t\t\t\tin[i]=Integer.parseInt(t[i]);\n\t\t\tArrays.sort(in);\n\t\t\tString ans;\n\t\t\tif(in[0]*in[0]+in[1]*in[1]==in[2]*in[2])\n\t\t\t\tans=\"YES\";\n\t\t\telse ans=\"NO\";\n\t\t\tSystem.out.println(ans);\n\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\ts=reader.readLine();\n\t\t\tString t[] =s.split(\" \");\n\t\t\tint[] in=new int[t.length];\n\t\t\tfor(int i=0;i<t.length;i++)\n\t\t\t\tin[i]=Integer.parseInt(t[i]);\n\t\t\tArrays.sort(in);\n\t\t\tString ans;\n\t\t\tif(in[0]*in[0]+in[1]*in[1]==in[2]*in[2])\n\t\t\t\tans=\"YES\";\n\t\t\telse ans=\"NO\";\n\t\t\tSystem.out.println(ans);\n\t\t}",
"{\n\t\t\ts=reader.readLine();\n\t\t\tString t[] =s.split(\" \");\n\t\t\tint[] in=new int[t.length];\n\t\t\tfor(int i=0;i<t.length;i++)\n\t\t\t\tin[i]=Integer.parseInt(t[i]);\n\t\t\tArrays.sort(in);\n\t\t\tString ans;\n\t\t\tif(in[0]*in[0]+in[1]*in[1]==in[2]*in[2])\n\t\t\t\tans=\"YES\";\n\t\t\telse ans=\"NO\";\n\t\t\tSystem.out.println(ans);\n\t\t}",
"s=reader.readLine()",
"s",
"reader.readLine()",
"reader.readLine",
"reader",
"String t[] =s.split(\" \");",
"t",
"s.split(\" \")",
"s.split",
"s",
"\" \"",
"int[] in=new int[t.length];",
"in",
"new int[t.length]",
"t.length",
"t",
"t.length",
"for(int i=0;i<t.length;i++)\n\t\t\t\tin[i]=Integer.parseInt(t[i]);",
"int i=0;",
"int i=0;",
"i",
"0",
"i<t.length",
"i",
"t.length",
"t",
"t.length",
"i++",
"i++",
"i",
"in[i]=Integer.parseInt(t[i]);",
"in[i]=Integer.parseInt(t[i])",
"in[i]",
"in",
"i",
"Integer.parseInt(t[i])",
"Integer.parseInt",
"Integer",
"t[i]",
"t",
"i",
"Arrays.sort(in)",
"Arrays.sort",
"Arrays",
"in",
"String ans;",
"ans",
"if(in[0]*in[0]+in[1]*in[1]==in[2]*in[2])\n\t\t\t\tans=\"YES\";\n\t\t\telse ans=\"NO\";",
"in[0]*in[0]+in[1]*in[1]==in[2]*in[2]",
"in[0]*in[0]+in[1]*in[1]",
"in[0]*in[0]",
"in[0]",
"in",
"0",
"in[0]",
"in",
"0",
"in[1]*in[1]",
"in[1]",
"in",
"1",
"in[1]",
"in",
"1",
"in[2]*in[2]",
"in[2]",
"in",
"2",
"in[2]",
"in",
"2",
"ans=\"YES\"",
"ans",
"\"YES\"",
"ans=\"NO\"",
"ans",
"\"NO\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=reader.readLine();\n\t\tint n=Integer.parseInt(s);\n\t\tfor(int j=0;j<n;j++){\n\t\t\ts=reader.readLine();\n\t\t\tString t[] =s.split(\" \");\n\t\t\tint[] in=new int[t.length];\n\t\t\tfor(int i=0;i<t.length;i++)\n\t\t\t\tin[i]=Integer.parseInt(t[i]);\n\t\t\tArrays.sort(in);\n\t\t\tString ans;\n\t\t\tif(in[0]*in[0]+in[1]*in[1]==in[2]*in[2])\n\t\t\t\tans=\"YES\";\n\t\t\telse ans=\"NO\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=reader.readLine();\n\t\tint n=Integer.parseInt(s);\n\t\tfor(int j=0;j<n;j++){\n\t\t\ts=reader.readLine();\n\t\t\tString t[] =s.split(\" \");\n\t\t\tint[] in=new int[t.length];\n\t\t\tfor(int i=0;i<t.length;i++)\n\t\t\t\tin[i]=Integer.parseInt(t[i]);\n\t\t\tArrays.sort(in);\n\t\t\tString ans;\n\t\t\tif(in[0]*in[0]+in[1]*in[1]==in[2]*in[2])\n\t\t\t\tans=\"YES\";\n\t\t\telse ans=\"NO\";\n\t\t\tSystem.out.println(ans);\n\t\t}\n\t\n\t}\n}",
"Main"
] | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args)throws IOException{
BufferedReader reader=new BufferedReader(new InputStreamReader(System.in));
String s=reader.readLine();
int n=Integer.parseInt(s);
for(int j=0;j<n;j++){
s=reader.readLine();
String t[] =s.split(" ");
int[] in=new int[t.length];
for(int i=0;i<t.length;i++)
in[i]=Integer.parseInt(t[i]);
Arrays.sort(in);
String ans;
if(in[0]*in[0]+in[1]*in[1]==in[2]*in[2])
ans="YES";
else ans="NO";
System.out.println(ans);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
20,
0,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
0,
13,
13,
41,
13,
4,
18,
13,
18,
13,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
13,
0,
13,
4,
18,
13,
18,
13,
13,
17,
14,
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
],
[
159,
8
],
[
159,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
14,
16
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
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
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
44,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
97,
99
],
[
44,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
105,
107
],
[
102,
108
],
[
44,
109
],
[
109,
110
],
[
109,
111
],
[
44,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
112,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
134,
135
],
[
134,
136
],
[
131,
137
],
[
44,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
138,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
9,
156
],
[
156,
157
],
[
0,
158
],
[
158,
159
],
[
158,
160
]
] | [
"import java.util.*;\nimport java.io.*;\n\npublic class Main{\n\tpublic static void main(String[] args) throws NumberFormatException, IOException{\n\t\tint n;\n\t\tint[] lines=new int[3];\n\t\tint max_lines_number=0;\n\t\tBufferedReader d=new BufferedReader(new InputStreamReader(System.in));\n\n\t\tn=Integer.valueOf(d.readLine());//なんこの三角形を対象とするか読み取り\n\n\t\tfor(int i=0;i<n;i++){//その回数繰り返す\n\n\t\t\tString array[] =d.readLine().split(\" \"); //空白区切りなので\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tlines[j]=Integer.valueOf(array[j]);//Stringをintへ\n\t\t\t}\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tif(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す\n\t\t\t}\n\n\t\t\tint max_line=(int) Math.pow(lines[max_lines_number],2);\n\t\t\tint other_lines=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tif(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);\n\t\t\t}\n\t\t\tif(max_line==other_lines){\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}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) throws NumberFormatException, IOException{\n\t\tint n;\n\t\tint[] lines=new int[3];\n\t\tint max_lines_number=0;\n\t\tBufferedReader d=new BufferedReader(new InputStreamReader(System.in));\n\n\t\tn=Integer.valueOf(d.readLine());//なんこの三角形を対象とするか読み取り\n\n\t\tfor(int i=0;i<n;i++){//その回数繰り返す\n\n\t\t\tString array[] =d.readLine().split(\" \"); //空白区切りなので\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tlines[j]=Integer.valueOf(array[j]);//Stringをintへ\n\t\t\t}\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tif(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す\n\t\t\t}\n\n\t\t\tint max_line=(int) Math.pow(lines[max_lines_number],2);\n\t\t\tint other_lines=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tif(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);\n\t\t\t}\n\t\t\tif(max_line==other_lines){\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}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException{\n\t\tint n;\n\t\tint[] lines=new int[3];\n\t\tint max_lines_number=0;\n\t\tBufferedReader d=new BufferedReader(new InputStreamReader(System.in));\n\n\t\tn=Integer.valueOf(d.readLine());//なんこの三角形を対象とするか読み取り\n\n\t\tfor(int i=0;i<n;i++){//その回数繰り返す\n\n\t\t\tString array[] =d.readLine().split(\" \"); //空白区切りなので\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tlines[j]=Integer.valueOf(array[j]);//Stringをintへ\n\t\t\t}\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tif(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す\n\t\t\t}\n\n\t\t\tint max_line=(int) Math.pow(lines[max_lines_number],2);\n\t\t\tint other_lines=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tif(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);\n\t\t\t}\n\t\t\tif(max_line==other_lines){\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\tint n;\n\t\tint[] lines=new int[3];\n\t\tint max_lines_number=0;\n\t\tBufferedReader d=new BufferedReader(new InputStreamReader(System.in));\n\n\t\tn=Integer.valueOf(d.readLine());//なんこの三角形を対象とするか読み取り\n\n\t\tfor(int i=0;i<n;i++){//その回数繰り返す\n\n\t\t\tString array[] =d.readLine().split(\" \"); //空白区切りなので\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tlines[j]=Integer.valueOf(array[j]);//Stringをintへ\n\t\t\t}\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tif(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す\n\t\t\t}\n\n\t\t\tint max_line=(int) Math.pow(lines[max_lines_number],2);\n\t\t\tint other_lines=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tif(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);\n\t\t\t}\n\t\t\tif(max_line==other_lines){\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}",
"int n;",
"n",
"int[] lines=new int[3];",
"lines",
"new int[3]",
"3",
"int max_lines_number=0;",
"max_lines_number",
"0",
"BufferedReader d=new BufferedReader(new InputStreamReader(System.in));",
"d",
"new BufferedReader(new InputStreamReader(System.in))",
"n=Integer.valueOf(d.readLine())",
"n",
"Integer.valueOf(d.readLine())",
"Integer.valueOf",
"Integer",
"d.readLine()",
"d.readLine",
"d",
"for(int i=0;i<n;i++){//その回数繰り返す\n\n\t\t\tString array[] =d.readLine().split(\" \"); //空白区切りなので\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tlines[j]=Integer.valueOf(array[j]);//Stringをintへ\n\t\t\t}\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tif(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す\n\t\t\t}\n\n\t\t\tint max_line=(int) Math.pow(lines[max_lines_number],2);\n\t\t\tint other_lines=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tif(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);\n\t\t\t}\n\t\t\tif(max_line==other_lines){\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\n\t\t\tString array[] =d.readLine().split(\" \"); //空白区切りなので\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tlines[j]=Integer.valueOf(array[j]);//Stringをintへ\n\t\t\t}\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tif(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す\n\t\t\t}\n\n\t\t\tint max_line=(int) Math.pow(lines[max_lines_number],2);\n\t\t\tint other_lines=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tif(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);\n\t\t\t}\n\t\t\tif(max_line==other_lines){\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 array[] =d.readLine().split(\" \"); //空白区切りなので\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tlines[j]=Integer.valueOf(array[j]);//Stringをintへ\n\t\t\t}\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tif(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す\n\t\t\t}\n\n\t\t\tint max_line=(int) Math.pow(lines[max_lines_number],2);\n\t\t\tint other_lines=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tif(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);\n\t\t\t}\n\t\t\tif(max_line==other_lines){\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 array[] =d.readLine().split(\" \");",
"array",
"d.readLine().split(\" \")",
"d.readLine().split",
"d.readLine()",
"d.readLine",
"d",
"\" \"",
"for(int j =0;j<3;j++){\n\t\t\t\tlines[j]=Integer.valueOf(array[j]);//Stringをintへ\n\t\t\t}",
"int j =0;",
"int j =0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tlines[j]=Integer.valueOf(array[j]);//Stringをintへ\n\t\t\t}",
"{\n\t\t\t\tlines[j]=Integer.valueOf(array[j]);//Stringをintへ\n\t\t\t}",
"lines[j]=Integer.valueOf(array[j])",
"lines[j]",
"lines",
"j",
"Integer.valueOf(array[j])",
"Integer.valueOf",
"Integer",
"array[j]",
"array",
"j",
"for(int j =0;j<3;j++){\n\t\t\t\tif(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す\n\t\t\t}",
"int j =0;",
"int j =0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す\n\t\t\t}",
"{\n\t\t\t\tif(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す\n\t\t\t}",
"if(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す",
"lines[j]>=lines[max_lines_number]",
"lines[j]",
"lines",
"j",
"lines[max_lines_number]",
"lines",
"max_lines_number",
"max_lines_number=j",
"max_lines_number",
"j",
"int max_line=(int) Math.pow(lines[max_lines_number],2);",
"max_line",
"(int) Math.pow(lines[max_lines_number],2)",
"Math.pow",
"Math",
"lines[max_lines_number]",
"lines",
"max_lines_number",
"2",
"int other_lines=0;",
"other_lines",
"0",
"for(int j=0;j<3;j++){\n\t\t\t\tif(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);\n\t\t\t}",
"{\n\t\t\t\tif(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);\n\t\t\t}",
"if(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);",
"j!=max_lines_number",
"j",
"max_lines_number",
"other_lines+=Math.pow(lines[j],2)",
"other_lines",
"Math.pow(lines[j],2)",
"Math.pow",
"Math",
"lines[j]",
"lines",
"j",
"2",
"if(max_line==other_lines){\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}",
"max_line==other_lines",
"max_line",
"other_lines",
"{\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 NumberFormatException, IOException{\n\t\tint n;\n\t\tint[] lines=new int[3];\n\t\tint max_lines_number=0;\n\t\tBufferedReader d=new BufferedReader(new InputStreamReader(System.in));\n\n\t\tn=Integer.valueOf(d.readLine());//なんこの三角形を対象とするか読み取り\n\n\t\tfor(int i=0;i<n;i++){//その回数繰り返す\n\n\t\t\tString array[] =d.readLine().split(\" \"); //空白区切りなので\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tlines[j]=Integer.valueOf(array[j]);//Stringをintへ\n\t\t\t}\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tif(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す\n\t\t\t}\n\n\t\t\tint max_line=(int) Math.pow(lines[max_lines_number],2);\n\t\t\tint other_lines=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tif(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);\n\t\t\t}\n\t\t\tif(max_line==other_lines){\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}",
"public class Main{\n\tpublic static void main(String[] args) throws NumberFormatException, IOException{\n\t\tint n;\n\t\tint[] lines=new int[3];\n\t\tint max_lines_number=0;\n\t\tBufferedReader d=new BufferedReader(new InputStreamReader(System.in));\n\n\t\tn=Integer.valueOf(d.readLine());//なんこの三角形を対象とするか読み取り\n\n\t\tfor(int i=0;i<n;i++){//その回数繰り返す\n\n\t\t\tString array[] =d.readLine().split(\" \"); //空白区切りなので\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tlines[j]=Integer.valueOf(array[j]);//Stringをintへ\n\t\t\t}\n\n\t\t\tfor(int j =0;j<3;j++){\n\t\t\t\tif(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す\n\t\t\t}\n\n\t\t\tint max_line=(int) Math.pow(lines[max_lines_number],2);\n\t\t\tint other_lines=0;\n\t\t\tfor(int j=0;j<3;j++){\n\t\t\t\tif(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);\n\t\t\t}\n\t\t\tif(max_line==other_lines){\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}",
"Main"
] | import java.util.*;
import java.io.*;
public class Main{
public static void main(String[] args) throws NumberFormatException, IOException{
int n;
int[] lines=new int[3];
int max_lines_number=0;
BufferedReader d=new BufferedReader(new InputStreamReader(System.in));
n=Integer.valueOf(d.readLine());//なんこの三角形を対象とするか読み取り
for(int i=0;i<n;i++){//その回数繰り返す
String array[] =d.readLine().split(" "); //空白区切りなので
for(int j =0;j<3;j++){
lines[j]=Integer.valueOf(array[j]);//Stringをintへ
}
for(int j =0;j<3;j++){
if(lines[j]>=lines[max_lines_number])max_lines_number=j;//一番大きい辺の長さが入ってる配列の添字を探す
}
int max_line=(int) Math.pow(lines[max_lines_number],2);
int other_lines=0;
for(int j=0;j<3;j++){
if(j!=max_lines_number)other_lines+=Math.pow(lines[j],2);
}
if(max_line==other_lines){
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,
41,
13,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
42,
2,
13,
17,
30,
41,
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,
41,
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,
0,
13,
17,
4,
18,
18,
13,
13,
13,
0,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
14,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
38,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
50,
52
],
[
38,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
38,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
38,
69
],
[
69,
70
],
[
69,
71
],
[
38,
72
],
[
72,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
74,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
74,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
72,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
38,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
38,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
121,
122
],
[
12,
123
],
[
123,
124
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ????§???¢??????????????°\n\t\tint x;\n\t\tint y;\n\t\tint z;\n\n\t\t// ????????\\??????????????????????????§2????????????????????????\n\t\tString line = br.readLine();\n\t\tline = br.readLine();\n\t\twhile (line != null) {\n\t\t\tString strArray[] = line.split(\" \");\n\t\t\tx = Integer.valueOf(strArray[0]);\n\t\t\ty = Integer.valueOf(strArray[1]);\n\t\t\tz = Integer.valueOf(strArray[2]);\n\n\t\t\t// ?????????????????????????????´????????°????????´?§?????§???¢?????????\n\t\t\tString Anser = \"NO\";\n\t\t\tif (x * x == (y * y + z * z)\n\t\t\t\t\t|| (y * y == (x * x + z * z))\n\t\t\t\t\t|| (z * z == (y * y + x * x))) {\n\t\t\t\tAnser = \"YES\";\n\t\t\t}\n\t\t\tSystem.out.println(Anser);\n\t\t\tline = br.readLine();\n\t\t}\n\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main{\n public static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ????§???¢??????????????°\n\t\tint x;\n\t\tint y;\n\t\tint z;\n\n\t\t// ????????\\??????????????????????????§2????????????????????????\n\t\tString line = br.readLine();\n\t\tline = br.readLine();\n\t\twhile (line != null) {\n\t\t\tString strArray[] = line.split(\" \");\n\t\t\tx = Integer.valueOf(strArray[0]);\n\t\t\ty = Integer.valueOf(strArray[1]);\n\t\t\tz = Integer.valueOf(strArray[2]);\n\n\t\t\t// ?????????????????????????????´????????°????????´?§?????§???¢?????????\n\t\t\tString Anser = \"NO\";\n\t\t\tif (x * x == (y * y + z * z)\n\t\t\t\t\t|| (y * y == (x * x + z * z))\n\t\t\t\t\t|| (z * z == (y * y + x * x))) {\n\t\t\t\tAnser = \"YES\";\n\t\t\t}\n\t\t\tSystem.out.println(Anser);\n\t\t\tline = br.readLine();\n\t\t}\n\n }\n}",
"Main",
"public static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ????§???¢??????????????°\n\t\tint x;\n\t\tint y;\n\t\tint z;\n\n\t\t// ????????\\??????????????????????????§2????????????????????????\n\t\tString line = br.readLine();\n\t\tline = br.readLine();\n\t\twhile (line != null) {\n\t\t\tString strArray[] = line.split(\" \");\n\t\t\tx = Integer.valueOf(strArray[0]);\n\t\t\ty = Integer.valueOf(strArray[1]);\n\t\t\tz = Integer.valueOf(strArray[2]);\n\n\t\t\t// ?????????????????????????????´????????°????????´?§?????§???¢?????????\n\t\t\tString Anser = \"NO\";\n\t\t\tif (x * x == (y * y + z * z)\n\t\t\t\t\t|| (y * y == (x * x + z * z))\n\t\t\t\t\t|| (z * z == (y * y + x * x))) {\n\t\t\t\tAnser = \"YES\";\n\t\t\t}\n\t\t\tSystem.out.println(Anser);\n\t\t\tline = br.readLine();\n\t\t}\n\n }",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ????§???¢??????????????°\n\t\tint x;\n\t\tint y;\n\t\tint z;\n\n\t\t// ????????\\??????????????????????????§2????????????????????????\n\t\tString line = br.readLine();\n\t\tline = br.readLine();\n\t\twhile (line != null) {\n\t\t\tString strArray[] = line.split(\" \");\n\t\t\tx = Integer.valueOf(strArray[0]);\n\t\t\ty = Integer.valueOf(strArray[1]);\n\t\t\tz = Integer.valueOf(strArray[2]);\n\n\t\t\t// ?????????????????????????????´????????°????????´?§?????§???¢?????????\n\t\t\tString Anser = \"NO\";\n\t\t\tif (x * x == (y * y + z * z)\n\t\t\t\t\t|| (y * y == (x * x + z * z))\n\t\t\t\t\t|| (z * z == (y * y + x * x))) {\n\t\t\t\tAnser = \"YES\";\n\t\t\t}\n\t\t\tSystem.out.println(Anser);\n\t\t\tline = br.readLine();\n\t\t}\n\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int x;",
"x",
"int y;",
"y",
"int z;",
"z",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"while (line != null) {\n\t\t\tString strArray[] = line.split(\" \");\n\t\t\tx = Integer.valueOf(strArray[0]);\n\t\t\ty = Integer.valueOf(strArray[1]);\n\t\t\tz = Integer.valueOf(strArray[2]);\n\n\t\t\t// ?????????????????????????????´????????°????????´?§?????§???¢?????????\n\t\t\tString Anser = \"NO\";\n\t\t\tif (x * x == (y * y + z * z)\n\t\t\t\t\t|| (y * y == (x * x + z * z))\n\t\t\t\t\t|| (z * z == (y * y + x * x))) {\n\t\t\t\tAnser = \"YES\";\n\t\t\t}\n\t\t\tSystem.out.println(Anser);\n\t\t\tline = br.readLine();\n\t\t}",
"line != null",
"line",
"null",
"{\n\t\t\tString strArray[] = line.split(\" \");\n\t\t\tx = Integer.valueOf(strArray[0]);\n\t\t\ty = Integer.valueOf(strArray[1]);\n\t\t\tz = Integer.valueOf(strArray[2]);\n\n\t\t\t// ?????????????????????????????´????????°????????´?§?????§???¢?????????\n\t\t\tString Anser = \"NO\";\n\t\t\tif (x * x == (y * y + z * z)\n\t\t\t\t\t|| (y * y == (x * x + z * z))\n\t\t\t\t\t|| (z * z == (y * y + x * x))) {\n\t\t\t\tAnser = \"YES\";\n\t\t\t}\n\t\t\tSystem.out.println(Anser);\n\t\t\tline = br.readLine();\n\t\t}",
"String strArray[] = line.split(\" \");",
"strArray",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"x = Integer.valueOf(strArray[0])",
"x",
"Integer.valueOf(strArray[0])",
"Integer.valueOf",
"Integer",
"strArray[0]",
"strArray",
"0",
"y = Integer.valueOf(strArray[1])",
"y",
"Integer.valueOf(strArray[1])",
"Integer.valueOf",
"Integer",
"strArray[1]",
"strArray",
"1",
"z = Integer.valueOf(strArray[2])",
"z",
"Integer.valueOf(strArray[2])",
"Integer.valueOf",
"Integer",
"strArray[2]",
"strArray",
"2",
"String Anser = \"NO\";",
"Anser",
"\"NO\"",
"if (x * x == (y * y + z * z)\n\t\t\t\t\t|| (y * y == (x * x + z * z))\n\t\t\t\t\t|| (z * z == (y * y + x * x))) {\n\t\t\t\tAnser = \"YES\";\n\t\t\t}",
"x * x == (y * y + z * z)\n\t\t\t\t\t|| (y * y == (x * x + z * z))\n\t\t\t\t\t|| (z * z == (y * y + x * x))",
"x * x == (y * y + z * z)\n\t\t\t\t\t|| (y * y == (x * x + z * z))\n\t\t\t\t\t|| (z * z == (y * y + x * x))",
"x * x == (y * y + z * z)",
"x * x",
"x",
"x",
"(y * y + z * z)",
"y * y",
"y",
"y",
"z * z",
"z",
"z",
"(y * y == (x * x + z * z))",
"y * y",
"y",
"y",
"(x * x + z * z)",
"x * x",
"x",
"x",
"z * z",
"z",
"z",
"(z * z == (y * y + x * x))",
"z * z",
"z",
"z",
"(y * y + x * x)",
"y * y",
"y",
"y",
"x * x",
"x",
"x",
"{\n\t\t\t\tAnser = \"YES\";\n\t\t\t}",
"Anser = \"YES\"",
"Anser",
"\"YES\"",
"System.out.println(Anser)",
"System.out.println",
"System.out",
"System",
"System.out",
"Anser",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"String[] a",
"a"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String[] a) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// ????§???¢??????????????°
int x;
int y;
int z;
// ????????\??????????????????????????§2????????????????????????
String line = br.readLine();
line = br.readLine();
while (line != null) {
String strArray[] = line.split(" ");
x = Integer.valueOf(strArray[0]);
y = Integer.valueOf(strArray[1]);
z = Integer.valueOf(strArray[2]);
// ?????????????????????????????´????????°????????´?§?????§???¢?????????
String Anser = "NO";
if (x * x == (y * y + z * z)
|| (y * y == (x * x + z * z))
|| (z * z == (y * y + x * x))) {
Anser = "YES";
}
System.out.println(Anser);
line = br.readLine();
}
}
} |
[
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,
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,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
12,
13,
30,
4,
18,
20,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
49,
51
],
[
40,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
60,
62
],
[
40,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
71,
73
],
[
38,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
38,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
4,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
86,
92
],
[
92,
93
]
] | [
"import java.util.Scanner;\n\nclass Main {\n private void rightTriangle() {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while (n-- != 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a * a + b * b == c * c ||\n b * b + c * c == a * a ||\n c * c + a * a == b * b )\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n }\n\n public static void main(String[] args) {\n (new Main()).rightTriangle();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n private void rightTriangle() {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while (n-- != 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a * a + b * b == c * c ||\n b * b + c * c == a * a ||\n c * c + a * a == b * b )\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n }\n\n public static void main(String[] args) {\n (new Main()).rightTriangle();\n }\n}",
"Main",
"private void rightTriangle() {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while (n-- != 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a * a + b * b == c * c ||\n b * b + c * c == a * a ||\n c * c + a * a == b * b )\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n }",
"rightTriangle",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while (n-- != 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a * a + b * b == c * c ||\n b * b + c * c == a * a ||\n c * c + a * a == b * b )\n System.out.println(\"YES\");\n else\n 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",
"while (n-- != 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a * a + b * b == c * c ||\n b * b + c * c == a * a ||\n c * c + a * a == b * b )\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }",
"n-- != 0",
"n--",
"n",
"0",
"{\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a * a + b * b == c * c ||\n b * b + c * c == a * a ||\n c * c + a * a == b * b )\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\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",
"if (a * a + b * b == c * c ||\n b * b + c * c == a * a ||\n c * c + a * a == b * b )\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");",
"a * a + b * b == c * c ||\n b * b + c * c == a * a ||\n c * c + a * a == b * b",
"a * a + b * b == c * c ||\n b * b + c * c == a * a ||\n 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",
"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 (new Main()).rightTriangle();\n }",
"main",
"{\n (new Main()).rightTriangle();\n }",
"(new Main()).rightTriangle()",
"(new Main()).rightTriangle",
"(new Main())",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
private void rightTriangle() {
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 * 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");
}
}
public static void main(String[] args) {
(new Main()).rightTriangle();
}
} |
[
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,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
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,
18,
13,
13,
17,
30,
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
],
[
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
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
8,
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
46,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
60,
69
],
[
46,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
72,
81
],
[
46,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
84,
93
],
[
46,
94
],
[
94,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
96,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
94,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
94,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
6,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
] | [
"import java.io.*;\n\npublic class Main {\n\tpublic static void main(String args[]) throws IOException{\n\t\tString str;\n\t\tString[] dataSet;\n\t\tint dataSet_Number;\n\t\tdouble a,b,c,i;\n\t\tBufferedReader input =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tdataSet_Number = Integer.parseInt(input.readLine());\n\t\t\n\t\tfor(i = 0; i < dataSet_Number; i++){\n\t\t\tstr = input.readLine();\n\t\t\tdataSet = str.split(\" \");\n\t\t\ta = Math.pow(Double.parseDouble(dataSet[0]),2);\n\t\t\tb = Math.pow(Double.parseDouble(dataSet[1]),2);\n\t\t\tc = Math.pow(Double.parseDouble(dataSet[2]),2);\n\t\t\t\n\t\t\tif((a + b) == c || (b + c) == a || (a + c) == 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.io.*;",
"io.*",
"java",
"public class Main {\n\tpublic static void main(String args[]) throws IOException{\n\t\tString str;\n\t\tString[] dataSet;\n\t\tint dataSet_Number;\n\t\tdouble a,b,c,i;\n\t\tBufferedReader input =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tdataSet_Number = Integer.parseInt(input.readLine());\n\t\t\n\t\tfor(i = 0; i < dataSet_Number; i++){\n\t\t\tstr = input.readLine();\n\t\t\tdataSet = str.split(\" \");\n\t\t\ta = Math.pow(Double.parseDouble(dataSet[0]),2);\n\t\t\tb = Math.pow(Double.parseDouble(dataSet[1]),2);\n\t\t\tc = Math.pow(Double.parseDouble(dataSet[2]),2);\n\t\t\t\n\t\t\tif((a + b) == c || (b + c) == a || (a + c) == 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",
"public static void main(String args[]) throws IOException{\n\t\tString str;\n\t\tString[] dataSet;\n\t\tint dataSet_Number;\n\t\tdouble a,b,c,i;\n\t\tBufferedReader input =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tdataSet_Number = Integer.parseInt(input.readLine());\n\t\t\n\t\tfor(i = 0; i < dataSet_Number; i++){\n\t\t\tstr = input.readLine();\n\t\t\tdataSet = str.split(\" \");\n\t\t\ta = Math.pow(Double.parseDouble(dataSet[0]),2);\n\t\t\tb = Math.pow(Double.parseDouble(dataSet[1]),2);\n\t\t\tc = Math.pow(Double.parseDouble(dataSet[2]),2);\n\t\t\t\n\t\t\tif((a + b) == c || (b + c) == a || (a + c) == 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\tString str;\n\t\tString[] dataSet;\n\t\tint dataSet_Number;\n\t\tdouble a,b,c,i;\n\t\tBufferedReader input =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tdataSet_Number = Integer.parseInt(input.readLine());\n\t\t\n\t\tfor(i = 0; i < dataSet_Number; i++){\n\t\t\tstr = input.readLine();\n\t\t\tdataSet = str.split(\" \");\n\t\t\ta = Math.pow(Double.parseDouble(dataSet[0]),2);\n\t\t\tb = Math.pow(Double.parseDouble(dataSet[1]),2);\n\t\t\tc = Math.pow(Double.parseDouble(dataSet[2]),2);\n\t\t\t\n\t\t\tif((a + b) == c || (b + c) == a || (a + c) == 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}",
"String str;",
"str",
"String[] dataSet;",
"dataSet",
"int dataSet_Number;",
"dataSet_Number",
"double a",
"a",
"b",
"b",
"c",
"c",
"i;",
"i",
"BufferedReader input =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"dataSet_Number = Integer.parseInt(input.readLine())",
"dataSet_Number",
"Integer.parseInt(input.readLine())",
"Integer.parseInt",
"Integer",
"input.readLine()",
"input.readLine",
"input",
"for(i = 0; i < dataSet_Number; i++){\n\t\t\tstr = input.readLine();\n\t\t\tdataSet = str.split(\" \");\n\t\t\ta = Math.pow(Double.parseDouble(dataSet[0]),2);\n\t\t\tb = Math.pow(Double.parseDouble(dataSet[1]),2);\n\t\t\tc = Math.pow(Double.parseDouble(dataSet[2]),2);\n\t\t\t\n\t\t\tif((a + b) == c || (b + c) == a || (a + c) == 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}",
"i = 0;",
"i = 0",
"i",
"0",
"i < dataSet_Number",
"i",
"dataSet_Number",
"i++",
"i++",
"i",
"{\n\t\t\tstr = input.readLine();\n\t\t\tdataSet = str.split(\" \");\n\t\t\ta = Math.pow(Double.parseDouble(dataSet[0]),2);\n\t\t\tb = Math.pow(Double.parseDouble(dataSet[1]),2);\n\t\t\tc = Math.pow(Double.parseDouble(dataSet[2]),2);\n\t\t\t\n\t\t\tif((a + b) == c || (b + c) == a || (a + c) == 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\tstr = input.readLine();\n\t\t\tdataSet = str.split(\" \");\n\t\t\ta = Math.pow(Double.parseDouble(dataSet[0]),2);\n\t\t\tb = Math.pow(Double.parseDouble(dataSet[1]),2);\n\t\t\tc = Math.pow(Double.parseDouble(dataSet[2]),2);\n\t\t\t\n\t\t\tif((a + b) == c || (b + c) == a || (a + c) == 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}",
"str = input.readLine()",
"str",
"input.readLine()",
"input.readLine",
"input",
"dataSet = str.split(\" \")",
"dataSet",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"a = Math.pow(Double.parseDouble(dataSet[0]),2)",
"a",
"Math.pow(Double.parseDouble(dataSet[0]),2)",
"Math.pow",
"Math",
"Double.parseDouble(dataSet[0])",
"Double.parseDouble",
"Double",
"dataSet[0]",
"dataSet",
"0",
"2",
"b = Math.pow(Double.parseDouble(dataSet[1]),2)",
"b",
"Math.pow(Double.parseDouble(dataSet[1]),2)",
"Math.pow",
"Math",
"Double.parseDouble(dataSet[1])",
"Double.parseDouble",
"Double",
"dataSet[1]",
"dataSet",
"1",
"2",
"c = Math.pow(Double.parseDouble(dataSet[2]),2)",
"c",
"Math.pow(Double.parseDouble(dataSet[2]),2)",
"Math.pow",
"Math",
"Double.parseDouble(dataSet[2])",
"Double.parseDouble",
"Double",
"dataSet[2]",
"dataSet",
"2",
"2",
"if((a + b) == c || (b + c) == a || (a + c) == 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 + b) == c || (b + c) == a || (a + c) == b",
"(a + b) == c || (b + c) == a || (a + c) == b",
"(a + b) == c",
"(a + b)",
"a",
"b",
"c",
"(b + c) == a",
"(b + c)",
"b",
"c",
"a",
"(a + c) == b",
"(a + c)",
"a",
"c",
"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\tpublic static void main(String args[]) throws IOException{\n\t\tString str;\n\t\tString[] dataSet;\n\t\tint dataSet_Number;\n\t\tdouble a,b,c,i;\n\t\tBufferedReader input =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tdataSet_Number = Integer.parseInt(input.readLine());\n\t\t\n\t\tfor(i = 0; i < dataSet_Number; i++){\n\t\t\tstr = input.readLine();\n\t\t\tdataSet = str.split(\" \");\n\t\t\ta = Math.pow(Double.parseDouble(dataSet[0]),2);\n\t\t\tb = Math.pow(Double.parseDouble(dataSet[1]),2);\n\t\t\tc = Math.pow(Double.parseDouble(dataSet[2]),2);\n\t\t\t\n\t\t\tif((a + b) == c || (b + c) == a || (a + c) == 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\tpublic static void main(String args[]) throws IOException{\n\t\tString str;\n\t\tString[] dataSet;\n\t\tint dataSet_Number;\n\t\tdouble a,b,c,i;\n\t\tBufferedReader input =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tdataSet_Number = Integer.parseInt(input.readLine());\n\t\t\n\t\tfor(i = 0; i < dataSet_Number; i++){\n\t\t\tstr = input.readLine();\n\t\t\tdataSet = str.split(\" \");\n\t\t\ta = Math.pow(Double.parseDouble(dataSet[0]),2);\n\t\t\tb = Math.pow(Double.parseDouble(dataSet[1]),2);\n\t\t\tc = Math.pow(Double.parseDouble(dataSet[2]),2);\n\t\t\t\n\t\t\tif((a + b) == c || (b + c) == a || (a + c) == 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.io.*;
public class Main {
public static void main(String args[]) throws IOException{
String str;
String[] dataSet;
int dataSet_Number;
double a,b,c,i;
BufferedReader input =
new BufferedReader(new InputStreamReader(System.in));
dataSet_Number = Integer.parseInt(input.readLine());
for(i = 0; i < dataSet_Number; i++){
str = input.readLine();
dataSet = str.split(" ");
a = Math.pow(Double.parseDouble(dataSet[0]),2);
b = Math.pow(Double.parseDouble(dataSet[1]),2);
c = Math.pow(Double.parseDouble(dataSet[2]),2);
if((a + b) == c || (b + c) == a || (a + c) == 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,
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,
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,
0,
13,
2,
18,
13,
17,
18,
13,
17,
17,
17,
30,
4,
18,
13,
13,
14,
2,
2,
2,
13,
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
],
[
163,
14
],
[
163,
15
],
[
15,
16
],
[
15,
17
],
[
163,
18
],
[
18,
19
],
[
18,
20
],
[
163,
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
],
[
23,
43
],
[
43,
44
],
[
43,
45
],
[
23,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
46,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
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
],
[
80,
81
],
[
55,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
55,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
88,
98
],
[
87,
99
],
[
86,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
86,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
107,
113
],
[
106,
114
],
[
105,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
116,
119
],
[
105,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
126,
127
],
[
126,
128
],
[
123,
129
],
[
122,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
133,
134
],
[
133,
135
],
[
130,
136
],
[
121,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
140,
141
],
[
140,
142
],
[
137,
143
],
[
120,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
120,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
23,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
21,
160
],
[
160,
161
],
[
0,
162
],
[
162,
163
],
[
162,
164
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\n\npublic class Main{\n\tprivate final static String NEGATIVE = \"NO\\n\";\n\tprivate final static String AFFIRMATIVE = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);\n\t\tint number = Integer.parseInt(br.readLine());//行数\n\t\tint sides[] = new int[3];\n\t\tint productAB;//辺abの積\n\t\tStringTokenizer tknz;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (((productAB = sides[0] * sides[1]) % 12) != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (productAB * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\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\tprivate final static String NEGATIVE = \"NO\\n\";\n\tprivate final static String AFFIRMATIVE = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);\n\t\tint number = Integer.parseInt(br.readLine());//行数\n\t\tint sides[] = new int[3];\n\t\tint productAB;//辺abの積\n\t\tStringTokenizer tknz;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (((productAB = sides[0] * sides[1]) % 12) != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (productAB * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n}",
"Main",
"private final static String NEGATIVE = \"NO\\n\";",
"NEGATIVE",
"\"NO\\n\"",
"private final static String AFFIRMATIVE = \"YES\\n\";",
"AFFIRMATIVE",
"\"YES\\n\"",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);\n\t\tint number = Integer.parseInt(br.readLine());//行数\n\t\tint sides[] = new int[3];\n\t\tint productAB;//辺abの積\n\t\tStringTokenizer tknz;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (((productAB = sides[0] * sides[1]) % 12) != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (productAB * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);\n\t\tint number = Integer.parseInt(br.readLine());//行数\n\t\tint sides[] = new int[3];\n\t\tint productAB;//辺abの積\n\t\tStringTokenizer tknz;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (((productAB = sides[0] * sides[1]) % 12) != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (productAB * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);",
"br",
"new BufferedReader(new InputStreamReader(System.in), 512)",
"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",
"int productAB;",
"productAB",
"StringTokenizer tknz;",
"tknz",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"for (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (((productAB = sides[0] * sides[1]) % 12) != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (productAB * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}",
";",
"0 < number",
"0",
"number",
"number--",
"number--",
"number",
"{\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (((productAB = sides[0] * sides[1]) % 12) != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (productAB * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}",
"{\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (((productAB = sides[0] * sides[1]) % 12) != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (productAB * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}",
"tknz = new StringTokenizer(br.readLine())",
"tknz",
"new StringTokenizer(br.readLine())",
"for (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}",
"{\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}",
"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 (((productAB = sides[0] * sides[1]) % 12) != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (productAB * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}",
"((productAB = sides[0] * sides[1]) % 12) != 0",
"((productAB = sides[0] * sides[1]) % 12)",
"(productAB = sides[0] * sides[1])",
"productAB",
"sides[0] * sides[1]",
"sides[0]",
"sides",
"0",
"sides[1]",
"sides",
"1",
"12",
"0",
"{\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t}",
"builder.append(NEGATIVE)",
"builder.append",
"builder",
"NEGATIVE",
"if (productAB * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}",
"productAB * sides[2] % 60 != 0",
"productAB * sides[2] % 60",
"productAB * sides[2]",
"productAB",
"sides[2]",
"sides",
"2",
"60",
"0",
"{\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t}",
"builder.append(NEGATIVE)",
"builder.append",
"builder",
"NEGATIVE",
"if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}",
"Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.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.pow(sides[2], 2)",
"Math.pow",
"Math",
"sides[2]",
"sides",
"2",
"2",
"{\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t}",
"builder.append(NEGATIVE)",
"builder.append",
"builder",
"NEGATIVE",
"{\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}",
"builder.append(AFFIRMATIVE)",
"builder.append",
"builder",
"AFFIRMATIVE",
"System.out.print(builder)",
"System.out.print",
"System.out",
"System",
"System.out",
"builder",
"String[] args",
"args",
"public class Main{\n\tprivate final static String NEGATIVE = \"NO\\n\";\n\tprivate final static String AFFIRMATIVE = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);\n\t\tint number = Integer.parseInt(br.readLine());//行数\n\t\tint sides[] = new int[3];\n\t\tint productAB;//辺abの積\n\t\tStringTokenizer tknz;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (((productAB = sides[0] * sides[1]) % 12) != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (productAB * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n}",
"public class Main{\n\tprivate final static String NEGATIVE = \"NO\\n\";\n\tprivate final static String AFFIRMATIVE = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);\n\t\tint number = Integer.parseInt(br.readLine());//行数\n\t\tint sides[] = new int[3];\n\t\tint productAB;//辺abの積\n\t\tStringTokenizer tknz;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (((productAB = sides[0] * sides[1]) % 12) != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (productAB * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\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 NEGATIVE = "NO\n";
private final static String AFFIRMATIVE = "YES\n";
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);
int number = Integer.parseInt(br.readLine());//行数
int sides[] = new int[3];
int productAB;//辺abの積
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 (((productAB = sides[0] * sides[1]) % 12) != 0) {
builder.append(NEGATIVE);
} else if (productAB * sides[2] % 60 != 0) {
builder.append(NEGATIVE);
} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {
builder.append(NEGATIVE);
} else {
builder.append(AFFIRMATIVE);
}
}
System.out.print(builder);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
42,
17,
30,
14,
2,
13,
17,
30,
3,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
13,
13,
30,
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,
2,
13,
13,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
0,
13,
2,
13,
17,
14,
2,
13,
13,
30,
3,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
127,
5
],
[
127,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
30,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
30,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
30,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
30,
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
],
[
30,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
70,
77
],
[
77,
78
],
[
77,
79
],
[
30,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
30,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
30,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
30,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
95,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
30,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
30,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
6,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tint N = stdIn.nextInt();\n\t\tint count = 0;\n\t\tint box;\n\t\twhile (true) {\n\t\t\tif(N<=0){\n\t\t\tbreak;\n\t\t\t}\n\t\t\ta = stdIn.nextInt();\n\t\t\tb = stdIn.nextInt();\n\t\t\tc = stdIn.nextInt();\n\t\t\tif (a < b) {\n\t\t\t\tbox = a;\n\t\t\t\ta = b;\n\t\t\t\tb = box;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tbox = a;\n\t\t\t\ta = c;\n\t\t\t\tc = box;\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\tif (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\tcount=count+1;\n\t\t\tif (count == N){\n\t\t\t\tbreak;\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 stdIn = new Scanner(System.in);\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tint N = stdIn.nextInt();\n\t\tint count = 0;\n\t\tint box;\n\t\twhile (true) {\n\t\t\tif(N<=0){\n\t\t\tbreak;\n\t\t\t}\n\t\t\ta = stdIn.nextInt();\n\t\t\tb = stdIn.nextInt();\n\t\t\tc = stdIn.nextInt();\n\t\t\tif (a < b) {\n\t\t\t\tbox = a;\n\t\t\t\ta = b;\n\t\t\t\tb = box;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tbox = a;\n\t\t\t\ta = c;\n\t\t\t\tc = box;\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\tif (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\tcount=count+1;\n\t\t\tif (count == N){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tint N = stdIn.nextInt();\n\t\tint count = 0;\n\t\tint box;\n\t\twhile (true) {\n\t\t\tif(N<=0){\n\t\t\tbreak;\n\t\t\t}\n\t\t\ta = stdIn.nextInt();\n\t\t\tb = stdIn.nextInt();\n\t\t\tc = stdIn.nextInt();\n\t\t\tif (a < b) {\n\t\t\t\tbox = a;\n\t\t\t\ta = b;\n\t\t\t\tb = box;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tbox = a;\n\t\t\t\ta = c;\n\t\t\t\tc = box;\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\tif (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\tcount=count+1;\n\t\t\tif (count == N){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tint N = stdIn.nextInt();\n\t\tint count = 0;\n\t\tint box;\n\t\twhile (true) {\n\t\t\tif(N<=0){\n\t\t\tbreak;\n\t\t\t}\n\t\t\ta = stdIn.nextInt();\n\t\t\tb = stdIn.nextInt();\n\t\t\tc = stdIn.nextInt();\n\t\t\tif (a < b) {\n\t\t\t\tbox = a;\n\t\t\t\ta = b;\n\t\t\t\tb = box;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tbox = a;\n\t\t\t\ta = c;\n\t\t\t\tc = box;\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\tif (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\tcount=count+1;\n\t\t\tif (count == N){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int a;",
"a",
"int b;",
"b",
"int c;",
"c",
"int N = stdIn.nextInt();",
"N",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int count = 0;",
"count",
"0",
"int box;",
"box",
"while (true) {\n\t\t\tif(N<=0){\n\t\t\tbreak;\n\t\t\t}\n\t\t\ta = stdIn.nextInt();\n\t\t\tb = stdIn.nextInt();\n\t\t\tc = stdIn.nextInt();\n\t\t\tif (a < b) {\n\t\t\t\tbox = a;\n\t\t\t\ta = b;\n\t\t\t\tb = box;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tbox = a;\n\t\t\t\ta = c;\n\t\t\t\tc = box;\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\tif (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\tcount=count+1;\n\t\t\tif (count == N){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"true",
"{\n\t\t\tif(N<=0){\n\t\t\tbreak;\n\t\t\t}\n\t\t\ta = stdIn.nextInt();\n\t\t\tb = stdIn.nextInt();\n\t\t\tc = stdIn.nextInt();\n\t\t\tif (a < b) {\n\t\t\t\tbox = a;\n\t\t\t\ta = b;\n\t\t\t\tb = box;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tbox = a;\n\t\t\t\ta = c;\n\t\t\t\tc = box;\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\tif (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\tcount=count+1;\n\t\t\tif (count == N){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"if(N<=0){\n\t\t\tbreak;\n\t\t\t}",
"N<=0",
"N",
"0",
"{\n\t\t\tbreak;\n\t\t\t}",
"break;",
"a = stdIn.nextInt()",
"a",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"b = stdIn.nextInt()",
"b",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"c = stdIn.nextInt()",
"c",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"if (a < b) {\n\t\t\t\tbox = a;\n\t\t\t\ta = b;\n\t\t\t\tb = box;\n\t\t\t}",
"a < b",
"a",
"b",
"{\n\t\t\t\tbox = a;\n\t\t\t\ta = b;\n\t\t\t\tb = box;\n\t\t\t}",
"box = a",
"box",
"a",
"a = b",
"a",
"b",
"b = box",
"b",
"box",
"if (a < c) {\n\t\t\t\tbox = a;\n\t\t\t\ta = c;\n\t\t\t\tc = box;\n\t\t\t}",
"a < c",
"a",
"c",
"{\n\t\t\t\tbox = a;\n\t\t\t\ta = c;\n\t\t\t\tc = box;\n\t\t\t}",
"box = a",
"box",
"a",
"a = c",
"a",
"c",
"c = box",
"c",
"box",
"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\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");",
"a == b + c",
"a",
"b + c",
"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\"",
"count=count+1",
"count",
"count+1",
"count",
"1",
"if (count == N){\n\t\t\t\tbreak;\n\t\t\t}",
"count == N",
"count",
"N",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tint N = stdIn.nextInt();\n\t\tint count = 0;\n\t\tint box;\n\t\twhile (true) {\n\t\t\tif(N<=0){\n\t\t\tbreak;\n\t\t\t}\n\t\t\ta = stdIn.nextInt();\n\t\t\tb = stdIn.nextInt();\n\t\t\tc = stdIn.nextInt();\n\t\t\tif (a < b) {\n\t\t\t\tbox = a;\n\t\t\t\ta = b;\n\t\t\t\tb = box;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tbox = a;\n\t\t\t\ta = c;\n\t\t\t\tc = box;\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\tif (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\tcount=count+1;\n\t\t\tif (count == N){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tint N = stdIn.nextInt();\n\t\tint count = 0;\n\t\tint box;\n\t\twhile (true) {\n\t\t\tif(N<=0){\n\t\t\tbreak;\n\t\t\t}\n\t\t\ta = stdIn.nextInt();\n\t\t\tb = stdIn.nextInt();\n\t\t\tc = stdIn.nextInt();\n\t\t\tif (a < b) {\n\t\t\t\tbox = a;\n\t\t\t\ta = b;\n\t\t\t\tb = box;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tbox = a;\n\t\t\t\ta = c;\n\t\t\t\tc = box;\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\tif (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\tcount=count+1;\n\t\t\tif (count == N){\n\t\t\t\tbreak;\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 stdIn = new Scanner(System.in);
int a;
int b;
int c;
int N = stdIn.nextInt();
int count = 0;
int box;
while (true) {
if(N<=0){
break;
}
a = stdIn.nextInt();
b = stdIn.nextInt();
c = stdIn.nextInt();
if (a < b) {
box = a;
a = b;
b = box;
}
if (a < c) {
box = a;
a = c;
c = box;
}
a = a * a;
b = b * b;
c = c * c;
if (a == b + c)
System.out.println("YES");
else
System.out.println("NO");
count=count+1;
if (count == N){
break;
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
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,
41,
13,
4,
18,
13,
0,
18,
13,
13,
2,
13,
13,
4,
18,
13,
13,
0,
13,
8,
2,
2,
18,
13,
17,
18,
13,
17,
18,
13,
17,
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
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
24
],
[
24,
25
],
[
11,
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
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
38,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
38,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
79,
81
],
[
70,
82
],
[
70,
83
],
[
38,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
9,
90
],
[
90,
91
]
] | [
"import java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main{\n public static void main(String[] a){\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int[] inputs = new int[3];\n\n String result;\n for(int i = 0;i < n;i++) {\n for (int j = 0; j < 3; j++) {\n int m = s.nextInt();\n inputs[j] = m * m;\n }\n Arrays.sort(inputs);\n result = inputs[0] + inputs[1] == inputs[2] ? \"YES\" : \"NO\";\n\n System.out.println(result);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"class Main{\n public static void main(String[] a){\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int[] inputs = new int[3];\n\n String result;\n for(int i = 0;i < n;i++) {\n for (int j = 0; j < 3; j++) {\n int m = s.nextInt();\n inputs[j] = m * m;\n }\n Arrays.sort(inputs);\n result = inputs[0] + inputs[1] == inputs[2] ? \"YES\" : \"NO\";\n\n System.out.println(result);\n }\n }\n}",
"Main",
"public static void main(String[] a){\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int[] inputs = new int[3];\n\n String result;\n for(int i = 0;i < n;i++) {\n for (int j = 0; j < 3; j++) {\n int m = s.nextInt();\n inputs[j] = m * m;\n }\n Arrays.sort(inputs);\n result = inputs[0] + inputs[1] == inputs[2] ? \"YES\" : \"NO\";\n\n System.out.println(result);\n }\n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int[] inputs = new int[3];\n\n String result;\n for(int i = 0;i < n;i++) {\n for (int j = 0; j < 3; j++) {\n int m = s.nextInt();\n inputs[j] = m * m;\n }\n Arrays.sort(inputs);\n result = inputs[0] + inputs[1] == inputs[2] ? \"YES\" : \"NO\";\n\n System.out.println(result);\n }\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int n = s.nextInt();",
"n",
"s.nextInt()",
"s.nextInt",
"s",
"int[] inputs = new int[3];",
"inputs",
"new int[3]",
"3",
"String result;",
"result",
"for(int i = 0;i < n;i++) {\n for (int j = 0; j < 3; j++) {\n int m = s.nextInt();\n inputs[j] = m * m;\n }\n Arrays.sort(inputs);\n result = inputs[0] + inputs[1] == inputs[2] ? \"YES\" : \"NO\";\n\n System.out.println(result);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 3; j++) {\n int m = s.nextInt();\n inputs[j] = m * m;\n }\n Arrays.sort(inputs);\n result = inputs[0] + inputs[1] == inputs[2] ? \"YES\" : \"NO\";\n\n System.out.println(result);\n }",
"{\n for (int j = 0; j < 3; j++) {\n int m = s.nextInt();\n inputs[j] = m * m;\n }\n Arrays.sort(inputs);\n result = inputs[0] + inputs[1] == inputs[2] ? \"YES\" : \"NO\";\n\n System.out.println(result);\n }",
"for (int j = 0; j < 3; j++) {\n int m = s.nextInt();\n inputs[j] = m * m;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n int m = s.nextInt();\n inputs[j] = m * m;\n }",
"{\n int m = s.nextInt();\n inputs[j] = m * m;\n }",
"int m = s.nextInt();",
"m",
"s.nextInt()",
"s.nextInt",
"s",
"inputs[j] = m * m",
"inputs[j]",
"inputs",
"j",
"m * m",
"m",
"m",
"Arrays.sort(inputs)",
"Arrays.sort",
"Arrays",
"inputs",
"result = inputs[0] + inputs[1] == inputs[2] ? \"YES\" : \"NO\"",
"result",
"inputs[0] + inputs[1] == inputs[2] ? \"YES\" : \"NO\"",
"inputs[0] + inputs[1] == inputs[2]",
"inputs[0] + inputs[1]",
"inputs[0]",
"inputs",
"0",
"inputs[1]",
"inputs",
"1",
"inputs[2]",
"inputs",
"2",
"\"YES\"",
"\"NO\"",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] a",
"a"
] | import java.util.Scanner;
import java.util.Arrays;
class Main{
public static void main(String[] a){
Scanner s = new Scanner(System.in);
int n = s.nextInt();
int[] inputs = new int[3];
String result;
for(int i = 0;i < n;i++) {
for (int j = 0; j < 3; j++) {
int m = s.nextInt();
inputs[j] = m * m;
}
Arrays.sort(inputs);
result = inputs[0] + inputs[1] == inputs[2] ? "YES" : "NO";
System.out.println(result);
}
}
} |
[
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,
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,
17,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
29,
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
],
[
166,
11
],
[
166,
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
],
[
72,
73
],
[
72,
74
],
[
72,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
71,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
12,
91
],
[
91,
92
],
[
166,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
99,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
140,
142
],
[
121,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
154,
156
],
[
95,
157
],
[
157,
158
],
[
93,
159
],
[
159,
160
],
[
93,
161
],
[
161,
162
],
[
93,
163
],
[
163,
164
],
[
0,
165
],
[
165,
166
],
[
165,
167
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\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[] input = br.readLine().split(\" \");\n\t\t\tint side1 = Integer.parseInt(input[0]);\n\t\t\tint side2 = Integer.parseInt(input[1]);\n\t\t\tint side3 = Integer.parseInt(input[2]);\n\n\t\t\tif (isRightTriangle(side1, side2, side3)) {\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\n\t\tboolean isRightTriangle = false;\n\t\tif (side1 >= side2 && side1 >= side3) {\n\t\t\tisRightTriangle = (side1 * side1 == side2 * side2 + side3 * side3);\n\t\t} else if (side2 >= side1 && side2 >= side3) {\n\t\t\tisRightTriangle = (side2 * side2 == side1 * side1 + side3 * side3);\n\t\t} else {\n\t\t\tisRightTriangle = (side3 * side3 == side1 * side1 + side2 * side2);\n\t\t}\n\n\t\treturn isRightTriangle;\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\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[] input = br.readLine().split(\" \");\n\t\t\tint side1 = Integer.parseInt(input[0]);\n\t\t\tint side2 = Integer.parseInt(input[1]);\n\t\t\tint side3 = Integer.parseInt(input[2]);\n\n\t\t\tif (isRightTriangle(side1, side2, side3)) {\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\n\t\tboolean isRightTriangle = false;\n\t\tif (side1 >= side2 && side1 >= side3) {\n\t\t\tisRightTriangle = (side1 * side1 == side2 * side2 + side3 * side3);\n\t\t} else if (side2 >= side1 && side2 >= side3) {\n\t\t\tisRightTriangle = (side2 * side2 == side1 * side1 + side3 * side3);\n\t\t} else {\n\t\t\tisRightTriangle = (side3 * side3 == side1 * side1 + side2 * side2);\n\t\t}\n\n\t\treturn isRightTriangle;\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[] input = br.readLine().split(\" \");\n\t\t\tint side1 = Integer.parseInt(input[0]);\n\t\t\tint side2 = Integer.parseInt(input[1]);\n\t\t\tint side3 = Integer.parseInt(input[2]);\n\n\t\t\tif (isRightTriangle(side1, side2, side3)) {\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[] input = br.readLine().split(\" \");\n\t\t\tint side1 = Integer.parseInt(input[0]);\n\t\t\tint side2 = Integer.parseInt(input[1]);\n\t\t\tint side3 = Integer.parseInt(input[2]);\n\n\t\t\tif (isRightTriangle(side1, side2, side3)) {\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[] input = br.readLine().split(\" \");\n\t\t\tint side1 = Integer.parseInt(input[0]);\n\t\t\tint side2 = Integer.parseInt(input[1]);\n\t\t\tint side3 = Integer.parseInt(input[2]);\n\n\t\t\tif (isRightTriangle(side1, side2, side3)) {\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[] input = br.readLine().split(\" \");\n\t\t\tint side1 = Integer.parseInt(input[0]);\n\t\t\tint side2 = Integer.parseInt(input[1]);\n\t\t\tint side3 = Integer.parseInt(input[2]);\n\n\t\t\tif (isRightTriangle(side1, side2, side3)) {\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[] input = br.readLine().split(\" \");\n\t\t\tint side1 = Integer.parseInt(input[0]);\n\t\t\tint side2 = Integer.parseInt(input[1]);\n\t\t\tint side3 = Integer.parseInt(input[2]);\n\n\t\t\tif (isRightTriangle(side1, side2, side3)) {\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[] input = br.readLine().split(\" \");",
"input",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int side1 = Integer.parseInt(input[0]);",
"side1",
"Integer.parseInt(input[0])",
"Integer.parseInt",
"Integer",
"input[0]",
"input",
"0",
"int side2 = Integer.parseInt(input[1]);",
"side2",
"Integer.parseInt(input[1])",
"Integer.parseInt",
"Integer",
"input[1]",
"input",
"1",
"int side3 = Integer.parseInt(input[2]);",
"side3",
"Integer.parseInt(input[2])",
"Integer.parseInt",
"Integer",
"input[2]",
"input",
"2",
"if (isRightTriangle(side1, side2, side3)) {\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(side1, side2, side3)",
"isRightTriangle",
"side1",
"side2",
"side3",
"{\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\n\t\tboolean isRightTriangle = false;\n\t\tif (side1 >= side2 && side1 >= side3) {\n\t\t\tisRightTriangle = (side1 * side1 == side2 * side2 + side3 * side3);\n\t\t} else if (side2 >= side1 && side2 >= side3) {\n\t\t\tisRightTriangle = (side2 * side2 == side1 * side1 + side3 * side3);\n\t\t} else {\n\t\t\tisRightTriangle = (side3 * side3 == side1 * side1 + side2 * side2);\n\t\t}\n\n\t\treturn isRightTriangle;\n\t}",
"isRightTriangle",
"{\n\n\t\tboolean isRightTriangle = false;\n\t\tif (side1 >= side2 && side1 >= side3) {\n\t\t\tisRightTriangle = (side1 * side1 == side2 * side2 + side3 * side3);\n\t\t} else if (side2 >= side1 && side2 >= side3) {\n\t\t\tisRightTriangle = (side2 * side2 == side1 * side1 + side3 * side3);\n\t\t} else {\n\t\t\tisRightTriangle = (side3 * side3 == side1 * side1 + side2 * side2);\n\t\t}\n\n\t\treturn isRightTriangle;\n\t}",
"boolean isRightTriangle = false;",
"isRightTriangle",
"false",
"if (side1 >= side2 && side1 >= side3) {\n\t\t\tisRightTriangle = (side1 * side1 == side2 * side2 + side3 * side3);\n\t\t} else if (side2 >= side1 && side2 >= side3) {\n\t\t\tisRightTriangle = (side2 * side2 == side1 * side1 + side3 * side3);\n\t\t} else {\n\t\t\tisRightTriangle = (side3 * side3 == side1 * side1 + side2 * side2);\n\t\t}",
"side1 >= side2 && side1 >= side3",
"side1 >= side2",
"side1",
"side2",
"side1 >= side3",
"side1",
"side3",
"{\n\t\t\tisRightTriangle = (side1 * side1 == side2 * side2 + side3 * side3);\n\t\t}",
"isRightTriangle = (side1 * side1 == side2 * side2 + side3 * side3)",
"isRightTriangle",
"(side1 * side1 == side2 * side2 + side3 * side3)",
"side1 * side1",
"side1",
"side1",
"side2 * side2 + side3 * side3",
"side2 * side2",
"side2",
"side2",
"side3 * side3",
"side3",
"side3",
"if (side2 >= side1 && side2 >= side3) {\n\t\t\tisRightTriangle = (side2 * side2 == side1 * side1 + side3 * side3);\n\t\t} else {\n\t\t\tisRightTriangle = (side3 * side3 == side1 * side1 + side2 * side2);\n\t\t}",
"side2 >= side1 && side2 >= side3",
"side2 >= side1",
"side2",
"side1",
"side2 >= side3",
"side2",
"side3",
"{\n\t\t\tisRightTriangle = (side2 * side2 == side1 * side1 + side3 * side3);\n\t\t}",
"isRightTriangle = (side2 * side2 == side1 * side1 + side3 * side3)",
"isRightTriangle",
"(side2 * side2 == side1 * side1 + side3 * side3)",
"side2 * side2",
"side2",
"side2",
"side1 * side1 + side3 * side3",
"side1 * side1",
"side1",
"side1",
"side3 * side3",
"side3",
"side3",
"{\n\t\t\tisRightTriangle = (side3 * side3 == side1 * side1 + side2 * side2);\n\t\t}",
"isRightTriangle = (side3 * side3 == side1 * side1 + side2 * side2)",
"isRightTriangle",
"(side3 * side3 == side1 * side1 + side2 * side2)",
"side3 * side3",
"side3",
"side3",
"side1 * side1 + side2 * side2",
"side1 * side1",
"side1",
"side1",
"side2 * side2",
"side2",
"side2",
"return isRightTriangle;",
"isRightTriangle",
"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[] input = br.readLine().split(\" \");\n\t\t\tint side1 = Integer.parseInt(input[0]);\n\t\t\tint side2 = Integer.parseInt(input[1]);\n\t\t\tint side3 = Integer.parseInt(input[2]);\n\n\t\t\tif (isRightTriangle(side1, side2, side3)) {\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\n\t\tboolean isRightTriangle = false;\n\t\tif (side1 >= side2 && side1 >= side3) {\n\t\t\tisRightTriangle = (side1 * side1 == side2 * side2 + side3 * side3);\n\t\t} else if (side2 >= side1 && side2 >= side3) {\n\t\t\tisRightTriangle = (side2 * side2 == side1 * side1 + side3 * side3);\n\t\t} else {\n\t\t\tisRightTriangle = (side3 * side3 == side1 * side1 + side2 * side2);\n\t\t}\n\n\t\treturn isRightTriangle;\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[] input = br.readLine().split(\" \");\n\t\t\tint side1 = Integer.parseInt(input[0]);\n\t\t\tint side2 = Integer.parseInt(input[1]);\n\t\t\tint side3 = Integer.parseInt(input[2]);\n\n\t\t\tif (isRightTriangle(side1, side2, side3)) {\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\n\t\tboolean isRightTriangle = false;\n\t\tif (side1 >= side2 && side1 >= side3) {\n\t\t\tisRightTriangle = (side1 * side1 == side2 * side2 + side3 * side3);\n\t\t} else if (side2 >= side1 && side2 >= side3) {\n\t\t\tisRightTriangle = (side2 * side2 == side1 * side1 + side3 * side3);\n\t\t} else {\n\t\t\tisRightTriangle = (side3 * side3 == side1 * side1 + side2 * side2);\n\t\t}\n\n\t\treturn isRightTriangle;\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
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[] input = br.readLine().split(" ");
int side1 = Integer.parseInt(input[0]);
int side2 = Integer.parseInt(input[1]);
int side3 = Integer.parseInt(input[2]);
if (isRightTriangle(side1, side2, side3)) {
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) {
boolean isRightTriangle = false;
if (side1 >= side2 && side1 >= side3) {
isRightTriangle = (side1 * side1 == side2 * side2 + side3 * side3);
} else if (side2 >= side1 && side2 >= side3) {
isRightTriangle = (side2 * side2 == side1 * side1 + side3 * side3);
} else {
isRightTriangle = (side3 * side3 == side1 * side1 + side2 * side2);
}
return isRightTriangle;
}
} |
[
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,
17,
41,
13,
4,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
2,
13,
18,
13,
13,
40,
13,
1,
40,
13,
30,
30,
0,
13,
2,
18,
13,
13,
2,
18,
13,
2,
2,
17,
13,
17,
18,
13,
2,
2,
17,
13,
17,
4,
18,
18,
13,
13,
8,
13,
17,
17,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
29,
17,
41,
13,
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,
17,
29,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
17,
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
],
[
180,
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
],
[
38,
40
],
[
40,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
42,
52
],
[
52,
53
],
[
53,
54
],
[
42,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
34,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
75,
76
],
[
64,
77
],
[
77,
78
],
[
78,
79
],
[
64,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
88,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
34,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
108,
111
],
[
15,
112
],
[
112,
113
],
[
180,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
116,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
127,
128
],
[
116,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
116,
135
],
[
135,
136
],
[
135,
137
],
[
138,
139
],
[
138,
140
],
[
116,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
141,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
148,
150
],
[
141,
151
],
[
151,
152
],
[
152,
153
],
[
141,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
160,
161
],
[
159,
162
],
[
162,
163
],
[
162,
164
],
[
159,
165
],
[
116,
166
],
[
166,
167
],
[
180,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
175,
176
],
[
176,
177
],
[
172,
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\tpublic static void main(String[] args) throws IOException {\n\t\tint size = readInt();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tboolean yes = false;\n\t\t\tint[] a = readInts();\n\t\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\t\ta[j] *= a[j];\n\t\t\t}\n\t\t\tfor (int j = 0; j < a.length && !yes; j++) {\n\t\t\t\tyes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));\n\t\t\t}\n\t\t\tSystem.out.println(yes ? \"YES\" : \"NO\");\n\t\t}\n\n\t}\n\n\tstatic BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\tSystem.in));\n\n\tprivate static int[] readInts() throws IOException {\n\t\tString readLine = br.readLine();\n\t\tif (readLine == null) {\n\t\t\treturn null;\n\t\t}\n\t\tString[] s = readLine.split(\" \");\n\t\tint[] result = new int[s.length];\n\t\tfor (int i = 0; i < result.length; i++)\n\t\t\tresult[i] = Integer.parseInt(s[i], 10);\n\n\t\treturn result;\n\t}\n\n\tprivate static int readInt() throws IOException {\n\t\treturn Integer.parseInt(br.readLine(), 10);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tint size = readInt();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tboolean yes = false;\n\t\t\tint[] a = readInts();\n\t\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\t\ta[j] *= a[j];\n\t\t\t}\n\t\t\tfor (int j = 0; j < a.length && !yes; j++) {\n\t\t\t\tyes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));\n\t\t\t}\n\t\t\tSystem.out.println(yes ? \"YES\" : \"NO\");\n\t\t}\n\n\t}\n\n\tstatic BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\tSystem.in));\n\n\tprivate static int[] readInts() throws IOException {\n\t\tString readLine = br.readLine();\n\t\tif (readLine == null) {\n\t\t\treturn null;\n\t\t}\n\t\tString[] s = readLine.split(\" \");\n\t\tint[] result = new int[s.length];\n\t\tfor (int i = 0; i < result.length; i++)\n\t\t\tresult[i] = Integer.parseInt(s[i], 10);\n\n\t\treturn result;\n\t}\n\n\tprivate static int readInt() throws IOException {\n\t\treturn Integer.parseInt(br.readLine(), 10);\n\t}\n}",
"Main",
"static BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\tSystem.in));",
"br",
"new BufferedReader(new InputStreamReader(\n\t\t\tSystem.in))",
"public static void main(String[] args) throws IOException {\n\t\tint size = readInt();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tboolean yes = false;\n\t\t\tint[] a = readInts();\n\t\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\t\ta[j] *= a[j];\n\t\t\t}\n\t\t\tfor (int j = 0; j < a.length && !yes; j++) {\n\t\t\t\tyes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));\n\t\t\t}\n\t\t\tSystem.out.println(yes ? \"YES\" : \"NO\");\n\t\t}\n\n\t}",
"main",
"{\n\t\tint size = readInt();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tboolean yes = false;\n\t\t\tint[] a = readInts();\n\t\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\t\ta[j] *= a[j];\n\t\t\t}\n\t\t\tfor (int j = 0; j < a.length && !yes; j++) {\n\t\t\t\tyes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));\n\t\t\t}\n\t\t\tSystem.out.println(yes ? \"YES\" : \"NO\");\n\t\t}\n\n\t}",
"int size = readInt();",
"size",
"readInt()",
"readInt",
"for (int i = 0; i < size; i++) {\n\t\t\tboolean yes = false;\n\t\t\tint[] a = readInts();\n\t\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\t\ta[j] *= a[j];\n\t\t\t}\n\t\t\tfor (int j = 0; j < a.length && !yes; j++) {\n\t\t\t\tyes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));\n\t\t\t}\n\t\t\tSystem.out.println(yes ? \"YES\" : \"NO\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < size",
"i",
"size",
"i++",
"i++",
"i",
"{\n\t\t\tboolean yes = false;\n\t\t\tint[] a = readInts();\n\t\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\t\ta[j] *= a[j];\n\t\t\t}\n\t\t\tfor (int j = 0; j < a.length && !yes; j++) {\n\t\t\t\tyes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));\n\t\t\t}\n\t\t\tSystem.out.println(yes ? \"YES\" : \"NO\");\n\t\t}",
"{\n\t\t\tboolean yes = false;\n\t\t\tint[] a = readInts();\n\t\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\t\ta[j] *= a[j];\n\t\t\t}\n\t\t\tfor (int j = 0; j < a.length && !yes; j++) {\n\t\t\t\tyes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));\n\t\t\t}\n\t\t\tSystem.out.println(yes ? \"YES\" : \"NO\");\n\t\t}",
"boolean yes = false;",
"yes",
"false",
"int[] a = readInts();",
"a",
"readInts()",
"readInts",
"for (int j = 0; j < a.length; j++) {\n\t\t\t\ta[j] *= a[j];\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < a.length",
"j",
"a.length",
"a",
"a.length",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[j] *= a[j];\n\t\t\t}",
"{\n\t\t\t\ta[j] *= a[j];\n\t\t\t}",
"a[j] *= a[j]",
"a[j]",
"a",
"j",
"a[j]",
"a",
"j",
"for (int j = 0; j < a.length && !yes; j++) {\n\t\t\t\tyes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < a.length && !yes",
"j < a.length",
"j",
"a.length",
"a",
"a.length",
"!yes",
"yes",
"j++",
"j++",
"j",
"{\n\t\t\t\tyes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));\n\t\t\t}",
"{\n\t\t\t\tyes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));\n\t\t\t}",
"yes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]))",
"yes",
"(a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]))",
"a[j]",
"a",
"j",
"(a[(1 + j) % 3] + a[(2 + j) % 3])",
"a[(1 + j) % 3]",
"a",
"(1 + j) % 3",
"(1 + j)",
"1",
"j",
"3",
"a[(2 + j) % 3]",
"a",
"(2 + j) % 3",
"(2 + j)",
"2",
"j",
"3",
"System.out.println(yes ? \"YES\" : \"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"yes ? \"YES\" : \"NO\"",
"yes",
"\"YES\"",
"\"NO\"",
"String[] args",
"args",
"private static int[] readInts() throws IOException {\n\t\tString readLine = br.readLine();\n\t\tif (readLine == null) {\n\t\t\treturn null;\n\t\t}\n\t\tString[] s = readLine.split(\" \");\n\t\tint[] result = new int[s.length];\n\t\tfor (int i = 0; i < result.length; i++)\n\t\t\tresult[i] = Integer.parseInt(s[i], 10);\n\n\t\treturn result;\n\t}",
"readInts",
"{\n\t\tString readLine = br.readLine();\n\t\tif (readLine == null) {\n\t\t\treturn null;\n\t\t}\n\t\tString[] s = readLine.split(\" \");\n\t\tint[] result = new int[s.length];\n\t\tfor (int i = 0; i < result.length; i++)\n\t\t\tresult[i] = Integer.parseInt(s[i], 10);\n\n\t\treturn result;\n\t}",
"String readLine = br.readLine();",
"readLine",
"br.readLine()",
"br.readLine",
"br",
"if (readLine == null) {\n\t\t\treturn null;\n\t\t}",
"readLine == null",
"readLine",
"null",
"{\n\t\t\treturn null;\n\t\t}",
"return null;",
"null",
"String[] s = readLine.split(\" \");",
"s",
"readLine.split(\" \")",
"readLine.split",
"readLine",
"\" \"",
"int[] result = new int[s.length];",
"result",
"new int[s.length]",
"s.length",
"s",
"s.length",
"for (int i = 0; i < result.length; i++)\n\t\t\tresult[i] = Integer.parseInt(s[i], 10);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < result.length",
"i",
"result.length",
"result",
"result.length",
"i++",
"i++",
"i",
"result[i] = Integer.parseInt(s[i], 10);",
"result[i] = Integer.parseInt(s[i], 10)",
"result[i]",
"result",
"i",
"Integer.parseInt(s[i], 10)",
"Integer.parseInt",
"Integer",
"s[i]",
"s",
"i",
"10",
"return result;",
"result",
"private static int readInt() throws IOException {\n\t\treturn Integer.parseInt(br.readLine(), 10);\n\t}",
"readInt",
"{\n\t\treturn Integer.parseInt(br.readLine(), 10);\n\t}",
"return Integer.parseInt(br.readLine(), 10);",
"Integer.parseInt(br.readLine(), 10)",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"10",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tint size = readInt();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tboolean yes = false;\n\t\t\tint[] a = readInts();\n\t\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\t\ta[j] *= a[j];\n\t\t\t}\n\t\t\tfor (int j = 0; j < a.length && !yes; j++) {\n\t\t\t\tyes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));\n\t\t\t}\n\t\t\tSystem.out.println(yes ? \"YES\" : \"NO\");\n\t\t}\n\n\t}\n\n\tstatic BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\tSystem.in));\n\n\tprivate static int[] readInts() throws IOException {\n\t\tString readLine = br.readLine();\n\t\tif (readLine == null) {\n\t\t\treturn null;\n\t\t}\n\t\tString[] s = readLine.split(\" \");\n\t\tint[] result = new int[s.length];\n\t\tfor (int i = 0; i < result.length; i++)\n\t\t\tresult[i] = Integer.parseInt(s[i], 10);\n\n\t\treturn result;\n\t}\n\n\tprivate static int readInt() throws IOException {\n\t\treturn Integer.parseInt(br.readLine(), 10);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tint size = readInt();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tboolean yes = false;\n\t\t\tint[] a = readInts();\n\t\t\tfor (int j = 0; j < a.length; j++) {\n\t\t\t\ta[j] *= a[j];\n\t\t\t}\n\t\t\tfor (int j = 0; j < a.length && !yes; j++) {\n\t\t\t\tyes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));\n\t\t\t}\n\t\t\tSystem.out.println(yes ? \"YES\" : \"NO\");\n\t\t}\n\n\t}\n\n\tstatic BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\tSystem.in));\n\n\tprivate static int[] readInts() throws IOException {\n\t\tString readLine = br.readLine();\n\t\tif (readLine == null) {\n\t\t\treturn null;\n\t\t}\n\t\tString[] s = readLine.split(\" \");\n\t\tint[] result = new int[s.length];\n\t\tfor (int i = 0; i < result.length; i++)\n\t\t\tresult[i] = Integer.parseInt(s[i], 10);\n\n\t\treturn result;\n\t}\n\n\tprivate static int readInt() throws IOException {\n\t\treturn Integer.parseInt(br.readLine(), 10);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
int size = readInt();
for (int i = 0; i < size; i++) {
boolean yes = false;
int[] a = readInts();
for (int j = 0; j < a.length; j++) {
a[j] *= a[j];
}
for (int j = 0; j < a.length && !yes; j++) {
yes = (a[j] == (a[(1 + j) % 3] + a[(2 + j) % 3]));
}
System.out.println(yes ? "YES" : "NO");
}
}
static BufferedReader br = new BufferedReader(new InputStreamReader(
System.in));
private static int[] readInts() throws IOException {
String readLine = br.readLine();
if (readLine == null) {
return null;
}
String[] s = readLine.split(" ");
int[] result = new int[s.length];
for (int i = 0; i < result.length; i++)
result[i] = Integer.parseInt(s[i], 10);
return result;
}
private static int readInt() throws IOException {
return Integer.parseInt(br.readLine(), 10);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
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,
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,
4,
18,
13,
4,
18,
13,
17,
17,
4,
18,
13,
4,
18,
13,
17,
17,
4,
18,
13,
4,
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
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
24,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
34,
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
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
55,
64
],
[
64,
65
],
[
64,
66
],
[
55,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
55,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
55,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
92,
93
],
[
55,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
55,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
101,
108
],
[
100,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
109,
116
],
[
99,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
117,
124
],
[
98,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
98,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
15,
137
],
[
137,
138
]
] | [
"import java.io.*;\nimport java.util.StringTokenizer;\nimport java.util.Collections;\nimport java.util.ArrayList;\n\nclass Main {\n\tpublic static void main(String args[]) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\n\t\ttry {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tfor (int i=0;i<n;i++) {\n\t\t\t\tString buf = br.readLine();\n\t\t\t\tStringTokenizer st = new StringTokenizer(buf);\n\t\t\t\tArrayList<Integer> a = new ArrayList<Integer>();\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\n\t\t\t\tCollections.sort(a);\n\t\t\t\tif (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException!\");\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"class Main {\n\tpublic static void main(String args[]) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\n\t\ttry {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tfor (int i=0;i<n;i++) {\n\t\t\t\tString buf = br.readLine();\n\t\t\t\tStringTokenizer st = new StringTokenizer(buf);\n\t\t\t\tArrayList<Integer> a = new ArrayList<Integer>();\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\n\t\t\t\tCollections.sort(a);\n\t\t\t\tif (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException!\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\n\t\ttry {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tfor (int i=0;i<n;i++) {\n\t\t\t\tString buf = br.readLine();\n\t\t\t\tStringTokenizer st = new StringTokenizer(buf);\n\t\t\t\tArrayList<Integer> a = new ArrayList<Integer>();\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\n\t\t\t\tCollections.sort(a);\n\t\t\t\tif (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException!\");\n\t\t}\n\t}",
"main",
"{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\n\t\ttry {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tfor (int i=0;i<n;i++) {\n\t\t\t\tString buf = br.readLine();\n\t\t\t\tStringTokenizer st = new StringTokenizer(buf);\n\t\t\t\tArrayList<Integer> a = new ArrayList<Integer>();\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\n\t\t\t\tCollections.sort(a);\n\t\t\t\tif (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException!\");\n\t\t}\n\t}",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"try {\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tfor (int i=0;i<n;i++) {\n\t\t\t\tString buf = br.readLine();\n\t\t\t\tStringTokenizer st = new StringTokenizer(buf);\n\t\t\t\tArrayList<Integer> a = new ArrayList<Integer>();\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\n\t\t\t\tCollections.sort(a);\n\t\t\t\tif (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException!\");\n\t\t}",
"catch (IOException e) {\n\t\t\tSystem.out.println(\"IOException!\");\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(\"IOException!\");\n\t\t}",
"System.out.println(\"IOException!\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"IOException!\"",
"{\n\t\t\tint n = Integer.parseInt(br.readLine());\n\t\t\tfor (int i=0;i<n;i++) {\n\t\t\t\tString buf = br.readLine();\n\t\t\t\tStringTokenizer st = new StringTokenizer(buf);\n\t\t\t\tArrayList<Integer> a = new ArrayList<Integer>();\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\n\t\t\t\tCollections.sort(a);\n\t\t\t\tif (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"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\t\tString buf = br.readLine();\n\t\t\t\tStringTokenizer st = new StringTokenizer(buf);\n\t\t\t\tArrayList<Integer> a = new ArrayList<Integer>();\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\n\t\t\t\tCollections.sort(a);\n\t\t\t\tif (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse System.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\tString buf = br.readLine();\n\t\t\t\tStringTokenizer st = new StringTokenizer(buf);\n\t\t\t\tArrayList<Integer> a = new ArrayList<Integer>();\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\n\t\t\t\tCollections.sort(a);\n\t\t\t\tif (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}",
"{\n\t\t\t\tString buf = br.readLine();\n\t\t\t\tStringTokenizer st = new StringTokenizer(buf);\n\t\t\t\tArrayList<Integer> a = new ArrayList<Integer>();\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\t\t\ta.add(Integer.parseInt(st.nextToken()));\n\t\n\t\t\t\tCollections.sort(a);\n\t\t\t\tif (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}",
"String buf = br.readLine();",
"buf",
"br.readLine()",
"br.readLine",
"br",
"StringTokenizer st = new StringTokenizer(buf);",
"st",
"new StringTokenizer(buf)",
"ArrayList<Integer> a = new ArrayList<Integer>();",
"a",
"new ArrayList<Integer>()",
"a.add(Integer.parseInt(st.nextToken()))",
"a.add",
"a",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"a.add(Integer.parseInt(st.nextToken()))",
"a.add",
"a",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"a.add(Integer.parseInt(st.nextToken()))",
"a.add",
"a",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"Collections.sort(a)",
"Collections.sort",
"Collections",
"a",
"if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");",
"Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2)",
"Math.pow(a.get(0),2)+Math.pow(a.get(1),2)",
"Math.pow(a.get(0),2)",
"Math.pow",
"Math",
"a.get(0)",
"a.get",
"a",
"0",
"2",
"Math.pow(a.get(1),2)",
"Math.pow",
"Math",
"a.get(1)",
"a.get",
"a",
"1",
"2",
"Math.pow(a.get(2),2)",
"Math.pow",
"Math",
"a.get(2)",
"a.get",
"a",
"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"
] | import java.io.*;
import java.util.StringTokenizer;
import java.util.Collections;
import java.util.ArrayList;
class Main {
public static void main(String args[]) {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
try {
int n = Integer.parseInt(br.readLine());
for (int i=0;i<n;i++) {
String buf = br.readLine();
StringTokenizer st = new StringTokenizer(buf);
ArrayList<Integer> a = new ArrayList<Integer>();
a.add(Integer.parseInt(st.nextToken()));
a.add(Integer.parseInt(st.nextToken()));
a.add(Integer.parseInt(st.nextToken()));
Collections.sort(a);
if (Math.pow(a.get(0),2)+Math.pow(a.get(1),2)==Math.pow(a.get(2),2))
System.out.println("YES");
else System.out.println("NO");
}
} catch (IOException e) {
System.out.println("IOException!");
}
}
} |
[
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,
17,
41,
13,
17,
41,
13,
17,
38,
5,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
0,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
18,
13,
13,
17,
0,
18,
18,
13,
13,
17,
4,
18,
13,
18,
13,
17,
0,
18,
18,
13,
13,
17,
4,
18,
13,
18,
13,
17,
0,
18,
18,
13,
13,
17,
4,
18,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
17,
14,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
17,
30,
0,
13,
17,
14,
2,
18,
18,
13,
13,
13,
18,
18,
13,
13,
17,
30,
0,
13,
17,
35,
13,
34,
17,
1,
14,
2,
4,
18,
13,
18,
18,
13,
13,
17,
17,
2,
4,
18,
13,
18,
18,
13,
13,
17,
17,
4,
18,
13,
18,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
3,
34,
17,
1,
14,
2,
4,
18,
13,
18,
18,
13,
13,
17,
17,
2,
4,
18,
13,
18,
18,
13,
13,
17,
17,
4,
18,
13,
18,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
3,
34,
17,
1,
14,
2,
4,
18,
13,
18,
18,
13,
13,
17,
17,
2,
4,
18,
13,
18,
18,
13,
13,
17,
17,
4,
18,
13,
18,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
3,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
332,
14
],
[
332,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
17,
30
],
[
30,
31
],
[
30,
32
],
[
17,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
37,
49
],
[
49,
50
],
[
49,
51
],
[
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
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
17,
73
],
[
73,
74
],
[
73,
75
],
[
17,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
90,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
90,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
111,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
120,
122
],
[
90,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
123,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
132,
133
],
[
132,
134
],
[
17,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
135,
143
],
[
143,
144
],
[
144,
145
],
[
135,
146
],
[
147,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
152,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
158,
162
],
[
151,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
147,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
168,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
167,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
147,
183
],
[
183,
184
],
[
183,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
193,
197
],
[
190,
198
],
[
189,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
203,
207
],
[
200,
208
],
[
199,
209
],
[
209,
210
],
[
210,
211
],
[
209,
212
],
[
212,
213
],
[
213,
214
],
[
213,
215
],
[
212,
216
],
[
209,
217
],
[
188,
218
],
[
218,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
219,
224
],
[
188,
225
],
[
225,
226
],
[
226,
227
],
[
227,
228
],
[
228,
229
],
[
228,
230
],
[
226,
231
],
[
187,
232
],
[
183,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
239,
240
],
[
238,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
241,
245
],
[
238,
246
],
[
237,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
248,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
251,
255
],
[
248,
256
],
[
247,
257
],
[
257,
258
],
[
258,
259
],
[
257,
260
],
[
260,
261
],
[
261,
262
],
[
261,
263
],
[
260,
264
],
[
257,
265
],
[
236,
266
],
[
266,
267
],
[
267,
268
],
[
268,
269
],
[
269,
270
],
[
269,
271
],
[
267,
272
],
[
236,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
276,
277
],
[
276,
278
],
[
274,
279
],
[
235,
280
],
[
183,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
284,
285
],
[
285,
286
],
[
286,
287
],
[
287,
288
],
[
286,
289
],
[
289,
290
],
[
290,
291
],
[
290,
292
],
[
289,
293
],
[
286,
294
],
[
285,
295
],
[
295,
296
],
[
296,
297
],
[
297,
298
],
[
296,
299
],
[
299,
300
],
[
300,
301
],
[
300,
302
],
[
299,
303
],
[
296,
304
],
[
295,
305
],
[
305,
306
],
[
306,
307
],
[
305,
308
],
[
308,
309
],
[
309,
310
],
[
309,
311
],
[
308,
312
],
[
305,
313
],
[
284,
314
],
[
314,
315
],
[
315,
316
],
[
316,
317
],
[
317,
318
],
[
317,
319
],
[
315,
320
],
[
284,
321
],
[
321,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
324,
326
],
[
322,
327
],
[
283,
328
],
[
15,
329
],
[
329,
330
],
[
0,
331
],
[
331,
332
],
[
331,
333
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.lang.Math;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\tString col = \"0\";\t//入力する行数\n\t\tString[] cols = null;\n\t\tint colInt = 0;\n\n\t\t//行数の入力後、三角形の三辺の長さを入力\n\t\ttry {\n\t\t\tcol = br.readLine();\n\t\t\tcolInt = Integer.parseInt(col);\n\t\t\tcols = new String[colInt];\n\n\t\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t\tcols[i] = br.readLine();\n\t\t\t}\n\t\t}catch(IOException e){\n\n\t\t}\n\n\t\t//値の分離\n\t\tint[][] triangle = new int[colInt][3];\n\t\tfor(int i = 0;i < colInt;i++){\n\t\t\tString[] temp = cols[i].split(\" \");\n\t\t\ttriangle[i][0] = Integer.parseInt(temp[0]);\n\t\t\ttriangle[i][1] = Integer.parseInt(temp[1]);\n\t\t\ttriangle[i][2] = Integer.parseInt(temp[2]);\n\t\t}\n\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t//三角形ごとに、最長の辺を求める\n\t\t\tint maxIndex = 0;\n\t\t\tif(triangle[i][maxIndex] < triangle[i][1]){\n\t\t\t\tmaxIndex = 1;\n\t\t\t}\n\t\t\tif(triangle[i][maxIndex] < triangle[i][2]){\n\t\t\t\tmaxIndex = 2;\n\t\t\t}\n\t\t\t//三角形が直角三角形であるかを求める\n\t\t\tswitch (maxIndex){\n\t\t\tcase 0:\n\t\t\t\tif(Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)){\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 1:\n\t\t\t\tif(Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)){\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 2:\n\t\t\t\tif(Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)){\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\t}\n\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.lang.Math;",
"Math",
"java.lang",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\tString col = \"0\";\t//入力する行数\n\t\tString[] cols = null;\n\t\tint colInt = 0;\n\n\t\t//行数の入力後、三角形の三辺の長さを入力\n\t\ttry {\n\t\t\tcol = br.readLine();\n\t\t\tcolInt = Integer.parseInt(col);\n\t\t\tcols = new String[colInt];\n\n\t\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t\tcols[i] = br.readLine();\n\t\t\t}\n\t\t}catch(IOException e){\n\n\t\t}\n\n\t\t//値の分離\n\t\tint[][] triangle = new int[colInt][3];\n\t\tfor(int i = 0;i < colInt;i++){\n\t\t\tString[] temp = cols[i].split(\" \");\n\t\t\ttriangle[i][0] = Integer.parseInt(temp[0]);\n\t\t\ttriangle[i][1] = Integer.parseInt(temp[1]);\n\t\t\ttriangle[i][2] = Integer.parseInt(temp[2]);\n\t\t}\n\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t//三角形ごとに、最長の辺を求める\n\t\t\tint maxIndex = 0;\n\t\t\tif(triangle[i][maxIndex] < triangle[i][1]){\n\t\t\t\tmaxIndex = 1;\n\t\t\t}\n\t\t\tif(triangle[i][maxIndex] < triangle[i][2]){\n\t\t\t\tmaxIndex = 2;\n\t\t\t}\n\t\t\t//三角形が直角三角形であるかを求める\n\t\t\tswitch (maxIndex){\n\t\t\tcase 0:\n\t\t\t\tif(Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)){\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 1:\n\t\t\t\tif(Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)){\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 2:\n\t\t\t\tif(Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)){\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\t}\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\tString col = \"0\";\t//入力する行数\n\t\tString[] cols = null;\n\t\tint colInt = 0;\n\n\t\t//行数の入力後、三角形の三辺の長さを入力\n\t\ttry {\n\t\t\tcol = br.readLine();\n\t\t\tcolInt = Integer.parseInt(col);\n\t\t\tcols = new String[colInt];\n\n\t\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t\tcols[i] = br.readLine();\n\t\t\t}\n\t\t}catch(IOException e){\n\n\t\t}\n\n\t\t//値の分離\n\t\tint[][] triangle = new int[colInt][3];\n\t\tfor(int i = 0;i < colInt;i++){\n\t\t\tString[] temp = cols[i].split(\" \");\n\t\t\ttriangle[i][0] = Integer.parseInt(temp[0]);\n\t\t\ttriangle[i][1] = Integer.parseInt(temp[1]);\n\t\t\ttriangle[i][2] = Integer.parseInt(temp[2]);\n\t\t}\n\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t//三角形ごとに、最長の辺を求める\n\t\t\tint maxIndex = 0;\n\t\t\tif(triangle[i][maxIndex] < triangle[i][1]){\n\t\t\t\tmaxIndex = 1;\n\t\t\t}\n\t\t\tif(triangle[i][maxIndex] < triangle[i][2]){\n\t\t\t\tmaxIndex = 2;\n\t\t\t}\n\t\t\t//三角形が直角三角形であるかを求める\n\t\t\tswitch (maxIndex){\n\t\t\tcase 0:\n\t\t\t\tif(Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)){\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 1:\n\t\t\t\tif(Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)){\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 2:\n\t\t\t\tif(Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)){\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\t}\n\n\t\t}\n\t}",
"main",
"{\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\tString col = \"0\";\t//入力する行数\n\t\tString[] cols = null;\n\t\tint colInt = 0;\n\n\t\t//行数の入力後、三角形の三辺の長さを入力\n\t\ttry {\n\t\t\tcol = br.readLine();\n\t\t\tcolInt = Integer.parseInt(col);\n\t\t\tcols = new String[colInt];\n\n\t\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t\tcols[i] = br.readLine();\n\t\t\t}\n\t\t}catch(IOException e){\n\n\t\t}\n\n\t\t//値の分離\n\t\tint[][] triangle = new int[colInt][3];\n\t\tfor(int i = 0;i < colInt;i++){\n\t\t\tString[] temp = cols[i].split(\" \");\n\t\t\ttriangle[i][0] = Integer.parseInt(temp[0]);\n\t\t\ttriangle[i][1] = Integer.parseInt(temp[1]);\n\t\t\ttriangle[i][2] = Integer.parseInt(temp[2]);\n\t\t}\n\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t//三角形ごとに、最長の辺を求める\n\t\t\tint maxIndex = 0;\n\t\t\tif(triangle[i][maxIndex] < triangle[i][1]){\n\t\t\t\tmaxIndex = 1;\n\t\t\t}\n\t\t\tif(triangle[i][maxIndex] < triangle[i][2]){\n\t\t\t\tmaxIndex = 2;\n\t\t\t}\n\t\t\t//三角形が直角三角形であるかを求める\n\t\t\tswitch (maxIndex){\n\t\t\tcase 0:\n\t\t\t\tif(Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)){\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 1:\n\t\t\t\tif(Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)){\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 2:\n\t\t\t\tif(Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)){\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\t}\n\n\t\t}\n\t}",
"InputStreamReader is = new InputStreamReader(System.in);",
"is",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(is);",
"br",
"new BufferedReader(is)",
"String col = \"0\";",
"col",
"\"0\"",
"String[] cols = null;",
"cols",
"null",
"int colInt = 0;",
"colInt",
"0",
"try {\n\t\t\tcol = br.readLine();\n\t\t\tcolInt = Integer.parseInt(col);\n\t\t\tcols = new String[colInt];\n\n\t\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t\tcols[i] = br.readLine();\n\t\t\t}\n\t\t}catch(IOException e){\n\n\t\t}",
"catch(IOException e){\n\n\t\t}",
"IOException e",
"{\n\n\t\t}",
"{\n\t\t\tcol = br.readLine();\n\t\t\tcolInt = Integer.parseInt(col);\n\t\t\tcols = new String[colInt];\n\n\t\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t\tcols[i] = br.readLine();\n\t\t\t}\n\t\t}",
"col = br.readLine()",
"col",
"br.readLine()",
"br.readLine",
"br",
"colInt = Integer.parseInt(col)",
"colInt",
"Integer.parseInt(col)",
"Integer.parseInt",
"Integer",
"col",
"cols = new String[colInt]",
"cols",
"new String[colInt]",
"colInt",
"for(int i = 0;i < colInt;i++){\n\t\t\t\tcols[i] = br.readLine();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < colInt",
"i",
"colInt",
"i++",
"i++",
"i",
"{\n\t\t\t\tcols[i] = br.readLine();\n\t\t\t}",
"{\n\t\t\t\tcols[i] = br.readLine();\n\t\t\t}",
"cols[i] = br.readLine()",
"cols[i]",
"cols",
"i",
"br.readLine()",
"br.readLine",
"br",
"int[][] triangle = new int[colInt][3];",
"triangle",
"new int[colInt][3]",
"colInt",
"3",
"for(int i = 0;i < colInt;i++){\n\t\t\tString[] temp = cols[i].split(\" \");\n\t\t\ttriangle[i][0] = Integer.parseInt(temp[0]);\n\t\t\ttriangle[i][1] = Integer.parseInt(temp[1]);\n\t\t\ttriangle[i][2] = Integer.parseInt(temp[2]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < colInt",
"i",
"colInt",
"i++",
"i++",
"i",
"{\n\t\t\tString[] temp = cols[i].split(\" \");\n\t\t\ttriangle[i][0] = Integer.parseInt(temp[0]);\n\t\t\ttriangle[i][1] = Integer.parseInt(temp[1]);\n\t\t\ttriangle[i][2] = Integer.parseInt(temp[2]);\n\t\t}",
"{\n\t\t\tString[] temp = cols[i].split(\" \");\n\t\t\ttriangle[i][0] = Integer.parseInt(temp[0]);\n\t\t\ttriangle[i][1] = Integer.parseInt(temp[1]);\n\t\t\ttriangle[i][2] = Integer.parseInt(temp[2]);\n\t\t}",
"String[] temp = cols[i].split(\" \");",
"temp",
"cols[i].split(\" \")",
"cols[i].split",
"cols[i]",
"cols",
"i",
"\" \"",
"triangle[i][0] = Integer.parseInt(temp[0])",
"triangle[i][0]",
"triangle[i]",
"triangle",
"i",
"0",
"Integer.parseInt(temp[0])",
"Integer.parseInt",
"Integer",
"temp[0]",
"temp",
"0",
"triangle[i][1] = Integer.parseInt(temp[1])",
"triangle[i][1]",
"triangle[i]",
"triangle",
"i",
"1",
"Integer.parseInt(temp[1])",
"Integer.parseInt",
"Integer",
"temp[1]",
"temp",
"1",
"triangle[i][2] = Integer.parseInt(temp[2])",
"triangle[i][2]",
"triangle[i]",
"triangle",
"i",
"2",
"Integer.parseInt(temp[2])",
"Integer.parseInt",
"Integer",
"temp[2]",
"temp",
"2",
"for(int i = 0;i < colInt;i++){\n\t\t\t//三角形ごとに、最長の辺を求める\n\t\t\tint maxIndex = 0;\n\t\t\tif(triangle[i][maxIndex] < triangle[i][1]){\n\t\t\t\tmaxIndex = 1;\n\t\t\t}\n\t\t\tif(triangle[i][maxIndex] < triangle[i][2]){\n\t\t\t\tmaxIndex = 2;\n\t\t\t}\n\t\t\t//三角形が直角三角形であるかを求める\n\t\t\tswitch (maxIndex){\n\t\t\tcase 0:\n\t\t\t\tif(Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)){\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 1:\n\t\t\t\tif(Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)){\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 2:\n\t\t\t\tif(Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)){\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\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < colInt",
"i",
"colInt",
"i++",
"i++",
"i",
"{\n\t\t\t//三角形ごとに、最長の辺を求める\n\t\t\tint maxIndex = 0;\n\t\t\tif(triangle[i][maxIndex] < triangle[i][1]){\n\t\t\t\tmaxIndex = 1;\n\t\t\t}\n\t\t\tif(triangle[i][maxIndex] < triangle[i][2]){\n\t\t\t\tmaxIndex = 2;\n\t\t\t}\n\t\t\t//三角形が直角三角形であるかを求める\n\t\t\tswitch (maxIndex){\n\t\t\tcase 0:\n\t\t\t\tif(Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)){\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 1:\n\t\t\t\tif(Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)){\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 2:\n\t\t\t\tif(Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)){\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\t}\n\n\t\t}",
"{\n\t\t\t//三角形ごとに、最長の辺を求める\n\t\t\tint maxIndex = 0;\n\t\t\tif(triangle[i][maxIndex] < triangle[i][1]){\n\t\t\t\tmaxIndex = 1;\n\t\t\t}\n\t\t\tif(triangle[i][maxIndex] < triangle[i][2]){\n\t\t\t\tmaxIndex = 2;\n\t\t\t}\n\t\t\t//三角形が直角三角形であるかを求める\n\t\t\tswitch (maxIndex){\n\t\t\tcase 0:\n\t\t\t\tif(Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)){\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 1:\n\t\t\t\tif(Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)){\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 2:\n\t\t\t\tif(Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)){\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\t}\n\n\t\t}",
"int maxIndex = 0;",
"maxIndex",
"0",
"if(triangle[i][maxIndex] < triangle[i][1]){\n\t\t\t\tmaxIndex = 1;\n\t\t\t}",
"triangle[i][maxIndex] < triangle[i][1]",
"triangle[i][maxIndex]",
"triangle[i]",
"triangle",
"i",
"maxIndex",
"triangle[i][1]",
"triangle[i]",
"triangle",
"i",
"1",
"{\n\t\t\t\tmaxIndex = 1;\n\t\t\t}",
"maxIndex = 1",
"maxIndex",
"1",
"if(triangle[i][maxIndex] < triangle[i][2]){\n\t\t\t\tmaxIndex = 2;\n\t\t\t}",
"triangle[i][maxIndex] < triangle[i][2]",
"triangle[i][maxIndex]",
"triangle[i]",
"triangle",
"i",
"maxIndex",
"triangle[i][2]",
"triangle[i]",
"triangle",
"i",
"2",
"{\n\t\t\t\tmaxIndex = 2;\n\t\t\t}",
"maxIndex = 2",
"maxIndex",
"2",
"switch (maxIndex){\n\t\t\tcase 0:\n\t\t\t\tif(Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)){\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 1:\n\t\t\t\tif(Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)){\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 2:\n\t\t\t\tif(Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)){\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\t}",
"maxIndex",
"case 0:",
"0",
"case 0:",
"if(Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)){\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}",
"Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)",
"Math.pow(triangle[i][0],2)",
"Math.pow",
"Math",
"triangle[i][0]",
"triangle[i]",
"triangle",
"i",
"0",
"2",
"Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)",
"Math.pow(triangle[i][1],2)",
"Math.pow",
"Math",
"triangle[i][1]",
"triangle[i]",
"triangle",
"i",
"1",
"2",
"Math.pow(triangle[i][2],2)",
"Math.pow",
"Math",
"triangle[i][2]",
"triangle[i]",
"triangle",
"i",
"2",
"2",
"{\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 1:",
"1",
"case 1:",
"if(Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)){\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}",
"Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)",
"Math.pow(triangle[i][1],2)",
"Math.pow",
"Math",
"triangle[i][1]",
"triangle[i]",
"triangle",
"i",
"1",
"2",
"Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)",
"Math.pow(triangle[i][0],2)",
"Math.pow",
"Math",
"triangle[i][0]",
"triangle[i]",
"triangle",
"i",
"0",
"2",
"Math.pow(triangle[i][2],2)",
"Math.pow",
"Math",
"triangle[i][2]",
"triangle[i]",
"triangle",
"i",
"2",
"2",
"{\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 2:",
"2",
"case 2:",
"if(Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)){\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}",
"Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)",
"Math.pow(triangle[i][2],2)",
"Math.pow",
"Math",
"triangle[i][2]",
"triangle[i]",
"triangle",
"i",
"2",
"2",
"Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)",
"Math.pow(triangle[i][0],2)",
"Math.pow",
"Math",
"triangle[i][0]",
"triangle[i]",
"triangle",
"i",
"0",
"2",
"Math.pow(triangle[i][1],2)",
"Math.pow",
"Math",
"triangle[i][1]",
"triangle[i]",
"triangle",
"i",
"1",
"2",
"{\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",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\tString col = \"0\";\t//入力する行数\n\t\tString[] cols = null;\n\t\tint colInt = 0;\n\n\t\t//行数の入力後、三角形の三辺の長さを入力\n\t\ttry {\n\t\t\tcol = br.readLine();\n\t\t\tcolInt = Integer.parseInt(col);\n\t\t\tcols = new String[colInt];\n\n\t\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t\tcols[i] = br.readLine();\n\t\t\t}\n\t\t}catch(IOException e){\n\n\t\t}\n\n\t\t//値の分離\n\t\tint[][] triangle = new int[colInt][3];\n\t\tfor(int i = 0;i < colInt;i++){\n\t\t\tString[] temp = cols[i].split(\" \");\n\t\t\ttriangle[i][0] = Integer.parseInt(temp[0]);\n\t\t\ttriangle[i][1] = Integer.parseInt(temp[1]);\n\t\t\ttriangle[i][2] = Integer.parseInt(temp[2]);\n\t\t}\n\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t//三角形ごとに、最長の辺を求める\n\t\t\tint maxIndex = 0;\n\t\t\tif(triangle[i][maxIndex] < triangle[i][1]){\n\t\t\t\tmaxIndex = 1;\n\t\t\t}\n\t\t\tif(triangle[i][maxIndex] < triangle[i][2]){\n\t\t\t\tmaxIndex = 2;\n\t\t\t}\n\t\t\t//三角形が直角三角形であるかを求める\n\t\t\tswitch (maxIndex){\n\t\t\tcase 0:\n\t\t\t\tif(Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)){\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 1:\n\t\t\t\tif(Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)){\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 2:\n\t\t\t\tif(Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)){\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\t}\n\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\tString col = \"0\";\t//入力する行数\n\t\tString[] cols = null;\n\t\tint colInt = 0;\n\n\t\t//行数の入力後、三角形の三辺の長さを入力\n\t\ttry {\n\t\t\tcol = br.readLine();\n\t\t\tcolInt = Integer.parseInt(col);\n\t\t\tcols = new String[colInt];\n\n\t\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t\tcols[i] = br.readLine();\n\t\t\t}\n\t\t}catch(IOException e){\n\n\t\t}\n\n\t\t//値の分離\n\t\tint[][] triangle = new int[colInt][3];\n\t\tfor(int i = 0;i < colInt;i++){\n\t\t\tString[] temp = cols[i].split(\" \");\n\t\t\ttriangle[i][0] = Integer.parseInt(temp[0]);\n\t\t\ttriangle[i][1] = Integer.parseInt(temp[1]);\n\t\t\ttriangle[i][2] = Integer.parseInt(temp[2]);\n\t\t}\n\t\tfor(int i = 0;i < colInt;i++){\n\t\t\t//三角形ごとに、最長の辺を求める\n\t\t\tint maxIndex = 0;\n\t\t\tif(triangle[i][maxIndex] < triangle[i][1]){\n\t\t\t\tmaxIndex = 1;\n\t\t\t}\n\t\t\tif(triangle[i][maxIndex] < triangle[i][2]){\n\t\t\t\tmaxIndex = 2;\n\t\t\t}\n\t\t\t//三角形が直角三角形であるかを求める\n\t\t\tswitch (maxIndex){\n\t\t\tcase 0:\n\t\t\t\tif(Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)){\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 1:\n\t\t\t\tif(Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)){\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 2:\n\t\t\t\tif(Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)){\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\t}\n\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.Math;
public class Main {
public static void main(String[] args) {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
String col = "0"; //入力する行数
String[] cols = null;
int colInt = 0;
//行数の入力後、三角形の三辺の長さを入力
try {
col = br.readLine();
colInt = Integer.parseInt(col);
cols = new String[colInt];
for(int i = 0;i < colInt;i++){
cols[i] = br.readLine();
}
}catch(IOException e){
}
//値の分離
int[][] triangle = new int[colInt][3];
for(int i = 0;i < colInt;i++){
String[] temp = cols[i].split(" ");
triangle[i][0] = Integer.parseInt(temp[0]);
triangle[i][1] = Integer.parseInt(temp[1]);
triangle[i][2] = Integer.parseInt(temp[2]);
}
for(int i = 0;i < colInt;i++){
//三角形ごとに、最長の辺を求める
int maxIndex = 0;
if(triangle[i][maxIndex] < triangle[i][1]){
maxIndex = 1;
}
if(triangle[i][maxIndex] < triangle[i][2]){
maxIndex = 2;
}
//三角形が直角三角形であるかを求める
switch (maxIndex){
case 0:
if(Math.pow(triangle[i][0],2) == Math.pow(triangle[i][1],2) + Math.pow(triangle[i][2],2)){
System.out.println("YES");
}else{
System.out.println("NO");
}
break;
case 1:
if(Math.pow(triangle[i][1],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][2],2)){
System.out.println("YES");
}else{
System.out.println("NO");
}
break;
case 2:
if(Math.pow(triangle[i][2],2) == Math.pow(triangle[i][0],2) + Math.pow(triangle[i][1],2)){
System.out.println("YES");
}else{
System.out.println("NO");
}
break;
}
}
}
} |
[
7,
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,
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
] | [
[
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
],
[
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
],
[
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
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
33,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
33,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
58,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
58,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
6,
96
],
[
96,
97
]
] | [
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] a){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint[] hen = new int[3];\n\t\tfor(int i = 0 ; i < N ; i ++ ){\n\t\t\tfor(int x = 0; x < 3 ; x++){\n\t\t\t\then[x] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(hen);\n\t\t\tif( (hen[2]*hen[2]) == (hen[0]*hen[0] + hen[1]*hen[1]) ){\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}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String[] a){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint[] hen = new int[3];\n\t\tfor(int i = 0 ; i < N ; i ++ ){\n\t\t\tfor(int x = 0; x < 3 ; x++){\n\t\t\t\then[x] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(hen);\n\t\t\tif( (hen[2]*hen[2]) == (hen[0]*hen[0] + hen[1]*hen[1]) ){\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}\n}",
"Main",
"public static void main(String[] a){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint[] hen = new int[3];\n\t\tfor(int i = 0 ; i < N ; i ++ ){\n\t\t\tfor(int x = 0; x < 3 ; x++){\n\t\t\t\then[x] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(hen);\n\t\t\tif( (hen[2]*hen[2]) == (hen[0]*hen[0] + hen[1]*hen[1]) ){\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}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint[] hen = new int[3];\n\t\tfor(int i = 0 ; i < N ; i ++ ){\n\t\t\tfor(int x = 0; x < 3 ; x++){\n\t\t\t\then[x] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(hen);\n\t\t\tif( (hen[2]*hen[2]) == (hen[0]*hen[0] + hen[1]*hen[1]) ){\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}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N = scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int[] hen = new int[3];",
"hen",
"new int[3]",
"3",
"for(int i = 0 ; i < N ; i ++ ){\n\t\t\tfor(int x = 0; x < 3 ; x++){\n\t\t\t\then[x] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(hen);\n\t\t\tif( (hen[2]*hen[2]) == (hen[0]*hen[0] + hen[1]*hen[1]) ){\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\tfor(int x = 0; x < 3 ; x++){\n\t\t\t\then[x] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(hen);\n\t\t\tif( (hen[2]*hen[2]) == (hen[0]*hen[0] + hen[1]*hen[1]) ){\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\tfor(int x = 0; x < 3 ; x++){\n\t\t\t\then[x] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(hen);\n\t\t\tif( (hen[2]*hen[2]) == (hen[0]*hen[0] + hen[1]*hen[1]) ){\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}",
"for(int x = 0; x < 3 ; x++){\n\t\t\t\then[x] = scanner.nextInt();\n\t\t\t}",
"int x = 0;",
"int x = 0;",
"x",
"0",
"x < 3",
"x",
"3",
"x++",
"x++",
"x",
"{\n\t\t\t\then[x] = scanner.nextInt();\n\t\t\t}",
"{\n\t\t\t\then[x] = scanner.nextInt();\n\t\t\t}",
"hen[x] = scanner.nextInt()",
"hen[x]",
"hen",
"x",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"Arrays.sort(hen)",
"Arrays.sort",
"Arrays",
"hen",
"if( (hen[2]*hen[2]) == (hen[0]*hen[0] + hen[1]*hen[1]) ){\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}",
"(hen[2]*hen[2]) == (hen[0]*hen[0] + hen[1]*hen[1])",
"(hen[2]*hen[2])",
"hen[2]",
"hen",
"2",
"hen[2]",
"hen",
"2",
"(hen[0]*hen[0] + hen[1]*hen[1])",
"hen[0]*hen[0]",
"hen[0]",
"hen",
"0",
"hen[0]",
"hen",
"0",
"hen[1]*hen[1]",
"hen[1]",
"hen",
"1",
"hen[1]",
"hen",
"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[] a",
"a"
] | import java.util.*;
class Main{
public static void main(String[] a){
Scanner scanner = new Scanner(System.in);
int N = scanner.nextInt();
int[] hen = new int[3];
for(int i = 0 ; i < N ; i ++ ){
for(int x = 0; x < 3 ; x++){
hen[x] = scanner.nextInt();
}
Arrays.sort(hen);
if( (hen[2]*hen[2]) == (hen[0]*hen[0] + hen[1]*hen[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,
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,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
4,
13,
13,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
4,
13,
13,
13,
13,
30,
0,
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,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
29,
17,
29,
17,
23,
13,
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
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
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
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
64,
67
],
[
64,
68
],
[
53,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
80,
84
],
[
69,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
88,
91
],
[
88,
92
],
[
37,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
93,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
6,
109
],
[
109,
110
],
[
4,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
114,
126
],
[
126,
127
],
[
127,
128
],
[
113,
129
],
[
129,
130
],
[
111,
131
],
[
131,
132
],
[
111,
133
],
[
133,
134
],
[
111,
135
],
[
135,
136
]
] | [
"import java.util.*;\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\tint a, b, c;\n\t\tboolean flg;\n\t\tfor(int i = 0; i < n; 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\t\tflg = pita(a, b, c);\n\t\t\t}else if(b >= a && b >= c){\n\t\t\t\tflg = pita( b, a, c);\n\t\t\t}else{\n\t\t\t\tflg = pita( c, a, b);\n\t\t\t}\n\t\t\tif(flg){\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\tpublic static boolean pita(int a, int b, int c){\n\t\tif( a * a == b * b + c * c){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\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 n = sc.nextInt();\n\t\tint a, b, c;\n\t\tboolean flg;\n\t\tfor(int i = 0; i < n; 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\t\tflg = pita(a, b, c);\n\t\t\t}else if(b >= a && b >= c){\n\t\t\t\tflg = pita( b, a, c);\n\t\t\t}else{\n\t\t\t\tflg = pita( c, a, b);\n\t\t\t}\n\t\t\tif(flg){\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\tpublic static boolean pita(int a, int b, int c){\n\t\tif( a * a == b * b + c * c){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\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, b, c;\n\t\tboolean flg;\n\t\tfor(int i = 0; i < n; 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\t\tflg = pita(a, b, c);\n\t\t\t}else if(b >= a && b >= c){\n\t\t\t\tflg = pita( b, a, c);\n\t\t\t}else{\n\t\t\t\tflg = pita( c, a, b);\n\t\t\t}\n\t\t\tif(flg){\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, b, c;\n\t\tboolean flg;\n\t\tfor(int i = 0; i < n; 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\t\tflg = pita(a, b, c);\n\t\t\t}else if(b >= a && b >= c){\n\t\t\t\tflg = pita( b, a, c);\n\t\t\t}else{\n\t\t\t\tflg = pita( c, a, b);\n\t\t\t}\n\t\t\tif(flg){\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",
"a",
"b",
"b",
"c;",
"c",
"boolean flg;",
"flg",
"for(int i = 0; i < n; 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\t\tflg = pita(a, b, c);\n\t\t\t}else if(b >= a && b >= c){\n\t\t\t\tflg = pita( b, a, c);\n\t\t\t}else{\n\t\t\t\tflg = pita( c, a, b);\n\t\t\t}\n\t\t\tif(flg){\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\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\t\tflg = pita(a, b, c);\n\t\t\t}else if(b >= a && b >= c){\n\t\t\t\tflg = pita( b, a, c);\n\t\t\t}else{\n\t\t\t\tflg = pita( c, a, b);\n\t\t\t}\n\t\t\tif(flg){\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 = 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\t\tflg = pita(a, b, c);\n\t\t\t}else if(b >= a && b >= c){\n\t\t\t\tflg = pita( b, a, c);\n\t\t\t}else{\n\t\t\t\tflg = pita( c, a, b);\n\t\t\t}\n\t\t\tif(flg){\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 = 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\t\tflg = pita(a, b, c);\n\t\t\t}else if(b >= a && b >= c){\n\t\t\t\tflg = pita( b, a, c);\n\t\t\t}else{\n\t\t\t\tflg = pita( c, a, b);\n\t\t\t}",
"a >= b && a >= c",
"a >= b",
"a",
"b",
"a >= c",
"a",
"c",
"{\n\t\t\t\tflg = pita(a, b, c);\n\t\t\t}",
"flg = pita(a, b, c)",
"flg",
"pita(a, b, c)",
"pita",
"a",
"b",
"c",
"if(b >= a && b >= c){\n\t\t\t\tflg = pita( b, a, c);\n\t\t\t}else{\n\t\t\t\tflg = pita( c, a, b);\n\t\t\t}",
"b >= a && b >= c",
"b >= a",
"b",
"a",
"b >= c",
"b",
"c",
"{\n\t\t\t\tflg = pita( b, a, c);\n\t\t\t}",
"flg = pita( b, a, c)",
"flg",
"pita( b, a, c)",
"pita",
"b",
"a",
"c",
"{\n\t\t\t\tflg = pita( c, a, b);\n\t\t\t}",
"flg = pita( c, a, b)",
"flg",
"pita( c, a, b)",
"pita",
"c",
"a",
"b",
"if(flg){\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}",
"flg",
"{\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 boolean pita(int a, int b, int c){\n\t\tif( a * a == b * b + c * c){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"pita",
"{\n\t\tif( a * a == b * b + c * c){\n\t\t\treturn true;\n\t\t}\n\t\treturn false;\n\t}",
"if( a * a == b * b + c * c){\n\t\t\treturn true;\n\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\treturn true;\n\t\t}",
"return true;",
"true",
"return false;",
"false",
"int a",
"a",
"int b",
"b",
"int c",
"c"
] | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a, b, c;
boolean flg;
for(int i = 0; i < n; i++){
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
if(a >= b && a >= c){
flg = pita(a, b, c);
}else if(b >= a && b >= c){
flg = pita( b, a, c);
}else{
flg = pita( c, a, b);
}
if(flg){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
public static boolean pita(int a, int b, int c){
if( a * a == b * b + c * c){
return true;
}
return false;
}
} |
[
7,
15,
13,
17,
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,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
151,
17
],
[
151,
18
],
[
18,
19
],
[
18,
20
],
[
151,
21
],
[
21,
22
],
[
21,
23
],
[
151,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
26,
38
],
[
38,
39
],
[
38,
40
],
[
26,
42
],
[
42,
43
],
[
26,
44
],
[
44,
45
],
[
44,
46
],
[
26,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
47,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
81,
82
],
[
56,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
56,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
91,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
91,
98
],
[
98,
99
],
[
98,
100
],
[
89,
101
],
[
88,
102
],
[
87,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
87,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
114,
116
],
[
111,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
121,
123
],
[
118,
124
],
[
109,
125
],
[
125,
126
],
[
126,
127
],
[
125,
128
],
[
128,
129
],
[
128,
130
],
[
125,
131
],
[
108,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
108,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
138,
141
],
[
26,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
24,
148
],
[
148,
149
],
[
0,
150
],
[
150,
151
],
[
150,
152
]
] | [
"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 final static String NEGATIVE = \"NO\\n\";\n\tprivate final static String AFFIRMATIVE = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);\n\t\tint number = Integer.parseInt(br.readLine());//行数\n\t\tint sides[] = new int[3];\n\t\tStringTokenizer tknz;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (sides[0] * sides[1] * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\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",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\tprivate final static String NEGATIVE = \"NO\\n\";\n\tprivate final static String AFFIRMATIVE = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);\n\t\tint number = Integer.parseInt(br.readLine());//行数\n\t\tint sides[] = new int[3];\n\t\tStringTokenizer tknz;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (sides[0] * sides[1] * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n}",
"Main",
"private final static String NEGATIVE = \"NO\\n\";",
"NEGATIVE",
"\"NO\\n\"",
"private final static String AFFIRMATIVE = \"YES\\n\";",
"AFFIRMATIVE",
"\"YES\\n\"",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);\n\t\tint number = Integer.parseInt(br.readLine());//行数\n\t\tint sides[] = new int[3];\n\t\tStringTokenizer tknz;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (sides[0] * sides[1] * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);\n\t\tint number = Integer.parseInt(br.readLine());//行数\n\t\tint sides[] = new int[3];\n\t\tStringTokenizer tknz;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (sides[0] * sides[1] * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);",
"br",
"new BufferedReader(new InputStreamReader(System.in), 512)",
"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\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (sides[0] * sides[1] * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}",
";",
"0 < number",
"0",
"number",
"number--",
"number--",
"number",
"{\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (sides[0] * sides[1] * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}",
"{\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (sides[0] * sides[1] * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}",
"tknz = new StringTokenizer(br.readLine())",
"tknz",
"new StringTokenizer(br.readLine())",
"for (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}",
"{\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}",
"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[0] * sides[1] * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}",
"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\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t}",
"builder.append(NEGATIVE)",
"builder.append",
"builder",
"NEGATIVE",
"if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}",
"Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.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.pow(sides[2], 2)",
"Math.pow",
"Math",
"sides[2]",
"sides",
"2",
"2",
"{\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t}",
"builder.append(NEGATIVE)",
"builder.append",
"builder",
"NEGATIVE",
"{\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}",
"builder.append(AFFIRMATIVE)",
"builder.append",
"builder",
"AFFIRMATIVE",
"System.out.print(builder)",
"System.out.print",
"System.out",
"System",
"System.out",
"builder",
"String[] args",
"args",
"public class Main {\n\tprivate final static String NEGATIVE = \"NO\\n\";\n\tprivate final static String AFFIRMATIVE = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);\n\t\tint number = Integer.parseInt(br.readLine());//行数\n\t\tint sides[] = new int[3];\n\t\tStringTokenizer tknz;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (sides[0] * sides[1] * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n}",
"public class Main {\n\tprivate final static String NEGATIVE = \"NO\\n\";\n\tprivate final static String AFFIRMATIVE = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);\n\t\tint number = Integer.parseInt(br.readLine());//行数\n\t\tint sides[] = new int[3];\n\t\tStringTokenizer tknz;\n\t\tStringBuilder builder = new StringBuilder();\n\n\t\tfor (; 0 < number; number--) {\n\t\t\ttknz = new StringTokenizer(br.readLine());\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tsides[i] = Integer.parseInt(tknz.nextToken());\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (sides[0] * sides[1] * sides[2] % 60 != 0) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEGATIVE);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFFIRMATIVE);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\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 final static String NEGATIVE = "NO\n";
private final static String AFFIRMATIVE = "YES\n";
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 512);
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[0] * sides[1] * sides[2] % 60 != 0) {
builder.append(NEGATIVE);
} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {
builder.append(NEGATIVE);
} else {
builder.append(AFFIRMATIVE);
}
}
System.out.print(builder);
}
} |
[
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,
30,
4,
18,
13,
30,
41,
13,
41,
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,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
13,
13,
14,
2,
2,
2,
2,
2,
2,
17,
18,
13,
17,
2,
18,
13,
17,
17,
2,
17,
18,
13,
17,
2,
18,
13,
17,
17,
2,
17,
18,
13,
17,
2,
18,
13,
17,
17,
30,
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,
13,
17,
30,
4,
18,
13,
17,
30,
3,
41,
13,
4,
18,
13,
20,
17,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
28,
13,
13,
30,
30,
4,
18,
13,
4,
18,
13,
13,
29,
4,
18,
13,
20,
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
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
27,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
32,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
58,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
58,
75
],
[
75,
76
],
[
80,
77
],
[
101,
78
],
[
96,
79
],
[
91,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
91,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
96,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
101,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
80,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
75,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
111,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
137,
139
],
[
116,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
116,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
75,
150
],
[
150,
151
],
[
32,
152
],
[
152,
153
],
[
152,
154
],
[
154,
155
],
[
155,
156
],
[
154,
157
],
[
32,
159
],
[
159,
160
],
[
159,
161
],
[
159,
162
],
[
163,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
164,
169
],
[
21,
170
],
[
170,
171
],
[
19,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
178,
179
],
[
178,
180
],
[
178,
181
],
[
182,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
183,
186
],
[
186,
187
],
[
187,
188
],
[
186,
189
],
[
174,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
191,
194
],
[
172,
196
],
[
196,
197
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tString s;\n\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tList<String> rightAngleList = new ArrayList<String>();\n\n\t\t\tfor (int i = 1; i <= input; i++) {\n\t\t\t\ts = br.readLine();\n\t\t\t\tString[] num = s.split(\" \");\n\n\t\t\t\tInteger[] side = convertArray(num);\n\n\t\t\t\tif (1 <= side[0] && side[0] <= 1000 && 1 <= side[1]\n\t\t\t\t\t\t&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000) {\n\n\t\t\t\t\tArrays.sort(side);\n\n\t\t\t\t\tif (side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]) {\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString[] rightAngles = rightAngleList.toArray(new String[0]);\n\n\t\t\tfor(String rightAngle : rightAngles){\n\t\t\t\tSystem.out.println(rightAngle);\n\t\t\t}\n\n\n\t\t} finally {\n\t\t\tbr.close();\n\t\t}\n\n\t}\n\n\tpublic static Integer[] convertArray(String[] str) {\n\n\t\tList<Integer> list = new ArrayList<Integer>();\n\n\t\tfor (String num : str) {\n\n\t\t\tlist.add(Integer.parseInt(num));\n\n\t\t}\n\n\t\treturn list.toArray(new Integer[0]);\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tString s;\n\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tList<String> rightAngleList = new ArrayList<String>();\n\n\t\t\tfor (int i = 1; i <= input; i++) {\n\t\t\t\ts = br.readLine();\n\t\t\t\tString[] num = s.split(\" \");\n\n\t\t\t\tInteger[] side = convertArray(num);\n\n\t\t\t\tif (1 <= side[0] && side[0] <= 1000 && 1 <= side[1]\n\t\t\t\t\t\t&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000) {\n\n\t\t\t\t\tArrays.sort(side);\n\n\t\t\t\t\tif (side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]) {\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString[] rightAngles = rightAngleList.toArray(new String[0]);\n\n\t\t\tfor(String rightAngle : rightAngles){\n\t\t\t\tSystem.out.println(rightAngle);\n\t\t\t}\n\n\n\t\t} finally {\n\t\t\tbr.close();\n\t\t}\n\n\t}\n\n\tpublic static Integer[] convertArray(String[] str) {\n\n\t\tList<Integer> list = new ArrayList<Integer>();\n\n\t\tfor (String num : str) {\n\n\t\t\tlist.add(Integer.parseInt(num));\n\n\t\t}\n\n\t\treturn list.toArray(new Integer[0]);\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tString s;\n\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tList<String> rightAngleList = new ArrayList<String>();\n\n\t\t\tfor (int i = 1; i <= input; i++) {\n\t\t\t\ts = br.readLine();\n\t\t\t\tString[] num = s.split(\" \");\n\n\t\t\t\tInteger[] side = convertArray(num);\n\n\t\t\t\tif (1 <= side[0] && side[0] <= 1000 && 1 <= side[1]\n\t\t\t\t\t\t&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000) {\n\n\t\t\t\t\tArrays.sort(side);\n\n\t\t\t\t\tif (side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]) {\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString[] rightAngles = rightAngleList.toArray(new String[0]);\n\n\t\t\tfor(String rightAngle : rightAngles){\n\t\t\t\tSystem.out.println(rightAngle);\n\t\t\t}\n\n\n\t\t} finally {\n\t\t\tbr.close();\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tString s;\n\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tList<String> rightAngleList = new ArrayList<String>();\n\n\t\t\tfor (int i = 1; i <= input; i++) {\n\t\t\t\ts = br.readLine();\n\t\t\t\tString[] num = s.split(\" \");\n\n\t\t\t\tInteger[] side = convertArray(num);\n\n\t\t\t\tif (1 <= side[0] && side[0] <= 1000 && 1 <= side[1]\n\t\t\t\t\t\t&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000) {\n\n\t\t\t\t\tArrays.sort(side);\n\n\t\t\t\t\tif (side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]) {\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString[] rightAngles = rightAngleList.toArray(new String[0]);\n\n\t\t\tfor(String rightAngle : rightAngles){\n\t\t\t\tSystem.out.println(rightAngle);\n\t\t\t}\n\n\n\t\t} finally {\n\t\t\tbr.close();\n\t\t}\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n\t\t\tString s;\n\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tList<String> rightAngleList = new ArrayList<String>();\n\n\t\t\tfor (int i = 1; i <= input; i++) {\n\t\t\t\ts = br.readLine();\n\t\t\t\tString[] num = s.split(\" \");\n\n\t\t\t\tInteger[] side = convertArray(num);\n\n\t\t\t\tif (1 <= side[0] && side[0] <= 1000 && 1 <= side[1]\n\t\t\t\t\t\t&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000) {\n\n\t\t\t\t\tArrays.sort(side);\n\n\t\t\t\t\tif (side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]) {\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString[] rightAngles = rightAngleList.toArray(new String[0]);\n\n\t\t\tfor(String rightAngle : rightAngles){\n\t\t\t\tSystem.out.println(rightAngle);\n\t\t\t}\n\n\n\t\t} finally {\n\t\t\tbr.close();\n\t\t}",
"{\n\t\t\tbr.close();\n\t\t}",
"br.close()",
"br.close",
"br",
"{\n\t\t\tString s;\n\n\t\t\tint input = Integer.parseInt(br.readLine());\n\t\t\tList<String> rightAngleList = new ArrayList<String>();\n\n\t\t\tfor (int i = 1; i <= input; i++) {\n\t\t\t\ts = br.readLine();\n\t\t\t\tString[] num = s.split(\" \");\n\n\t\t\t\tInteger[] side = convertArray(num);\n\n\t\t\t\tif (1 <= side[0] && side[0] <= 1000 && 1 <= side[1]\n\t\t\t\t\t\t&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000) {\n\n\t\t\t\t\tArrays.sort(side);\n\n\t\t\t\t\tif (side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]) {\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tString[] rightAngles = rightAngleList.toArray(new String[0]);\n\n\t\t\tfor(String rightAngle : rightAngles){\n\t\t\t\tSystem.out.println(rightAngle);\n\t\t\t}\n\n\n\t\t}",
"String s;",
"s",
"int input = Integer.parseInt(br.readLine());",
"input",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"List<String> rightAngleList = new ArrayList<String>();",
"rightAngleList",
"new ArrayList<String>()",
"for (int i = 1; i <= input; i++) {\n\t\t\t\ts = br.readLine();\n\t\t\t\tString[] num = s.split(\" \");\n\n\t\t\t\tInteger[] side = convertArray(num);\n\n\t\t\t\tif (1 <= side[0] && side[0] <= 1000 && 1 <= side[1]\n\t\t\t\t\t\t&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000) {\n\n\t\t\t\t\tArrays.sort(side);\n\n\t\t\t\t\tif (side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]) {\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= input",
"i",
"input",
"i++",
"i++",
"i",
"{\n\t\t\t\ts = br.readLine();\n\t\t\t\tString[] num = s.split(\" \");\n\n\t\t\t\tInteger[] side = convertArray(num);\n\n\t\t\t\tif (1 <= side[0] && side[0] <= 1000 && 1 <= side[1]\n\t\t\t\t\t\t&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000) {\n\n\t\t\t\t\tArrays.sort(side);\n\n\t\t\t\t\tif (side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]) {\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\ts = br.readLine();\n\t\t\t\tString[] num = s.split(\" \");\n\n\t\t\t\tInteger[] side = convertArray(num);\n\n\t\t\t\tif (1 <= side[0] && side[0] <= 1000 && 1 <= side[1]\n\t\t\t\t\t\t&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000) {\n\n\t\t\t\t\tArrays.sort(side);\n\n\t\t\t\t\tif (side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]) {\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"s = br.readLine()",
"s",
"br.readLine()",
"br.readLine",
"br",
"String[] num = s.split(\" \");",
"num",
"s.split(\" \")",
"s.split",
"s",
"\" \"",
"Integer[] side = convertArray(num);",
"side",
"convertArray(num)",
"convertArray",
"num",
"if (1 <= side[0] && side[0] <= 1000 && 1 <= side[1]\n\t\t\t\t\t\t&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000) {\n\n\t\t\t\t\tArrays.sort(side);\n\n\t\t\t\t\tif (side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]) {\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}\n\n\t\t\t\t} else {\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"1 <= side[0] && side[0] <= 1000 && 1 <= side[1]\n\t\t\t\t\t\t&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000",
"1 <= side[2]",
"side[1] <= 1000",
"1 <= side[1]",
"1 <= side[0] && side[0] <= 1000 && 1 <= side[1]\n\t\t\t\t\t\t&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000",
"1 <= side[0]",
"1",
"side[0]",
"side",
"0",
"side[0] <= 1000",
"side[0]",
"side",
"0",
"1000",
"1 <= side[1]",
"1",
"side[1]",
"side",
"1",
"side[1] <= 1000",
"side[1]",
"side",
"1",
"1000",
"1 <= side[2]",
"1",
"side[2]",
"side",
"2",
"side[2] <= 1000",
"side[2]",
"side",
"2",
"1000",
"{\n\n\t\t\t\t\tArrays.sort(side);\n\n\t\t\t\t\tif (side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]) {\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}\n\n\t\t\t\t}",
"Arrays.sort(side)",
"Arrays.sort",
"Arrays",
"side",
"if (side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]) {\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t} else {\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}",
"side[2] * side[2] == side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]",
"side[2] * side[2]",
"side[2]",
"side",
"2",
"side[2]",
"side",
"2",
"side[1] * side[1] + side[0]\n\t\t\t\t\t\t\t* side[0]",
"side[1] * side[1]",
"side[1]",
"side",
"1",
"side[1]",
"side",
"1",
"side[0]\n\t\t\t\t\t\t\t* side[0]",
"side[0]",
"side",
"0",
"side[0]",
"side",
"0",
"{\n\n\t\t\t\t\t\trightAngleList.add(\"YES\");\n\n\t\t\t\t\t}",
"rightAngleList.add(\"YES\")",
"rightAngleList.add",
"rightAngleList",
"\"YES\"",
"{\n\t\t\t\t\t\trightAngleList.add(\"NO\");\n\t\t\t\t\t}",
"rightAngleList.add(\"NO\")",
"rightAngleList.add",
"rightAngleList",
"\"NO\"",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"String[] rightAngles = rightAngleList.toArray(new String[0]);",
"rightAngles",
"rightAngleList.toArray(new String[0])",
"rightAngleList.toArray",
"rightAngleList",
"new String[0]",
"0",
"for(String rightAngle : rightAngles){\n\t\t\t\tSystem.out.println(rightAngle);\n\t\t\t}",
"String rightAngle",
"rightAngles",
"{\n\t\t\t\tSystem.out.println(rightAngle);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(rightAngle);\n\t\t\t}",
"System.out.println(rightAngle)",
"System.out.println",
"System.out",
"System",
"System.out",
"rightAngle",
"String[] args",
"args",
"public static Integer[] convertArray(String[] str) {\n\n\t\tList<Integer> list = new ArrayList<Integer>();\n\n\t\tfor (String num : str) {\n\n\t\t\tlist.add(Integer.parseInt(num));\n\n\t\t}\n\n\t\treturn list.toArray(new Integer[0]);\n\n\t}",
"convertArray",
"{\n\n\t\tList<Integer> list = new ArrayList<Integer>();\n\n\t\tfor (String num : str) {\n\n\t\t\tlist.add(Integer.parseInt(num));\n\n\t\t}\n\n\t\treturn list.toArray(new Integer[0]);\n\n\t}",
"List<Integer> list = new ArrayList<Integer>();",
"list",
"new ArrayList<Integer>()",
"for (String num : str) {\n\n\t\t\tlist.add(Integer.parseInt(num));\n\n\t\t}",
"String num",
"str",
"{\n\n\t\t\tlist.add(Integer.parseInt(num));\n\n\t\t}",
"{\n\n\t\t\tlist.add(Integer.parseInt(num));\n\n\t\t}",
"list.add(Integer.parseInt(num))",
"list.add",
"list",
"Integer.parseInt(num)",
"Integer.parseInt",
"Integer",
"num",
"return list.toArray(new Integer[0]);",
"list.toArray(new Integer[0])",
"list.toArray",
"list",
"new Integer[0]",
"0",
"String[] str",
"str"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
String s;
int input = Integer.parseInt(br.readLine());
List<String> rightAngleList = new ArrayList<String>();
for (int i = 1; i <= input; i++) {
s = br.readLine();
String[] num = s.split(" ");
Integer[] side = convertArray(num);
if (1 <= side[0] && side[0] <= 1000 && 1 <= side[1]
&& side[1] <= 1000 && 1 <= side[2] && side[2] <= 1000) {
Arrays.sort(side);
if (side[2] * side[2] == side[1] * side[1] + side[0]
* side[0]) {
rightAngleList.add("YES");
} else {
rightAngleList.add("NO");
}
} else {
break;
}
}
String[] rightAngles = rightAngleList.toArray(new String[0]);
for(String rightAngle : rightAngles){
System.out.println(rightAngle);
}
} finally {
br.close();
}
}
public static Integer[] convertArray(String[] str) {
List<Integer> list = new ArrayList<Integer>();
for (String num : str) {
list.add(Integer.parseInt(num));
}
return list.toArray(new Integer[0]);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
4,
18,
13,
2,
13,
17,
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,
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
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
12,
19
],
[
19,
20
],
[
19,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
12,
25
],
[
26,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
26,
42
],
[
42,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
53,
55
],
[
44,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
44,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
42,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
42,
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;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(int i = sc.nextInt(); i>0; 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\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\telse\n\t\t\t\tSystem.out.println(\"NO\");\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\tfor(int i = sc.nextInt(); i>0; 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\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\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(int i = sc.nextInt(); i>0; 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\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\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(int i = sc.nextInt(); i>0; 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\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\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)",
"for(int i = sc.nextInt(); i>0; 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\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\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}",
"int i = sc.nextInt();",
"int i = sc.nextInt();",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"i>0",
"i",
"0",
"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\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\telse\n\t\t\t\tSystem.out.println(\"NO\");\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\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\telse\n\t\t\t\tSystem.out.println(\"NO\");\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*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\telse\n\t\t\t\tSystem.out.println(\"NO\");",
"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",
"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\tScanner sc = new Scanner(System.in);\n\t\tfor(int i = sc.nextInt(); i>0; 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\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\telse\n\t\t\t\tSystem.out.println(\"NO\");\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\tfor(int i = sc.nextInt(); i>0; 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\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\telse\n\t\t\t\tSystem.out.println(\"NO\");\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);
for(int i = sc.nextInt(); i>0; i--){
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.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,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
42,
4,
18,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
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,
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
],
[
88,
5
],
[
88,
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
],
[
23,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
25,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
25,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
49,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
49,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
6,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
] | [
"import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int x = s.nextInt();\n byte[] a = new byte[3];\n while(s.hasNext()){\n for(int i=0;i<3;i++)\n a[i] = s.nextByte(); \n Arrays.sort(a);\n if(a[2]*a[2] == a[0]*a[0] + a[1]*a[1])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int x = s.nextInt();\n byte[] a = new byte[3];\n while(s.hasNext()){\n for(int i=0;i<3;i++)\n a[i] = s.nextByte(); \n Arrays.sort(a);\n if(a[2]*a[2] == a[0]*a[0] + a[1]*a[1])\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 s = new Scanner(System.in);\n int x = s.nextInt();\n byte[] a = new byte[3];\n while(s.hasNext()){\n for(int i=0;i<3;i++)\n a[i] = s.nextByte(); \n Arrays.sort(a);\n if(a[2]*a[2] == a[0]*a[0] + a[1]*a[1])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n \n }",
"main",
"{\n Scanner s = new Scanner(System.in);\n int x = s.nextInt();\n byte[] a = new byte[3];\n while(s.hasNext()){\n for(int i=0;i<3;i++)\n a[i] = s.nextByte(); \n Arrays.sort(a);\n if(a[2]*a[2] == a[0]*a[0] + a[1]*a[1])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n \n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int x = s.nextInt();",
"x",
"s.nextInt()",
"s.nextInt",
"s",
"byte[] a = new byte[3];",
"a",
"new byte[3]",
"3",
"while(s.hasNext()){\n for(int i=0;i<3;i++)\n a[i] = s.nextByte(); \n Arrays.sort(a);\n if(a[2]*a[2] == a[0]*a[0] + a[1]*a[1])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }",
"s.hasNext()",
"s.hasNext",
"s",
"{\n for(int i=0;i<3;i++)\n a[i] = s.nextByte(); \n Arrays.sort(a);\n if(a[2]*a[2] == a[0]*a[0] + a[1]*a[1])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }",
"for(int i=0;i<3;i++)\n a[i] = s.nextByte();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"a[i] = s.nextByte();",
"a[i] = s.nextByte()",
"a[i]",
"a",
"i",
"s.nextByte()",
"s.nextByte",
"s",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"if(a[2]*a[2] == a[0]*a[0] + a[1]*a[1])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");",
"a[2]*a[2] == a[0]*a[0] + a[1]*a[1]",
"a[2]*a[2]",
"a[2]",
"a",
"2",
"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",
"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 public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int x = s.nextInt();\n byte[] a = new byte[3];\n while(s.hasNext()){\n for(int i=0;i<3;i++)\n a[i] = s.nextByte(); \n Arrays.sort(a);\n if(a[2]*a[2] == a[0]*a[0] + a[1]*a[1])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n \n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int x = s.nextInt();\n byte[] a = new byte[3];\n while(s.hasNext()){\n for(int i=0;i<3;i++)\n a[i] = s.nextByte(); \n Arrays.sort(a);\n if(a[2]*a[2] == a[0]*a[0] + a[1]*a[1])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n \n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int x = s.nextInt();
byte[] a = new byte[3];
while(s.hasNext()){
for(int i=0;i<3;i++)
a[i] = s.nextByte();
Arrays.sort(a);
if(a[2]*a[2] == a[0]*a[0] + a[1]*a[1])
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,
41,
13,
40,
17,
41,
13,
40,
17,
41,
13,
40,
17,
41,
13,
40,
17,
41,
13,
20,
38,
5,
13,
30,
5,
13,
30,
30,
42,
2,
2,
0,
13,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
14,
2,
18,
13,
13,
17,
30,
0,
13,
4,
18,
13,
18,
13,
17,
14,
2,
18,
13,
13,
17,
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,
14,
2,
2,
2,
2,
2,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
2,
13,
17,
30,
4,
18,
13,
17,
30,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
14,
2,
4,
18,
13,
13,
30,
3,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
237,
14
],
[
237,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
17,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
17,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
17,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
17,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
17,
39
],
[
39,
40
],
[
39,
41
],
[
17,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
42,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
51,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
59,
63
],
[
50,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
64,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
83,
85
],
[
71,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
92,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
106,
107
],
[
106,
108
],
[
92,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
114,
115
],
[
114,
116
],
[
92,
117
],
[
117,
118
],
[
122,
119
],
[
135,
120
],
[
132,
121
],
[
129,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
126,
128
],
[
129,
129
],
[
129,
130
],
[
129,
131
],
[
132,
132
],
[
132,
133
],
[
132,
134
],
[
135,
135
],
[
135,
136
],
[
135,
137
],
[
122,
138
],
[
138,
139
],
[
138,
140
],
[
117,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
117,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
152,
154
],
[
147,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
159,
161
],
[
155,
162
],
[
162,
163
],
[
162,
164
],
[
147,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
170,
172
],
[
165,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
177,
178
],
[
177,
179
],
[
173,
180
],
[
180,
181
],
[
180,
182
],
[
165,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
183,
187
],
[
187,
188
],
[
187,
189
],
[
183,
190
],
[
190,
191
],
[
190,
192
],
[
146,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
198,
199
],
[
199,
200
],
[
199,
201
],
[
198,
202
],
[
202,
203
],
[
202,
204
],
[
193,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
206,
209
],
[
193,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
211,
214
],
[
146,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
216,
220
],
[
215,
221
],
[
221,
222
],
[
49,
223
],
[
223,
224
],
[
223,
225
],
[
223,
226
],
[
227,
227
],
[
227,
228
],
[
228,
229
],
[
229,
230
],
[
230,
231
],
[
230,
232
],
[
228,
233
],
[
15,
234
],
[
234,
235
],
[
0,
236
],
[
236,
237
],
[
236,
238
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\n\npublic class Main {\n\t\n public static void main(String[] a){\n \t\n \tBufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint numDS = -1;\n\t\tint aSide = -1;\n\t\tint bSide = -1;\n\t\tint cSide = -1;\n\t\t\n\t\tArrayList <String> results = new ArrayList<String>();\n\t\t\n\t\t//get number of data sets\n \ttry {\n\t\t\twhile ((line = stdin.readLine()) != null && \n\t\t\t\t\tline.length()!= 0) {\n\t\t\t\t\n\t\t\t\tString[] checker = line.split(\" \");\n\t\t\t\t\n\t\t\t\tif (checker.length == 1){\n\t\t\t\t\tnumDS = Integer.parseInt(checker[0]);\n\t\t\t\t} else if (checker.length == 3){\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//print result\n\t\t\tfor (String s: results){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n\t\n public static void main(String[] a){\n \t\n \tBufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint numDS = -1;\n\t\tint aSide = -1;\n\t\tint bSide = -1;\n\t\tint cSide = -1;\n\t\t\n\t\tArrayList <String> results = new ArrayList<String>();\n\t\t\n\t\t//get number of data sets\n \ttry {\n\t\t\twhile ((line = stdin.readLine()) != null && \n\t\t\t\t\tline.length()!= 0) {\n\t\t\t\t\n\t\t\t\tString[] checker = line.split(\" \");\n\t\t\t\t\n\t\t\t\tif (checker.length == 1){\n\t\t\t\t\tnumDS = Integer.parseInt(checker[0]);\n\t\t\t\t} else if (checker.length == 3){\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//print result\n\t\t\tfor (String s: results){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n }\n}",
"Main",
"public static void main(String[] a){\n \t\n \tBufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint numDS = -1;\n\t\tint aSide = -1;\n\t\tint bSide = -1;\n\t\tint cSide = -1;\n\t\t\n\t\tArrayList <String> results = new ArrayList<String>();\n\t\t\n\t\t//get number of data sets\n \ttry {\n\t\t\twhile ((line = stdin.readLine()) != null && \n\t\t\t\t\tline.length()!= 0) {\n\t\t\t\t\n\t\t\t\tString[] checker = line.split(\" \");\n\t\t\t\t\n\t\t\t\tif (checker.length == 1){\n\t\t\t\t\tnumDS = Integer.parseInt(checker[0]);\n\t\t\t\t} else if (checker.length == 3){\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//print result\n\t\t\tfor (String s: results){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n }",
"main",
"{\n \t\n \tBufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint numDS = -1;\n\t\tint aSide = -1;\n\t\tint bSide = -1;\n\t\tint cSide = -1;\n\t\t\n\t\tArrayList <String> results = new ArrayList<String>();\n\t\t\n\t\t//get number of data sets\n \ttry {\n\t\t\twhile ((line = stdin.readLine()) != null && \n\t\t\t\t\tline.length()!= 0) {\n\t\t\t\t\n\t\t\t\tString[] checker = line.split(\" \");\n\t\t\t\t\n\t\t\t\tif (checker.length == 1){\n\t\t\t\t\tnumDS = Integer.parseInt(checker[0]);\n\t\t\t\t} else if (checker.length == 3){\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//print result\n\t\t\tfor (String s: results){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n }",
"BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));",
"stdin",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"int numDS = -1;",
"numDS",
"-1",
"1",
"int aSide = -1;",
"aSide",
"-1",
"1",
"int bSide = -1;",
"bSide",
"-1",
"1",
"int cSide = -1;",
"cSide",
"-1",
"1",
"ArrayList <String> results = new ArrayList<String>();",
"results",
"new ArrayList<String>()",
"try {\n\t\t\twhile ((line = stdin.readLine()) != null && \n\t\t\t\t\tline.length()!= 0) {\n\t\t\t\t\n\t\t\t\tString[] checker = line.split(\" \");\n\t\t\t\t\n\t\t\t\tif (checker.length == 1){\n\t\t\t\t\tnumDS = Integer.parseInt(checker[0]);\n\t\t\t\t} else if (checker.length == 3){\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//print result\n\t\t\tfor (String s: results){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}",
"catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}",
"NumberFormatException e",
"{\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}",
"{\n\t\t\twhile ((line = stdin.readLine()) != null && \n\t\t\t\t\tline.length()!= 0) {\n\t\t\t\t\n\t\t\t\tString[] checker = line.split(\" \");\n\t\t\t\t\n\t\t\t\tif (checker.length == 1){\n\t\t\t\t\tnumDS = Integer.parseInt(checker[0]);\n\t\t\t\t} else if (checker.length == 3){\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//print result\n\t\t\tfor (String s: results){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t}",
"while ((line = stdin.readLine()) != null && \n\t\t\t\t\tline.length()!= 0) {\n\t\t\t\t\n\t\t\t\tString[] checker = line.split(\" \");\n\t\t\t\t\n\t\t\t\tif (checker.length == 1){\n\t\t\t\t\tnumDS = Integer.parseInt(checker[0]);\n\t\t\t\t} else if (checker.length == 3){\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"(line = stdin.readLine()) != null && \n\t\t\t\t\tline.length()!= 0",
"(line = stdin.readLine()) != null",
"(line = stdin.readLine())",
"line",
"stdin.readLine()",
"stdin.readLine",
"stdin",
"null",
"line.length()!= 0",
"line.length()",
"line.length",
"line",
"0",
"{\n\t\t\t\t\n\t\t\t\tString[] checker = line.split(\" \");\n\t\t\t\t\n\t\t\t\tif (checker.length == 1){\n\t\t\t\t\tnumDS = Integer.parseInt(checker[0]);\n\t\t\t\t} else if (checker.length == 3){\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"String[] checker = line.split(\" \");",
"checker",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"if (checker.length == 1){\n\t\t\t\t\tnumDS = Integer.parseInt(checker[0]);\n\t\t\t\t} else if (checker.length == 3){\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"checker.length == 1",
"checker.length",
"checker",
"checker.length",
"1",
"{\n\t\t\t\t\tnumDS = Integer.parseInt(checker[0]);\n\t\t\t\t}",
"numDS = Integer.parseInt(checker[0])",
"numDS",
"Integer.parseInt(checker[0])",
"Integer.parseInt",
"Integer",
"checker[0]",
"checker",
"0",
"if (checker.length == 3){\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"checker.length == 3",
"checker.length",
"checker",
"checker.length",
"3",
"{\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"int temp1 = Integer.parseInt(checker[0]);",
"temp1",
"Integer.parseInt(checker[0])",
"Integer.parseInt",
"Integer",
"checker[0]",
"checker",
"0",
"int temp2 = Integer.parseInt(checker[1]);",
"temp2",
"Integer.parseInt(checker[1])",
"Integer.parseInt",
"Integer",
"checker[1]",
"checker",
"1",
"int temp3 = Integer.parseInt(checker[2]);",
"temp3",
"Integer.parseInt(checker[2])",
"Integer.parseInt",
"Integer",
"checker[2]",
"checker",
"2",
"if (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000",
"temp3 < 1",
"temp2 >1000",
"temp2 < 1",
"temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000",
"temp1 < 1",
"temp1",
"1",
"temp1 >1000",
"temp1",
"1000",
"temp2 < 1",
"temp2",
"1",
"temp2 >1000",
"temp2",
"1000",
"temp3 < 1",
"temp3",
"1",
"temp3 >1000",
"temp3",
"1000",
"{\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t}",
"results.add(\"NO\")",
"results.add",
"results",
"\"NO\"",
"{\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"if (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}",
"temp1 > temp2 && temp1> temp3",
"temp1 > temp2",
"temp1",
"temp2",
"temp1> temp3",
"temp1",
"temp3",
"{\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t}",
"cSide = temp1",
"cSide",
"temp1",
"aSide = temp2",
"aSide",
"temp2",
"bSide = temp3",
"bSide",
"temp3",
"if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}",
"temp2 > temp1 && temp2 > temp3",
"temp2 > temp1",
"temp2",
"temp1",
"temp2 > temp3",
"temp2",
"temp3",
"{\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t}",
"cSide = temp2",
"cSide",
"temp2",
"aSide = temp1",
"aSide",
"temp1",
"bSide = temp3",
"bSide",
"temp3",
"{\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}",
"cSide = temp3",
"cSide",
"temp3",
"aSide = temp2",
"aSide",
"temp2",
"bSide = temp1",
"bSide",
"temp1",
"if ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}",
"(cSide*cSide) == ((aSide*aSide)+(bSide*bSide))",
"(cSide*cSide)",
"cSide",
"cSide",
"((aSide*aSide)+(bSide*bSide))",
"(aSide*aSide)",
"aSide",
"aSide",
"(bSide*bSide)",
"bSide",
"bSide",
"{\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t}",
"results.add(\"YES\")",
"results.add",
"results",
"\"YES\"",
"{\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}",
"results.add(\"NO\")",
"results.add",
"results",
"\"NO\"",
"if (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"results.size() == numDS",
"results.size()",
"results.size",
"results",
"numDS",
"{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"break;",
"for (String s: results){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}",
"String s",
"results",
"{\n\t\t\t\tSystem.out.println(s);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(s);\n\t\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] a",
"a",
"public class Main {\n\t\n public static void main(String[] a){\n \t\n \tBufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint numDS = -1;\n\t\tint aSide = -1;\n\t\tint bSide = -1;\n\t\tint cSide = -1;\n\t\t\n\t\tArrayList <String> results = new ArrayList<String>();\n\t\t\n\t\t//get number of data sets\n \ttry {\n\t\t\twhile ((line = stdin.readLine()) != null && \n\t\t\t\t\tline.length()!= 0) {\n\t\t\t\t\n\t\t\t\tString[] checker = line.split(\" \");\n\t\t\t\t\n\t\t\t\tif (checker.length == 1){\n\t\t\t\t\tnumDS = Integer.parseInt(checker[0]);\n\t\t\t\t} else if (checker.length == 3){\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//print result\n\t\t\tfor (String s: results){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n }\n}",
"public class Main {\n\t\n public static void main(String[] a){\n \t\n \tBufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint numDS = -1;\n\t\tint aSide = -1;\n\t\tint bSide = -1;\n\t\tint cSide = -1;\n\t\t\n\t\tArrayList <String> results = new ArrayList<String>();\n\t\t\n\t\t//get number of data sets\n \ttry {\n\t\t\twhile ((line = stdin.readLine()) != null && \n\t\t\t\t\tline.length()!= 0) {\n\t\t\t\t\n\t\t\t\tString[] checker = line.split(\" \");\n\t\t\t\t\n\t\t\t\tif (checker.length == 1){\n\t\t\t\t\tnumDS = Integer.parseInt(checker[0]);\n\t\t\t\t} else if (checker.length == 3){\n\t\t\t\t\n\t\t\t\t\tint temp1 = Integer.parseInt(checker[0]);\n\t\t\t\t\tint temp2 = Integer.parseInt(checker[1]);\n\t\t\t\t\tint temp3 = Integer.parseInt(checker[2]);\n\t\t\t\t\t\n\t\t\t\t\tif (temp1 < 1 || temp1 >1000 ||\n\t\t\t\t\t\ttemp2 < 1 || temp2 >1000 ||\n\t\t\t\t\t\ttemp3 < 1 || temp3 >1000){\n\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t} else {\n\t\t\t\t\t\t//get the highest number and place to cSide\n\t\t\t\t\t\tif (temp1 > temp2 && temp1> temp3){\n\t\t\t\t\t\t\tcSide = temp1;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else if (temp2 > temp1 && temp2 > temp3){\n\t\t\t\t\t\t\tcSide = temp2;\n\t\t\t\t\t\t\taSide = temp1;\n\t\t\t\t\t\t\tbSide = temp3;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tcSide = temp3;\n\t\t\t\t\t\t\taSide = temp2;\n\t\t\t\t\t\t\tbSide = temp1;\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\t//Pythagorean\n\t\t\t\t\t\tif ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){\n\t\t\t\t\t\t\tresults.add(\"YES\");\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tresults.add(\"NO\");\n\t\t\t\t\t\t}\n\t\t\t\t\t\t\n\t\t\t\t\t\tif (results.size() == numDS){\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t//print result\n\t\t\tfor (String s: results){\n\t\t\t\tSystem.out.println(s);\n\t\t\t}\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\t//e.printStackTrace();\n\t\t}\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String[] a){
BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));
String line;
int numDS = -1;
int aSide = -1;
int bSide = -1;
int cSide = -1;
ArrayList <String> results = new ArrayList<String>();
//get number of data sets
try {
while ((line = stdin.readLine()) != null &&
line.length()!= 0) {
String[] checker = line.split(" ");
if (checker.length == 1){
numDS = Integer.parseInt(checker[0]);
} else if (checker.length == 3){
int temp1 = Integer.parseInt(checker[0]);
int temp2 = Integer.parseInt(checker[1]);
int temp3 = Integer.parseInt(checker[2]);
if (temp1 < 1 || temp1 >1000 ||
temp2 < 1 || temp2 >1000 ||
temp3 < 1 || temp3 >1000){
results.add("NO");
} else {
//get the highest number and place to cSide
if (temp1 > temp2 && temp1> temp3){
cSide = temp1;
aSide = temp2;
bSide = temp3;
} else if (temp2 > temp1 && temp2 > temp3){
cSide = temp2;
aSide = temp1;
bSide = temp3;
} else {
cSide = temp3;
aSide = temp2;
bSide = temp1;
}
//Pythagorean
if ((cSide*cSide) == ((aSide*aSide)+(bSide*bSide))){
results.add("YES");
} else {
results.add("NO");
}
if (results.size() == numDS){
break;
}
}
}
}
//print result
for (String s: results){
System.out.println(s);
}
} catch (NumberFormatException e) {
// TODO Auto-generated catch block
//e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
//e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
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,
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,
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,
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
],
[
148,
5
],
[
148,
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
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
54,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
54,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
45,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
89,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
89,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
80,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
116,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
116,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
8,
142
],
[
142,
143
],
[
143,
144
],
[
6,
145
],
[
145,
146
],
[
0,
147
],
[
147,
148
],
[
147,
149
]
] | [
"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 N = sc.nextInt();\n\t\t\n\t\tfor(int i=1; 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\tif(a < c && b < c) {\n\t\t\t\tif(c * c == a * a + b * 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\t\t\t} else if(a < b && c < b) {\n\t\t\t\tif(b * b == a * a + 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(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}\n\t\t}\n\t\tsc.close();\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\t\n\t\tfor(int i=1; 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\tif(a < c && b < c) {\n\t\t\t\tif(c * c == a * a + b * 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\t\t\t} else if(a < b && c < b) {\n\t\t\t\tif(b * b == a * a + 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(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}\n\t\t}\n\t\tsc.close();\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\t\n\t\tfor(int i=1; 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\tif(a < c && b < c) {\n\t\t\t\tif(c * c == a * a + b * 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\t\t\t} else if(a < b && c < b) {\n\t\t\t\tif(b * b == a * a + 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(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}\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\t\n\t\tfor(int i=1; 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\tif(a < c && b < c) {\n\t\t\t\tif(c * c == a * a + b * 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\t\t\t} else if(a < b && c < b) {\n\t\t\t\tif(b * b == a * a + 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(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}\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=1; 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\tif(a < c && b < c) {\n\t\t\t\tif(c * c == a * a + b * 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\t\t\t} else if(a < b && c < b) {\n\t\t\t\tif(b * b == a * a + 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(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}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"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\tif(a < c && b < c) {\n\t\t\t\tif(c * c == a * a + b * 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\t\t\t} else if(a < b && c < b) {\n\t\t\t\tif(b * b == a * a + 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(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}\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\tif(a < c && b < c) {\n\t\t\t\tif(c * c == a * a + b * 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\t\t\t} else if(a < b && c < b) {\n\t\t\t\tif(b * b == a * a + 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(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}\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 < c && b < c) {\n\t\t\t\tif(c * c == a * a + b * 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\t\t\t} else if(a < b && c < b) {\n\t\t\t\tif(b * b == a * a + 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(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}",
"a < c && b < c",
"a < c",
"a",
"c",
"b < c",
"b",
"c",
"{\n\t\t\t\tif(c * c == a * a + b * 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\t\t\t}",
"if(c * c == a * a + b * 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}",
"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\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\"",
"if(a < b && c < b) {\n\t\t\t\tif(b * b == a * a + 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(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}",
"a < b && c < b",
"a < b",
"a",
"b",
"c < b",
"c",
"b",
"{\n\t\t\t\tif(b * b == a * a + 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(b * b == a * a + 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}",
"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\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(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\"",
"sc.close()",
"sc.close",
"sc",
"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\t\n\t\tfor(int i=1; 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\tif(a < c && b < c) {\n\t\t\t\tif(c * c == a * a + b * 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\t\t\t} else if(a < b && c < b) {\n\t\t\t\tif(b * b == a * a + 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(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}\n\t\t}\n\t\tsc.close();\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\t\n\t\tfor(int i=1; 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\tif(a < c && b < c) {\n\t\t\t\tif(c * c == a * a + b * 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\t\t\t} else if(a < b && c < b) {\n\t\t\t\tif(b * b == a * a + 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(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}\n\t\t}\n\t\tsc.close();\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=1; i<=N; i++) {
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a < c && b < c) {
if(c * c == a * a + b * b) {
System.out.println("YES");
} else {
System.out.println("NO");
}
} else if(a < b && c < b) {
if(b * b == a * a + c * c) {
System.out.println("YES");
} else {
System.out.println("NO");
}
} else {
if(a * a == b * b + c * c) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
sc.close();
}
} |
[
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,
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,
41,
13,
39,
13,
13,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
17,
29,
2,
2,
13,
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
],
[
123,
8
],
[
123,
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
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
32,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
49,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
48,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
9,
68
],
[
68,
69
],
[
123,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
75,
78
],
[
72,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
72,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
85,
91
],
[
72,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
94,
100
],
[
72,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
106,
107
],
[
106,
108
],
[
103,
109
],
[
72,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
70,
116
],
[
116,
117
],
[
70,
118
],
[
118,
119
],
[
70,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
] | [
"import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int num = scanner.nextInt();\n for (int i = 0; i < num; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n if (isRightTriAngle(a, b, c)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n static boolean isRightTriAngle(int side_a, int side_b, int side_c) {\n int[] sides = { side_a, side_b, side_c };\n Arrays.sort(sides);\n\n int a_2 = (int)Math.pow(sides[0], 2);\n int b_2 = (int)Math.pow(sides[1], 2);\n int c_2 = (int)Math.pow(sides[2], 2);\n\n return a_2 + b_2 == c_2;\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int num = scanner.nextInt();\n for (int i = 0; i < num; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n if (isRightTriAngle(a, b, c)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n static boolean isRightTriAngle(int side_a, int side_b, int side_c) {\n int[] sides = { side_a, side_b, side_c };\n Arrays.sort(sides);\n\n int a_2 = (int)Math.pow(sides[0], 2);\n int b_2 = (int)Math.pow(sides[1], 2);\n int c_2 = (int)Math.pow(sides[2], 2);\n\n return a_2 + b_2 == c_2;\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int num = scanner.nextInt();\n for (int i = 0; i < num; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n if (isRightTriAngle(a, b, c)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int num = scanner.nextInt();\n for (int i = 0; i < num; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n if (isRightTriAngle(a, b, c)) {\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 num = scanner.nextInt();",
"num",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i = 0; i < num; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n if (isRightTriAngle(a, b, c)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n if (isRightTriAngle(a, b, c)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"{\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n if (isRightTriAngle(a, b, c)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"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 (isRightTriAngle(a, b, c)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }",
"isRightTriAngle(a, b, c)",
"isRightTriAngle",
"a",
"b",
"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",
"static boolean isRightTriAngle(int side_a, int side_b, int side_c) {\n int[] sides = { side_a, side_b, side_c };\n Arrays.sort(sides);\n\n int a_2 = (int)Math.pow(sides[0], 2);\n int b_2 = (int)Math.pow(sides[1], 2);\n int c_2 = (int)Math.pow(sides[2], 2);\n\n return a_2 + b_2 == c_2;\n }",
"isRightTriAngle",
"{\n int[] sides = { side_a, side_b, side_c };\n Arrays.sort(sides);\n\n int a_2 = (int)Math.pow(sides[0], 2);\n int b_2 = (int)Math.pow(sides[1], 2);\n int c_2 = (int)Math.pow(sides[2], 2);\n\n return a_2 + b_2 == c_2;\n }",
"int[] sides = { side_a, side_b, side_c };",
"sides",
"{ side_a, side_b, side_c }",
"side_a",
"side_b",
"side_c",
"Arrays.sort(sides)",
"Arrays.sort",
"Arrays",
"sides",
"int a_2 = (int)Math.pow(sides[0], 2);",
"a_2",
"(int)Math.pow(sides[0], 2)",
"Math.pow",
"Math",
"sides[0]",
"sides",
"0",
"2",
"int b_2 = (int)Math.pow(sides[1], 2);",
"b_2",
"(int)Math.pow(sides[1], 2)",
"Math.pow",
"Math",
"sides[1]",
"sides",
"1",
"2",
"int c_2 = (int)Math.pow(sides[2], 2);",
"c_2",
"(int)Math.pow(sides[2], 2)",
"Math.pow",
"Math",
"sides[2]",
"sides",
"2",
"2",
"return a_2 + b_2 == c_2;",
"a_2 + b_2 == c_2",
"a_2 + b_2",
"a_2",
"b_2",
"c_2",
"int side_a",
"side_a",
"int side_b",
"side_b",
"int side_c",
"side_c",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int num = scanner.nextInt();\n for (int i = 0; i < num; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n if (isRightTriAngle(a, b, c)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n static boolean isRightTriAngle(int side_a, int side_b, int side_c) {\n int[] sides = { side_a, side_b, side_c };\n Arrays.sort(sides);\n\n int a_2 = (int)Math.pow(sides[0], 2);\n int b_2 = (int)Math.pow(sides[1], 2);\n int c_2 = (int)Math.pow(sides[2], 2);\n\n return a_2 + b_2 == c_2;\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int num = scanner.nextInt();\n for (int i = 0; i < num; i++) {\n int a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n if (isRightTriAngle(a, b, c)) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n }\n\n static boolean isRightTriAngle(int side_a, int side_b, int side_c) {\n int[] sides = { side_a, side_b, side_c };\n Arrays.sort(sides);\n\n int a_2 = (int)Math.pow(sides[0], 2);\n int b_2 = (int)Math.pow(sides[1], 2);\n int c_2 = (int)Math.pow(sides[2], 2);\n\n return a_2 + b_2 == c_2;\n }\n\n}",
"Main"
] | import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int num = scanner.nextInt();
for (int i = 0; i < num; i++) {
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
if (isRightTriAngle(a, b, c)) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
static boolean isRightTriAngle(int side_a, int side_b, int side_c) {
int[] sides = { side_a, side_b, side_c };
Arrays.sort(sides);
int a_2 = (int)Math.pow(sides[0], 2);
int b_2 = (int)Math.pow(sides[1], 2);
int c_2 = (int)Math.pow(sides[2], 2);
return a_2 + b_2 == c_2;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
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
],
[
106,
8
],
[
106,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
16
],
[
16,
17
],
[
16,
18
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
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
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
66,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
65,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
65,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
9,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] arg) {\n\t\tint[] a=new int[3];\n\t\tint n=0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tfor (int j=0;j<n;j++) {\n\t\t\ta[0] = scan.nextInt();\n\t\t\ta[1] = scan.nextInt();\n\t\t\ta[2] = scan.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.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] arg) {\n\t\tint[] a=new int[3];\n\t\tint n=0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tfor (int j=0;j<n;j++) {\n\t\t\ta[0] = scan.nextInt();\n\t\t\ta[1] = scan.nextInt();\n\t\t\ta[2] = scan.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[] arg) {\n\t\tint[] a=new int[3];\n\t\tint n=0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tfor (int j=0;j<n;j++) {\n\t\t\ta[0] = scan.nextInt();\n\t\t\ta[1] = scan.nextInt();\n\t\t\ta[2] = scan.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\tint[] a=new int[3];\n\t\tint n=0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tfor (int j=0;j<n;j++) {\n\t\t\ta[0] = scan.nextInt();\n\t\t\ta[1] = scan.nextInt();\n\t\t\ta[2] = scan.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}",
"int[] a=new int[3];",
"a",
"new int[3]",
"3",
"int n=0;",
"n",
"0",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"n=scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int j=0;j<n;j++) {\n\t\t\ta[0] = scan.nextInt();\n\t\t\ta[1] = scan.nextInt();\n\t\t\ta[2] = scan.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 j=0;",
"int j=0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t\t\ta[0] = scan.nextInt();\n\t\t\ta[1] = scan.nextInt();\n\t\t\ta[2] = scan.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\ta[0] = scan.nextInt();\n\t\t\ta[1] = scan.nextInt();\n\t\t\ta[2] = scan.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}",
"a[0] = scan.nextInt()",
"a[0]",
"a",
"0",
"scan.nextInt()",
"scan.nextInt",
"scan",
"a[1] = scan.nextInt()",
"a[1]",
"a",
"1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"a[2] = scan.nextInt()",
"a[2]",
"a",
"2",
"scan.nextInt()",
"scan.nextInt",
"scan",
"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[] arg",
"arg",
"public class Main {\n\tpublic static void main(String[] arg) {\n\t\tint[] a=new int[3];\n\t\tint n=0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tfor (int j=0;j<n;j++) {\n\t\t\ta[0] = scan.nextInt();\n\t\t\ta[1] = scan.nextInt();\n\t\t\ta[2] = scan.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}",
"public class Main {\n\tpublic static void main(String[] arg) {\n\t\tint[] a=new int[3];\n\t\tint n=0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tfor (int j=0;j<n;j++) {\n\t\t\ta[0] = scan.nextInt();\n\t\t\ta[1] = scan.nextInt();\n\t\t\ta[2] = scan.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"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] arg) {
int[] a=new int[3];
int n=0;
Scanner scan = new Scanner(System.in);
n=scan.nextInt();
for (int j=0;j<n;j++) {
a[0] = scan.nextInt();
a[1] = scan.nextInt();
a[2] = scan.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,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
17,
41,
13,
20,
0,
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,
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
],
[
11,
14
],
[
14,
15
],
[
14,
16
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
11,
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
],
[
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
],
[
38,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
38,
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
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint dataset;\n\t\tint[] data = new int[3];\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdataset = scanner.nextInt();\n\t\tfor(int i=0; i<dataset; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tdata[j] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\tif(data[2]*data[2] == (data[0]*data[0] + data[1]*data[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.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tint dataset;\n\t\tint[] data = new int[3];\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdataset = scanner.nextInt();\n\t\tfor(int i=0; i<dataset; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tdata[j] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\tif(data[2]*data[2] == (data[0]*data[0] + data[1]*data[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) {\n\t\tint dataset;\n\t\tint[] data = new int[3];\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdataset = scanner.nextInt();\n\t\tfor(int i=0; i<dataset; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tdata[j] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\tif(data[2]*data[2] == (data[0]*data[0] + data[1]*data[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\tint dataset;\n\t\tint[] data = new int[3];\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdataset = scanner.nextInt();\n\t\tfor(int i=0; i<dataset; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tdata[j] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\tif(data[2]*data[2] == (data[0]*data[0] + data[1]*data[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}",
"int dataset;",
"dataset",
"int[] data = new int[3];",
"data",
"new int[3]",
"3",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"dataset = scanner.nextInt()",
"dataset",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i=0; i<dataset; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tdata[j] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\tif(data[2]*data[2] == (data[0]*data[0] + data[1]*data[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<dataset",
"i",
"dataset",
"i++",
"i++",
"i",
"{\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tdata[j] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\tif(data[2]*data[2] == (data[0]*data[0] + data[1]*data[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\tfor(int j=0; j<3; j++){\n\t\t\t\tdata[j] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\tif(data[2]*data[2] == (data[0]*data[0] + data[1]*data[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}",
"for(int j=0; j<3; j++){\n\t\t\t\tdata[j] = scanner.nextInt();\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tdata[j] = scanner.nextInt();\n\t\t\t}",
"{\n\t\t\t\tdata[j] = scanner.nextInt();\n\t\t\t}",
"data[j] = scanner.nextInt()",
"data[j]",
"data",
"j",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"Arrays.sort(data)",
"Arrays.sort",
"Arrays",
"data",
"if(data[2]*data[2] == (data[0]*data[0] + data[1]*data[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}",
"data[2]*data[2] == (data[0]*data[0] + data[1]*data[1])",
"data[2]*data[2]",
"data[2]",
"data",
"2",
"data[2]",
"data",
"2",
"(data[0]*data[0] + data[1]*data[1])",
"data[0]*data[0]",
"data[0]",
"data",
"0",
"data[0]",
"data",
"0",
"data[1]*data[1]",
"data[1]",
"data",
"1",
"data[1]",
"data",
"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) {\n\t\tint dataset;\n\t\tint[] data = new int[3];\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdataset = scanner.nextInt();\n\t\tfor(int i=0; i<dataset; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tdata[j] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\tif(data[2]*data[2] == (data[0]*data[0] + data[1]*data[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) {\n\t\tint dataset;\n\t\tint[] data = new int[3];\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdataset = scanner.nextInt();\n\t\tfor(int i=0; i<dataset; i++){\n\t\t\tfor(int j=0; j<3; j++){\n\t\t\t\tdata[j] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\tif(data[2]*data[2] == (data[0]*data[0] + data[1]*data[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.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int dataset;
int[] data = new int[3];
Scanner scanner = new Scanner(System.in);
dataset = scanner.nextInt();
for(int i=0; i<dataset; i++){
for(int j=0; j<3; j++){
data[j] = scanner.nextInt();
}
Arrays.sort(data);
if(data[2]*data[2] == (data[0]*data[0] + data[1]*data[1])){
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,
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,
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
],
[
124,
8
],
[
124,
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
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
19,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
46,
51
],
[
43,
52
],
[
52,
53
],
[
52,
54
],
[
43,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
56,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
43,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
43,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
84,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
104,
106
],
[
83,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
83,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
9,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
] | [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint T = Integer.parseInt(in.readLine());\n\t\t\tfor (int i = 0; i < T; i++) {\n\t\t\t\tString[] sar = in.readLine().split(\" \");\n\t\t\t\tint[] side = new int[3];\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}\n\t\t\t\tArrays.sort(side);\n\t\t\t\tif (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {\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}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\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\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint T = Integer.parseInt(in.readLine());\n\t\t\tfor (int i = 0; i < T; i++) {\n\t\t\t\tString[] sar = in.readLine().split(\" \");\n\t\t\t\tint[] side = new int[3];\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}\n\t\t\t\tArrays.sort(side);\n\t\t\t\tif (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {\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}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint T = Integer.parseInt(in.readLine());\n\t\t\tfor (int i = 0; i < T; i++) {\n\t\t\t\tString[] sar = in.readLine().split(\" \");\n\t\t\t\tint[] side = new int[3];\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}\n\t\t\t\tArrays.sort(side);\n\t\t\t\tif (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {\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}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint T = Integer.parseInt(in.readLine());\n\t\t\tfor (int i = 0; i < T; i++) {\n\t\t\t\tString[] sar = in.readLine().split(\" \");\n\t\t\t\tint[] side = new int[3];\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}\n\t\t\t\tArrays.sort(side);\n\t\t\t\tif (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {\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}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"try {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint T = Integer.parseInt(in.readLine());\n\t\t\tfor (int i = 0; i < T; i++) {\n\t\t\t\tString[] sar = in.readLine().split(\" \");\n\t\t\t\tint[] side = new int[3];\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}\n\t\t\t\tArrays.sort(side);\n\t\t\t\tif (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {\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}\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\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint T = Integer.parseInt(in.readLine());\n\t\t\tfor (int i = 0; i < T; i++) {\n\t\t\t\tString[] sar = in.readLine().split(\" \");\n\t\t\t\tint[] side = new int[3];\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}\n\t\t\t\tArrays.sort(side);\n\t\t\t\tif (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {\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}\n\t\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int T = Integer.parseInt(in.readLine());",
"T",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"for (int i = 0; i < T; i++) {\n\t\t\t\tString[] sar = in.readLine().split(\" \");\n\t\t\t\tint[] side = new int[3];\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}\n\t\t\t\tArrays.sort(side);\n\t\t\t\tif (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {\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}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < T",
"i",
"T",
"i++",
"i++",
"i",
"{\n\t\t\t\tString[] sar = in.readLine().split(\" \");\n\t\t\t\tint[] side = new int[3];\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}\n\t\t\t\tArrays.sort(side);\n\t\t\t\tif (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {\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}",
"{\n\t\t\t\tString[] sar = in.readLine().split(\" \");\n\t\t\t\tint[] side = new int[3];\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}\n\t\t\t\tArrays.sort(side);\n\t\t\t\tif (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {\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}",
"String[] sar = in.readLine().split(\" \");",
"sar",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"int[] side = new int[3];",
"side",
"new int[3]",
"3",
"for (int j = 0; j < 3; j++) {\n\t\t\t\t\tside[j] = Integer.parseInt(sar[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\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}",
"{\n\t\t\t\t\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}",
"side[j] = Integer.parseInt(sar[j])",
"side[j]",
"side",
"j",
"Integer.parseInt(sar[j])",
"Integer.parseInt",
"Integer",
"sar[j]",
"sar",
"j",
"Arrays.sort(side)",
"Arrays.sort",
"Arrays",
"side",
"if (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {\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}",
"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\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\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint T = Integer.parseInt(in.readLine());\n\t\t\tfor (int i = 0; i < T; i++) {\n\t\t\t\tString[] sar = in.readLine().split(\" \");\n\t\t\t\tint[] side = new int[3];\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}\n\t\t\t\tArrays.sort(side);\n\t\t\t\tif (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {\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}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint T = Integer.parseInt(in.readLine());\n\t\t\tfor (int i = 0; i < T; i++) {\n\t\t\t\tString[] sar = in.readLine().split(\" \");\n\t\t\t\tint[] side = new int[3];\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside[j] = Integer.parseInt(sar[j]);\n\t\t\t\t}\n\t\t\t\tArrays.sort(side);\n\t\t\t\tif (side[0] * side[0] + side[1] * side[1] == side[2] * side[2]) {\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}\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n}",
"Main"
] | import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
try {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int T = Integer.parseInt(in.readLine());
for (int i = 0; i < T; i++) {
String[] sar = in.readLine().split(" ");
int[] side = new int[3];
for (int j = 0; j < 3; j++) {
side[j] = Integer.parseInt(sar[j]);
}
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");
}
}
} catch (Exception e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
42,
4,
18,
13,
30,
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,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
41,
13,
0,
13,
18,
13,
13,
0,
18,
13,
13,
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,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
16,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
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
],
[
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
],
[
38,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
71,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
72,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
82,
83
],
[
83,
84
],
[
72,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
95,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
38,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
129,
131
],
[
124,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
136,
138
],
[
115,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
115,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
6,
151
],
[
151,
152
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int[] data = new int[3];\n while (scan.hasNext()) {\n int n=scan.nextInt();\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < 3; j++) {\n data[j] = scan.nextInt();\n }\n for (int j = 0; j < 2; j++) {\n for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }\n }\n if (data[0] * data[0] == data[1] * data[1] + data[2] * data[2])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int[] data = new int[3];\n while (scan.hasNext()) {\n int n=scan.nextInt();\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < 3; j++) {\n data[j] = scan.nextInt();\n }\n for (int j = 0; j < 2; j++) {\n for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }\n }\n if (data[0] * data[0] == data[1] * data[1] + data[2] * data[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 scan = new Scanner(System.in);\n int[] data = new int[3];\n while (scan.hasNext()) {\n int n=scan.nextInt();\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < 3; j++) {\n data[j] = scan.nextInt();\n }\n for (int j = 0; j < 2; j++) {\n for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }\n }\n if (data[0] * data[0] == data[1] * data[1] + data[2] * data[2])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int[] data = new int[3];\n while (scan.hasNext()) {\n int n=scan.nextInt();\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < 3; j++) {\n data[j] = scan.nextInt();\n }\n for (int j = 0; j < 2; j++) {\n for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }\n }\n if (data[0] * data[0] == data[1] * data[1] + data[2] * data[2])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[] data = new int[3];",
"data",
"new int[3]",
"3",
"while (scan.hasNext()) {\n int n=scan.nextInt();\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < 3; j++) {\n data[j] = scan.nextInt();\n }\n for (int j = 0; j < 2; j++) {\n for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }\n }\n if (data[0] * data[0] == data[1] * data[1] + data[2] * data[2])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n }",
"scan.hasNext()",
"scan.hasNext",
"scan",
"{\n int n=scan.nextInt();\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < 3; j++) {\n data[j] = scan.nextInt();\n }\n for (int j = 0; j < 2; j++) {\n for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }\n }\n if (data[0] * data[0] == data[1] * data[1] + data[2] * data[2])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n }",
"int n=scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < n; i++) {\n for (int j = 0; j < 3; j++) {\n data[j] = scan.nextInt();\n }\n for (int j = 0; j < 2; j++) {\n for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }\n }\n if (data[0] * data[0] == data[1] * data[1] + data[2] * data[2])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 3; j++) {\n data[j] = scan.nextInt();\n }\n for (int j = 0; j < 2; j++) {\n for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }\n }\n if (data[0] * data[0] == data[1] * data[1] + data[2] * data[2])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }",
"{\n for (int j = 0; j < 3; j++) {\n data[j] = scan.nextInt();\n }\n for (int j = 0; j < 2; j++) {\n for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }\n }\n if (data[0] * data[0] == data[1] * data[1] + data[2] * data[2])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }",
"for (int j = 0; j < 3; j++) {\n data[j] = scan.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n data[j] = scan.nextInt();\n }",
"{\n data[j] = scan.nextInt();\n }",
"data[j] = scan.nextInt()",
"data[j]",
"data",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int j = 0; j < 2; j++) {\n for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 2",
"j",
"2",
"j++",
"j++",
"j",
"{\n for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }\n }",
"{\n for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }\n }",
"for (int k = j + 1; k < 3; k++) {\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }",
"int k = j + 1;",
"int k = j + 1;",
"k",
"j + 1",
"j",
"1",
"k < 3",
"k",
"3",
"k++",
"k++",
"k",
"{\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }",
"{\n if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }\n }",
"if (data[j] < data[k]) {\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }",
"data[j] < data[k]",
"data[j]",
"data",
"j",
"data[k]",
"data",
"k",
"{\n int tmp;\n tmp = data[j];\n data[j] = data[k];\n data[k] = tmp;\n }",
"int tmp;",
"tmp",
"tmp = data[j]",
"tmp",
"data[j]",
"data",
"j",
"data[j] = data[k]",
"data[j]",
"data",
"j",
"data[k]",
"data",
"k",
"data[k] = tmp",
"data[k]",
"data",
"k",
"tmp",
"if (data[0] * data[0] == data[1] * data[1] + data[2] * data[2])\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");",
"data[0] * data[0] == data[1] * data[1] + data[2] * data[2]",
"data[0] * data[0]",
"data[0]",
"data",
"0",
"data[0]",
"data",
"0",
"data[1] * data[1] + data[2] * data[2]",
"data[1] * data[1]",
"data[1]",
"data",
"1",
"data[1]",
"data",
"1",
"data[2] * data[2]",
"data[2]",
"data",
"2",
"data[2]",
"data",
"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.util.Scanner;
class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int[] data = new int[3];
while (scan.hasNext()) {
int n=scan.nextInt();
for (int i = 0; i < n; i++) {
for (int j = 0; j < 3; j++) {
data[j] = scan.nextInt();
}
for (int j = 0; j < 2; j++) {
for (int k = j + 1; k < 3; k++) {
if (data[j] < data[k]) {
int tmp;
tmp = data[j];
data[j] = data[k];
data[k] = tmp;
}
}
}
if (data[0] * data[0] == data[1] * data[1] + data[2] * data[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,
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,
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,
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
],
[
126,
14
],
[
126,
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
],
[
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
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
91,
93
],
[
88,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
95,
101
],
[
86,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
105,
107
],
[
102,
108
],
[
85,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
85,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
15,
123
],
[
123,
124
],
[
0,
125
],
[
125,
126
],
[
125,
127
]
] | [
"import 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 IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] sides = new int[str.length];\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tsides[j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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}",
"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 IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] sides = new int[str.length];\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tsides[j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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 IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] sides = new int[str.length];\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tsides[j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] sides = new int[str.length];\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tsides[j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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))",
"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[] str = br.readLine().split(\" \");\n\t\t\tint[] sides = new int[str.length];\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tsides[j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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 i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] sides = new int[str.length];\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tsides[j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] sides = new int[str.length];\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tsides[j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int[] sides = new int[str.length];",
"sides",
"new int[str.length]",
"str.length",
"str",
"str.length",
"for (int j = 0; j < str.length; j++) {\n\t\t\t\tsides[j] = Integer.parseInt(str[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < str.length",
"j",
"str.length",
"str",
"str.length",
"j++",
"j++",
"j",
"{\n\t\t\t\tsides[j] = Integer.parseInt(str[j]);\n\t\t\t}",
"{\n\t\t\t\tsides[j] = Integer.parseInt(str[j]);\n\t\t\t}",
"sides[j] = Integer.parseInt(str[j])",
"sides[j]",
"sides",
"j",
"Integer.parseInt(str[j])",
"Integer.parseInt",
"Integer",
"str[j]",
"str",
"j",
"Arrays.sort(sides)",
"Arrays.sort",
"Arrays",
"sides",
"if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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(sides[0], 2) + Math.pow(sides[1], 2) == Math.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.pow(sides[2], 2)",
"Math.pow",
"Math",
"sides[2]",
"sides",
"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 IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] sides = new int[str.length];\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tsides[j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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 IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\tString[] str = br.readLine().split(\" \");\n\t\t\tint[] sides = new int[str.length];\n\t\t\tfor (int j = 0; j < str.length; j++) {\n\t\t\t\tsides[j] = Integer.parseInt(str[j]);\n\t\t\t}\n\t\t\tArrays.sort(sides);\n\t\t\tif (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[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.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
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[] str = br.readLine().split(" ");
int[] sides = new int[str.length];
for (int j = 0; j < str.length; j++) {
sides[j] = Integer.parseInt(str[j]);
}
Arrays.sort(sides);
if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) == Math.pow(sides[2], 2)) {
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,
41,
13,
41,
13,
41,
13,
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,
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
],
[
109,
8
],
[
109,
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
],
[
11,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
11,
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
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
42,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
42,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
42,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
71,
77
],
[
70,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
78,
84
],
[
69,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
85,
91
],
[
68,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
68,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
9,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
] | [
"import 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 dataSetOfNum = scan.nextInt();\n\t\tint[] dataSet = new int[3];\n\t\tint side1, side2, side3;\n\t\t\n\t\tfor(int i = 0; i < dataSetOfNum; i++) {\n\t\t\tdataSet[0] = scan.nextInt();\n\t\t\tdataSet[1] = scan.nextInt();\n\t\t\tdataSet[2] = scan.nextInt();\n\t\t\tArrays.sort(dataSet);\n\t\t\t\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\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\tScanner scan = new Scanner(System.in);\n\t\tint dataSetOfNum = scan.nextInt();\n\t\tint[] dataSet = new int[3];\n\t\tint side1, side2, side3;\n\t\t\n\t\tfor(int i = 0; i < dataSetOfNum; i++) {\n\t\t\tdataSet[0] = scan.nextInt();\n\t\t\tdataSet[1] = scan.nextInt();\n\t\t\tdataSet[2] = scan.nextInt();\n\t\t\tArrays.sort(dataSet);\n\t\t\t\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\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint dataSetOfNum = scan.nextInt();\n\t\tint[] dataSet = new int[3];\n\t\tint side1, side2, side3;\n\t\t\n\t\tfor(int i = 0; i < dataSetOfNum; i++) {\n\t\t\tdataSet[0] = scan.nextInt();\n\t\t\tdataSet[1] = scan.nextInt();\n\t\t\tdataSet[2] = scan.nextInt();\n\t\t\tArrays.sort(dataSet);\n\t\t\t\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\t\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint dataSetOfNum = scan.nextInt();\n\t\tint[] dataSet = new int[3];\n\t\tint side1, side2, side3;\n\t\t\n\t\tfor(int i = 0; i < dataSetOfNum; i++) {\n\t\t\tdataSet[0] = scan.nextInt();\n\t\t\tdataSet[1] = scan.nextInt();\n\t\t\tdataSet[2] = scan.nextInt();\n\t\t\tArrays.sort(dataSet);\n\t\t\t\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\t\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int dataSetOfNum = scan.nextInt();",
"dataSetOfNum",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[] dataSet = new int[3];",
"dataSet",
"new int[3]",
"3",
"int side1",
"side1",
"side2",
"side2",
"side3;",
"side3",
"for(int i = 0; i < dataSetOfNum; i++) {\n\t\t\tdataSet[0] = scan.nextInt();\n\t\t\tdataSet[1] = scan.nextInt();\n\t\t\tdataSet[2] = scan.nextInt();\n\t\t\tArrays.sort(dataSet);\n\t\t\t\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 i = 0;",
"int i = 0;",
"i",
"0",
"i < dataSetOfNum",
"i",
"dataSetOfNum",
"i++",
"i++",
"i",
"{\n\t\t\tdataSet[0] = scan.nextInt();\n\t\t\tdataSet[1] = scan.nextInt();\n\t\t\tdataSet[2] = scan.nextInt();\n\t\t\tArrays.sort(dataSet);\n\t\t\t\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\t\tdataSet[0] = scan.nextInt();\n\t\t\tdataSet[1] = scan.nextInt();\n\t\t\tdataSet[2] = scan.nextInt();\n\t\t\tArrays.sort(dataSet);\n\t\t\t\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}",
"dataSet[0] = scan.nextInt()",
"dataSet[0]",
"dataSet",
"0",
"scan.nextInt()",
"scan.nextInt",
"scan",
"dataSet[1] = scan.nextInt()",
"dataSet[1]",
"dataSet",
"1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"dataSet[2] = scan.nextInt()",
"dataSet[2]",
"dataSet",
"2",
"scan.nextInt()",
"scan.nextInt",
"scan",
"Arrays.sort(dataSet)",
"Arrays.sort",
"Arrays",
"dataSet",
"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\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint dataSetOfNum = scan.nextInt();\n\t\tint[] dataSet = new int[3];\n\t\tint side1, side2, side3;\n\t\t\n\t\tfor(int i = 0; i < dataSetOfNum; i++) {\n\t\t\tdataSet[0] = scan.nextInt();\n\t\t\tdataSet[1] = scan.nextInt();\n\t\t\tdataSet[2] = scan.nextInt();\n\t\t\tArrays.sort(dataSet);\n\t\t\t\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\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 dataSetOfNum = scan.nextInt();\n\t\tint[] dataSet = new int[3];\n\t\tint side1, side2, side3;\n\t\t\n\t\tfor(int i = 0; i < dataSetOfNum; i++) {\n\t\t\tdataSet[0] = scan.nextInt();\n\t\t\tdataSet[1] = scan.nextInt();\n\t\t\tdataSet[2] = scan.nextInt();\n\t\t\tArrays.sort(dataSet);\n\t\t\t\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\t\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 dataSetOfNum = scan.nextInt();
int[] dataSet = new int[3];
int side1, side2, side3;
for(int i = 0; i < dataSetOfNum; i++) {
dataSet[0] = scan.nextInt();
dataSet[1] = scan.nextInt();
dataSet[2] = scan.nextInt();
Arrays.sort(dataSet);
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,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
41,
13,
20,
41,
13,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
14,
4,
18,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
13,
14,
2,
2,
4,
18,
4,
18,
13,
17,
4,
18,
4,
18,
13,
17,
4,
18,
4,
18,
13,
17,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
159,
20
],
[
159,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
24,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
34,
41
],
[
41,
42
],
[
41,
43
],
[
34,
44
],
[
44,
45
],
[
34,
46
],
[
46,
47
],
[
46,
48
],
[
34,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
55,
56
],
[
34,
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
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
69,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
83,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
107,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
82,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
82,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
120,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
119,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
118,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
118,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
82,
153
],
[
153,
154
],
[
154,
155
],
[
21,
156
],
[
156,
157
],
[
0,
158
],
[
158,
159
],
[
158,
160
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tPattern pattern = Pattern.compile(\"([0-9]+) *([0-9]+) *([0-9]+)\");\n\t\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tMatcher matcher;\n\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t\t\tint n=Integer.parseInt(bf.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tmatcher = pattern.matcher(bf.readLine());\n\t\t\t\tif(matcher.matches()){\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"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.regex.Matcher;",
"Matcher",
"java.util.regex",
"import java.util.regex.Pattern;",
"Pattern",
"java.util.regex",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tPattern pattern = Pattern.compile(\"([0-9]+) *([0-9]+) *([0-9]+)\");\n\t\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tMatcher matcher;\n\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t\t\tint n=Integer.parseInt(bf.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tmatcher = pattern.matcher(bf.readLine());\n\t\t\t\tif(matcher.matches()){\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tPattern pattern = Pattern.compile(\"([0-9]+) *([0-9]+) *([0-9]+)\");\n\t\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tMatcher matcher;\n\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t\t\tint n=Integer.parseInt(bf.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tmatcher = pattern.matcher(bf.readLine());\n\t\t\t\tif(matcher.matches()){\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"main",
"{\n\t\ttry {\n\t\t\tPattern pattern = Pattern.compile(\"([0-9]+) *([0-9]+) *([0-9]+)\");\n\t\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tMatcher matcher;\n\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t\t\tint n=Integer.parseInt(bf.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tmatcher = pattern.matcher(bf.readLine());\n\t\t\t\tif(matcher.matches()){\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"try {\n\t\t\tPattern pattern = Pattern.compile(\"([0-9]+) *([0-9]+) *([0-9]+)\");\n\t\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tMatcher matcher;\n\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t\t\tint n=Integer.parseInt(bf.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tmatcher = pattern.matcher(bf.readLine());\n\t\t\t\tif(matcher.matches()){\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}",
"catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}",
"Exception e",
"{\n\t\t\tSystem.out.println(e);\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n\t\t\tPattern pattern = Pattern.compile(\"([0-9]+) *([0-9]+) *([0-9]+)\");\n\t\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tMatcher matcher;\n\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t\t\tint n=Integer.parseInt(bf.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tmatcher = pattern.matcher(bf.readLine());\n\t\t\t\tif(matcher.matches()){\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"Pattern pattern = Pattern.compile(\"([0-9]+) *([0-9]+) *([0-9]+)\");",
"pattern",
"Pattern.compile(\"([0-9]+) *([0-9]+) *([0-9]+)\")",
"Pattern.compile",
"Pattern",
"\"([0-9]+) *([0-9]+) *([0-9]+)\"",
"BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));",
"bf",
"new BufferedReader(new InputStreamReader(System.in))",
"Matcher matcher;",
"matcher",
"ArrayList<Integer> l = new ArrayList<Integer>();",
"l",
"new ArrayList<Integer>()",
"int n=Integer.parseInt(bf.readLine());",
"n",
"Integer.parseInt(bf.readLine())",
"Integer.parseInt",
"Integer",
"bf.readLine()",
"bf.readLine",
"bf",
"for(int i=0;i<n;i++){\n\t\t\t\tmatcher = pattern.matcher(bf.readLine());\n\t\t\t\tif(matcher.matches()){\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tmatcher = pattern.matcher(bf.readLine());\n\t\t\t\tif(matcher.matches()){\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tmatcher = pattern.matcher(bf.readLine());\n\t\t\t\tif(matcher.matches()){\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}\n\t\t\t}",
"matcher = pattern.matcher(bf.readLine())",
"matcher",
"pattern.matcher(bf.readLine())",
"pattern.matcher",
"pattern",
"bf.readLine()",
"bf.readLine",
"bf",
"if(matcher.matches()){\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}",
"matcher.matches()",
"matcher.matches",
"matcher",
"{\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}",
"for(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}",
"int j=1;",
"int j=1;",
"j",
"1",
"j<=3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}",
"{\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}",
"l.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)))",
"l.add",
"l",
"Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j))",
"Integer.parseInt(matcher.group(j))",
"Integer.parseInt",
"Integer",
"matcher.group(j)",
"matcher.group",
"matcher",
"j",
"Integer.parseInt(matcher.group(j))",
"Integer.parseInt",
"Integer",
"matcher.group(j)",
"matcher.group",
"matcher",
"j",
"Collections.sort(l)",
"Collections.sort",
"Collections",
"l",
"if(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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}",
"l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()",
"l.get(0).intValue()+l.get(1).intValue()",
"l.get(0).intValue()",
"l.get(0).intValue",
"l.get(0)",
"l.get",
"l",
"0",
"l.get(1).intValue()",
"l.get(1).intValue",
"l.get(1)",
"l.get",
"l",
"1",
"l.get(2).intValue()",
"l.get(2).intValue",
"l.get(2)",
"l.get",
"l",
"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\"",
"l.clear()",
"l.clear",
"l",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tPattern pattern = Pattern.compile(\"([0-9]+) *([0-9]+) *([0-9]+)\");\n\t\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tMatcher matcher;\n\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t\t\tint n=Integer.parseInt(bf.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tmatcher = pattern.matcher(bf.readLine());\n\t\t\t\tif(matcher.matches()){\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tPattern pattern = Pattern.compile(\"([0-9]+) *([0-9]+) *([0-9]+)\");\n\t\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tMatcher matcher;\n\t\t\tArrayList<Integer> l = new ArrayList<Integer>();\n\t\t\tint n=Integer.parseInt(bf.readLine());\n\t\t\tfor(int i=0;i<n;i++){\n\t\t\t\tmatcher = pattern.matcher(bf.readLine());\n\t\t\t\tif(matcher.matches()){\n\t\t\t\t\tfor(int j=1;j<=3;j++){\n\t\t\t\t\t\tl.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));\n\t\t\t\t\t}\n\t\t\t\t\tCollections.sort(l);\n\t\t\t\t\tif(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){\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\tl.clear();\n\t\t\t\t}\n\t\t\t}\n\t\t}catch(Exception e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
public static void main(String[] args) {
try {
Pattern pattern = Pattern.compile("([0-9]+) *([0-9]+) *([0-9]+)");
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
Matcher matcher;
ArrayList<Integer> l = new ArrayList<Integer>();
int n=Integer.parseInt(bf.readLine());
for(int i=0;i<n;i++){
matcher = pattern.matcher(bf.readLine());
if(matcher.matches()){
for(int j=1;j<=3;j++){
l.add(Integer.parseInt(matcher.group(j))*Integer.parseInt(matcher.group(j)));
}
Collections.sort(l);
if(l.get(0).intValue()+l.get(1).intValue() == l.get(2).intValue()){
System.out.println("YES");
}else{
System.out.println("NO");
}
l.clear();
}
}
}catch(Exception e){
System.out.println(e);
}
}
} |
[
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,
20,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
18,
18,
13,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
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,
17,
30,
0,
13,
17,
30,
0,
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
],
[
156,
8
],
[
156,
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
],
[
23,
25
],
[
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
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
53,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
44,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
85,
87
],
[
11,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
97,
98
],
[
88,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
104,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
116,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
103,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
127,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
102,
138
],
[
101,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
101,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
100,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
147,
152
],
[
9,
153
],
[
153,
154
],
[
0,
155
],
[
155,
156
],
[
155,
157
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\ts.nextLine();\n\t\tint[][] a = new int[N][3];\n\t\tString str ;\n\t\tString[] result;\n\t\t\n\t\n\t\tfor(int i = 0;i <N;i++)\n\t\t{\n\t\t\tresult = s.nextLine().split(\" \");\n\t\t\tfor(int j = 0; j < a[i].length;j++)\n\t\t\t{\n\t\t\t\ta[i][j] = Integer.parseInt(result[j]);\n\t\t\t}\n\t\t\tArrays.sort(a[i]);\n\t\t}\n\t\t\n\t\tfor(int i = 0;i<N;i++)\n\t\t{\n\t\t\tif(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)\n\t\t\t{\n\t\t\t\tstr = \"YES\";\n\t\t\t}else{\n\t\t\t\tstr = \"NO\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}\n\t}\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\t// TODO ?????????????????????????????????????????????\n\t\tScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\ts.nextLine();\n\t\tint[][] a = new int[N][3];\n\t\tString str ;\n\t\tString[] result;\n\t\t\n\t\n\t\tfor(int i = 0;i <N;i++)\n\t\t{\n\t\t\tresult = s.nextLine().split(\" \");\n\t\t\tfor(int j = 0; j < a[i].length;j++)\n\t\t\t{\n\t\t\t\ta[i][j] = Integer.parseInt(result[j]);\n\t\t\t}\n\t\t\tArrays.sort(a[i]);\n\t\t}\n\t\t\n\t\tfor(int i = 0;i<N;i++)\n\t\t{\n\t\t\tif(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)\n\t\t\t{\n\t\t\t\tstr = \"YES\";\n\t\t\t}else{\n\t\t\t\tstr = \"NO\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\ts.nextLine();\n\t\tint[][] a = new int[N][3];\n\t\tString str ;\n\t\tString[] result;\n\t\t\n\t\n\t\tfor(int i = 0;i <N;i++)\n\t\t{\n\t\t\tresult = s.nextLine().split(\" \");\n\t\t\tfor(int j = 0; j < a[i].length;j++)\n\t\t\t{\n\t\t\t\ta[i][j] = Integer.parseInt(result[j]);\n\t\t\t}\n\t\t\tArrays.sort(a[i]);\n\t\t}\n\t\t\n\t\tfor(int i = 0;i<N;i++)\n\t\t{\n\t\t\tif(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)\n\t\t\t{\n\t\t\t\tstr = \"YES\";\n\t\t\t}else{\n\t\t\t\tstr = \"NO\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\ts.nextLine();\n\t\tint[][] a = new int[N][3];\n\t\tString str ;\n\t\tString[] result;\n\t\t\n\t\n\t\tfor(int i = 0;i <N;i++)\n\t\t{\n\t\t\tresult = s.nextLine().split(\" \");\n\t\t\tfor(int j = 0; j < a[i].length;j++)\n\t\t\t{\n\t\t\t\ta[i][j] = Integer.parseInt(result[j]);\n\t\t\t}\n\t\t\tArrays.sort(a[i]);\n\t\t}\n\t\t\n\t\tfor(int i = 0;i<N;i++)\n\t\t{\n\t\t\tif(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)\n\t\t\t{\n\t\t\t\tstr = \"YES\";\n\t\t\t}else{\n\t\t\t\tstr = \"NO\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\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",
"s.nextLine()",
"s.nextLine",
"s",
"int[][] a = new int[N][3];",
"a",
"new int[N][3]",
"N",
"3",
"String str ;",
"str",
"String[] result;",
"result",
"for(int i = 0;i <N;i++)\n\t\t{\n\t\t\tresult = s.nextLine().split(\" \");\n\t\t\tfor(int j = 0; j < a[i].length;j++)\n\t\t\t{\n\t\t\t\ta[i][j] = Integer.parseInt(result[j]);\n\t\t\t}\n\t\t\tArrays.sort(a[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tresult = s.nextLine().split(\" \");\n\t\t\tfor(int j = 0; j < a[i].length;j++)\n\t\t\t{\n\t\t\t\ta[i][j] = Integer.parseInt(result[j]);\n\t\t\t}\n\t\t\tArrays.sort(a[i]);\n\t\t}",
"{\n\t\t\tresult = s.nextLine().split(\" \");\n\t\t\tfor(int j = 0; j < a[i].length;j++)\n\t\t\t{\n\t\t\t\ta[i][j] = Integer.parseInt(result[j]);\n\t\t\t}\n\t\t\tArrays.sort(a[i]);\n\t\t}",
"result = s.nextLine().split(\" \")",
"result",
"s.nextLine().split(\" \")",
"s.nextLine().split",
"s.nextLine()",
"s.nextLine",
"s",
"\" \"",
"for(int j = 0; j < a[i].length;j++)\n\t\t\t{\n\t\t\t\ta[i][j] = Integer.parseInt(result[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < a[i].length",
"j",
"a[i].length",
"a[i]",
"a",
"i",
"a[i].length",
"j++",
"j++",
"j",
"{\n\t\t\t\ta[i][j] = Integer.parseInt(result[j]);\n\t\t\t}",
"{\n\t\t\t\ta[i][j] = Integer.parseInt(result[j]);\n\t\t\t}",
"a[i][j] = Integer.parseInt(result[j])",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"Integer.parseInt(result[j])",
"Integer.parseInt",
"Integer",
"result[j]",
"result",
"j",
"Arrays.sort(a[i])",
"Arrays.sort",
"Arrays",
"a[i]",
"a",
"i",
"for(int i = 0;i<N;i++)\n\t\t{\n\t\t\tif(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)\n\t\t\t{\n\t\t\t\tstr = \"YES\";\n\t\t\t}else{\n\t\t\t\tstr = \"NO\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tif(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)\n\t\t\t{\n\t\t\t\tstr = \"YES\";\n\t\t\t}else{\n\t\t\t\tstr = \"NO\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}",
"{\n\t\t\tif(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)\n\t\t\t{\n\t\t\t\tstr = \"YES\";\n\t\t\t}else{\n\t\t\t\tstr = \"NO\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}",
"if(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)\n\t\t\t{\n\t\t\t\tstr = \"YES\";\n\t\t\t}else{\n\t\t\t\tstr = \"NO\";\n\t\t\t}",
"a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0",
"a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]",
"a[i][1]*a[i][1]+a[i][0]*a[i][0]",
"a[i][1]*a[i][1]",
"a[i][1]",
"a[i]",
"a",
"i",
"1",
"a[i][1]",
"a[i]",
"a",
"i",
"1",
"a[i][0]*a[i][0]",
"a[i][0]",
"a[i]",
"a",
"i",
"0",
"a[i][0]",
"a[i]",
"a",
"i",
"0",
"a[i][2]*a[i][2]",
"a[i][2]",
"a[i]",
"a",
"i",
"2",
"a[i][2]",
"a[i]",
"a",
"i",
"2",
"0",
"{\n\t\t\t\tstr = \"YES\";\n\t\t\t}",
"str = \"YES\"",
"str",
"\"YES\"",
"{\n\t\t\t\tstr = \"NO\";\n\t\t\t}",
"str = \"NO\"",
"str",
"\"NO\"",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\ts.nextLine();\n\t\tint[][] a = new int[N][3];\n\t\tString str ;\n\t\tString[] result;\n\t\t\n\t\n\t\tfor(int i = 0;i <N;i++)\n\t\t{\n\t\t\tresult = s.nextLine().split(\" \");\n\t\t\tfor(int j = 0; j < a[i].length;j++)\n\t\t\t{\n\t\t\t\ta[i][j] = Integer.parseInt(result[j]);\n\t\t\t}\n\t\t\tArrays.sort(a[i]);\n\t\t}\n\t\t\n\t\tfor(int i = 0;i<N;i++)\n\t\t{\n\t\t\tif(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)\n\t\t\t{\n\t\t\t\tstr = \"YES\";\n\t\t\t}else{\n\t\t\t\tstr = \"NO\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\ts.nextLine();\n\t\tint[][] a = new int[N][3];\n\t\tString str ;\n\t\tString[] result;\n\t\t\n\t\n\t\tfor(int i = 0;i <N;i++)\n\t\t{\n\t\t\tresult = s.nextLine().split(\" \");\n\t\t\tfor(int j = 0; j < a[i].length;j++)\n\t\t\t{\n\t\t\t\ta[i][j] = Integer.parseInt(result[j]);\n\t\t\t}\n\t\t\tArrays.sort(a[i]);\n\t\t}\n\t\t\n\t\tfor(int i = 0;i<N;i++)\n\t\t{\n\t\t\tif(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)\n\t\t\t{\n\t\t\t\tstr = \"YES\";\n\t\t\t}else{\n\t\t\t\tstr = \"NO\";\n\t\t\t}\n\t\t\tSystem.out.println(str);\n\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
Scanner s = new Scanner(System.in);
int N = s.nextInt();
s.nextLine();
int[][] a = new int[N][3];
String str ;
String[] result;
for(int i = 0;i <N;i++)
{
result = s.nextLine().split(" ");
for(int j = 0; j < a[i].length;j++)
{
a[i][j] = Integer.parseInt(result[j]);
}
Arrays.sort(a[i]);
}
for(int i = 0;i<N;i++)
{
if(a[i][1]*a[i][1]+a[i][0]*a[i][0]-a[i][2]*a[i][2]==0)
{
str = "YES";
}else{
str = "NO";
}
System.out.println(str);
}
}
} |
[
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,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
30,
0,
13,
13,
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,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
135,
5
],
[
135,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
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,
33
],
[
33,
34
],
[
33,
35
],
[
29,
36
],
[
36,
37
],
[
36,
38
],
[
29,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
29,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
29,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
57,
59
],
[
53,
60
],
[
60,
61
],
[
60,
62
],
[
29,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
29,
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
],
[
68,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
86,
93
],
[
93,
94
],
[
93,
95
],
[
82,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
96,
103
],
[
103,
104
],
[
103,
105
],
[
29,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
112,
114
],
[
107,
115
],
[
115,
116
],
[
115,
117
],
[
106,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
106,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
6,
132
],
[
132,
133
],
[
0,
134
],
[
134,
135
],
[
134,
136
]
] | [
"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=sc.nextInt();\n\t\tfor(int i=0;i<N;i++){\n\t\t\tint a=0,b=0,c=0;\n\t\t\tint x=sc.nextInt();\n\t\t\tint y=sc.nextInt();\n\t\t\tif(x>y){\n\t\t\t\tint t=x;\n\t\t\t\tx=y;\n\t\t\t\ty=t;\n\t\t\t}\n\t\t\tint z=sc.nextInt();\n\t\t\tif(z<x){\n\t\t\t\ta=z;\n\t\t\t\tb=x;\n\t\t\t\tc=y;\n\t\t\t}else if(z<y){\n\t\t\t\ta=x;\n\t\t\t\tb=z;\n\t\t\t\tc=y;\n\t\t\t}else{\n\t\t\t\ta=x;\n\t\t\t\tb=y;\n\t\t\t\tc=z;\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}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\tpublic static void main(String[] args){\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\tint a=0,b=0,c=0;\n\t\t\tint x=sc.nextInt();\n\t\t\tint y=sc.nextInt();\n\t\t\tif(x>y){\n\t\t\t\tint t=x;\n\t\t\t\tx=y;\n\t\t\t\ty=t;\n\t\t\t}\n\t\t\tint z=sc.nextInt();\n\t\t\tif(z<x){\n\t\t\t\ta=z;\n\t\t\t\tb=x;\n\t\t\t\tc=y;\n\t\t\t}else if(z<y){\n\t\t\t\ta=x;\n\t\t\t\tb=z;\n\t\t\t\tc=y;\n\t\t\t}else{\n\t\t\t\ta=x;\n\t\t\t\tb=y;\n\t\t\t\tc=z;\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}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\tfor(int i=0;i<N;i++){\n\t\t\tint a=0,b=0,c=0;\n\t\t\tint x=sc.nextInt();\n\t\t\tint y=sc.nextInt();\n\t\t\tif(x>y){\n\t\t\t\tint t=x;\n\t\t\t\tx=y;\n\t\t\t\ty=t;\n\t\t\t}\n\t\t\tint z=sc.nextInt();\n\t\t\tif(z<x){\n\t\t\t\ta=z;\n\t\t\t\tb=x;\n\t\t\t\tc=y;\n\t\t\t}else if(z<y){\n\t\t\t\ta=x;\n\t\t\t\tb=z;\n\t\t\t\tc=y;\n\t\t\t}else{\n\t\t\t\ta=x;\n\t\t\t\tb=y;\n\t\t\t\tc=z;\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}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\tfor(int i=0;i<N;i++){\n\t\t\tint a=0,b=0,c=0;\n\t\t\tint x=sc.nextInt();\n\t\t\tint y=sc.nextInt();\n\t\t\tif(x>y){\n\t\t\t\tint t=x;\n\t\t\t\tx=y;\n\t\t\t\ty=t;\n\t\t\t}\n\t\t\tint z=sc.nextInt();\n\t\t\tif(z<x){\n\t\t\t\ta=z;\n\t\t\t\tb=x;\n\t\t\t\tc=y;\n\t\t\t}else if(z<y){\n\t\t\t\ta=x;\n\t\t\t\tb=z;\n\t\t\t\tc=y;\n\t\t\t}else{\n\t\t\t\ta=x;\n\t\t\t\tb=y;\n\t\t\t\tc=z;\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}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",
"for(int i=0;i<N;i++){\n\t\t\tint a=0,b=0,c=0;\n\t\t\tint x=sc.nextInt();\n\t\t\tint y=sc.nextInt();\n\t\t\tif(x>y){\n\t\t\t\tint t=x;\n\t\t\t\tx=y;\n\t\t\t\ty=t;\n\t\t\t}\n\t\t\tint z=sc.nextInt();\n\t\t\tif(z<x){\n\t\t\t\ta=z;\n\t\t\t\tb=x;\n\t\t\t\tc=y;\n\t\t\t}else if(z<y){\n\t\t\t\ta=x;\n\t\t\t\tb=z;\n\t\t\t\tc=y;\n\t\t\t}else{\n\t\t\t\ta=x;\n\t\t\t\tb=y;\n\t\t\t\tc=z;\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}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=0,b=0,c=0;\n\t\t\tint x=sc.nextInt();\n\t\t\tint y=sc.nextInt();\n\t\t\tif(x>y){\n\t\t\t\tint t=x;\n\t\t\t\tx=y;\n\t\t\t\ty=t;\n\t\t\t}\n\t\t\tint z=sc.nextInt();\n\t\t\tif(z<x){\n\t\t\t\ta=z;\n\t\t\t\tb=x;\n\t\t\t\tc=y;\n\t\t\t}else if(z<y){\n\t\t\t\ta=x;\n\t\t\t\tb=z;\n\t\t\t\tc=y;\n\t\t\t}else{\n\t\t\t\ta=x;\n\t\t\t\tb=y;\n\t\t\t\tc=z;\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}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tint a=0,b=0,c=0;\n\t\t\tint x=sc.nextInt();\n\t\t\tint y=sc.nextInt();\n\t\t\tif(x>y){\n\t\t\t\tint t=x;\n\t\t\t\tx=y;\n\t\t\t\ty=t;\n\t\t\t}\n\t\t\tint z=sc.nextInt();\n\t\t\tif(z<x){\n\t\t\t\ta=z;\n\t\t\t\tb=x;\n\t\t\t\tc=y;\n\t\t\t}else if(z<y){\n\t\t\t\ta=x;\n\t\t\t\tb=z;\n\t\t\t\tc=y;\n\t\t\t}else{\n\t\t\t\ta=x;\n\t\t\t\tb=y;\n\t\t\t\tc=z;\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}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"int a=0",
"a",
"0",
"b=0",
"b",
"0",
"c=0;",
"c",
"0",
"int x=sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int y=sc.nextInt();",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(x>y){\n\t\t\t\tint t=x;\n\t\t\t\tx=y;\n\t\t\t\ty=t;\n\t\t\t}",
"x>y",
"x",
"y",
"{\n\t\t\t\tint t=x;\n\t\t\t\tx=y;\n\t\t\t\ty=t;\n\t\t\t}",
"int t=x;",
"t",
"x",
"x=y",
"x",
"y",
"y=t",
"y",
"t",
"int z=sc.nextInt();",
"z",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(z<x){\n\t\t\t\ta=z;\n\t\t\t\tb=x;\n\t\t\t\tc=y;\n\t\t\t}else if(z<y){\n\t\t\t\ta=x;\n\t\t\t\tb=z;\n\t\t\t\tc=y;\n\t\t\t}else{\n\t\t\t\ta=x;\n\t\t\t\tb=y;\n\t\t\t\tc=z;\n\t\t\t}",
"z<x",
"z",
"x",
"{\n\t\t\t\ta=z;\n\t\t\t\tb=x;\n\t\t\t\tc=y;\n\t\t\t}",
"a=z",
"a",
"z",
"b=x",
"b",
"x",
"c=y",
"c",
"y",
"if(z<y){\n\t\t\t\ta=x;\n\t\t\t\tb=z;\n\t\t\t\tc=y;\n\t\t\t}else{\n\t\t\t\ta=x;\n\t\t\t\tb=y;\n\t\t\t\tc=z;\n\t\t\t}",
"z<y",
"z",
"y",
"{\n\t\t\t\ta=x;\n\t\t\t\tb=z;\n\t\t\t\tc=y;\n\t\t\t}",
"a=x",
"a",
"x",
"b=z",
"b",
"z",
"c=y",
"c",
"y",
"{\n\t\t\t\ta=x;\n\t\t\t\tb=y;\n\t\t\t\tc=z;\n\t\t\t}",
"a=x",
"a",
"x",
"b=y",
"b",
"y",
"c=z",
"c",
"z",
"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+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\"",
"{\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\tfor(int i=0;i<N;i++){\n\t\t\tint a=0,b=0,c=0;\n\t\t\tint x=sc.nextInt();\n\t\t\tint y=sc.nextInt();\n\t\t\tif(x>y){\n\t\t\t\tint t=x;\n\t\t\t\tx=y;\n\t\t\t\ty=t;\n\t\t\t}\n\t\t\tint z=sc.nextInt();\n\t\t\tif(z<x){\n\t\t\t\ta=z;\n\t\t\t\tb=x;\n\t\t\t\tc=y;\n\t\t\t}else if(z<y){\n\t\t\t\ta=x;\n\t\t\t\tb=z;\n\t\t\t\tc=y;\n\t\t\t}else{\n\t\t\t\ta=x;\n\t\t\t\tb=y;\n\t\t\t\tc=z;\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}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\tfor(int i=0;i<N;i++){\n\t\t\tint a=0,b=0,c=0;\n\t\t\tint x=sc.nextInt();\n\t\t\tint y=sc.nextInt();\n\t\t\tif(x>y){\n\t\t\t\tint t=x;\n\t\t\t\tx=y;\n\t\t\t\ty=t;\n\t\t\t}\n\t\t\tint z=sc.nextInt();\n\t\t\tif(z<x){\n\t\t\t\ta=z;\n\t\t\t\tb=x;\n\t\t\t\tc=y;\n\t\t\t}else if(z<y){\n\t\t\t\ta=x;\n\t\t\t\tb=z;\n\t\t\t\tc=y;\n\t\t\t}else{\n\t\t\t\ta=x;\n\t\t\t\tb=y;\n\t\t\t\tc=z;\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}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 {
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=0,b=0,c=0;
int x=sc.nextInt();
int y=sc.nextInt();
if(x>y){
int t=x;
x=y;
y=t;
}
int z=sc.nextInt();
if(z<x){
a=z;
b=x;
c=y;
}else if(z<y){
a=x;
b=z;
c=y;
}else{
a=x;
b=y;
c=z;
}
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,
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,
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,
18,
13,
17,
18,
13,
17,
41,
13,
2,
18,
13,
17,
18,
13,
17,
41,
13,
2,
18,
13,
17,
18,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
133,
11
],
[
133,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
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
],
[
41,
47
],
[
38,
48
],
[
48,
49
],
[
48,
50
],
[
51,
52
],
[
51,
53
],
[
38,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
54,
64
],
[
64,
65
],
[
65,
66
],
[
54,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
38,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
38,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
38,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
38,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
38,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
110,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
110,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
12,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n //int n = Integer.parseInt(\"1\");\n for(int i = 0;i < n;i++){\n String[] vals = br.readLine().split(\" \",0);\n //String[] vals = \"4 3 5\".split(\" \",0);\n int[] int_vals = new int[vals.length];\n for(int j = 0;j < int_vals.length;j++){\n int_vals[j] = Integer.parseInt(vals[j]);\n }\n Arrays.sort(int_vals);\n \n int a2 = int_vals[2] * int_vals[2];\n int b2 = int_vals[1] * int_vals[1];\n int c2 = int_vals[0] * int_vals[0];\n\n if(a2 == b2 + c2){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n //int n = Integer.parseInt(\"1\");\n for(int i = 0;i < n;i++){\n String[] vals = br.readLine().split(\" \",0);\n //String[] vals = \"4 3 5\".split(\" \",0);\n int[] int_vals = new int[vals.length];\n for(int j = 0;j < int_vals.length;j++){\n int_vals[j] = Integer.parseInt(vals[j]);\n }\n Arrays.sort(int_vals);\n \n int a2 = int_vals[2] * int_vals[2];\n int b2 = int_vals[1] * int_vals[1];\n int c2 = int_vals[0] * int_vals[0];\n\n if(a2 == b2 + c2){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n //int n = Integer.parseInt(\"1\");\n for(int i = 0;i < n;i++){\n String[] vals = br.readLine().split(\" \",0);\n //String[] vals = \"4 3 5\".split(\" \",0);\n int[] int_vals = new int[vals.length];\n for(int j = 0;j < int_vals.length;j++){\n int_vals[j] = Integer.parseInt(vals[j]);\n }\n Arrays.sort(int_vals);\n \n int a2 = int_vals[2] * int_vals[2];\n int b2 = int_vals[1] * int_vals[1];\n int c2 = int_vals[0] * int_vals[0];\n\n if(a2 == b2 + c2){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }",
"main",
"{\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n //int n = Integer.parseInt(\"1\");\n for(int i = 0;i < n;i++){\n String[] vals = br.readLine().split(\" \",0);\n //String[] vals = \"4 3 5\".split(\" \",0);\n int[] int_vals = new int[vals.length];\n for(int j = 0;j < int_vals.length;j++){\n int_vals[j] = Integer.parseInt(vals[j]);\n }\n Arrays.sort(int_vals);\n \n int a2 = int_vals[2] * int_vals[2];\n int b2 = int_vals[1] * int_vals[1];\n int c2 = int_vals[0] * int_vals[0];\n\n if(a2 == b2 + c2){\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[] vals = br.readLine().split(\" \",0);\n //String[] vals = \"4 3 5\".split(\" \",0);\n int[] int_vals = new int[vals.length];\n for(int j = 0;j < int_vals.length;j++){\n int_vals[j] = Integer.parseInt(vals[j]);\n }\n Arrays.sort(int_vals);\n \n int a2 = int_vals[2] * int_vals[2];\n int b2 = int_vals[1] * int_vals[1];\n int c2 = int_vals[0] * int_vals[0];\n\n if(a2 == b2 + c2){\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[] vals = br.readLine().split(\" \",0);\n //String[] vals = \"4 3 5\".split(\" \",0);\n int[] int_vals = new int[vals.length];\n for(int j = 0;j < int_vals.length;j++){\n int_vals[j] = Integer.parseInt(vals[j]);\n }\n Arrays.sort(int_vals);\n \n int a2 = int_vals[2] * int_vals[2];\n int b2 = int_vals[1] * int_vals[1];\n int c2 = int_vals[0] * int_vals[0];\n\n if(a2 == b2 + c2){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"{\n String[] vals = br.readLine().split(\" \",0);\n //String[] vals = \"4 3 5\".split(\" \",0);\n int[] int_vals = new int[vals.length];\n for(int j = 0;j < int_vals.length;j++){\n int_vals[j] = Integer.parseInt(vals[j]);\n }\n Arrays.sort(int_vals);\n \n int a2 = int_vals[2] * int_vals[2];\n int b2 = int_vals[1] * int_vals[1];\n int c2 = int_vals[0] * int_vals[0];\n\n if(a2 == b2 + c2){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"String[] vals = br.readLine().split(\" \",0);",
"vals",
"br.readLine().split(\" \",0)",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"0",
"int[] int_vals = new int[vals.length];",
"int_vals",
"new int[vals.length]",
"vals.length",
"vals",
"vals.length",
"for(int j = 0;j < int_vals.length;j++){\n int_vals[j] = Integer.parseInt(vals[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < int_vals.length",
"j",
"int_vals.length",
"int_vals",
"int_vals.length",
"j++",
"j++",
"j",
"{\n int_vals[j] = Integer.parseInt(vals[j]);\n }",
"{\n int_vals[j] = Integer.parseInt(vals[j]);\n }",
"int_vals[j] = Integer.parseInt(vals[j])",
"int_vals[j]",
"int_vals",
"j",
"Integer.parseInt(vals[j])",
"Integer.parseInt",
"Integer",
"vals[j]",
"vals",
"j",
"Arrays.sort(int_vals)",
"Arrays.sort",
"Arrays",
"int_vals",
"int a2 = int_vals[2] * int_vals[2];",
"a2",
"int_vals[2] * int_vals[2]",
"int_vals[2]",
"int_vals",
"2",
"int_vals[2]",
"int_vals",
"2",
"int b2 = int_vals[1] * int_vals[1];",
"b2",
"int_vals[1] * int_vals[1]",
"int_vals[1]",
"int_vals",
"1",
"int_vals[1]",
"int_vals",
"1",
"int c2 = int_vals[0] * int_vals[0];",
"c2",
"int_vals[0] * int_vals[0]",
"int_vals[0]",
"int_vals",
"0",
"int_vals[0]",
"int_vals",
"0",
"if(a2 == b2 + c2){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"a2 == b2 + c2",
"a2",
"b2 + c2",
"b2",
"c2",
"{\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 // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n //int n = Integer.parseInt(\"1\");\n for(int i = 0;i < n;i++){\n String[] vals = br.readLine().split(\" \",0);\n //String[] vals = \"4 3 5\".split(\" \",0);\n int[] int_vals = new int[vals.length];\n for(int j = 0;j < int_vals.length;j++){\n int_vals[j] = Integer.parseInt(vals[j]);\n }\n Arrays.sort(int_vals);\n \n int a2 = int_vals[2] * int_vals[2];\n int b2 = int_vals[1] * int_vals[1];\n int c2 = int_vals[0] * int_vals[0];\n\n if(a2 == b2 + c2){\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 Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n //int n = Integer.parseInt(\"1\");\n for(int i = 0;i < n;i++){\n String[] vals = br.readLine().split(\" \",0);\n //String[] vals = \"4 3 5\".split(\" \",0);\n int[] int_vals = new int[vals.length];\n for(int j = 0;j < int_vals.length;j++){\n int_vals[j] = Integer.parseInt(vals[j]);\n }\n Arrays.sort(int_vals);\n \n int a2 = int_vals[2] * int_vals[2];\n int b2 = int_vals[1] * int_vals[1];\n int c2 = int_vals[0] * int_vals[0];\n\n if(a2 == b2 + c2){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
public static void main(String[] args) throws Exception {
// Here your code !
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
//int n = Integer.parseInt("1");
for(int i = 0;i < n;i++){
String[] vals = br.readLine().split(" ",0);
//String[] vals = "4 3 5".split(" ",0);
int[] int_vals = new int[vals.length];
for(int j = 0;j < int_vals.length;j++){
int_vals[j] = Integer.parseInt(vals[j]);
}
Arrays.sort(int_vals);
int a2 = int_vals[2] * int_vals[2];
int b2 = int_vals[1] * int_vals[1];
int c2 = int_vals[0] * int_vals[0];
if(a2 == b2 + c2){
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,
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,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
2,
2,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
2,
18,
13,
13,
18,
13,
13,
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
],
[
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
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
79,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
78,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
102,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
78,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
138,
140
],
[
125,
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) throws java.io.IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int [n];\n\t\tint[] b = new int [n];\n\t\tint[] c = new int [n];\n\t\tfor(int d = 0; d < n ; d++){\n\t\t\ta[d] = scan.nextInt();\n\t\t\tb[d] = scan.nextInt();\n\t\t\tc[d] = scan.nextInt();\n\t\t}\n\t\tfor(int e = 0;e < n ; e++){\n\t\t\tif((a[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])){\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) throws java.io.IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int [n];\n\t\tint[] b = new int [n];\n\t\tint[] c = new int [n];\n\t\tfor(int d = 0; d < n ; d++){\n\t\t\ta[d] = scan.nextInt();\n\t\t\tb[d] = scan.nextInt();\n\t\t\tc[d] = scan.nextInt();\n\t\t}\n\t\tfor(int e = 0;e < n ; e++){\n\t\t\tif((a[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])){\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 java.io.IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int [n];\n\t\tint[] b = new int [n];\n\t\tint[] c = new int [n];\n\t\tfor(int d = 0; d < n ; d++){\n\t\t\ta[d] = scan.nextInt();\n\t\t\tb[d] = scan.nextInt();\n\t\t\tc[d] = scan.nextInt();\n\t\t}\n\t\tfor(int e = 0;e < n ; e++){\n\t\t\tif((a[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])){\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 scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int [n];\n\t\tint[] b = new int [n];\n\t\tint[] c = new int [n];\n\t\tfor(int d = 0; d < n ; d++){\n\t\t\ta[d] = scan.nextInt();\n\t\t\tb[d] = scan.nextInt();\n\t\t\tc[d] = scan.nextInt();\n\t\t}\n\t\tfor(int e = 0;e < n ; e++){\n\t\t\tif((a[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])){\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 n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"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 d = 0; d < n ; d++){\n\t\t\ta[d] = scan.nextInt();\n\t\t\tb[d] = scan.nextInt();\n\t\t\tc[d] = scan.nextInt();\n\t\t}",
"int d = 0;",
"int d = 0;",
"d",
"0",
"d < n",
"d",
"n",
"d++",
"d++",
"d",
"{\n\t\t\ta[d] = scan.nextInt();\n\t\t\tb[d] = scan.nextInt();\n\t\t\tc[d] = scan.nextInt();\n\t\t}",
"{\n\t\t\ta[d] = scan.nextInt();\n\t\t\tb[d] = scan.nextInt();\n\t\t\tc[d] = scan.nextInt();\n\t\t}",
"a[d] = scan.nextInt()",
"a[d]",
"a",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"b[d] = scan.nextInt()",
"b[d]",
"b",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"c[d] = scan.nextInt()",
"c[d]",
"c",
"d",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int e = 0;e < n ; e++){\n\t\t\tif((a[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])){\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 e = 0;",
"int e = 0;",
"e",
"0",
"e < n",
"e",
"n",
"e++",
"e++",
"e",
"{\n\t\t\tif((a[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])){\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[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])){\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[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])){\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[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])",
"(a[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])",
"(a[e]*a[e]+b[e]*b[e]==c[e]*c[e])",
"a[e]*a[e]+b[e]*b[e]",
"a[e]*a[e]",
"a[e]",
"a",
"e",
"a[e]",
"a",
"e",
"b[e]*b[e]",
"b[e]",
"b",
"e",
"b[e]",
"b",
"e",
"c[e]*c[e]",
"c[e]",
"c",
"e",
"c[e]",
"c",
"e",
"(b[e]*b[e]+c[e]*c[e]==a[e]*a[e])",
"b[e]*b[e]+c[e]*c[e]",
"b[e]*b[e]",
"b[e]",
"b",
"e",
"b[e]",
"b",
"e",
"c[e]*c[e]",
"c[e]",
"c",
"e",
"c[e]",
"c",
"e",
"a[e]*a[e]",
"a[e]",
"a",
"e",
"a[e]",
"a",
"e",
"(c[e]*c[e]+a[e]*a[e]==b[e]*b[e])",
"c[e]*c[e]+a[e]*a[e]",
"c[e]*c[e]",
"c[e]",
"c",
"e",
"c[e]",
"c",
"e",
"a[e]*a[e]",
"a[e]",
"a",
"e",
"a[e]",
"a",
"e",
"b[e]*b[e]",
"b[e]",
"b",
"e",
"b[e]",
"b",
"e",
"{\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 java.io.IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int [n];\n\t\tint[] b = new int [n];\n\t\tint[] c = new int [n];\n\t\tfor(int d = 0; d < n ; d++){\n\t\t\ta[d] = scan.nextInt();\n\t\t\tb[d] = scan.nextInt();\n\t\t\tc[d] = scan.nextInt();\n\t\t}\n\t\tfor(int e = 0;e < n ; e++){\n\t\t\tif((a[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])){\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 java.io.IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int [n];\n\t\tint[] b = new int [n];\n\t\tint[] c = new int [n];\n\t\tfor(int d = 0; d < n ; d++){\n\t\t\ta[d] = scan.nextInt();\n\t\t\tb[d] = scan.nextInt();\n\t\t\tc[d] = scan.nextInt();\n\t\t}\n\t\tfor(int e = 0;e < n ; e++){\n\t\t\tif((a[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])){\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) throws java.io.IOException {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[] a = new int [n];
int[] b = new int [n];
int[] c = new int [n];
for(int d = 0; d < n ; d++){
a[d] = scan.nextInt();
b[d] = scan.nextInt();
c[d] = scan.nextInt();
}
for(int e = 0;e < n ; e++){
if((a[e]*a[e]+b[e]*b[e]==c[e]*c[e]) || (b[e]*b[e]+c[e]*c[e]==a[e]*a[e]) || (c[e]*c[e]+a[e]*a[e]==b[e]*b[e])){
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,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
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,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
14,
2,
2,
13,
13,
13,
30,
29,
17,
14,
2,
2,
13,
13,
13,
30,
29,
17,
14,
2,
2,
13,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
131,
8
],
[
131,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
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
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
11,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
50,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
9,
74
],
[
74,
75
],
[
131,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
78,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
78,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
91,
93
],
[
78,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
94,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
103,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
112,
118
],
[
118,
119
],
[
119,
120
],
[
112,
121
],
[
121,
122
],
[
122,
123
],
[
76,
124
],
[
124,
125
],
[
76,
126
],
[
126,
127
],
[
76,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
] | [
"\nimport java.util.ArrayList;\nimport 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\tArrayList<String> result = new ArrayList<String>();\n\t\t\n\t\tint num = sc.nextInt();\n\t\t\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tresult.add(isTriangle(sc.nextInt(), sc.nextInt(), sc.nextInt()));\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < result.size(); i++){\n\t\t\tSystem.out.println(result.get(i));\n\t\t}\n\t}\n\t\n\tprivate static String isTriangle(int x, int y, int z){\n\t\tint x2 = x * x;\n\t\tint y2 = y * y;\n\t\tint z2 = z * z;\n\t\t\n\t\tif(x2 + y2 == z2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(y2 + z2 == x2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(z2 + x2 == y2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse{\n\t\t\treturn \"NO\";\n\t\t}\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\t\n\t\tint num = sc.nextInt();\n\t\t\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tresult.add(isTriangle(sc.nextInt(), sc.nextInt(), sc.nextInt()));\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < result.size(); i++){\n\t\t\tSystem.out.println(result.get(i));\n\t\t}\n\t}\n\t\n\tprivate static String isTriangle(int x, int y, int z){\n\t\tint x2 = x * x;\n\t\tint y2 = y * y;\n\t\tint z2 = z * z;\n\t\t\n\t\tif(x2 + y2 == z2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(y2 + z2 == x2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(z2 + x2 == y2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse{\n\t\t\treturn \"NO\";\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\t\n\t\tint num = sc.nextInt();\n\t\t\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tresult.add(isTriangle(sc.nextInt(), sc.nextInt(), sc.nextInt()));\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < result.size(); i++){\n\t\t\tSystem.out.println(result.get(i));\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\t\n\t\tint num = sc.nextInt();\n\t\t\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tresult.add(isTriangle(sc.nextInt(), sc.nextInt(), sc.nextInt()));\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < result.size(); i++){\n\t\t\tSystem.out.println(result.get(i));\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"ArrayList<String> result = new ArrayList<String>();",
"result",
"new ArrayList<String>()",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < num; i++){\n\t\t\tresult.add(isTriangle(sc.nextInt(), sc.nextInt(), sc.nextInt()));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tresult.add(isTriangle(sc.nextInt(), sc.nextInt(), sc.nextInt()));\n\t\t}",
"{\n\t\t\tresult.add(isTriangle(sc.nextInt(), sc.nextInt(), sc.nextInt()));\n\t\t}",
"result.add(isTriangle(sc.nextInt(), sc.nextInt(), sc.nextInt()))",
"result.add",
"result",
"isTriangle(sc.nextInt(), sc.nextInt(), sc.nextInt())",
"isTriangle",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0; i < result.size(); i++){\n\t\t\tSystem.out.println(result.get(i));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < result.size()",
"i",
"result.size()",
"result.size",
"result",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.println(result.get(i));\n\t\t}",
"{\n\t\t\tSystem.out.println(result.get(i));\n\t\t}",
"System.out.println(result.get(i))",
"System.out.println",
"System.out",
"System",
"System.out",
"result.get(i)",
"result.get",
"result",
"i",
"String[] args",
"args",
"private static String isTriangle(int x, int y, int z){\n\t\tint x2 = x * x;\n\t\tint y2 = y * y;\n\t\tint z2 = z * z;\n\t\t\n\t\tif(x2 + y2 == z2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(y2 + z2 == x2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(z2 + x2 == y2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse{\n\t\t\treturn \"NO\";\n\t\t}\n\t}",
"isTriangle",
"{\n\t\tint x2 = x * x;\n\t\tint y2 = y * y;\n\t\tint z2 = z * z;\n\t\t\n\t\tif(x2 + y2 == z2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(y2 + z2 == x2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(z2 + x2 == y2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse{\n\t\t\treturn \"NO\";\n\t\t}\n\t}",
"int x2 = x * x;",
"x2",
"x * x",
"x",
"x",
"int y2 = y * y;",
"y2",
"y * y",
"y",
"y",
"int z2 = z * z;",
"z2",
"z * z",
"z",
"z",
"if(x2 + y2 == z2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(y2 + z2 == x2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(z2 + x2 == y2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse{\n\t\t\treturn \"NO\";\n\t\t}",
"x2 + y2 == z2",
"x2 + y2",
"x2",
"y2",
"z2",
"{\n\t\t\treturn \"YES\";\n\t\t}",
"return \"YES\";",
"\"YES\"",
"if(y2 + z2 == x2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(z2 + x2 == y2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse{\n\t\t\treturn \"NO\";\n\t\t}",
"y2 + z2 == x2",
"y2 + z2",
"y2",
"z2",
"x2",
"{\n\t\t\treturn \"YES\";\n\t\t}",
"return \"YES\";",
"\"YES\"",
"if(z2 + x2 == y2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse{\n\t\t\treturn \"NO\";\n\t\t}",
"z2 + x2 == y2",
"z2 + x2",
"z2",
"x2",
"y2",
"{\n\t\t\treturn \"YES\";\n\t\t}",
"return \"YES\";",
"\"YES\"",
"{\n\t\t\treturn \"NO\";\n\t\t}",
"return \"NO\";",
"\"NO\"",
"int x",
"x",
"int y",
"y",
"int z",
"z",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\t\n\t\tint num = sc.nextInt();\n\t\t\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tresult.add(isTriangle(sc.nextInt(), sc.nextInt(), sc.nextInt()));\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < result.size(); i++){\n\t\t\tSystem.out.println(result.get(i));\n\t\t}\n\t}\n\t\n\tprivate static String isTriangle(int x, int y, int z){\n\t\tint x2 = x * x;\n\t\tint y2 = y * y;\n\t\tint z2 = z * z;\n\t\t\n\t\tif(x2 + y2 == z2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(y2 + z2 == x2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(z2 + x2 == y2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse{\n\t\t\treturn \"NO\";\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\t\n\t\tint num = sc.nextInt();\n\t\t\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tresult.add(isTriangle(sc.nextInt(), sc.nextInt(), sc.nextInt()));\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < result.size(); i++){\n\t\t\tSystem.out.println(result.get(i));\n\t\t}\n\t}\n\t\n\tprivate static String isTriangle(int x, int y, int z){\n\t\tint x2 = x * x;\n\t\tint y2 = y * y;\n\t\tint z2 = z * z;\n\t\t\n\t\tif(x2 + y2 == z2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(y2 + z2 == x2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse if(z2 + x2 == y2){\n\t\t\treturn \"YES\";\n\t\t}\n\t\telse{\n\t\t\treturn \"NO\";\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
ArrayList<String> result = new ArrayList<String>();
int num = sc.nextInt();
for(int i = 0; i < num; i++){
result.add(isTriangle(sc.nextInt(), sc.nextInt(), sc.nextInt()));
}
for(int i = 0; i < result.size(); i++){
System.out.println(result.get(i));
}
}
private static String isTriangle(int x, int y, int z){
int x2 = x * x;
int y2 = y * y;
int z2 = z * z;
if(x2 + y2 == z2){
return "YES";
}
else if(y2 + z2 == x2){
return "YES";
}
else if(z2 + x2 == y2){
return "YES";
}
else{
return "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,
0,
18,
13,
13,
4,
18,
13,
18,
13,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
122,
14
],
[
122,
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
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
41,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
41,
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
],
[
15,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
] | [
"\n\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 IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tString[] arr = br.readLine().split(\" \");\n\t\t\t\n\t\t\tint[] lens = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tlens[i] = Integer.parseInt(arr[i]);\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(lens);\n\t\t\t\n\t\t\tif (lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[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}\t\t\t\n\t\t}\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tString[] arr = br.readLine().split(\" \");\n\t\t\t\n\t\t\tint[] lens = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tlens[i] = Integer.parseInt(arr[i]);\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(lens);\n\t\t\t\n\t\t\tif (lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[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}\t\t\t\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tString[] arr = br.readLine().split(\" \");\n\t\t\t\n\t\t\tint[] lens = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tlens[i] = Integer.parseInt(arr[i]);\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(lens);\n\t\t\t\n\t\t\tif (lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[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}\t\t\t\n\t\t}\n\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tString[] arr = br.readLine().split(\" \");\n\t\t\t\n\t\t\tint[] lens = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tlens[i] = Integer.parseInt(arr[i]);\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(lens);\n\t\t\t\n\t\t\tif (lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[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}\t\t\t\n\t\t}\n\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 j = 0; j < N; j++) {\n\t\t\tString[] arr = br.readLine().split(\" \");\n\t\t\t\n\t\t\tint[] lens = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tlens[i] = Integer.parseInt(arr[i]);\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(lens);\n\t\t\t\n\t\t\tif (lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[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}\t\t\t\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < N",
"j",
"N",
"j++",
"j++",
"j",
"{\n\t\t\tString[] arr = br.readLine().split(\" \");\n\t\t\t\n\t\t\tint[] lens = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tlens[i] = Integer.parseInt(arr[i]);\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(lens);\n\t\t\t\n\t\t\tif (lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[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}\t\t\t\n\t\t}",
"{\n\t\t\tString[] arr = br.readLine().split(\" \");\n\t\t\t\n\t\t\tint[] lens = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tlens[i] = Integer.parseInt(arr[i]);\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(lens);\n\t\t\t\n\t\t\tif (lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[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}\t\t\t\n\t\t}",
"String[] arr = br.readLine().split(\" \");",
"arr",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int[] lens = new int[3];",
"lens",
"new int[3]",
"3",
"for (int i = 0; i < 3; i++) {\n\t\t\t\tlens[i] = Integer.parseInt(arr[i]);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\t\tlens[i] = Integer.parseInt(arr[i]);\n\t\t\t}",
"{\n\t\t\t\tlens[i] = Integer.parseInt(arr[i]);\n\t\t\t}",
"lens[i] = Integer.parseInt(arr[i])",
"lens[i]",
"lens",
"i",
"Integer.parseInt(arr[i])",
"Integer.parseInt",
"Integer",
"arr[i]",
"arr",
"i",
"Arrays.sort(lens)",
"Arrays.sort",
"Arrays",
"lens",
"if (lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[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}",
"lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[1]",
"lens[2] * lens[2]",
"lens[2]",
"lens",
"2",
"lens[2]",
"lens",
"2",
"lens[0] * lens[0] + lens[1] * lens[1]",
"lens[0] * lens[0]",
"lens[0]",
"lens",
"0",
"lens[0]",
"lens",
"0",
"lens[1] * lens[1]",
"lens[1]",
"lens",
"1",
"lens[1]",
"lens",
"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\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tString[] arr = br.readLine().split(\" \");\n\t\t\t\n\t\t\tint[] lens = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tlens[i] = Integer.parseInt(arr[i]);\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(lens);\n\t\t\t\n\t\t\tif (lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[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}\t\t\t\n\t\t}\n\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\t\t\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tString[] arr = br.readLine().split(\" \");\n\t\t\t\n\t\t\tint[] lens = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tlens[i] = Integer.parseInt(arr[i]);\n\t\t\t}\n\t\t\t\n\t\t\tArrays.sort(lens);\n\t\t\t\n\t\t\tif (lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[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}\t\t\t\n\t\t}\n\n\t}\n\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 IOException {
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int N = Integer.parseInt(br.readLine());
for (int j = 0; j < N; j++) {
String[] arr = br.readLine().split(" ");
int[] lens = new int[3];
for (int i = 0; i < 3; i++) {
lens[i] = Integer.parseInt(arr[i]);
}
Arrays.sort(lens);
if (lens[2] * lens[2] == lens[0] * lens[0] + lens[1] * lens[1]) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
2,
40,
13,
17,
1,
4,
18,
18,
13,
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,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
30,
0,
18,
13,
40,
13,
4,
18,
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
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
13,
19
],
[
19,
20
],
[
13,
21
],
[
21,
22
],
[
13,
23
],
[
23,
24
],
[
13,
25
],
[
25,
26
],
[
13,
27
],
[
27,
28
],
[
27,
29
],
[
12,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
12,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
55,
57
],
[
50,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
41,
65
],
[
41,
66
],
[
12,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
68,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
6,
90
],
[
90,
91
]
] | [
"import java.util.*;class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?\"YES\":\"NO\")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}}}",
"import java.util.*;",
"util.*",
"java",
"class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?\"YES\":\"NO\")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}}}",
"Main",
"public static void main(String[]g){Scanner S=new Scanner(System.in);for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?\"YES\":\"NO\")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}}",
"main",
"{Scanner S=new Scanner(System.in);for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?\"YES\":\"NO\")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}}",
"Scanner S=new Scanner(System.in);",
"S",
"new Scanner(System.in)",
"for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?\"YES\":\"NO\")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}",
"int i=S.nextInt(),j,x,y,z,a[]=new int[3];",
"int i=S.nextInt()",
"i",
"S.nextInt()",
"S.nextInt",
"S",
"j",
"j",
"x",
"x",
"y",
"y",
"z",
"z",
"a[]=new int[3];",
"a",
"new int[3]",
"3",
"i-->0",
"i--",
"i",
"0",
"System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?\"YES\":\"NO\")",
"System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?\"YES\":\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?\"YES\":\"NO\"",
"a[2]*a[2]==a[1]*a[1]+a[0]*a[0]",
"a[2]*a[2]",
"a[2]",
"a",
"2",
"a[2]",
"a",
"2",
"a[1]*a[1]+a[0]*a[0]",
"a[1]*a[1]",
"a[1]",
"a",
"1",
"a[1]",
"a",
"1",
"a[0]*a[0]",
"a[0]",
"a",
"0",
"a[0]",
"a",
"0",
"\"YES\"",
"\"NO\"",
"{for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}",
"{for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}",
"for(j=0;j<3;)a[j++]=S.nextInt();",
"j=0;",
"j=0",
"j",
"0",
"j<3",
"j",
"3",
"a[j++]=S.nextInt();",
"a[j++]=S.nextInt()",
"a[j++]",
"a",
"j++",
"j",
"S.nextInt()",
"S.nextInt",
"S",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"String[]g",
"g"
] | import java.util.*;class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?"YES":"NO")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}}}
|
[
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,
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,
0,
18,
13,
17,
18,
13,
17,
0,
18,
13,
17,
18,
13,
17,
0,
18,
13,
17,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
2,
13,
17,
30,
0,
18,
13,
13,
18,
13,
2,
13,
17,
0,
18,
13,
2,
13,
17,
18,
13,
13,
14,
2,
18,
13,
17,
18,
13,
17,
30,
0,
18,
13,
17,
18,
13,
17,
0,
18,
13,
17,
18,
13,
17,
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
],
[
186,
5
],
[
186,
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
],
[
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
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
37,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
37,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
37,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
37,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
37,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
80,
91
],
[
92,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
93,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
110,
112
],
[
103,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
113,
119
],
[
119,
120
],
[
119,
121
],
[
37,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
127,
129
],
[
122,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
135,
137
],
[
130,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
142,
144
],
[
37,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
151,
153
],
[
146,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
159,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
162,
166
],
[
166,
167
],
[
166,
168
],
[
145,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
170,
175
],
[
145,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
177,
182
],
[
6,
183
],
[
183,
184
],
[
0,
185
],
[
185,
186
],
[
185,
187
]
] | [
"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 = sc.nextInt();\n\t\tint sides[] = new int[3];\n\t\tint rank[] = new int[3];\n\n\t\tfor(int i=0;i<N;i++){\n\t\t\tsides[0]=sc.nextInt();\n\t\t\tsides[1]=sc.nextInt();\n\t\t\tsides[2]=sc.nextInt();\n\t\t\trank[0]=sides[0];\n\t\t\trank[1]=sides[1];\n\t\t\trank[2]=sides[2];\n\n\t\t\tfor(int j=0;j<2;j++){\n\t\t\t\tif(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rank[0]<rank[1]){\n\t\t\t\trank[0]=rank[1];\n\t\t\t\trank[1]=sides[0];\n\t\t\t}\n\n\t\t\tif(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[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}\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 = sc.nextInt();\n\t\tint sides[] = new int[3];\n\t\tint rank[] = new int[3];\n\n\t\tfor(int i=0;i<N;i++){\n\t\t\tsides[0]=sc.nextInt();\n\t\t\tsides[1]=sc.nextInt();\n\t\t\tsides[2]=sc.nextInt();\n\t\t\trank[0]=sides[0];\n\t\t\trank[1]=sides[1];\n\t\t\trank[2]=sides[2];\n\n\t\t\tfor(int j=0;j<2;j++){\n\t\t\t\tif(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rank[0]<rank[1]){\n\t\t\t\trank[0]=rank[1];\n\t\t\t\trank[1]=sides[0];\n\t\t\t}\n\n\t\t\tif(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[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}\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 sides[] = new int[3];\n\t\tint rank[] = new int[3];\n\n\t\tfor(int i=0;i<N;i++){\n\t\t\tsides[0]=sc.nextInt();\n\t\t\tsides[1]=sc.nextInt();\n\t\t\tsides[2]=sc.nextInt();\n\t\t\trank[0]=sides[0];\n\t\t\trank[1]=sides[1];\n\t\t\trank[2]=sides[2];\n\n\t\t\tfor(int j=0;j<2;j++){\n\t\t\t\tif(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rank[0]<rank[1]){\n\t\t\t\trank[0]=rank[1];\n\t\t\t\trank[1]=sides[0];\n\t\t\t}\n\n\t\t\tif(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[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}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint sides[] = new int[3];\n\t\tint rank[] = new int[3];\n\n\t\tfor(int i=0;i<N;i++){\n\t\t\tsides[0]=sc.nextInt();\n\t\t\tsides[1]=sc.nextInt();\n\t\t\tsides[2]=sc.nextInt();\n\t\t\trank[0]=sides[0];\n\t\t\trank[1]=sides[1];\n\t\t\trank[2]=sides[2];\n\n\t\t\tfor(int j=0;j<2;j++){\n\t\t\t\tif(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rank[0]<rank[1]){\n\t\t\t\trank[0]=rank[1];\n\t\t\t\trank[1]=sides[0];\n\t\t\t}\n\n\t\t\tif(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[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}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int sides[] = new int[3];",
"sides",
"new int[3]",
"3",
"int rank[] = new int[3];",
"rank",
"new int[3]",
"3",
"for(int i=0;i<N;i++){\n\t\t\tsides[0]=sc.nextInt();\n\t\t\tsides[1]=sc.nextInt();\n\t\t\tsides[2]=sc.nextInt();\n\t\t\trank[0]=sides[0];\n\t\t\trank[1]=sides[1];\n\t\t\trank[2]=sides[2];\n\n\t\t\tfor(int j=0;j<2;j++){\n\t\t\t\tif(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rank[0]<rank[1]){\n\t\t\t\trank[0]=rank[1];\n\t\t\t\trank[1]=sides[0];\n\t\t\t}\n\n\t\t\tif(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[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<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tsides[0]=sc.nextInt();\n\t\t\tsides[1]=sc.nextInt();\n\t\t\tsides[2]=sc.nextInt();\n\t\t\trank[0]=sides[0];\n\t\t\trank[1]=sides[1];\n\t\t\trank[2]=sides[2];\n\n\t\t\tfor(int j=0;j<2;j++){\n\t\t\t\tif(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rank[0]<rank[1]){\n\t\t\t\trank[0]=rank[1];\n\t\t\t\trank[1]=sides[0];\n\t\t\t}\n\n\t\t\tif(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[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\tsides[0]=sc.nextInt();\n\t\t\tsides[1]=sc.nextInt();\n\t\t\tsides[2]=sc.nextInt();\n\t\t\trank[0]=sides[0];\n\t\t\trank[1]=sides[1];\n\t\t\trank[2]=sides[2];\n\n\t\t\tfor(int j=0;j<2;j++){\n\t\t\t\tif(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rank[0]<rank[1]){\n\t\t\t\trank[0]=rank[1];\n\t\t\t\trank[1]=sides[0];\n\t\t\t}\n\n\t\t\tif(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[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}",
"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",
"rank[0]=sides[0]",
"rank[0]",
"rank",
"0",
"sides[0]",
"sides",
"0",
"rank[1]=sides[1]",
"rank[1]",
"rank",
"1",
"sides[1]",
"sides",
"1",
"rank[2]=sides[2]",
"rank[2]",
"rank",
"2",
"sides[2]",
"sides",
"2",
"for(int j=0;j<2;j++){\n\t\t\t\tif(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<2",
"j",
"2",
"j++",
"j++",
"j",
"{\n\t\t\t\tif(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}\n\t\t\t}",
"if(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}",
"sides[j]<sides[j+1]",
"sides[j]",
"sides",
"j",
"sides[j+1]",
"sides",
"j+1",
"j",
"1",
"{\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}",
"rank[j]=sides[j+1]",
"rank[j]",
"rank",
"j",
"sides[j+1]",
"sides",
"j+1",
"j",
"1",
"rank[j+1]=sides[j]",
"rank[j+1]",
"rank",
"j+1",
"j",
"1",
"sides[j]",
"sides",
"j",
"if(rank[0]<rank[1]){\n\t\t\t\trank[0]=rank[1];\n\t\t\t\trank[1]=sides[0];\n\t\t\t}",
"rank[0]<rank[1]",
"rank[0]",
"rank",
"0",
"rank[1]",
"rank",
"1",
"{\n\t\t\t\trank[0]=rank[1];\n\t\t\t\trank[1]=sides[0];\n\t\t\t}",
"rank[0]=rank[1]",
"rank[0]",
"rank",
"0",
"rank[1]",
"rank",
"1",
"rank[1]=sides[0]",
"rank[1]",
"rank",
"1",
"sides[0]",
"sides",
"0",
"if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[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}",
"rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2]",
"rank[0]*rank[0]",
"rank[0]",
"rank",
"0",
"rank[0]",
"rank",
"0",
"rank[1]*rank[1]+rank[2]*rank[2]",
"rank[1]*rank[1]",
"rank[1]",
"rank",
"1",
"rank[1]",
"rank",
"1",
"rank[2]*rank[2]",
"rank[2]",
"rank",
"2",
"rank[2]",
"rank",
"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 sides[] = new int[3];\n\t\tint rank[] = new int[3];\n\n\t\tfor(int i=0;i<N;i++){\n\t\t\tsides[0]=sc.nextInt();\n\t\t\tsides[1]=sc.nextInt();\n\t\t\tsides[2]=sc.nextInt();\n\t\t\trank[0]=sides[0];\n\t\t\trank[1]=sides[1];\n\t\t\trank[2]=sides[2];\n\n\t\t\tfor(int j=0;j<2;j++){\n\t\t\t\tif(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rank[0]<rank[1]){\n\t\t\t\trank[0]=rank[1];\n\t\t\t\trank[1]=sides[0];\n\t\t\t}\n\n\t\t\tif(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[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}\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 sides[] = new int[3];\n\t\tint rank[] = new int[3];\n\n\t\tfor(int i=0;i<N;i++){\n\t\t\tsides[0]=sc.nextInt();\n\t\t\tsides[1]=sc.nextInt();\n\t\t\tsides[2]=sc.nextInt();\n\t\t\trank[0]=sides[0];\n\t\t\trank[1]=sides[1];\n\t\t\trank[2]=sides[2];\n\n\t\t\tfor(int j=0;j<2;j++){\n\t\t\t\tif(sides[j]<sides[j+1]){\n\t\t\t\t\trank[j]=sides[j+1];\n\t\t\t\t\trank[j+1]=sides[j];\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(rank[0]<rank[1]){\n\t\t\t\trank[0]=rank[1];\n\t\t\t\trank[1]=sides[0];\n\t\t\t}\n\n\t\t\tif(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[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}\n}",
"Main"
] | import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
int sides[] = new int[3];
int rank[] = new int[3];
for(int i=0;i<N;i++){
sides[0]=sc.nextInt();
sides[1]=sc.nextInt();
sides[2]=sc.nextInt();
rank[0]=sides[0];
rank[1]=sides[1];
rank[2]=sides[2];
for(int j=0;j<2;j++){
if(sides[j]<sides[j+1]){
rank[j]=sides[j+1];
rank[j+1]=sides[j];
}
}
if(rank[0]<rank[1]){
rank[0]=rank[1];
rank[1]=sides[0];
}
if(rank[0]*rank[0]==rank[1]*rank[1]+rank[2]*rank[2]){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
17,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
41,
13,
20,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
17,
4,
18,
13,
0,
18,
18,
13,
13,
17,
4,
18,
13,
0,
18,
18,
13,
13,
17,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
18,
18,
13,
13,
17,
14,
2,
18,
18,
13,
13,
17,
13,
0,
13,
18,
18,
13,
13,
17,
14,
2,
18,
18,
13,
13,
17,
13,
0,
13,
18,
18,
13,
13,
17,
14,
2,
13,
18,
18,
13,
13,
17,
30,
0,
13,
2,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
14,
2,
13,
18,
18,
13,
13,
17,
30,
0,
13,
2,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
14,
2,
13,
18,
18,
13,
13,
17,
30,
0,
13,
2,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
0,
13,
2,
13,
13,
14,
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
],
[
256,
5
],
[
256,
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
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
27,
33
],
[
33,
34
],
[
33,
35
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
50,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
27,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
78,
89
],
[
90,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
98,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
90,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
114,
120
],
[
113,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
90,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
128,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
140,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
139,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
151,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
128,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
162,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
174,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
173,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
186,
190
],
[
185,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
191,
195
],
[
162,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
199,
203
],
[
196,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
209,
213
],
[
208,
214
],
[
214,
215
],
[
215,
216
],
[
215,
217
],
[
214,
218
],
[
207,
219
],
[
219,
220
],
[
220,
221
],
[
221,
222
],
[
221,
223
],
[
220,
224
],
[
219,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
225,
229
],
[
90,
230
],
[
230,
231
],
[
230,
232
],
[
232,
233
],
[
232,
234
],
[
90,
235
],
[
235,
236
],
[
236,
237
],
[
236,
238
],
[
235,
239
],
[
239,
240
],
[
240,
241
],
[
241,
242
],
[
242,
243
],
[
242,
244
],
[
240,
245
],
[
235,
246
],
[
246,
247
],
[
247,
248
],
[
248,
249
],
[
249,
250
],
[
249,
251
],
[
247,
252
],
[
6,
253
],
[
253,
254
],
[
0,
255
],
[
255,
256
],
[
255,
257
]
] | [
"import java.util.Scanner;\n\n public class Main{\n\t public static void main(String[] args){\n\t\t Scanner s = new Scanner(System.in);\n\t\t int b,x,max,SH;\n\t\t SH = 0;\n\t\t while(s.hasNextInt()){\n\t\t x = s.nextInt();\n\t\t int[][] a = new int[x][3];\n\t\t for(b = 0; b < x; b++){\n\t\t\t a[b][0] = s.nextInt();\n\t\t\t a[b][1] = s.nextInt();\n\t\t\t a[b][2] = s.nextInt();\n\t\t }\n\t\t for(b = 0; b < x; b++){\n\t\t\t max = a[b][0];\n\t\t\t if(a[b][1] > max)max = a[b][1];\n\t\t\t if(a[b][2] > max)max = a[b][2];\n\t\t\t if(max == a[b][0]){\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }\n\t\t\t max = max*max;\n\t\t\t if(SH == max){\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t\t System.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\t public static void main(String[] args){\n\t\t Scanner s = new Scanner(System.in);\n\t\t int b,x,max,SH;\n\t\t SH = 0;\n\t\t while(s.hasNextInt()){\n\t\t x = s.nextInt();\n\t\t int[][] a = new int[x][3];\n\t\t for(b = 0; b < x; b++){\n\t\t\t a[b][0] = s.nextInt();\n\t\t\t a[b][1] = s.nextInt();\n\t\t\t a[b][2] = s.nextInt();\n\t\t }\n\t\t for(b = 0; b < x; b++){\n\t\t\t max = a[b][0];\n\t\t\t if(a[b][1] > max)max = a[b][1];\n\t\t\t if(a[b][2] > max)max = a[b][2];\n\t\t\t if(max == a[b][0]){\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }\n\t\t\t max = max*max;\n\t\t\t if(SH == max){\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t\t System.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\t Scanner s = new Scanner(System.in);\n\t\t int b,x,max,SH;\n\t\t SH = 0;\n\t\t while(s.hasNextInt()){\n\t\t x = s.nextInt();\n\t\t int[][] a = new int[x][3];\n\t\t for(b = 0; b < x; b++){\n\t\t\t a[b][0] = s.nextInt();\n\t\t\t a[b][1] = s.nextInt();\n\t\t\t a[b][2] = s.nextInt();\n\t\t }\n\t\t for(b = 0; b < x; b++){\n\t\t\t max = a[b][0];\n\t\t\t if(a[b][1] > max)max = a[b][1];\n\t\t\t if(a[b][2] > max)max = a[b][2];\n\t\t\t if(max == a[b][0]){\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }\n\t\t\t max = max*max;\n\t\t\t if(SH == max){\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t\t System.out.println(\"NO\");\n\t\t\t }\n\t\t }\n\t\t }\n\t }",
"main",
"{\n\t\t Scanner s = new Scanner(System.in);\n\t\t int b,x,max,SH;\n\t\t SH = 0;\n\t\t while(s.hasNextInt()){\n\t\t x = s.nextInt();\n\t\t int[][] a = new int[x][3];\n\t\t for(b = 0; b < x; b++){\n\t\t\t a[b][0] = s.nextInt();\n\t\t\t a[b][1] = s.nextInt();\n\t\t\t a[b][2] = s.nextInt();\n\t\t }\n\t\t for(b = 0; b < x; b++){\n\t\t\t max = a[b][0];\n\t\t\t if(a[b][1] > max)max = a[b][1];\n\t\t\t if(a[b][2] > max)max = a[b][2];\n\t\t\t if(max == a[b][0]){\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }\n\t\t\t max = max*max;\n\t\t\t if(SH == max){\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t\t System.out.println(\"NO\");\n\t\t\t }\n\t\t }\n\t\t }\n\t }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int b",
"b",
"x",
"x",
"max",
"max",
"SH;",
"SH",
"SH = 0",
"SH",
"0",
"while(s.hasNextInt()){\n\t\t x = s.nextInt();\n\t\t int[][] a = new int[x][3];\n\t\t for(b = 0; b < x; b++){\n\t\t\t a[b][0] = s.nextInt();\n\t\t\t a[b][1] = s.nextInt();\n\t\t\t a[b][2] = s.nextInt();\n\t\t }\n\t\t for(b = 0; b < x; b++){\n\t\t\t max = a[b][0];\n\t\t\t if(a[b][1] > max)max = a[b][1];\n\t\t\t if(a[b][2] > max)max = a[b][2];\n\t\t\t if(max == a[b][0]){\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }\n\t\t\t max = max*max;\n\t\t\t if(SH == max){\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t\t System.out.println(\"NO\");\n\t\t\t }\n\t\t }\n\t\t }",
"s.hasNextInt()",
"s.hasNextInt",
"s",
"{\n\t\t x = s.nextInt();\n\t\t int[][] a = new int[x][3];\n\t\t for(b = 0; b < x; b++){\n\t\t\t a[b][0] = s.nextInt();\n\t\t\t a[b][1] = s.nextInt();\n\t\t\t a[b][2] = s.nextInt();\n\t\t }\n\t\t for(b = 0; b < x; b++){\n\t\t\t max = a[b][0];\n\t\t\t if(a[b][1] > max)max = a[b][1];\n\t\t\t if(a[b][2] > max)max = a[b][2];\n\t\t\t if(max == a[b][0]){\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }\n\t\t\t max = max*max;\n\t\t\t if(SH == max){\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t\t System.out.println(\"NO\");\n\t\t\t }\n\t\t }\n\t\t }",
"x = s.nextInt()",
"x",
"s.nextInt()",
"s.nextInt",
"s",
"int[][] a = new int[x][3];",
"a",
"new int[x][3]",
"x",
"3",
"for(b = 0; b < x; b++){\n\t\t\t a[b][0] = s.nextInt();\n\t\t\t a[b][1] = s.nextInt();\n\t\t\t a[b][2] = s.nextInt();\n\t\t }",
"b = 0;",
"b = 0",
"b",
"0",
"b < x",
"b",
"x",
"b++",
"b++",
"b",
"{\n\t\t\t a[b][0] = s.nextInt();\n\t\t\t a[b][1] = s.nextInt();\n\t\t\t a[b][2] = s.nextInt();\n\t\t }",
"{\n\t\t\t a[b][0] = s.nextInt();\n\t\t\t a[b][1] = s.nextInt();\n\t\t\t a[b][2] = s.nextInt();\n\t\t }",
"a[b][0] = s.nextInt()",
"a[b][0]",
"a[b]",
"a",
"b",
"0",
"s.nextInt()",
"s.nextInt",
"s",
"a[b][1] = s.nextInt()",
"a[b][1]",
"a[b]",
"a",
"b",
"1",
"s.nextInt()",
"s.nextInt",
"s",
"a[b][2] = s.nextInt()",
"a[b][2]",
"a[b]",
"a",
"b",
"2",
"s.nextInt()",
"s.nextInt",
"s",
"for(b = 0; b < x; b++){\n\t\t\t max = a[b][0];\n\t\t\t if(a[b][1] > max)max = a[b][1];\n\t\t\t if(a[b][2] > max)max = a[b][2];\n\t\t\t if(max == a[b][0]){\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }\n\t\t\t max = max*max;\n\t\t\t if(SH == max){\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t\t System.out.println(\"NO\");\n\t\t\t }\n\t\t }",
"b = 0;",
"b = 0",
"b",
"0",
"b < x",
"b",
"x",
"b++",
"b++",
"b",
"{\n\t\t\t max = a[b][0];\n\t\t\t if(a[b][1] > max)max = a[b][1];\n\t\t\t if(a[b][2] > max)max = a[b][2];\n\t\t\t if(max == a[b][0]){\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }\n\t\t\t max = max*max;\n\t\t\t if(SH == max){\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t\t System.out.println(\"NO\");\n\t\t\t }\n\t\t }",
"{\n\t\t\t max = a[b][0];\n\t\t\t if(a[b][1] > max)max = a[b][1];\n\t\t\t if(a[b][2] > max)max = a[b][2];\n\t\t\t if(max == a[b][0]){\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }\n\t\t\t max = max*max;\n\t\t\t if(SH == max){\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t\t System.out.println(\"NO\");\n\t\t\t }\n\t\t }",
"max = a[b][0]",
"max",
"a[b][0]",
"a[b]",
"a",
"b",
"0",
"if(a[b][1] > max)max = a[b][1];",
"a[b][1] > max",
"a[b][1]",
"a[b]",
"a",
"b",
"1",
"max",
"max = a[b][1]",
"max",
"a[b][1]",
"a[b]",
"a",
"b",
"1",
"if(a[b][2] > max)max = a[b][2];",
"a[b][2] > max",
"a[b][2]",
"a[b]",
"a",
"b",
"2",
"max",
"max = a[b][2]",
"max",
"a[b][2]",
"a[b]",
"a",
"b",
"2",
"if(max == a[b][0]){\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }",
"max == a[b][0]",
"max",
"a[b][0]",
"a[b]",
"a",
"b",
"0",
"{\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }",
"SH = a[b][1]*a[b][1]+a[b][2]*a[b][2]",
"SH",
"a[b][1]*a[b][1]+a[b][2]*a[b][2]",
"a[b][1]*a[b][1]",
"a[b][1]",
"a[b]",
"a",
"b",
"1",
"a[b][1]",
"a[b]",
"a",
"b",
"1",
"a[b][2]*a[b][2]",
"a[b][2]",
"a[b]",
"a",
"b",
"2",
"a[b][2]",
"a[b]",
"a",
"b",
"2",
"if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }",
"max == a[b][1]",
"max",
"a[b][1]",
"a[b]",
"a",
"b",
"1",
"{\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }",
"SH = a[b][0]*a[b][0]+a[b][2]*a[b][2]",
"SH",
"a[b][0]*a[b][0]+a[b][2]*a[b][2]",
"a[b][0]*a[b][0]",
"a[b][0]",
"a[b]",
"a",
"b",
"0",
"a[b][0]",
"a[b]",
"a",
"b",
"0",
"a[b][2]*a[b][2]",
"a[b][2]",
"a[b]",
"a",
"b",
"2",
"a[b][2]",
"a[b]",
"a",
"b",
"2",
"if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }",
"max == a[b][2]",
"max",
"a[b][2]",
"a[b]",
"a",
"b",
"2",
"{\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }",
"SH = a[b][0]*a[b][0]+a[b][1]*a[b][1]",
"SH",
"a[b][0]*a[b][0]+a[b][1]*a[b][1]",
"a[b][0]*a[b][0]",
"a[b][0]",
"a[b]",
"a",
"b",
"0",
"a[b][0]",
"a[b]",
"a",
"b",
"0",
"a[b][1]*a[b][1]",
"a[b][1]",
"a[b]",
"a",
"b",
"1",
"a[b][1]",
"a[b]",
"a",
"b",
"1",
"max = max*max",
"max",
"max*max",
"max",
"max",
"if(SH == max){\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t\t System.out.println(\"NO\");\n\t\t\t }",
"SH == max",
"SH",
"max",
"{\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\t\t\t\t System.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\t public static void main(String[] args){\n\t\t Scanner s = new Scanner(System.in);\n\t\t int b,x,max,SH;\n\t\t SH = 0;\n\t\t while(s.hasNextInt()){\n\t\t x = s.nextInt();\n\t\t int[][] a = new int[x][3];\n\t\t for(b = 0; b < x; b++){\n\t\t\t a[b][0] = s.nextInt();\n\t\t\t a[b][1] = s.nextInt();\n\t\t\t a[b][2] = s.nextInt();\n\t\t }\n\t\t for(b = 0; b < x; b++){\n\t\t\t max = a[b][0];\n\t\t\t if(a[b][1] > max)max = a[b][1];\n\t\t\t if(a[b][2] > max)max = a[b][2];\n\t\t\t if(max == a[b][0]){\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }\n\t\t\t max = max*max;\n\t\t\t if(SH == max){\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t\t System.out.println(\"NO\");\n\t\t\t }\n\t\t }\n\t\t }\n\t }\n }",
"public class Main{\n\t public static void main(String[] args){\n\t\t Scanner s = new Scanner(System.in);\n\t\t int b,x,max,SH;\n\t\t SH = 0;\n\t\t while(s.hasNextInt()){\n\t\t x = s.nextInt();\n\t\t int[][] a = new int[x][3];\n\t\t for(b = 0; b < x; b++){\n\t\t\t a[b][0] = s.nextInt();\n\t\t\t a[b][1] = s.nextInt();\n\t\t\t a[b][2] = s.nextInt();\n\t\t }\n\t\t for(b = 0; b < x; b++){\n\t\t\t max = a[b][0];\n\t\t\t if(a[b][1] > max)max = a[b][1];\n\t\t\t if(a[b][2] > max)max = a[b][2];\n\t\t\t if(max == a[b][0]){\n\t\t\t\t SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][1]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];\n\t\t\t }else if(max == a[b][2]){\n\t\t\t\t SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];\n\t\t\t }\n\t\t\t max = max*max;\n\t\t\t if(SH == max){\n\t\t\t\t System.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t\t System.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 s = new Scanner(System.in);
int b,x,max,SH;
SH = 0;
while(s.hasNextInt()){
x = s.nextInt();
int[][] a = new int[x][3];
for(b = 0; b < x; b++){
a[b][0] = s.nextInt();
a[b][1] = s.nextInt();
a[b][2] = s.nextInt();
}
for(b = 0; b < x; b++){
max = a[b][0];
if(a[b][1] > max)max = a[b][1];
if(a[b][2] > max)max = a[b][2];
if(max == a[b][0]){
SH = a[b][1]*a[b][1]+a[b][2]*a[b][2];
}else if(max == a[b][1]){
SH = a[b][0]*a[b][0]+a[b][2]*a[b][2];
}else if(max == a[b][2]){
SH = a[b][0]*a[b][0]+a[b][1]*a[b][1];
}
max = max*max;
if(SH == max){
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,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
41,
13,
20,
42,
40,
2,
2,
13,
17,
4,
18,
17,
13,
30,
0,
13,
20,
41,
13,
20,
17,
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,
18,
13,
13,
4,
18,
13,
41,
13,
20,
0,
13,
17,
41,
13,
2,
2,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
17,
14,
2,
13,
17,
30,
0,
13,
17,
4,
18,
13,
40,
13,
13,
0,
13,
4,
18,
13,
28,
13,
13,
30,
30,
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
],
[
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
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
26,
40
],
[
40,
41
],
[
26,
42
],
[
42,
43
],
[
42,
44
],
[
26,
45
],
[
45,
46
],
[
45,
47
],
[
26,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
48,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
58,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
58,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
58,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
58,
103
],
[
103,
104
],
[
103,
105
],
[
58,
106
],
[
106,
107
],
[
106,
108
],
[
58,
109
],
[
109,
110
],
[
109,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
116,
118
],
[
113,
119
],
[
112,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
123,
125
],
[
120,
126
],
[
112,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
130,
131
],
[
130,
132
],
[
127,
133
],
[
58,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
58,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
145,
146
],
[
142,
147
],
[
58,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
26,
153
],
[
153,
154
],
[
153,
155
],
[
153,
156
],
[
157,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
24,
164
],
[
164,
165
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.StringTokenizer;\n\nclass Main {\n\tpublic static void main(String[] args)\n\t\t\tthrows IOException {\n\n\t\tBufferedReader br = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\t\tString number = br.readLine();\n\t\tString s = br.readLine();\n\t\tStringTokenizer st;\n\t\tint count = 0;\n\t\tArrayList<String> list = new ArrayList<>();\n\n\t\twhile (!(s == null || \"\".equals(s))) {\n\t\t\tst = new StringTokenizer(s);\n\t\t\tInteger[] tri = new Integer[3];\n\t\t\ttri[0] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\t\t\ttri[1] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\t\t\ttri[2] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\n\t\t\tArrays.sort(tri, Collections\n\t\t\t\t\t.reverseOrder());\n\n\t\t\tString yesno = new String();\n\t\t\tyesno = \"NO\";\n\n\t\t\tdouble compare = Math.pow(tri[0], 2)\n\t\t\t\t\t- Math.pow(tri[1], 2) - Math\n\t\t\t\t\t\t\t.pow(tri[2], 2);\n\t\t\tif (compare == 0) {\n\t\t\t\tyesno = \"YES\";\n\t\t\t}\n\n\t\t\tlist.add(count++, yesno);\n\t\t\ts = br.readLine();\n\n\t\t}\n\t\tfor (String string : list) {\n\t\t\tSystem.out.println(string);\n\t\t}\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"class Main {\n\tpublic static void main(String[] args)\n\t\t\tthrows IOException {\n\n\t\tBufferedReader br = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\t\tString number = br.readLine();\n\t\tString s = br.readLine();\n\t\tStringTokenizer st;\n\t\tint count = 0;\n\t\tArrayList<String> list = new ArrayList<>();\n\n\t\twhile (!(s == null || \"\".equals(s))) {\n\t\t\tst = new StringTokenizer(s);\n\t\t\tInteger[] tri = new Integer[3];\n\t\t\ttri[0] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\t\t\ttri[1] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\t\t\ttri[2] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\n\t\t\tArrays.sort(tri, Collections\n\t\t\t\t\t.reverseOrder());\n\n\t\t\tString yesno = new String();\n\t\t\tyesno = \"NO\";\n\n\t\t\tdouble compare = Math.pow(tri[0], 2)\n\t\t\t\t\t- Math.pow(tri[1], 2) - Math\n\t\t\t\t\t\t\t.pow(tri[2], 2);\n\t\t\tif (compare == 0) {\n\t\t\t\tyesno = \"YES\";\n\t\t\t}\n\n\t\t\tlist.add(count++, yesno);\n\t\t\ts = br.readLine();\n\n\t\t}\n\t\tfor (String string : list) {\n\t\t\tSystem.out.println(string);\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args)\n\t\t\tthrows IOException {\n\n\t\tBufferedReader br = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\t\tString number = br.readLine();\n\t\tString s = br.readLine();\n\t\tStringTokenizer st;\n\t\tint count = 0;\n\t\tArrayList<String> list = new ArrayList<>();\n\n\t\twhile (!(s == null || \"\".equals(s))) {\n\t\t\tst = new StringTokenizer(s);\n\t\t\tInteger[] tri = new Integer[3];\n\t\t\ttri[0] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\t\t\ttri[1] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\t\t\ttri[2] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\n\t\t\tArrays.sort(tri, Collections\n\t\t\t\t\t.reverseOrder());\n\n\t\t\tString yesno = new String();\n\t\t\tyesno = \"NO\";\n\n\t\t\tdouble compare = Math.pow(tri[0], 2)\n\t\t\t\t\t- Math.pow(tri[1], 2) - Math\n\t\t\t\t\t\t\t.pow(tri[2], 2);\n\t\t\tif (compare == 0) {\n\t\t\t\tyesno = \"YES\";\n\t\t\t}\n\n\t\t\tlist.add(count++, yesno);\n\t\t\ts = br.readLine();\n\n\t\t}\n\t\tfor (String string : list) {\n\t\t\tSystem.out.println(string);\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));\n\t\tString number = br.readLine();\n\t\tString s = br.readLine();\n\t\tStringTokenizer st;\n\t\tint count = 0;\n\t\tArrayList<String> list = new ArrayList<>();\n\n\t\twhile (!(s == null || \"\".equals(s))) {\n\t\t\tst = new StringTokenizer(s);\n\t\t\tInteger[] tri = new Integer[3];\n\t\t\ttri[0] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\t\t\ttri[1] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\t\t\ttri[2] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\n\t\t\tArrays.sort(tri, Collections\n\t\t\t\t\t.reverseOrder());\n\n\t\t\tString yesno = new String();\n\t\t\tyesno = \"NO\";\n\n\t\t\tdouble compare = Math.pow(tri[0], 2)\n\t\t\t\t\t- Math.pow(tri[1], 2) - Math\n\t\t\t\t\t\t\t.pow(tri[2], 2);\n\t\t\tif (compare == 0) {\n\t\t\t\tyesno = \"YES\";\n\t\t\t}\n\n\t\t\tlist.add(count++, yesno);\n\t\t\ts = br.readLine();\n\n\t\t}\n\t\tfor (String string : list) {\n\t\t\tSystem.out.println(string);\n\t\t}\n\n\t}",
"BufferedReader br = new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in));",
"br",
"new BufferedReader(\n\t\t\t\tnew InputStreamReader(System.in))",
"String number = br.readLine();",
"number",
"br.readLine()",
"br.readLine",
"br",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"StringTokenizer st;",
"st",
"int count = 0;",
"count",
"0",
"ArrayList<String> list = new ArrayList<>();",
"list",
"new ArrayList<>()",
"while (!(s == null || \"\".equals(s))) {\n\t\t\tst = new StringTokenizer(s);\n\t\t\tInteger[] tri = new Integer[3];\n\t\t\ttri[0] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\t\t\ttri[1] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\t\t\ttri[2] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\n\t\t\tArrays.sort(tri, Collections\n\t\t\t\t\t.reverseOrder());\n\n\t\t\tString yesno = new String();\n\t\t\tyesno = \"NO\";\n\n\t\t\tdouble compare = Math.pow(tri[0], 2)\n\t\t\t\t\t- Math.pow(tri[1], 2) - Math\n\t\t\t\t\t\t\t.pow(tri[2], 2);\n\t\t\tif (compare == 0) {\n\t\t\t\tyesno = \"YES\";\n\t\t\t}\n\n\t\t\tlist.add(count++, yesno);\n\t\t\ts = br.readLine();\n\n\t\t}",
"!(s == null || \"\".equals(s))",
"(s == null || \"\".equals(s))",
"s == null",
"s",
"null",
"\"\".equals(s)",
"\"\".equals",
"\"\"",
"s",
"{\n\t\t\tst = new StringTokenizer(s);\n\t\t\tInteger[] tri = new Integer[3];\n\t\t\ttri[0] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\t\t\ttri[1] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\t\t\ttri[2] = Integer.parseInt(st\n\t\t\t\t\t.nextToken());\n\n\t\t\tArrays.sort(tri, Collections\n\t\t\t\t\t.reverseOrder());\n\n\t\t\tString yesno = new String();\n\t\t\tyesno = \"NO\";\n\n\t\t\tdouble compare = Math.pow(tri[0], 2)\n\t\t\t\t\t- Math.pow(tri[1], 2) - Math\n\t\t\t\t\t\t\t.pow(tri[2], 2);\n\t\t\tif (compare == 0) {\n\t\t\t\tyesno = \"YES\";\n\t\t\t}\n\n\t\t\tlist.add(count++, yesno);\n\t\t\ts = br.readLine();\n\n\t\t}",
"st = new StringTokenizer(s)",
"st",
"new StringTokenizer(s)",
"Integer[] tri = new Integer[3];",
"tri",
"new Integer[3]",
"3",
"tri[0] = Integer.parseInt(st\n\t\t\t\t\t.nextToken())",
"tri[0]",
"tri",
"0",
"Integer.parseInt(st\n\t\t\t\t\t.nextToken())",
"Integer.parseInt",
"Integer",
"st\n\t\t\t\t\t.nextToken()",
"st\n\t\t\t\t\t.nextToken",
"st",
"tri[1] = Integer.parseInt(st\n\t\t\t\t\t.nextToken())",
"tri[1]",
"tri",
"1",
"Integer.parseInt(st\n\t\t\t\t\t.nextToken())",
"Integer.parseInt",
"Integer",
"st\n\t\t\t\t\t.nextToken()",
"st\n\t\t\t\t\t.nextToken",
"st",
"tri[2] = Integer.parseInt(st\n\t\t\t\t\t.nextToken())",
"tri[2]",
"tri",
"2",
"Integer.parseInt(st\n\t\t\t\t\t.nextToken())",
"Integer.parseInt",
"Integer",
"st\n\t\t\t\t\t.nextToken()",
"st\n\t\t\t\t\t.nextToken",
"st",
"Arrays.sort(tri, Collections\n\t\t\t\t\t.reverseOrder())",
"Arrays.sort",
"Arrays",
"tri",
"Collections\n\t\t\t\t\t.reverseOrder()",
"Collections\n\t\t\t\t\t.reverseOrder",
"Collections",
"String yesno = new String();",
"yesno",
"new String()",
"yesno = \"NO\"",
"yesno",
"\"NO\"",
"double compare = Math.pow(tri[0], 2)\n\t\t\t\t\t- Math.pow(tri[1], 2) - Math\n\t\t\t\t\t\t\t.pow(tri[2], 2);",
"compare",
"Math.pow(tri[0], 2)\n\t\t\t\t\t- Math.pow(tri[1], 2) - Math\n\t\t\t\t\t\t\t.pow(tri[2], 2)",
"Math.pow(tri[0], 2)\n\t\t\t\t\t- Math.pow(tri[1], 2) - Math\n\t\t\t\t\t\t\t.pow(tri[2], 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\n\t\t\t\t\t\t\t.pow(tri[2], 2)",
"Math\n\t\t\t\t\t\t\t.pow",
"Math",
"tri[2]",
"tri",
"2",
"2",
"if (compare == 0) {\n\t\t\t\tyesno = \"YES\";\n\t\t\t}",
"compare == 0",
"compare",
"0",
"{\n\t\t\t\tyesno = \"YES\";\n\t\t\t}",
"yesno = \"YES\"",
"yesno",
"\"YES\"",
"list.add(count++, yesno)",
"list.add",
"list",
"count++",
"count",
"yesno",
"s = br.readLine()",
"s",
"br.readLine()",
"br.readLine",
"br",
"for (String string : list) {\n\t\t\tSystem.out.println(string);\n\t\t}",
"String string",
"list",
"{\n\t\t\tSystem.out.println(string);\n\t\t}",
"{\n\t\t\tSystem.out.println(string);\n\t\t}",
"System.out.println(string)",
"System.out.println",
"System.out",
"System",
"System.out",
"string",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.StringTokenizer;
class Main {
public static void main(String[] args)
throws IOException {
BufferedReader br = new BufferedReader(
new InputStreamReader(System.in));
String number = br.readLine();
String s = br.readLine();
StringTokenizer st;
int count = 0;
ArrayList<String> list = new ArrayList<>();
while (!(s == null || "".equals(s))) {
st = new StringTokenizer(s);
Integer[] tri = new Integer[3];
tri[0] = Integer.parseInt(st
.nextToken());
tri[1] = Integer.parseInt(st
.nextToken());
tri[2] = Integer.parseInt(st
.nextToken());
Arrays.sort(tri, Collections
.reverseOrder());
String yesno = new String();
yesno = "NO";
double compare = Math.pow(tri[0], 2)
- Math.pow(tri[1], 2) - Math
.pow(tri[2], 2);
if (compare == 0) {
yesno = "YES";
}
list.add(count++, yesno);
s = br.readLine();
}
for (String string : list) {
System.out.println(string);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
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,
0,
18,
13,
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,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
113,
17
],
[
113,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
18,
23
],
[
23,
24
],
[
113,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
27,
36
],
[
36,
37
],
[
36,
38
],
[
27,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
52,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
52,
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
],
[
102,
104
],
[
100,
105
],
[
76,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
] | [
"import java.util.List;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[]args){\n\t\tIsitATriangle();\n\t}\n\t\n\tpublic static void IsitATriangle(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[]triangle = new int[3];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<3;j++)triangle[j]=scan.nextInt();\n\t\t\tArrays.sort(triangle);\n\t\t\tif(triangle[0]*triangle[0]+triangle[1]*triangle[1]==triangle[2]*triangle[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.util.List;",
"List",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[]args){\n\t\tIsitATriangle();\n\t}\n\t\n\tpublic static void IsitATriangle(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[]triangle = new int[3];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<3;j++)triangle[j]=scan.nextInt();\n\t\t\tArrays.sort(triangle);\n\t\t\tif(triangle[0]*triangle[0]+triangle[1]*triangle[1]==triangle[2]*triangle[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\tIsitATriangle();\n\t}",
"main",
"{\n\t\tIsitATriangle();\n\t}",
"IsitATriangle()",
"IsitATriangle",
"String[]args",
"args",
"public static void IsitATriangle(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[]triangle = new int[3];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<3;j++)triangle[j]=scan.nextInt();\n\t\t\tArrays.sort(triangle);\n\t\t\tif(triangle[0]*triangle[0]+triangle[1]*triangle[1]==triangle[2]*triangle[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}",
"IsitATriangle",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[]triangle = new int[3];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<3;j++)triangle[j]=scan.nextInt();\n\t\t\tArrays.sort(triangle);\n\t\t\tif(triangle[0]*triangle[0]+triangle[1]*triangle[1]==triangle[2]*triangle[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",
"int[]triangle = new int[3];",
"triangle",
"new int[3]",
"3",
"for(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<3;j++)triangle[j]=scan.nextInt();\n\t\t\tArrays.sort(triangle);\n\t\t\tif(triangle[0]*triangle[0]+triangle[1]*triangle[1]==triangle[2]*triangle[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\tfor(int j=0;j<3;j++)triangle[j]=scan.nextInt();\n\t\t\tArrays.sort(triangle);\n\t\t\tif(triangle[0]*triangle[0]+triangle[1]*triangle[1]==triangle[2]*triangle[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"{\n\t\t\tfor(int j=0;j<3;j++)triangle[j]=scan.nextInt();\n\t\t\tArrays.sort(triangle);\n\t\t\tif(triangle[0]*triangle[0]+triangle[1]*triangle[1]==triangle[2]*triangle[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"for(int j=0;j<3;j++)triangle[j]=scan.nextInt();",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"triangle[j]=scan.nextInt();",
"triangle[j]=scan.nextInt()",
"triangle[j]",
"triangle",
"j",
"scan.nextInt()",
"scan.nextInt",
"scan",
"Arrays.sort(triangle)",
"Arrays.sort",
"Arrays",
"triangle",
"if(triangle[0]*triangle[0]+triangle[1]*triangle[1]==triangle[2]*triangle[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");",
"triangle[0]*triangle[0]+triangle[1]*triangle[1]==triangle[2]*triangle[2]",
"triangle[0]*triangle[0]+triangle[1]*triangle[1]",
"triangle[0]*triangle[0]",
"triangle[0]",
"triangle",
"0",
"triangle[0]",
"triangle",
"0",
"triangle[1]*triangle[1]",
"triangle[1]",
"triangle",
"1",
"triangle[1]",
"triangle",
"1",
"triangle[2]*triangle[2]",
"triangle[2]",
"triangle",
"2",
"triangle[2]",
"triangle",
"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\"",
"public class Main {\n\tpublic static void main(String[]args){\n\t\tIsitATriangle();\n\t}\n\t\n\tpublic static void IsitATriangle(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[]triangle = new int[3];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<3;j++)triangle[j]=scan.nextInt();\n\t\t\tArrays.sort(triangle);\n\t\t\tif(triangle[0]*triangle[0]+triangle[1]*triangle[1]==triangle[2]*triangle[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\tIsitATriangle();\n\t}\n\t\n\tpublic static void IsitATriangle(){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[]triangle = new int[3];\n\t\t\n\t\tfor(int i=0;i<n;i++){\n\t\t\tfor(int j=0;j<3;j++)triangle[j]=scan.nextInt();\n\t\t\tArrays.sort(triangle);\n\t\t\tif(triangle[0]*triangle[0]+triangle[1]*triangle[1]==triangle[2]*triangle[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.util.List;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.Scanner;
public class Main {
public static void main(String[]args){
IsitATriangle();
}
public static void IsitATriangle(){
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int[]triangle = new int[3];
for(int i=0;i<n;i++){
for(int j=0;j<3;j++)triangle[j]=scan.nextInt();
Arrays.sort(triangle);
if(triangle[0]*triangle[0]+triangle[1]*triangle[1]==triangle[2]*triangle[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,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
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,
41,
13,
20,
18,
13,
13,
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,
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
],
[
17,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
43,
56
],
[
56,
57
],
[
56,
58
],
[
59,
60
],
[
59,
61
],
[
43,
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
],
[
43,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
43,
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
],
[
116,
118
],
[
114,
119
],
[
89,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
15,
127
],
[
127,
128
]
] | [
"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[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint dataset = Integer.parseInt(br.readLine());\n\t\tString str;\n\n\t\tfor(int i = 0; i < dataset; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString strline[] = str.split(\" \", 0);\n\n\t\t\tint line[] = new int[strline.length];\n\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\tline[j] = Integer.parseInt(strline[j]);\n\t\t\t}\n\t\t\tArrays.sort(line);\n\n\t\t\tif(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 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[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint dataset = Integer.parseInt(br.readLine());\n\t\tString str;\n\n\t\tfor(int i = 0; i < dataset; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString strline[] = str.split(\" \", 0);\n\n\t\t\tint line[] = new int[strline.length];\n\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\tline[j] = Integer.parseInt(strline[j]);\n\t\t\t}\n\t\t\tArrays.sort(line);\n\n\t\t\tif(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 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 NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint dataset = Integer.parseInt(br.readLine());\n\t\tString str;\n\n\t\tfor(int i = 0; i < dataset; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString strline[] = str.split(\" \", 0);\n\n\t\t\tint line[] = new int[strline.length];\n\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\tline[j] = Integer.parseInt(strline[j]);\n\t\t\t}\n\t\t\tArrays.sort(line);\n\n\t\t\tif(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 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 dataset = Integer.parseInt(br.readLine());\n\t\tString str;\n\n\t\tfor(int i = 0; i < dataset; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString strline[] = str.split(\" \", 0);\n\n\t\t\tint line[] = new int[strline.length];\n\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\tline[j] = Integer.parseInt(strline[j]);\n\t\t\t}\n\t\t\tArrays.sort(line);\n\n\t\t\tif(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 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 dataset = Integer.parseInt(br.readLine());",
"dataset",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String str;",
"str",
"for(int i = 0; i < dataset; i++) {\n\t\t\tstr = br.readLine();\n\t\t\tString strline[] = str.split(\" \", 0);\n\n\t\t\tint line[] = new int[strline.length];\n\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\tline[j] = Integer.parseInt(strline[j]);\n\t\t\t}\n\t\t\tArrays.sort(line);\n\n\t\t\tif(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 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 < dataset",
"i",
"dataset",
"i++",
"i++",
"i",
"{\n\t\t\tstr = br.readLine();\n\t\t\tString strline[] = str.split(\" \", 0);\n\n\t\t\tint line[] = new int[strline.length];\n\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\tline[j] = Integer.parseInt(strline[j]);\n\t\t\t}\n\t\t\tArrays.sort(line);\n\n\t\t\tif(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 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\tstr = br.readLine();\n\t\t\tString strline[] = str.split(\" \", 0);\n\n\t\t\tint line[] = new int[strline.length];\n\t\t\tfor(int j = 0; j < 3; j++) {\n\t\t\t\tline[j] = Integer.parseInt(strline[j]);\n\t\t\t}\n\t\t\tArrays.sort(line);\n\n\t\t\tif(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 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}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"String strline[] = str.split(\" \", 0);",
"strline",
"str.split(\" \", 0)",
"str.split",
"str",
"\" \"",
"0",
"int line[] = new int[strline.length];",
"line",
"new int[strline.length]",
"strline.length",
"strline",
"strline.length",
"for(int j = 0; j < 3; j++) {\n\t\t\t\tline[j] = Integer.parseInt(strline[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tline[j] = Integer.parseInt(strline[j]);\n\t\t\t}",
"{\n\t\t\t\tline[j] = Integer.parseInt(strline[j]);\n\t\t\t}",
"line[j] = Integer.parseInt(strline[j])",
"line[j]",
"line",
"j",
"Integer.parseInt(strline[j])",
"Integer.parseInt",
"Integer",
"strline[j]",
"strline",
"j",
"Arrays.sort(line)",
"Arrays.sort",
"Arrays",
"line",
"if(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 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((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 2)",
"Math.pow((double)line[2], 2)",
"Math.pow",
"Math",
"(double)line[2]",
"line",
"2",
"2",
"Math.pow((double)line[0], 2) + Math.pow((double)line[1], 2)",
"Math.pow((double)line[0], 2)",
"Math.pow",
"Math",
"(double)line[0]",
"line",
"0",
"2",
"Math.pow((double)line[1], 2)",
"Math.pow",
"Math",
"(double)line[1]",
"line",
"1",
"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.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int dataset = Integer.parseInt(br.readLine());
String str;
for(int i = 0; i < dataset; i++) {
str = br.readLine();
String strline[] = str.split(" ", 0);
int line[] = new int[strline.length];
for(int j = 0; j < 3; j++) {
line[j] = Integer.parseInt(strline[j]);
}
Arrays.sort(line);
if(Math.pow((double)line[2], 2) == Math.pow((double)line[0], 2) + Math.pow((double)line[1], 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,
0,
13,
13,
0,
13,
13,
0,
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
],
[
89,
5
],
[
89,
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
],
[
29,
48
],
[
48,
49
],
[
48,
50
],
[
29,
51
],
[
51,
52
],
[
51,
53
],
[
29,
54
],
[
54,
55
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
56,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
54,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
54,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int count = scanner.nextInt();\n\n for(int i=0; i<count; i++){\n \tint a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n a*=a;\n b*=b;\n c*=c;\n\n if(a+b==c || b+c==a || c+a==b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int count = scanner.nextInt();\n\n for(int i=0; i<count; i++){\n \tint a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n a*=a;\n b*=b;\n c*=c;\n\n if(a+b==c || b+c==a || c+a==b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int count = scanner.nextInt();\n\n for(int i=0; i<count; i++){\n \tint a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n a*=a;\n b*=b;\n c*=c;\n\n if(a+b==c || b+c==a || c+a==b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int count = scanner.nextInt();\n\n for(int i=0; i<count; i++){\n \tint a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n a*=a;\n b*=b;\n c*=c;\n\n if(a+b==c || b+c==a || c+a==b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int count = scanner.nextInt();",
"count",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i=0; i<count; i++){\n \tint a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n a*=a;\n b*=b;\n c*=c;\n\n if(a+b==c || b+c==a || c+a==b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<count",
"i",
"count",
"i++",
"i++",
"i",
"{\n \tint a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n a*=a;\n b*=b;\n c*=c;\n\n if(a+b==c || b+c==a || c+a==b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }",
"{\n \tint a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n a*=a;\n b*=b;\n c*=c;\n\n if(a+b==c || b+c==a || c+a==b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }",
"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",
"a*=a",
"a",
"a",
"b*=b",
"b",
"b",
"c*=c",
"c",
"c",
"if(a+b==c || b+c==a || c+a==b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"a+b==c || b+c==a || c+a==b",
"a+b==c || b+c==a || c+a==b",
"a+b==c",
"a+b",
"a",
"b",
"c",
"b+c==a",
"b+c",
"b",
"c",
"a",
"c+a==b",
"c+a",
"c",
"a",
"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\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int count = scanner.nextInt();\n\n for(int i=0; i<count; i++){\n \tint a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n a*=a;\n b*=b;\n c*=c;\n\n if(a+b==c || b+c==a || c+a==b){\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) {\n Scanner scanner = new Scanner(System.in);\n\n int count = scanner.nextInt();\n\n for(int i=0; i<count; i++){\n \tint a = scanner.nextInt();\n int b = scanner.nextInt();\n int c = scanner.nextInt();\n\n a*=a;\n b*=b;\n c*=c;\n\n if(a+b==c || b+c==a || c+a==b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int count = scanner.nextInt();
for(int i=0; i<count; i++){
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
a*=a;
b*=b;
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,
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,
41,
13,
20,
4,
18,
13,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
99,
8
],
[
99,
9
],
[
9,
10
],
[
9,
11
],
[
99,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
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
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
32,
48
],
[
48,
49
],
[
48,
50
],
[
32,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
32,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
32,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
32,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
32,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
79,
81
],
[
70,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
70,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
12,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\tstatic Scanner sc = new java.util.Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor (int x = 0 ; x < n ; x++){\n\t\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\tint [] array = new int [] {a,b,c};\n\t\t\tArrays.sort(array);\n\t\t\t\n\t\t\tint a2 = array[0];\n\t\t\tint b2 = array[1];\n\t\t\tint c2 = array[2];\n\t\t\t\n\t\t\tif( a2 * a2 + b2 * b2 == c2 * c2 ){\n\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\n\t\t}\n\t}\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\tstatic Scanner sc = new java.util.Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor (int x = 0 ; x < n ; x++){\n\t\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\tint [] array = new int [] {a,b,c};\n\t\t\tArrays.sort(array);\n\t\t\t\n\t\t\tint a2 = array[0];\n\t\t\tint b2 = array[1];\n\t\t\tint c2 = array[2];\n\t\t\t\n\t\t\tif( a2 * a2 + b2 * b2 == c2 * c2 ){\n\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\n\t\t}\n\t}\n\n}",
"Main",
"static Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.Scanner(System.in)",
"public static void main(String[] args) {\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor (int x = 0 ; x < n ; x++){\n\t\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\tint [] array = new int [] {a,b,c};\n\t\t\tArrays.sort(array);\n\t\t\t\n\t\t\tint a2 = array[0];\n\t\t\tint b2 = array[1];\n\t\t\tint c2 = array[2];\n\t\t\t\n\t\t\tif( a2 * a2 + b2 * b2 == c2 * c2 ){\n\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\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor (int x = 0 ; x < n ; x++){\n\t\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\tint [] array = new int [] {a,b,c};\n\t\t\tArrays.sort(array);\n\t\t\t\n\t\t\tint a2 = array[0];\n\t\t\tint b2 = array[1];\n\t\t\tint c2 = array[2];\n\t\t\t\n\t\t\tif( a2 * a2 + b2 * b2 == c2 * c2 ){\n\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\n\t\t}\n\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int x = 0 ; x < n ; x++){\n\t\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\tint [] array = new int [] {a,b,c};\n\t\t\tArrays.sort(array);\n\t\t\t\n\t\t\tint a2 = array[0];\n\t\t\tint b2 = array[1];\n\t\t\tint c2 = array[2];\n\t\t\t\n\t\t\tif( a2 * a2 + b2 * b2 == c2 * c2 ){\n\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\n\t\t}",
"int x = 0 ;",
"int x = 0 ;",
"x",
"0",
"x < n",
"x",
"n",
"x++",
"x++",
"x",
"{\n\t\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\tint [] array = new int [] {a,b,c};\n\t\t\tArrays.sort(array);\n\t\t\t\n\t\t\tint a2 = array[0];\n\t\t\tint b2 = array[1];\n\t\t\tint c2 = array[2];\n\t\t\t\n\t\t\tif( a2 * a2 + b2 * b2 == c2 * c2 ){\n\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\n\t\t}",
"{\n\t\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\tint [] array = new int [] {a,b,c};\n\t\t\tArrays.sort(array);\n\t\t\t\n\t\t\tint a2 = array[0];\n\t\t\tint b2 = array[1];\n\t\t\tint c2 = array[2];\n\t\t\t\n\t\t\tif( a2 * a2 + b2 * b2 == c2 * c2 ){\n\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\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",
"int [] array = new int [] {a,b,c};",
"array",
"new int [] {a,b,c}",
"Arrays.sort(array)",
"Arrays.sort",
"Arrays",
"array",
"int a2 = array[0];",
"a2",
"array[0]",
"array",
"0",
"int b2 = array[1];",
"b2",
"array[1]",
"array",
"1",
"int c2 = array[2];",
"c2",
"array[2]",
"array",
"2",
"if( a2 * a2 + b2 * b2 == c2 * c2 ){\n\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}",
"a2 * a2 + b2 * b2 == c2 * c2",
"a2 * a2 + b2 * b2",
"a2 * a2",
"a2",
"a2",
"b2 * b2",
"b2",
"b2",
"c2 * c2",
"c2",
"c2",
"{\n\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\"",
"String[] args",
"args",
"public class Main {\n\t\n\tstatic Scanner sc = new java.util.Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor (int x = 0 ; x < n ; x++){\n\t\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\tint [] array = new int [] {a,b,c};\n\t\t\tArrays.sort(array);\n\t\t\t\n\t\t\tint a2 = array[0];\n\t\t\tint b2 = array[1];\n\t\t\tint c2 = array[2];\n\t\t\t\n\t\t\tif( a2 * a2 + b2 * b2 == c2 * c2 ){\n\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\n\t\t}\n\t}\n\n}",
"public class Main {\n\t\n\tstatic Scanner sc = new java.util.Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor (int x = 0 ; x < n ; x++){\n\t\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\tint [] array = new int [] {a,b,c};\n\t\t\tArrays.sort(array);\n\t\t\t\n\t\t\tint a2 = array[0];\n\t\t\tint b2 = array[1];\n\t\t\tint c2 = array[2];\n\t\t\t\n\t\t\tif( a2 * a2 + b2 * b2 == c2 * c2 ){\n\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\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
static Scanner sc = new java.util.Scanner(System.in);
public static void main(String[] args) {
int n = sc.nextInt();
for (int x = 0 ; x < n ; x++){
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
int [] array = new int [] {a,b,c};
Arrays.sort(array);
int a2 = array[0];
int b2 = array[1];
int c2 = array[2];
if( a2 * a2 + b2 * b2 == c2 * c2 ){
System.out.println( "YES" );
}else{
System.out.println( "NO" );
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
4,
18,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
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,
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,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
14,
2,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
4,
13,
18,
13,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
13,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
4,
18,
13,
13,
30,
0,
13,
17,
41,
13,
4,
18,
13,
13,
28,
13,
13,
30,
30,
14,
2,
13,
13,
30,
4,
18,
13,
13,
3,
14,
2,
2,
13,
13,
17,
3,
29,
4,
18,
13,
2,
4,
18,
13,
17,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
13,
23,
13,
23,
13,
12,
13,
30,
4,
18,
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
],
[
348,
11
],
[
348,
12
],
[
12,
13
],
[
12,
14
],
[
348,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
348,
21
],
[
21,
22
],
[
21,
23
],
[
348,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
26,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
46,
50
],
[
43,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
56,
58
],
[
43,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
43,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
43,
75
],
[
75,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
86,
88
],
[
77,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
89,
97
],
[
97,
98
],
[
97,
99
],
[
77,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
108,
110
],
[
75,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
75,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
348,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
126,
134
],
[
134,
135
],
[
135,
136
],
[
126,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
144,
146
],
[
138,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
150,
152
],
[
147,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
153,
158
],
[
125,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
123,
165
],
[
165,
166
],
[
123,
167
],
[
167,
168
],
[
348,
169
],
[
169,
170
],
[
169,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
172,
177
],
[
177,
178
],
[
177,
179
],
[
172,
180
],
[
180,
181
],
[
181,
182
],
[
172,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
186,
188
],
[
184,
189
],
[
169,
190
],
[
190,
191
],
[
169,
192
],
[
192,
193
],
[
169,
194
],
[
194,
195
],
[
348,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
200,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
348,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
212,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
218,
219
],
[
348,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
223,
224
],
[
224,
225
],
[
225,
226
],
[
348,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
230,
235
],
[
235,
236
],
[
235,
237
],
[
230,
238
],
[
238,
239
],
[
239,
240
],
[
230,
241
],
[
242,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
245,
246
],
[
245,
247
],
[
244,
248
],
[
243,
249
],
[
249,
250
],
[
229,
251
],
[
251,
252
],
[
227,
253
],
[
253,
254
],
[
348,
255
],
[
255,
256
],
[
255,
257
],
[
257,
258
],
[
258,
259
],
[
258,
260
],
[
257,
261
],
[
261,
262
],
[
262,
263
],
[
261,
264
],
[
257,
265
],
[
265,
266
],
[
265,
267
],
[
257,
268
],
[
268,
269
],
[
268,
270
],
[
257,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
272,
276
],
[
271,
277
],
[
277,
278
],
[
278,
279
],
[
278,
280
],
[
277,
281
],
[
281,
282
],
[
281,
283
],
[
283,
284
],
[
284,
285
],
[
283,
286
],
[
277,
287
],
[
287,
288
],
[
287,
289
],
[
287,
290
],
[
291,
291
],
[
291,
292
],
[
292,
293
],
[
293,
294
],
[
293,
295
],
[
292,
296
],
[
296,
297
],
[
297,
298
],
[
298,
299
],
[
297,
300
],
[
296,
301
],
[
291,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
304,
306
],
[
303,
307
],
[
302,
308
],
[
257,
309
],
[
309,
310
],
[
310,
311
],
[
311,
312
],
[
310,
313
],
[
313,
314
],
[
314,
315
],
[
315,
316
],
[
313,
317
],
[
255,
318
],
[
318,
319
],
[
348,
320
],
[
320,
321
],
[
320,
322
],
[
322,
323
],
[
323,
324
],
[
324,
325
],
[
325,
326
],
[
325,
327
],
[
323,
328
],
[
330,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
329,
333
],
[
330,
334
],
[
320,
335
],
[
335,
336
],
[
320,
337
],
[
337,
338
],
[
348,
339
],
[
339,
340
],
[
339,
341
],
[
341,
342
],
[
342,
343
],
[
343,
344
],
[
339,
345
],
[
345,
346
],
[
0,
347
],
[
347,
348
],
[
347,
349
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\npublic class Main {\n final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final String LINE_SPR = System.getProperty(\"line.separator\");\n final int BIG_MOD = 1000000007;\n\n void run() throws Exception {\n int nt = ni();\n for(int t = 0; t < nt; t++) {\n String[] nums = ns().split(\" \");\n int a = Integer.parseInt(nums[0]);\n int b = Integer.parseInt(nums[1]);\n int c = Integer.parseInt(nums[2]);\n if(a * a + b * b == c * c || b * b + c * c == a * a\n || c * c + a * a == b * b)\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n\n }\n\n\n /*\n * Templates\n */\n void dumpObjArr(Object[] arr, int n) {\n for(int i = 0; i < n; i++) {\n System.out.print(arr[i]);\n if(i < n - 1)\n System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n\n void dumpObjArr2(Object[][] arr, int m, int n) {\n for(int j = 0; j < m; j++) \n dumpObjArr(arr[j], n);\n }\n\n int ni() throws Exception {\n return Integer.parseInt(br.readLine().trim());\n }\n\n long nl() throws Exception {\n return Long.parseLong(br.readLine().trim());\n }\n\n String ns() throws Exception {\n return br.readLine();\n }\n\n boolean isPrime(int n) {\n for(int i=2;i<n;i++) {\n if(n%i==0)\n return false;\n }\n return true;\n }\n\n int getPrime(int n) {\n List<Integer> primes = new ArrayList<Integer>();\n primes.add(2);\n int count = 1;\n\n int x = 1;\n while(primes.size() < n) {\n x+=2;\n int m = (int)Math.sqrt(x);\n for(int p : primes) {\n if(p > m) {\n primes.add(x);\n break;\n }\n\n if(x % p == 0) \n break;\n }\n }\n\n return primes.get(primes.size() - 1);\n }\n\n void gcjPrint(String str, int t) {\n System.out.println(\"Case #\" + t + \": \" + str);\n }\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final String LINE_SPR = System.getProperty(\"line.separator\");\n final int BIG_MOD = 1000000007;\n\n void run() throws Exception {\n int nt = ni();\n for(int t = 0; t < nt; t++) {\n String[] nums = ns().split(\" \");\n int a = Integer.parseInt(nums[0]);\n int b = Integer.parseInt(nums[1]);\n int c = Integer.parseInt(nums[2]);\n if(a * a + b * b == c * c || b * b + c * c == a * a\n || c * c + a * a == b * b)\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n\n }\n\n\n /*\n * Templates\n */\n void dumpObjArr(Object[] arr, int n) {\n for(int i = 0; i < n; i++) {\n System.out.print(arr[i]);\n if(i < n - 1)\n System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n\n void dumpObjArr2(Object[][] arr, int m, int n) {\n for(int j = 0; j < m; j++) \n dumpObjArr(arr[j], n);\n }\n\n int ni() throws Exception {\n return Integer.parseInt(br.readLine().trim());\n }\n\n long nl() throws Exception {\n return Long.parseLong(br.readLine().trim());\n }\n\n String ns() throws Exception {\n return br.readLine();\n }\n\n boolean isPrime(int n) {\n for(int i=2;i<n;i++) {\n if(n%i==0)\n return false;\n }\n return true;\n }\n\n int getPrime(int n) {\n List<Integer> primes = new ArrayList<Integer>();\n primes.add(2);\n int count = 1;\n\n int x = 1;\n while(primes.size() < n) {\n x+=2;\n int m = (int)Math.sqrt(x);\n for(int p : primes) {\n if(p > m) {\n primes.add(x);\n break;\n }\n\n if(x % p == 0) \n break;\n }\n }\n\n return primes.get(primes.size() - 1);\n }\n\n void gcjPrint(String str, int t) {\n System.out.println(\"Case #\" + t + \": \" + str);\n }\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n}",
"Main",
"final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"final String LINE_SPR = System.getProperty(\"line.separator\");",
"LINE_SPR",
"System.getProperty(\"line.separator\")",
"System.getProperty",
"System",
"\"line.separator\"",
"final int BIG_MOD = 1000000007;",
"BIG_MOD",
"1000000007",
"void run() throws Exception {\n int nt = ni();\n for(int t = 0; t < nt; t++) {\n String[] nums = ns().split(\" \");\n int a = Integer.parseInt(nums[0]);\n int b = Integer.parseInt(nums[1]);\n int c = Integer.parseInt(nums[2]);\n if(a * a + b * b == c * c || b * b + c * c == a * a\n || c * c + a * a == b * b)\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n\n }",
"run",
"{\n int nt = ni();\n for(int t = 0; t < nt; t++) {\n String[] nums = ns().split(\" \");\n int a = Integer.parseInt(nums[0]);\n int b = Integer.parseInt(nums[1]);\n int c = Integer.parseInt(nums[2]);\n if(a * a + b * b == c * c || b * b + c * c == a * a\n || c * c + a * a == b * b)\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n\n }",
"int nt = ni();",
"nt",
"ni()",
"ni",
"for(int t = 0; t < nt; t++) {\n String[] nums = ns().split(\" \");\n int a = Integer.parseInt(nums[0]);\n int b = Integer.parseInt(nums[1]);\n int c = Integer.parseInt(nums[2]);\n if(a * a + b * b == c * c || b * b + c * c == a * a\n || c * c + a * a == b * b)\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }",
"int t = 0;",
"int t = 0;",
"t",
"0",
"t < nt",
"t",
"nt",
"t++",
"t++",
"t",
"{\n String[] nums = ns().split(\" \");\n int a = Integer.parseInt(nums[0]);\n int b = Integer.parseInt(nums[1]);\n int c = Integer.parseInt(nums[2]);\n if(a * a + b * b == c * c || b * b + c * c == a * a\n || c * c + a * a == b * b)\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }",
"{\n String[] nums = ns().split(\" \");\n int a = Integer.parseInt(nums[0]);\n int b = Integer.parseInt(nums[1]);\n int c = Integer.parseInt(nums[2]);\n if(a * a + b * b == c * c || b * b + c * c == a * a\n || c * c + a * a == b * b)\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }",
"String[] nums = ns().split(\" \");",
"nums",
"ns().split(\" \")",
"ns().split",
"ns()",
"ns",
"\" \"",
"int a = Integer.parseInt(nums[0]);",
"a",
"Integer.parseInt(nums[0])",
"Integer.parseInt",
"Integer",
"nums[0]",
"nums",
"0",
"int b = Integer.parseInt(nums[1]);",
"b",
"Integer.parseInt(nums[1])",
"Integer.parseInt",
"Integer",
"nums[1]",
"nums",
"1",
"int c = Integer.parseInt(nums[2]);",
"c",
"Integer.parseInt(nums[2])",
"Integer.parseInt",
"Integer",
"nums[2]",
"nums",
"2",
"if(a * a + b * b == c * c || b * b + c * c == a * a\n || c * c + a * a == b * b)\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");",
"a * a + b * b == c * c || b * b + c * c == a * a\n || c * c + a * a == b * b",
"a * a + b * b == c * c || b * b + c * c == a * a\n || 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",
"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\"",
"/*\n * Templates\n */\n void dumpObjArr(Object[] arr, int n) {\n for(int i = 0; i < n; i++) {\n System.out.print(arr[i]);\n if(i < n - 1)\n System.out.print(\" \");\n }\n System.out.println(\"\");\n }",
"dumpObjArr",
"{\n for(int i = 0; i < n; i++) {\n System.out.print(arr[i]);\n if(i < n - 1)\n System.out.print(\" \");\n }\n System.out.println(\"\");\n }",
"for(int i = 0; i < n; i++) {\n System.out.print(arr[i]);\n if(i < n - 1)\n System.out.print(\" \");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n System.out.print(arr[i]);\n if(i < n - 1)\n System.out.print(\" \");\n }",
"{\n System.out.print(arr[i]);\n if(i < n - 1)\n System.out.print(\" \");\n }",
"System.out.print(arr[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"arr[i]",
"arr",
"i",
"if(i < n - 1)\n System.out.print(\" \");",
"i < n - 1",
"i",
"n - 1",
"n",
"1",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"Object[] arr",
"arr",
"int n",
"n",
"void dumpObjArr2(Object[][] arr, int m, int n) {\n for(int j = 0; j < m; j++) \n dumpObjArr(arr[j], n);\n }",
"dumpObjArr2",
"{\n for(int j = 0; j < m; j++) \n dumpObjArr(arr[j], n);\n }",
"for(int j = 0; j < m; j++) \n dumpObjArr(arr[j], n);",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < m",
"j",
"m",
"j++",
"j++",
"j",
"dumpObjArr(arr[j], n);",
"dumpObjArr(arr[j], n)",
"dumpObjArr",
"arr[j]",
"arr",
"j",
"n",
"Object[][] arr",
"arr",
"int m",
"m",
"int n",
"n",
"int ni() throws Exception {\n return Integer.parseInt(br.readLine().trim());\n }",
"ni",
"{\n return Integer.parseInt(br.readLine().trim());\n }",
"return Integer.parseInt(br.readLine().trim());",
"Integer.parseInt(br.readLine().trim())",
"Integer.parseInt",
"Integer",
"br.readLine().trim()",
"br.readLine().trim",
"br.readLine()",
"br.readLine",
"br",
"long nl() throws Exception {\n return Long.parseLong(br.readLine().trim());\n }",
"nl",
"{\n return Long.parseLong(br.readLine().trim());\n }",
"return Long.parseLong(br.readLine().trim());",
"Long.parseLong(br.readLine().trim())",
"Long.parseLong",
"Long",
"br.readLine().trim()",
"br.readLine().trim",
"br.readLine()",
"br.readLine",
"br",
"String ns() throws Exception {\n return br.readLine();\n }",
"ns",
"{\n return br.readLine();\n }",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"boolean isPrime(int n) {\n for(int i=2;i<n;i++) {\n if(n%i==0)\n return false;\n }\n return true;\n }",
"isPrime",
"{\n for(int i=2;i<n;i++) {\n if(n%i==0)\n return false;\n }\n return true;\n }",
"for(int i=2;i<n;i++) {\n if(n%i==0)\n return false;\n }",
"int i=2;",
"int i=2;",
"i",
"2",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(n%i==0)\n return false;\n }",
"{\n if(n%i==0)\n return false;\n }",
"if(n%i==0)\n return false;",
"n%i==0",
"n%i",
"n",
"i",
"0",
"return false;",
"false",
"return true;",
"true",
"int n",
"n",
"int getPrime(int n) {\n List<Integer> primes = new ArrayList<Integer>();\n primes.add(2);\n int count = 1;\n\n int x = 1;\n while(primes.size() < n) {\n x+=2;\n int m = (int)Math.sqrt(x);\n for(int p : primes) {\n if(p > m) {\n primes.add(x);\n break;\n }\n\n if(x % p == 0) \n break;\n }\n }\n\n return primes.get(primes.size() - 1);\n }",
"getPrime",
"{\n List<Integer> primes = new ArrayList<Integer>();\n primes.add(2);\n int count = 1;\n\n int x = 1;\n while(primes.size() < n) {\n x+=2;\n int m = (int)Math.sqrt(x);\n for(int p : primes) {\n if(p > m) {\n primes.add(x);\n break;\n }\n\n if(x % p == 0) \n break;\n }\n }\n\n return primes.get(primes.size() - 1);\n }",
"List<Integer> primes = new ArrayList<Integer>();",
"primes",
"new ArrayList<Integer>()",
"primes.add(2)",
"primes.add",
"primes",
"2",
"int count = 1;",
"count",
"1",
"int x = 1;",
"x",
"1",
"while(primes.size() < n) {\n x+=2;\n int m = (int)Math.sqrt(x);\n for(int p : primes) {\n if(p > m) {\n primes.add(x);\n break;\n }\n\n if(x % p == 0) \n break;\n }\n }",
"primes.size() < n",
"primes.size()",
"primes.size",
"primes",
"n",
"{\n x+=2;\n int m = (int)Math.sqrt(x);\n for(int p : primes) {\n if(p > m) {\n primes.add(x);\n break;\n }\n\n if(x % p == 0) \n break;\n }\n }",
"x+=2",
"x",
"2",
"int m = (int)Math.sqrt(x);",
"m",
"(int)Math.sqrt(x)",
"Math.sqrt",
"Math",
"x",
"for(int p : primes) {\n if(p > m) {\n primes.add(x);\n break;\n }\n\n if(x % p == 0) \n break;\n }",
"int p",
"primes",
"{\n if(p > m) {\n primes.add(x);\n break;\n }\n\n if(x % p == 0) \n break;\n }",
"{\n if(p > m) {\n primes.add(x);\n break;\n }\n\n if(x % p == 0) \n break;\n }",
"if(p > m) {\n primes.add(x);\n break;\n }",
"p > m",
"p",
"m",
"{\n primes.add(x);\n break;\n }",
"primes.add(x)",
"primes.add",
"primes",
"x",
"break;",
"if(x % p == 0) \n break;",
"x % p == 0",
"x % p",
"x",
"p",
"0",
"break;",
"return primes.get(primes.size() - 1);",
"primes.get(primes.size() - 1)",
"primes.get",
"primes",
"primes.size() - 1",
"primes.size()",
"primes.size",
"primes",
"1",
"int n",
"n",
"void gcjPrint(String str, int t) {\n System.out.println(\"Case #\" + t + \": \" + str);\n }",
"gcjPrint",
"{\n System.out.println(\"Case #\" + t + \": \" + str);\n }",
"System.out.println(\"Case #\" + t + \": \" + str)",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Case #\" + t + \": \" + str",
"\": \"",
"\"Case #\" + t + \": \" + str",
"\"Case #\"",
"t",
"\": \"",
"str",
"String str",
"str",
"int t",
"t",
"public static void main(String[] args) throws Exception {\n new Main().run();\n }",
"main",
"{\n new Main().run();\n }",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"public class Main {\n final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final String LINE_SPR = System.getProperty(\"line.separator\");\n final int BIG_MOD = 1000000007;\n\n void run() throws Exception {\n int nt = ni();\n for(int t = 0; t < nt; t++) {\n String[] nums = ns().split(\" \");\n int a = Integer.parseInt(nums[0]);\n int b = Integer.parseInt(nums[1]);\n int c = Integer.parseInt(nums[2]);\n if(a * a + b * b == c * c || b * b + c * c == a * a\n || c * c + a * a == b * b)\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n\n }\n\n\n /*\n * Templates\n */\n void dumpObjArr(Object[] arr, int n) {\n for(int i = 0; i < n; i++) {\n System.out.print(arr[i]);\n if(i < n - 1)\n System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n\n void dumpObjArr2(Object[][] arr, int m, int n) {\n for(int j = 0; j < m; j++) \n dumpObjArr(arr[j], n);\n }\n\n int ni() throws Exception {\n return Integer.parseInt(br.readLine().trim());\n }\n\n long nl() throws Exception {\n return Long.parseLong(br.readLine().trim());\n }\n\n String ns() throws Exception {\n return br.readLine();\n }\n\n boolean isPrime(int n) {\n for(int i=2;i<n;i++) {\n if(n%i==0)\n return false;\n }\n return true;\n }\n\n int getPrime(int n) {\n List<Integer> primes = new ArrayList<Integer>();\n primes.add(2);\n int count = 1;\n\n int x = 1;\n while(primes.size() < n) {\n x+=2;\n int m = (int)Math.sqrt(x);\n for(int p : primes) {\n if(p > m) {\n primes.add(x);\n break;\n }\n\n if(x % p == 0) \n break;\n }\n }\n\n return primes.get(primes.size() - 1);\n }\n\n void gcjPrint(String str, int t) {\n System.out.println(\"Case #\" + t + \": \" + str);\n }\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n}",
"public class Main {\n final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final String LINE_SPR = System.getProperty(\"line.separator\");\n final int BIG_MOD = 1000000007;\n\n void run() throws Exception {\n int nt = ni();\n for(int t = 0; t < nt; t++) {\n String[] nums = ns().split(\" \");\n int a = Integer.parseInt(nums[0]);\n int b = Integer.parseInt(nums[1]);\n int c = Integer.parseInt(nums[2]);\n if(a * a + b * b == c * c || b * b + c * c == a * a\n || c * c + a * a == b * b)\n System.out.println(\"YES\");\n else\n System.out.println(\"NO\");\n }\n\n }\n\n\n /*\n * Templates\n */\n void dumpObjArr(Object[] arr, int n) {\n for(int i = 0; i < n; i++) {\n System.out.print(arr[i]);\n if(i < n - 1)\n System.out.print(\" \");\n }\n System.out.println(\"\");\n }\n\n void dumpObjArr2(Object[][] arr, int m, int n) {\n for(int j = 0; j < m; j++) \n dumpObjArr(arr[j], n);\n }\n\n int ni() throws Exception {\n return Integer.parseInt(br.readLine().trim());\n }\n\n long nl() throws Exception {\n return Long.parseLong(br.readLine().trim());\n }\n\n String ns() throws Exception {\n return br.readLine();\n }\n\n boolean isPrime(int n) {\n for(int i=2;i<n;i++) {\n if(n%i==0)\n return false;\n }\n return true;\n }\n\n int getPrime(int n) {\n List<Integer> primes = new ArrayList<Integer>();\n primes.add(2);\n int count = 1;\n\n int x = 1;\n while(primes.size() < n) {\n x+=2;\n int m = (int)Math.sqrt(x);\n for(int p : primes) {\n if(p > m) {\n primes.add(x);\n break;\n }\n\n if(x % p == 0) \n break;\n }\n }\n\n return primes.get(primes.size() - 1);\n }\n\n void gcjPrint(String str, int t) {\n System.out.println(\"Case #\" + t + \": \" + str);\n }\n\n public static void main(String[] args) throws Exception {\n new Main().run();\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
public class Main {
final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
final String LINE_SPR = System.getProperty("line.separator");
final int BIG_MOD = 1000000007;
void run() throws Exception {
int nt = ni();
for(int t = 0; t < nt; t++) {
String[] nums = ns().split(" ");
int a = Integer.parseInt(nums[0]);
int b = Integer.parseInt(nums[1]);
int c = Integer.parseInt(nums[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");
}
}
/*
* Templates
*/
void dumpObjArr(Object[] arr, int n) {
for(int i = 0; i < n; i++) {
System.out.print(arr[i]);
if(i < n - 1)
System.out.print(" ");
}
System.out.println("");
}
void dumpObjArr2(Object[][] arr, int m, int n) {
for(int j = 0; j < m; j++)
dumpObjArr(arr[j], n);
}
int ni() throws Exception {
return Integer.parseInt(br.readLine().trim());
}
long nl() throws Exception {
return Long.parseLong(br.readLine().trim());
}
String ns() throws Exception {
return br.readLine();
}
boolean isPrime(int n) {
for(int i=2;i<n;i++) {
if(n%i==0)
return false;
}
return true;
}
int getPrime(int n) {
List<Integer> primes = new ArrayList<Integer>();
primes.add(2);
int count = 1;
int x = 1;
while(primes.size() < n) {
x+=2;
int m = (int)Math.sqrt(x);
for(int p : primes) {
if(p > m) {
primes.add(x);
break;
}
if(x % p == 0)
break;
}
}
return primes.get(primes.size() - 1);
}
void gcjPrint(String str, int t) {
System.out.println("Case #" + t + ": " + str);
}
public static void main(String[] args) throws Exception {
new Main().run();
}
} |
[
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,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
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,
0,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
132,
11
],
[
132,
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
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
43,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
55,
57
],
[
43,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
43,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
43,
74
],
[
74,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
85,
87
],
[
76,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
96,
98
],
[
76,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
107,
109
],
[
74,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
74,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
43,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
12,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint N = Integer.parseInt(br.readLine());\n \tString line = br.readLine();\n \tfor(int i=0;i<N;i++){\n \t\tString[] lines = line.split(\" \");\n \t\tint a = Integer.parseInt(lines[0]);\n \t\tint b = Integer.parseInt(lines[1]);\n \t\tint c = Integer.parseInt(lines[2]);\n \t\t\n \t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t\t\n \t\tline = br.readLine();\n \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 public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint N = Integer.parseInt(br.readLine());\n \tString line = br.readLine();\n \tfor(int i=0;i<N;i++){\n \t\tString[] lines = line.split(\" \");\n \t\tint a = Integer.parseInt(lines[0]);\n \t\tint b = Integer.parseInt(lines[1]);\n \t\tint c = Integer.parseInt(lines[2]);\n \t\t\n \t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t\t\n \t\tline = br.readLine();\n \t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint N = Integer.parseInt(br.readLine());\n \tString line = br.readLine();\n \tfor(int i=0;i<N;i++){\n \t\tString[] lines = line.split(\" \");\n \t\tint a = Integer.parseInt(lines[0]);\n \t\tint b = Integer.parseInt(lines[1]);\n \t\tint c = Integer.parseInt(lines[2]);\n \t\t\n \t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t\t\n \t\tline = br.readLine();\n \t}\n\t}",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint N = Integer.parseInt(br.readLine());\n \tString line = br.readLine();\n \tfor(int i=0;i<N;i++){\n \t\tString[] lines = line.split(\" \");\n \t\tint a = Integer.parseInt(lines[0]);\n \t\tint b = Integer.parseInt(lines[1]);\n \t\tint c = Integer.parseInt(lines[2]);\n \t\t\n \t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t\t\n \t\tline = br.readLine();\n \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",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"for(int i=0;i<N;i++){\n \t\tString[] lines = line.split(\" \");\n \t\tint a = Integer.parseInt(lines[0]);\n \t\tint b = Integer.parseInt(lines[1]);\n \t\tint c = Integer.parseInt(lines[2]);\n \t\t\n \t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t\t\n \t\tline = br.readLine();\n \t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n \t\tString[] lines = line.split(\" \");\n \t\tint a = Integer.parseInt(lines[0]);\n \t\tint b = Integer.parseInt(lines[1]);\n \t\tint c = Integer.parseInt(lines[2]);\n \t\t\n \t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t\t\n \t\tline = br.readLine();\n \t}",
"{\n \t\tString[] lines = line.split(\" \");\n \t\tint a = Integer.parseInt(lines[0]);\n \t\tint b = Integer.parseInt(lines[1]);\n \t\tint c = Integer.parseInt(lines[2]);\n \t\t\n \t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t\t\n \t\tline = br.readLine();\n \t}",
"String[] lines = line.split(\" \");",
"lines",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"int a = Integer.parseInt(lines[0]);",
"a",
"Integer.parseInt(lines[0])",
"Integer.parseInt",
"Integer",
"lines[0]",
"lines",
"0",
"int b = Integer.parseInt(lines[1]);",
"b",
"Integer.parseInt(lines[1])",
"Integer.parseInt",
"Integer",
"lines[1]",
"lines",
"1",
"int c = Integer.parseInt(lines[2]);",
"c",
"Integer.parseInt(lines[2])",
"Integer.parseInt",
"Integer",
"lines[2]",
"lines",
"2",
"if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}",
"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",
"{\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\"",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint N = Integer.parseInt(br.readLine());\n \tString line = br.readLine();\n \tfor(int i=0;i<N;i++){\n \t\tString[] lines = line.split(\" \");\n \t\tint a = Integer.parseInt(lines[0]);\n \t\tint b = Integer.parseInt(lines[1]);\n \t\tint c = Integer.parseInt(lines[2]);\n \t\t\n \t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t\t\n \t\tline = br.readLine();\n \t}\n\t}\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint N = Integer.parseInt(br.readLine());\n \tString line = br.readLine();\n \tfor(int i=0;i<N;i++){\n \t\tString[] lines = line.split(\" \");\n \t\tint a = Integer.parseInt(lines[0]);\n \t\tint b = Integer.parseInt(lines[1]);\n \t\tint c = Integer.parseInt(lines[2]);\n \t\t\n \t\tif(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else{\n \t\t\tSystem.out.println(\"NO\");\n \t\t}\n \t\t\n \t\tline = br.readLine();\n \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());
String line = br.readLine();
for(int i=0;i<N;i++){
String[] lines = line.split(" ");
int a = Integer.parseInt(lines[0]);
int b = Integer.parseInt(lines[1]);
int c = Integer.parseInt(lines[2]);
if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a){
System.out.println("YES");
}else{
System.out.println("NO");
}
line = br.readLine();
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
2,
17,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
2,
17,
17,
2,
13,
13,
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,
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,
0,
13,
17,
30,
0,
13,
17,
4,
18,
13,
8,
13,
17,
17,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
169,
5
],
[
169,
6
],
[
6,
7
],
[
6,
8
],
[
169,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
11,
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
],
[
39,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
60,
73
],
[
74,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
75,
82
],
[
82,
83
],
[
82,
84
],
[
75,
85
],
[
85,
86
],
[
86,
87
],
[
75,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
90,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
98,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
39,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
121,
122
],
[
121,
123
],
[
118,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
126,
129
],
[
129,
130
],
[
129,
131
],
[
126,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
136,
137
],
[
136,
138
],
[
133,
139
],
[
116,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
116,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
39,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
151,
153
],
[
151,
154
],
[
11,
155
],
[
155,
156
],
[
155,
157
],
[
155,
158
],
[
159,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
162,
164
],
[
160,
165
],
[
9,
166
],
[
166,
167
],
[
0,
168
],
[
168,
169
],
[
168,
170
]
] | [
"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\tList<String> list = new ArrayList<String>();\n\t\tboolean flag = false;\n\t\tint[] tri = new int[3];\n\t\tint N = scan.nextInt();\n\t\tfor(int a = 0; a < N; a++){\n\t\t\tfor(int i = 0; i < 3; i++){\n\t\t\t\ttri[i] = scan.nextInt();\n\t\t\t}\n\t\t\tfor(int i = 0; i < 3 - 1; i++){\n\t\t\t\tfor(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// System.out.printf(\"%d %d %d\\n\", tri[0], tri[1], tri[2]);\n\t\t\tif(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){\n\t\t\t\t// System.out.println(\"YES\");\n\t\t\t\tflag = true;\n\t\t\t} else{\n\t\t\t\t// System.out.println(\"NO\");\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t\tlist.add(flag? \"YES\" : \"NO\");\n\t\t}\n\n\t\tfor(String s : list){\n\t\t\tSystem.out.println(s);\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\tList<String> list = new ArrayList<String>();\n\t\tboolean flag = false;\n\t\tint[] tri = new int[3];\n\t\tint N = scan.nextInt();\n\t\tfor(int a = 0; a < N; a++){\n\t\t\tfor(int i = 0; i < 3; i++){\n\t\t\t\ttri[i] = scan.nextInt();\n\t\t\t}\n\t\t\tfor(int i = 0; i < 3 - 1; i++){\n\t\t\t\tfor(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// System.out.printf(\"%d %d %d\\n\", tri[0], tri[1], tri[2]);\n\t\t\tif(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){\n\t\t\t\t// System.out.println(\"YES\");\n\t\t\t\tflag = true;\n\t\t\t} else{\n\t\t\t\t// System.out.println(\"NO\");\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t\tlist.add(flag? \"YES\" : \"NO\");\n\t\t}\n\n\t\tfor(String s : list){\n\t\t\tSystem.out.println(s);\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\tList<String> list = new ArrayList<String>();\n\t\tboolean flag = false;\n\t\tint[] tri = new int[3];\n\t\tint N = scan.nextInt();\n\t\tfor(int a = 0; a < N; a++){\n\t\t\tfor(int i = 0; i < 3; i++){\n\t\t\t\ttri[i] = scan.nextInt();\n\t\t\t}\n\t\t\tfor(int i = 0; i < 3 - 1; i++){\n\t\t\t\tfor(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// System.out.printf(\"%d %d %d\\n\", tri[0], tri[1], tri[2]);\n\t\t\tif(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){\n\t\t\t\t// System.out.println(\"YES\");\n\t\t\t\tflag = true;\n\t\t\t} else{\n\t\t\t\t// System.out.println(\"NO\");\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t\tlist.add(flag? \"YES\" : \"NO\");\n\t\t}\n\n\t\tfor(String s : list){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"main",
"{\n\t\tList<String> list = new ArrayList<String>();\n\t\tboolean flag = false;\n\t\tint[] tri = new int[3];\n\t\tint N = scan.nextInt();\n\t\tfor(int a = 0; a < N; a++){\n\t\t\tfor(int i = 0; i < 3; i++){\n\t\t\t\ttri[i] = scan.nextInt();\n\t\t\t}\n\t\t\tfor(int i = 0; i < 3 - 1; i++){\n\t\t\t\tfor(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// System.out.printf(\"%d %d %d\\n\", tri[0], tri[1], tri[2]);\n\t\t\tif(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){\n\t\t\t\t// System.out.println(\"YES\");\n\t\t\t\tflag = true;\n\t\t\t} else{\n\t\t\t\t// System.out.println(\"NO\");\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t\tlist.add(flag? \"YES\" : \"NO\");\n\t\t}\n\n\t\tfor(String s : list){\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"List<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"boolean flag = false;",
"flag",
"false",
"int[] tri = new int[3];",
"tri",
"new int[3]",
"3",
"int N = scan.nextInt();",
"N",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int a = 0; a < N; a++){\n\t\t\tfor(int i = 0; i < 3; i++){\n\t\t\t\ttri[i] = scan.nextInt();\n\t\t\t}\n\t\t\tfor(int i = 0; i < 3 - 1; i++){\n\t\t\t\tfor(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// System.out.printf(\"%d %d %d\\n\", tri[0], tri[1], tri[2]);\n\t\t\tif(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){\n\t\t\t\t// System.out.println(\"YES\");\n\t\t\t\tflag = true;\n\t\t\t} else{\n\t\t\t\t// System.out.println(\"NO\");\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t\tlist.add(flag? \"YES\" : \"NO\");\n\t\t}",
"int a = 0;",
"int a = 0;",
"a",
"0",
"a < N",
"a",
"N",
"a++",
"a++",
"a",
"{\n\t\t\tfor(int i = 0; i < 3; i++){\n\t\t\t\ttri[i] = scan.nextInt();\n\t\t\t}\n\t\t\tfor(int i = 0; i < 3 - 1; i++){\n\t\t\t\tfor(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// System.out.printf(\"%d %d %d\\n\", tri[0], tri[1], tri[2]);\n\t\t\tif(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){\n\t\t\t\t// System.out.println(\"YES\");\n\t\t\t\tflag = true;\n\t\t\t} else{\n\t\t\t\t// System.out.println(\"NO\");\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t\tlist.add(flag? \"YES\" : \"NO\");\n\t\t}",
"{\n\t\t\tfor(int i = 0; i < 3; i++){\n\t\t\t\ttri[i] = scan.nextInt();\n\t\t\t}\n\t\t\tfor(int i = 0; i < 3 - 1; i++){\n\t\t\t\tfor(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// System.out.printf(\"%d %d %d\\n\", tri[0], tri[1], tri[2]);\n\t\t\tif(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){\n\t\t\t\t// System.out.println(\"YES\");\n\t\t\t\tflag = true;\n\t\t\t} else{\n\t\t\t\t// System.out.println(\"NO\");\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t\tlist.add(flag? \"YES\" : \"NO\");\n\t\t}",
"for(int i = 0; i < 3; i++){\n\t\t\t\ttri[i] = scan.nextInt();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\t\ttri[i] = scan.nextInt();\n\t\t\t}",
"{\n\t\t\t\ttri[i] = scan.nextInt();\n\t\t\t}",
"tri[i] = scan.nextInt()",
"tri[i]",
"tri",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < 3 - 1; i++){\n\t\t\t\tfor(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3 - 1",
"i",
"3 - 1",
"3",
"1",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tfor(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"for(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 3 - 1;",
"int j = 3 - 1;",
"j",
"3 - 1",
"3",
"1",
"j > i",
"j",
"i",
"j--",
"j--",
"j",
"{\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}",
"tri[i] < tri[j]",
"tri[i]",
"tri",
"i",
"tri[j]",
"tri",
"j",
"{\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}",
"int big = tri[j];",
"big",
"tri[j]",
"tri",
"j",
"tri[j] = tri[i]",
"tri[j]",
"tri",
"j",
"tri[i]",
"tri",
"i",
"tri[i] = big",
"tri[i]",
"tri",
"i",
"big",
"if(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){\n\t\t\t\t// System.out.println(\"YES\");\n\t\t\t\tflag = true;\n\t\t\t} else{\n\t\t\t\t// System.out.println(\"NO\");\n\t\t\t\tflag = false;\n\t\t\t}",
"Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)",
"Math.pow(tri[0], 2)",
"Math.pow",
"Math",
"tri[0]",
"tri",
"0",
"2",
"Math.pow(tri[1], 2) + Math.pow(tri[2], 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",
"{\n\t\t\t\t// System.out.println(\"YES\");\n\t\t\t\tflag = true;\n\t\t\t}",
"flag = true",
"flag",
"true",
"{\n\t\t\t\t// System.out.println(\"NO\");\n\t\t\t\tflag = false;\n\t\t\t}",
"flag = false",
"flag",
"false",
"list.add(flag? \"YES\" : \"NO\")",
"list.add",
"list",
"flag? \"YES\" : \"NO\"",
"flag",
"\"YES\"",
"\"NO\"",
"for(String s : list){\n\t\t\tSystem.out.println(s);\n\t\t}",
"String s",
"list",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"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\tList<String> list = new ArrayList<String>();\n\t\tboolean flag = false;\n\t\tint[] tri = new int[3];\n\t\tint N = scan.nextInt();\n\t\tfor(int a = 0; a < N; a++){\n\t\t\tfor(int i = 0; i < 3; i++){\n\t\t\t\ttri[i] = scan.nextInt();\n\t\t\t}\n\t\t\tfor(int i = 0; i < 3 - 1; i++){\n\t\t\t\tfor(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// System.out.printf(\"%d %d %d\\n\", tri[0], tri[1], tri[2]);\n\t\t\tif(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){\n\t\t\t\t// System.out.println(\"YES\");\n\t\t\t\tflag = true;\n\t\t\t} else{\n\t\t\t\t// System.out.println(\"NO\");\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t\tlist.add(flag? \"YES\" : \"NO\");\n\t\t}\n\n\t\tfor(String s : list){\n\t\t\tSystem.out.println(s);\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\tList<String> list = new ArrayList<String>();\n\t\tboolean flag = false;\n\t\tint[] tri = new int[3];\n\t\tint N = scan.nextInt();\n\t\tfor(int a = 0; a < N; a++){\n\t\t\tfor(int i = 0; i < 3; i++){\n\t\t\t\ttri[i] = scan.nextInt();\n\t\t\t}\n\t\t\tfor(int i = 0; i < 3 - 1; i++){\n\t\t\t\tfor(int j = 3 - 1; j > i; j--){\n\t\t\t\t\tif(tri[i] < tri[j]){\n\t\t\t\t\t\tint big = tri[j];\n\t\t\t\t\t\ttri[j] = tri[i];\n\t\t\t\t\t\ttri[i] = big;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\t// System.out.printf(\"%d %d %d\\n\", tri[0], tri[1], tri[2]);\n\t\t\tif(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){\n\t\t\t\t// System.out.println(\"YES\");\n\t\t\t\tflag = true;\n\t\t\t} else{\n\t\t\t\t// System.out.println(\"NO\");\n\t\t\t\tflag = false;\n\t\t\t}\n\t\t\tlist.add(flag? \"YES\" : \"NO\");\n\t\t}\n\n\t\tfor(String s : list){\n\t\t\tSystem.out.println(s);\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){
List<String> list = new ArrayList<String>();
boolean flag = false;
int[] tri = new int[3];
int N = scan.nextInt();
for(int a = 0; a < N; a++){
for(int i = 0; i < 3; i++){
tri[i] = scan.nextInt();
}
for(int i = 0; i < 3 - 1; i++){
for(int j = 3 - 1; j > i; j--){
if(tri[i] < tri[j]){
int big = tri[j];
tri[j] = tri[i];
tri[i] = big;
}
}
}
// System.out.printf("%d %d %d\n", tri[0], tri[1], tri[2]);
if(Math.pow(tri[0], 2) == Math.pow(tri[1], 2) + Math.pow(tri[2], 2)){
// System.out.println("YES");
flag = true;
} else{
// System.out.println("NO");
flag = false;
}
list.add(flag? "YES" : "NO");
}
for(String s : list){
System.out.println(s);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
42,
2,
2,
0,
13,
4,
18,
13,
17,
40,
4,
18,
13,
30,
41,
13,
4,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
47,
14
],
[
47,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
26,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
24,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
15,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\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 String line = \"\";\n\n while ((line = br.readLine()) != null && !line.isEmpty()) {\n\n int N = Integer.parseInt(line);\n\n next:\n for (int i = 0; i < N; i++) {\n int[] num = new int[3];\n StringTokenizer st = new StringTokenizer(br.readLine());\n num[0] = Integer.parseInt(st.nextToken());\n num[1] = Integer.parseInt(st.nextToken());\n num[2] = Integer.parseInt(st.nextToken());\n num[0] *= num[0];\n num[1] *= num[1];\n num[2] *= num[2];\n\n for (int j = 0; j < 3; j++) {\n if (num[j % 3] == num[(j + 1) % 3] + num[(j + 2) % 3]) {\n System.out.println(\"YES\");\n continue next;\n }\n }\n System.out.println(\"NO\");\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.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 String line = \"\";\n\n while ((line = br.readLine()) != null && !line.isEmpty()) {\n\n int N = Integer.parseInt(line);\n\n next:\n for (int i = 0; i < N; i++) {\n int[] num = new int[3];\n StringTokenizer st = new StringTokenizer(br.readLine());\n num[0] = Integer.parseInt(st.nextToken());\n num[1] = Integer.parseInt(st.nextToken());\n num[2] = Integer.parseInt(st.nextToken());\n num[0] *= num[0];\n num[1] *= num[1];\n num[2] *= num[2];\n\n for (int j = 0; j < 3; j++) {\n if (num[j % 3] == num[(j + 1) % 3] + num[(j + 2) % 3]) {\n System.out.println(\"YES\");\n continue next;\n }\n }\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 String line = \"\";\n\n while ((line = br.readLine()) != null && !line.isEmpty()) {\n\n int N = Integer.parseInt(line);\n\n next:\n for (int i = 0; i < N; i++) {\n int[] num = new int[3];\n StringTokenizer st = new StringTokenizer(br.readLine());\n num[0] = Integer.parseInt(st.nextToken());\n num[1] = Integer.parseInt(st.nextToken());\n num[2] = Integer.parseInt(st.nextToken());\n num[0] *= num[0];\n num[1] *= num[1];\n num[2] *= num[2];\n\n for (int j = 0; j < 3; j++) {\n if (num[j % 3] == num[(j + 1) % 3] + num[(j + 2) % 3]) {\n System.out.println(\"YES\");\n continue next;\n }\n }\n System.out.println(\"NO\");\n }\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = \"\";\n\n while ((line = br.readLine()) != null && !line.isEmpty()) {\n\n int N = Integer.parseInt(line);\n\n next:\n for (int i = 0; i < N; i++) {\n int[] num = new int[3];\n StringTokenizer st = new StringTokenizer(br.readLine());\n num[0] = Integer.parseInt(st.nextToken());\n num[1] = Integer.parseInt(st.nextToken());\n num[2] = Integer.parseInt(st.nextToken());\n num[0] *= num[0];\n num[1] *= num[1];\n num[2] *= num[2];\n\n for (int j = 0; j < 3; j++) {\n if (num[j % 3] == num[(j + 1) % 3] + num[(j + 2) % 3]) {\n System.out.println(\"YES\");\n continue next;\n }\n }\n System.out.println(\"NO\");\n }\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line = \"\";",
"line",
"\"\"",
"while ((line = br.readLine()) != null && !line.isEmpty()) {\n\n int N = Integer.parseInt(line);\n\n next:\n for (int i = 0; i < N; i++) {\n int[] num = new int[3];\n StringTokenizer st = new StringTokenizer(br.readLine());\n num[0] = Integer.parseInt(st.nextToken());\n num[1] = Integer.parseInt(st.nextToken());\n num[2] = Integer.parseInt(st.nextToken());\n num[0] *= num[0];\n num[1] *= num[1];\n num[2] *= num[2];\n\n for (int j = 0; j < 3; j++) {\n if (num[j % 3] == num[(j + 1) % 3] + num[(j + 2) % 3]) {\n System.out.println(\"YES\");\n continue next;\n }\n }\n System.out.println(\"NO\");\n }\n }",
"(line = br.readLine()) != null && !line.isEmpty()",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"!line.isEmpty()",
"line.isEmpty()",
"line.isEmpty",
"line",
"{\n\n int N = Integer.parseInt(line);\n\n next:\n for (int i = 0; i < N; i++) {\n int[] num = new int[3];\n StringTokenizer st = new StringTokenizer(br.readLine());\n num[0] = Integer.parseInt(st.nextToken());\n num[1] = Integer.parseInt(st.nextToken());\n num[2] = Integer.parseInt(st.nextToken());\n num[0] *= num[0];\n num[1] *= num[1];\n num[2] *= num[2];\n\n for (int j = 0; j < 3; j++) {\n if (num[j % 3] == num[(j + 1) % 3] + num[(j + 2) % 3]) {\n System.out.println(\"YES\");\n continue next;\n }\n }\n System.out.println(\"NO\");\n }\n }",
"int N = Integer.parseInt(line);",
"N",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = \"\";\n\n while ((line = br.readLine()) != null && !line.isEmpty()) {\n\n int N = Integer.parseInt(line);\n\n next:\n for (int i = 0; i < N; i++) {\n int[] num = new int[3];\n StringTokenizer st = new StringTokenizer(br.readLine());\n num[0] = Integer.parseInt(st.nextToken());\n num[1] = Integer.parseInt(st.nextToken());\n num[2] = Integer.parseInt(st.nextToken());\n num[0] *= num[0];\n num[1] *= num[1];\n num[2] *= num[2];\n\n for (int j = 0; j < 3; j++) {\n if (num[j % 3] == num[(j + 1) % 3] + num[(j + 2) % 3]) {\n System.out.println(\"YES\");\n continue next;\n }\n }\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 String line = \"\";\n\n while ((line = br.readLine()) != null && !line.isEmpty()) {\n\n int N = Integer.parseInt(line);\n\n next:\n for (int i = 0; i < N; i++) {\n int[] num = new int[3];\n StringTokenizer st = new StringTokenizer(br.readLine());\n num[0] = Integer.parseInt(st.nextToken());\n num[1] = Integer.parseInt(st.nextToken());\n num[2] = Integer.parseInt(st.nextToken());\n num[0] *= num[0];\n num[1] *= num[1];\n num[2] *= num[2];\n\n for (int j = 0; j < 3; j++) {\n if (num[j % 3] == num[(j + 1) % 3] + num[(j + 2) % 3]) {\n System.out.println(\"YES\");\n continue next;\n }\n }\n System.out.println(\"NO\");\n }\n }\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 {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = "";
while ((line = br.readLine()) != null && !line.isEmpty()) {
int N = Integer.parseInt(line);
next:
for (int i = 0; i < N; i++) {
int[] num = new int[3];
StringTokenizer st = new StringTokenizer(br.readLine());
num[0] = Integer.parseInt(st.nextToken());
num[1] = Integer.parseInt(st.nextToken());
num[2] = Integer.parseInt(st.nextToken());
num[0] *= num[0];
num[1] *= num[1];
num[2] *= num[2];
for (int j = 0; j < 3; j++) {
if (num[j % 3] == num[(j + 1) % 3] + num[(j + 2) % 3]) {
System.out.println("YES");
continue next;
}
}
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,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
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,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
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
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
60,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] | [
"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\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\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\t\t\tif (a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\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\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\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\t\t\tif (a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.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\tint n = sc.nextInt();\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\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\t\t\tif (a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\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\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\t\t\tif (a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\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 a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\t\t\tif (a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\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 = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\t\t\tif (a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\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\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\t\t\tif (a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\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",
"int a2 = a * a;",
"a2",
"a * a",
"a",
"a",
"int b2 = b * b;",
"b2",
"b * b",
"b",
"b",
"int c2 = c * c;",
"c2",
"c * c",
"c",
"c",
"if (a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");",
"a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2",
"a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2",
"a2 == b2 + c2",
"a2",
"b2 + c2",
"b2",
"c2",
"b2 == a2 + c2",
"b2",
"a2 + c2",
"a2",
"c2",
"c2 == a2 + b2",
"c2",
"a2 + b2",
"a2",
"b2",
"{\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\tint n = sc.nextInt();\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\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\t\t\tif (a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.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\tint n = sc.nextInt();\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\tint a2 = a * a;\n\t\t\tint b2 = b * b;\n\t\t\tint c2 = c * c;\n\t\t\tif (a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\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();
int b = sc.nextInt();
int c = sc.nextInt();
int a2 = a * a;
int b2 = b * b;
int c2 = c * c;
if (a2 == b2 + c2 || b2 == a2 + c2 || c2 == a2 + b2) {
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,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
20,
17,
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,
2,
13,
17,
41,
13,
4,
18,
13,
17,
13,
41,
13,
4,
18,
13,
2,
13,
17,
13,
41,
13,
4,
18,
13,
2,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
13,
0,
18,
13,
17,
4,
18,
13,
13,
0,
18,
13,
17,
4,
18,
13,
13,
41,
13,
20,
17,
0,
18,
13,
17,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
17,
18,
13,
13,
30,
0,
18,
13,
17,
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,
18,
13,
17,
18,
13,
17,
2,
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,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
245,
5
],
[
245,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
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
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
42,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
42,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
65,
69
],
[
42,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
42,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
42,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
42,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
42,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
42,
114
],
[
114,
115
],
[
114,
116
],
[
42,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
42,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
130,
131
],
[
130,
132
],
[
125,
133
],
[
133,
134
],
[
134,
135
],
[
125,
136
],
[
137,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
143,
145
],
[
138,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
151,
153
],
[
146,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
159,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
165,
167
],
[
162,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
172,
174
],
[
162,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
162,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
181,
185
],
[
185,
186
],
[
185,
187
],
[
180,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
191,
192
],
[
191,
193
],
[
188,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
198,
199
],
[
198,
200
],
[
188,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
201,
205
],
[
42,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
209,
211
],
[
208,
212
],
[
212,
213
],
[
212,
214
],
[
207,
215
],
[
215,
216
],
[
216,
217
],
[
217,
218
],
[
217,
219
],
[
216,
220
],
[
220,
221
],
[
220,
222
],
[
215,
223
],
[
223,
224
],
[
224,
225
],
[
224,
226
],
[
223,
227
],
[
227,
228
],
[
227,
229
],
[
206,
230
],
[
230,
231
],
[
231,
232
],
[
232,
233
],
[
232,
234
],
[
230,
235
],
[
206,
236
],
[
236,
237
],
[
237,
238
],
[
238,
239
],
[
238,
240
],
[
236,
241
],
[
6,
242
],
[
242,
243
],
[
0,
244
],
[
244,
245
],
[
244,
246
]
] | [
"import java.io.*;\n\npublic class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\t//System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br =new BufferedReader(is);\n\n\t\tString c = br.readLine();\n\t\tint n1 = Integer.parseInt(c);\n\t\tint[] n = new int[3];\n\n\t\tfor(int j = 0; j <n1; j++){\n\t\t\tString str = br.readLine();\n\t\t\tint space1 = str.indexOf(\" \");\n\t\t\tint space2 = str.indexOf(\" \", space1+1);\n\t\t\tString str1 = str.substring(0, space1);\n\t\t\tString str2 = str.substring(space1+1, space2);\n\t\t\tString str3 = str.substring(space2+1, str.length());\n\t\t\tn[0] = Integer.parseInt(str1);\n\t\t\tn[1] = Integer.parseInt(str2);\n\t\t\tn[2] = Integer.parseInt(str3);\n\n\t\t\tint[] max = new int[3];\n\t\t\tmax[2] = n[0];\n\t\t\tfor(int i = 0; i <3; i++){\n\t\t\t\tif(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif(max[0]*max[0] == max[1]*max[1] + max[2]*max[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}\n\n\n\n\n\t}\n\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\t//System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br =new BufferedReader(is);\n\n\t\tString c = br.readLine();\n\t\tint n1 = Integer.parseInt(c);\n\t\tint[] n = new int[3];\n\n\t\tfor(int j = 0; j <n1; j++){\n\t\t\tString str = br.readLine();\n\t\t\tint space1 = str.indexOf(\" \");\n\t\t\tint space2 = str.indexOf(\" \", space1+1);\n\t\t\tString str1 = str.substring(0, space1);\n\t\t\tString str2 = str.substring(space1+1, space2);\n\t\t\tString str3 = str.substring(space2+1, str.length());\n\t\t\tn[0] = Integer.parseInt(str1);\n\t\t\tn[1] = Integer.parseInt(str2);\n\t\t\tn[2] = Integer.parseInt(str3);\n\n\t\t\tint[] max = new int[3];\n\t\t\tmax[2] = n[0];\n\t\t\tfor(int i = 0; i <3; i++){\n\t\t\t\tif(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif(max[0]*max[0] == max[1]*max[1] + max[2]*max[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}\n\n\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args)throws IOException{\n\t\t//System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br =new BufferedReader(is);\n\n\t\tString c = br.readLine();\n\t\tint n1 = Integer.parseInt(c);\n\t\tint[] n = new int[3];\n\n\t\tfor(int j = 0; j <n1; j++){\n\t\t\tString str = br.readLine();\n\t\t\tint space1 = str.indexOf(\" \");\n\t\t\tint space2 = str.indexOf(\" \", space1+1);\n\t\t\tString str1 = str.substring(0, space1);\n\t\t\tString str2 = str.substring(space1+1, space2);\n\t\t\tString str3 = str.substring(space2+1, str.length());\n\t\t\tn[0] = Integer.parseInt(str1);\n\t\t\tn[1] = Integer.parseInt(str2);\n\t\t\tn[2] = Integer.parseInt(str3);\n\n\t\t\tint[] max = new int[3];\n\t\t\tmax[2] = n[0];\n\t\t\tfor(int i = 0; i <3; i++){\n\t\t\t\tif(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif(max[0]*max[0] == max[1]*max[1] + max[2]*max[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}\n\n\n\n\n\t}",
"main",
"{\n\t\t//System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br =new BufferedReader(is);\n\n\t\tString c = br.readLine();\n\t\tint n1 = Integer.parseInt(c);\n\t\tint[] n = new int[3];\n\n\t\tfor(int j = 0; j <n1; j++){\n\t\t\tString str = br.readLine();\n\t\t\tint space1 = str.indexOf(\" \");\n\t\t\tint space2 = str.indexOf(\" \", space1+1);\n\t\t\tString str1 = str.substring(0, space1);\n\t\t\tString str2 = str.substring(space1+1, space2);\n\t\t\tString str3 = str.substring(space2+1, str.length());\n\t\t\tn[0] = Integer.parseInt(str1);\n\t\t\tn[1] = Integer.parseInt(str2);\n\t\t\tn[2] = Integer.parseInt(str3);\n\n\t\t\tint[] max = new int[3];\n\t\t\tmax[2] = n[0];\n\t\t\tfor(int i = 0; i <3; i++){\n\t\t\t\tif(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif(max[0]*max[0] == max[1]*max[1] + max[2]*max[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}\n\n\n\n\n\t}",
"InputStreamReader is = new InputStreamReader(System.in);",
"is",
"new InputStreamReader(System.in)",
"BufferedReader br =new BufferedReader(is);",
"br",
"new BufferedReader(is)",
"String c = br.readLine();",
"c",
"br.readLine()",
"br.readLine",
"br",
"int n1 = Integer.parseInt(c);",
"n1",
"Integer.parseInt(c)",
"Integer.parseInt",
"Integer",
"c",
"int[] n = new int[3];",
"n",
"new int[3]",
"3",
"for(int j = 0; j <n1; j++){\n\t\t\tString str = br.readLine();\n\t\t\tint space1 = str.indexOf(\" \");\n\t\t\tint space2 = str.indexOf(\" \", space1+1);\n\t\t\tString str1 = str.substring(0, space1);\n\t\t\tString str2 = str.substring(space1+1, space2);\n\t\t\tString str3 = str.substring(space2+1, str.length());\n\t\t\tn[0] = Integer.parseInt(str1);\n\t\t\tn[1] = Integer.parseInt(str2);\n\t\t\tn[2] = Integer.parseInt(str3);\n\n\t\t\tint[] max = new int[3];\n\t\t\tmax[2] = n[0];\n\t\t\tfor(int i = 0; i <3; i++){\n\t\t\t\tif(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif(max[0]*max[0] == max[1]*max[1] + max[2]*max[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j <n1",
"j",
"n1",
"j++",
"j++",
"j",
"{\n\t\t\tString str = br.readLine();\n\t\t\tint space1 = str.indexOf(\" \");\n\t\t\tint space2 = str.indexOf(\" \", space1+1);\n\t\t\tString str1 = str.substring(0, space1);\n\t\t\tString str2 = str.substring(space1+1, space2);\n\t\t\tString str3 = str.substring(space2+1, str.length());\n\t\t\tn[0] = Integer.parseInt(str1);\n\t\t\tn[1] = Integer.parseInt(str2);\n\t\t\tn[2] = Integer.parseInt(str3);\n\n\t\t\tint[] max = new int[3];\n\t\t\tmax[2] = n[0];\n\t\t\tfor(int i = 0; i <3; i++){\n\t\t\t\tif(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif(max[0]*max[0] == max[1]*max[1] + max[2]*max[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}",
"{\n\t\t\tString str = br.readLine();\n\t\t\tint space1 = str.indexOf(\" \");\n\t\t\tint space2 = str.indexOf(\" \", space1+1);\n\t\t\tString str1 = str.substring(0, space1);\n\t\t\tString str2 = str.substring(space1+1, space2);\n\t\t\tString str3 = str.substring(space2+1, str.length());\n\t\t\tn[0] = Integer.parseInt(str1);\n\t\t\tn[1] = Integer.parseInt(str2);\n\t\t\tn[2] = Integer.parseInt(str3);\n\n\t\t\tint[] max = new int[3];\n\t\t\tmax[2] = n[0];\n\t\t\tfor(int i = 0; i <3; i++){\n\t\t\t\tif(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif(max[0]*max[0] == max[1]*max[1] + max[2]*max[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"int space1 = str.indexOf(\" \");",
"space1",
"str.indexOf(\" \")",
"str.indexOf",
"str",
"\" \"",
"int space2 = str.indexOf(\" \", space1+1);",
"space2",
"str.indexOf(\" \", space1+1)",
"str.indexOf",
"str",
"\" \"",
"space1+1",
"space1",
"1",
"String str1 = str.substring(0, space1);",
"str1",
"str.substring(0, space1)",
"str.substring",
"str",
"0",
"space1",
"String str2 = str.substring(space1+1, space2);",
"str2",
"str.substring(space1+1, space2)",
"str.substring",
"str",
"space1+1",
"space1",
"1",
"space2",
"String str3 = str.substring(space2+1, str.length());",
"str3",
"str.substring(space2+1, str.length())",
"str.substring",
"str",
"space2+1",
"space2",
"1",
"str.length()",
"str.length",
"str",
"n[0] = Integer.parseInt(str1)",
"n[0]",
"n",
"0",
"Integer.parseInt(str1)",
"Integer.parseInt",
"Integer",
"str1",
"n[1] = Integer.parseInt(str2)",
"n[1]",
"n",
"1",
"Integer.parseInt(str2)",
"Integer.parseInt",
"Integer",
"str2",
"n[2] = Integer.parseInt(str3)",
"n[2]",
"n",
"2",
"Integer.parseInt(str3)",
"Integer.parseInt",
"Integer",
"str3",
"int[] max = new int[3];",
"max",
"new int[3]",
"3",
"max[2] = n[0]",
"max[2]",
"max",
"2",
"n[0]",
"n",
"0",
"for(int i = 0; i <3; i++){\n\t\t\t\tif(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"{\n\t\t\t\tif(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"if(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"max[2] <= n[i]",
"max[2]",
"max",
"2",
"n[i]",
"n",
"i",
"{\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"max[2] = n[i]",
"max[2]",
"max",
"2",
"n[i]",
"n",
"i",
"if(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"max[2] >= max[1]",
"max[2]",
"max",
"2",
"max[1]",
"max",
"1",
"{\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"int re = max[1];",
"re",
"max[1]",
"max",
"1",
"max[1] = max[2]",
"max[1]",
"max",
"1",
"max[2]",
"max",
"2",
"max[2] = re",
"max[2]",
"max",
"2",
"re",
"if(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}",
"max[1] >= max[0]",
"max[1]",
"max",
"1",
"max[0]",
"max",
"0",
"{\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}",
"int re2 = max[0];",
"re2",
"max[0]",
"max",
"0",
"max[0] = max[1]",
"max[0]",
"max",
"0",
"max[1]",
"max",
"1",
"max[1] = re2",
"max[1]",
"max",
"1",
"re2",
"if(max[0]*max[0] == max[1]*max[1] + max[2]*max[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");",
"max[0]*max[0] == max[1]*max[1] + max[2]*max[2]",
"max[0]*max[0]",
"max[0]",
"max",
"0",
"max[0]",
"max",
"0",
"max[1]*max[1] + max[2]*max[2]",
"max[1]*max[1]",
"max[1]",
"max",
"1",
"max[1]",
"max",
"1",
"max[2]*max[2]",
"max[2]",
"max",
"2",
"max[2]",
"max",
"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)throws IOException{\n\t\t//System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br =new BufferedReader(is);\n\n\t\tString c = br.readLine();\n\t\tint n1 = Integer.parseInt(c);\n\t\tint[] n = new int[3];\n\n\t\tfor(int j = 0; j <n1; j++){\n\t\t\tString str = br.readLine();\n\t\t\tint space1 = str.indexOf(\" \");\n\t\t\tint space2 = str.indexOf(\" \", space1+1);\n\t\t\tString str1 = str.substring(0, space1);\n\t\t\tString str2 = str.substring(space1+1, space2);\n\t\t\tString str3 = str.substring(space2+1, str.length());\n\t\t\tn[0] = Integer.parseInt(str1);\n\t\t\tn[1] = Integer.parseInt(str2);\n\t\t\tn[2] = Integer.parseInt(str3);\n\n\t\t\tint[] max = new int[3];\n\t\t\tmax[2] = n[0];\n\t\t\tfor(int i = 0; i <3; i++){\n\t\t\t\tif(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif(max[0]*max[0] == max[1]*max[1] + max[2]*max[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}\n\n\n\n\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\t//System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br =new BufferedReader(is);\n\n\t\tString c = br.readLine();\n\t\tint n1 = Integer.parseInt(c);\n\t\tint[] n = new int[3];\n\n\t\tfor(int j = 0; j <n1; j++){\n\t\t\tString str = br.readLine();\n\t\t\tint space1 = str.indexOf(\" \");\n\t\t\tint space2 = str.indexOf(\" \", space1+1);\n\t\t\tString str1 = str.substring(0, space1);\n\t\t\tString str2 = str.substring(space1+1, space2);\n\t\t\tString str3 = str.substring(space2+1, str.length());\n\t\t\tn[0] = Integer.parseInt(str1);\n\t\t\tn[1] = Integer.parseInt(str2);\n\t\t\tn[2] = Integer.parseInt(str3);\n\n\t\t\tint[] max = new int[3];\n\t\t\tmax[2] = n[0];\n\t\t\tfor(int i = 0; i <3; i++){\n\t\t\t\tif(max[2] <= n[i]){\n\t\t\t\t\tmax[2] = n[i];\n\t\t\t\t\tif(max[2] >= max[1]){\n\t\t\t\t\t\tint re = max[1];\n\t\t\t\t\t\tmax[1] = max[2];\n\t\t\t\t\t\tmax[2] = re;\n\t\t\t\t\t\tif(max[1] >= max[0]){\n\t\t\t\t\t\t\tint re2 = max[0];\n\t\t\t\t\t\t\tmax[0] = max[1];\n\t\t\t\t\t\t\tmax[1] = re2;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t\tif(max[0]*max[0] == max[1]*max[1] + max[2]*max[2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}\n\n\n\n\n\t}\n\n}",
"Main"
] | import java.io.*;
public class Main {
public static void main(String[] args)throws IOException{
//System.out.println("Hello world");
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br =new BufferedReader(is);
String c = br.readLine();
int n1 = Integer.parseInt(c);
int[] n = new int[3];
for(int j = 0; j <n1; j++){
String str = br.readLine();
int space1 = str.indexOf(" ");
int space2 = str.indexOf(" ", space1+1);
String str1 = str.substring(0, space1);
String str2 = str.substring(space1+1, space2);
String str3 = str.substring(space2+1, str.length());
n[0] = Integer.parseInt(str1);
n[1] = Integer.parseInt(str2);
n[2] = Integer.parseInt(str3);
int[] max = new int[3];
max[2] = n[0];
for(int i = 0; i <3; i++){
if(max[2] <= n[i]){
max[2] = n[i];
if(max[2] >= max[1]){
int re = max[1];
max[1] = max[2];
max[2] = re;
if(max[1] >= max[0]){
int re2 = max[0];
max[0] = max[1];
max[1] = re2;
}
}
}
}
if(max[0]*max[0] == max[1]*max[1] + max[2]*max[2])
System.out.println("YES");
else
System.out.println("NO");
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
20,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
4,
18,
13,
11,
1,
0,
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,
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,
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,
23,
13,
12,
13,
30,
4,
18,
20,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
233,
2
],
[
233,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
5,
11
],
[
11,
12
],
[
5,
13
],
[
13,
14
],
[
5,
15
],
[
15,
16
],
[
5,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
5,
22
],
[
22,
23
],
[
22,
24
],
[
5,
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
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
5,
62
],
[
62,
63
],
[
63,
64
],
[
5,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
65,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
80,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
79,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
103,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
78,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
78,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
124,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
123,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
135,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
122,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
146,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
121,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
158,
163
],
[
121,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
167,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
166,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
180,
182
],
[
179,
183
],
[
178,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
184,
188
],
[
165,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
189,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
195,
199
],
[
164,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
201,
206
],
[
164,
207
],
[
207,
208
],
[
208,
209
],
[
209,
210
],
[
210,
211
],
[
210,
212
],
[
208,
213
],
[
3,
214
],
[
214,
215
],
[
3,
216
],
[
216,
217
],
[
233,
218
],
[
218,
219
],
[
218,
220
],
[
220,
221
],
[
221,
222
],
[
222,
223
],
[
221,
224
],
[
224,
225
],
[
224,
226
],
[
221,
227
],
[
227,
228
],
[
227,
229
],
[
218,
230
],
[
230,
231
],
[
0,
232
],
[
232,
233
],
[
232,
234
]
] | [
"public class Main{\n\tpublic void run(java.io.InputStream in,java.io.PrintStream out){\n\tjava.util.Scanner sc = new java.util.Scanner(in);\n/*????????§Input*/\n\tint N, i, j;\n\tint[][] a;\n\n\tN = sc.nextInt();\n\ta = new int[N][3];\n\n\tfor(i = 0;i < N;i++){\n\t\tfor(j = 0;j < 3;j++){\n\t\t\ta[i][j] = sc.nextInt();\n\t\t}\n\t}\t\t\n\tsc.close();\n\n/*answer*/\n\tfor(i = 0;i < N;i++){\n\t\tif(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\n\t}\n\n\t}\n\tpublic static void main(String[] args){\n\t\t(new Main()).run(System.in,System.out);\n\t}\n}",
"public class Main{\n\tpublic void run(java.io.InputStream in,java.io.PrintStream out){\n\tjava.util.Scanner sc = new java.util.Scanner(in);\n/*????????§Input*/\n\tint N, i, j;\n\tint[][] a;\n\n\tN = sc.nextInt();\n\ta = new int[N][3];\n\n\tfor(i = 0;i < N;i++){\n\t\tfor(j = 0;j < 3;j++){\n\t\t\ta[i][j] = sc.nextInt();\n\t\t}\n\t}\t\t\n\tsc.close();\n\n/*answer*/\n\tfor(i = 0;i < N;i++){\n\t\tif(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\n\t}\n\n\t}\n\tpublic static void main(String[] args){\n\t\t(new Main()).run(System.in,System.out);\n\t}\n}",
"Main",
"public void run(java.io.InputStream in,java.io.PrintStream out){\n\tjava.util.Scanner sc = new java.util.Scanner(in);\n/*????????§Input*/\n\tint N, i, j;\n\tint[][] a;\n\n\tN = sc.nextInt();\n\ta = new int[N][3];\n\n\tfor(i = 0;i < N;i++){\n\t\tfor(j = 0;j < 3;j++){\n\t\t\ta[i][j] = sc.nextInt();\n\t\t}\n\t}\t\t\n\tsc.close();\n\n/*answer*/\n\tfor(i = 0;i < N;i++){\n\t\tif(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\n\t}\n\n\t}",
"run",
"{\n\tjava.util.Scanner sc = new java.util.Scanner(in);\n/*????????§Input*/\n\tint N, i, j;\n\tint[][] a;\n\n\tN = sc.nextInt();\n\ta = new int[N][3];\n\n\tfor(i = 0;i < N;i++){\n\t\tfor(j = 0;j < 3;j++){\n\t\t\ta[i][j] = sc.nextInt();\n\t\t}\n\t}\t\t\n\tsc.close();\n\n/*answer*/\n\tfor(i = 0;i < N;i++){\n\t\tif(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\n\t}\n\n\t}",
"java.util.Scanner sc = new java.util.Scanner(in);",
"sc",
"new java.util.Scanner(in)",
"int N",
"N",
"i",
"i",
"j;",
"j",
"int[][] a;",
"a",
"N = sc.nextInt()",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a = new int[N][3]",
"a",
"new int[N][3]",
"N",
"3",
"for(i = 0;i < N;i++){\n\t\tfor(j = 0;j < 3;j++){\n\t\t\ta[i][j] = sc.nextInt();\n\t\t}\n\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\tfor(j = 0;j < 3;j++){\n\t\t\ta[i][j] = sc.nextInt();\n\t\t}\n\t}",
"{\n\t\tfor(j = 0;j < 3;j++){\n\t\t\ta[i][j] = sc.nextInt();\n\t\t}\n\t}",
"for(j = 0;j < 3;j++){\n\t\t\ta[i][j] = sc.nextInt();\n\t\t}",
"j = 0;",
"j = 0",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\ta[i][j] = sc.nextInt();\n\t\t}",
"{\n\t\t\ta[i][j] = sc.nextInt();\n\t\t}",
"a[i][j] = sc.nextInt()",
"a[i][j]",
"a[i]",
"a",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"for(i = 0;i < N;i++){\n\t\tif(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\n\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\tif(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\n\t}",
"{\n\t\tif(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\n\t}",
"if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}",
"a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]",
"a[i][0] * a[i][0] + a[i][1] * a[i][1]",
"a[i][0] * a[i][0]",
"a[i][0]",
"a[i]",
"a",
"i",
"0",
"a[i][0]",
"a[i]",
"a",
"i",
"0",
"a[i][1] * a[i][1]",
"a[i][1]",
"a[i]",
"a",
"i",
"1",
"a[i][1]",
"a[i]",
"a",
"i",
"1",
"a[i][2] * a[i][2]",
"a[i][2]",
"a[i]",
"a",
"i",
"2",
"a[i][2]",
"a[i]",
"a",
"i",
"2",
"{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}",
"a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]",
"a[i][0] * a[i][0] + a[i][2] * a[i][2]",
"a[i][0] * a[i][0]",
"a[i][0]",
"a[i]",
"a",
"i",
"0",
"a[i][0]",
"a[i]",
"a",
"i",
"0",
"a[i][2] * a[i][2]",
"a[i][2]",
"a[i]",
"a",
"i",
"2",
"a[i][2]",
"a[i]",
"a",
"i",
"2",
"a[i][1] * a[i][1]",
"a[i][1]",
"a[i]",
"a",
"i",
"1",
"a[i][1]",
"a[i]",
"a",
"i",
"1",
"{\n\t\t\tSystem.out.println(\"YES\");\n\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}",
"a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]",
"a[i][2] * a[i][2] + a[i][1] * a[i][1]",
"a[i][2] * a[i][2]",
"a[i][2]",
"a[i]",
"a",
"i",
"2",
"a[i][2]",
"a[i]",
"a",
"i",
"2",
"a[i][1] * a[i][1]",
"a[i][1]",
"a[i]",
"a",
"i",
"1",
"a[i][1]",
"a[i]",
"a",
"i",
"1",
"a[i][0] * a[i][0]",
"a[i][0]",
"a[i]",
"a",
"i",
"0",
"a[i][0]",
"a[i]",
"a",
"i",
"0",
"{\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\"",
"java.io.InputStream in",
"in",
"java.io.PrintStream out",
"out",
"public static void main(String[] args){\n\t\t(new Main()).run(System.in,System.out);\n\t}",
"main",
"{\n\t\t(new Main()).run(System.in,System.out);\n\t}",
"(new Main()).run(System.in,System.out)",
"(new Main()).run",
"(new Main())",
"System.in",
"System",
"System.in",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main{\n\tpublic void run(java.io.InputStream in,java.io.PrintStream out){\n\tjava.util.Scanner sc = new java.util.Scanner(in);\n/*????????§Input*/\n\tint N, i, j;\n\tint[][] a;\n\n\tN = sc.nextInt();\n\ta = new int[N][3];\n\n\tfor(i = 0;i < N;i++){\n\t\tfor(j = 0;j < 3;j++){\n\t\t\ta[i][j] = sc.nextInt();\n\t\t}\n\t}\t\t\n\tsc.close();\n\n/*answer*/\n\tfor(i = 0;i < N;i++){\n\t\tif(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\n\t}\n\n\t}\n\tpublic static void main(String[] args){\n\t\t(new Main()).run(System.in,System.out);\n\t}\n}",
"public class Main{\n\tpublic void run(java.io.InputStream in,java.io.PrintStream out){\n\tjava.util.Scanner sc = new java.util.Scanner(in);\n/*????????§Input*/\n\tint N, i, j;\n\tint[][] a;\n\n\tN = sc.nextInt();\n\ta = new int[N][3];\n\n\tfor(i = 0;i < N;i++){\n\t\tfor(j = 0;j < 3;j++){\n\t\t\ta[i][j] = sc.nextInt();\n\t\t}\n\t}\t\t\n\tsc.close();\n\n/*answer*/\n\tfor(i = 0;i < N;i++){\n\t\tif(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}else{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\n\t}\n\n\t}\n\tpublic static void main(String[] args){\n\t\t(new Main()).run(System.in,System.out);\n\t}\n}",
"Main"
] | public class Main{
public void run(java.io.InputStream in,java.io.PrintStream out){
java.util.Scanner sc = new java.util.Scanner(in);
/*????????§Input*/
int N, i, j;
int[][] a;
N = sc.nextInt();
a = new int[N][3];
for(i = 0;i < N;i++){
for(j = 0;j < 3;j++){
a[i][j] = sc.nextInt();
}
}
sc.close();
/*answer*/
for(i = 0;i < N;i++){
if(a[i][0] * a[i][0] + a[i][1] * a[i][1] == a[i][2] * a[i][2]){
System.out.println("YES");
}else if(a[i][0] * a[i][0] + a[i][2] * a[i][2] == a[i][1] * a[i][1]){
System.out.println("YES");
}else if(a[i][2] * a[i][2] + a[i][1] * a[i][1] == a[i][0] * a[i][0]){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
public static void main(String[] args){
(new Main()).run(System.in,System.out);
}
} |
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.