node_ids
sequencelengths 4
1.4k
| edge_index
sequencelengths 1
2.22k
| text
sequencelengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
15,
13,
17,
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,
14,
2,
13,
17,
30,
3,
4,
13,
13,
23,
13,
12,
13,
30,
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,
4,
18,
13,
13,
4,
18,
18,
13,
13,
8,
2,
4,
18,
13,
18,
13,
17,
17,
2,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
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
],
[
120,
8
],
[
120,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
35,
47
],
[
47,
48
],
[
47,
49
],
[
9,
50
],
[
50,
51
],
[
120,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
54,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
67,
69
],
[
63,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
63,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
54,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
54,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
93,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
111,
113
],
[
108,
114
],
[
91,
115
],
[
91,
116
],
[
52,
117
],
[
117,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
] | [
"\nimport java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n public static void main(String[] argv) throws IOException {\n //*\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int lines = Integer.parseInt(in.readLine());\n for (int i = 0; i < lines; i++) {\n String s = in.readLine();\n if (s == null) {\n break;\n }\n f(s);\n }\n /*/\n f(\"4 3 5\");\n f(\"4 3 6\");\n f(\"8 8 8\");\n //*/\n }\n\n public static void f(String s) {\n String[] sp = s.split(\" \");\n int[] a = {Integer.parseInt(sp[0]),\n Integer.parseInt(sp[1]),\n Integer.parseInt(sp[2])};\n Arrays.sort(a);\n System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? \"YES\" : \"NO\");\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n public static void main(String[] argv) throws IOException {\n //*\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int lines = Integer.parseInt(in.readLine());\n for (int i = 0; i < lines; i++) {\n String s = in.readLine();\n if (s == null) {\n break;\n }\n f(s);\n }\n /*/\n f(\"4 3 5\");\n f(\"4 3 6\");\n f(\"8 8 8\");\n //*/\n }\n\n public static void f(String s) {\n String[] sp = s.split(\" \");\n int[] a = {Integer.parseInt(sp[0]),\n Integer.parseInt(sp[1]),\n Integer.parseInt(sp[2])};\n Arrays.sort(a);\n System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? \"YES\" : \"NO\");\n }\n}",
"Main",
"public static void main(String[] argv) throws IOException {\n //*\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int lines = Integer.parseInt(in.readLine());\n for (int i = 0; i < lines; i++) {\n String s = in.readLine();\n if (s == null) {\n break;\n }\n f(s);\n }\n /*/\n f(\"4 3 5\");\n f(\"4 3 6\");\n f(\"8 8 8\");\n //*/\n }",
"main",
"{\n //*\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int lines = Integer.parseInt(in.readLine());\n for (int i = 0; i < lines; i++) {\n String s = in.readLine();\n if (s == null) {\n break;\n }\n f(s);\n }\n /*/\n f(\"4 3 5\");\n f(\"4 3 6\");\n f(\"8 8 8\");\n //*/\n }",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int lines = Integer.parseInt(in.readLine());",
"lines",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"for (int i = 0; i < lines; i++) {\n String s = in.readLine();\n if (s == null) {\n break;\n }\n f(s);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < lines",
"i",
"lines",
"i++",
"i++",
"i",
"{\n String s = in.readLine();\n if (s == null) {\n break;\n }\n f(s);\n }",
"{\n String s = in.readLine();\n if (s == null) {\n break;\n }\n f(s);\n }",
"String s = in.readLine();",
"s",
"in.readLine()",
"in.readLine",
"in",
"if (s == null) {\n break;\n }",
"s == null",
"s",
"null",
"{\n break;\n }",
"break;",
"f(s)",
"f",
"s",
"String[] argv",
"argv",
"public static void f(String s) {\n String[] sp = s.split(\" \");\n int[] a = {Integer.parseInt(sp[0]),\n Integer.parseInt(sp[1]),\n Integer.parseInt(sp[2])};\n Arrays.sort(a);\n System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? \"YES\" : \"NO\");\n }",
"f",
"{\n String[] sp = s.split(\" \");\n int[] a = {Integer.parseInt(sp[0]),\n Integer.parseInt(sp[1]),\n Integer.parseInt(sp[2])};\n Arrays.sort(a);\n System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? \"YES\" : \"NO\");\n }",
"String[] sp = s.split(\" \");",
"sp",
"s.split(\" \")",
"s.split",
"s",
"\" \"",
"int[] a = {Integer.parseInt(sp[0]),\n Integer.parseInt(sp[1]),\n Integer.parseInt(sp[2])};",
"a",
"{Integer.parseInt(sp[0]),\n Integer.parseInt(sp[1]),\n Integer.parseInt(sp[2])}",
"Integer.parseInt(sp[0])",
"Integer.parseInt",
"Integer",
"sp[0]",
"sp",
"0",
"Integer.parseInt(sp[1])",
"Integer.parseInt",
"Integer",
"sp[1]",
"sp",
"1",
"Integer.parseInt(sp[2])",
"Integer.parseInt",
"Integer",
"sp[2]",
"sp",
"2",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? \"YES\" : \"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? \"YES\" : \"NO\"",
"Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2)",
"Math.pow(a[2], 2)",
"Math.pow",
"Math",
"a[2]",
"a",
"2",
"2",
"Math.pow(a[0], 2) + Math.pow(a[1], 2)",
"Math.pow(a[0], 2)",
"Math.pow",
"Math",
"a[0]",
"a",
"0",
"2",
"Math.pow(a[1], 2)",
"Math.pow",
"Math",
"a[1]",
"a",
"1",
"2",
"\"YES\"",
"\"NO\"",
"String s",
"s",
"public class Main {\n\n public static void main(String[] argv) throws IOException {\n //*\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int lines = Integer.parseInt(in.readLine());\n for (int i = 0; i < lines; i++) {\n String s = in.readLine();\n if (s == null) {\n break;\n }\n f(s);\n }\n /*/\n f(\"4 3 5\");\n f(\"4 3 6\");\n f(\"8 8 8\");\n //*/\n }\n\n public static void f(String s) {\n String[] sp = s.split(\" \");\n int[] a = {Integer.parseInt(sp[0]),\n Integer.parseInt(sp[1]),\n Integer.parseInt(sp[2])};\n Arrays.sort(a);\n System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? \"YES\" : \"NO\");\n }\n}",
"public class Main {\n\n public static void main(String[] argv) throws IOException {\n //*\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n int lines = Integer.parseInt(in.readLine());\n for (int i = 0; i < lines; i++) {\n String s = in.readLine();\n if (s == null) {\n break;\n }\n f(s);\n }\n /*/\n f(\"4 3 5\");\n f(\"4 3 6\");\n f(\"8 8 8\");\n //*/\n }\n\n public static void f(String s) {\n String[] sp = s.split(\" \");\n int[] a = {Integer.parseInt(sp[0]),\n Integer.parseInt(sp[1]),\n Integer.parseInt(sp[2])};\n Arrays.sort(a);\n System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? \"YES\" : \"NO\");\n }\n}",
"Main"
] |
import java.io.*;
import java.util.*;
public class Main {
public static void main(String[] argv) throws IOException {
//*
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int lines = Integer.parseInt(in.readLine());
for (int i = 0; i < lines; i++) {
String s = in.readLine();
if (s == null) {
break;
}
f(s);
}
/*/
f("4 3 5");
f("4 3 6");
f("8 8 8");
//*/
}
public static void f(String s) {
String[] sp = s.split(" ");
int[] a = {Integer.parseInt(sp[0]),
Integer.parseInt(sp[1]),
Integer.parseInt(sp[2])};
Arrays.sort(a);
System.out.println(Math.pow(a[2], 2) == Math.pow(a[0], 2) + Math.pow(a[1], 2) ? "YES" : "NO");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
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,
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,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
0,
18,
13,
13,
17,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
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
],
[
145,
5
],
[
145,
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
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
41,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
68,
69
],
[
68,
70
],
[
41,
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
],
[
41,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
85,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
85,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
8,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
118,
119
],
[
109,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
122,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
122,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
136,
141
],
[
6,
142
],
[
142,
143
],
[
0,
144
],
[
144,
145
],
[
144,
146
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tboolean tri[] = new boolean[N];\n\t\tint a,b,c,x;\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){\n\t\t\t\tx = a;\n\t\t\t\ta = b;\n\t\t\t\tb = x;\n\t\t\t}\n\t\t\tif(a < c){\n\t\t\t\tx = a;\n\t\t\t\ta = c;\n\t\t\t\tc = x;\n\t\t\t}\n\t\t\tif(a*a == (b*b) + (c*c)){\n\t\t\t\ttri[i] = true;\n\t\t\t} else {\n\t\t\t\ttri[i] = false;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tif(tri[i] == true){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tboolean tri[] = new boolean[N];\n\t\tint a,b,c,x;\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){\n\t\t\t\tx = a;\n\t\t\t\ta = b;\n\t\t\t\tb = x;\n\t\t\t}\n\t\t\tif(a < c){\n\t\t\t\tx = a;\n\t\t\t\ta = c;\n\t\t\t\tc = x;\n\t\t\t}\n\t\t\tif(a*a == (b*b) + (c*c)){\n\t\t\t\ttri[i] = true;\n\t\t\t} else {\n\t\t\t\ttri[i] = false;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tif(tri[i] == true){\n\t\t\t\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\tboolean tri[] = new boolean[N];\n\t\tint a,b,c,x;\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){\n\t\t\t\tx = a;\n\t\t\t\ta = b;\n\t\t\t\tb = x;\n\t\t\t}\n\t\t\tif(a < c){\n\t\t\t\tx = a;\n\t\t\t\ta = c;\n\t\t\t\tc = x;\n\t\t\t}\n\t\t\tif(a*a == (b*b) + (c*c)){\n\t\t\t\ttri[i] = true;\n\t\t\t} else {\n\t\t\t\ttri[i] = false;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tif(tri[i] == true){\n\t\t\t\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\tboolean tri[] = new boolean[N];\n\t\tint a,b,c,x;\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){\n\t\t\t\tx = a;\n\t\t\t\ta = b;\n\t\t\t\tb = x;\n\t\t\t}\n\t\t\tif(a < c){\n\t\t\t\tx = a;\n\t\t\t\ta = c;\n\t\t\t\tc = x;\n\t\t\t}\n\t\t\tif(a*a == (b*b) + (c*c)){\n\t\t\t\ttri[i] = true;\n\t\t\t} else {\n\t\t\t\ttri[i] = false;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tif(tri[i] == true){\n\t\t\t\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",
"boolean tri[] = new boolean[N];",
"tri",
"new boolean[N]",
"N",
"int a",
"a",
"b",
"b",
"c",
"c",
"x;",
"x",
"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){\n\t\t\t\tx = a;\n\t\t\t\ta = b;\n\t\t\t\tb = x;\n\t\t\t}\n\t\t\tif(a < c){\n\t\t\t\tx = a;\n\t\t\t\ta = c;\n\t\t\t\tc = x;\n\t\t\t}\n\t\t\tif(a*a == (b*b) + (c*c)){\n\t\t\t\ttri[i] = true;\n\t\t\t} else {\n\t\t\t\ttri[i] = false;\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){\n\t\t\t\tx = a;\n\t\t\t\ta = b;\n\t\t\t\tb = x;\n\t\t\t}\n\t\t\tif(a < c){\n\t\t\t\tx = a;\n\t\t\t\ta = c;\n\t\t\t\tc = x;\n\t\t\t}\n\t\t\tif(a*a == (b*b) + (c*c)){\n\t\t\t\ttri[i] = true;\n\t\t\t} else {\n\t\t\t\ttri[i] = false;\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){\n\t\t\t\tx = a;\n\t\t\t\ta = b;\n\t\t\t\tb = x;\n\t\t\t}\n\t\t\tif(a < c){\n\t\t\t\tx = a;\n\t\t\t\ta = c;\n\t\t\t\tc = x;\n\t\t\t}\n\t\t\tif(a*a == (b*b) + (c*c)){\n\t\t\t\ttri[i] = true;\n\t\t\t} else {\n\t\t\t\ttri[i] = false;\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){\n\t\t\t\tx = a;\n\t\t\t\ta = b;\n\t\t\t\tb = x;\n\t\t\t}",
"a < b",
"a",
"b",
"{\n\t\t\t\tx = a;\n\t\t\t\ta = b;\n\t\t\t\tb = x;\n\t\t\t}",
"x = a",
"x",
"a",
"a = b",
"a",
"b",
"b = x",
"b",
"x",
"if(a < c){\n\t\t\t\tx = a;\n\t\t\t\ta = c;\n\t\t\t\tc = x;\n\t\t\t}",
"a < c",
"a",
"c",
"{\n\t\t\t\tx = a;\n\t\t\t\ta = c;\n\t\t\t\tc = x;\n\t\t\t}",
"x = a",
"x",
"a",
"a = c",
"a",
"c",
"c = x",
"c",
"x",
"if(a*a == (b*b) + (c*c)){\n\t\t\t\ttri[i] = true;\n\t\t\t} else {\n\t\t\t\ttri[i] = false;\n\t\t\t}",
"a*a == (b*b) + (c*c)",
"a*a",
"a",
"a",
"(b*b) + (c*c)",
"(b*b)",
"b",
"b",
"(c*c)",
"c",
"c",
"{\n\t\t\t\ttri[i] = true;\n\t\t\t}",
"tri[i] = true",
"tri[i]",
"tri",
"i",
"true",
"{\n\t\t\t\ttri[i] = false;\n\t\t\t}",
"tri[i] = false",
"tri[i]",
"tri",
"i",
"false",
"for(int i = 0; i < N; i++){\n\t\t\tif(tri[i] == true){\n\t\t\t\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(tri[i] == true){\n\t\t\t\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(tri[i] == true){\n\t\t\t\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(tri[i] == true){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"tri[i] == true",
"tri[i]",
"tri",
"i",
"true",
"{\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\tboolean tri[] = new boolean[N];\n\t\tint a,b,c,x;\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){\n\t\t\t\tx = a;\n\t\t\t\ta = b;\n\t\t\t\tb = x;\n\t\t\t}\n\t\t\tif(a < c){\n\t\t\t\tx = a;\n\t\t\t\ta = c;\n\t\t\t\tc = x;\n\t\t\t}\n\t\t\tif(a*a == (b*b) + (c*c)){\n\t\t\t\ttri[i] = true;\n\t\t\t} else {\n\t\t\t\ttri[i] = false;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tif(tri[i] == true){\n\t\t\t\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\tboolean tri[] = new boolean[N];\n\t\tint a,b,c,x;\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){\n\t\t\t\tx = a;\n\t\t\t\ta = b;\n\t\t\t\tb = x;\n\t\t\t}\n\t\t\tif(a < c){\n\t\t\t\tx = a;\n\t\t\t\ta = c;\n\t\t\t\tc = x;\n\t\t\t}\n\t\t\tif(a*a == (b*b) + (c*c)){\n\t\t\t\ttri[i] = true;\n\t\t\t} else {\n\t\t\t\ttri[i] = false;\n\t\t\t}\n\t\t}\n\t\tfor(int i = 0; i < N; i++){\n\t\t\tif(tri[i] == true){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
boolean tri[] = new boolean[N];
int a,b,c,x;
for(int i = 0; i < N; i++){
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
if(a < b){
x = a;
a = b;
b = x;
}
if(a < c){
x = a;
a = c;
c = x;
}
if(a*a == (b*b) + (c*c)){
tri[i] = true;
} else {
tri[i] = false;
}
}
for(int i = 0; i < N; i++){
if(tri[i] == true){
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,
41,
13,
20,
17,
41,
13,
17,
41,
13,
20,
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,
17,
4,
18,
13,
13,
0,
18,
13,
13,
8,
2,
2,
18,
13,
17,
18,
13,
17,
18,
13,
17,
17,
17,
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
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
68,
69
],
[
64,
70
],
[
46,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
46,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
88,
90
],
[
79,
91
],
[
79,
92
],
[
14,
93
],
[
93,
94
],
[
93,
95
],
[
93,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
12,
104
],
[
104,
105
]
] | [
"import java.io.IOException;\nimport java.util.Arrays;\nimport java.util.Scanner;\n\nclass Main\n{\n\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint[] h=new int[3];\n\t\tint max=0;\n\t\tString[] ans=new String[N];\n\t\tfor(int i=0;i<N;i++)\n\t\t{\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t{\n\t\t\t\th[j]=(int)Math.pow(sc.nextInt(),2);\n\t\t\t}\n\t\t\tArrays.sort(h);\n\t\t\tans[i]=(h[0]+h[1]==h[2])?\"YES\":\"NO\";\n\t\t}\n\t\tfor(String disp:ans)\n\t\t{\n\t\t\tSystem.out.println(disp);\n\t\t}\n\t}\n\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main\n{\n\n\tpublic static void main(String[] args)throws IOException\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint[] h=new int[3];\n\t\tint max=0;\n\t\tString[] ans=new String[N];\n\t\tfor(int i=0;i<N;i++)\n\t\t{\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t{\n\t\t\t\th[j]=(int)Math.pow(sc.nextInt(),2);\n\t\t\t}\n\t\t\tArrays.sort(h);\n\t\t\tans[i]=(h[0]+h[1]==h[2])?\"YES\":\"NO\";\n\t\t}\n\t\tfor(String disp:ans)\n\t\t{\n\t\t\tSystem.out.println(disp);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args)throws IOException\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint[] h=new int[3];\n\t\tint max=0;\n\t\tString[] ans=new String[N];\n\t\tfor(int i=0;i<N;i++)\n\t\t{\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t{\n\t\t\t\th[j]=(int)Math.pow(sc.nextInt(),2);\n\t\t\t}\n\t\t\tArrays.sort(h);\n\t\t\tans[i]=(h[0]+h[1]==h[2])?\"YES\":\"NO\";\n\t\t}\n\t\tfor(String disp:ans)\n\t\t{\n\t\t\tSystem.out.println(disp);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tint[] h=new int[3];\n\t\tint max=0;\n\t\tString[] ans=new String[N];\n\t\tfor(int i=0;i<N;i++)\n\t\t{\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t{\n\t\t\t\th[j]=(int)Math.pow(sc.nextInt(),2);\n\t\t\t}\n\t\t\tArrays.sort(h);\n\t\t\tans[i]=(h[0]+h[1]==h[2])?\"YES\":\"NO\";\n\t\t}\n\t\tfor(String disp:ans)\n\t\t{\n\t\t\tSystem.out.println(disp);\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[] h=new int[3];",
"h",
"new int[3]",
"3",
"int max=0;",
"max",
"0",
"String[] ans=new String[N];",
"ans",
"new String[N]",
"N",
"for(int i=0;i<N;i++)\n\t\t{\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t{\n\t\t\t\th[j]=(int)Math.pow(sc.nextInt(),2);\n\t\t\t}\n\t\t\tArrays.sort(h);\n\t\t\tans[i]=(h[0]+h[1]==h[2])?\"YES\":\"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++)\n\t\t\t{\n\t\t\t\th[j]=(int)Math.pow(sc.nextInt(),2);\n\t\t\t}\n\t\t\tArrays.sort(h);\n\t\t\tans[i]=(h[0]+h[1]==h[2])?\"YES\":\"NO\";\n\t\t}",
"{\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t{\n\t\t\t\th[j]=(int)Math.pow(sc.nextInt(),2);\n\t\t\t}\n\t\t\tArrays.sort(h);\n\t\t\tans[i]=(h[0]+h[1]==h[2])?\"YES\":\"NO\";\n\t\t}",
"for(int j=0;j<3;j++)\n\t\t\t{\n\t\t\t\th[j]=(int)Math.pow(sc.nextInt(),2);\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\th[j]=(int)Math.pow(sc.nextInt(),2);\n\t\t\t}",
"{\n\t\t\t\th[j]=(int)Math.pow(sc.nextInt(),2);\n\t\t\t}",
"h[j]=(int)Math.pow(sc.nextInt(),2)",
"h[j]",
"h",
"j",
"(int)Math.pow(sc.nextInt(),2)",
"Math.pow",
"Math",
"sc.nextInt()",
"sc.nextInt",
"sc",
"2",
"Arrays.sort(h)",
"Arrays.sort",
"Arrays",
"h",
"ans[i]=(h[0]+h[1]==h[2])?\"YES\":\"NO\"",
"ans[i]",
"ans",
"i",
"(h[0]+h[1]==h[2])?\"YES\":\"NO\"",
"(h[0]+h[1]==h[2])",
"h[0]+h[1]",
"h[0]",
"h",
"0",
"h[1]",
"h",
"1",
"h[2]",
"h",
"2",
"\"YES\"",
"\"NO\"",
"for(String disp:ans)\n\t\t{\n\t\t\tSystem.out.println(disp);\n\t\t}",
"String disp",
"ans",
"{\n\t\t\tSystem.out.println(disp);\n\t\t}",
"{\n\t\t\tSystem.out.println(disp);\n\t\t}",
"System.out.println(disp)",
"System.out.println",
"System.out",
"System",
"System.out",
"disp",
"String[] args",
"args"
] | import java.io.IOException;
import java.util.Arrays;
import java.util.Scanner;
class Main
{
public static void main(String[] args)throws IOException
{
Scanner sc=new Scanner(System.in);
int N=sc.nextInt();
int[] h=new int[3];
int max=0;
String[] ans=new String[N];
for(int i=0;i<N;i++)
{
for(int j=0;j<3;j++)
{
h[j]=(int)Math.pow(sc.nextInt(),2);
}
Arrays.sort(h);
ans[i]=(h[0]+h[1]==h[2])?"YES":"NO";
}
for(String disp:ans)
{
System.out.println(disp);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
4,
18,
13,
42,
2,
40,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
41,
13,
18,
13,
17,
4,
18,
18,
13,
13,
8,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
17,
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
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
21,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
27,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
26,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
26,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
26,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
26,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
26,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
81,
83
],
[
72,
84
],
[
72,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int ary[] = new int[3];\n\n int n = sc.nextInt();\n while (n-- > 0) {\n for (int i = 0; i < ary.length; i++)\n ary[i] = sc.nextInt();\n\n Arrays.sort(ary);\n\n int a = ary[0];\n int b = ary[1];\n int c = ary[2];\n\n System.out.println((a*a + b*b == c*c) ? \"YES\" : \"NO\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int ary[] = new int[3];\n\n int n = sc.nextInt();\n while (n-- > 0) {\n for (int i = 0; i < ary.length; i++)\n ary[i] = sc.nextInt();\n\n Arrays.sort(ary);\n\n int a = ary[0];\n int b = ary[1];\n int c = ary[2];\n\n System.out.println((a*a + b*b == c*c) ? \"YES\" : \"NO\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int ary[] = new int[3];\n\n int n = sc.nextInt();\n while (n-- > 0) {\n for (int i = 0; i < ary.length; i++)\n ary[i] = sc.nextInt();\n\n Arrays.sort(ary);\n\n int a = ary[0];\n int b = ary[1];\n int c = ary[2];\n\n System.out.println((a*a + b*b == c*c) ? \"YES\" : \"NO\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int ary[] = new int[3];\n\n int n = sc.nextInt();\n while (n-- > 0) {\n for (int i = 0; i < ary.length; i++)\n ary[i] = sc.nextInt();\n\n Arrays.sort(ary);\n\n int a = ary[0];\n int b = ary[1];\n int c = ary[2];\n\n System.out.println((a*a + b*b == c*c) ? \"YES\" : \"NO\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int ary[] = new int[3];",
"ary",
"new int[3]",
"3",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while (n-- > 0) {\n for (int i = 0; i < ary.length; i++)\n ary[i] = sc.nextInt();\n\n Arrays.sort(ary);\n\n int a = ary[0];\n int b = ary[1];\n int c = ary[2];\n\n System.out.println((a*a + b*b == c*c) ? \"YES\" : \"NO\");\n }",
"n-- > 0",
"n--",
"n",
"0",
"{\n for (int i = 0; i < ary.length; i++)\n ary[i] = sc.nextInt();\n\n Arrays.sort(ary);\n\n int a = ary[0];\n int b = ary[1];\n int c = ary[2];\n\n System.out.println((a*a + b*b == c*c) ? \"YES\" : \"NO\");\n }",
"for (int i = 0; i < ary.length; i++)\n ary[i] = sc.nextInt();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < ary.length",
"i",
"ary.length",
"ary",
"ary.length",
"i++",
"i++",
"i",
"ary[i] = sc.nextInt();",
"ary[i] = sc.nextInt()",
"ary[i]",
"ary",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Arrays.sort(ary)",
"Arrays.sort",
"Arrays",
"ary",
"int a = ary[0];",
"a",
"ary[0]",
"ary",
"0",
"int b = ary[1];",
"b",
"ary[1]",
"ary",
"1",
"int c = ary[2];",
"c",
"ary[2]",
"ary",
"2",
"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\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int ary[] = new int[3];\n\n int n = sc.nextInt();\n while (n-- > 0) {\n for (int i = 0; i < ary.length; i++)\n ary[i] = sc.nextInt();\n\n Arrays.sort(ary);\n\n int a = ary[0];\n int b = ary[1];\n int c = ary[2];\n\n System.out.println((a*a + b*b == c*c) ? \"YES\" : \"NO\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int ary[] = new int[3];\n\n int n = sc.nextInt();\n while (n-- > 0) {\n for (int i = 0; i < ary.length; i++)\n ary[i] = sc.nextInt();\n\n Arrays.sort(ary);\n\n int a = ary[0];\n int b = ary[1];\n int c = ary[2];\n\n System.out.println((a*a + b*b == c*c) ? \"YES\" : \"NO\");\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int ary[] = new int[3];
int n = sc.nextInt();
while (n-- > 0) {
for (int i = 0; i < ary.length; i++)
ary[i] = sc.nextInt();
Arrays.sort(ary);
int a = ary[0];
int b = ary[1];
int c = ary[2];
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,
41,
13,
38,
5,
13,
30,
30,
0,
13,
4,
18,
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,
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,
41,
13,
8,
2,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
17,
8,
2,
18,
13,
17,
18,
13,
17,
17,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
13,
30,
0,
13,
2,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
8,
2,
2,
18,
13,
13,
18,
13,
13,
13,
17,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
164,
11
],
[
164,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
24,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
50,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
58,
63
],
[
50,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
70,
72
],
[
66,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
66,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
50,
85
],
[
85,
86
],
[
85,
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
],
[
87,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
104,
113
],
[
50,
114
],
[
114,
115
],
[
114,
116
],
[
50,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
126,
127
],
[
117,
128
],
[
129,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
137,
141
],
[
141,
142
],
[
141,
143
],
[
50,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
144,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
155,
157
],
[
150,
158
],
[
149,
159
],
[
149,
160
],
[
12,
161
],
[
161,
162
],
[
0,
163
],
[
163,
164
],
[
163,
165
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n try {\n line = br.readLine();\n int n = Integer.parseInt(line.trim());\n for(int i=0; i<n; i++){\n line = br.readLine();\n String[] numbers = line.trim().split(\" \");\n int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};\n int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;\n int sum = 0;\n for(int j=0; j<3; j++){\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }\n System.out.println(sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\");\n }\n } catch (IOException e) {\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n try {\n line = br.readLine();\n int n = Integer.parseInt(line.trim());\n for(int i=0; i<n; i++){\n line = br.readLine();\n String[] numbers = line.trim().split(\" \");\n int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};\n int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;\n int sum = 0;\n for(int j=0; j<3; j++){\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }\n System.out.println(sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\");\n }\n } catch (IOException e) {\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n try {\n line = br.readLine();\n int n = Integer.parseInt(line.trim());\n for(int i=0; i<n; i++){\n line = br.readLine();\n String[] numbers = line.trim().split(\" \");\n int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};\n int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;\n int sum = 0;\n for(int j=0; j<3; j++){\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }\n System.out.println(sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\");\n }\n } catch (IOException e) {\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n try {\n line = br.readLine();\n int n = Integer.parseInt(line.trim());\n for(int i=0; i<n; i++){\n line = br.readLine();\n String[] numbers = line.trim().split(\" \");\n int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};\n int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;\n int sum = 0;\n for(int j=0; j<3; j++){\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }\n System.out.println(sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\");\n }\n } catch (IOException e) {\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"try {\n line = br.readLine();\n int n = Integer.parseInt(line.trim());\n for(int i=0; i<n; i++){\n line = br.readLine();\n String[] numbers = line.trim().split(\" \");\n int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};\n int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;\n int sum = 0;\n for(int j=0; j<3; j++){\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }\n System.out.println(sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\");\n }\n } catch (IOException e) {\n }",
"catch (IOException e) {\n }",
"IOException e",
"{\n }",
"{\n line = br.readLine();\n int n = Integer.parseInt(line.trim());\n for(int i=0; i<n; i++){\n line = br.readLine();\n String[] numbers = line.trim().split(\" \");\n int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};\n int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;\n int sum = 0;\n for(int j=0; j<3; j++){\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }\n System.out.println(sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\");\n }\n }",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"int n = Integer.parseInt(line.trim());",
"n",
"Integer.parseInt(line.trim())",
"Integer.parseInt",
"Integer",
"line.trim()",
"line.trim",
"line",
"for(int i=0; i<n; i++){\n line = br.readLine();\n String[] numbers = line.trim().split(\" \");\n int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};\n int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;\n int sum = 0;\n for(int j=0; j<3; j++){\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }\n System.out.println(sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\");\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n line = br.readLine();\n String[] numbers = line.trim().split(\" \");\n int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};\n int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;\n int sum = 0;\n for(int j=0; j<3; j++){\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }\n System.out.println(sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\");\n }",
"{\n line = br.readLine();\n String[] numbers = line.trim().split(\" \");\n int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};\n int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;\n int sum = 0;\n for(int j=0; j<3; j++){\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }\n System.out.println(sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\");\n }",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"String[] numbers = line.trim().split(\" \");",
"numbers",
"line.trim().split(\" \")",
"line.trim().split",
"line.trim()",
"line.trim",
"line",
"\" \"",
"int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};",
"sides",
"{Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])}",
"Integer.parseInt(numbers[0])",
"Integer.parseInt",
"Integer",
"numbers[0]",
"numbers",
"0",
"Integer.parseInt(numbers[1])",
"Integer.parseInt",
"Integer",
"numbers[1]",
"numbers",
"1",
"Integer.parseInt(numbers[2])",
"Integer.parseInt",
"Integer",
"numbers[2]",
"numbers",
"2",
"int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;",
"maxSide",
"sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2",
"sides[0]>sides[1] && sides[0]>sides[2]",
"sides[0]>sides[1]",
"sides[0]",
"sides",
"0",
"sides[1]",
"sides",
"1",
"sides[0]>sides[2]",
"sides[0]",
"sides",
"0",
"sides[2]",
"sides",
"2",
"0",
"sides[1]>sides[2]? 1: 2",
"sides[1]>sides[2]",
"sides[1]",
"sides",
"1",
"sides[2]",
"sides",
"2",
"1",
"2",
"int sum = 0;",
"sum",
"0",
"for(int j=0; j<3; j++){\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }",
"{\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }",
"if(j != maxSide){\n sum += sides[j] * sides[j];\n }",
"j != maxSide",
"j",
"maxSide",
"{\n sum += sides[j] * sides[j];\n }",
"sum += sides[j] * sides[j]",
"sum",
"sides[j] * sides[j]",
"sides[j]",
"sides",
"j",
"sides[j]",
"sides",
"j",
"System.out.println(sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\"",
"sides[maxSide] * sides[maxSide] == sum",
"sides[maxSide] * sides[maxSide]",
"sides[maxSide]",
"sides",
"maxSide",
"sides[maxSide]",
"sides",
"maxSide",
"sum",
"\"YES\"",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n try {\n line = br.readLine();\n int n = Integer.parseInt(line.trim());\n for(int i=0; i<n; i++){\n line = br.readLine();\n String[] numbers = line.trim().split(\" \");\n int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};\n int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;\n int sum = 0;\n for(int j=0; j<3; j++){\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }\n System.out.println(sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\");\n }\n } catch (IOException e) {\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line;\n try {\n line = br.readLine();\n int n = Integer.parseInt(line.trim());\n for(int i=0; i<n; i++){\n line = br.readLine();\n String[] numbers = line.trim().split(\" \");\n int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};\n int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;\n int sum = 0;\n for(int j=0; j<3; j++){\n if(j != maxSide){\n sum += sides[j] * sides[j];\n }\n }\n System.out.println(sides[maxSide] * sides[maxSide] == sum ? \"YES\": \"NO\");\n }\n } catch (IOException e) {\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line;
try {
line = br.readLine();
int n = Integer.parseInt(line.trim());
for(int i=0; i<n; i++){
line = br.readLine();
String[] numbers = line.trim().split(" ");
int[] sides = {Integer.parseInt(numbers[0]), Integer.parseInt(numbers[1]), Integer.parseInt(numbers[2])};
int maxSide = sides[0]>sides[1] && sides[0]>sides[2]? 0: sides[1]>sides[2]? 1: 2;
int sum = 0;
for(int j=0; j<3; j++){
if(j != maxSide){
sum += sides[j] * sides[j];
}
}
System.out.println(sides[maxSide] * sides[maxSide] == sum ? "YES": "NO");
}
} catch (IOException 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,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
0,
18,
13,
13,
18,
13,
13,
4,
18,
13,
13,
14,
2,
2,
18,
13,
17,
18,
13,
17,
18,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
92,
5
],
[
92,
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
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
29,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
29,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
74,
75
],
[
74,
76
],
[
65,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
65,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n for(int j=0;j<n;j++){\n\t int tri[] = new int[3];\n\t for(int i=0;i<3;i++){\n\t\t tri[i]=sc.nextInt();\n\t tri[i]*=tri[i];\n\t }\n\t Arrays.sort(tri);\nif(tri[0]+tri[1]==tri[2])\n\tSystem.out.println(\"YES\");\nelse System.out.println(\"NO\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n for(int j=0;j<n;j++){\n\t int tri[] = new int[3];\n\t for(int i=0;i<3;i++){\n\t\t tri[i]=sc.nextInt();\n\t tri[i]*=tri[i];\n\t }\n\t Arrays.sort(tri);\nif(tri[0]+tri[1]==tri[2])\n\tSystem.out.println(\"YES\");\nelse System.out.println(\"NO\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n for(int j=0;j<n;j++){\n\t int tri[] = new int[3];\n\t for(int i=0;i<3;i++){\n\t\t tri[i]=sc.nextInt();\n\t tri[i]*=tri[i];\n\t }\n\t Arrays.sort(tri);\nif(tri[0]+tri[1]==tri[2])\n\tSystem.out.println(\"YES\");\nelse System.out.println(\"NO\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n for(int j=0;j<n;j++){\n\t int tri[] = new int[3];\n\t for(int i=0;i<3;i++){\n\t\t tri[i]=sc.nextInt();\n\t tri[i]*=tri[i];\n\t }\n\t Arrays.sort(tri);\nif(tri[0]+tri[1]==tri[2])\n\tSystem.out.println(\"YES\");\nelse System.out.println(\"NO\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int j=0;j<n;j++){\n\t int tri[] = new int[3];\n\t for(int i=0;i<3;i++){\n\t\t tri[i]=sc.nextInt();\n\t tri[i]*=tri[i];\n\t }\n\t Arrays.sort(tri);\nif(tri[0]+tri[1]==tri[2])\n\tSystem.out.println(\"YES\");\nelse System.out.println(\"NO\");\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"{\n\t int tri[] = new int[3];\n\t for(int i=0;i<3;i++){\n\t\t tri[i]=sc.nextInt();\n\t tri[i]*=tri[i];\n\t }\n\t Arrays.sort(tri);\nif(tri[0]+tri[1]==tri[2])\n\tSystem.out.println(\"YES\");\nelse System.out.println(\"NO\");\n }",
"{\n\t int tri[] = new int[3];\n\t for(int i=0;i<3;i++){\n\t\t tri[i]=sc.nextInt();\n\t tri[i]*=tri[i];\n\t }\n\t Arrays.sort(tri);\nif(tri[0]+tri[1]==tri[2])\n\tSystem.out.println(\"YES\");\nelse System.out.println(\"NO\");\n }",
"int tri[] = new int[3];",
"tri",
"new int[3]",
"3",
"for(int i=0;i<3;i++){\n\t\t tri[i]=sc.nextInt();\n\t tri[i]*=tri[i];\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t tri[i]=sc.nextInt();\n\t tri[i]*=tri[i];\n\t }",
"{\n\t\t tri[i]=sc.nextInt();\n\t tri[i]*=tri[i];\n\t }",
"tri[i]=sc.nextInt()",
"tri[i]",
"tri",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"tri[i]*=tri[i]",
"tri[i]",
"tri",
"i",
"tri[i]",
"tri",
"i",
"Arrays.sort(tri)",
"Arrays.sort",
"Arrays",
"tri",
"if(tri[0]+tri[1]==tri[2])\n\tSystem.out.println(\"YES\");\nelse System.out.println(\"NO\");",
"tri[0]+tri[1]==tri[2]",
"tri[0]+tri[1]",
"tri[0]",
"tri",
"0",
"tri[1]",
"tri",
"1",
"tri[2]",
"tri",
"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 public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n for(int j=0;j<n;j++){\n\t int tri[] = new int[3];\n\t for(int i=0;i<3;i++){\n\t\t tri[i]=sc.nextInt();\n\t tri[i]*=tri[i];\n\t }\n\t Arrays.sort(tri);\nif(tri[0]+tri[1]==tri[2])\n\tSystem.out.println(\"YES\");\nelse System.out.println(\"NO\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n for(int j=0;j<n;j++){\n\t int tri[] = new int[3];\n\t for(int i=0;i<3;i++){\n\t\t tri[i]=sc.nextInt();\n\t tri[i]*=tri[i];\n\t }\n\t Arrays.sort(tri);\nif(tri[0]+tri[1]==tri[2])\n\tSystem.out.println(\"YES\");\nelse System.out.println(\"NO\");\n }\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();
for(int j=0;j<n;j++){
int tri[] = new int[3];
for(int i=0;i<3;i++){
tri[i]=sc.nextInt();
tri[i]*=tri[i];
}
Arrays.sort(tri);
if(tri[0]+tri[1]==tri[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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
4,
13,
13,
13,
13,
17,
17,
23,
13,
12,
13,
30,
41,
13,
20,
17,
0,
18,
13,
17,
13,
0,
18,
13,
17,
13,
0,
18,
13,
17,
13,
4,
18,
13,
13,
29,
2,
2,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
23,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
120,
8
],
[
120,
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
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
54,
57
],
[
54,
58
],
[
53,
59
],
[
53,
60
],
[
9,
61
],
[
61,
62
],
[
120,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
65,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
65,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
65,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
65,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
90,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
110,
112
],
[
63,
113
],
[
113,
114
],
[
63,
115
],
[
115,
116
],
[
63,
117
],
[
117,
118
],
[
0,
119
],
[
119,
120
],
[
119,
121
]
] | [
"import java.util.Arrays;\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\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\tSystem.out.println(isRightTriangle(a, b, c) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n\t\n\tpublic static boolean isRightTriangle(int a,int b,int c) {\n\t\tint[] x = new int[3];\n\t\tx[0] = a; x[1] = b; x[2] = c;\n\t\tArrays.sort(x);\n\t\treturn x[0] * x[0] + x[1] * x[1] == x[2] * x[2];\n\t}\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\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\tSystem.out.println(isRightTriangle(a, b, c) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n\t\n\tpublic static boolean isRightTriangle(int a,int b,int c) {\n\t\tint[] x = new int[3];\n\t\tx[0] = a; x[1] = b; x[2] = c;\n\t\tArrays.sort(x);\n\t\treturn x[0] * x[0] + x[1] * x[1] == x[2] * x[2];\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\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\tSystem.out.println(isRightTriangle(a, b, c) ? \"YES\" : \"NO\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(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\tSystem.out.println(isRightTriangle(a, b, c) ? \"YES\" : \"NO\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(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\tSystem.out.println(isRightTriangle(a, b, c) ? \"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 = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tSystem.out.println(isRightTriangle(a, b, c) ? \"YES\" : \"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\tSystem.out.println(isRightTriangle(a, b, c) ? \"YES\" : \"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",
"System.out.println(isRightTriangle(a, b, c) ? \"YES\" : \"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"isRightTriangle(a, b, c) ? \"YES\" : \"NO\"",
"isRightTriangle(a, b, c)",
"isRightTriangle",
"a",
"b",
"c",
"\"YES\"",
"\"NO\"",
"String[] args",
"args",
"public static boolean isRightTriangle(int a,int b,int c) {\n\t\tint[] x = new int[3];\n\t\tx[0] = a; x[1] = b; x[2] = c;\n\t\tArrays.sort(x);\n\t\treturn x[0] * x[0] + x[1] * x[1] == x[2] * x[2];\n\t}",
"isRightTriangle",
"{\n\t\tint[] x = new int[3];\n\t\tx[0] = a; x[1] = b; x[2] = c;\n\t\tArrays.sort(x);\n\t\treturn x[0] * x[0] + x[1] * x[1] == x[2] * x[2];\n\t}",
"int[] x = new int[3];",
"x",
"new int[3]",
"3",
"x[0] = a",
"x[0]",
"x",
"0",
"a",
"x[1] = b",
"x[1]",
"x",
"1",
"b",
"x[2] = c",
"x[2]",
"x",
"2",
"c",
"Arrays.sort(x)",
"Arrays.sort",
"Arrays",
"x",
"return x[0] * x[0] + x[1] * x[1] == x[2] * x[2];",
"x[0] * x[0] + x[1] * x[1] == x[2] * x[2]",
"x[0] * x[0] + x[1] * x[1]",
"x[0] * x[0]",
"x[0]",
"x",
"0",
"x[0]",
"x",
"0",
"x[1] * x[1]",
"x[1]",
"x",
"1",
"x[1]",
"x",
"1",
"x[2] * x[2]",
"x[2]",
"x",
"2",
"x[2]",
"x",
"2",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint 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\tSystem.out.println(isRightTriangle(a, b, c) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n\t\n\tpublic static boolean isRightTriangle(int a,int b,int c) {\n\t\tint[] x = new int[3];\n\t\tx[0] = a; x[1] = b; x[2] = c;\n\t\tArrays.sort(x);\n\t\treturn x[0] * x[0] + x[1] * x[1] == x[2] * x[2];\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\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\tSystem.out.println(isRightTriangle(a, b, c) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n\t\n\tpublic static boolean isRightTriangle(int a,int b,int c) {\n\t\tint[] x = new int[3];\n\t\tx[0] = a; x[1] = b; x[2] = c;\n\t\tArrays.sort(x);\n\t\treturn x[0] * x[0] + x[1] * x[1] == x[2] * x[2];\n\t}\n\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i=0;i<n;i++) {
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
System.out.println(isRightTriangle(a, b, c) ? "YES" : "NO");
}
}
public static boolean isRightTriangle(int a,int b,int c) {
int[] x = new int[3];
x[0] = a; x[1] = b; x[2] = c;
Arrays.sort(x);
return x[0] * x[0] + x[1] * x[1] == x[2] * x[2];
}
} |
[
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,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
13,
17,
41,
13,
4,
18,
13,
13,
17,
41,
13,
17,
14,
2,
13,
2,
13,
13,
0,
13,
17,
14,
2,
13,
2,
13,
13,
0,
13,
17,
14,
2,
13,
2,
13,
13,
0,
13,
17,
14,
13,
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
],
[
114,
5
],
[
114,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
29,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
47,
51
],
[
29,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
29,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
61,
65
],
[
29,
66
],
[
66,
67
],
[
66,
68
],
[
29,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
75,
76
],
[
75,
77
],
[
29,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
78,
84
],
[
84,
85
],
[
84,
86
],
[
29,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
87,
93
],
[
93,
94
],
[
93,
95
],
[
29,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
96,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint in0 = scan.nextInt();\n\n\t\tfor (int i = 0; i < in0; i++) {\n\t\t\tint x = scan.nextInt();\n\t\t\tint y = scan.nextInt();\n\t\t\tint z = scan.nextInt();\n\t\t\t\n\t\t\tint x2 = (int)Math.pow(x, 2);\n\t\t\tint y2 = (int)Math.pow(y, 2);\n\t\t\tint z2 = (int)Math.pow(z, 2);\n\t\t\t\n\t\t\tboolean sw = false;\n\t\t\t\n\t\t\tif(x2 == (y2 + z2))sw = true;\n\t\t\tif(y2 == (x2 + z2))sw = true;\n\t\t\tif(z2 == (y2 + x2))sw = true;\n\t\t\t\n\t\t\tif (sw) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else System.out.println(\"NO\");\n\t\t\t\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint in0 = scan.nextInt();\n\n\t\tfor (int i = 0; i < in0; i++) {\n\t\t\tint x = scan.nextInt();\n\t\t\tint y = scan.nextInt();\n\t\t\tint z = scan.nextInt();\n\t\t\t\n\t\t\tint x2 = (int)Math.pow(x, 2);\n\t\t\tint y2 = (int)Math.pow(y, 2);\n\t\t\tint z2 = (int)Math.pow(z, 2);\n\t\t\t\n\t\t\tboolean sw = false;\n\t\t\t\n\t\t\tif(x2 == (y2 + z2))sw = true;\n\t\t\tif(y2 == (x2 + z2))sw = true;\n\t\t\tif(z2 == (y2 + x2))sw = true;\n\t\t\t\n\t\t\tif (sw) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else System.out.println(\"NO\");\n\t\t\t\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint in0 = scan.nextInt();\n\n\t\tfor (int i = 0; i < in0; i++) {\n\t\t\tint x = scan.nextInt();\n\t\t\tint y = scan.nextInt();\n\t\t\tint z = scan.nextInt();\n\t\t\t\n\t\t\tint x2 = (int)Math.pow(x, 2);\n\t\t\tint y2 = (int)Math.pow(y, 2);\n\t\t\tint z2 = (int)Math.pow(z, 2);\n\t\t\t\n\t\t\tboolean sw = false;\n\t\t\t\n\t\t\tif(x2 == (y2 + z2))sw = true;\n\t\t\tif(y2 == (x2 + z2))sw = true;\n\t\t\tif(z2 == (y2 + x2))sw = true;\n\t\t\t\n\t\t\tif (sw) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else System.out.println(\"NO\");\n\t\t\t\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint in0 = scan.nextInt();\n\n\t\tfor (int i = 0; i < in0; i++) {\n\t\t\tint x = scan.nextInt();\n\t\t\tint y = scan.nextInt();\n\t\t\tint z = scan.nextInt();\n\t\t\t\n\t\t\tint x2 = (int)Math.pow(x, 2);\n\t\t\tint y2 = (int)Math.pow(y, 2);\n\t\t\tint z2 = (int)Math.pow(z, 2);\n\t\t\t\n\t\t\tboolean sw = false;\n\t\t\t\n\t\t\tif(x2 == (y2 + z2))sw = true;\n\t\t\tif(y2 == (x2 + z2))sw = true;\n\t\t\tif(z2 == (y2 + x2))sw = true;\n\t\t\t\n\t\t\tif (sw) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else System.out.println(\"NO\");\n\t\t\t\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int in0 = scan.nextInt();",
"in0",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 0; i < in0; i++) {\n\t\t\tint x = scan.nextInt();\n\t\t\tint y = scan.nextInt();\n\t\t\tint z = scan.nextInt();\n\t\t\t\n\t\t\tint x2 = (int)Math.pow(x, 2);\n\t\t\tint y2 = (int)Math.pow(y, 2);\n\t\t\tint z2 = (int)Math.pow(z, 2);\n\t\t\t\n\t\t\tboolean sw = false;\n\t\t\t\n\t\t\tif(x2 == (y2 + z2))sw = true;\n\t\t\tif(y2 == (x2 + z2))sw = true;\n\t\t\tif(z2 == (y2 + x2))sw = true;\n\t\t\t\n\t\t\tif (sw) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else System.out.println(\"NO\");\n\t\t\t\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < in0",
"i",
"in0",
"i++",
"i++",
"i",
"{\n\t\t\tint x = scan.nextInt();\n\t\t\tint y = scan.nextInt();\n\t\t\tint z = scan.nextInt();\n\t\t\t\n\t\t\tint x2 = (int)Math.pow(x, 2);\n\t\t\tint y2 = (int)Math.pow(y, 2);\n\t\t\tint z2 = (int)Math.pow(z, 2);\n\t\t\t\n\t\t\tboolean sw = false;\n\t\t\t\n\t\t\tif(x2 == (y2 + z2))sw = true;\n\t\t\tif(y2 == (x2 + z2))sw = true;\n\t\t\tif(z2 == (y2 + x2))sw = true;\n\t\t\t\n\t\t\tif (sw) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else System.out.println(\"NO\");\n\t\t\t\n\t\t}",
"{\n\t\t\tint x = scan.nextInt();\n\t\t\tint y = scan.nextInt();\n\t\t\tint z = scan.nextInt();\n\t\t\t\n\t\t\tint x2 = (int)Math.pow(x, 2);\n\t\t\tint y2 = (int)Math.pow(y, 2);\n\t\t\tint z2 = (int)Math.pow(z, 2);\n\t\t\t\n\t\t\tboolean sw = false;\n\t\t\t\n\t\t\tif(x2 == (y2 + z2))sw = true;\n\t\t\tif(y2 == (x2 + z2))sw = true;\n\t\t\tif(z2 == (y2 + x2))sw = true;\n\t\t\t\n\t\t\tif (sw) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else System.out.println(\"NO\");\n\t\t\t\n\t\t}",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int y = scan.nextInt();",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int z = scan.nextInt();",
"z",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int x2 = (int)Math.pow(x, 2);",
"x2",
"(int)Math.pow(x, 2)",
"Math.pow",
"Math",
"x",
"2",
"int y2 = (int)Math.pow(y, 2);",
"y2",
"(int)Math.pow(y, 2)",
"Math.pow",
"Math",
"y",
"2",
"int z2 = (int)Math.pow(z, 2);",
"z2",
"(int)Math.pow(z, 2)",
"Math.pow",
"Math",
"z",
"2",
"boolean sw = false;",
"sw",
"false",
"if(x2 == (y2 + z2))sw = true;",
"x2 == (y2 + z2)",
"x2",
"(y2 + z2)",
"y2",
"z2",
"sw = true",
"sw",
"true",
"if(y2 == (x2 + z2))sw = true;",
"y2 == (x2 + z2)",
"y2",
"(x2 + z2)",
"x2",
"z2",
"sw = true",
"sw",
"true",
"if(z2 == (y2 + x2))sw = true;",
"z2 == (y2 + x2)",
"z2",
"(y2 + x2)",
"y2",
"x2",
"sw = true",
"sw",
"true",
"if (sw) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else System.out.println(\"NO\");",
"sw",
"{\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\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint in0 = scan.nextInt();\n\n\t\tfor (int i = 0; i < in0; i++) {\n\t\t\tint x = scan.nextInt();\n\t\t\tint y = scan.nextInt();\n\t\t\tint z = scan.nextInt();\n\t\t\t\n\t\t\tint x2 = (int)Math.pow(x, 2);\n\t\t\tint y2 = (int)Math.pow(y, 2);\n\t\t\tint z2 = (int)Math.pow(z, 2);\n\t\t\t\n\t\t\tboolean sw = false;\n\t\t\t\n\t\t\tif(x2 == (y2 + z2))sw = true;\n\t\t\tif(y2 == (x2 + z2))sw = true;\n\t\t\tif(z2 == (y2 + x2))sw = true;\n\t\t\t\n\t\t\tif (sw) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else System.out.println(\"NO\");\n\t\t\t\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint in0 = scan.nextInt();\n\n\t\tfor (int i = 0; i < in0; i++) {\n\t\t\tint x = scan.nextInt();\n\t\t\tint y = scan.nextInt();\n\t\t\tint z = scan.nextInt();\n\t\t\t\n\t\t\tint x2 = (int)Math.pow(x, 2);\n\t\t\tint y2 = (int)Math.pow(y, 2);\n\t\t\tint z2 = (int)Math.pow(z, 2);\n\t\t\t\n\t\t\tboolean sw = false;\n\t\t\t\n\t\t\tif(x2 == (y2 + z2))sw = true;\n\t\t\tif(y2 == (x2 + z2))sw = true;\n\t\t\tif(z2 == (y2 + x2))sw = true;\n\t\t\t\n\t\t\tif (sw) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else System.out.println(\"NO\");\n\t\t\t\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner scan = new Scanner(System.in);
int in0 = scan.nextInt();
for (int i = 0; i < in0; i++) {
int x = scan.nextInt();
int y = scan.nextInt();
int z = scan.nextInt();
int x2 = (int)Math.pow(x, 2);
int y2 = (int)Math.pow(y, 2);
int z2 = (int)Math.pow(z, 2);
boolean sw = false;
if(x2 == (y2 + z2))sw = true;
if(y2 == (x2 + z2))sw = true;
if(z2 == (y2 + x2))sw = true;
if (sw) {
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
4,
13,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
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,
29,
17,
14,
2,
2,
13,
13,
13,
29,
17,
14,
2,
2,
13,
13,
13,
29,
17,
29,
17,
23,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
125,
5
],
[
125,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
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
],
[
52,
53
],
[
52,
54
],
[
52,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
51,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
6,
72
],
[
72,
73
],
[
125,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
76,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
76,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
89,
91
],
[
76,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
92,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
100,
106
],
[
106,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
108,
114
],
[
114,
115
],
[
108,
116
],
[
116,
117
],
[
74,
118
],
[
118,
119
],
[
74,
120
],
[
120,
121
],
[
74,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
] | [
"import java.util.Scanner;\n\n\npublic class Main{\n\t\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint dataset = sc.nextInt();\n\n\t\tint a, b, c;\n\t\tfor(int i = 0; i < dataset; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\n\t\t\tif(judgeTriangle(a, b, c)) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}\n\t\n\tstatic boolean judgeTriangle(int a, int b, int c) {\n\t\tint da = a * a;\n\t\tint db = b * b;\n\t\tint dc = c * c;\n\t\tif(da + db == dc) return true;\n\t\telse if(db + dc == da) return true;\n\t\telse if(dc + da == db) return true;\n\t\telse return false;\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\t\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint dataset = sc.nextInt();\n\n\t\tint a, b, c;\n\t\tfor(int i = 0; i < dataset; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\n\t\t\tif(judgeTriangle(a, b, c)) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}\n\t\n\tstatic boolean judgeTriangle(int a, int b, int c) {\n\t\tint da = a * a;\n\t\tint db = b * b;\n\t\tint dc = c * c;\n\t\tif(da + db == dc) return true;\n\t\telse if(db + dc == da) return true;\n\t\telse if(dc + da == db) return true;\n\t\telse return false;\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint dataset = sc.nextInt();\n\n\t\tint a, b, c;\n\t\tfor(int i = 0; i < dataset; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\n\t\t\tif(judgeTriangle(a, b, c)) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint dataset = sc.nextInt();\n\n\t\tint a, b, c;\n\t\tfor(int i = 0; i < dataset; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\n\t\t\tif(judgeTriangle(a, b, c)) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int dataset = sc.nextInt();",
"dataset",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a",
"a",
"b",
"b",
"c;",
"c",
"for(int i = 0; i < dataset; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\n\t\t\tif(judgeTriangle(a, b, c)) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < dataset",
"i",
"dataset",
"i++",
"i++",
"i",
"{\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\n\t\t\tif(judgeTriangle(a, b, c)) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"{\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\n\t\t\tif(judgeTriangle(a, b, c)) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"c = sc.nextInt()",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(judgeTriangle(a, b, c)) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");",
"judgeTriangle(a, b, c)",
"judgeTriangle",
"a",
"b",
"c",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"static boolean judgeTriangle(int a, int b, int c) {\n\t\tint da = a * a;\n\t\tint db = b * b;\n\t\tint dc = c * c;\n\t\tif(da + db == dc) return true;\n\t\telse if(db + dc == da) return true;\n\t\telse if(dc + da == db) return true;\n\t\telse return false;\n\t}",
"judgeTriangle",
"{\n\t\tint da = a * a;\n\t\tint db = b * b;\n\t\tint dc = c * c;\n\t\tif(da + db == dc) return true;\n\t\telse if(db + dc == da) return true;\n\t\telse if(dc + da == db) return true;\n\t\telse return false;\n\t}",
"int da = a * a;",
"da",
"a * a",
"a",
"a",
"int db = b * b;",
"db",
"b * b",
"b",
"b",
"int dc = c * c;",
"dc",
"c * c",
"c",
"c",
"if(da + db == dc) return true;\n\t\telse if(db + dc == da) return true;\n\t\telse if(dc + da == db) return true;\n\t\telse return false;",
"da + db == dc",
"da + db",
"da",
"db",
"dc",
"return true;",
"true",
"if(db + dc == da) return true;\n\t\telse if(dc + da == db) return true;\n\t\telse return false;",
"db + dc == da",
"db + dc",
"db",
"dc",
"da",
"return true;",
"true",
"if(dc + da == db) return true;\n\t\telse return false;",
"dc + da == db",
"dc + da",
"dc",
"da",
"db",
"return true;",
"true",
"return false;",
"false",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public class Main{\n\t\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint dataset = sc.nextInt();\n\n\t\tint a, b, c;\n\t\tfor(int i = 0; i < dataset; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\n\t\t\tif(judgeTriangle(a, b, c)) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}\n\t\n\tstatic boolean judgeTriangle(int a, int b, int c) {\n\t\tint da = a * a;\n\t\tint db = b * b;\n\t\tint dc = c * c;\n\t\tif(da + db == dc) return true;\n\t\telse if(db + dc == da) return true;\n\t\telse if(dc + da == db) return true;\n\t\telse return false;\n\t}\n}",
"public class Main{\n\t\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint dataset = sc.nextInt();\n\n\t\tint a, b, c;\n\t\tfor(int i = 0; i < dataset; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\n\t\t\tif(judgeTriangle(a, b, c)) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}\n\t\n\tstatic boolean judgeTriangle(int a, int b, int c) {\n\t\tint da = a * a;\n\t\tint db = b * b;\n\t\tint dc = c * c;\n\t\tif(da + db == dc) return true;\n\t\telse if(db + dc == da) return true;\n\t\telse if(dc + da == db) return true;\n\t\telse return false;\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int dataset = sc.nextInt();
int a, b, c;
for(int i = 0; i < dataset; i++) {
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
if(judgeTriangle(a, b, c)) System.out.println("YES");
else System.out.println("NO");
}
sc.close();
}
static boolean judgeTriangle(int a, int b, int c) {
int da = a * a;
int db = b * b;
int dc = c * c;
if(da + db == dc) return true;
else if(db + dc == da) return true;
else if(dc + da == db) return true;
else return false;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
4,
18,
13,
13,
4,
18,
18,
13,
13,
8,
4,
13,
13,
17,
17,
23,
13,
12,
13,
30,
29,
2,
2,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
86,
8
],
[
86,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
48,
53
],
[
9,
54
],
[
54,
55
],
[
86,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
73,
75
],
[
60,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
56,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = Integer.valueOf(sc.next());\n\n for (int i = 0; i < count; i++) {\n int[] nums = new int[]{\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next())\n };\n Arrays.sort(nums);\n System.out.println(isRightTriangle(nums) ? \"YES\" : \"NO\");\n }\n }\n\n public static boolean isRightTriangle(int[] nums) {\n return (nums[0] * nums[0]) + (nums[1] * nums[1]) == (nums[2] * nums[2]);\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = Integer.valueOf(sc.next());\n\n for (int i = 0; i < count; i++) {\n int[] nums = new int[]{\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next())\n };\n Arrays.sort(nums);\n System.out.println(isRightTriangle(nums) ? \"YES\" : \"NO\");\n }\n }\n\n public static boolean isRightTriangle(int[] nums) {\n return (nums[0] * nums[0]) + (nums[1] * nums[1]) == (nums[2] * nums[2]);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = Integer.valueOf(sc.next());\n\n for (int i = 0; i < count; i++) {\n int[] nums = new int[]{\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next())\n };\n Arrays.sort(nums);\n System.out.println(isRightTriangle(nums) ? \"YES\" : \"NO\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int count = Integer.valueOf(sc.next());\n\n for (int i = 0; i < count; i++) {\n int[] nums = new int[]{\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next())\n };\n Arrays.sort(nums);\n System.out.println(isRightTriangle(nums) ? \"YES\" : \"NO\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int count = Integer.valueOf(sc.next());",
"count",
"Integer.valueOf(sc.next())",
"Integer.valueOf",
"Integer",
"sc.next()",
"sc.next",
"sc",
"for (int i = 0; i < count; i++) {\n int[] nums = new int[]{\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next())\n };\n Arrays.sort(nums);\n System.out.println(isRightTriangle(nums) ? \"YES\" : \"NO\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n int[] nums = new int[]{\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next())\n };\n Arrays.sort(nums);\n System.out.println(isRightTriangle(nums) ? \"YES\" : \"NO\");\n }",
"{\n int[] nums = new int[]{\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next())\n };\n Arrays.sort(nums);\n System.out.println(isRightTriangle(nums) ? \"YES\" : \"NO\");\n }",
"int[] nums = new int[]{\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next())\n };",
"nums",
"new int[]{\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next())\n }",
"Arrays.sort(nums)",
"Arrays.sort",
"Arrays",
"nums",
"System.out.println(isRightTriangle(nums) ? \"YES\" : \"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"isRightTriangle(nums) ? \"YES\" : \"NO\"",
"isRightTriangle(nums)",
"isRightTriangle",
"nums",
"\"YES\"",
"\"NO\"",
"String[] args",
"args",
"public static boolean isRightTriangle(int[] nums) {\n return (nums[0] * nums[0]) + (nums[1] * nums[1]) == (nums[2] * nums[2]);\n }",
"isRightTriangle",
"{\n return (nums[0] * nums[0]) + (nums[1] * nums[1]) == (nums[2] * nums[2]);\n }",
"return (nums[0] * nums[0]) + (nums[1] * nums[1]) == (nums[2] * nums[2]);",
"(nums[0] * nums[0]) + (nums[1] * nums[1]) == (nums[2] * nums[2])",
"(nums[0] * nums[0]) + (nums[1] * nums[1])",
"(nums[0] * nums[0])",
"nums[0]",
"nums",
"0",
"nums[0]",
"nums",
"0",
"(nums[1] * nums[1])",
"nums[1]",
"nums",
"1",
"nums[1]",
"nums",
"1",
"(nums[2] * nums[2])",
"nums[2]",
"nums",
"2",
"nums[2]",
"nums",
"2",
"int[] nums",
"nums",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = Integer.valueOf(sc.next());\n\n for (int i = 0; i < count; i++) {\n int[] nums = new int[]{\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next())\n };\n Arrays.sort(nums);\n System.out.println(isRightTriangle(nums) ? \"YES\" : \"NO\");\n }\n }\n\n public static boolean isRightTriangle(int[] nums) {\n return (nums[0] * nums[0]) + (nums[1] * nums[1]) == (nums[2] * nums[2]);\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int count = Integer.valueOf(sc.next());\n\n for (int i = 0; i < count; i++) {\n int[] nums = new int[]{\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next()),\n Integer.valueOf(sc.next())\n };\n Arrays.sort(nums);\n System.out.println(isRightTriangle(nums) ? \"YES\" : \"NO\");\n }\n }\n\n public static boolean isRightTriangle(int[] nums) {\n return (nums[0] * nums[0]) + (nums[1] * nums[1]) == (nums[2] * nums[2]);\n }\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int count = Integer.valueOf(sc.next());
for (int i = 0; i < count; i++) {
int[] nums = new int[]{
Integer.valueOf(sc.next()),
Integer.valueOf(sc.next()),
Integer.valueOf(sc.next())
};
Arrays.sort(nums);
System.out.println(isRightTriangle(nums) ? "YES" : "NO");
}
}
public static boolean isRightTriangle(int[] nums) {
return (nums[0] * nums[0]) + (nums[1] * nums[1]) == (nums[2] * nums[2]);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
0,
18,
18,
13,
13,
17,
13,
0,
18,
18,
13,
13,
17,
13,
0,
18,
18,
13,
13,
17,
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,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
2,
18,
18,
13,
13,
17,
18,
18,
13,
13,
17,
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,
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,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
34,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
34,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
34,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
87,
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
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
111,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
86,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
123,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
122,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
135,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
134,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
146,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
86,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
158,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
157,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
171,
175
],
[
170,
176
],
[
176,
177
],
[
177,
178
],
[
177,
179
],
[
176,
180
],
[
169,
181
],
[
181,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
182,
186
],
[
181,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
84,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
193,
198
],
[
84,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
202,
203
],
[
202,
204
],
[
200,
205
],
[
8,
206
],
[
206,
207
],
[
207,
208
],
[
6,
209
],
[
209,
210
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n \n\n int times = scan.nextInt();\n\n int[][] delta = new int[times][3];\n\n for (int i = 0; i < times; i++) {\n\n int edge1 = scan.nextInt();\n int edge2 = scan.nextInt();\n int edge3 = scan.nextInt();\n\n delta[i][0] = edge1;\n delta[i][1] = edge2;\n delta[i][2] = edge3;\n\n }\n\n for (int i = 0; i < times; i++) {\n if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {\n\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n\n scan.close();\n\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n \n\n int times = scan.nextInt();\n\n int[][] delta = new int[times][3];\n\n for (int i = 0; i < times; i++) {\n\n int edge1 = scan.nextInt();\n int edge2 = scan.nextInt();\n int edge3 = scan.nextInt();\n\n delta[i][0] = edge1;\n delta[i][1] = edge2;\n delta[i][2] = edge3;\n\n }\n\n for (int i = 0; i < times; i++) {\n if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {\n\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n\n scan.close();\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n\n \n\n int times = scan.nextInt();\n\n int[][] delta = new int[times][3];\n\n for (int i = 0; i < times; i++) {\n\n int edge1 = scan.nextInt();\n int edge2 = scan.nextInt();\n int edge3 = scan.nextInt();\n\n delta[i][0] = edge1;\n delta[i][1] = edge2;\n delta[i][2] = edge3;\n\n }\n\n for (int i = 0; i < times; i++) {\n if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {\n\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n\n scan.close();\n\n }",
"main",
"{\n\n Scanner scan = new Scanner(System.in);\n\n \n\n int times = scan.nextInt();\n\n int[][] delta = new int[times][3];\n\n for (int i = 0; i < times; i++) {\n\n int edge1 = scan.nextInt();\n int edge2 = scan.nextInt();\n int edge3 = scan.nextInt();\n\n delta[i][0] = edge1;\n delta[i][1] = edge2;\n delta[i][2] = edge3;\n\n }\n\n for (int i = 0; i < times; i++) {\n if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {\n\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }\n\n scan.close();\n\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int times = scan.nextInt();",
"times",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][] delta = new int[times][3];",
"delta",
"new int[times][3]",
"times",
"3",
"for (int i = 0; i < times; i++) {\n\n int edge1 = scan.nextInt();\n int edge2 = scan.nextInt();\n int edge3 = scan.nextInt();\n\n delta[i][0] = edge1;\n delta[i][1] = edge2;\n delta[i][2] = edge3;\n\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < times",
"i",
"times",
"i++",
"i++",
"i",
"{\n\n int edge1 = scan.nextInt();\n int edge2 = scan.nextInt();\n int edge3 = scan.nextInt();\n\n delta[i][0] = edge1;\n delta[i][1] = edge2;\n delta[i][2] = edge3;\n\n }",
"{\n\n int edge1 = scan.nextInt();\n int edge2 = scan.nextInt();\n int edge3 = scan.nextInt();\n\n delta[i][0] = edge1;\n delta[i][1] = edge2;\n delta[i][2] = edge3;\n\n }",
"int edge1 = scan.nextInt();",
"edge1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int edge2 = scan.nextInt();",
"edge2",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int edge3 = scan.nextInt();",
"edge3",
"scan.nextInt()",
"scan.nextInt",
"scan",
"delta[i][0] = edge1",
"delta[i][0]",
"delta[i]",
"delta",
"i",
"0",
"edge1",
"delta[i][1] = edge2",
"delta[i][1]",
"delta[i]",
"delta",
"i",
"1",
"edge2",
"delta[i][2] = edge3",
"delta[i][2]",
"delta[i]",
"delta",
"i",
"2",
"edge3",
"for (int i = 0; i < times; i++) {\n if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {\n\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < times",
"i",
"times",
"i++",
"i++",
"i",
"{\n if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {\n\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"{\n if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {\n\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n }",
"if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {\n\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }",
"(delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])",
"(delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])\n || (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])",
"(delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])",
"(delta[i][0]) * (delta[i][0])",
"(delta[i][0])",
"delta[i]",
"delta",
"i",
"0",
"(delta[i][0])",
"delta[i]",
"delta",
"i",
"0",
"(delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])",
"(delta[i][1]) * (delta[i][1])",
"(delta[i][1])",
"delta[i]",
"delta",
"i",
"1",
"(delta[i][1])",
"delta[i]",
"delta",
"i",
"1",
"(delta[i][2]) * (delta[i][2])",
"(delta[i][2])",
"delta[i]",
"delta",
"i",
"2",
"(delta[i][2])",
"delta[i]",
"delta",
"i",
"2",
"(delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])",
"(delta[i][1]) * (delta[i][1])",
"(delta[i][1])",
"delta[i]",
"delta",
"i",
"1",
"(delta[i][1])",
"delta[i]",
"delta",
"i",
"1",
"(delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])",
"(delta[i][0]) * (delta[i][0])",
"(delta[i][0])",
"delta[i]",
"delta",
"i",
"0",
"(delta[i][0])",
"delta[i]",
"delta",
"i",
"0",
"(delta[i][2]) * (delta[i][2])",
"(delta[i][2])",
"delta[i]",
"delta",
"i",
"2",
"(delta[i][2])",
"delta[i]",
"delta",
"i",
"2",
"(delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])",
"(delta[i][2]) * (delta[i][2])",
"(delta[i][2])",
"delta[i]",
"delta",
"i",
"2",
"(delta[i][2])",
"delta[i]",
"delta",
"i",
"2",
"(delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])",
"(delta[i][0]) * (delta[i][0])",
"(delta[i][0])",
"delta[i]",
"delta",
"i",
"0",
"(delta[i][0])",
"delta[i]",
"delta",
"i",
"0",
"(delta[i][1]) * (delta[i][1])",
"(delta[i][1])",
"delta[i]",
"delta",
"i",
"1",
"(delta[i][1])",
"delta[i]",
"delta",
"i",
"1",
"{\n\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\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int times = scan.nextInt();
int[][] delta = new int[times][3];
for (int i = 0; i < times; i++) {
int edge1 = scan.nextInt();
int edge2 = scan.nextInt();
int edge3 = scan.nextInt();
delta[i][0] = edge1;
delta[i][1] = edge2;
delta[i][2] = edge3;
}
for (int i = 0; i < times; i++) {
if ((delta[i][0]) * (delta[i][0]) == (delta[i][1]) * (delta[i][1]) + (delta[i][2]) * (delta[i][2])
|| (delta[i][1]) * (delta[i][1]) == (delta[i][0]) * (delta[i][0]) + (delta[i][2]) * (delta[i][2])
|| (delta[i][2]) * (delta[i][2]) == (delta[i][0]) * (delta[i][0]) + (delta[i][1]) * (delta[i][1])) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
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,
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
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
29,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
52,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
51,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
50,
86
],
[
50,
87
],
[
6,
88
],
[
88,
89
]
] | [
"import java.util.Scanner;\n\nclass Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++)\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\tSystem.out.println((a * a == b * b + c * c || b * b == a * a + c * c || c * c == a * a + b * b) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++)\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\tSystem.out.println((a * a == b * b + c * c || b * b == a * a + c * c || c * c == a * a + b * b) ? \"YES\" : \"NO\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++)\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\tSystem.out.println((a * a == b * b + c * c || b * b == a * a + c * c || c * c == a * a + b * b) ? \"YES\" : \"NO\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++)\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\tSystem.out.println((a * a == b * b + c * c || b * b == a * a + c * c || c * c == a * a + b * b) ? \"YES\" : \"NO\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++)\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\tSystem.out.println((a * a == b * b + c * c || b * b == a * a + c * c || c * c == a * a + b * b) ? \"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 = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tSystem.out.println((a * a == b * b + c * c || b * b == a * a + c * c || c * c == a * a + b * b) ? \"YES\" : \"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\tSystem.out.println((a * a == b * b + c * c || b * b == a * a + c * c || c * c == a * a + b * b) ? \"YES\" : \"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",
"System.out.println((a * a == b * b + c * c || b * b == a * a + c * c || c * c == a * a + b * b) ? \"YES\" : \"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"(a * a == b * b + c * c || b * b == a * a + c * c || c * c == a * a + b * b) ? \"YES\" : \"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",
"\"YES\"",
"\"NO\"",
"String args[]",
"args"
] | import java.util.Scanner;
class Main
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 0; i < n; i++)
{
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
System.out.println((a * a == b * b + c * c || b * b == a * a + c * c || c * c == a * a + b * b) ? "YES" : "NO");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
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,
9,
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,
9,
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,
9,
4,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
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
],
[
66,
73
],
[
45,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
83,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
95,
102
],
[
74,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
103,
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
],
[
112,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
124,
131
],
[
29,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
6,
138
],
[
138,
139
]
] | [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for(int i=0; i<n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a > b && a > c) {\n if(a*a == b*b + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(b > a && b > c) {\n if(b*b == a*a + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(c > a && c > b) {\n if(c*c == a*a + b*b) {\n System.out.println(\"YES\");\n continue;\n }\n }\n System.out.println(\"NO\");\n } \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for(int i=0; i<n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a > b && a > c) {\n if(a*a == b*b + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(b > a && b > c) {\n if(b*b == a*a + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(c > a && c > b) {\n if(c*c == a*a + b*b) {\n System.out.println(\"YES\");\n continue;\n }\n }\n System.out.println(\"NO\");\n } \n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for(int i=0; i<n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a > b && a > c) {\n if(a*a == b*b + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(b > a && b > c) {\n if(b*b == a*a + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(c > a && c > b) {\n if(c*c == a*a + b*b) {\n System.out.println(\"YES\");\n continue;\n }\n }\n System.out.println(\"NO\");\n } \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for(int i=0; i<n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a > b && a > c) {\n if(a*a == b*b + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(b > a && b > c) {\n if(b*b == a*a + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(c > a && c > b) {\n if(c*c == a*a + b*b) {\n System.out.println(\"YES\");\n continue;\n }\n }\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",
"for(int i=0; i<n; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a > b && a > c) {\n if(a*a == b*b + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(b > a && b > c) {\n if(b*b == a*a + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(c > a && c > b) {\n if(c*c == a*a + b*b) {\n System.out.println(\"YES\");\n continue;\n }\n }\n System.out.println(\"NO\");\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a > b && a > c) {\n if(a*a == b*b + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(b > a && b > c) {\n if(b*b == a*a + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(c > a && c > b) {\n if(c*c == a*a + b*b) {\n System.out.println(\"YES\");\n continue;\n }\n }\n System.out.println(\"NO\");\n }",
"{\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a > b && a > c) {\n if(a*a == b*b + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(b > a && b > c) {\n if(b*b == a*a + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(c > a && c > b) {\n if(c*c == a*a + b*b) {\n System.out.println(\"YES\");\n continue;\n }\n }\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 > b && a > c) {\n if(a*a == b*b + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(b > a && b > c) {\n if(b*b == a*a + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(c > a && c > b) {\n if(c*c == a*a + b*b) {\n System.out.println(\"YES\");\n continue;\n }\n }",
"a > b && a > c",
"a > b",
"a",
"b",
"a > c",
"a",
"c",
"{\n if(a*a == b*b + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }",
"if(a*a == b*b + c*c) {\n System.out.println(\"YES\");\n continue;\n }",
"a*a == b*b + c*c",
"a*a",
"a",
"a",
"b*b + c*c",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"{\n System.out.println(\"YES\");\n continue;\n }",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"continue;",
"if(b > a && b > c) {\n if(b*b == a*a + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }\n else if(c > a && c > b) {\n if(c*c == a*a + b*b) {\n System.out.println(\"YES\");\n continue;\n }\n }",
"b > a && b > c",
"b > a",
"b",
"a",
"b > c",
"b",
"c",
"{\n if(b*b == a*a + c*c) {\n System.out.println(\"YES\");\n continue;\n }\n }",
"if(b*b == a*a + c*c) {\n System.out.println(\"YES\");\n continue;\n }",
"b*b == a*a + c*c",
"b*b",
"b",
"b",
"a*a + c*c",
"a*a",
"a",
"a",
"c*c",
"c",
"c",
"{\n System.out.println(\"YES\");\n continue;\n }",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"continue;",
"if(c > a && c > b) {\n if(c*c == a*a + b*b) {\n System.out.println(\"YES\");\n continue;\n }\n }",
"c > a && c > b",
"c > a",
"c",
"a",
"c > b",
"c",
"b",
"{\n if(c*c == a*a + b*b) {\n System.out.println(\"YES\");\n continue;\n }\n }",
"if(c*c == a*a + b*b) {\n System.out.println(\"YES\");\n continue;\n }",
"c*c == a*a + b*b",
"c*c",
"c",
"c",
"a*a + b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"{\n System.out.println(\"YES\");\n continue;\n }",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"continue;",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i=0; i<n; i++) {
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if (a > b && a > c) {
if(a*a == b*b + c*c) {
System.out.println("YES");
continue;
}
}
else if(b > a && b > c) {
if(b*b == a*a + c*c) {
System.out.println("YES");
continue;
}
}
else if(c > a && c > b) {
if(c*c == a*a + b*b) {
System.out.println("YES");
continue;
}
}
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,
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,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
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
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
55,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
55,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
53,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
53,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint num=sc.nextInt();\n\t\tint i,a,b,c;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\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{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint num=sc.nextInt();\n\t\tint i,a,b,c;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\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{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint num=sc.nextInt();\n\t\tint i,a,b,c;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\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{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint num=sc.nextInt();\n\t\tint i,a,b,c;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\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{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\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 num=sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i",
"i",
"a",
"a",
"b",
"b",
"c;",
"c",
"for(i=0;i<num;i++){\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\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{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\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{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\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\t\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{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\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*a == ((b*b) + (c*c)) || b*b == ((a*a) + (c*c)) || c*c == ((a*a) + (b*b)))\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"a*a == ((b*b) + (c*c)) || b*b == ((a*a) + (c*c)) || c*c == ((a*a) + (b*b))",
"a*a == ((b*b) + (c*c)) || b*b == ((a*a) + (c*c)) || c*c == ((a*a) + (b*b))",
"a*a == ((b*b) + (c*c))",
"a*a",
"a",
"a",
"((b*b) + (c*c))",
"(b*b)",
"b",
"b",
"(c*c)",
"c",
"c",
"b*b == ((a*a) + (c*c))",
"b*b",
"b",
"b",
"((a*a) + (c*c))",
"(a*a)",
"a",
"a",
"(c*c)",
"c",
"c",
"c*c == ((a*a) + (b*b))",
"c*c",
"c",
"c",
"((a*a) + (b*b))",
"(a*a)",
"a",
"a",
"(b*b)",
"b",
"b",
"{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint num=sc.nextInt();\n\t\tint i,a,b,c;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\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{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint num=sc.nextInt();\n\t\tint i,a,b,c;\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\t\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{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int num=sc.nextInt();
int i,a,b,c;
for(i=0;i<num;i++){
a = sc.nextInt();
b = sc.nextInt();
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,
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,
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,
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,
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
],
[
160,
20
],
[
160,
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
],
[
76,
77
],
[
75,
78
],
[
58,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
80,
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
],
[
79,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
104,
107
],
[
79,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
32,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
32,
120
],
[
120,
121
],
[
120,
122
],
[
120,
123
],
[
124,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
21,
131
],
[
131,
132
],
[
160,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
139,
141
],
[
139,
142
],
[
143,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
144,
147
],
[
147,
148
],
[
148,
149
],
[
147,
150
],
[
135,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
152,
155
],
[
133,
157
],
[
157,
158
],
[
0,
159
],
[
159,
160
],
[
159,
161
]
] | [
"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\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\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\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}\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",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\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\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}\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\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}\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\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}\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\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}\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\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}\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\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}",
"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\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}",
"{\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\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}",
"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",
"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\"",
"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",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\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\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}\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}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\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\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}\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"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.List;
public 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);
Arrays.sort(side);
if (side[2] * side[2] == side[1] * side[1] + side[0]
* side[0]) {
rightAngleList.add("YES");
} else {
rightAngleList.add("NO");
}
}
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,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
20,
17,
0,
13,
4,
18,
13,
42,
2,
40,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
18,
13,
13,
2,
13,
13,
4,
18,
13,
13,
14,
2,
2,
18,
13,
17,
18,
13,
17,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
92,
8
],
[
92,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
19,
21
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
28,
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
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
33,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
33,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
72,
74
],
[
63,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
63,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
9,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
] | [
"import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint n,t;\n\t\tint[] data = new int[3];\n\n\t\tn = cin.nextInt();\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t{\n\t\t\t\tt = cin.nextInt();\n\t\t\t\tdata[i] = t*t;\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\t\n\t\t\tif(data[0]+data[1] == data[2])\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\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",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint n,t;\n\t\tint[] data = new int[3];\n\n\t\tn = cin.nextInt();\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t{\n\t\t\t\tt = cin.nextInt();\n\t\t\t\tdata[i] = t*t;\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\t\n\t\t\tif(data[0]+data[1] == data[2])\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\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{\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint n,t;\n\t\tint[] data = new int[3];\n\n\t\tn = cin.nextInt();\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t{\n\t\t\t\tt = cin.nextInt();\n\t\t\t\tdata[i] = t*t;\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\t\n\t\t\tif(data[0]+data[1] == data[2])\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint n,t;\n\t\tint[] data = new int[3];\n\n\t\tn = cin.nextInt();\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t{\n\t\t\t\tt = cin.nextInt();\n\t\t\t\tdata[i] = t*t;\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\t\n\t\t\tif(data[0]+data[1] == data[2])\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"Scanner cin = new Scanner(System.in);",
"cin",
"new Scanner(System.in)",
"int n",
"n",
"t;",
"t",
"int[] data = new int[3];",
"data",
"new int[3]",
"3",
"n = cin.nextInt()",
"n",
"cin.nextInt()",
"cin.nextInt",
"cin",
"while(n-- > 0)\n\t\t{\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t{\n\t\t\t\tt = cin.nextInt();\n\t\t\t\tdata[i] = t*t;\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\t\n\t\t\tif(data[0]+data[1] == data[2])\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"n-- > 0",
"n--",
"n",
"0",
"{\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t{\n\t\t\t\tt = cin.nextInt();\n\t\t\t\tdata[i] = t*t;\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\t\n\t\t\tif(data[0]+data[1] == data[2])\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"for(int i=0; i<3; i++)\n\t\t\t{\n\t\t\t\tt = cin.nextInt();\n\t\t\t\tdata[i] = 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\tt = cin.nextInt();\n\t\t\t\tdata[i] = t*t;\n\t\t\t}",
"{\n\t\t\t\tt = cin.nextInt();\n\t\t\t\tdata[i] = t*t;\n\t\t\t}",
"t = cin.nextInt()",
"t",
"cin.nextInt()",
"cin.nextInt",
"cin",
"data[i] = t*t",
"data[i]",
"data",
"i",
"t*t",
"t",
"t",
"Arrays.sort(data)",
"Arrays.sort",
"Arrays",
"data",
"if(data[0]+data[1] == data[2])\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"data[0]+data[1] == data[2]",
"data[0]+data[1]",
"data[0]",
"data",
"0",
"data[1]",
"data",
"1",
"data[2]",
"data",
"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)\n\t{\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint n,t;\n\t\tint[] data = new int[3];\n\n\t\tn = cin.nextInt();\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t{\n\t\t\t\tt = cin.nextInt();\n\t\t\t\tdata[i] = t*t;\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\t\n\t\t\tif(data[0]+data[1] == data[2])\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\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)\n\t{\n\t\tScanner cin = new Scanner(System.in);\n\t\t\n\t\tint n,t;\n\t\tint[] data = new int[3];\n\n\t\tn = cin.nextInt();\n\t\twhile(n-- > 0)\n\t\t{\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t{\n\t\t\t\tt = cin.nextInt();\n\t\t\t\tdata[i] = t*t;\n\t\t\t}\n\t\t\tArrays.sort(data);\n\t\t\t\n\t\t\tif(data[0]+data[1] == data[2])\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\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,t;
int[] data = new int[3];
n = cin.nextInt();
while(n-- > 0)
{
for(int i=0; i<3; i++)
{
t = cin.nextInt();
data[i] = t*t;
}
Arrays.sort(data);
if(data[0]+data[1] == data[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,
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,
4,
13,
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,
12,
13,
30,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
18,
18,
13,
13,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
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,
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
],
[
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
],
[
11,
60
],
[
60,
61
],
[
60,
62
],
[
11,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
77,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
89,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
101,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
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
],
[
9,
126
],
[
126,
127
],
[
7,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
142,
144
],
[
135,
145
],
[
145,
146
],
[
146,
147
],
[
135,
148
],
[
149,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
150,
158
],
[
158,
159
],
[
159,
160
],
[
150,
161
],
[
162,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
149,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
149,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
176,
181
],
[
181,
182
],
[
181,
183
],
[
176,
184
],
[
184,
185
],
[
185,
186
],
[
176,
187
],
[
188,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
189,
195
],
[
195,
196
],
[
195,
197
],
[
128,
198
],
[
198,
199
]
] | [
"\nimport java.util.Arrays;\nimport java.util.Scanner;\nclass Main{\n public static void main(String[] a){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int[][] t=new int[N][3];\nfor(int i=0; i<N; i++){\nfor(int j=0; j<3; j++){\nt[i][j]=sc.nextInt();\n}\n}\nsort(t);\n\nfor(int i=0; i<N; i++){\nif(t[i][2]*t[i][2]==(t[i][1]*t[i][1]+t[i][0]*t[i][0])){\nSystem.out.println(\"YES\");\n\n}else{\nSystem.out.println(\"NO\");\n\n}\n}\n\n }\n public static void sort(int[][] t){\n int [] s=new int[3];\n for(int i=0; i<t.length; i++){\n for(int j=0; j<3; j++){\n s[j]=t[i][j];\n }\n Arrays.sort(s);\n for(int k=0; k<3; k++){\n t[i][k]=s[k];\n }\n }\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] a){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int[][] t=new int[N][3];\nfor(int i=0; i<N; i++){\nfor(int j=0; j<3; j++){\nt[i][j]=sc.nextInt();\n}\n}\nsort(t);\n\nfor(int i=0; i<N; i++){\nif(t[i][2]*t[i][2]==(t[i][1]*t[i][1]+t[i][0]*t[i][0])){\nSystem.out.println(\"YES\");\n\n}else{\nSystem.out.println(\"NO\");\n\n}\n}\n\n }\n public static void sort(int[][] t){\n int [] s=new int[3];\n for(int i=0; i<t.length; i++){\n for(int j=0; j<3; j++){\n s[j]=t[i][j];\n }\n Arrays.sort(s);\n for(int k=0; k<3; k++){\n t[i][k]=s[k];\n }\n }\n }\n}",
"Main",
"public static void main(String[] a){\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int[][] t=new int[N][3];\nfor(int i=0; i<N; i++){\nfor(int j=0; j<3; j++){\nt[i][j]=sc.nextInt();\n}\n}\nsort(t);\n\nfor(int i=0; i<N; i++){\nif(t[i][2]*t[i][2]==(t[i][1]*t[i][1]+t[i][0]*t[i][0])){\nSystem.out.println(\"YES\");\n\n}else{\nSystem.out.println(\"NO\");\n\n}\n}\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int N=sc.nextInt();\n int[][] t=new int[N][3];\nfor(int i=0; i<N; i++){\nfor(int j=0; j<3; j++){\nt[i][j]=sc.nextInt();\n}\n}\nsort(t);\n\nfor(int i=0; i<N; i++){\nif(t[i][2]*t[i][2]==(t[i][1]*t[i][1]+t[i][0]*t[i][0])){\nSystem.out.println(\"YES\");\n\n}else{\nSystem.out.println(\"NO\");\n\n}\n}\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N=sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] t=new int[N][3];",
"t",
"new int[N][3]",
"N",
"3",
"for(int i=0; i<N; i++){\nfor(int j=0; j<3; j++){\nt[i][j]=sc.nextInt();\n}\n}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\nfor(int j=0; j<3; j++){\nt[i][j]=sc.nextInt();\n}\n}",
"{\nfor(int j=0; j<3; j++){\nt[i][j]=sc.nextInt();\n}\n}",
"for(int j=0; j<3; j++){\nt[i][j]=sc.nextInt();\n}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\nt[i][j]=sc.nextInt();\n}",
"{\nt[i][j]=sc.nextInt();\n}",
"t[i][j]=sc.nextInt()",
"t[i][j]",
"t[i]",
"t",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sort(t)",
"sort",
"t",
"for(int i=0; i<N; i++){\nif(t[i][2]*t[i][2]==(t[i][1]*t[i][1]+t[i][0]*t[i][0])){\nSystem.out.println(\"YES\");\n\n}else{\nSystem.out.println(\"NO\");\n\n}\n}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\nif(t[i][2]*t[i][2]==(t[i][1]*t[i][1]+t[i][0]*t[i][0])){\nSystem.out.println(\"YES\");\n\n}else{\nSystem.out.println(\"NO\");\n\n}\n}",
"{\nif(t[i][2]*t[i][2]==(t[i][1]*t[i][1]+t[i][0]*t[i][0])){\nSystem.out.println(\"YES\");\n\n}else{\nSystem.out.println(\"NO\");\n\n}\n}",
"if(t[i][2]*t[i][2]==(t[i][1]*t[i][1]+t[i][0]*t[i][0])){\nSystem.out.println(\"YES\");\n\n}else{\nSystem.out.println(\"NO\");\n\n}",
"t[i][2]*t[i][2]==(t[i][1]*t[i][1]+t[i][0]*t[i][0])",
"t[i][2]*t[i][2]",
"t[i][2]",
"t[i]",
"t",
"i",
"2",
"t[i][2]",
"t[i]",
"t",
"i",
"2",
"(t[i][1]*t[i][1]+t[i][0]*t[i][0])",
"t[i][1]*t[i][1]",
"t[i][1]",
"t[i]",
"t",
"i",
"1",
"t[i][1]",
"t[i]",
"t",
"i",
"1",
"t[i][0]*t[i][0]",
"t[i][0]",
"t[i]",
"t",
"i",
"0",
"t[i][0]",
"t[i]",
"t",
"i",
"0",
"{\nSystem.out.println(\"YES\");\n\n}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\nSystem.out.println(\"NO\");\n\n}",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] a",
"a",
"public static void sort(int[][] t){\n int [] s=new int[3];\n for(int i=0; i<t.length; i++){\n for(int j=0; j<3; j++){\n s[j]=t[i][j];\n }\n Arrays.sort(s);\n for(int k=0; k<3; k++){\n t[i][k]=s[k];\n }\n }\n }",
"sort",
"{\n int [] s=new int[3];\n for(int i=0; i<t.length; i++){\n for(int j=0; j<3; j++){\n s[j]=t[i][j];\n }\n Arrays.sort(s);\n for(int k=0; k<3; k++){\n t[i][k]=s[k];\n }\n }\n }",
"int [] s=new int[3];",
"s",
"new int[3]",
"3",
"for(int i=0; i<t.length; i++){\n for(int j=0; j<3; j++){\n s[j]=t[i][j];\n }\n Arrays.sort(s);\n for(int k=0; k<3; k++){\n t[i][k]=s[k];\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<t.length",
"i",
"t.length",
"t",
"t.length",
"i++",
"i++",
"i",
"{\n for(int j=0; j<3; j++){\n s[j]=t[i][j];\n }\n Arrays.sort(s);\n for(int k=0; k<3; k++){\n t[i][k]=s[k];\n }\n }",
"{\n for(int j=0; j<3; j++){\n s[j]=t[i][j];\n }\n Arrays.sort(s);\n for(int k=0; k<3; k++){\n t[i][k]=s[k];\n }\n }",
"for(int j=0; j<3; j++){\n s[j]=t[i][j];\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n s[j]=t[i][j];\n }",
"{\n s[j]=t[i][j];\n }",
"s[j]=t[i][j]",
"s[j]",
"s",
"j",
"t[i][j]",
"t[i]",
"t",
"i",
"j",
"Arrays.sort(s)",
"Arrays.sort",
"Arrays",
"s",
"for(int k=0; k<3; k++){\n t[i][k]=s[k];\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<3",
"k",
"3",
"k++",
"k++",
"k",
"{\n t[i][k]=s[k];\n }",
"{\n t[i][k]=s[k];\n }",
"t[i][k]=s[k]",
"t[i][k]",
"t[i]",
"t",
"i",
"k",
"s[k]",
"s",
"k",
"int[][] t",
"t"
] |
import java.util.Arrays;
import java.util.Scanner;
class Main{
public static void main(String[] a){
Scanner sc = new Scanner(System.in);
int N=sc.nextInt();
int[][] t=new int[N][3];
for(int i=0; i<N; i++){
for(int j=0; j<3; j++){
t[i][j]=sc.nextInt();
}
}
sort(t);
for(int i=0; i<N; i++){
if(t[i][2]*t[i][2]==(t[i][1]*t[i][1]+t[i][0]*t[i][0])){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
public static void sort(int[][] t){
int [] s=new int[3];
for(int i=0; i<t.length; i++){
for(int j=0; j<3; j++){
s[j]=t[i][j];
}
Arrays.sort(s);
for(int k=0; k<3; k++){
t[i][k]=s[k];
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
2,
17,
17,
41,
13,
17,
12,
13,
30,
0,
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,
0,
18,
13,
13,
4,
18,
13,
4,
13,
13,
14,
2,
2,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
4,
13,
17,
4,
13,
17,
4,
18,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
145,
20
],
[
145,
21
],
[
21,
22
],
[
145,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
145,
28
],
[
28,
29
],
[
28,
30
],
[
145,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
33,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
59,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
54,
78
],
[
78,
79
],
[
78,
80
],
[
54,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
95,
97
],
[
82,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
102,
104
],
[
81,
105
],
[
105,
106
],
[
105,
107
],
[
81,
108
],
[
108,
109
],
[
108,
110
],
[
33,
111
],
[
111,
112
],
[
112,
113
],
[
145,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
114,
123
],
[
123,
124
],
[
145,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
125,
134
],
[
134,
135
],
[
145,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
136,
142
],
[
142,
143
],
[
0,
144
],
[
144,
145
],
[
144,
146
]
] | [
"import java.util.*;\nimport java.lang.*;\nimport java.math.*;\nimport java.io.*;\n\nimport static java.lang.Math.*;\nimport static java.util.Arrays.*;\n\npublic class Main{\n\n\tScanner sc;\n\n\tstatic final int INF=1<<28;\n\tstatic final double EPS=1e-9;\n\n\tvoid run(){\n\t\tsc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tfor(int k=0; k<n; k++){\n\t\t\tint[] a=new int[3];\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t\ta[i]=sc.nextInt();\n\t\t\tsort(a);\n\t\t\tif(a[0]*a[0]+a[1]*a[1]==a[2]*a[2])\n\t\t\t\tprintln(\"YES\");\n\t\t\telse\n\t\t\t\tprintln(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}\n\n\tvoid print(String s){\n\t\tSystem.out.print(s);\n\t}\n\n\tvoid println(String s){\n\t\tSystem.out.println(s);\n\t}\n\n\tpublic static void main(String[] args){\n\t\tnew Main().run();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.util.Arrays.*;",
"import static java.util.Arrays.*;",
"import static java.util.Arrays.*;",
"public class Main{\n\n\tScanner sc;\n\n\tstatic final int INF=1<<28;\n\tstatic final double EPS=1e-9;\n\n\tvoid run(){\n\t\tsc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tfor(int k=0; k<n; k++){\n\t\t\tint[] a=new int[3];\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t\ta[i]=sc.nextInt();\n\t\t\tsort(a);\n\t\t\tif(a[0]*a[0]+a[1]*a[1]==a[2]*a[2])\n\t\t\t\tprintln(\"YES\");\n\t\t\telse\n\t\t\t\tprintln(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}\n\n\tvoid print(String s){\n\t\tSystem.out.print(s);\n\t}\n\n\tvoid println(String s){\n\t\tSystem.out.println(s);\n\t}\n\n\tpublic static void main(String[] args){\n\t\tnew Main().run();\n\t}\n}",
"Main",
"Scanner sc;",
"sc",
"static final int INF=1<<28;",
"INF",
"1<<28",
"1",
"28",
"static final double EPS=1e-9;",
"EPS",
"1e-9",
"void run(){\n\t\tsc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tfor(int k=0; k<n; k++){\n\t\t\tint[] a=new int[3];\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t\ta[i]=sc.nextInt();\n\t\t\tsort(a);\n\t\t\tif(a[0]*a[0]+a[1]*a[1]==a[2]*a[2])\n\t\t\t\tprintln(\"YES\");\n\t\t\telse\n\t\t\t\tprintln(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}",
"run",
"{\n\t\tsc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tfor(int k=0; k<n; k++){\n\t\t\tint[] a=new int[3];\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t\ta[i]=sc.nextInt();\n\t\t\tsort(a);\n\t\t\tif(a[0]*a[0]+a[1]*a[1]==a[2]*a[2])\n\t\t\t\tprintln(\"YES\");\n\t\t\telse\n\t\t\t\tprintln(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}",
"sc=new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int k=0; k<n; k++){\n\t\t\tint[] a=new int[3];\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t\ta[i]=sc.nextInt();\n\t\t\tsort(a);\n\t\t\tif(a[0]*a[0]+a[1]*a[1]==a[2]*a[2])\n\t\t\t\tprintln(\"YES\");\n\t\t\telse\n\t\t\t\tprintln(\"NO\");\n\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<n",
"k",
"n",
"k++",
"k++",
"k",
"{\n\t\t\tint[] a=new int[3];\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t\ta[i]=sc.nextInt();\n\t\t\tsort(a);\n\t\t\tif(a[0]*a[0]+a[1]*a[1]==a[2]*a[2])\n\t\t\t\tprintln(\"YES\");\n\t\t\telse\n\t\t\t\tprintln(\"NO\");\n\t\t}",
"{\n\t\t\tint[] a=new int[3];\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t\ta[i]=sc.nextInt();\n\t\t\tsort(a);\n\t\t\tif(a[0]*a[0]+a[1]*a[1]==a[2]*a[2])\n\t\t\t\tprintln(\"YES\");\n\t\t\telse\n\t\t\t\tprintln(\"NO\");\n\t\t}",
"int[] a=new int[3];",
"a",
"new int[3]",
"3",
"for(int i=0; i<3; i++)\n\t\t\t\ta[i]=sc.nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"a[i]=sc.nextInt();",
"a[i]=sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sort(a)",
"sort",
"a",
"if(a[0]*a[0]+a[1]*a[1]==a[2]*a[2])\n\t\t\t\tprintln(\"YES\");\n\t\t\telse\n\t\t\t\tprintln(\"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",
"println(\"YES\")",
"println",
"\"YES\"",
"println(\"NO\")",
"println",
"\"NO\"",
"sc.close()",
"sc.close",
"sc",
"void print(String s){\n\t\tSystem.out.print(s);\n\t}",
"print",
"{\n\t\tSystem.out.print(s);\n\t}",
"System.out.print(s)",
"System.out.print",
"System.out",
"System",
"System.out",
"s",
"String s",
"s",
"void println(String s){\n\t\tSystem.out.println(s);\n\t}",
"println",
"{\n\t\tSystem.out.println(s);\n\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String s",
"s",
"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\tScanner sc;\n\n\tstatic final int INF=1<<28;\n\tstatic final double EPS=1e-9;\n\n\tvoid run(){\n\t\tsc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tfor(int k=0; k<n; k++){\n\t\t\tint[] a=new int[3];\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t\ta[i]=sc.nextInt();\n\t\t\tsort(a);\n\t\t\tif(a[0]*a[0]+a[1]*a[1]==a[2]*a[2])\n\t\t\t\tprintln(\"YES\");\n\t\t\telse\n\t\t\t\tprintln(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}\n\n\tvoid print(String s){\n\t\tSystem.out.print(s);\n\t}\n\n\tvoid println(String s){\n\t\tSystem.out.println(s);\n\t}\n\n\tpublic static void main(String[] args){\n\t\tnew Main().run();\n\t}\n}",
"public class Main{\n\n\tScanner sc;\n\n\tstatic final int INF=1<<28;\n\tstatic final double EPS=1e-9;\n\n\tvoid run(){\n\t\tsc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tfor(int k=0; k<n; k++){\n\t\t\tint[] a=new int[3];\n\t\t\tfor(int i=0; i<3; i++)\n\t\t\t\ta[i]=sc.nextInt();\n\t\t\tsort(a);\n\t\t\tif(a[0]*a[0]+a[1]*a[1]==a[2]*a[2])\n\t\t\t\tprintln(\"YES\");\n\t\t\telse\n\t\t\t\tprintln(\"NO\");\n\t\t}\n\t\tsc.close();\n\t}\n\n\tvoid print(String s){\n\t\tSystem.out.print(s);\n\t}\n\n\tvoid println(String s){\n\t\tSystem.out.println(s);\n\t}\n\n\tpublic static void main(String[] args){\n\t\tnew Main().run();\n\t}\n}",
"Main"
] | import java.util.*;
import java.lang.*;
import java.math.*;
import java.io.*;
import static java.lang.Math.*;
import static java.util.Arrays.*;
public class Main{
Scanner sc;
static final int INF=1<<28;
static final double EPS=1e-9;
void run(){
sc=new Scanner(System.in);
int n=sc.nextInt();
for(int k=0; k<n; k++){
int[] a=new int[3];
for(int i=0; i<3; i++)
a[i]=sc.nextInt();
sort(a);
if(a[0]*a[0]+a[1]*a[1]==a[2]*a[2])
println("YES");
else
println("NO");
}
sc.close();
}
void print(String s){
System.out.print(s);
}
void println(String s){
System.out.println(s);
}
public static void main(String[] args){
new Main().run();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
4,
18,
13,
38,
5,
13,
30,
4,
18,
13,
30,
42,
4,
18,
13,
30,
41,
13,
4,
18,
4,
18,
13,
17,
4,
18,
18,
13,
13,
4,
13,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
23,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
13,
14,
2,
2,
2,
4,
18,
13,
17,
4,
18,
13,
17,
2,
4,
18,
13,
17,
4,
18,
13,
17,
2,
4,
18,
13,
17,
4,
18,
13,
17,
29,
17,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
146,
17
],
[
146,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
24,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
20,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
35,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
50,
55
],
[
47,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
61,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
18,
81
],
[
81,
82
],
[
146,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
85,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
85,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
85,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
108,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
107,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
118,
121
],
[
117,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
106,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
127,
130
],
[
126,
131
],
[
131,
132
],
[
132,
133
],
[
131,
134
],
[
105,
135
],
[
135,
136
],
[
105,
137
],
[
137,
138
],
[
83,
139
],
[
139,
140
],
[
83,
141
],
[
141,
142
],
[
83,
143
],
[
143,
144
],
[
0,
145
],
[
145,
146
],
[
145,
147
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Collections;\n\npublic class Main {\n public static void main(String[] args) {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n try {\n input.readLine();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n try {\n while (input.ready()) {\n String[] dataset = input.readLine().split(\" \");\n\n System.out.println(\n isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2])));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n public static String isRightTriangle(int a, int b, int c) {\n\n ArrayList<Integer> sideArray = new ArrayList<>();\n sideArray.add(a);\n sideArray.add(b);\n sideArray.add(c);\n\n Collections.sort(sideArray);\n\n if (sideArray.get(0) * sideArray.get(0) + sideArray.get(1) * sideArray.get(1) == sideArray.get(2)\n * sideArray.get(2))\n return \"YES\";\n else\n return \"NO\";\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"public class Main {\n public static void main(String[] args) {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n try {\n input.readLine();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n try {\n while (input.ready()) {\n String[] dataset = input.readLine().split(\" \");\n\n System.out.println(\n isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2])));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n public static String isRightTriangle(int a, int b, int c) {\n\n ArrayList<Integer> sideArray = new ArrayList<>();\n sideArray.add(a);\n sideArray.add(b);\n sideArray.add(c);\n\n Collections.sort(sideArray);\n\n if (sideArray.get(0) * sideArray.get(0) + sideArray.get(1) * sideArray.get(1) == sideArray.get(2)\n * sideArray.get(2))\n return \"YES\";\n else\n return \"NO\";\n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n try {\n input.readLine();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n try {\n while (input.ready()) {\n String[] dataset = input.readLine().split(\" \");\n\n System.out.println(\n isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2])));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"main",
"{\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n try {\n input.readLine();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n try {\n while (input.ready()) {\n String[] dataset = input.readLine().split(\" \");\n\n System.out.println(\n isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2])));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n input.readLine();\n } catch (IOException e1) {\n e1.printStackTrace();\n }",
"catch (IOException e1) {\n e1.printStackTrace();\n }",
"IOException e1",
"{\n e1.printStackTrace();\n }",
"e1.printStackTrace()",
"e1.printStackTrace",
"e1",
"{\n input.readLine();\n }",
"input.readLine()",
"input.readLine",
"input",
"try {\n while (input.ready()) {\n String[] dataset = input.readLine().split(\" \");\n\n System.out.println(\n isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2])));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }",
"catch (IOException e) {\n e.printStackTrace();\n }",
"IOException e",
"{\n e.printStackTrace();\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n while (input.ready()) {\n String[] dataset = input.readLine().split(\" \");\n\n System.out.println(\n isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2])));\n }\n }",
"while (input.ready()) {\n String[] dataset = input.readLine().split(\" \");\n\n System.out.println(\n isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2])));\n }",
"input.ready()",
"input.ready",
"input",
"{\n String[] dataset = input.readLine().split(\" \");\n\n System.out.println(\n isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2])));\n }",
"String[] dataset = input.readLine().split(\" \");",
"dataset",
"input.readLine().split(\" \")",
"input.readLine().split",
"input.readLine()",
"input.readLine",
"input",
"\" \"",
"System.out.println(\n isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2])))",
"System.out.println",
"System.out",
"System",
"System.out",
"isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2]))",
"isRightTriangle",
"Integer.valueOf(dataset[0])",
"Integer.valueOf",
"Integer",
"dataset[0]",
"dataset",
"0",
"Integer.valueOf(dataset[1])",
"Integer.valueOf",
"Integer",
"dataset[1]",
"dataset",
"1",
"Integer.valueOf(dataset[2])",
"Integer.valueOf",
"Integer",
"dataset[2]",
"dataset",
"2",
"String[] args",
"args",
"public static String isRightTriangle(int a, int b, int c) {\n\n ArrayList<Integer> sideArray = new ArrayList<>();\n sideArray.add(a);\n sideArray.add(b);\n sideArray.add(c);\n\n Collections.sort(sideArray);\n\n if (sideArray.get(0) * sideArray.get(0) + sideArray.get(1) * sideArray.get(1) == sideArray.get(2)\n * sideArray.get(2))\n return \"YES\";\n else\n return \"NO\";\n }",
"isRightTriangle",
"{\n\n ArrayList<Integer> sideArray = new ArrayList<>();\n sideArray.add(a);\n sideArray.add(b);\n sideArray.add(c);\n\n Collections.sort(sideArray);\n\n if (sideArray.get(0) * sideArray.get(0) + sideArray.get(1) * sideArray.get(1) == sideArray.get(2)\n * sideArray.get(2))\n return \"YES\";\n else\n return \"NO\";\n }",
"ArrayList<Integer> sideArray = new ArrayList<>();",
"sideArray",
"new ArrayList<>()",
"sideArray.add(a)",
"sideArray.add",
"sideArray",
"a",
"sideArray.add(b)",
"sideArray.add",
"sideArray",
"b",
"sideArray.add(c)",
"sideArray.add",
"sideArray",
"c",
"Collections.sort(sideArray)",
"Collections.sort",
"Collections",
"sideArray",
"if (sideArray.get(0) * sideArray.get(0) + sideArray.get(1) * sideArray.get(1) == sideArray.get(2)\n * sideArray.get(2))\n return \"YES\";\n else\n return \"NO\";",
"sideArray.get(0) * sideArray.get(0) + sideArray.get(1) * sideArray.get(1) == sideArray.get(2)\n * sideArray.get(2)",
"sideArray.get(0) * sideArray.get(0) + sideArray.get(1) * sideArray.get(1)",
"sideArray.get(0) * sideArray.get(0)",
"sideArray.get(0)",
"sideArray.get",
"sideArray",
"0",
"sideArray.get(0)",
"sideArray.get",
"sideArray",
"0",
"sideArray.get(1) * sideArray.get(1)",
"sideArray.get(1)",
"sideArray.get",
"sideArray",
"1",
"sideArray.get(1)",
"sideArray.get",
"sideArray",
"1",
"sideArray.get(2)\n * sideArray.get(2)",
"sideArray.get(2)",
"sideArray.get",
"sideArray",
"2",
"sideArray.get(2)",
"sideArray.get",
"sideArray",
"2",
"return \"YES\";",
"\"YES\"",
"return \"NO\";",
"\"NO\"",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public class Main {\n public static void main(String[] args) {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n try {\n input.readLine();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n try {\n while (input.ready()) {\n String[] dataset = input.readLine().split(\" \");\n\n System.out.println(\n isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2])));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n public static String isRightTriangle(int a, int b, int c) {\n\n ArrayList<Integer> sideArray = new ArrayList<>();\n sideArray.add(a);\n sideArray.add(b);\n sideArray.add(c);\n\n Collections.sort(sideArray);\n\n if (sideArray.get(0) * sideArray.get(0) + sideArray.get(1) * sideArray.get(1) == sideArray.get(2)\n * sideArray.get(2))\n return \"YES\";\n else\n return \"NO\";\n }\n}",
"public class Main {\n public static void main(String[] args) {\n BufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n try {\n input.readLine();\n } catch (IOException e1) {\n e1.printStackTrace();\n }\n try {\n while (input.ready()) {\n String[] dataset = input.readLine().split(\" \");\n\n System.out.println(\n isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2])));\n }\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n\n public static String isRightTriangle(int a, int b, int c) {\n\n ArrayList<Integer> sideArray = new ArrayList<>();\n sideArray.add(a);\n sideArray.add(b);\n sideArray.add(c);\n\n Collections.sort(sideArray);\n\n if (sideArray.get(0) * sideArray.get(0) + sideArray.get(1) * sideArray.get(1) == sideArray.get(2)\n * sideArray.get(2))\n return \"YES\";\n else\n return \"NO\";\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
public class Main {
public static void main(String[] args) {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
try {
input.readLine();
} catch (IOException e1) {
e1.printStackTrace();
}
try {
while (input.ready()) {
String[] dataset = input.readLine().split(" ");
System.out.println(
isRightTriangle(Integer.valueOf(dataset[0]), Integer.valueOf(dataset[1]), Integer.valueOf(dataset[2])));
}
} catch (IOException e) {
e.printStackTrace();
}
}
public static String isRightTriangle(int a, int b, int c) {
ArrayList<Integer> sideArray = new ArrayList<>();
sideArray.add(a);
sideArray.add(b);
sideArray.add(c);
Collections.sort(sideArray);
if (sideArray.get(0) * sideArray.get(0) + sideArray.get(1) * sideArray.get(1) == sideArray.get(2)
* sideArray.get(2))
return "YES";
else
return "NO";
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
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,
0,
13,
13,
41,
13,
4,
18,
13,
18,
13,
17,
0,
13,
13,
41,
13,
4,
18,
13,
18,
13,
17,
0,
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
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
22,
23
],
[
23,
24
],
[
13,
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
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
37,
54
],
[
54,
55
],
[
54,
56
],
[
37,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
62,
64
],
[
37,
65
],
[
65,
66
],
[
65,
67
],
[
37,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
37,
76
],
[
76,
77
],
[
76,
78
],
[
37,
79
],
[
79,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
81,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
79,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
79,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
6,
109
],
[
109,
110
]
] | [
"import java.io.*;\nclass Main{\n public static void main(String[] args) {\n try{\n BufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));\n int i = Integer.parseInt(br.readLine());\n for(int f=0;f<i;f++){\n String[] str = br.readLine().split(\"\\\\s\");\n int a = Integer.parseInt(str[0]);\n a*=a;\n int b = Integer.parseInt(str[1]);\n b*=b;\n int c = Integer.parseInt(str[2]);\n c*=c;\n if(a+b==c||b+c==a||c+a==b) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }catch(IOException e){}\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main{\n public static void main(String[] args) {\n try{\n BufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));\n int i = Integer.parseInt(br.readLine());\n for(int f=0;f<i;f++){\n String[] str = br.readLine().split(\"\\\\s\");\n int a = Integer.parseInt(str[0]);\n a*=a;\n int b = Integer.parseInt(str[1]);\n b*=b;\n int c = Integer.parseInt(str[2]);\n c*=c;\n if(a+b==c||b+c==a||c+a==b) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }catch(IOException e){}\n }\n}",
"Main",
"public static void main(String[] args) {\n try{\n BufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));\n int i = Integer.parseInt(br.readLine());\n for(int f=0;f<i;f++){\n String[] str = br.readLine().split(\"\\\\s\");\n int a = Integer.parseInt(str[0]);\n a*=a;\n int b = Integer.parseInt(str[1]);\n b*=b;\n int c = Integer.parseInt(str[2]);\n c*=c;\n if(a+b==c||b+c==a||c+a==b) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }catch(IOException e){}\n }",
"main",
"{\n try{\n BufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));\n int i = Integer.parseInt(br.readLine());\n for(int f=0;f<i;f++){\n String[] str = br.readLine().split(\"\\\\s\");\n int a = Integer.parseInt(str[0]);\n a*=a;\n int b = Integer.parseInt(str[1]);\n b*=b;\n int c = Integer.parseInt(str[2]);\n c*=c;\n if(a+b==c||b+c==a||c+a==b) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }catch(IOException e){}\n }",
"try{\n BufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));\n int i = Integer.parseInt(br.readLine());\n for(int f=0;f<i;f++){\n String[] str = br.readLine().split(\"\\\\s\");\n int a = Integer.parseInt(str[0]);\n a*=a;\n int b = Integer.parseInt(str[1]);\n b*=b;\n int c = Integer.parseInt(str[2]);\n c*=c;\n if(a+b==c||b+c==a||c+a==b) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }catch(IOException e){}",
"catch(IOException e){}",
"IOException e",
"{}",
"{\n BufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));\n int i = Integer.parseInt(br.readLine());\n for(int f=0;f<i;f++){\n String[] str = br.readLine().split(\"\\\\s\");\n int a = Integer.parseInt(str[0]);\n a*=a;\n int b = Integer.parseInt(str[1]);\n b*=b;\n int c = Integer.parseInt(str[2]);\n c*=c;\n if(a+b==c||b+c==a||c+a==b) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }",
"BufferedReader br =\n new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int i = Integer.parseInt(br.readLine());",
"i",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int f=0;f<i;f++){\n String[] str = br.readLine().split(\"\\\\s\");\n int a = Integer.parseInt(str[0]);\n a*=a;\n int b = Integer.parseInt(str[1]);\n b*=b;\n int c = Integer.parseInt(str[2]);\n c*=c;\n if(a+b==c||b+c==a||c+a==b) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"int f=0;",
"int f=0;",
"f",
"0",
"f<i",
"f",
"i",
"f++",
"f++",
"f",
"{\n String[] str = br.readLine().split(\"\\\\s\");\n int a = Integer.parseInt(str[0]);\n a*=a;\n int b = Integer.parseInt(str[1]);\n b*=b;\n int c = Integer.parseInt(str[2]);\n c*=c;\n if(a+b==c||b+c==a||c+a==b) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"{\n String[] str = br.readLine().split(\"\\\\s\");\n int a = Integer.parseInt(str[0]);\n a*=a;\n int b = Integer.parseInt(str[1]);\n b*=b;\n int c = Integer.parseInt(str[2]);\n c*=c;\n if(a+b==c||b+c==a||c+a==b) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"String[] str = br.readLine().split(\"\\\\s\");",
"str",
"br.readLine().split(\"\\\\s\")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\"\\\\s\"",
"int a = Integer.parseInt(str[0]);",
"a",
"Integer.parseInt(str[0])",
"Integer.parseInt",
"Integer",
"str[0]",
"str",
"0",
"a*=a",
"a",
"a",
"int b = Integer.parseInt(str[1]);",
"b",
"Integer.parseInt(str[1])",
"Integer.parseInt",
"Integer",
"str[1]",
"str",
"1",
"b*=b",
"b",
"b",
"int c = Integer.parseInt(str[2]);",
"c",
"Integer.parseInt(str[2])",
"Integer.parseInt",
"Integer",
"str[2]",
"str",
"2",
"c*=c",
"c",
"c",
"if(a+b==c||b+c==a||c+a==b) System.out.println(\"YES\");\n else System.out.println(\"NO\");",
"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",
"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.*;
class Main{
public static void main(String[] args) {
try{
BufferedReader br =
new BufferedReader(new InputStreamReader(System.in));
int i = Integer.parseInt(br.readLine());
for(int f=0;f<i;f++){
String[] str = br.readLine().split("\\s");
int a = Integer.parseInt(str[0]);
a*=a;
int b = Integer.parseInt(str[1]);
b*=b;
int c = Integer.parseInt(str[2]);
c*=c;
if(a+b==c||b+c==a||c+a==b) System.out.println("YES");
else System.out.println("NO");
}
}catch(IOException e){}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
40,
13,
17,
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,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
17,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
79,
8
],
[
79,
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
],
[
21,
24
],
[
20,
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
],
[
38,
41
],
[
25,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
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
],
[
47,
71
],
[
47,
72
],
[
11,
73
],
[
73,
74
],
[
74,
75
],
[
9,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while (n-- > 0) {\n int[] list = { sc.nextInt(), sc.nextInt(), sc.nextInt() };\n Arrays.sort(list);\n System.out.println(list[0] * list[0] + list[1] * list[1] == list[2] * list[2] ? \"YES\" : \"NO\");\n }\n sc.close();\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while (n-- > 0) {\n int[] list = { sc.nextInt(), sc.nextInt(), sc.nextInt() };\n Arrays.sort(list);\n System.out.println(list[0] * list[0] + list[1] * list[1] == list[2] * list[2] ? \"YES\" : \"NO\");\n }\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while (n-- > 0) {\n int[] list = { sc.nextInt(), sc.nextInt(), sc.nextInt() };\n Arrays.sort(list);\n System.out.println(list[0] * list[0] + list[1] * list[1] == list[2] * list[2] ? \"YES\" : \"NO\");\n }\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while (n-- > 0) {\n int[] list = { sc.nextInt(), sc.nextInt(), sc.nextInt() };\n Arrays.sort(list);\n System.out.println(list[0] * list[0] + list[1] * list[1] == list[2] * list[2] ? \"YES\" : \"NO\");\n }\n sc.close();\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[] list = { sc.nextInt(), sc.nextInt(), sc.nextInt() };\n Arrays.sort(list);\n System.out.println(list[0] * list[0] + list[1] * list[1] == list[2] * list[2] ? \"YES\" : \"NO\");\n }",
"n-- > 0",
"n--",
"n",
"0",
"{\n int[] list = { sc.nextInt(), sc.nextInt(), sc.nextInt() };\n Arrays.sort(list);\n System.out.println(list[0] * list[0] + list[1] * list[1] == list[2] * list[2] ? \"YES\" : \"NO\");\n }",
"int[] list = { sc.nextInt(), sc.nextInt(), sc.nextInt() };",
"list",
"{ sc.nextInt(), sc.nextInt(), sc.nextInt() }",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Arrays.sort(list)",
"Arrays.sort",
"Arrays",
"list",
"System.out.println(list[0] * list[0] + list[1] * list[1] == list[2] * list[2] ? \"YES\" : \"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"list[0] * list[0] + list[1] * list[1] == list[2] * list[2] ? \"YES\" : \"NO\"",
"list[0] * list[0] + list[1] * list[1] == list[2] * list[2]",
"list[0] * list[0] + list[1] * list[1]",
"list[0] * list[0]",
"list[0]",
"list",
"0",
"list[0]",
"list",
"0",
"list[1] * list[1]",
"list[1]",
"list",
"1",
"list[1]",
"list",
"1",
"list[2] * list[2]",
"list[2]",
"list",
"2",
"list[2]",
"list",
"2",
"\"YES\"",
"\"NO\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while (n-- > 0) {\n int[] list = { sc.nextInt(), sc.nextInt(), sc.nextInt() };\n Arrays.sort(list);\n System.out.println(list[0] * list[0] + list[1] * list[1] == list[2] * list[2] ? \"YES\" : \"NO\");\n }\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while (n-- > 0) {\n int[] list = { sc.nextInt(), sc.nextInt(), sc.nextInt() };\n Arrays.sort(list);\n System.out.println(list[0] * list[0] + list[1] * list[1] == list[2] * list[2] ? \"YES\" : \"NO\");\n }\n sc.close();\n }\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
while (n-- > 0) {
int[] list = { sc.nextInt(), sc.nextInt(), sc.nextInt() };
Arrays.sort(list);
System.out.println(list[0] * list[0] + list[1] * list[1] == list[2] * list[2] ? "YES" : "NO");
}
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
12,
13,
30,
41,
13,
4,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
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,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
13,
29,
13,
12,
13,
30,
4,
18,
13,
13,
41,
13,
4,
18,
13,
18,
13,
13,
17,
41,
13,
4,
18,
13,
18,
13,
13,
17,
41,
13,
4,
18,
13,
18,
13,
13,
17,
29,
2,
2,
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
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
198,
20
],
[
198,
21
],
[
21,
22
],
[
21,
23
],
[
198,
24
],
[
24,
25
],
[
24,
26
],
[
198,
27
],
[
27,
28
],
[
27,
29
],
[
198,
30
],
[
30,
31
],
[
30,
32
],
[
198,
33
],
[
33,
34
],
[
33,
35
],
[
198,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
38,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
43,
53
],
[
53,
54
],
[
54,
55
],
[
43,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
36,
74
],
[
74,
75
],
[
198,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
88,
89
],
[
78,
90
],
[
90,
91
],
[
90,
92
],
[
78,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
95,
105
],
[
105,
106
],
[
106,
107
],
[
95,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
112,
117
],
[
109,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
125,
127
],
[
118,
128
],
[
128,
129
],
[
129,
130
],
[
118,
131
],
[
132,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
133,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
142,
144
],
[
78,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
78,
153
],
[
153,
154
],
[
198,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
158,
161
],
[
157,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
167,
168
],
[
167,
169
],
[
164,
170
],
[
157,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
173,
176
],
[
176,
177
],
[
176,
178
],
[
173,
179
],
[
157,
180
],
[
180,
181
],
[
180,
182
],
[
182,
183
],
[
183,
184
],
[
182,
185
],
[
185,
186
],
[
185,
187
],
[
182,
188
],
[
157,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
191,
193
],
[
190,
194
],
[
155,
195
],
[
195,
196
],
[
0,
197
],
[
197,
198
],
[
197,
199
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.HashMap;\nimport java.util.Map;\n\npublic class Main {\n\n /** 入力される数値の数 */\n private static final int NUMBER_OF_ELEMENT = 3;\n\n /** 配列がそれぞれどの辺に対応するか(X) */\n private static final int INDEX_X = 0;\n\n /** 配列がそれぞれどの辺に対応するか(Y) */\n private static final int INDEX_Y = 1;\n\n /** 配列がそれぞれどの辺に対応するか(Z) */\n private static final int INDEX_Z = 2;\n\n /** 出力文字列のマップ */\n private static final Map<Boolean, String> printMap = new HashMap<Boolean, String>();;\n static {\n printMap.put(true, \"YES\");\n printMap.put(false, \"NO\");\n }\n\n /**\n * 空白区切りの3つの数字を受け取り、\n * その3つの数字を3辺とする三角形が直角三角形であるかどうかを判定する。\n *\n * @param args\n */\n public static void main(String[] args) throws IOException {\n\n // 入力値を読み込む\n int[][] triangleList = readTriangleList();\n\n // 入力値の数だけ処理を行い、結果を出力する\n for (int i = 0; i < triangleList.length; i++) {\n boolean isTriangle = isRightTriangle(triangleList[i]);\n System.out.println(printMap.get(isTriangle));\n }\n\n }\n\n /**\n * 標準入力から空白区切りの数値を取得し、三角形を表す整数の2次元配列として返却する。\n *\n * @return 三角形を表す整数の2次元配列(3×データ数)\n */\n protected static int[][] readTriangleList() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n // 最初にデータの個数を取得する\n int numberOfLine = Integer.parseInt(reader.readLine());\n\n // 1行につき、3データずつ取り込む\n int[][] triangleList = new int[numberOfLine][NUMBER_OF_ELEMENT];\n for (int i = 0; i < triangleList.length; i++) {\n String[] lengthArray = reader.readLine().split(\" \");\n for (int j = 0; j < lengthArray.length; j++) {\n triangleList[i][j] = Integer.parseInt(lengthArray[j]);\n }\n }\n\n if (reader != null) {\n reader.close();\n }\n\n return triangleList;\n }\n\n /**\n * 指定された三角形のデータが直角三角形かどうかを判定する。\n *\n * @param triangle 三角形を表す整数配列\n * @return 直角三角形なら true、そうでないなら false\n */\n protected static boolean isRightTriangle(int[] triangle) {\n\n // 一番長い辺が最後にくるように配列をソートする\n Arrays.sort(triangle);\n\n // ピタゴラスの定理を用いて判定する\n int xx = (int)Math.pow(triangle[INDEX_X], 2);\n int yy = (int)Math.pow(triangle[INDEX_Y], 2);\n int zz = (int)Math.pow(triangle[INDEX_Z], 2);\n\n // x^2 + y^2 = z^2 ならば直角三角形\n return ((xx + yy) == zz);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"import java.util.Map;",
"Map",
"java.util",
"public class Main {\n\n /** 入力される数値の数 */\n private static final int NUMBER_OF_ELEMENT = 3;\n\n /** 配列がそれぞれどの辺に対応するか(X) */\n private static final int INDEX_X = 0;\n\n /** 配列がそれぞれどの辺に対応するか(Y) */\n private static final int INDEX_Y = 1;\n\n /** 配列がそれぞれどの辺に対応するか(Z) */\n private static final int INDEX_Z = 2;\n\n /** 出力文字列のマップ */\n private static final Map<Boolean, String> printMap = new HashMap<Boolean, String>();;\n static {\n printMap.put(true, \"YES\");\n printMap.put(false, \"NO\");\n }\n\n /**\n * 空白区切りの3つの数字を受け取り、\n * その3つの数字を3辺とする三角形が直角三角形であるかどうかを判定する。\n *\n * @param args\n */\n public static void main(String[] args) throws IOException {\n\n // 入力値を読み込む\n int[][] triangleList = readTriangleList();\n\n // 入力値の数だけ処理を行い、結果を出力する\n for (int i = 0; i < triangleList.length; i++) {\n boolean isTriangle = isRightTriangle(triangleList[i]);\n System.out.println(printMap.get(isTriangle));\n }\n\n }\n\n /**\n * 標準入力から空白区切りの数値を取得し、三角形を表す整数の2次元配列として返却する。\n *\n * @return 三角形を表す整数の2次元配列(3×データ数)\n */\n protected static int[][] readTriangleList() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n // 最初にデータの個数を取得する\n int numberOfLine = Integer.parseInt(reader.readLine());\n\n // 1行につき、3データずつ取り込む\n int[][] triangleList = new int[numberOfLine][NUMBER_OF_ELEMENT];\n for (int i = 0; i < triangleList.length; i++) {\n String[] lengthArray = reader.readLine().split(\" \");\n for (int j = 0; j < lengthArray.length; j++) {\n triangleList[i][j] = Integer.parseInt(lengthArray[j]);\n }\n }\n\n if (reader != null) {\n reader.close();\n }\n\n return triangleList;\n }\n\n /**\n * 指定された三角形のデータが直角三角形かどうかを判定する。\n *\n * @param triangle 三角形を表す整数配列\n * @return 直角三角形なら true、そうでないなら false\n */\n protected static boolean isRightTriangle(int[] triangle) {\n\n // 一番長い辺が最後にくるように配列をソートする\n Arrays.sort(triangle);\n\n // ピタゴラスの定理を用いて判定する\n int xx = (int)Math.pow(triangle[INDEX_X], 2);\n int yy = (int)Math.pow(triangle[INDEX_Y], 2);\n int zz = (int)Math.pow(triangle[INDEX_Z], 2);\n\n // x^2 + y^2 = z^2 ならば直角三角形\n return ((xx + yy) == zz);\n }\n}",
"Main",
"/** 入力される数値の数 */\n private static final int NUMBER_OF_ELEMENT = 3;",
"NUMBER_OF_ELEMENT",
"3",
"/** 配列がそれぞれどの辺に対応するか(X) */\n private static final int INDEX_X = 0;",
"INDEX_X",
"0",
"/** 配列がそれぞれどの辺に対応するか(Y) */\n private static final int INDEX_Y = 1;",
"INDEX_Y",
"1",
"/** 配列がそれぞれどの辺に対応するか(Z) */\n private static final int INDEX_Z = 2;",
"INDEX_Z",
"2",
"/** 出力文字列のマップ */\n private static final Map<Boolean, String> printMap = new HashMap<Boolean, String>();",
"printMap",
"new HashMap<Boolean, String>()",
"/**\n * 空白区切りの3つの数字を受け取り、\n * その3つの数字を3辺とする三角形が直角三角形であるかどうかを判定する。\n *\n * @param args\n */\n public static void main(String[] args) throws IOException {\n\n // 入力値を読み込む\n int[][] triangleList = readTriangleList();\n\n // 入力値の数だけ処理を行い、結果を出力する\n for (int i = 0; i < triangleList.length; i++) {\n boolean isTriangle = isRightTriangle(triangleList[i]);\n System.out.println(printMap.get(isTriangle));\n }\n\n }",
"main",
"{\n\n // 入力値を読み込む\n int[][] triangleList = readTriangleList();\n\n // 入力値の数だけ処理を行い、結果を出力する\n for (int i = 0; i < triangleList.length; i++) {\n boolean isTriangle = isRightTriangle(triangleList[i]);\n System.out.println(printMap.get(isTriangle));\n }\n\n }",
"int[][] triangleList = readTriangleList();",
"triangleList",
"readTriangleList()",
"readTriangleList",
"for (int i = 0; i < triangleList.length; i++) {\n boolean isTriangle = isRightTriangle(triangleList[i]);\n System.out.println(printMap.get(isTriangle));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < triangleList.length",
"i",
"triangleList.length",
"triangleList",
"triangleList.length",
"i++",
"i++",
"i",
"{\n boolean isTriangle = isRightTriangle(triangleList[i]);\n System.out.println(printMap.get(isTriangle));\n }",
"{\n boolean isTriangle = isRightTriangle(triangleList[i]);\n System.out.println(printMap.get(isTriangle));\n }",
"boolean isTriangle = isRightTriangle(triangleList[i]);",
"isTriangle",
"isRightTriangle(triangleList[i])",
"isRightTriangle",
"triangleList[i]",
"triangleList",
"i",
"System.out.println(printMap.get(isTriangle))",
"System.out.println",
"System.out",
"System",
"System.out",
"printMap.get(isTriangle)",
"printMap.get",
"printMap",
"isTriangle",
"String[] args",
"args",
"/**\n * 標準入力から空白区切りの数値を取得し、三角形を表す整数の2次元配列として返却する。\n *\n * @return 三角形を表す整数の2次元配列(3×データ数)\n */\n protected static int[][] readTriangleList() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n // 最初にデータの個数を取得する\n int numberOfLine = Integer.parseInt(reader.readLine());\n\n // 1行につき、3データずつ取り込む\n int[][] triangleList = new int[numberOfLine][NUMBER_OF_ELEMENT];\n for (int i = 0; i < triangleList.length; i++) {\n String[] lengthArray = reader.readLine().split(\" \");\n for (int j = 0; j < lengthArray.length; j++) {\n triangleList[i][j] = Integer.parseInt(lengthArray[j]);\n }\n }\n\n if (reader != null) {\n reader.close();\n }\n\n return triangleList;\n }",
"readTriangleList",
"{\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n // 最初にデータの個数を取得する\n int numberOfLine = Integer.parseInt(reader.readLine());\n\n // 1行につき、3データずつ取り込む\n int[][] triangleList = new int[numberOfLine][NUMBER_OF_ELEMENT];\n for (int i = 0; i < triangleList.length; i++) {\n String[] lengthArray = reader.readLine().split(\" \");\n for (int j = 0; j < lengthArray.length; j++) {\n triangleList[i][j] = Integer.parseInt(lengthArray[j]);\n }\n }\n\n if (reader != null) {\n reader.close();\n }\n\n return triangleList;\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"int numberOfLine = Integer.parseInt(reader.readLine());",
"numberOfLine",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"int[][] triangleList = new int[numberOfLine][NUMBER_OF_ELEMENT];",
"triangleList",
"new int[numberOfLine][NUMBER_OF_ELEMENT]",
"numberOfLine",
"NUMBER_OF_ELEMENT",
"for (int i = 0; i < triangleList.length; i++) {\n String[] lengthArray = reader.readLine().split(\" \");\n for (int j = 0; j < lengthArray.length; j++) {\n triangleList[i][j] = Integer.parseInt(lengthArray[j]);\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < triangleList.length",
"i",
"triangleList.length",
"triangleList",
"triangleList.length",
"i++",
"i++",
"i",
"{\n String[] lengthArray = reader.readLine().split(\" \");\n for (int j = 0; j < lengthArray.length; j++) {\n triangleList[i][j] = Integer.parseInt(lengthArray[j]);\n }\n }",
"{\n String[] lengthArray = reader.readLine().split(\" \");\n for (int j = 0; j < lengthArray.length; j++) {\n triangleList[i][j] = Integer.parseInt(lengthArray[j]);\n }\n }",
"String[] lengthArray = reader.readLine().split(\" \");",
"lengthArray",
"reader.readLine().split(\" \")",
"reader.readLine().split",
"reader.readLine()",
"reader.readLine",
"reader",
"\" \"",
"for (int j = 0; j < lengthArray.length; j++) {\n triangleList[i][j] = Integer.parseInt(lengthArray[j]);\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < lengthArray.length",
"j",
"lengthArray.length",
"lengthArray",
"lengthArray.length",
"j++",
"j++",
"j",
"{\n triangleList[i][j] = Integer.parseInt(lengthArray[j]);\n }",
"{\n triangleList[i][j] = Integer.parseInt(lengthArray[j]);\n }",
"triangleList[i][j] = Integer.parseInt(lengthArray[j])",
"triangleList[i][j]",
"triangleList[i]",
"triangleList",
"i",
"j",
"Integer.parseInt(lengthArray[j])",
"Integer.parseInt",
"Integer",
"lengthArray[j]",
"lengthArray",
"j",
"if (reader != null) {\n reader.close();\n }",
"reader != null",
"reader",
"null",
"{\n reader.close();\n }",
"reader.close()",
"reader.close",
"reader",
"return triangleList;",
"triangleList",
"/**\n * 指定された三角形のデータが直角三角形かどうかを判定する。\n *\n * @param triangle 三角形を表す整数配列\n * @return 直角三角形なら true、そうでないなら false\n */\n protected static boolean isRightTriangle(int[] triangle) {\n\n // 一番長い辺が最後にくるように配列をソートする\n Arrays.sort(triangle);\n\n // ピタゴラスの定理を用いて判定する\n int xx = (int)Math.pow(triangle[INDEX_X], 2);\n int yy = (int)Math.pow(triangle[INDEX_Y], 2);\n int zz = (int)Math.pow(triangle[INDEX_Z], 2);\n\n // x^2 + y^2 = z^2 ならば直角三角形\n return ((xx + yy) == zz);\n }",
"isRightTriangle",
"{\n\n // 一番長い辺が最後にくるように配列をソートする\n Arrays.sort(triangle);\n\n // ピタゴラスの定理を用いて判定する\n int xx = (int)Math.pow(triangle[INDEX_X], 2);\n int yy = (int)Math.pow(triangle[INDEX_Y], 2);\n int zz = (int)Math.pow(triangle[INDEX_Z], 2);\n\n // x^2 + y^2 = z^2 ならば直角三角形\n return ((xx + yy) == zz);\n }",
"Arrays.sort(triangle)",
"Arrays.sort",
"Arrays",
"triangle",
"int xx = (int)Math.pow(triangle[INDEX_X], 2);",
"xx",
"(int)Math.pow(triangle[INDEX_X], 2)",
"Math.pow",
"Math",
"triangle[INDEX_X]",
"triangle",
"INDEX_X",
"2",
"int yy = (int)Math.pow(triangle[INDEX_Y], 2);",
"yy",
"(int)Math.pow(triangle[INDEX_Y], 2)",
"Math.pow",
"Math",
"triangle[INDEX_Y]",
"triangle",
"INDEX_Y",
"2",
"int zz = (int)Math.pow(triangle[INDEX_Z], 2);",
"zz",
"(int)Math.pow(triangle[INDEX_Z], 2)",
"Math.pow",
"Math",
"triangle[INDEX_Z]",
"triangle",
"INDEX_Z",
"2",
"return ((xx + yy) == zz);",
"((xx + yy) == zz)",
"(xx + yy)",
"xx",
"yy",
"zz",
"int[] triangle",
"triangle",
"public class Main {\n\n /** 入力される数値の数 */\n private static final int NUMBER_OF_ELEMENT = 3;\n\n /** 配列がそれぞれどの辺に対応するか(X) */\n private static final int INDEX_X = 0;\n\n /** 配列がそれぞれどの辺に対応するか(Y) */\n private static final int INDEX_Y = 1;\n\n /** 配列がそれぞれどの辺に対応するか(Z) */\n private static final int INDEX_Z = 2;\n\n /** 出力文字列のマップ */\n private static final Map<Boolean, String> printMap = new HashMap<Boolean, String>();;\n static {\n printMap.put(true, \"YES\");\n printMap.put(false, \"NO\");\n }\n\n /**\n * 空白区切りの3つの数字を受け取り、\n * その3つの数字を3辺とする三角形が直角三角形であるかどうかを判定する。\n *\n * @param args\n */\n public static void main(String[] args) throws IOException {\n\n // 入力値を読み込む\n int[][] triangleList = readTriangleList();\n\n // 入力値の数だけ処理を行い、結果を出力する\n for (int i = 0; i < triangleList.length; i++) {\n boolean isTriangle = isRightTriangle(triangleList[i]);\n System.out.println(printMap.get(isTriangle));\n }\n\n }\n\n /**\n * 標準入力から空白区切りの数値を取得し、三角形を表す整数の2次元配列として返却する。\n *\n * @return 三角形を表す整数の2次元配列(3×データ数)\n */\n protected static int[][] readTriangleList() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n // 最初にデータの個数を取得する\n int numberOfLine = Integer.parseInt(reader.readLine());\n\n // 1行につき、3データずつ取り込む\n int[][] triangleList = new int[numberOfLine][NUMBER_OF_ELEMENT];\n for (int i = 0; i < triangleList.length; i++) {\n String[] lengthArray = reader.readLine().split(\" \");\n for (int j = 0; j < lengthArray.length; j++) {\n triangleList[i][j] = Integer.parseInt(lengthArray[j]);\n }\n }\n\n if (reader != null) {\n reader.close();\n }\n\n return triangleList;\n }\n\n /**\n * 指定された三角形のデータが直角三角形かどうかを判定する。\n *\n * @param triangle 三角形を表す整数配列\n * @return 直角三角形なら true、そうでないなら false\n */\n protected static boolean isRightTriangle(int[] triangle) {\n\n // 一番長い辺が最後にくるように配列をソートする\n Arrays.sort(triangle);\n\n // ピタゴラスの定理を用いて判定する\n int xx = (int)Math.pow(triangle[INDEX_X], 2);\n int yy = (int)Math.pow(triangle[INDEX_Y], 2);\n int zz = (int)Math.pow(triangle[INDEX_Z], 2);\n\n // x^2 + y^2 = z^2 ならば直角三角形\n return ((xx + yy) == zz);\n }\n}",
"public class Main {\n\n /** 入力される数値の数 */\n private static final int NUMBER_OF_ELEMENT = 3;\n\n /** 配列がそれぞれどの辺に対応するか(X) */\n private static final int INDEX_X = 0;\n\n /** 配列がそれぞれどの辺に対応するか(Y) */\n private static final int INDEX_Y = 1;\n\n /** 配列がそれぞれどの辺に対応するか(Z) */\n private static final int INDEX_Z = 2;\n\n /** 出力文字列のマップ */\n private static final Map<Boolean, String> printMap = new HashMap<Boolean, String>();;\n static {\n printMap.put(true, \"YES\");\n printMap.put(false, \"NO\");\n }\n\n /**\n * 空白区切りの3つの数字を受け取り、\n * その3つの数字を3辺とする三角形が直角三角形であるかどうかを判定する。\n *\n * @param args\n */\n public static void main(String[] args) throws IOException {\n\n // 入力値を読み込む\n int[][] triangleList = readTriangleList();\n\n // 入力値の数だけ処理を行い、結果を出力する\n for (int i = 0; i < triangleList.length; i++) {\n boolean isTriangle = isRightTriangle(triangleList[i]);\n System.out.println(printMap.get(isTriangle));\n }\n\n }\n\n /**\n * 標準入力から空白区切りの数値を取得し、三角形を表す整数の2次元配列として返却する。\n *\n * @return 三角形を表す整数の2次元配列(3×データ数)\n */\n protected static int[][] readTriangleList() throws IOException {\n\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n // 最初にデータの個数を取得する\n int numberOfLine = Integer.parseInt(reader.readLine());\n\n // 1行につき、3データずつ取り込む\n int[][] triangleList = new int[numberOfLine][NUMBER_OF_ELEMENT];\n for (int i = 0; i < triangleList.length; i++) {\n String[] lengthArray = reader.readLine().split(\" \");\n for (int j = 0; j < lengthArray.length; j++) {\n triangleList[i][j] = Integer.parseInt(lengthArray[j]);\n }\n }\n\n if (reader != null) {\n reader.close();\n }\n\n return triangleList;\n }\n\n /**\n * 指定された三角形のデータが直角三角形かどうかを判定する。\n *\n * @param triangle 三角形を表す整数配列\n * @return 直角三角形なら true、そうでないなら false\n */\n protected static boolean isRightTriangle(int[] triangle) {\n\n // 一番長い辺が最後にくるように配列をソートする\n Arrays.sort(triangle);\n\n // ピタゴラスの定理を用いて判定する\n int xx = (int)Math.pow(triangle[INDEX_X], 2);\n int yy = (int)Math.pow(triangle[INDEX_Y], 2);\n int zz = (int)Math.pow(triangle[INDEX_Z], 2);\n\n // x^2 + y^2 = z^2 ならば直角三角形\n return ((xx + yy) == zz);\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;
public class Main {
/** 入力される数値の数 */
private static final int NUMBER_OF_ELEMENT = 3;
/** 配列がそれぞれどの辺に対応するか(X) */
private static final int INDEX_X = 0;
/** 配列がそれぞれどの辺に対応するか(Y) */
private static final int INDEX_Y = 1;
/** 配列がそれぞれどの辺に対応するか(Z) */
private static final int INDEX_Z = 2;
/** 出力文字列のマップ */
private static final Map<Boolean, String> printMap = new HashMap<Boolean, String>();;
static {
printMap.put(true, "YES");
printMap.put(false, "NO");
}
/**
* 空白区切りの3つの数字を受け取り、
* その3つの数字を3辺とする三角形が直角三角形であるかどうかを判定する。
*
* @param args
*/
public static void main(String[] args) throws IOException {
// 入力値を読み込む
int[][] triangleList = readTriangleList();
// 入力値の数だけ処理を行い、結果を出力する
for (int i = 0; i < triangleList.length; i++) {
boolean isTriangle = isRightTriangle(triangleList[i]);
System.out.println(printMap.get(isTriangle));
}
}
/**
* 標準入力から空白区切りの数値を取得し、三角形を表す整数の2次元配列として返却する。
*
* @return 三角形を表す整数の2次元配列(3×データ数)
*/
protected static int[][] readTriangleList() throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
// 最初にデータの個数を取得する
int numberOfLine = Integer.parseInt(reader.readLine());
// 1行につき、3データずつ取り込む
int[][] triangleList = new int[numberOfLine][NUMBER_OF_ELEMENT];
for (int i = 0; i < triangleList.length; i++) {
String[] lengthArray = reader.readLine().split(" ");
for (int j = 0; j < lengthArray.length; j++) {
triangleList[i][j] = Integer.parseInt(lengthArray[j]);
}
}
if (reader != null) {
reader.close();
}
return triangleList;
}
/**
* 指定された三角形のデータが直角三角形かどうかを判定する。
*
* @param triangle 三角形を表す整数配列
* @return 直角三角形なら true、そうでないなら false
*/
protected static boolean isRightTriangle(int[] triangle) {
// 一番長い辺が最後にくるように配列をソートする
Arrays.sort(triangle);
// ピタゴラスの定理を用いて判定する
int xx = (int)Math.pow(triangle[INDEX_X], 2);
int yy = (int)Math.pow(triangle[INDEX_Y], 2);
int zz = (int)Math.pow(triangle[INDEX_Z], 2);
// x^2 + y^2 = z^2 ならば直角三角形
return ((xx + yy) == zz);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
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,
0,
13,
17,
29,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
28,
13,
13,
30,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
119,
5
],
[
119,
6
],
[
6,
7
],
[
119,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
16,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
16,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
36,
38
],
[
16,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
47,
49
],
[
14,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
10,
54
],
[
54,
55
],
[
8,
56
],
[
56,
57
],
[
8,
58
],
[
58,
59
],
[
8,
60
],
[
60,
61
],
[
119,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
64,
73
],
[
73,
74
],
[
73,
75
],
[
64,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
77,
88
],
[
89,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
94,
99
],
[
99,
100
],
[
100,
101
],
[
94,
102
],
[
102,
103
],
[
103,
104
],
[
64,
105
],
[
105,
106
],
[
105,
107
],
[
105,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
62,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n private static int loop_num;\n\n static String rightTriangle(int a, int b, int c){\n String judge = \"NO\";\n if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {\n judge = \"YES\";\n }\n return judge;\n }\n\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n loop_num = stdIn.nextInt();\n String[] result_triangle = new String[loop_num];\n\n for (int i = 0;i < loop_num; i++) {\n result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());\n }\n\n for (String result: result_triangle) {\n System.out.println(result);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n private static int loop_num;\n\n static String rightTriangle(int a, int b, int c){\n String judge = \"NO\";\n if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {\n judge = \"YES\";\n }\n return judge;\n }\n\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n loop_num = stdIn.nextInt();\n String[] result_triangle = new String[loop_num];\n\n for (int i = 0;i < loop_num; i++) {\n result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());\n }\n\n for (String result: result_triangle) {\n System.out.println(result);\n }\n }\n}",
"Main",
"private static int loop_num;",
"loop_num",
"static String rightTriangle(int a, int b, int c){\n String judge = \"NO\";\n if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {\n judge = \"YES\";\n }\n return judge;\n }",
"rightTriangle",
"{\n String judge = \"NO\";\n if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {\n judge = \"YES\";\n }\n return judge;\n }",
"String judge = \"NO\";",
"judge",
"\"NO\"",
"if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {\n judge = \"YES\";\n }",
"(a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)",
"(a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)",
"(a*a)+(b*b) == (c*c)",
"(a*a)+(b*b)",
"(a*a)",
"a",
"a",
"(b*b)",
"b",
"b",
"(c*c)",
"c",
"c",
"(c*c) + (a*a) == (b*b)",
"(c*c) + (a*a)",
"(c*c)",
"c",
"c",
"(a*a)",
"a",
"a",
"(b*b)",
"b",
"b",
"(c*c) + (b*b) == (a*a)",
"(c*c) + (b*b)",
"(c*c)",
"c",
"c",
"(b*b)",
"b",
"b",
"(a*a)",
"a",
"a",
"{\n judge = \"YES\";\n }",
"judge = \"YES\"",
"judge",
"\"YES\"",
"return judge;",
"judge",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n loop_num = stdIn.nextInt();\n String[] result_triangle = new String[loop_num];\n\n for (int i = 0;i < loop_num; i++) {\n result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());\n }\n\n for (String result: result_triangle) {\n System.out.println(result);\n }\n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n loop_num = stdIn.nextInt();\n String[] result_triangle = new String[loop_num];\n\n for (int i = 0;i < loop_num; i++) {\n result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());\n }\n\n for (String result: result_triangle) {\n System.out.println(result);\n }\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"loop_num = stdIn.nextInt()",
"loop_num",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"String[] result_triangle = new String[loop_num];",
"result_triangle",
"new String[loop_num]",
"loop_num",
"for (int i = 0;i < loop_num; i++) {\n result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < loop_num",
"i",
"loop_num",
"i++",
"i++",
"i",
"{\n result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());\n }",
"{\n result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());\n }",
"result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt())",
"result_triangle[i]",
"result_triangle",
"i",
"rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt())",
"rightTriangle",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for (String result: result_triangle) {\n System.out.println(result);\n }",
"String result",
"result_triangle",
"{\n System.out.println(result);\n }",
"{\n System.out.println(result);\n }",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main {\n\n private static int loop_num;\n\n static String rightTriangle(int a, int b, int c){\n String judge = \"NO\";\n if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {\n judge = \"YES\";\n }\n return judge;\n }\n\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n loop_num = stdIn.nextInt();\n String[] result_triangle = new String[loop_num];\n\n for (int i = 0;i < loop_num; i++) {\n result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());\n }\n\n for (String result: result_triangle) {\n System.out.println(result);\n }\n }\n}",
"public class Main {\n\n private static int loop_num;\n\n static String rightTriangle(int a, int b, int c){\n String judge = \"NO\";\n if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {\n judge = \"YES\";\n }\n return judge;\n }\n\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n loop_num = stdIn.nextInt();\n String[] result_triangle = new String[loop_num];\n\n for (int i = 0;i < loop_num; i++) {\n result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());\n }\n\n for (String result: result_triangle) {\n System.out.println(result);\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
private static int loop_num;
static String rightTriangle(int a, int b, int c){
String judge = "NO";
if ((a*a)+(b*b) == (c*c) || (c*c) + (a*a) == (b*b) || (c*c) + (b*b) == (a*a)) {
judge = "YES";
}
return judge;
}
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
loop_num = stdIn.nextInt();
String[] result_triangle = new String[loop_num];
for (int i = 0;i < loop_num; i++) {
result_triangle[i] = rightTriangle(stdIn.nextInt(), stdIn.nextInt(), stdIn.nextInt());
}
for (String result: result_triangle) {
System.out.println(result);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
0,
18,
13,
13,
17,
30,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
24,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
33,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
33,
49
],
[
49,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
51,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
71,
73
],
[
51,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
74,
82
],
[
82,
83
],
[
82,
84
],
[
49,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
49,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
8,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
102,
103
],
[
102,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
6,
118
],
[
118,
119
]
] | [
"//Is it a Right Triangle?\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\n Scanner sc = new Scanner(System.in);\n \n String ans[] = new String[1000];\n \n int set = sc.nextInt();\n int i = 0;\n for(; i<set; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a*a==b*b+c*c || a*a+b*b==c*c || a*a+c*c==b*b) {\n ans[i] = \"YES\";\n }else {\n ans[i] = \"NO\";\n }\n }\n //System.out.println(\"i=\"+i);\n for(int j=0; j<i; j++) {\n System.out.println(ans[j]);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\n Scanner sc = new Scanner(System.in);\n \n String ans[] = new String[1000];\n \n int set = sc.nextInt();\n int i = 0;\n for(; i<set; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a*a==b*b+c*c || a*a+b*b==c*c || a*a+c*c==b*b) {\n ans[i] = \"YES\";\n }else {\n ans[i] = \"NO\";\n }\n }\n //System.out.println(\"i=\"+i);\n for(int j=0; j<i; j++) {\n System.out.println(ans[j]);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\n Scanner sc = new Scanner(System.in);\n \n String ans[] = new String[1000];\n \n int set = sc.nextInt();\n int i = 0;\n for(; i<set; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a*a==b*b+c*c || a*a+b*b==c*c || a*a+c*c==b*b) {\n ans[i] = \"YES\";\n }else {\n ans[i] = \"NO\";\n }\n }\n //System.out.println(\"i=\"+i);\n for(int j=0; j<i; j++) {\n System.out.println(ans[j]);\n }\n }",
"main",
"{\n @SuppressWarnings(\"resource\")\n Scanner sc = new Scanner(System.in);\n \n String ans[] = new String[1000];\n \n int set = sc.nextInt();\n int i = 0;\n for(; i<set; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a*a==b*b+c*c || a*a+b*b==c*c || a*a+c*c==b*b) {\n ans[i] = \"YES\";\n }else {\n ans[i] = \"NO\";\n }\n }\n //System.out.println(\"i=\"+i);\n for(int j=0; j<i; j++) {\n System.out.println(ans[j]);\n }\n }",
"@SuppressWarnings(\"resource\")\n Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String ans[] = new String[1000];",
"ans",
"new String[1000]",
"1000",
"int set = sc.nextInt();",
"set",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i = 0;",
"i",
"0",
"for(; i<set; i++) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a*a==b*b+c*c || a*a+b*b==c*c || a*a+c*c==b*b) {\n ans[i] = \"YES\";\n }else {\n ans[i] = \"NO\";\n }\n }",
";",
"i<set",
"i",
"set",
"i++",
"i++",
"i",
"{\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a*a==b*b+c*c || a*a+b*b==c*c || a*a+c*c==b*b) {\n ans[i] = \"YES\";\n }else {\n ans[i] = \"NO\";\n }\n }",
"{\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n \n if(a*a==b*b+c*c || a*a+b*b==c*c || a*a+c*c==b*b) {\n ans[i] = \"YES\";\n }else {\n ans[i] = \"NO\";\n }\n }",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a*a==b*b+c*c || a*a+b*b==c*c || a*a+c*c==b*b) {\n ans[i] = \"YES\";\n }else {\n ans[i] = \"NO\";\n }",
"a*a==b*b+c*c || a*a+b*b==c*c || a*a+c*c==b*b",
"a*a==b*b+c*c || a*a+b*b==c*c || a*a+c*c==b*b",
"a*a==b*b+c*c",
"a*a",
"a",
"a",
"b*b+c*c",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"a*a+b*b==c*c",
"a*a+b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"a*a+c*c==b*b",
"a*a+c*c",
"a*a",
"a",
"a",
"c*c",
"c",
"c",
"b*b",
"b",
"b",
"{\n ans[i] = \"YES\";\n }",
"ans[i] = \"YES\"",
"ans[i]",
"ans",
"i",
"\"YES\"",
"{\n ans[i] = \"NO\";\n }",
"ans[i] = \"NO\"",
"ans[i]",
"ans",
"i",
"\"NO\"",
"for(int j=0; j<i; j++) {\n System.out.println(ans[j]);\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<i",
"j",
"i",
"j++",
"j++",
"j",
"{\n System.out.println(ans[j]);\n }",
"{\n System.out.println(ans[j]);\n }",
"System.out.println(ans[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"ans[j]",
"ans",
"j",
"String[] args",
"args"
] | //Is it a Right Triangle?
import java.util.Scanner;
class Main {
public static void main(String[] args) {
@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);
String ans[] = new String[1000];
int set = sc.nextInt();
int i = 0;
for(; i<set; i++) {
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a*a==b*b+c*c || a*a+b*b==c*c || a*a+c*c==b*b) {
ans[i] = "YES";
}else {
ans[i] = "NO";
}
}
//System.out.println("i="+i);
for(int j=0; j<i; j++) {
System.out.println(ans[j]);
}
}
} |
[
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
17,
14,
2,
2,
2,
2,
13,
13,
13,
2,
2,
13,
13,
13,
2,
2,
13,
13,
13,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
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
],
[
108,
11
],
[
108,
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
],
[
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
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
38,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
53,
54
],
[
54,
55
],
[
50,
56
],
[
38,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
59,
65
],
[
38,
66
],
[
66,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
68,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
66,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
66,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
14,
94
],
[
94,
95
],
[
94,
96
],
[
94,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
12,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
] | [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tint number = stdIn.nextInt();\n\n\t\tfor(int i = 0; i < number; i++)\n\t\t{\n\t\t\tint a = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint b = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint c = (int) Math.pow(stdIn.nextInt(), 2);\n\n\t\t\tif (a + b == c || a + c == b || b + c == a)\n\t\t\t{\n\t\t\t\tlist.add(\"YES\");\n\t\t\t} else\n\t\t\t{\n\t\t\t\tlist.add(\"NO\");\n\t\t\t}\n\t\t}\n\n\t\tfor (String str : list)\n\t\t{\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tint number = stdIn.nextInt();\n\n\t\tfor(int i = 0; i < number; i++)\n\t\t{\n\t\t\tint a = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint b = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint c = (int) Math.pow(stdIn.nextInt(), 2);\n\n\t\t\tif (a + b == c || a + c == b || b + c == a)\n\t\t\t{\n\t\t\t\tlist.add(\"YES\");\n\t\t\t} else\n\t\t\t{\n\t\t\t\tlist.add(\"NO\");\n\t\t\t}\n\t\t}\n\n\t\tfor (String str : list)\n\t\t{\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tint number = stdIn.nextInt();\n\n\t\tfor(int i = 0; i < number; i++)\n\t\t{\n\t\t\tint a = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint b = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint c = (int) Math.pow(stdIn.nextInt(), 2);\n\n\t\t\tif (a + b == c || a + c == b || b + c == a)\n\t\t\t{\n\t\t\t\tlist.add(\"YES\");\n\t\t\t} else\n\t\t\t{\n\t\t\t\tlist.add(\"NO\");\n\t\t\t}\n\t\t}\n\n\t\tfor (String str : list)\n\t\t{\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tint number = stdIn.nextInt();\n\n\t\tfor(int i = 0; i < number; i++)\n\t\t{\n\t\t\tint a = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint b = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint c = (int) Math.pow(stdIn.nextInt(), 2);\n\n\t\t\tif (a + b == c || a + c == b || b + c == a)\n\t\t\t{\n\t\t\t\tlist.add(\"YES\");\n\t\t\t} else\n\t\t\t{\n\t\t\t\tlist.add(\"NO\");\n\t\t\t}\n\t\t}\n\n\t\tfor (String str : list)\n\t\t{\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"List<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"int number = stdIn.nextInt();",
"number",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int i = 0; i < number; i++)\n\t\t{\n\t\t\tint a = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint b = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint c = (int) Math.pow(stdIn.nextInt(), 2);\n\n\t\t\tif (a + b == c || a + c == b || b + c == a)\n\t\t\t{\n\t\t\t\tlist.add(\"YES\");\n\t\t\t} else\n\t\t\t{\n\t\t\t\tlist.add(\"NO\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < number",
"i",
"number",
"i++",
"i++",
"i",
"{\n\t\t\tint a = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint b = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint c = (int) Math.pow(stdIn.nextInt(), 2);\n\n\t\t\tif (a + b == c || a + c == b || b + c == a)\n\t\t\t{\n\t\t\t\tlist.add(\"YES\");\n\t\t\t} else\n\t\t\t{\n\t\t\t\tlist.add(\"NO\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tint a = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint b = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint c = (int) Math.pow(stdIn.nextInt(), 2);\n\n\t\t\tif (a + b == c || a + c == b || b + c == a)\n\t\t\t{\n\t\t\t\tlist.add(\"YES\");\n\t\t\t} else\n\t\t\t{\n\t\t\t\tlist.add(\"NO\");\n\t\t\t}\n\t\t}",
"int a = (int) Math.pow(stdIn.nextInt(), 2);",
"a",
"(int) Math.pow(stdIn.nextInt(), 2)",
"Math.pow",
"Math",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"2",
"int b = (int) Math.pow(stdIn.nextInt(), 2);",
"b",
"(int) Math.pow(stdIn.nextInt(), 2)",
"Math.pow",
"Math",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"2",
"int c = (int) Math.pow(stdIn.nextInt(), 2);",
"c",
"(int) Math.pow(stdIn.nextInt(), 2)",
"Math.pow",
"Math",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"2",
"if (a + b == c || a + c == b || b + c == a)\n\t\t\t{\n\t\t\t\tlist.add(\"YES\");\n\t\t\t} else\n\t\t\t{\n\t\t\t\tlist.add(\"NO\");\n\t\t\t}",
"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\t\t\t\tlist.add(\"YES\");\n\t\t\t}",
"list.add(\"YES\")",
"list.add",
"list",
"\"YES\"",
"{\n\t\t\t\tlist.add(\"NO\");\n\t\t\t}",
"list.add(\"NO\")",
"list.add",
"list",
"\"NO\"",
"for (String str : list)\n\t\t{\n\t\t\tSystem.out.println(str);\n\t\t}",
"String str",
"list",
"{\n\t\t\tSystem.out.println(str);\n\t\t}",
"{\n\t\t\tSystem.out.println(str);\n\t\t}",
"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{\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tint number = stdIn.nextInt();\n\n\t\tfor(int i = 0; i < number; i++)\n\t\t{\n\t\t\tint a = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint b = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint c = (int) Math.pow(stdIn.nextInt(), 2);\n\n\t\t\tif (a + b == c || a + c == b || b + c == a)\n\t\t\t{\n\t\t\t\tlist.add(\"YES\");\n\t\t\t} else\n\t\t\t{\n\t\t\t\tlist.add(\"NO\");\n\t\t\t}\n\t\t}\n\n\t\tfor (String str : list)\n\t\t{\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner stdIn = new Scanner(System.in);\n\n\t\tList<String> list = new ArrayList<String>();\n\n\t\tint number = stdIn.nextInt();\n\n\t\tfor(int i = 0; i < number; i++)\n\t\t{\n\t\t\tint a = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint b = (int) Math.pow(stdIn.nextInt(), 2);\n\t\t\tint c = (int) Math.pow(stdIn.nextInt(), 2);\n\n\t\t\tif (a + b == c || a + c == b || b + c == a)\n\t\t\t{\n\t\t\t\tlist.add(\"YES\");\n\t\t\t} else\n\t\t\t{\n\t\t\t\tlist.add(\"NO\");\n\t\t\t}\n\t\t}\n\n\t\tfor (String str : list)\n\t\t{\n\t\t\tSystem.out.println(str);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner stdIn = new Scanner(System.in);
List<String> list = new ArrayList<String>();
int number = stdIn.nextInt();
for(int i = 0; i < number; i++)
{
int a = (int) Math.pow(stdIn.nextInt(), 2);
int b = (int) Math.pow(stdIn.nextInt(), 2);
int c = (int) Math.pow(stdIn.nextInt(), 2);
if (a + b == c || a + c == b || b + c == a)
{
list.add("YES");
} else
{
list.add("NO");
}
}
for (String str : list)
{
System.out.println(str);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
41,
13,
20,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
14,
2,
18,
13,
13,
13,
30,
0,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
13,
30,
0,
13,
2,
18,
13,
13,
18,
13,
13,
41,
13,
17,
14,
2,
2,
13,
13,
13,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
40,
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
],
[
26,
28
],
[
21,
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
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
21,
61
],
[
61,
62
],
[
61,
63
],
[
21,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
64,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
21,
93
],
[
93,
94
],
[
93,
95
],
[
21,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
21,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
21,
112
],
[
112,
113
],
[
6,
114
],
[
114,
115
]
] | [
"import java.util.*;\n\nclass Main{\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\n\tint n = sc.nextInt();\n\twhile(n!=0){\n\n\t int[] num = new int[3];\n\t int max = 0;\n\t for(int i=0; i<3; i++){\n\t\tnum[i] = sc.nextInt();\n\t\tif(num[i]>max){max = num[i];}\n\t }\n\n\t //String ans = \"NO\";\n\t int sum = 0;\n\t for(int i=0; i<3; i++){\n\t\tif(num[i]!=max){\n\t\t sum += num[i]*num[i];\n\t\t}\n\t }\n\t String ans = \"NO\";\n\t if(max*max==sum){ans = \"YES\";}\n\n\n\n\t //int[] num2 = new int[3];\n\t //num2[0] = num[0]*num[0];\n\t //num2[1] = num[1]*num[1];\n\t //num2[2] = num[2]*num[2];\n\t //if(num2[0]==(num[1]+num[2])){ans=\"YES\";}\n\t //if(num2[1]==(num[0]+num[2])){ans=\"YES\";}\n\t //if(num2[2]==(num[0]+num[1])){ans=\"YES\";}\n\n\t System.out.println(ans);\n\t n--;\n\t}\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\n\tint n = sc.nextInt();\n\twhile(n!=0){\n\n\t int[] num = new int[3];\n\t int max = 0;\n\t for(int i=0; i<3; i++){\n\t\tnum[i] = sc.nextInt();\n\t\tif(num[i]>max){max = num[i];}\n\t }\n\n\t //String ans = \"NO\";\n\t int sum = 0;\n\t for(int i=0; i<3; i++){\n\t\tif(num[i]!=max){\n\t\t sum += num[i]*num[i];\n\t\t}\n\t }\n\t String ans = \"NO\";\n\t if(max*max==sum){ans = \"YES\";}\n\n\n\n\t //int[] num2 = new int[3];\n\t //num2[0] = num[0]*num[0];\n\t //num2[1] = num[1]*num[1];\n\t //num2[2] = num[2]*num[2];\n\t //if(num2[0]==(num[1]+num[2])){ans=\"YES\";}\n\t //if(num2[1]==(num[0]+num[2])){ans=\"YES\";}\n\t //if(num2[2]==(num[0]+num[1])){ans=\"YES\";}\n\n\t System.out.println(ans);\n\t n--;\n\t}\n }\n}",
"Main",
"public static void main(String[] args){\n\tScanner sc = new Scanner(System.in);\n\n\tint n = sc.nextInt();\n\twhile(n!=0){\n\n\t int[] num = new int[3];\n\t int max = 0;\n\t for(int i=0; i<3; i++){\n\t\tnum[i] = sc.nextInt();\n\t\tif(num[i]>max){max = num[i];}\n\t }\n\n\t //String ans = \"NO\";\n\t int sum = 0;\n\t for(int i=0; i<3; i++){\n\t\tif(num[i]!=max){\n\t\t sum += num[i]*num[i];\n\t\t}\n\t }\n\t String ans = \"NO\";\n\t if(max*max==sum){ans = \"YES\";}\n\n\n\n\t //int[] num2 = new int[3];\n\t //num2[0] = num[0]*num[0];\n\t //num2[1] = num[1]*num[1];\n\t //num2[2] = num[2]*num[2];\n\t //if(num2[0]==(num[1]+num[2])){ans=\"YES\";}\n\t //if(num2[1]==(num[0]+num[2])){ans=\"YES\";}\n\t //if(num2[2]==(num[0]+num[1])){ans=\"YES\";}\n\n\t System.out.println(ans);\n\t n--;\n\t}\n }",
"main",
"{\n\tScanner sc = new Scanner(System.in);\n\n\tint n = sc.nextInt();\n\twhile(n!=0){\n\n\t int[] num = new int[3];\n\t int max = 0;\n\t for(int i=0; i<3; i++){\n\t\tnum[i] = sc.nextInt();\n\t\tif(num[i]>max){max = num[i];}\n\t }\n\n\t //String ans = \"NO\";\n\t int sum = 0;\n\t for(int i=0; i<3; i++){\n\t\tif(num[i]!=max){\n\t\t sum += num[i]*num[i];\n\t\t}\n\t }\n\t String ans = \"NO\";\n\t if(max*max==sum){ans = \"YES\";}\n\n\n\n\t //int[] num2 = new int[3];\n\t //num2[0] = num[0]*num[0];\n\t //num2[1] = num[1]*num[1];\n\t //num2[2] = num[2]*num[2];\n\t //if(num2[0]==(num[1]+num[2])){ans=\"YES\";}\n\t //if(num2[1]==(num[0]+num[2])){ans=\"YES\";}\n\t //if(num2[2]==(num[0]+num[1])){ans=\"YES\";}\n\n\t System.out.println(ans);\n\t n--;\n\t}\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\n\t int[] num = new int[3];\n\t int max = 0;\n\t for(int i=0; i<3; i++){\n\t\tnum[i] = sc.nextInt();\n\t\tif(num[i]>max){max = num[i];}\n\t }\n\n\t //String ans = \"NO\";\n\t int sum = 0;\n\t for(int i=0; i<3; i++){\n\t\tif(num[i]!=max){\n\t\t sum += num[i]*num[i];\n\t\t}\n\t }\n\t String ans = \"NO\";\n\t if(max*max==sum){ans = \"YES\";}\n\n\n\n\t //int[] num2 = new int[3];\n\t //num2[0] = num[0]*num[0];\n\t //num2[1] = num[1]*num[1];\n\t //num2[2] = num[2]*num[2];\n\t //if(num2[0]==(num[1]+num[2])){ans=\"YES\";}\n\t //if(num2[1]==(num[0]+num[2])){ans=\"YES\";}\n\t //if(num2[2]==(num[0]+num[1])){ans=\"YES\";}\n\n\t System.out.println(ans);\n\t n--;\n\t}",
"n!=0",
"n",
"0",
"{\n\n\t int[] num = new int[3];\n\t int max = 0;\n\t for(int i=0; i<3; i++){\n\t\tnum[i] = sc.nextInt();\n\t\tif(num[i]>max){max = num[i];}\n\t }\n\n\t //String ans = \"NO\";\n\t int sum = 0;\n\t for(int i=0; i<3; i++){\n\t\tif(num[i]!=max){\n\t\t sum += num[i]*num[i];\n\t\t}\n\t }\n\t String ans = \"NO\";\n\t if(max*max==sum){ans = \"YES\";}\n\n\n\n\t //int[] num2 = new int[3];\n\t //num2[0] = num[0]*num[0];\n\t //num2[1] = num[1]*num[1];\n\t //num2[2] = num[2]*num[2];\n\t //if(num2[0]==(num[1]+num[2])){ans=\"YES\";}\n\t //if(num2[1]==(num[0]+num[2])){ans=\"YES\";}\n\t //if(num2[2]==(num[0]+num[1])){ans=\"YES\";}\n\n\t System.out.println(ans);\n\t n--;\n\t}",
"int[] num = new int[3];",
"num",
"new int[3]",
"3",
"int max = 0;",
"max",
"0",
"for(int i=0; i<3; i++){\n\t\tnum[i] = sc.nextInt();\n\t\tif(num[i]>max){max = num[i];}\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\tnum[i] = sc.nextInt();\n\t\tif(num[i]>max){max = num[i];}\n\t }",
"{\n\t\tnum[i] = sc.nextInt();\n\t\tif(num[i]>max){max = num[i];}\n\t }",
"num[i] = sc.nextInt()",
"num[i]",
"num",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(num[i]>max){max = num[i];}",
"num[i]>max",
"num[i]",
"num",
"i",
"max",
"{max = num[i];}",
"max = num[i]",
"max",
"num[i]",
"num",
"i",
"int sum = 0;",
"sum",
"0",
"for(int i=0; i<3; i++){\n\t\tif(num[i]!=max){\n\t\t sum += num[i]*num[i];\n\t\t}\n\t }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\tif(num[i]!=max){\n\t\t sum += num[i]*num[i];\n\t\t}\n\t }",
"{\n\t\tif(num[i]!=max){\n\t\t sum += num[i]*num[i];\n\t\t}\n\t }",
"if(num[i]!=max){\n\t\t sum += num[i]*num[i];\n\t\t}",
"num[i]!=max",
"num[i]",
"num",
"i",
"max",
"{\n\t\t sum += num[i]*num[i];\n\t\t}",
"sum += num[i]*num[i]",
"sum",
"num[i]*num[i]",
"num[i]",
"num",
"i",
"num[i]",
"num",
"i",
"String ans = \"NO\";",
"ans",
"\"NO\"",
"if(max*max==sum){ans = \"YES\";}",
"max*max==sum",
"max*max",
"max",
"max",
"sum",
"{ans = \"YES\";}",
"ans = \"YES\"",
"ans",
"\"YES\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"n--",
"n",
"String[] args",
"args"
] | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
while(n!=0){
int[] num = new int[3];
int max = 0;
for(int i=0; i<3; i++){
num[i] = sc.nextInt();
if(num[i]>max){max = num[i];}
}
//String ans = "NO";
int sum = 0;
for(int i=0; i<3; i++){
if(num[i]!=max){
sum += num[i]*num[i];
}
}
String ans = "NO";
if(max*max==sum){ans = "YES";}
//int[] num2 = new int[3];
//num2[0] = num[0]*num[0];
//num2[1] = num[1]*num[1];
//num2[2] = num[2]*num[2];
//if(num2[0]==(num[1]+num[2])){ans="YES";}
//if(num2[1]==(num[0]+num[2])){ans="YES";}
//if(num2[2]==(num[0]+num[1])){ans="YES";}
System.out.println(ans);
n--;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
4,
18,
13,
0,
13,
20,
13,
0,
13,
20,
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,
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,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
8,
33
],
[
33,
34
],
[
33,
35
],
[
8,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
49,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
49,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
8,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
86,
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
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
116,
118
],
[
111,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
110,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
130,
132
],
[
86,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
139,
141
],
[
134,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
146,
147
],
[
146,
148
],
[
133,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
149,
153
],
[
153,
154
],
[
153,
155
],
[
84,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
84,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
6,
168
],
[
168,
169
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] a){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] x, y, z;\n\t\tint swap;\n\t\t\n\t\tint n = scan.nextInt();\n\t\tx = new int[n];\n\t\ty = new int[n];\n\t\tz = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tx[i] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t\tz[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(x[i]*x[i] + y[i]*y[i] == z[i]*z[i] ||\n\t\t\t x[i]*x[i] + z[i]*z[i] == y[i]*y[i] ||\n\t\t\t z[i]*z[i] + y[i]*y[i] == x[i]*x[i]) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] a){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] x, y, z;\n\t\tint swap;\n\t\t\n\t\tint n = scan.nextInt();\n\t\tx = new int[n];\n\t\ty = new int[n];\n\t\tz = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tx[i] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t\tz[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(x[i]*x[i] + y[i]*y[i] == z[i]*z[i] ||\n\t\t\t x[i]*x[i] + z[i]*z[i] == y[i]*y[i] ||\n\t\t\t z[i]*z[i] + y[i]*y[i] == x[i]*x[i]) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] a){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] x, y, z;\n\t\tint swap;\n\t\t\n\t\tint n = scan.nextInt();\n\t\tx = new int[n];\n\t\ty = new int[n];\n\t\tz = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tx[i] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t\tz[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(x[i]*x[i] + y[i]*y[i] == z[i]*z[i] ||\n\t\t\t x[i]*x[i] + z[i]*z[i] == y[i]*y[i] ||\n\t\t\t z[i]*z[i] + y[i]*y[i] == x[i]*x[i]) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint[] x, y, z;\n\t\tint swap;\n\t\t\n\t\tint n = scan.nextInt();\n\t\tx = new int[n];\n\t\ty = new int[n];\n\t\tz = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tx[i] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t\tz[i] = scan.nextInt();\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(x[i]*x[i] + y[i]*y[i] == z[i]*z[i] ||\n\t\t\t x[i]*x[i] + z[i]*z[i] == y[i]*y[i] ||\n\t\t\t z[i]*z[i] + y[i]*y[i] == x[i]*x[i]) System.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[] x",
"x",
"y",
"y",
"z;",
"z",
"int swap;",
"swap",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"x = new int[n]",
"x",
"new int[n]",
"n",
"y = new int[n]",
"y",
"new int[n]",
"n",
"z = new int[n]",
"z",
"new int[n]",
"n",
"for(int i = 0; i < n; i++){\n\t\t\tx[i] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t\tz[i] = scan.nextInt();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx[i] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t\tz[i] = scan.nextInt();\n\t\t}",
"{\n\t\t\tx[i] = scan.nextInt();\n\t\t\ty[i] = scan.nextInt();\n\t\t\tz[i] = scan.nextInt();\n\t\t}",
"x[i] = scan.nextInt()",
"x[i]",
"x",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"y[i] = scan.nextInt()",
"y[i]",
"y",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"z[i] = scan.nextInt()",
"z[i]",
"z",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0; i < n; i++){\n\t\t\tif(x[i]*x[i] + y[i]*y[i] == z[i]*z[i] ||\n\t\t\t x[i]*x[i] + z[i]*z[i] == y[i]*y[i] ||\n\t\t\t z[i]*z[i] + y[i]*y[i] == x[i]*x[i]) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(x[i]*x[i] + y[i]*y[i] == z[i]*z[i] ||\n\t\t\t x[i]*x[i] + z[i]*z[i] == y[i]*y[i] ||\n\t\t\t z[i]*z[i] + y[i]*y[i] == x[i]*x[i]) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"{\n\t\t\tif(x[i]*x[i] + y[i]*y[i] == z[i]*z[i] ||\n\t\t\t x[i]*x[i] + z[i]*z[i] == y[i]*y[i] ||\n\t\t\t z[i]*z[i] + y[i]*y[i] == x[i]*x[i]) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"if(x[i]*x[i] + y[i]*y[i] == z[i]*z[i] ||\n\t\t\t x[i]*x[i] + z[i]*z[i] == y[i]*y[i] ||\n\t\t\t z[i]*z[i] + y[i]*y[i] == x[i]*x[i]) System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");",
"x[i]*x[i] + y[i]*y[i] == z[i]*z[i] ||\n\t\t\t x[i]*x[i] + z[i]*z[i] == y[i]*y[i] ||\n\t\t\t z[i]*z[i] + y[i]*y[i] == x[i]*x[i]",
"x[i]*x[i] + y[i]*y[i] == z[i]*z[i] ||\n\t\t\t x[i]*x[i] + z[i]*z[i] == y[i]*y[i] ||\n\t\t\t z[i]*z[i] + y[i]*y[i] == x[i]*x[i]",
"x[i]*x[i] + y[i]*y[i] == z[i]*z[i]",
"x[i]*x[i] + y[i]*y[i]",
"x[i]*x[i]",
"x[i]",
"x",
"i",
"x[i]",
"x",
"i",
"y[i]*y[i]",
"y[i]",
"y",
"i",
"y[i]",
"y",
"i",
"z[i]*z[i]",
"z[i]",
"z",
"i",
"z[i]",
"z",
"i",
"x[i]*x[i] + z[i]*z[i] == y[i]*y[i]",
"x[i]*x[i] + z[i]*z[i]",
"x[i]*x[i]",
"x[i]",
"x",
"i",
"x[i]",
"x",
"i",
"z[i]*z[i]",
"z[i]",
"z",
"i",
"z[i]",
"z",
"i",
"y[i]*y[i]",
"y[i]",
"y",
"i",
"y[i]",
"y",
"i",
"z[i]*z[i] + y[i]*y[i] == x[i]*x[i]",
"z[i]*z[i] + y[i]*y[i]",
"z[i]*z[i]",
"z[i]",
"z",
"i",
"z[i]",
"z",
"i",
"y[i]*y[i]",
"y[i]",
"y",
"i",
"y[i]",
"y",
"i",
"x[i]*x[i]",
"x[i]",
"x",
"i",
"x[i]",
"x",
"i",
"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"
] | import java.util.Scanner;
class Main {
public static void main(String[] a){
Scanner scan = new Scanner(System.in);
int[] x, y, z;
int swap;
int n = scan.nextInt();
x = new int[n];
y = new int[n];
z = new int[n];
for(int i = 0; i < n; i++){
x[i] = scan.nextInt();
y[i] = scan.nextInt();
z[i] = scan.nextInt();
}
for(int i = 0; i < n; i++){
if(x[i]*x[i] + y[i]*y[i] == z[i]*z[i] ||
x[i]*x[i] + z[i]*z[i] == y[i]*y[i] ||
z[i]*z[i] + y[i]*y[i] == x[i]*x[i]) System.out.println("YES");
else System.out.println("NO");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
17,
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,
39,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
4,
18,
13,
18,
13,
17,
4,
18,
13,
13,
14,
2,
2,
18,
13,
17,
18,
13,
17,
2,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
30,
4,
18,
18,
13,
13,
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
],
[
123,
11
],
[
123,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
15,
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
],
[
50,
56
],
[
47,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
59,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
59,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
47,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
47,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
96,
98
],
[
91,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
82,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
82,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
12,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
] | [
"import java.io.*;\nimport java.lang.reflect.Array;\nimport java.util.Arrays;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n int num = Integer.parseInt(br.readLine()); \n \tfor(int i = 0; i < num; i++){\n \t\tString[] in = br.readLine().split(\" \",0);\n \t\tint[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};\n \t\tArrays.sort(data);\n \t\tif(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else {\n \t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n \t}\n\n\n }catch (Exception e) {\n\t\t\t// TODO: handle exception\n \tSystem.exit(0);\n\t\t}\n\t\t\n\t}\n\n}",
"import java.io.*;",
"io.*",
"java",
"import java.lang.reflect.Array;",
"Array",
"java.lang.reflect",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n int num = Integer.parseInt(br.readLine()); \n \tfor(int i = 0; i < num; i++){\n \t\tString[] in = br.readLine().split(\" \",0);\n \t\tint[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};\n \t\tArrays.sort(data);\n \t\tif(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else {\n \t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n \t}\n\n\n }catch (Exception e) {\n\t\t\t// TODO: handle exception\n \tSystem.exit(0);\n\t\t}\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n int num = Integer.parseInt(br.readLine()); \n \tfor(int i = 0; i < num; i++){\n \t\tString[] in = br.readLine().split(\" \",0);\n \t\tint[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};\n \t\tArrays.sort(data);\n \t\tif(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else {\n \t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n \t}\n\n\n }catch (Exception e) {\n\t\t\t// TODO: handle exception\n \tSystem.exit(0);\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n int num = Integer.parseInt(br.readLine()); \n \tfor(int i = 0; i < num; i++){\n \t\tString[] in = br.readLine().split(\" \",0);\n \t\tint[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};\n \t\tArrays.sort(data);\n \t\tif(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else {\n \t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n \t}\n\n\n }catch (Exception e) {\n\t\t\t// TODO: handle exception\n \tSystem.exit(0);\n\t\t}\n\t\t\n\t}",
"try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n int num = Integer.parseInt(br.readLine()); \n \tfor(int i = 0; i < num; i++){\n \t\tString[] in = br.readLine().split(\" \",0);\n \t\tint[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};\n \t\tArrays.sort(data);\n \t\tif(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else {\n \t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n \t}\n\n\n }catch (Exception e) {\n\t\t\t// TODO: handle exception\n \tSystem.exit(0);\n\t\t}",
"catch (Exception e) {\n\t\t\t// TODO: handle exception\n \tSystem.exit(0);\n\t\t}",
"Exception e",
"{\n\t\t\t// TODO: handle exception\n \tSystem.exit(0);\n\t\t}",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n int num = Integer.parseInt(br.readLine()); \n \tfor(int i = 0; i < num; i++){\n \t\tString[] in = br.readLine().split(\" \",0);\n \t\tint[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};\n \t\tArrays.sort(data);\n \t\tif(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else {\n \t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\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))",
"int num = Integer.parseInt(br.readLine());",
"num",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 0; i < num; i++){\n \t\tString[] in = br.readLine().split(\" \",0);\n \t\tint[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};\n \t\tArrays.sort(data);\n \t\tif(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else {\n \t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n \t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n \t\tString[] in = br.readLine().split(\" \",0);\n \t\tint[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};\n \t\tArrays.sort(data);\n \t\tif(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else {\n \t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n \t}",
"{\n \t\tString[] in = br.readLine().split(\" \",0);\n \t\tint[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};\n \t\tArrays.sort(data);\n \t\tif(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else {\n \t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n \t}",
"String[] in = br.readLine().split(\" \",0);",
"in",
"br.readLine().split(\" \",0)",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"0",
"int[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};",
"data",
"{Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])}",
"Integer.parseInt(in[0])",
"Integer.parseInt",
"Integer",
"in[0]",
"in",
"0",
"Integer.parseInt(in[1])",
"Integer.parseInt",
"Integer",
"in[1]",
"in",
"1",
"Integer.parseInt(in[2])",
"Integer.parseInt",
"Integer",
"in[2]",
"in",
"2",
"Arrays.sort(data)",
"Arrays.sort",
"Arrays",
"data",
"if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else {\n \t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}",
"data[2] * data[2] == data[1] * data[1] + data[0] * data[0]",
"data[2] * data[2]",
"data[2]",
"data",
"2",
"data[2]",
"data",
"2",
"data[1] * data[1] + data[0] * data[0]",
"data[1] * data[1]",
"data[1]",
"data",
"1",
"data[1]",
"data",
"1",
"data[0] * data[0]",
"data[0]",
"data",
"0",
"data[0]",
"data",
"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\t\t}",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n int num = Integer.parseInt(br.readLine()); \n \tfor(int i = 0; i < num; i++){\n \t\tString[] in = br.readLine().split(\" \",0);\n \t\tint[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};\n \t\tArrays.sort(data);\n \t\tif(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else {\n \t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n \t}\n\n\n }catch (Exception e) {\n\t\t\t// TODO: handle exception\n \tSystem.exit(0);\n\t\t}\n\t\t\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n int num = Integer.parseInt(br.readLine()); \n \tfor(int i = 0; i < num; i++){\n \t\tString[] in = br.readLine().split(\" \",0);\n \t\tint[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};\n \t\tArrays.sort(data);\n \t\tif(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){\n \t\t\tSystem.out.println(\"YES\");\n \t\t}else {\n \t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n \t}\n\n\n }catch (Exception e) {\n\t\t\t// TODO: handle exception\n \tSystem.exit(0);\n\t\t}\n\t\t\n\t}\n\n}",
"Main"
] | import java.io.*;
import java.lang.reflect.Array;
import java.util.Arrays;
public class Main {
public static void main(String[] args) {
// TODO Auto-generated method stub
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
int num = Integer.parseInt(br.readLine());
for(int i = 0; i < num; i++){
String[] in = br.readLine().split(" ",0);
int[] data = {Integer.parseInt(in[0]),Integer.parseInt(in[1]),Integer.parseInt(in[2])};
Arrays.sort(data);
if(data[2] * data[2] == data[1] * data[1] + data[0] * data[0]){
System.out.println("YES");
}else {
System.out.println("NO");
}
}
}catch (Exception e) {
// TODO: handle exception
System.exit(0);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
23,
13,
12,
13,
30,
14,
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,
23,
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,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
13,
13,
4,
13,
18,
13,
17,
18,
13,
17,
18,
13,
17,
12,
13,
30,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
11,
1,
41,
13,
2,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
14,
2,
18,
13,
13,
18,
13,
13,
0,
13,
13,
0,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
6,
11
],
[
11,
12
],
[
4,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
25,
27
],
[
16,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
16,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
13,
40
],
[
40,
41
],
[
13,
42
],
[
42,
43
],
[
13,
44
],
[
44,
45
],
[
4,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
48,
57
],
[
57,
58
],
[
57,
59
],
[
48,
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
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
74,
84
],
[
84,
85
],
[
85,
86
],
[
74,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
94,
95
],
[
73,
96
],
[
96,
97
],
[
96,
98
],
[
73,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
107,
109
],
[
4,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
112,
115
],
[
115,
116
],
[
112,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
124,
126
],
[
117,
127
],
[
127,
128
],
[
128,
129
],
[
117,
130
],
[
131,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
139,
141
],
[
135,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
144,
146
],
[
135,
147
],
[
147,
148
],
[
148,
149
],
[
135,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
153,
154
],
[
153,
155
],
[
152,
156
],
[
156,
157
],
[
156,
158
],
[
151,
159
],
[
159,
160
],
[
159,
161
],
[
131,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
164,
166
],
[
131,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
171,
172
],
[
171,
173
],
[
131,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
110,
179
],
[
179,
180
]
] | [
"import java.util.*;\n\nclass Main {\n\tpublic static void main (String [] args){\n\t\tprintAns();\t\n\t}\n\n\tstatic void isRightTriangle(int a, int b, int c){\n\t\tif(a*a + b*b == c*c) System.out.println(\"YES\");\n\t\telse System.out.println(\"NO\");\n\t}\n\n\tstatic void printAns(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint set = sc.nextInt();\n\t\tint[] triangle = new int[3];\n\n\t\tfor(int cnt=0; cnt<set; cnt++){\n\t\t\tfor(int i=0; i<triangle.length; i++){\n\t\t\t\ttriangle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsort(triangle);\n\t\t\tisRightTriangle(triangle[0], triangle[1], triangle[2]);\n\t\t}\t\n\t}\n\n\tstatic void sort(int[] data){\n\t\tint min, tmp;\n\t\tfor(int i=0; i<data.length; i++){\n\t\t\tmin = i;\n\t\t\tfor(int j=i+1; j<data.length; j++)\n\t\t\t\tif(data[min]>data[j]) min = j;\n\t\t\ttmp = data[i];\n\t\t\tdata[i] = data[min];\n\t\t\tdata[min] = tmp;\n\t\t}\n\t}\t\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\tpublic static void main (String [] args){\n\t\tprintAns();\t\n\t}\n\n\tstatic void isRightTriangle(int a, int b, int c){\n\t\tif(a*a + b*b == c*c) System.out.println(\"YES\");\n\t\telse System.out.println(\"NO\");\n\t}\n\n\tstatic void printAns(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint set = sc.nextInt();\n\t\tint[] triangle = new int[3];\n\n\t\tfor(int cnt=0; cnt<set; cnt++){\n\t\t\tfor(int i=0; i<triangle.length; i++){\n\t\t\t\ttriangle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsort(triangle);\n\t\t\tisRightTriangle(triangle[0], triangle[1], triangle[2]);\n\t\t}\t\n\t}\n\n\tstatic void sort(int[] data){\n\t\tint min, tmp;\n\t\tfor(int i=0; i<data.length; i++){\n\t\t\tmin = i;\n\t\t\tfor(int j=i+1; j<data.length; j++)\n\t\t\t\tif(data[min]>data[j]) min = j;\n\t\t\ttmp = data[i];\n\t\t\tdata[i] = data[min];\n\t\t\tdata[min] = tmp;\n\t\t}\n\t}\t\n}",
"Main",
"public static void main (String [] args){\n\t\tprintAns();\t\n\t}",
"main",
"{\n\t\tprintAns();\t\n\t}",
"printAns()",
"printAns",
"String [] args",
"args",
"static void isRightTriangle(int a, int b, int c){\n\t\tif(a*a + b*b == c*c) System.out.println(\"YES\");\n\t\telse System.out.println(\"NO\");\n\t}",
"isRightTriangle",
"{\n\t\tif(a*a + b*b == c*c) System.out.println(\"YES\");\n\t\telse System.out.println(\"NO\");\n\t}",
"if(a*a + b*b == c*c) System.out.println(\"YES\");\n\t\telse System.out.println(\"NO\");",
"a*a + b*b == c*c",
"a*a + b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"static void printAns(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint set = sc.nextInt();\n\t\tint[] triangle = new int[3];\n\n\t\tfor(int cnt=0; cnt<set; cnt++){\n\t\t\tfor(int i=0; i<triangle.length; i++){\n\t\t\t\ttriangle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsort(triangle);\n\t\t\tisRightTriangle(triangle[0], triangle[1], triangle[2]);\n\t\t}\t\n\t}",
"printAns",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint set = sc.nextInt();\n\t\tint[] triangle = new int[3];\n\n\t\tfor(int cnt=0; cnt<set; cnt++){\n\t\t\tfor(int i=0; i<triangle.length; i++){\n\t\t\t\ttriangle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsort(triangle);\n\t\t\tisRightTriangle(triangle[0], triangle[1], triangle[2]);\n\t\t}\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int set = sc.nextInt();",
"set",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] triangle = new int[3];",
"triangle",
"new int[3]",
"3",
"for(int cnt=0; cnt<set; cnt++){\n\t\t\tfor(int i=0; i<triangle.length; i++){\n\t\t\t\ttriangle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsort(triangle);\n\t\t\tisRightTriangle(triangle[0], triangle[1], triangle[2]);\n\t\t}",
"int cnt=0;",
"int cnt=0;",
"cnt",
"0",
"cnt<set",
"cnt",
"set",
"cnt++",
"cnt++",
"cnt",
"{\n\t\t\tfor(int i=0; i<triangle.length; i++){\n\t\t\t\ttriangle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsort(triangle);\n\t\t\tisRightTriangle(triangle[0], triangle[1], triangle[2]);\n\t\t}",
"{\n\t\t\tfor(int i=0; i<triangle.length; i++){\n\t\t\t\ttriangle[i] = sc.nextInt();\n\t\t\t}\n\t\t\tsort(triangle);\n\t\t\tisRightTriangle(triangle[0], triangle[1], triangle[2]);\n\t\t}",
"for(int i=0; i<triangle.length; i++){\n\t\t\t\ttriangle[i] = sc.nextInt();\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<triangle.length",
"i",
"triangle.length",
"triangle",
"triangle.length",
"i++",
"i++",
"i",
"{\n\t\t\t\ttriangle[i] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\ttriangle[i] = sc.nextInt();\n\t\t\t}",
"triangle[i] = sc.nextInt()",
"triangle[i]",
"triangle",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sort(triangle)",
"sort",
"triangle",
"isRightTriangle(triangle[0], triangle[1], triangle[2])",
"isRightTriangle",
"triangle[0]",
"triangle",
"0",
"triangle[1]",
"triangle",
"1",
"triangle[2]",
"triangle",
"2",
"static void sort(int[] data){\n\t\tint min, tmp;\n\t\tfor(int i=0; i<data.length; i++){\n\t\t\tmin = i;\n\t\t\tfor(int j=i+1; j<data.length; j++)\n\t\t\t\tif(data[min]>data[j]) min = j;\n\t\t\ttmp = data[i];\n\t\t\tdata[i] = data[min];\n\t\t\tdata[min] = tmp;\n\t\t}\n\t}",
"sort",
"{\n\t\tint min, tmp;\n\t\tfor(int i=0; i<data.length; i++){\n\t\t\tmin = i;\n\t\t\tfor(int j=i+1; j<data.length; j++)\n\t\t\t\tif(data[min]>data[j]) min = j;\n\t\t\ttmp = data[i];\n\t\t\tdata[i] = data[min];\n\t\t\tdata[min] = tmp;\n\t\t}\n\t}",
"int min",
"min",
"tmp;",
"tmp",
"for(int i=0; i<data.length; i++){\n\t\t\tmin = i;\n\t\t\tfor(int j=i+1; j<data.length; j++)\n\t\t\t\tif(data[min]>data[j]) min = j;\n\t\t\ttmp = data[i];\n\t\t\tdata[i] = data[min];\n\t\t\tdata[min] = tmp;\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<data.length",
"i",
"data.length",
"data",
"data.length",
"i++",
"i++",
"i",
"{\n\t\t\tmin = i;\n\t\t\tfor(int j=i+1; j<data.length; j++)\n\t\t\t\tif(data[min]>data[j]) min = j;\n\t\t\ttmp = data[i];\n\t\t\tdata[i] = data[min];\n\t\t\tdata[min] = tmp;\n\t\t}",
"{\n\t\t\tmin = i;\n\t\t\tfor(int j=i+1; j<data.length; j++)\n\t\t\t\tif(data[min]>data[j]) min = j;\n\t\t\ttmp = data[i];\n\t\t\tdata[i] = data[min];\n\t\t\tdata[min] = tmp;\n\t\t}",
"min = i",
"min",
"i",
"for(int j=i+1; j<data.length; j++)\n\t\t\t\tif(data[min]>data[j]) min = j;",
"int j=i+1;",
"int j=i+1;",
"j",
"i+1",
"i",
"1",
"j<data.length",
"j",
"data.length",
"data",
"data.length",
"j++",
"j++",
"j",
"if(data[min]>data[j]) min = j;",
"if(data[min]>data[j]) min = j;",
"data[min]>data[j]",
"data[min]",
"data",
"min",
"data[j]",
"data",
"j",
"min = j",
"min",
"j",
"tmp = data[i]",
"tmp",
"data[i]",
"data",
"i",
"data[i] = data[min]",
"data[i]",
"data",
"i",
"data[min]",
"data",
"min",
"data[min] = tmp",
"data[min]",
"data",
"min",
"tmp",
"int[] data",
"data"
] | import java.util.*;
class Main {
public static void main (String [] args){
printAns();
}
static void isRightTriangle(int a, int b, int c){
if(a*a + b*b == c*c) System.out.println("YES");
else System.out.println("NO");
}
static void printAns(){
Scanner sc = new Scanner(System.in);
int set = sc.nextInt();
int[] triangle = new int[3];
for(int cnt=0; cnt<set; cnt++){
for(int i=0; i<triangle.length; i++){
triangle[i] = sc.nextInt();
}
sort(triangle);
isRightTriangle(triangle[0], triangle[1], triangle[2]);
}
}
static void sort(int[] data){
int min, tmp;
for(int i=0; i<data.length; i++){
min = i;
for(int j=i+1; j<data.length; j++)
if(data[min]>data[j]) min = j;
tmp = data[i];
data[i] = data[min];
data[min] = tmp;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
29,
2,
13,
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,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
8,
2,
2,
4,
13,
18,
13,
17,
4,
13,
18,
13,
17,
4,
13,
18,
13,
17,
17,
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
],
[
13,
14
],
[
13,
15
],
[
9,
16
],
[
16,
17
],
[
7,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
29,
31
],
[
20,
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
],
[
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
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
45,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
45,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
77,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
76,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
75,
93
],
[
75,
94
],
[
18,
95
],
[
95,
96
]
] | [
"import java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main {\n\n static int square(int i){\n\treturn i * i;\n }\n\n public static void main(String[] args){\n\tScanner stdin = new Scanner(System.in);\n\tint limit = stdin.nextInt();\n\tint[] num = new int[3];\n\tfor(int i = 0; i < limit; i++){\n\t for(int j = 0; j < 3; j++){\n\t\tnum[j] = stdin.nextInt();\n\t }\n\t Arrays.sort(num);\n\t System.out.println(square(num[0]) + square(num[1]) == square(num[2]) ? \"YES\" : \"NO\");\n\t}\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"class Main {\n\n static int square(int i){\n\treturn i * i;\n }\n\n public static void main(String[] args){\n\tScanner stdin = new Scanner(System.in);\n\tint limit = stdin.nextInt();\n\tint[] num = new int[3];\n\tfor(int i = 0; i < limit; i++){\n\t for(int j = 0; j < 3; j++){\n\t\tnum[j] = stdin.nextInt();\n\t }\n\t Arrays.sort(num);\n\t System.out.println(square(num[0]) + square(num[1]) == square(num[2]) ? \"YES\" : \"NO\");\n\t}\n }\n}",
"Main",
"static int square(int i){\n\treturn i * i;\n }",
"square",
"{\n\treturn i * i;\n }",
"return i * i;",
"i * i",
"i",
"i",
"int i",
"i",
"public static void main(String[] args){\n\tScanner stdin = new Scanner(System.in);\n\tint limit = stdin.nextInt();\n\tint[] num = new int[3];\n\tfor(int i = 0; i < limit; i++){\n\t for(int j = 0; j < 3; j++){\n\t\tnum[j] = stdin.nextInt();\n\t }\n\t Arrays.sort(num);\n\t System.out.println(square(num[0]) + square(num[1]) == square(num[2]) ? \"YES\" : \"NO\");\n\t}\n }",
"main",
"{\n\tScanner stdin = new Scanner(System.in);\n\tint limit = stdin.nextInt();\n\tint[] num = new int[3];\n\tfor(int i = 0; i < limit; i++){\n\t for(int j = 0; j < 3; j++){\n\t\tnum[j] = stdin.nextInt();\n\t }\n\t Arrays.sort(num);\n\t System.out.println(square(num[0]) + square(num[1]) == square(num[2]) ? \"YES\" : \"NO\");\n\t}\n }",
"Scanner stdin = new Scanner(System.in);",
"stdin",
"new Scanner(System.in)",
"int limit = stdin.nextInt();",
"limit",
"stdin.nextInt()",
"stdin.nextInt",
"stdin",
"int[] num = new int[3];",
"num",
"new int[3]",
"3",
"for(int i = 0; i < limit; i++){\n\t for(int j = 0; j < 3; j++){\n\t\tnum[j] = stdin.nextInt();\n\t }\n\t Arrays.sort(num);\n\t System.out.println(square(num[0]) + square(num[1]) == square(num[2]) ? \"YES\" : \"NO\");\n\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < limit",
"i",
"limit",
"i++",
"i++",
"i",
"{\n\t for(int j = 0; j < 3; j++){\n\t\tnum[j] = stdin.nextInt();\n\t }\n\t Arrays.sort(num);\n\t System.out.println(square(num[0]) + square(num[1]) == square(num[2]) ? \"YES\" : \"NO\");\n\t}",
"{\n\t for(int j = 0; j < 3; j++){\n\t\tnum[j] = stdin.nextInt();\n\t }\n\t Arrays.sort(num);\n\t System.out.println(square(num[0]) + square(num[1]) == square(num[2]) ? \"YES\" : \"NO\");\n\t}",
"for(int j = 0; j < 3; j++){\n\t\tnum[j] = stdin.nextInt();\n\t }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\tnum[j] = stdin.nextInt();\n\t }",
"{\n\t\tnum[j] = stdin.nextInt();\n\t }",
"num[j] = stdin.nextInt()",
"num[j]",
"num",
"j",
"stdin.nextInt()",
"stdin.nextInt",
"stdin",
"Arrays.sort(num)",
"Arrays.sort",
"Arrays",
"num",
"System.out.println(square(num[0]) + square(num[1]) == square(num[2]) ? \"YES\" : \"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"square(num[0]) + square(num[1]) == square(num[2]) ? \"YES\" : \"NO\"",
"square(num[0]) + square(num[1]) == square(num[2])",
"square(num[0]) + square(num[1])",
"square(num[0])",
"square",
"num[0]",
"num",
"0",
"square(num[1])",
"square",
"num[1]",
"num",
"1",
"square(num[2])",
"square",
"num[2]",
"num",
"2",
"\"YES\"",
"\"NO\"",
"String[] args",
"args"
] | import java.util.Scanner;
import java.util.Arrays;
class Main {
static int square(int i){
return i * i;
}
public static void main(String[] args){
Scanner stdin = new Scanner(System.in);
int limit = stdin.nextInt();
int[] num = new int[3];
for(int i = 0; i < limit; i++){
for(int j = 0; j < 3; j++){
num[j] = stdin.nextInt();
}
Arrays.sort(num);
System.out.println(square(num[0]) + square(num[1]) == square(num[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,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
14,
2,
2,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
103,
8
],
[
103,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
32,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
32,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
32,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
32,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
63,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
62,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
62,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
9,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int number = sc.nextInt();\n for (int i = 0; i < number; i++) {\n int []a = new int[3];\n a[0] = sc.nextInt();\n a[1] = sc.nextInt();\n a[2] = sc.nextInt();\n Arrays.sort(a);\n\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.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int number = sc.nextInt();\n for (int i = 0; i < number; i++) {\n int []a = new int[3];\n a[0] = sc.nextInt();\n a[1] = sc.nextInt();\n a[2] = sc.nextInt();\n Arrays.sort(a);\n\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) {\n Scanner sc = new Scanner(System.in);\n int number = sc.nextInt();\n for (int i = 0; i < number; i++) {\n int []a = new int[3];\n a[0] = sc.nextInt();\n a[1] = sc.nextInt();\n a[2] = sc.nextInt();\n Arrays.sort(a);\n\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 number = sc.nextInt();\n for (int i = 0; i < number; i++) {\n int []a = new int[3];\n a[0] = sc.nextInt();\n a[1] = sc.nextInt();\n a[2] = sc.nextInt();\n Arrays.sort(a);\n\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 number = sc.nextInt();",
"number",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < number; i++) {\n int []a = new int[3];\n a[0] = sc.nextInt();\n a[1] = sc.nextInt();\n a[2] = sc.nextInt();\n Arrays.sort(a);\n\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 < number",
"i",
"number",
"i++",
"i++",
"i",
"{\n int []a = new int[3];\n a[0] = sc.nextInt();\n a[1] = sc.nextInt();\n a[2] = sc.nextInt();\n Arrays.sort(a);\n\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 a[0] = sc.nextInt();\n a[1] = sc.nextInt();\n a[2] = sc.nextInt();\n Arrays.sort(a);\n\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",
"a[0] = sc.nextInt()",
"a[0]",
"a",
"0",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[1] = sc.nextInt()",
"a[1]",
"a",
"1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[2] = sc.nextInt()",
"a[2]",
"a",
"2",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"if (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\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int number = sc.nextInt();\n for (int i = 0; i < number; i++) {\n int []a = new int[3];\n a[0] = sc.nextInt();\n a[1] = sc.nextInt();\n a[2] = sc.nextInt();\n Arrays.sort(a);\n\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\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int number = sc.nextInt();\n for (int i = 0; i < number; i++) {\n int []a = new int[3];\n a[0] = sc.nextInt();\n a[1] = sc.nextInt();\n a[2] = sc.nextInt();\n Arrays.sort(a);\n\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.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int number = sc.nextInt();
for (int i = 0; i < number; i++) {
int []a = new int[3];
a[0] = sc.nextInt();
a[1] = sc.nextInt();
a[2] = 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,
29,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
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,
41,
13,
4,
13,
18,
13,
17,
18,
13,
17,
18,
13,
17,
4,
18,
18,
13,
13,
17,
8,
13,
17,
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
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
13,
21
],
[
21,
22
],
[
21,
23
],
[
9,
24
],
[
24,
25
],
[
9,
26
],
[
26,
27
],
[
9,
28
],
[
28,
29
],
[
7,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
32,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
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
],
[
53,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
53,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
92,
94
],
[
53,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
95,
101
],
[
101,
102
],
[
101,
103
],
[
101,
104
],
[
30,
105
],
[
105,
106
]
] | [
"import java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main\n{\n public static boolean isRTri(int a, int b, int c)\n {\n return a * a + b * b == c * c;\n }\n public static void main(String[] args)\n {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n for (int k = 1; k <= n; k++)\n {\n int a[] = new int [3];\n for (int i = 0; i < 3; i++)\n {\n a[i] = input.nextInt();\n }\n Arrays.sort(a);\n boolean r = isRTri(a[0], a[1], a[2]);\n System.out.printf(\"%s\\n\", r ? \"YES\" : \"NO\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"class Main\n{\n public static boolean isRTri(int a, int b, int c)\n {\n return a * a + b * b == c * c;\n }\n public static void main(String[] args)\n {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n for (int k = 1; k <= n; k++)\n {\n int a[] = new int [3];\n for (int i = 0; i < 3; i++)\n {\n a[i] = input.nextInt();\n }\n Arrays.sort(a);\n boolean r = isRTri(a[0], a[1], a[2]);\n System.out.printf(\"%s\\n\", r ? \"YES\" : \"NO\");\n }\n }\n}",
"Main",
"public static boolean isRTri(int a, int b, int c)\n {\n return a * a + b * b == c * c;\n }",
"isRTri",
"{\n return a * a + b * b == c * c;\n }",
"return a * a + b * b == c * c;",
"a * a + b * b == c * c",
"a * a + b * b",
"a * a",
"a",
"a",
"b * b",
"b",
"b",
"c * c",
"c",
"c",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public static void main(String[] args)\n {\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n for (int k = 1; k <= n; k++)\n {\n int a[] = new int [3];\n for (int i = 0; i < 3; i++)\n {\n a[i] = input.nextInt();\n }\n Arrays.sort(a);\n boolean r = isRTri(a[0], a[1], a[2]);\n System.out.printf(\"%s\\n\", r ? \"YES\" : \"NO\");\n }\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n int n = input.nextInt();\n for (int k = 1; k <= n; k++)\n {\n int a[] = new int [3];\n for (int i = 0; i < 3; i++)\n {\n a[i] = input.nextInt();\n }\n Arrays.sort(a);\n boolean r = isRTri(a[0], a[1], a[2]);\n System.out.printf(\"%s\\n\", r ? \"YES\" : \"NO\");\n }\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int n = input.nextInt();",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"for (int k = 1; k <= n; k++)\n {\n int a[] = new int [3];\n for (int i = 0; i < 3; i++)\n {\n a[i] = input.nextInt();\n }\n Arrays.sort(a);\n boolean r = isRTri(a[0], a[1], a[2]);\n System.out.printf(\"%s\\n\", r ? \"YES\" : \"NO\");\n }",
"int k = 1;",
"int k = 1;",
"k",
"1",
"k <= n",
"k",
"n",
"k++",
"k++",
"k",
"{\n int a[] = new int [3];\n for (int i = 0; i < 3; i++)\n {\n a[i] = input.nextInt();\n }\n Arrays.sort(a);\n boolean r = isRTri(a[0], a[1], a[2]);\n System.out.printf(\"%s\\n\", r ? \"YES\" : \"NO\");\n }",
"{\n int a[] = new int [3];\n for (int i = 0; i < 3; i++)\n {\n a[i] = input.nextInt();\n }\n Arrays.sort(a);\n boolean r = isRTri(a[0], a[1], a[2]);\n System.out.printf(\"%s\\n\", r ? \"YES\" : \"NO\");\n }",
"int a[] = new int [3];",
"a",
"new int [3]",
"3",
"for (int i = 0; i < 3; i++)\n {\n a[i] = input.nextInt();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n a[i] = input.nextInt();\n }",
"{\n a[i] = input.nextInt();\n }",
"a[i] = input.nextInt()",
"a[i]",
"a",
"i",
"input.nextInt()",
"input.nextInt",
"input",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"boolean r = isRTri(a[0], a[1], a[2]);",
"r",
"isRTri(a[0], a[1], a[2])",
"isRTri",
"a[0]",
"a",
"0",
"a[1]",
"a",
"1",
"a[2]",
"a",
"2",
"System.out.printf(\"%s\\n\", r ? \"YES\" : \"NO\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%s\\n\"",
"r ? \"YES\" : \"NO\"",
"r",
"\"YES\"",
"\"NO\"",
"String[] args",
"args"
] | import java.util.Scanner;
import java.util.Arrays;
class Main
{
public static boolean isRTri(int a, int b, int c)
{
return a * a + b * b == c * c;
}
public static void main(String[] args)
{
Scanner input = new Scanner(System.in);
int n = input.nextInt();
for (int k = 1; k <= n; k++)
{
int a[] = new int [3];
for (int i = 0; i < 3; i++)
{
a[i] = input.nextInt();
}
Arrays.sort(a);
boolean r = isRTri(a[0], a[1], a[2]);
System.out.printf("%s\n", r ? "YES" : "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,
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
],
[
99,
5
],
[
99,
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
],
[
54,
57
],
[
29,
58
],
[
58,
59
],
[
59,
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
],
[
59,
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
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\tScanner s = new Scanner(System.in);\n\tint N = s.nextInt();\n\tfor(int tc = 0; tc < N; ++tc) {\n\t int[] len = new int[3];\n\t for(int i = 0; i < 3; ++i) {\n\t\tlen[i] = s.nextInt();\n\t }\n\t Arrays.sort(len);\n\t if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n\tScanner s = new Scanner(System.in);\n\tint N = s.nextInt();\n\tfor(int tc = 0; tc < N; ++tc) {\n\t int[] len = new int[3];\n\t for(int i = 0; i < 3; ++i) {\n\t\tlen[i] = s.nextInt();\n\t }\n\t Arrays.sort(len);\n\t if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }\n}",
"Main",
"public static void main(String[] args) {\n\tScanner s = new Scanner(System.in);\n\tint N = s.nextInt();\n\tfor(int tc = 0; tc < N; ++tc) {\n\t int[] len = new int[3];\n\t for(int i = 0; i < 3; ++i) {\n\t\tlen[i] = s.nextInt();\n\t }\n\t Arrays.sort(len);\n\t if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }",
"main",
"{\n\tScanner s = new Scanner(System.in);\n\tint N = s.nextInt();\n\tfor(int tc = 0; tc < N; ++tc) {\n\t int[] len = new int[3];\n\t for(int i = 0; i < 3; ++i) {\n\t\tlen[i] = s.nextInt();\n\t }\n\t Arrays.sort(len);\n\t if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int N = s.nextInt();",
"N",
"s.nextInt()",
"s.nextInt",
"s",
"for(int tc = 0; tc < N; ++tc) {\n\t int[] len = new int[3];\n\t for(int i = 0; i < 3; ++i) {\n\t\tlen[i] = s.nextInt();\n\t }\n\t Arrays.sort(len);\n\t if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}",
"int tc = 0;",
"int tc = 0;",
"tc",
"0",
"tc < N",
"tc",
"N",
"++tc",
"++tc",
"tc",
"{\n\t int[] len = new int[3];\n\t for(int i = 0; i < 3; ++i) {\n\t\tlen[i] = s.nextInt();\n\t }\n\t Arrays.sort(len);\n\t if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}",
"{\n\t int[] len = new int[3];\n\t for(int i = 0; i < 3; ++i) {\n\t\tlen[i] = s.nextInt();\n\t }\n\t Arrays.sort(len);\n\t if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}",
"int[] len = new int[3];",
"len",
"new int[3]",
"3",
"for(int i = 0; i < 3; ++i) {\n\t\tlen[i] = s.nextInt();\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"++i",
"++i",
"i",
"{\n\t\tlen[i] = s.nextInt();\n\t }",
"{\n\t\tlen[i] = s.nextInt();\n\t }",
"len[i] = s.nextInt()",
"len[i]",
"len",
"i",
"s.nextInt()",
"s.nextInt",
"s",
"Arrays.sort(len)",
"Arrays.sort",
"Arrays",
"len",
"if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }",
"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",
"{\n\t\tSystem.out.println(\"YES\");\n\t }",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\t\tSystem.out.println(\"NO\");\n\t }",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n\tScanner s = new Scanner(System.in);\n\tint N = s.nextInt();\n\tfor(int tc = 0; tc < N; ++tc) {\n\t int[] len = new int[3];\n\t for(int i = 0; i < 3; ++i) {\n\t\tlen[i] = s.nextInt();\n\t }\n\t Arrays.sort(len);\n\t if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\tScanner s = new Scanner(System.in);\n\tint N = s.nextInt();\n\tfor(int tc = 0; tc < N; ++tc) {\n\t int[] len = new int[3];\n\t for(int i = 0; i < 3; ++i) {\n\t\tlen[i] = s.nextInt();\n\t }\n\t Arrays.sort(len);\n\t if(len[0]*len[0] + len[1]*len[1] == len[2]*len[2]) {\n\t\tSystem.out.println(\"YES\");\n\t } else {\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int N = s.nextInt();
for(int tc = 0; tc < N; ++tc) {
int[] len = new int[3];
for(int i = 0; i < 3; ++i) {
len[i] = s.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,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
41,
13,
20,
17,
0,
18,
13,
17,
4,
18,
13,
18,
4,
18,
13,
17,
17,
0,
18,
13,
17,
4,
18,
13,
18,
4,
18,
13,
17,
17,
0,
18,
13,
17,
4,
18,
13,
18,
4,
18,
13,
17,
17,
4,
18,
13,
13,
14,
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,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
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
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
20,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
34,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
51,
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
],
[
66,
68
],
[
68,
69
],
[
69,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
65,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
82,
87
],
[
65,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
95,
100
],
[
65,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
108,
113
],
[
65,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
65,
118
],
[
118,
119
],
[
119,
120
],
[
121,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
133,
135
],
[
121,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
140,
142
],
[
119,
143
],
[
118,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
118,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
44,
154
],
[
154,
155
],
[
154,
156
],
[
154,
157
],
[
158,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
159,
164
],
[
18,
165
],
[
165,
166
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tArrayList<String> output = new ArrayList<String>();\n\t\tString input;\n\t\tint n;\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = br.readLine();\n\t\t\t\tint[] sides = new int[3];\n\t\t\t\tsides[0] = Integer.parseInt(input.split(\" \")[0]);\n\t\t\t\tsides[1] = Integer.parseInt(input.split(\" \")[1]);\n\t\t\t\tsides[2] = Integer.parseInt(input.split(\" \")[2]);\n\t\t\t\tArrays.sort(sides);\n\t\t\t\tif(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){\n\t\t\t\t\toutput.add(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\toutput.add(\"NO\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (String i : output) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\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.Arrays;",
"Arrays",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tArrayList<String> output = new ArrayList<String>();\n\t\tString input;\n\t\tint n;\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = br.readLine();\n\t\t\t\tint[] sides = new int[3];\n\t\t\t\tsides[0] = Integer.parseInt(input.split(\" \")[0]);\n\t\t\t\tsides[1] = Integer.parseInt(input.split(\" \")[1]);\n\t\t\t\tsides[2] = Integer.parseInt(input.split(\" \")[2]);\n\t\t\t\tArrays.sort(sides);\n\t\t\t\tif(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){\n\t\t\t\t\toutput.add(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\toutput.add(\"NO\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (String i : output) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\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\t\tArrayList<String> output = new ArrayList<String>();\n\t\tString input;\n\t\tint n;\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = br.readLine();\n\t\t\t\tint[] sides = new int[3];\n\t\t\t\tsides[0] = Integer.parseInt(input.split(\" \")[0]);\n\t\t\t\tsides[1] = Integer.parseInt(input.split(\" \")[1]);\n\t\t\t\tsides[2] = Integer.parseInt(input.split(\" \")[2]);\n\t\t\t\tArrays.sort(sides);\n\t\t\t\tif(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){\n\t\t\t\t\toutput.add(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\toutput.add(\"NO\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (String i : output) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"main",
"{\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tArrayList<String> output = new ArrayList<String>();\n\t\tString input;\n\t\tint n;\n\t\ttry {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = br.readLine();\n\t\t\t\tint[] sides = new int[3];\n\t\t\t\tsides[0] = Integer.parseInt(input.split(\" \")[0]);\n\t\t\t\tsides[1] = Integer.parseInt(input.split(\" \")[1]);\n\t\t\t\tsides[2] = Integer.parseInt(input.split(\" \")[2]);\n\t\t\t\tArrays.sort(sides);\n\t\t\t\tif(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){\n\t\t\t\t\toutput.add(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\toutput.add(\"NO\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (String i : output) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\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)",
"ArrayList<String> output = new ArrayList<String>();",
"output",
"new ArrayList<String>()",
"String input;",
"input",
"int n;",
"n",
"try {\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = br.readLine();\n\t\t\t\tint[] sides = new int[3];\n\t\t\t\tsides[0] = Integer.parseInt(input.split(\" \")[0]);\n\t\t\t\tsides[1] = Integer.parseInt(input.split(\" \")[1]);\n\t\t\t\tsides[2] = Integer.parseInt(input.split(\" \")[2]);\n\t\t\t\tArrays.sort(sides);\n\t\t\t\tif(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){\n\t\t\t\t\toutput.add(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\toutput.add(\"NO\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (String i : output) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(e);\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n\t\t\tn = Integer.parseInt(br.readLine());\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tinput = br.readLine();\n\t\t\t\tint[] sides = new int[3];\n\t\t\t\tsides[0] = Integer.parseInt(input.split(\" \")[0]);\n\t\t\t\tsides[1] = Integer.parseInt(input.split(\" \")[1]);\n\t\t\t\tsides[2] = Integer.parseInt(input.split(\" \")[2]);\n\t\t\t\tArrays.sort(sides);\n\t\t\t\tif(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){\n\t\t\t\t\toutput.add(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\toutput.add(\"NO\");\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor (String i : output) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}\n\t\t}",
"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\tinput = br.readLine();\n\t\t\t\tint[] sides = new int[3];\n\t\t\t\tsides[0] = Integer.parseInt(input.split(\" \")[0]);\n\t\t\t\tsides[1] = Integer.parseInt(input.split(\" \")[1]);\n\t\t\t\tsides[2] = Integer.parseInt(input.split(\" \")[2]);\n\t\t\t\tArrays.sort(sides);\n\t\t\t\tif(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){\n\t\t\t\t\toutput.add(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\toutput.add(\"NO\");\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\tinput = br.readLine();\n\t\t\t\tint[] sides = new int[3];\n\t\t\t\tsides[0] = Integer.parseInt(input.split(\" \")[0]);\n\t\t\t\tsides[1] = Integer.parseInt(input.split(\" \")[1]);\n\t\t\t\tsides[2] = Integer.parseInt(input.split(\" \")[2]);\n\t\t\t\tArrays.sort(sides);\n\t\t\t\tif(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){\n\t\t\t\t\toutput.add(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\toutput.add(\"NO\");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tinput = br.readLine();\n\t\t\t\tint[] sides = new int[3];\n\t\t\t\tsides[0] = Integer.parseInt(input.split(\" \")[0]);\n\t\t\t\tsides[1] = Integer.parseInt(input.split(\" \")[1]);\n\t\t\t\tsides[2] = Integer.parseInt(input.split(\" \")[2]);\n\t\t\t\tArrays.sort(sides);\n\t\t\t\tif(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){\n\t\t\t\t\toutput.add(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\toutput.add(\"NO\");\n\t\t\t\t}\n\t\t\t}",
"input = br.readLine()",
"input",
"br.readLine()",
"br.readLine",
"br",
"int[] sides = new int[3];",
"sides",
"new int[3]",
"3",
"sides[0] = Integer.parseInt(input.split(\" \")[0])",
"sides[0]",
"sides",
"0",
"Integer.parseInt(input.split(\" \")[0])",
"Integer.parseInt",
"Integer",
"input.split(\" \")[0]",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"0",
"sides[1] = Integer.parseInt(input.split(\" \")[1])",
"sides[1]",
"sides",
"1",
"Integer.parseInt(input.split(\" \")[1])",
"Integer.parseInt",
"Integer",
"input.split(\" \")[1]",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"1",
"sides[2] = Integer.parseInt(input.split(\" \")[2])",
"sides[2]",
"sides",
"2",
"Integer.parseInt(input.split(\" \")[2])",
"Integer.parseInt",
"Integer",
"input.split(\" \")[2]",
"input.split(\" \")",
"input.split",
"input",
"\" \"",
"2",
"Arrays.sort(sides)",
"Arrays.sort",
"Arrays",
"sides",
"if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){\n\t\t\t\t\toutput.add(\"YES\");\n\t\t\t\t}else{\n\t\t\t\t\toutput.add(\"NO\");\n\t\t\t\t}",
"sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0",
"sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]",
"sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]",
"sides[2]*sides[2]",
"sides[2]",
"sides",
"2",
"sides[2]",
"sides",
"2",
"sides[1]*sides[1]",
"sides[1]",
"sides",
"1",
"sides[1]",
"sides",
"1",
"sides[0]*sides[0]",
"sides[0]",
"sides",
"0",
"sides[0]",
"sides",
"0",
"0",
"{\n\t\t\t\t\toutput.add(\"YES\");\n\t\t\t\t}",
"output.add(\"YES\")",
"output.add",
"output",
"\"YES\"",
"{\n\t\t\t\t\toutput.add(\"NO\");\n\t\t\t\t}",
"output.add(\"NO\")",
"output.add",
"output",
"\"NO\"",
"for (String i : output) {\n\t\t\t\tSystem.out.println(i);\n\t\t\t}",
"String i",
"output",
"{\n\t\t\t\tSystem.out.println(i);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(i);\n\t\t\t}",
"System.out.println(i)",
"System.out.println",
"System.out",
"System",
"System.out",
"i",
"String[] args",
"args"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Arrays;
class Main {
public static void main(String[] args) {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
ArrayList<String> output = new ArrayList<String>();
String input;
int n;
try {
n = Integer.parseInt(br.readLine());
for (int i = 0; i < n; i++) {
input = br.readLine();
int[] sides = new int[3];
sides[0] = Integer.parseInt(input.split(" ")[0]);
sides[1] = Integer.parseInt(input.split(" ")[1]);
sides[2] = Integer.parseInt(input.split(" ")[2]);
Arrays.sort(sides);
if(sides[2]*sides[2]-sides[1]*sides[1]-sides[0]*sides[0]==0){
output.add("YES");
}else{
output.add("NO");
}
}
for (String i : output) {
System.out.println(i);
}
} catch (IOException 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,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
14,
2,
2,
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
],
[
104,
8
],
[
104,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
37,
47
],
[
47,
48
],
[
48,
49
],
[
37,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
36,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
36,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
64,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
63,
87
],
[
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.Scanner;\nimport java.util.Arrays;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int z = sc.nextInt();\n int[] num = new int[3];\n for(int i = 0; i < z; i++){\n for(int j = 0; j < num.length; j++){\n num[j] = sc.nextInt();\n }\n Arrays.sort(num);\n if(num[0]*num[0] + num[1]*num[1] == num[2]*num[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int z = sc.nextInt();\n int[] num = new int[3];\n for(int i = 0; i < z; i++){\n for(int j = 0; j < num.length; j++){\n num[j] = sc.nextInt();\n }\n Arrays.sort(num);\n if(num[0]*num[0] + num[1]*num[1] == num[2]*num[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 int z = sc.nextInt();\n int[] num = new int[3];\n for(int i = 0; i < z; i++){\n for(int j = 0; j < num.length; j++){\n num[j] = sc.nextInt();\n }\n Arrays.sort(num);\n if(num[0]*num[0] + num[1]*num[1] == num[2]*num[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 z = sc.nextInt();\n int[] num = new int[3];\n for(int i = 0; i < z; i++){\n for(int j = 0; j < num.length; j++){\n num[j] = sc.nextInt();\n }\n Arrays.sort(num);\n if(num[0]*num[0] + num[1]*num[1] == num[2]*num[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 z = sc.nextInt();",
"z",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] num = new int[3];",
"num",
"new int[3]",
"3",
"for(int i = 0; i < z; i++){\n for(int j = 0; j < num.length; j++){\n num[j] = sc.nextInt();\n }\n Arrays.sort(num);\n if(num[0]*num[0] + num[1]*num[1] == num[2]*num[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < z",
"i",
"z",
"i++",
"i++",
"i",
"{\n for(int j = 0; j < num.length; j++){\n num[j] = sc.nextInt();\n }\n Arrays.sort(num);\n if(num[0]*num[0] + num[1]*num[1] == num[2]*num[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"{\n for(int j = 0; j < num.length; j++){\n num[j] = sc.nextInt();\n }\n Arrays.sort(num);\n if(num[0]*num[0] + num[1]*num[1] == num[2]*num[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"for(int j = 0; j < num.length; j++){\n num[j] = sc.nextInt();\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < num.length",
"j",
"num.length",
"num",
"num.length",
"j++",
"j++",
"j",
"{\n num[j] = sc.nextInt();\n }",
"{\n num[j] = sc.nextInt();\n }",
"num[j] = sc.nextInt()",
"num[j]",
"num",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Arrays.sort(num)",
"Arrays.sort",
"Arrays",
"num",
"if(num[0]*num[0] + num[1]*num[1] == num[2]*num[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"num[0]*num[0] + num[1]*num[1] == num[2]*num[2]",
"num[0]*num[0] + num[1]*num[1]",
"num[0]*num[0]",
"num[0]",
"num",
"0",
"num[0]",
"num",
"0",
"num[1]*num[1]",
"num[1]",
"num",
"1",
"num[1]",
"num",
"1",
"num[2]*num[2]",
"num[2]",
"num",
"2",
"num[2]",
"num",
"2",
"{\n 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 int z = sc.nextInt();\n int[] num = new int[3];\n for(int i = 0; i < z; i++){\n for(int j = 0; j < num.length; j++){\n num[j] = sc.nextInt();\n }\n Arrays.sort(num);\n if(num[0]*num[0] + num[1]*num[1] == num[2]*num[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 int z = sc.nextInt();\n int[] num = new int[3];\n for(int i = 0; i < z; i++){\n for(int j = 0; j < num.length; j++){\n num[j] = sc.nextInt();\n }\n Arrays.sort(num);\n if(num[0]*num[0] + num[1]*num[1] == num[2]*num[2]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n}",
"Main"
] | import java.util.Scanner;
import java.util.Arrays;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int z = sc.nextInt();
int[] num = new int[3];
for(int i = 0; i < z; i++){
for(int j = 0; j < num.length; j++){
num[j] = sc.nextInt();
}
Arrays.sort(num);
if(num[0]*num[0] + num[1]*num[1] == num[2]*num[2]){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
41,
13,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
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,
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,
0,
18,
13,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
2,
13,
17,
2,
18,
13,
2,
2,
13,
17,
17,
18,
13,
2,
2,
13,
17,
17,
30,
0,
13,
17,
3,
0,
13,
17,
4,
13,
13,
23,
13,
12,
13,
30,
14,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
171,
5
],
[
171,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
57,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
57,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
69,
79
],
[
79,
80
],
[
80,
81
],
[
69,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
91,
92
],
[
91,
93
],
[
83,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
57,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
101,
111
],
[
111,
112
],
[
112,
113
],
[
101,
114
],
[
115,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
120,
121
],
[
120,
122
],
[
117,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
123,
131
],
[
131,
132
],
[
131,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
116,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
116,
143
],
[
143,
144
],
[
143,
145
],
[
57,
146
],
[
146,
147
],
[
146,
148
],
[
6,
149
],
[
149,
150
],
[
171,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
154,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
162,
167
],
[
151,
168
],
[
168,
169
],
[
0,
170
],
[
170,
171
],
[
170,
172
]
] | [
"import java.io.*;\n \npublic class Main {\n public static void main(String args[]){\n int n;\n int sides[] = new int[3];\n boolean judge = false;\n String line;\n String tmp[];\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n line = reader.readLine();\n n = Integer.parseInt(line);\n for(int i = 0; i < n; i++){\n line = reader.readLine();\n tmp = line.split(\" \");\n for(int j = 0; j < sides.length; j++){\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }\n for(int j = 0; j < sides.length; j++){\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }\n Answer(judge);\n }\n }catch(IOException e){\n System.exit(0);\n }\n }\n \n static void Answer(boolean j){\n if(j) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String args[]){\n int n;\n int sides[] = new int[3];\n boolean judge = false;\n String line;\n String tmp[];\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n line = reader.readLine();\n n = Integer.parseInt(line);\n for(int i = 0; i < n; i++){\n line = reader.readLine();\n tmp = line.split(\" \");\n for(int j = 0; j < sides.length; j++){\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }\n for(int j = 0; j < sides.length; j++){\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }\n Answer(judge);\n }\n }catch(IOException e){\n System.exit(0);\n }\n }\n \n static void Answer(boolean j){\n if(j) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n}",
"Main",
"public static void main(String args[]){\n int n;\n int sides[] = new int[3];\n boolean judge = false;\n String line;\n String tmp[];\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n line = reader.readLine();\n n = Integer.parseInt(line);\n for(int i = 0; i < n; i++){\n line = reader.readLine();\n tmp = line.split(\" \");\n for(int j = 0; j < sides.length; j++){\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }\n for(int j = 0; j < sides.length; j++){\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }\n Answer(judge);\n }\n }catch(IOException e){\n System.exit(0);\n }\n }",
"main",
"{\n int n;\n int sides[] = new int[3];\n boolean judge = false;\n String line;\n String tmp[];\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n line = reader.readLine();\n n = Integer.parseInt(line);\n for(int i = 0; i < n; i++){\n line = reader.readLine();\n tmp = line.split(\" \");\n for(int j = 0; j < sides.length; j++){\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }\n for(int j = 0; j < sides.length; j++){\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }\n Answer(judge);\n }\n }catch(IOException e){\n System.exit(0);\n }\n }",
"int n;",
"n",
"int sides[] = new int[3];",
"sides",
"new int[3]",
"3",
"boolean judge = false;",
"judge",
"false",
"String line;",
"line",
"String tmp[];",
"tmp",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try{\n line = reader.readLine();\n n = Integer.parseInt(line);\n for(int i = 0; i < n; i++){\n line = reader.readLine();\n tmp = line.split(\" \");\n for(int j = 0; j < sides.length; j++){\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }\n for(int j = 0; j < sides.length; j++){\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }\n Answer(judge);\n }\n }catch(IOException e){\n System.exit(0);\n }",
"catch(IOException e){\n System.exit(0);\n }",
"IOException e",
"{\n System.exit(0);\n }",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n line = reader.readLine();\n n = Integer.parseInt(line);\n for(int i = 0; i < n; i++){\n line = reader.readLine();\n tmp = line.split(\" \");\n for(int j = 0; j < sides.length; j++){\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }\n for(int j = 0; j < sides.length; j++){\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }\n Answer(judge);\n }\n }",
"line = reader.readLine()",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"n = Integer.parseInt(line)",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"for(int i = 0; i < n; i++){\n line = reader.readLine();\n tmp = line.split(\" \");\n for(int j = 0; j < sides.length; j++){\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }\n for(int j = 0; j < sides.length; j++){\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }\n Answer(judge);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n line = reader.readLine();\n tmp = line.split(\" \");\n for(int j = 0; j < sides.length; j++){\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }\n for(int j = 0; j < sides.length; j++){\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }\n Answer(judge);\n }",
"{\n line = reader.readLine();\n tmp = line.split(\" \");\n for(int j = 0; j < sides.length; j++){\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }\n for(int j = 0; j < sides.length; j++){\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }\n Answer(judge);\n }",
"line = reader.readLine()",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"tmp = line.split(\" \")",
"tmp",
"line.split(\" \")",
"line.split",
"line",
"\" \"",
"for(int j = 0; j < sides.length; j++){\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < sides.length",
"j",
"sides.length",
"sides",
"sides.length",
"j++",
"j++",
"j",
"{\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }",
"{\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }",
"sides[j] = Integer.parseInt(tmp[j])",
"sides[j]",
"sides",
"j",
"Integer.parseInt(tmp[j])",
"Integer.parseInt",
"Integer",
"tmp[j]",
"tmp",
"j",
"sides[j] *= sides[j]",
"sides[j]",
"sides",
"j",
"sides[j]",
"sides",
"j",
"for(int j = 0; j < sides.length; j++){\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < sides.length",
"j",
"sides.length",
"sides",
"sides.length",
"j++",
"j++",
"j",
"{\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }",
"{\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }",
"if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;",
"sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]",
"sides[j%3]",
"sides",
"j%3",
"j",
"3",
"sides[(j+1)%3] + sides[(j+2)%3]",
"sides[(j+1)%3]",
"sides",
"(j+1)%3",
"(j+1)",
"j",
"1",
"3",
"sides[(j+2)%3]",
"sides",
"(j+2)%3",
"(j+2)",
"j",
"2",
"3",
"{\n judge = true;\n break;\n }",
"judge = true",
"judge",
"true",
"break;",
"judge = false",
"judge",
"false",
"Answer(judge)",
"Answer",
"judge",
"String args[]",
"args",
"static void Answer(boolean j){\n if(j) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"Answer",
"{\n if(j) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"if(j) System.out.println(\"YES\");\n else System.out.println(\"NO\");",
"j",
"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\"",
"boolean j",
"j",
"public class Main {\n public static void main(String args[]){\n int n;\n int sides[] = new int[3];\n boolean judge = false;\n String line;\n String tmp[];\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n line = reader.readLine();\n n = Integer.parseInt(line);\n for(int i = 0; i < n; i++){\n line = reader.readLine();\n tmp = line.split(\" \");\n for(int j = 0; j < sides.length; j++){\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }\n for(int j = 0; j < sides.length; j++){\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }\n Answer(judge);\n }\n }catch(IOException e){\n System.exit(0);\n }\n }\n \n static void Answer(boolean j){\n if(j) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n}",
"public class Main {\n public static void main(String args[]){\n int n;\n int sides[] = new int[3];\n boolean judge = false;\n String line;\n String tmp[];\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n try{\n line = reader.readLine();\n n = Integer.parseInt(line);\n for(int i = 0; i < n; i++){\n line = reader.readLine();\n tmp = line.split(\" \");\n for(int j = 0; j < sides.length; j++){\n sides[j] = Integer.parseInt(tmp[j]);\n sides[j] *= sides[j];\n }\n for(int j = 0; j < sides.length; j++){\n if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {\n judge = true;\n break;\n }else\n judge = false;\n }\n Answer(judge);\n }\n }catch(IOException e){\n System.exit(0);\n }\n }\n \n static void Answer(boolean j){\n if(j) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n}",
"Main"
] | import java.io.*;
public class Main {
public static void main(String args[]){
int n;
int sides[] = new int[3];
boolean judge = false;
String line;
String tmp[];
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try{
line = reader.readLine();
n = Integer.parseInt(line);
for(int i = 0; i < n; i++){
line = reader.readLine();
tmp = line.split(" ");
for(int j = 0; j < sides.length; j++){
sides[j] = Integer.parseInt(tmp[j]);
sides[j] *= sides[j];
}
for(int j = 0; j < sides.length; j++){
if(sides[j%3] == sides[(j+1)%3] + sides[(j+2)%3]) {
judge = true;
break;
}else
judge = false;
}
Answer(judge);
}
}catch(IOException e){
System.exit(0);
}
}
static void Answer(boolean j){
if(j) System.out.println("YES");
else System.out.println("NO");
}
} |
[
7,
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,
4,
18,
18,
13,
13,
17,
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,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
30,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
136,
2
],
[
136,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
5,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
14,
19
],
[
19,
20
],
[
19,
21
],
[
14,
22
],
[
22,
23
],
[
23,
24
],
[
14,
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
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
51,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
51,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
42,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
93,
94
],
[
93,
95
],
[
84,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
84,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
75,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
109,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
109,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
3,
133
],
[
133,
134
],
[
0,
135
],
[
135,
136
],
[
135,
137
]
] | [
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\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\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a*a == b*b + c*c) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else if (b >= c && b >= a) {\n\t\t\t\tif (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else { // c >= a && c >= b\n\t\t\t\tif (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\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\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a*a == b*b + c*c) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else if (b >= c && b >= a) {\n\t\t\t\tif (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else { // c >= a && c >= b\n\t\t\t\tif (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\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\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a*a == b*b + c*c) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else if (b >= c && b >= a) {\n\t\t\t\tif (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else { // c >= a && c >= b\n\t\t\t\tif (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.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\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a*a == b*b + c*c) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else if (b >= c && b >= a) {\n\t\t\t\tif (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else { // c >= a && c >= b\n\t\t\t\tif (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"java.util.Scanner sc = new java.util.Scanner(System.in);",
"sc",
"new java.util.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\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a*a == b*b + c*c) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else if (b >= c && b >= a) {\n\t\t\t\tif (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else { // c >= a && c >= b\n\t\t\t\tif (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.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 = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a*a == b*b + c*c) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else if (b >= c && b >= a) {\n\t\t\t\tif (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else { // c >= a && c >= b\n\t\t\t\tif (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\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\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a*a == b*b + c*c) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else if (b >= c && b >= a) {\n\t\t\t\tif (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else { // c >= a && c >= b\n\t\t\t\tif (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (a >= b && a >= c) {\n\t\t\t\tif (a*a == b*b + c*c) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else if (b >= c && b >= a) {\n\t\t\t\tif (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else { // c >= a && c >= b\n\t\t\t\tif (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}",
"a >= b && a >= c",
"a >= b",
"a",
"b",
"a >= c",
"a",
"c",
"{\n\t\t\t\tif (a*a == b*b + c*c) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}",
"if (a*a == b*b + c*c) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");",
"a*a == b*b + c*c",
"a*a",
"a",
"a",
"b*b + c*c",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"if (b >= c && b >= a) {\n\t\t\t\tif (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else { // c >= a && c >= b\n\t\t\t\tif (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}",
"b >= c && b >= a",
"b >= c",
"b",
"c",
"b >= a",
"b",
"a",
"{\n\t\t\t\tif (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}",
"if (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");",
"b*b == c*c + a*a",
"b*b",
"b",
"b",
"c*c + a*a",
"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\"",
"{ // c >= a && c >= b\n\t\t\t\tif (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}",
"if (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");",
"c*c == a*a + b*b",
"c*c",
"c",
"c",
"a*a + b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\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\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a*a == b*b + c*c) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else if (b >= c && b >= a) {\n\t\t\t\tif (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else { // c >= a && c >= b\n\t\t\t\tif (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tjava.util.Scanner sc = new java.util.Scanner(System.in);\n\t\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\n\t\t\tif (a >= b && a >= c) {\n\t\t\t\tif (a*a == b*b + c*c) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else if (b >= c && b >= a) {\n\t\t\t\tif (b*b == c*c + a*a) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t} else { // c >= a && c >= b\n\t\t\t\tif (c*c == a*a + b*b) System.out.println(\"YES\");\n\t\t\t\telse System.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
] | public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
java.util.Scanner sc = new java.util.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();
if (a >= b && a >= c) {
if (a*a == b*b + c*c) System.out.println("YES");
else System.out.println("NO");
} else if (b >= c && b >= a) {
if (b*b == c*c + a*a) System.out.println("YES");
else System.out.println("NO");
} else { // c >= a && c >= b
if (c*c == a*a + b*b) System.out.println("YES");
else System.out.println("NO");
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
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
],
[
148,
14
],
[
148,
15
],
[
15,
16
],
[
15,
17
],
[
148,
18
],
[
18,
19
],
[
18,
20
],
[
148,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
23,
35
],
[
35,
36
],
[
35,
37
],
[
23,
39
],
[
39,
40
],
[
23,
41
],
[
41,
42
],
[
41,
43
],
[
23,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
50,
51
],
[
44,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
53,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
53,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
88,
95
],
[
95,
96
],
[
95,
97
],
[
86,
98
],
[
85,
99
],
[
84,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
84,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
111,
113
],
[
108,
114
],
[
107,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
118,
119
],
[
118,
120
],
[
115,
121
],
[
106,
122
],
[
122,
123
],
[
123,
124
],
[
122,
125
],
[
125,
126
],
[
125,
127
],
[
122,
128
],
[
105,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
105,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
23,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
21,
145
],
[
145,
146
],
[
0,
147
],
[
147,
148
],
[
147,
149
]
] | [
"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 NEG = \"NO\\n\";\n\tprivate final static String AFF = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in),1024);\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(NEG);\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(NEG);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFF);\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 NEG = \"NO\\n\";\n\tprivate final static String AFF = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in),1024);\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(NEG);\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(NEG);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFF);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n}",
"Main",
"private final static String NEG = \"NO\\n\";",
"NEG",
"\"NO\\n\"",
"private final static String AFF = \"YES\\n\";",
"AFF",
"\"YES\\n\"",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in),1024);\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(NEG);\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(NEG);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFF);\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),1024);\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(NEG);\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(NEG);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFF);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in),1024);",
"br",
"new BufferedReader(new InputStreamReader(System.in),1024)",
"int number = Integer.parseInt(br.readLine());",
"number",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int sides[] = new int[3];",
"sides",
"new int[3]",
"3",
"StringTokenizer tknz;",
"tknz",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"for (; 0 < number; number--) {\n\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(NEG);\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(NEG);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFF);\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(NEG);\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(NEG);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFF);\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(NEG);\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(NEG);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFF);\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(NEG);\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(NEG);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFF);\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(NEG);\n\t\t\t}",
"builder.append(NEG)",
"builder.append",
"builder",
"NEG",
"if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {\n\t\t\t\tbuilder.append(NEG);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFF);\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(NEG);\n\t\t\t}",
"builder.append(NEG)",
"builder.append",
"builder",
"NEG",
"{\n\t\t\t\tbuilder.append(AFF);\n\t\t\t}",
"builder.append(AFF)",
"builder.append",
"builder",
"AFF",
"System.out.print(builder)",
"System.out.print",
"System.out",
"System",
"System.out",
"builder",
"String[] args",
"args",
"public class Main {\n\tprivate final static String NEG = \"NO\\n\";\n\tprivate final static String AFF = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in),1024);\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(NEG);\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(NEG);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFF);\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(builder);\n\t}\n}",
"public class Main {\n\tprivate final static String NEG = \"NO\\n\";\n\tprivate final static String AFF = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in),1024);\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(NEG);\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(NEG);\n\t\t\t} else {\n\t\t\t\tbuilder.append(AFF);\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 NEG = "NO\n";
private final static String AFF = "YES\n";
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in),1024);
int number = Integer.parseInt(br.readLine());
int sides[] = new int[3];
StringTokenizer tknz;
StringBuilder builder = new StringBuilder();
for (; 0 < number; number--) {
tknz = new StringTokenizer(br.readLine());
for (int i = 0; i < 3; i++) {
sides[i] = Integer.parseInt(tknz.nextToken());
}
Arrays.sort(sides);
if (sides[0] * sides[1] * sides[2] % 60 != 0) {
builder.append(NEG);
} else if (Math.pow(sides[0], 2) + Math.pow(sides[1], 2) != Math.pow(sides[2], 2)) {
builder.append(NEG);
} else {
builder.append(AFF);
}
}
System.out.print(builder);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
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,
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,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
98,
5
],
[
98,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
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
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
68,
74
],
[
59,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
75,
81
],
[
58,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
58,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
6,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n \n int[] a =new int[3];\n int b = scan.nextInt();\n for (int j=0; j<b;j++){\n for (int i=0; i<3; i++){\n a[i]= scan.nextInt();\n }\n Arrays.sort(a);\n if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){\n System.out.println(\"YES\");\n }\n else System.out.println(\"NO\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n \n int[] a =new int[3];\n int b = scan.nextInt();\n for (int j=0; j<b;j++){\n for (int i=0; i<3; i++){\n a[i]= scan.nextInt();\n }\n Arrays.sort(a);\n if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){\n System.out.println(\"YES\");\n }\n else System.out.println(\"NO\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n \n int[] a =new int[3];\n int b = scan.nextInt();\n for (int j=0; j<b;j++){\n for (int i=0; i<3; i++){\n a[i]= scan.nextInt();\n }\n Arrays.sort(a);\n if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){\n System.out.println(\"YES\");\n }\n else System.out.println(\"NO\");\n }\n }",
"main",
"{\n\n Scanner scan = new Scanner(System.in);\n \n int[] a =new int[3];\n int b = scan.nextInt();\n for (int j=0; j<b;j++){\n for (int i=0; i<3; i++){\n a[i]= scan.nextInt();\n }\n Arrays.sort(a);\n if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){\n System.out.println(\"YES\");\n }\n else System.out.println(\"NO\");\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[] a =new int[3];",
"a",
"new int[3]",
"3",
"int b = scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int j=0; j<b;j++){\n for (int i=0; i<3; i++){\n a[i]= scan.nextInt();\n }\n Arrays.sort(a);\n if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){\n System.out.println(\"YES\");\n }\n else System.out.println(\"NO\");\n }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<b",
"j",
"b",
"j++",
"j++",
"j",
"{\n for (int i=0; i<3; i++){\n a[i]= scan.nextInt();\n }\n Arrays.sort(a);\n if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){\n System.out.println(\"YES\");\n }\n else System.out.println(\"NO\");\n }",
"{\n for (int i=0; i<3; i++){\n a[i]= scan.nextInt();\n }\n Arrays.sort(a);\n if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){\n System.out.println(\"YES\");\n }\n else System.out.println(\"NO\");\n }",
"for (int i=0; i<3; i++){\n a[i]= scan.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"{\n a[i]= scan.nextInt();\n }",
"{\n a[i]= scan.nextInt();\n }",
"a[i]= scan.nextInt()",
"a[i]",
"a",
"i",
"scan.nextInt()",
"scan.nextInt",
"scan",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){\n System.out.println(\"YES\");\n }\n else System.out.println(\"NO\");",
"(Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))",
"(Math.pow(a[0],2)+ Math.pow(a[1],2))",
"Math.pow(a[0],2)",
"Math.pow",
"Math",
"a[0]",
"a",
"0",
"2",
"Math.pow(a[1],2)",
"Math.pow",
"Math",
"a[1]",
"a",
"1",
"2",
"(Math.pow(a[2],2))",
"Math.pow",
"Math",
"a[2]",
"a",
"2",
"2",
"{\n System.out.println(\"YES\");\n }",
"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) {\n\n Scanner scan = new Scanner(System.in);\n \n int[] a =new int[3];\n int b = scan.nextInt();\n for (int j=0; j<b;j++){\n for (int i=0; i<3; i++){\n a[i]= scan.nextInt();\n }\n Arrays.sort(a);\n if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){\n System.out.println(\"YES\");\n }\n else System.out.println(\"NO\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n\n Scanner scan = new Scanner(System.in);\n \n int[] a =new int[3];\n int b = scan.nextInt();\n for (int j=0; j<b;j++){\n for (int i=0; i<3; i++){\n a[i]= scan.nextInt();\n }\n Arrays.sort(a);\n if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){\n System.out.println(\"YES\");\n }\n else System.out.println(\"NO\");\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int[] a =new int[3];
int b = scan.nextInt();
for (int j=0; j<b;j++){
for (int i=0; i<3; i++){
a[i]= scan.nextInt();
}
Arrays.sort(a);
if((Math.pow(a[0],2)+ Math.pow(a[1],2)) == (Math.pow(a[2],2))){
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,
2,
17,
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,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
92,
5
],
[
92,
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
],
[
42,
44
],
[
26,
45
],
[
45,
46
],
[
45,
47
],
[
26,
48
],
[
48,
49
],
[
48,
50
],
[
26,
51
],
[
51,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
51,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
51,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
92,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
83,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tvoid run() {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor (int T = sc.nextInt(); 0 < T; T--) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta *= a;\n\t\t\tb *= b;\n\t\t\tc *= c;\n\t\t\tif (a + b == c || a + c == b || b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\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\tvoid run() {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor (int T = sc.nextInt(); 0 < T; T--) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta *= a;\n\t\t\tb *= b;\n\t\t\tc *= c;\n\t\t\tif (a + b == c || a + c == b || b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"Main",
"void run() {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor (int T = sc.nextInt(); 0 < T; T--) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta *= a;\n\t\t\tb *= b;\n\t\t\tc *= c;\n\t\t\tif (a + b == c || a + c == b || b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"run",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor (int T = sc.nextInt(); 0 < T; T--) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta *= a;\n\t\t\tb *= b;\n\t\t\tc *= c;\n\t\t\tif (a + b == c || a + c == b || b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"for (int T = sc.nextInt(); 0 < T; T--) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta *= a;\n\t\t\tb *= b;\n\t\t\tc *= c;\n\t\t\tif (a + b == c || a + c == b || b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"int T = sc.nextInt();",
"int T = sc.nextInt();",
"T",
"sc.nextInt()",
"sc.nextInt",
"sc",
"0 < T",
"0",
"T",
"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\ta *= a;\n\t\t\tb *= b;\n\t\t\tc *= c;\n\t\t\tif (a + b == c || a + c == b || b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta *= a;\n\t\t\tb *= b;\n\t\t\tc *= c;\n\t\t\tif (a + b == c || a + c == b || b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a *= a",
"a",
"a",
"b *= b",
"b",
"b",
"c *= c",
"c",
"c",
"if (a + b == c || a + c == b || b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"a + 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\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\tvoid run() {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor (int T = sc.nextInt(); 0 < T; T--) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta *= a;\n\t\t\tb *= b;\n\t\t\tc *= c;\n\t\t\tif (a + b == c || a + c == b || b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n}",
"public class Main {\n\tvoid run() {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfor (int T = sc.nextInt(); 0 < T; T--) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\ta *= a;\n\t\t\tb *= b;\n\t\t\tc *= c;\n\t\t\tif (a + b == c || a + c == b || b + c == a) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\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);
for (int T = sc.nextInt(); 0 < T; T--) {
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
a *= a;
b *= b;
c *= c;
if (a + b == c || a + c == b || b + c == a) {
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,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
13,
14,
2,
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,
4,
18,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
17,
26
],
[
26,
27
],
[
26,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
17,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
33,
44
],
[
44,
45
],
[
45,
46
],
[
33,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
51,
56
],
[
48,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
48,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
48,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
84,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
111,
114
],
[
109,
115
],
[
84,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
117,
123
],
[
17,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
15,
130
],
[
130,
131
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString num1 = br.readLine();\n\n\t\tStringBuilder bf = new StringBuilder();\n\n\t\tint[] num = new int[3];\n\n\t\tfor(int i=0; i<Integer.parseInt(num1);i++){\n\n\n\t\tString[] str = br.readLine().split(\" \");\n\n\t\tfor(int k=0; k<3; k++){\n\t\t\tnum[k] = Integer.parseInt(str[k]);\n\t\t}\n\n\t\tArrays.sort(num);\n\n\n\t\tif(num[2]*num[2] == (num[1]*num[1])+(num[0]*num[0])){\n\t\t\tbf.append(\"YES\").append(\"\\n\");\n\t\t}else {\n\t\t\tbf.append(\"NO\").append(\"\\n\");\n\n\t\t}\n\n\t\t}\n\n\t\tSystem.out.print(bf);\n\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",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString num1 = br.readLine();\n\n\t\tStringBuilder bf = new StringBuilder();\n\n\t\tint[] num = new int[3];\n\n\t\tfor(int i=0; i<Integer.parseInt(num1);i++){\n\n\n\t\tString[] str = br.readLine().split(\" \");\n\n\t\tfor(int k=0; k<3; k++){\n\t\t\tnum[k] = Integer.parseInt(str[k]);\n\t\t}\n\n\t\tArrays.sort(num);\n\n\n\t\tif(num[2]*num[2] == (num[1]*num[1])+(num[0]*num[0])){\n\t\t\tbf.append(\"YES\").append(\"\\n\");\n\t\t}else {\n\t\t\tbf.append(\"NO\").append(\"\\n\");\n\n\t\t}\n\n\t\t}\n\n\t\tSystem.out.print(bf);\n\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\n\t\tString num1 = br.readLine();\n\n\t\tStringBuilder bf = new StringBuilder();\n\n\t\tint[] num = new int[3];\n\n\t\tfor(int i=0; i<Integer.parseInt(num1);i++){\n\n\n\t\tString[] str = br.readLine().split(\" \");\n\n\t\tfor(int k=0; k<3; k++){\n\t\t\tnum[k] = Integer.parseInt(str[k]);\n\t\t}\n\n\t\tArrays.sort(num);\n\n\n\t\tif(num[2]*num[2] == (num[1]*num[1])+(num[0]*num[0])){\n\t\t\tbf.append(\"YES\").append(\"\\n\");\n\t\t}else {\n\t\t\tbf.append(\"NO\").append(\"\\n\");\n\n\t\t}\n\n\t\t}\n\n\t\tSystem.out.print(bf);\n\n\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString num1 = br.readLine();\n\n\t\tStringBuilder bf = new StringBuilder();\n\n\t\tint[] num = new int[3];\n\n\t\tfor(int i=0; i<Integer.parseInt(num1);i++){\n\n\n\t\tString[] str = br.readLine().split(\" \");\n\n\t\tfor(int k=0; k<3; k++){\n\t\t\tnum[k] = Integer.parseInt(str[k]);\n\t\t}\n\n\t\tArrays.sort(num);\n\n\n\t\tif(num[2]*num[2] == (num[1]*num[1])+(num[0]*num[0])){\n\t\t\tbf.append(\"YES\").append(\"\\n\");\n\t\t}else {\n\t\t\tbf.append(\"NO\").append(\"\\n\");\n\n\t\t}\n\n\t\t}\n\n\t\tSystem.out.print(bf);\n\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String num1 = br.readLine();",
"num1",
"br.readLine()",
"br.readLine",
"br",
"StringBuilder bf = new StringBuilder();",
"bf",
"new StringBuilder()",
"int[] num = new int[3];",
"num",
"new int[3]",
"3",
"for(int i=0; i<Integer.parseInt(num1);i++){\n\n\n\t\tString[] str = br.readLine().split(\" \");\n\n\t\tfor(int k=0; k<3; k++){\n\t\t\tnum[k] = Integer.parseInt(str[k]);\n\t\t}\n\n\t\tArrays.sort(num);\n\n\n\t\tif(num[2]*num[2] == (num[1]*num[1])+(num[0]*num[0])){\n\t\t\tbf.append(\"YES\").append(\"\\n\");\n\t\t}else {\n\t\t\tbf.append(\"NO\").append(\"\\n\");\n\n\t\t}\n\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<Integer.parseInt(num1)",
"i",
"Integer.parseInt(num1)",
"Integer.parseInt",
"Integer",
"num1",
"i++",
"i++",
"i",
"{\n\n\n\t\tString[] str = br.readLine().split(\" \");\n\n\t\tfor(int k=0; k<3; k++){\n\t\t\tnum[k] = Integer.parseInt(str[k]);\n\t\t}\n\n\t\tArrays.sort(num);\n\n\n\t\tif(num[2]*num[2] == (num[1]*num[1])+(num[0]*num[0])){\n\t\t\tbf.append(\"YES\").append(\"\\n\");\n\t\t}else {\n\t\t\tbf.append(\"NO\").append(\"\\n\");\n\n\t\t}\n\n\t\t}",
"{\n\n\n\t\tString[] str = br.readLine().split(\" \");\n\n\t\tfor(int k=0; k<3; k++){\n\t\t\tnum[k] = Integer.parseInt(str[k]);\n\t\t}\n\n\t\tArrays.sort(num);\n\n\n\t\tif(num[2]*num[2] == (num[1]*num[1])+(num[0]*num[0])){\n\t\t\tbf.append(\"YES\").append(\"\\n\");\n\t\t}else {\n\t\t\tbf.append(\"NO\").append(\"\\n\");\n\n\t\t}\n\n\t\t}",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int k=0; k<3; k++){\n\t\t\tnum[k] = Integer.parseInt(str[k]);\n\t\t}",
"int k=0;",
"int k=0;",
"k",
"0",
"k<3",
"k",
"3",
"k++",
"k++",
"k",
"{\n\t\t\tnum[k] = Integer.parseInt(str[k]);\n\t\t}",
"{\n\t\t\tnum[k] = Integer.parseInt(str[k]);\n\t\t}",
"num[k] = Integer.parseInt(str[k])",
"num[k]",
"num",
"k",
"Integer.parseInt(str[k])",
"Integer.parseInt",
"Integer",
"str[k]",
"str",
"k",
"Arrays.sort(num)",
"Arrays.sort",
"Arrays",
"num",
"if(num[2]*num[2] == (num[1]*num[1])+(num[0]*num[0])){\n\t\t\tbf.append(\"YES\").append(\"\\n\");\n\t\t}else {\n\t\t\tbf.append(\"NO\").append(\"\\n\");\n\n\t\t}",
"num[2]*num[2] == (num[1]*num[1])+(num[0]*num[0])",
"num[2]*num[2]",
"num[2]",
"num",
"2",
"num[2]",
"num",
"2",
"(num[1]*num[1])+(num[0]*num[0])",
"(num[1]*num[1])",
"num[1]",
"num",
"1",
"num[1]",
"num",
"1",
"(num[0]*num[0])",
"num[0]",
"num",
"0",
"num[0]",
"num",
"0",
"{\n\t\t\tbf.append(\"YES\").append(\"\\n\");\n\t\t}",
"bf.append(\"YES\").append(\"\\n\")",
"bf.append(\"YES\").append",
"bf.append(\"YES\")",
"bf.append",
"bf",
"\"YES\"",
"\"\\n\"",
"{\n\t\t\tbf.append(\"NO\").append(\"\\n\");\n\n\t\t}",
"bf.append(\"NO\").append(\"\\n\")",
"bf.append(\"NO\").append",
"bf.append(\"NO\")",
"bf.append",
"bf",
"\"NO\"",
"\"\\n\"",
"System.out.print(bf)",
"System.out.print",
"System.out",
"System",
"System.out",
"bf",
"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 IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String num1 = br.readLine();
StringBuilder bf = new StringBuilder();
int[] num = new int[3];
for(int i=0; i<Integer.parseInt(num1);i++){
String[] str = br.readLine().split(" ");
for(int k=0; k<3; k++){
num[k] = Integer.parseInt(str[k]);
}
Arrays.sort(num);
if(num[2]*num[2] == (num[1]*num[1])+(num[0]*num[0])){
bf.append("YES").append("\n");
}else {
bf.append("NO").append("\n");
}
}
System.out.print(bf);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
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,
42,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
17,
14,
2,
13,
13,
30,
0,
13,
13,
0,
13,
13,
0,
13,
13,
0,
13,
17,
14,
2,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
0,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
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
],
[
42,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
42,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
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
],
[
70,
80
],
[
80,
81
],
[
80,
82
],
[
62,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
91,
93
],
[
87,
94
],
[
94,
95
],
[
94,
96
],
[
87,
97
],
[
97,
98
],
[
97,
99
],
[
42,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
102,
110
],
[
110,
111
],
[
110,
112
],
[
101,
113
],
[
100,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
100,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
42,
128
],
[
128,
129
],
[
128,
130
],
[
6,
131
],
[
131,
132
]
] | [
"\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint a, b, c, n, temp;\n\t\tBoolean is_changed = true;\n\t\tn = in.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tc = in.nextInt();\n\t\t\twhile (is_changed == true) {\n\t\t\t\tis_changed = false;\n\t\t\t\tif (a > b) {\n\t\t\t\t\ttemp = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t\tif (b > c) {\n\t\t\t\t\ttemp = b;\n\t\t\t\t\tb = c;\n\t\t\t\t\tc = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a * a + b * b - c * c == 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\tis_changed = true;\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint a, b, c, n, temp;\n\t\tBoolean is_changed = true;\n\t\tn = in.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tc = in.nextInt();\n\t\t\twhile (is_changed == true) {\n\t\t\t\tis_changed = false;\n\t\t\t\tif (a > b) {\n\t\t\t\t\ttemp = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t\tif (b > c) {\n\t\t\t\t\ttemp = b;\n\t\t\t\t\tb = c;\n\t\t\t\t\tc = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a * a + b * b - c * c == 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\tis_changed = true;\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint a, b, c, n, temp;\n\t\tBoolean is_changed = true;\n\t\tn = in.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tc = in.nextInt();\n\t\t\twhile (is_changed == true) {\n\t\t\t\tis_changed = false;\n\t\t\t\tif (a > b) {\n\t\t\t\t\ttemp = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t\tif (b > c) {\n\t\t\t\t\ttemp = b;\n\t\t\t\t\tb = c;\n\t\t\t\t\tc = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a * a + b * b - c * c == 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\tis_changed = true;\n\t\t}\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint a, b, c, n, temp;\n\t\tBoolean is_changed = true;\n\t\tn = in.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tc = in.nextInt();\n\t\t\twhile (is_changed == true) {\n\t\t\t\tis_changed = false;\n\t\t\t\tif (a > b) {\n\t\t\t\t\ttemp = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t\tif (b > c) {\n\t\t\t\t\ttemp = b;\n\t\t\t\t\tb = c;\n\t\t\t\t\tc = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a * a + b * b - c * c == 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\tis_changed = true;\n\t\t}\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int a",
"a",
"b",
"b",
"c",
"c",
"n",
"n",
"temp;",
"temp",
"Boolean is_changed = true;",
"is_changed",
"true",
"n = in.nextInt()",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"for (int i = 0; i < n; i++) {\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tc = in.nextInt();\n\t\t\twhile (is_changed == true) {\n\t\t\t\tis_changed = false;\n\t\t\t\tif (a > b) {\n\t\t\t\t\ttemp = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t\tif (b > c) {\n\t\t\t\t\ttemp = b;\n\t\t\t\t\tb = c;\n\t\t\t\t\tc = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a * a + b * b - c * c == 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\tis_changed = true;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tc = in.nextInt();\n\t\t\twhile (is_changed == true) {\n\t\t\t\tis_changed = false;\n\t\t\t\tif (a > b) {\n\t\t\t\t\ttemp = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t\tif (b > c) {\n\t\t\t\t\ttemp = b;\n\t\t\t\t\tb = c;\n\t\t\t\t\tc = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a * a + b * b - c * c == 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\tis_changed = true;\n\t\t}",
"{\n\t\t\ta = in.nextInt();\n\t\t\tb = in.nextInt();\n\t\t\tc = in.nextInt();\n\t\t\twhile (is_changed == true) {\n\t\t\t\tis_changed = false;\n\t\t\t\tif (a > b) {\n\t\t\t\t\ttemp = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t\tif (b > c) {\n\t\t\t\t\ttemp = b;\n\t\t\t\t\tb = c;\n\t\t\t\t\tc = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (a * a + b * b - c * c == 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\tis_changed = true;\n\t\t}",
"a = in.nextInt()",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"b = in.nextInt()",
"b",
"in.nextInt()",
"in.nextInt",
"in",
"c = in.nextInt()",
"c",
"in.nextInt()",
"in.nextInt",
"in",
"while (is_changed == true) {\n\t\t\t\tis_changed = false;\n\t\t\t\tif (a > b) {\n\t\t\t\t\ttemp = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t\tif (b > c) {\n\t\t\t\t\ttemp = b;\n\t\t\t\t\tb = c;\n\t\t\t\t\tc = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t}",
"is_changed == true",
"is_changed",
"true",
"{\n\t\t\t\tis_changed = false;\n\t\t\t\tif (a > b) {\n\t\t\t\t\ttemp = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t\tif (b > c) {\n\t\t\t\t\ttemp = b;\n\t\t\t\t\tb = c;\n\t\t\t\t\tc = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}\n\t\t\t}",
"is_changed = false",
"is_changed",
"false",
"if (a > b) {\n\t\t\t\t\ttemp = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}",
"a > b",
"a",
"b",
"{\n\t\t\t\t\ttemp = a;\n\t\t\t\t\ta = b;\n\t\t\t\t\tb = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}",
"temp = a",
"temp",
"a",
"a = b",
"a",
"b",
"b = temp",
"b",
"temp",
"is_changed = true",
"is_changed",
"true",
"if (b > c) {\n\t\t\t\t\ttemp = b;\n\t\t\t\t\tb = c;\n\t\t\t\t\tc = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}",
"b > c",
"b",
"c",
"{\n\t\t\t\t\ttemp = b;\n\t\t\t\t\tb = c;\n\t\t\t\t\tc = temp;\n\t\t\t\t\tis_changed = true;\n\t\t\t\t}",
"temp = b",
"temp",
"b",
"b = c",
"b",
"c",
"c = temp",
"c",
"temp",
"is_changed = true",
"is_changed",
"true",
"if (a * a + b * b - c * c == 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}",
"a * a + b * b - c * c == 0",
"a * a + b * b - c * c",
"a * a + b * b",
"a * a",
"a",
"a",
"b * b",
"b",
"b",
"c * c",
"c",
"c",
"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\"",
"is_changed = true",
"is_changed",
"true",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int a, b, c, n, temp;
Boolean is_changed = true;
n = in.nextInt();
for (int i = 0; i < n; i++) {
a = in.nextInt();
b = in.nextInt();
c = in.nextInt();
while (is_changed == true) {
is_changed = false;
if (a > b) {
temp = a;
a = b;
b = temp;
is_changed = true;
}
if (b > c) {
temp = b;
b = c;
c = temp;
is_changed = true;
}
}
if (a * a + b * b - c * c == 0) {
System.out.println("YES");
} else {
System.out.println("NO");
}
is_changed = true;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
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,
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
],
[
106,
11
],
[
106,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
18,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
40,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
40,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
40,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
40,
71
],
[
71,
72
],
[
73,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
73,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
73,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
71,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
71,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
12,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] | [
"import java.util.Arrays;\nimport java.util.Comparator;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[] ) throws Exception {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(scanner.hasNext()){\t\n\t\t\tint count = scanner.nextInt();//??????????????°??????????????????\n\t\t\tfor(int i = 0;i<count;i++){\n\t\t\t\tdouble a = scanner.nextInt();//??????????????°??????????????????\n\t\t\t\tdouble b = scanner.nextInt();//????????????????????????????????°??????????????????\n\t\t\t\tdouble c = scanner.nextInt();//??????????????????3???????????°??????????????????\n\t\t\t\tdouble d = a*a;\n\t\t\t\tdouble f = b*b;\n\t\t\t\tdouble g = c*c;\n\t\t\t\tif(d == f+g || f== d+g || g==d+f){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t \tSystem.out.println(\"NO\");\n\t\t\t }\n\t\t\t}\n\t\t}\n }\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String args[] ) throws Exception {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(scanner.hasNext()){\t\n\t\t\tint count = scanner.nextInt();//??????????????°??????????????????\n\t\t\tfor(int i = 0;i<count;i++){\n\t\t\t\tdouble a = scanner.nextInt();//??????????????°??????????????????\n\t\t\t\tdouble b = scanner.nextInt();//????????????????????????????????°??????????????????\n\t\t\t\tdouble c = scanner.nextInt();//??????????????????3???????????°??????????????????\n\t\t\t\tdouble d = a*a;\n\t\t\t\tdouble f = b*b;\n\t\t\t\tdouble g = c*c;\n\t\t\t\tif(d == f+g || f== d+g || g==d+f){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t \tSystem.out.println(\"NO\");\n\t\t\t }\n\t\t\t}\n\t\t}\n }\n}",
"Main",
"public static void main(String args[] ) throws Exception {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(scanner.hasNext()){\t\n\t\t\tint count = scanner.nextInt();//??????????????°??????????????????\n\t\t\tfor(int i = 0;i<count;i++){\n\t\t\t\tdouble a = scanner.nextInt();//??????????????°??????????????????\n\t\t\t\tdouble b = scanner.nextInt();//????????????????????????????????°??????????????????\n\t\t\t\tdouble c = scanner.nextInt();//??????????????????3???????????°??????????????????\n\t\t\t\tdouble d = a*a;\n\t\t\t\tdouble f = b*b;\n\t\t\t\tdouble g = c*c;\n\t\t\t\tif(d == f+g || f== d+g || g==d+f){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t \tSystem.out.println(\"NO\");\n\t\t\t }\n\t\t\t}\n\t\t}\n }",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(scanner.hasNext()){\t\n\t\t\tint count = scanner.nextInt();//??????????????°??????????????????\n\t\t\tfor(int i = 0;i<count;i++){\n\t\t\t\tdouble a = scanner.nextInt();//??????????????°??????????????????\n\t\t\t\tdouble b = scanner.nextInt();//????????????????????????????????°??????????????????\n\t\t\t\tdouble c = scanner.nextInt();//??????????????????3???????????°??????????????????\n\t\t\t\tdouble d = a*a;\n\t\t\t\tdouble f = b*b;\n\t\t\t\tdouble g = c*c;\n\t\t\t\tif(d == f+g || f== d+g || g==d+f){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t \tSystem.out.println(\"NO\");\n\t\t\t }\n\t\t\t}\n\t\t}\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"while(scanner.hasNext()){\t\n\t\t\tint count = scanner.nextInt();//??????????????°??????????????????\n\t\t\tfor(int i = 0;i<count;i++){\n\t\t\t\tdouble a = scanner.nextInt();//??????????????°??????????????????\n\t\t\t\tdouble b = scanner.nextInt();//????????????????????????????????°??????????????????\n\t\t\t\tdouble c = scanner.nextInt();//??????????????????3???????????°??????????????????\n\t\t\t\tdouble d = a*a;\n\t\t\t\tdouble f = b*b;\n\t\t\t\tdouble g = c*c;\n\t\t\t\tif(d == f+g || f== d+g || g==d+f){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t \tSystem.out.println(\"NO\");\n\t\t\t }\n\t\t\t}\n\t\t}",
"scanner.hasNext()",
"scanner.hasNext",
"scanner",
"{\t\n\t\t\tint count = scanner.nextInt();//??????????????°??????????????????\n\t\t\tfor(int i = 0;i<count;i++){\n\t\t\t\tdouble a = scanner.nextInt();//??????????????°??????????????????\n\t\t\t\tdouble b = scanner.nextInt();//????????????????????????????????°??????????????????\n\t\t\t\tdouble c = scanner.nextInt();//??????????????????3???????????°??????????????????\n\t\t\t\tdouble d = a*a;\n\t\t\t\tdouble f = b*b;\n\t\t\t\tdouble g = c*c;\n\t\t\t\tif(d == f+g || f== d+g || g==d+f){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t \tSystem.out.println(\"NO\");\n\t\t\t }\n\t\t\t}\n\t\t}",
"int count = scanner.nextInt();",
"count",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i = 0;i<count;i++){\n\t\t\t\tdouble a = scanner.nextInt();//??????????????°??????????????????\n\t\t\t\tdouble b = scanner.nextInt();//????????????????????????????????°??????????????????\n\t\t\t\tdouble c = scanner.nextInt();//??????????????????3???????????°??????????????????\n\t\t\t\tdouble d = a*a;\n\t\t\t\tdouble f = b*b;\n\t\t\t\tdouble g = c*c;\n\t\t\t\tif(d == f+g || f== d+g || g==d+f){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t \tSystem.out.println(\"NO\");\n\t\t\t }\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\t\tdouble a = scanner.nextInt();//??????????????°??????????????????\n\t\t\t\tdouble b = scanner.nextInt();//????????????????????????????????°??????????????????\n\t\t\t\tdouble c = scanner.nextInt();//??????????????????3???????????°??????????????????\n\t\t\t\tdouble d = a*a;\n\t\t\t\tdouble f = b*b;\n\t\t\t\tdouble g = c*c;\n\t\t\t\tif(d == f+g || f== d+g || g==d+f){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t \tSystem.out.println(\"NO\");\n\t\t\t }\n\t\t\t}",
"{\n\t\t\t\tdouble a = scanner.nextInt();//??????????????°??????????????????\n\t\t\t\tdouble b = scanner.nextInt();//????????????????????????????????°??????????????????\n\t\t\t\tdouble c = scanner.nextInt();//??????????????????3???????????°??????????????????\n\t\t\t\tdouble d = a*a;\n\t\t\t\tdouble f = b*b;\n\t\t\t\tdouble g = c*c;\n\t\t\t\tif(d == f+g || f== d+g || g==d+f){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t \tSystem.out.println(\"NO\");\n\t\t\t }\n\t\t\t}",
"double a = scanner.nextInt();",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"double b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"double c = scanner.nextInt();",
"c",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"double d = a*a;",
"d",
"a*a",
"a",
"a",
"double f = b*b;",
"f",
"b*b",
"b",
"b",
"double g = c*c;",
"g",
"c*c",
"c",
"c",
"if(d == f+g || f== d+g || g==d+f){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t \tSystem.out.println(\"NO\");\n\t\t\t }",
"d == f+g || f== d+g || g==d+f",
"d == f+g || f== d+g || g==d+f",
"d == f+g",
"d",
"f+g",
"f",
"g",
"f== d+g",
"f",
"d+g",
"d",
"g",
"g==d+f",
"g",
"d+f",
"d",
"f",
"{\n\t\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 Exception {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(scanner.hasNext()){\t\n\t\t\tint count = scanner.nextInt();//??????????????°??????????????????\n\t\t\tfor(int i = 0;i<count;i++){\n\t\t\t\tdouble a = scanner.nextInt();//??????????????°??????????????????\n\t\t\t\tdouble b = scanner.nextInt();//????????????????????????????????°??????????????????\n\t\t\t\tdouble c = scanner.nextInt();//??????????????????3???????????°??????????????????\n\t\t\t\tdouble d = a*a;\n\t\t\t\tdouble f = b*b;\n\t\t\t\tdouble g = c*c;\n\t\t\t\tif(d == f+g || f== d+g || g==d+f){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t \tSystem.out.println(\"NO\");\n\t\t\t }\n\t\t\t}\n\t\t}\n }\n}",
"public class Main {\n\tpublic static void main(String args[] ) throws Exception {\n\t\tScanner scanner = new Scanner(System.in);\n\t\twhile(scanner.hasNext()){\t\n\t\t\tint count = scanner.nextInt();//??????????????°??????????????????\n\t\t\tfor(int i = 0;i<count;i++){\n\t\t\t\tdouble a = scanner.nextInt();//??????????????°??????????????????\n\t\t\t\tdouble b = scanner.nextInt();//????????????????????????????????°??????????????????\n\t\t\t\tdouble c = scanner.nextInt();//??????????????????3???????????°??????????????????\n\t\t\t\tdouble d = a*a;\n\t\t\t\tdouble f = b*b;\n\t\t\t\tdouble g = c*c;\n\t\t\t\tif(d == f+g || f== d+g || g==d+f){\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t }else{\n\t\t\t \tSystem.out.println(\"NO\");\n\t\t\t }\n\t\t\t}\n\t\t}\n }\n}",
"Main"
] | import java.util.Arrays;
import java.util.Comparator;
import java.util.Scanner;
public class Main {
public static void main(String args[] ) throws Exception {
Scanner scanner = new Scanner(System.in);
while(scanner.hasNext()){
int count = scanner.nextInt();//??????????????°??????????????????
for(int i = 0;i<count;i++){
double a = scanner.nextInt();//??????????????°??????????????????
double b = scanner.nextInt();//????????????????????????????????°??????????????????
double c = scanner.nextInt();//??????????????????3???????????°??????????????????
double d = a*a;
double f = b*b;
double g = c*c;
if(d == f+g || f== d+g || g==d+f){
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,
41,
13,
17,
41,
13,
17,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
4,
13,
13,
4,
18,
13,
13,
41,
13,
2,
4,
13,
18,
13,
17,
2,
4,
13,
18,
13,
17,
4,
13,
18,
13,
17,
14,
13,
30,
29,
13,
30,
29,
13,
23,
13,
12,
13,
30,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
29,
2,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
38,
30,
4,
18,
13,
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,
13,
4,
18,
13,
13,
29,
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
],
[
210,
20
],
[
210,
21
],
[
21,
22
],
[
21,
23
],
[
210,
24
],
[
24,
25
],
[
24,
26
],
[
210,
27
],
[
27,
28
],
[
27,
29
],
[
210,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
37,
47
],
[
47,
48
],
[
48,
49
],
[
37,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
30,
63
],
[
63,
64
],
[
210,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
67,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
85,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
67,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
96,
101
],
[
101,
102
],
[
102,
103
],
[
65,
104
],
[
104,
105
],
[
210,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
112,
113
],
[
112,
114
],
[
108,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
120,
121
],
[
120,
122
],
[
122,
123
],
[
122,
124
],
[
115,
125
],
[
125,
126
],
[
126,
127
],
[
115,
128
],
[
129,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
137,
138
],
[
137,
139
],
[
108,
140
],
[
140,
141
],
[
106,
142
],
[
142,
143
],
[
210,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
144,
151
],
[
151,
152
],
[
210,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
159,
160
],
[
159,
161
],
[
155,
162
],
[
162,
163
],
[
162,
164
],
[
155,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
168,
169
],
[
166,
170
],
[
170,
171
],
[
171,
172
],
[
165,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
179,
180
],
[
180,
181
],
[
173,
182
],
[
182,
183
],
[
183,
184
],
[
184,
185
],
[
184,
186
],
[
182,
187
],
[
187,
188
],
[
187,
189
],
[
182,
190
],
[
190,
191
],
[
191,
192
],
[
182,
193
],
[
194,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
197,
202
],
[
194,
203
],
[
203,
204
],
[
204,
205
],
[
203,
206
],
[
173,
207
],
[
207,
208
],
[
0,
209
],
[
209,
210
],
[
209,
211
]
] | [
"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 private static final String RESULT_RIGHT_TRIANGLE = \"YES\";\n \n /** 直角三角形出ない場合の出力文字列 */\n private static final String RESULT_NOT_RIGHT_TRIANGLE = \"NO\";\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 = getInput();\n\n for (int i = 0; i < dataSets.size(); ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }\n }\n\n /**\n * 各データセットで与えられた3辺で形成される三角形が、<br>\n * 直角三角形なら「YES」、直角三角形でないなら「NO」を返す。\n * \n * @param dataSet データセット\n * @return 三角形が直角三角形となるなら「YES」、直角三角形とならないなら「NO」\n */\n private static String getResult(String[] dataSet) {\n // 読み取ったデータセットをint型の配列に変換\n int[] lengths = toIntArray(dataSet);\n \n // 最も長い辺を求めるため、配列を昇順ソート\n Arrays.sort(lengths);\n\n boolean isRightTriangle = (getSquare(lengths[2]) == getSquare(lengths[0]) + getSquare(lengths[1]));\n \n if (isRightTriangle) {\n return RESULT_RIGHT_TRIANGLE;\n } else {\n return RESULT_NOT_RIGHT_TRIANGLE;\n }\n }\n \n /**\n * String型の配列をint型の配列に変換する。\n * \n * @param stringArray 変換対象のString型配列\n */\n private static int[] toIntArray(String[] stringArray) {\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }\n\n// /**\n// * 与えられた3辺を持つ三角形が直角三角形かどうかを求める。\n// * \n// * @param longestSide 長辺\n// * @param shortestSide その他の辺\n// * @param middleSide その他の辺\n// * @return 直角三角形なら true、それ以外なら false\n// */\n// private static boolean isRightTriangle(int longestSide, int shortestSide, int middleSide) {\n// if (getSquare(longestSide) == getSquare(shortestSide) + getSquare(middleSide)) {\n// return true;\n// }\n// return false;\n// }\n \n /**\n * 引数の2乗を求める。\n * \n * @param target 2乗する整数\n * @return 2乗した整数\n */\n private static int getSquare(int target) {\n return target*target;\n }\n\n /**\n * 標準入力を読み取る。<br>\n * データセットの各行は、区切り文字により分割した配列としてリストに格納する。\n * \n * @return データセットの各行を格納したリスト\n * @throws NumberFormatException\n * @throws IOException\n */\n private static List<String[]> getInput() throws NumberFormatException, IOException {\n // 入力読取り\n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n\n List<String[]> dataSets = new ArrayList<String[]>();\n \n try {\n // データセットの1行目は、データセット数を表す。\n int numberOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n // 取得したデータセット数の分だけ読み取る。\n for (int i = 0; i < numberOfDataSets; ++i) {\n String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);\n dataSets.add(dataSet);\n }\n return dataSets;\n } finally {\n bufferedReader.close();\n streamReader.close();\n }\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.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 private static final String RESULT_RIGHT_TRIANGLE = \"YES\";\n \n /** 直角三角形出ない場合の出力文字列 */\n private static final String RESULT_NOT_RIGHT_TRIANGLE = \"NO\";\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 = getInput();\n\n for (int i = 0; i < dataSets.size(); ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }\n }\n\n /**\n * 各データセットで与えられた3辺で形成される三角形が、<br>\n * 直角三角形なら「YES」、直角三角形でないなら「NO」を返す。\n * \n * @param dataSet データセット\n * @return 三角形が直角三角形となるなら「YES」、直角三角形とならないなら「NO」\n */\n private static String getResult(String[] dataSet) {\n // 読み取ったデータセットをint型の配列に変換\n int[] lengths = toIntArray(dataSet);\n \n // 最も長い辺を求めるため、配列を昇順ソート\n Arrays.sort(lengths);\n\n boolean isRightTriangle = (getSquare(lengths[2]) == getSquare(lengths[0]) + getSquare(lengths[1]));\n \n if (isRightTriangle) {\n return RESULT_RIGHT_TRIANGLE;\n } else {\n return RESULT_NOT_RIGHT_TRIANGLE;\n }\n }\n \n /**\n * String型の配列をint型の配列に変換する。\n * \n * @param stringArray 変換対象のString型配列\n */\n private static int[] toIntArray(String[] stringArray) {\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }\n\n// /**\n// * 与えられた3辺を持つ三角形が直角三角形かどうかを求める。\n// * \n// * @param longestSide 長辺\n// * @param shortestSide その他の辺\n// * @param middleSide その他の辺\n// * @return 直角三角形なら true、それ以外なら false\n// */\n// private static boolean isRightTriangle(int longestSide, int shortestSide, int middleSide) {\n// if (getSquare(longestSide) == getSquare(shortestSide) + getSquare(middleSide)) {\n// return true;\n// }\n// return false;\n// }\n \n /**\n * 引数の2乗を求める。\n * \n * @param target 2乗する整数\n * @return 2乗した整数\n */\n private static int getSquare(int target) {\n return target*target;\n }\n\n /**\n * 標準入力を読み取る。<br>\n * データセットの各行は、区切り文字により分割した配列としてリストに格納する。\n * \n * @return データセットの各行を格納したリスト\n * @throws NumberFormatException\n * @throws IOException\n */\n private static List<String[]> getInput() throws NumberFormatException, IOException {\n // 入力読取り\n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n\n List<String[]> dataSets = new ArrayList<String[]>();\n \n try {\n // データセットの1行目は、データセット数を表す。\n int numberOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n // 取得したデータセット数の分だけ読み取る。\n for (int i = 0; i < numberOfDataSets; ++i) {\n String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);\n dataSets.add(dataSet);\n }\n return dataSets;\n } finally {\n bufferedReader.close();\n streamReader.close();\n }\n }\n\n}",
"Main",
"/** 区切り文字:スペース */\n private static final String DELIMITER_SPACE = \" \";",
"DELIMITER_SPACE",
"\" \"",
"/** 直角三角形の場合の出力文字列 */\n private static final String RESULT_RIGHT_TRIANGLE = \"YES\";",
"RESULT_RIGHT_TRIANGLE",
"\"YES\"",
"/** 直角三角形出ない場合の出力文字列 */\n private static final String RESULT_NOT_RIGHT_TRIANGLE = \"NO\";",
"RESULT_NOT_RIGHT_TRIANGLE",
"\"NO\"",
"/**\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 = getInput();\n\n for (int i = 0; i < dataSets.size(); ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }\n }",
"main",
"{\n\n List<String[]> dataSets = getInput();\n\n for (int i = 0; i < dataSets.size(); ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }\n }",
"List<String[]> dataSets = getInput();",
"dataSets",
"getInput()",
"getInput",
"for (int i = 0; i < dataSets.size(); ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < dataSets.size()",
"i",
"dataSets.size()",
"dataSets.size",
"dataSets",
"++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",
"/**\n * 各データセットで与えられた3辺で形成される三角形が、<br>\n * 直角三角形なら「YES」、直角三角形でないなら「NO」を返す。\n * \n * @param dataSet データセット\n * @return 三角形が直角三角形となるなら「YES」、直角三角形とならないなら「NO」\n */\n private static String getResult(String[] dataSet) {\n // 読み取ったデータセットをint型の配列に変換\n int[] lengths = toIntArray(dataSet);\n \n // 最も長い辺を求めるため、配列を昇順ソート\n Arrays.sort(lengths);\n\n boolean isRightTriangle = (getSquare(lengths[2]) == getSquare(lengths[0]) + getSquare(lengths[1]));\n \n if (isRightTriangle) {\n return RESULT_RIGHT_TRIANGLE;\n } else {\n return RESULT_NOT_RIGHT_TRIANGLE;\n }\n }",
"getResult",
"{\n // 読み取ったデータセットをint型の配列に変換\n int[] lengths = toIntArray(dataSet);\n \n // 最も長い辺を求めるため、配列を昇順ソート\n Arrays.sort(lengths);\n\n boolean isRightTriangle = (getSquare(lengths[2]) == getSquare(lengths[0]) + getSquare(lengths[1]));\n \n if (isRightTriangle) {\n return RESULT_RIGHT_TRIANGLE;\n } else {\n return RESULT_NOT_RIGHT_TRIANGLE;\n }\n }",
"int[] lengths = toIntArray(dataSet);",
"lengths",
"toIntArray(dataSet)",
"toIntArray",
"dataSet",
"Arrays.sort(lengths)",
"Arrays.sort",
"Arrays",
"lengths",
"boolean isRightTriangle = (getSquare(lengths[2]) == getSquare(lengths[0]) + getSquare(lengths[1]));",
"isRightTriangle",
"(getSquare(lengths[2]) == getSquare(lengths[0]) + getSquare(lengths[1]))",
"getSquare(lengths[2])",
"getSquare",
"lengths[2]",
"lengths",
"2",
"getSquare(lengths[0]) + getSquare(lengths[1])",
"getSquare(lengths[0])",
"getSquare",
"lengths[0]",
"lengths",
"0",
"getSquare(lengths[1])",
"getSquare",
"lengths[1]",
"lengths",
"1",
"if (isRightTriangle) {\n return RESULT_RIGHT_TRIANGLE;\n } else {\n return RESULT_NOT_RIGHT_TRIANGLE;\n }",
"isRightTriangle",
"{\n return RESULT_RIGHT_TRIANGLE;\n }",
"return RESULT_RIGHT_TRIANGLE;",
"RESULT_RIGHT_TRIANGLE",
"{\n return RESULT_NOT_RIGHT_TRIANGLE;\n }",
"return RESULT_NOT_RIGHT_TRIANGLE;",
"RESULT_NOT_RIGHT_TRIANGLE",
"String[] dataSet",
"dataSet",
"/**\n * String型の配列をint型の配列に変換する。\n * \n * @param stringArray 変換対象のString型配列\n */\n private static int[] toIntArray(String[] stringArray) {\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }",
"toIntArray",
"{\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }",
"int[] intArray = new int[stringArray.length];",
"intArray",
"new int[stringArray.length]",
"stringArray.length",
"stringArray",
"stringArray.length",
"for (int i = 0; i < stringArray.length; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < stringArray.length",
"i",
"stringArray.length",
"stringArray",
"stringArray.length",
"++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",
"return intArray;",
"intArray",
"String[] stringArray",
"stringArray",
"/**\n * 引数の2乗を求める。\n * \n * @param target 2乗する整数\n * @return 2乗した整数\n */\n private static int getSquare(int target) {\n return target*target;\n }",
"getSquare",
"{\n return target*target;\n }",
"return target*target;",
"target*target",
"target",
"target",
"int target",
"target",
"/**\n * 標準入力を読み取る。<br>\n * データセットの各行は、区切り文字により分割した配列としてリストに格納する。\n * \n * @return データセットの各行を格納したリスト\n * @throws NumberFormatException\n * @throws IOException\n */\n private static List<String[]> getInput() throws NumberFormatException, IOException {\n // 入力読取り\n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n\n List<String[]> dataSets = new ArrayList<String[]>();\n \n try {\n // データセットの1行目は、データセット数を表す。\n int numberOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n // 取得したデータセット数の分だけ読み取る。\n for (int i = 0; i < numberOfDataSets; ++i) {\n String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);\n dataSets.add(dataSet);\n }\n return dataSets;\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 List<String[]> dataSets = new ArrayList<String[]>();\n \n try {\n // データセットの1行目は、データセット数を表す。\n int numberOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n // 取得したデータセット数の分だけ読み取る。\n for (int i = 0; i < numberOfDataSets; ++i) {\n String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);\n dataSets.add(dataSet);\n }\n return dataSets;\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)",
"List<String[]> dataSets = new ArrayList<String[]>();",
"dataSets",
"new ArrayList<String[]>()",
"try {\n // データセットの1行目は、データセット数を表す。\n int numberOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n // 取得したデータセット数の分だけ読み取る。\n for (int i = 0; i < numberOfDataSets; ++i) {\n String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);\n dataSets.add(dataSet);\n }\n return dataSets;\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 // データセットの1行目は、データセット数を表す。\n int numberOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n // 取得したデータセット数の分だけ読み取る。\n for (int i = 0; i < numberOfDataSets; ++i) {\n String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);\n dataSets.add(dataSet);\n }\n return dataSets;\n }",
"int numberOfDataSets = Integer.parseInt(bufferedReader.readLine());",
"numberOfDataSets",
"Integer.parseInt(bufferedReader.readLine())",
"Integer.parseInt",
"Integer",
"bufferedReader.readLine()",
"bufferedReader.readLine",
"bufferedReader",
"for (int i = 0; i < numberOfDataSets; ++i) {\n String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);\n dataSets.add(dataSet);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < numberOfDataSets",
"i",
"numberOfDataSets",
"++i",
"++i",
"i",
"{\n String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);\n dataSets.add(dataSet);\n }",
"{\n String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);\n dataSets.add(dataSet);\n }",
"String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);",
"dataSet",
"bufferedReader.readLine().split(DELIMITER_SPACE)",
"bufferedReader.readLine().split",
"bufferedReader.readLine()",
"bufferedReader.readLine",
"bufferedReader",
"DELIMITER_SPACE",
"dataSets.add(dataSet)",
"dataSets.add",
"dataSets",
"dataSet",
"return dataSets;",
"dataSets",
"public class Main {\n\n /** 区切り文字:スペース */\n private static final String DELIMITER_SPACE = \" \";\n \n /** 直角三角形の場合の出力文字列 */\n private static final String RESULT_RIGHT_TRIANGLE = \"YES\";\n \n /** 直角三角形出ない場合の出力文字列 */\n private static final String RESULT_NOT_RIGHT_TRIANGLE = \"NO\";\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 = getInput();\n\n for (int i = 0; i < dataSets.size(); ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }\n }\n\n /**\n * 各データセットで与えられた3辺で形成される三角形が、<br>\n * 直角三角形なら「YES」、直角三角形でないなら「NO」を返す。\n * \n * @param dataSet データセット\n * @return 三角形が直角三角形となるなら「YES」、直角三角形とならないなら「NO」\n */\n private static String getResult(String[] dataSet) {\n // 読み取ったデータセットをint型の配列に変換\n int[] lengths = toIntArray(dataSet);\n \n // 最も長い辺を求めるため、配列を昇順ソート\n Arrays.sort(lengths);\n\n boolean isRightTriangle = (getSquare(lengths[2]) == getSquare(lengths[0]) + getSquare(lengths[1]));\n \n if (isRightTriangle) {\n return RESULT_RIGHT_TRIANGLE;\n } else {\n return RESULT_NOT_RIGHT_TRIANGLE;\n }\n }\n \n /**\n * String型の配列をint型の配列に変換する。\n * \n * @param stringArray 変換対象のString型配列\n */\n private static int[] toIntArray(String[] stringArray) {\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }\n\n// /**\n// * 与えられた3辺を持つ三角形が直角三角形かどうかを求める。\n// * \n// * @param longestSide 長辺\n// * @param shortestSide その他の辺\n// * @param middleSide その他の辺\n// * @return 直角三角形なら true、それ以外なら false\n// */\n// private static boolean isRightTriangle(int longestSide, int shortestSide, int middleSide) {\n// if (getSquare(longestSide) == getSquare(shortestSide) + getSquare(middleSide)) {\n// return true;\n// }\n// return false;\n// }\n \n /**\n * 引数の2乗を求める。\n * \n * @param target 2乗する整数\n * @return 2乗した整数\n */\n private static int getSquare(int target) {\n return target*target;\n }\n\n /**\n * 標準入力を読み取る。<br>\n * データセットの各行は、区切り文字により分割した配列としてリストに格納する。\n * \n * @return データセットの各行を格納したリスト\n * @throws NumberFormatException\n * @throws IOException\n */\n private static List<String[]> getInput() throws NumberFormatException, IOException {\n // 入力読取り\n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n\n List<String[]> dataSets = new ArrayList<String[]>();\n \n try {\n // データセットの1行目は、データセット数を表す。\n int numberOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n // 取得したデータセット数の分だけ読み取る。\n for (int i = 0; i < numberOfDataSets; ++i) {\n String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);\n dataSets.add(dataSet);\n }\n return dataSets;\n } finally {\n bufferedReader.close();\n streamReader.close();\n }\n }\n\n}",
"public class Main {\n\n /** 区切り文字:スペース */\n private static final String DELIMITER_SPACE = \" \";\n \n /** 直角三角形の場合の出力文字列 */\n private static final String RESULT_RIGHT_TRIANGLE = \"YES\";\n \n /** 直角三角形出ない場合の出力文字列 */\n private static final String RESULT_NOT_RIGHT_TRIANGLE = \"NO\";\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 = getInput();\n\n for (int i = 0; i < dataSets.size(); ++i) {\n System.out.println(getResult(dataSets.get(i)));\n }\n }\n\n /**\n * 各データセットで与えられた3辺で形成される三角形が、<br>\n * 直角三角形なら「YES」、直角三角形でないなら「NO」を返す。\n * \n * @param dataSet データセット\n * @return 三角形が直角三角形となるなら「YES」、直角三角形とならないなら「NO」\n */\n private static String getResult(String[] dataSet) {\n // 読み取ったデータセットをint型の配列に変換\n int[] lengths = toIntArray(dataSet);\n \n // 最も長い辺を求めるため、配列を昇順ソート\n Arrays.sort(lengths);\n\n boolean isRightTriangle = (getSquare(lengths[2]) == getSquare(lengths[0]) + getSquare(lengths[1]));\n \n if (isRightTriangle) {\n return RESULT_RIGHT_TRIANGLE;\n } else {\n return RESULT_NOT_RIGHT_TRIANGLE;\n }\n }\n \n /**\n * String型の配列をint型の配列に変換する。\n * \n * @param stringArray 変換対象のString型配列\n */\n private static int[] toIntArray(String[] stringArray) {\n int[] intArray = new int[stringArray.length];\n for (int i = 0; i < stringArray.length; ++i) {\n intArray[i] = Integer.parseInt(stringArray[i]);\n }\n return intArray;\n }\n\n// /**\n// * 与えられた3辺を持つ三角形が直角三角形かどうかを求める。\n// * \n// * @param longestSide 長辺\n// * @param shortestSide その他の辺\n// * @param middleSide その他の辺\n// * @return 直角三角形なら true、それ以外なら false\n// */\n// private static boolean isRightTriangle(int longestSide, int shortestSide, int middleSide) {\n// if (getSquare(longestSide) == getSquare(shortestSide) + getSquare(middleSide)) {\n// return true;\n// }\n// return false;\n// }\n \n /**\n * 引数の2乗を求める。\n * \n * @param target 2乗する整数\n * @return 2乗した整数\n */\n private static int getSquare(int target) {\n return target*target;\n }\n\n /**\n * 標準入力を読み取る。<br>\n * データセットの各行は、区切り文字により分割した配列としてリストに格納する。\n * \n * @return データセットの各行を格納したリスト\n * @throws NumberFormatException\n * @throws IOException\n */\n private static List<String[]> getInput() throws NumberFormatException, IOException {\n // 入力読取り\n InputStreamReader streamReader = new InputStreamReader(System.in);\n BufferedReader bufferedReader = new BufferedReader(streamReader);\n\n List<String[]> dataSets = new ArrayList<String[]>();\n \n try {\n // データセットの1行目は、データセット数を表す。\n int numberOfDataSets = Integer.parseInt(bufferedReader.readLine());\n\n // 取得したデータセット数の分だけ読み取る。\n for (int i = 0; i < numberOfDataSets; ++i) {\n String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);\n dataSets.add(dataSet);\n }\n return dataSets;\n } finally {\n bufferedReader.close();\n streamReader.close();\n }\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 = " ";
/** 直角三角形の場合の出力文字列 */
private static final String RESULT_RIGHT_TRIANGLE = "YES";
/** 直角三角形出ない場合の出力文字列 */
private static final String RESULT_NOT_RIGHT_TRIANGLE = "NO";
/**
* データセットで与えられた数を3辺とする三角形が直角三角形かを判断する。
*
* @param args
* @throws IOException
* @throws NumberFormatException
*/
public static void main(String[] args) throws NumberFormatException, IOException {
List<String[]> dataSets = getInput();
for (int i = 0; i < dataSets.size(); ++i) {
System.out.println(getResult(dataSets.get(i)));
}
}
/**
* 各データセットで与えられた3辺で形成される三角形が、<br>
* 直角三角形なら「YES」、直角三角形でないなら「NO」を返す。
*
* @param dataSet データセット
* @return 三角形が直角三角形となるなら「YES」、直角三角形とならないなら「NO」
*/
private static String getResult(String[] dataSet) {
// 読み取ったデータセットをint型の配列に変換
int[] lengths = toIntArray(dataSet);
// 最も長い辺を求めるため、配列を昇順ソート
Arrays.sort(lengths);
boolean isRightTriangle = (getSquare(lengths[2]) == getSquare(lengths[0]) + getSquare(lengths[1]));
if (isRightTriangle) {
return RESULT_RIGHT_TRIANGLE;
} else {
return RESULT_NOT_RIGHT_TRIANGLE;
}
}
/**
* String型の配列をint型の配列に変換する。
*
* @param stringArray 変換対象のString型配列
*/
private static int[] toIntArray(String[] stringArray) {
int[] intArray = new int[stringArray.length];
for (int i = 0; i < stringArray.length; ++i) {
intArray[i] = Integer.parseInt(stringArray[i]);
}
return intArray;
}
// /**
// * 与えられた3辺を持つ三角形が直角三角形かどうかを求める。
// *
// * @param longestSide 長辺
// * @param shortestSide その他の辺
// * @param middleSide その他の辺
// * @return 直角三角形なら true、それ以外なら false
// */
// private static boolean isRightTriangle(int longestSide, int shortestSide, int middleSide) {
// if (getSquare(longestSide) == getSquare(shortestSide) + getSquare(middleSide)) {
// return true;
// }
// return false;
// }
/**
* 引数の2乗を求める。
*
* @param target 2乗する整数
* @return 2乗した整数
*/
private static int getSquare(int target) {
return target*target;
}
/**
* 標準入力を読み取る。<br>
* データセットの各行は、区切り文字により分割した配列としてリストに格納する。
*
* @return データセットの各行を格納したリスト
* @throws NumberFormatException
* @throws IOException
*/
private static List<String[]> getInput() throws NumberFormatException, IOException {
// 入力読取り
InputStreamReader streamReader = new InputStreamReader(System.in);
BufferedReader bufferedReader = new BufferedReader(streamReader);
List<String[]> dataSets = new ArrayList<String[]>();
try {
// データセットの1行目は、データセット数を表す。
int numberOfDataSets = Integer.parseInt(bufferedReader.readLine());
// 取得したデータセット数の分だけ読み取る。
for (int i = 0; i < numberOfDataSets; ++i) {
String[] dataSet = bufferedReader.readLine().split(DELIMITER_SPACE);
dataSets.add(dataSet);
}
return dataSets;
} finally {
bufferedReader.close();
streamReader.close();
}
}
} |
[
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,
13,
17,
2,
13,
17,
2,
13,
17,
3,
41,
13,
20,
17,
0,
18,
13,
17,
13,
0,
18,
13,
17,
13,
0,
18,
13,
17,
13,
4,
18,
13,
13,
41,
13,
17,
14,
2,
2,
18,
13,
17,
18,
13,
17,
2,
2,
18,
13,
17,
4,
18,
13,
17,
18,
13,
17,
0,
13,
17,
14,
2,
2,
2,
18,
13,
17,
4,
18,
13,
17,
18,
13,
17,
2,
2,
18,
13,
17,
17,
18,
13,
17,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
2,
18,
13,
17,
13,
17,
2,
2,
18,
13,
17,
13,
17,
2,
2,
18,
13,
17,
13,
17,
0,
13,
17,
14,
2,
2,
2,
2,
18,
13,
17,
13,
17,
2,
2,
18,
13,
17,
13,
17,
2,
2,
18,
13,
17,
13,
17,
0,
13,
17,
14,
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
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
40,
47
],
[
47,
48
],
[
47,
49
],
[
38,
50
],
[
22,
51
],
[
51,
52
],
[
51,
53
],
[
22,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
22,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
22,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
22,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
22,
74
],
[
74,
75
],
[
74,
76
],
[
22,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
86,
95
],
[
95,
96
],
[
95,
97
],
[
77,
98
],
[
98,
99
],
[
98,
100
],
[
22,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
103,
112
],
[
112,
113
],
[
112,
114
],
[
102,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
115,
121
],
[
121,
122
],
[
121,
123
],
[
101,
124
],
[
124,
125
],
[
124,
126
],
[
22,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
127,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
134,
136
],
[
127,
137
],
[
137,
138
],
[
138,
139
],
[
127,
140
],
[
141,
141
],
[
141,
142
],
[
142,
143
],
[
144,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
146,
150
],
[
145,
151
],
[
144,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
152,
158
],
[
144,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
159,
165
],
[
142,
166
],
[
166,
167
],
[
166,
168
],
[
141,
169
],
[
169,
170
],
[
171,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
172,
178
],
[
171,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
179,
185
],
[
171,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
186,
192
],
[
169,
193
],
[
193,
194
],
[
193,
195
],
[
22,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
200,
202
],
[
198,
203
],
[
196,
204
],
[
204,
205
],
[
205,
206
],
[
206,
207
],
[
206,
208
],
[
204,
209
],
[
4,
210
],
[
210,
211
],
[
210,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
210,
216
],
[
216,
217
]
] | [
"import java.util.*;\n\nclass Main{\n\n void solve(){\n Scanner sc = new Scanner(System.in);\n\n int num = sc.nextInt();\n while(num-->0){\n int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();\n if(a==0 && b==0 && c==0) break;\n\n double[] set = new double[3];\n set[0] = a; set[1] = b; set[2] = c;\n Arrays.sort(set);\n\n boolean boo = false;\n if(set[0]==set[1] && set[0]*Math.sqrt(2)==set[2]) boo = true;\n if(set[0]*Math.sqrt(3)==set[1] && set[0]*2==set[2]) boo = true;\n\n for(int i=1; i<=set[2]; i++){\n if(set[0]/i==3 && set[1]/i==4 && set[2]/i==5) boo = true;\n if(set[0]/i==5 && set[1]/i==12 && set[2]/i==13) boo = true;\n }\n if(boo) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }\n\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\n void solve(){\n Scanner sc = new Scanner(System.in);\n\n int num = sc.nextInt();\n while(num-->0){\n int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();\n if(a==0 && b==0 && c==0) break;\n\n double[] set = new double[3];\n set[0] = a; set[1] = b; set[2] = c;\n Arrays.sort(set);\n\n boolean boo = false;\n if(set[0]==set[1] && set[0]*Math.sqrt(2)==set[2]) boo = true;\n if(set[0]*Math.sqrt(3)==set[1] && set[0]*2==set[2]) boo = true;\n\n for(int i=1; i<=set[2]; i++){\n if(set[0]/i==3 && set[1]/i==4 && set[2]/i==5) boo = true;\n if(set[0]/i==5 && set[1]/i==12 && set[2]/i==13) boo = true;\n }\n if(boo) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }\n\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"Main",
"void solve(){\n Scanner sc = new Scanner(System.in);\n\n int num = sc.nextInt();\n while(num-->0){\n int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();\n if(a==0 && b==0 && c==0) break;\n\n double[] set = new double[3];\n set[0] = a; set[1] = b; set[2] = c;\n Arrays.sort(set);\n\n boolean boo = false;\n if(set[0]==set[1] && set[0]*Math.sqrt(2)==set[2]) boo = true;\n if(set[0]*Math.sqrt(3)==set[1] && set[0]*2==set[2]) boo = true;\n\n for(int i=1; i<=set[2]; i++){\n if(set[0]/i==3 && set[1]/i==4 && set[2]/i==5) boo = true;\n if(set[0]/i==5 && set[1]/i==12 && set[2]/i==13) boo = true;\n }\n if(boo) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }",
"solve",
"{\n Scanner sc = new Scanner(System.in);\n\n int num = sc.nextInt();\n while(num-->0){\n int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();\n if(a==0 && b==0 && c==0) break;\n\n double[] set = new double[3];\n set[0] = a; set[1] = b; set[2] = c;\n Arrays.sort(set);\n\n boolean boo = false;\n if(set[0]==set[1] && set[0]*Math.sqrt(2)==set[2]) boo = true;\n if(set[0]*Math.sqrt(3)==set[1] && set[0]*2==set[2]) boo = true;\n\n for(int i=1; i<=set[2]; i++){\n if(set[0]/i==3 && set[1]/i==4 && set[2]/i==5) boo = true;\n if(set[0]/i==5 && set[1]/i==12 && set[2]/i==13) boo = true;\n }\n if(boo) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(num-->0){\n int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();\n if(a==0 && b==0 && c==0) break;\n\n double[] set = new double[3];\n set[0] = a; set[1] = b; set[2] = c;\n Arrays.sort(set);\n\n boolean boo = false;\n if(set[0]==set[1] && set[0]*Math.sqrt(2)==set[2]) boo = true;\n if(set[0]*Math.sqrt(3)==set[1] && set[0]*2==set[2]) boo = true;\n\n for(int i=1; i<=set[2]; i++){\n if(set[0]/i==3 && set[1]/i==4 && set[2]/i==5) boo = true;\n if(set[0]/i==5 && set[1]/i==12 && set[2]/i==13) boo = true;\n }\n if(boo) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"num-->0",
"num--",
"num",
"0",
"{\n int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();\n if(a==0 && b==0 && c==0) break;\n\n double[] set = new double[3];\n set[0] = a; set[1] = b; set[2] = c;\n Arrays.sort(set);\n\n boolean boo = false;\n if(set[0]==set[1] && set[0]*Math.sqrt(2)==set[2]) boo = true;\n if(set[0]*Math.sqrt(3)==set[1] && set[0]*2==set[2]) boo = true;\n\n for(int i=1; i<=set[2]; i++){\n if(set[0]/i==3 && set[1]/i==4 && set[2]/i==5) boo = true;\n if(set[0]/i==5 && set[1]/i==12 && set[2]/i==13) boo = true;\n }\n if(boo) System.out.println(\"YES\");\n else System.out.println(\"NO\");\n }",
"int a = sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"b = sc.nextInt()",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"c = sc.nextInt();",
"c",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if(a==0 && b==0 && c==0) break;",
"a==0 && b==0 && c==0",
"a==0 && b==0 && c==0",
"a==0",
"a",
"0",
"b==0",
"b",
"0",
"c==0",
"c",
"0",
"break;",
"double[] set = new double[3];",
"set",
"new double[3]",
"3",
"set[0] = a",
"set[0]",
"set",
"0",
"a",
"set[1] = b",
"set[1]",
"set",
"1",
"b",
"set[2] = c",
"set[2]",
"set",
"2",
"c",
"Arrays.sort(set)",
"Arrays.sort",
"Arrays",
"set",
"boolean boo = false;",
"boo",
"false",
"if(set[0]==set[1] && set[0]*Math.sqrt(2)==set[2]) boo = true;",
"set[0]==set[1] && set[0]*Math.sqrt(2)==set[2]",
"set[0]==set[1]",
"set[0]",
"set",
"0",
"set[1]",
"set",
"1",
"set[0]*Math.sqrt(2)==set[2]",
"set[0]*Math.sqrt(2)",
"set[0]",
"set",
"0",
"Math.sqrt(2)",
"Math.sqrt",
"Math",
"2",
"set[2]",
"set",
"2",
"boo = true",
"boo",
"true",
"if(set[0]*Math.sqrt(3)==set[1] && set[0]*2==set[2]) boo = true;",
"set[0]*Math.sqrt(3)==set[1] && set[0]*2==set[2]",
"set[0]*Math.sqrt(3)==set[1]",
"set[0]*Math.sqrt(3)",
"set[0]",
"set",
"0",
"Math.sqrt(3)",
"Math.sqrt",
"Math",
"3",
"set[1]",
"set",
"1",
"set[0]*2==set[2]",
"set[0]*2",
"set[0]",
"set",
"0",
"2",
"set[2]",
"set",
"2",
"boo = true",
"boo",
"true",
"for(int i=1; i<=set[2]; i++){\n if(set[0]/i==3 && set[1]/i==4 && set[2]/i==5) boo = true;\n if(set[0]/i==5 && set[1]/i==12 && set[2]/i==13) boo = true;\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=set[2]",
"i",
"set[2]",
"set",
"2",
"i++",
"i++",
"i",
"{\n if(set[0]/i==3 && set[1]/i==4 && set[2]/i==5) boo = true;\n if(set[0]/i==5 && set[1]/i==12 && set[2]/i==13) boo = true;\n }",
"{\n if(set[0]/i==3 && set[1]/i==4 && set[2]/i==5) boo = true;\n if(set[0]/i==5 && set[1]/i==12 && set[2]/i==13) boo = true;\n }",
"if(set[0]/i==3 && set[1]/i==4 && set[2]/i==5) boo = true;",
"set[0]/i==3 && set[1]/i==4 && set[2]/i==5",
"set[0]/i==3 && set[1]/i==4 && set[2]/i==5",
"set[0]/i==3",
"set[0]/i",
"set[0]",
"set",
"0",
"i",
"3",
"set[1]/i==4",
"set[1]/i",
"set[1]",
"set",
"1",
"i",
"4",
"set[2]/i==5",
"set[2]/i",
"set[2]",
"set",
"2",
"i",
"5",
"boo = true",
"boo",
"true",
"if(set[0]/i==5 && set[1]/i==12 && set[2]/i==13) boo = true;",
"set[0]/i==5 && set[1]/i==12 && set[2]/i==13",
"set[0]/i==5 && set[1]/i==12 && set[2]/i==13",
"set[0]/i==5",
"set[0]/i",
"set[0]",
"set",
"0",
"i",
"5",
"set[1]/i==12",
"set[1]/i",
"set[1]",
"set",
"1",
"i",
"12",
"set[2]/i==13",
"set[2]/i",
"set[2]",
"set",
"2",
"i",
"13",
"boo = true",
"boo",
"true",
"if(boo) System.out.println(\"YES\");\n else System.out.println(\"NO\");",
"boo",
"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().solve();\n }",
"main",
"{\n new Main().solve();\n }",
"new Main().solve()",
"new Main().solve",
"new Main()",
"String[] args",
"args"
] | import java.util.*;
class Main{
void solve(){
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
while(num-->0){
int a = sc.nextInt(), b = sc.nextInt(), c = sc.nextInt();
if(a==0 && b==0 && c==0) break;
double[] set = new double[3];
set[0] = a; set[1] = b; set[2] = c;
Arrays.sort(set);
boolean boo = false;
if(set[0]==set[1] && set[0]*Math.sqrt(2)==set[2]) boo = true;
if(set[0]*Math.sqrt(3)==set[1] && set[0]*2==set[2]) boo = true;
for(int i=1; i<=set[2]; i++){
if(set[0]/i==3 && set[1]/i==4 && set[2]/i==5) boo = true;
if(set[0]/i==5 && set[1]/i==12 && set[2]/i==13) boo = true;
}
if(boo) System.out.println("YES");
else System.out.println("NO");
}
}
public static void main(String[] args){
new Main().solve();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
13,
4,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
4,
18,
4,
13,
17,
4,
18,
13,
13,
0,
18,
13,
17,
18,
13,
17,
0,
18,
13,
17,
18,
13,
17,
0,
18,
13,
17,
18,
13,
17,
14,
2,
2,
18,
13,
17,
18,
13,
17,
18,
13,
17,
30,
4,
13,
17,
30,
4,
13,
17,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
14,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
14,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
29,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
29,
4,
18,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
20,
12,
13,
30,
4,
13,
13,
17,
23,
13,
12,
13,
30,
14,
4,
13,
13,
30,
0,
13,
4,
13,
13,
30,
4,
18,
13,
13,
4,
13,
13,
13,
23,
13,
23,
13,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
22,
23
],
[
22,
24
],
[
0,
25
],
[
25,
26
],
[
25,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
],
[
0,
31
],
[
31,
32
],
[
31,
33
],
[
0,
34
],
[
34,
35
],
[
34,
36
],
[
0,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
45,
47
],
[
37,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
50,
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
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
74,
78
],
[
69,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
69,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
69,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
94,
96
],
[
69,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
101,
103
],
[
69,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
110,
112
],
[
105,
113
],
[
113,
114
],
[
113,
115
],
[
104,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
104,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
48,
124
],
[
124,
125
],
[
37,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
37,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
37,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
140,
152
],
[
152,
153
],
[
37,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
159,
160
],
[
159,
161
],
[
157,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
154,
166
],
[
166,
167
],
[
37,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
171,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
168,
180
],
[
180,
181
],
[
37,
182
],
[
182,
183
],
[
182,
184
],
[
184,
185
],
[
185,
186
],
[
186,
187
],
[
187,
188
],
[
187,
189
],
[
185,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
182,
194
],
[
194,
195
],
[
37,
196
],
[
196,
197
],
[
196,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
199,
204
],
[
204,
205
],
[
205,
206
],
[
196,
207
],
[
207,
208
],
[
37,
209
],
[
209,
210
],
[
209,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
215,
216
],
[
216,
217
],
[
216,
218
],
[
214,
219
],
[
219,
220
],
[
220,
221
],
[
209,
222
],
[
222,
223
],
[
37,
224
],
[
224,
225
],
[
224,
226
],
[
226,
227
],
[
227,
228
],
[
227,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
231,
233
],
[
229,
234
],
[
234,
235
],
[
235,
236
],
[
234,
237
],
[
224,
238
],
[
238,
239
],
[
37,
240
],
[
240,
241
],
[
240,
242
],
[
242,
243
],
[
243,
244
],
[
244,
245
],
[
243,
246
],
[
240,
247
],
[
247,
248
],
[
37,
249
],
[
249,
250
],
[
249,
251
],
[
251,
252
],
[
252,
253
],
[
252,
254
],
[
255,
256
],
[
255,
257
],
[
251,
258
],
[
258,
259
],
[
259,
260
],
[
260,
261
],
[
260,
262
],
[
258,
263
],
[
263,
264
],
[
263,
265
],
[
265,
266
],
[
265,
267
],
[
258,
268
],
[
268,
269
],
[
269,
270
],
[
258,
271
],
[
271,
272
],
[
272,
273
],
[
273,
274
],
[
273,
275
],
[
272,
276
],
[
276,
277
],
[
277,
278
],
[
276,
279
],
[
279,
280
],
[
279,
281
],
[
251,
282
],
[
282,
283
],
[
249,
284
],
[
284,
285
],
[
37,
286
],
[
286,
287
],
[
286,
288
],
[
288,
289
],
[
289,
290
],
[
290,
291
],
[
291,
292
],
[
290,
293
],
[
293,
294
],
[
294,
295
],
[
286,
296
],
[
296,
297
],
[
37,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
301,
302
],
[
302,
303
],
[
303,
304
],
[
304,
305
],
[
305,
306
],
[
304,
307
],
[
298,
308
],
[
308,
309
],
[
0,
310
],
[
310,
311
],
[
310,
312
],
[
312,
313
],
[
312,
314
],
[
310,
315
],
[
315,
316
],
[
315,
317
],
[
317,
318
],
[
318,
319
],
[
318,
320
],
[
318,
321
],
[
315,
322
],
[
322,
323
],
[
310,
324
],
[
324,
325
],
[
324,
326
],
[
326,
327
],
[
327,
328
],
[
328,
329
],
[
328,
330
],
[
327,
331
],
[
331,
332
],
[
332,
333
],
[
332,
334
],
[
334,
335
],
[
334,
336
],
[
327,
337
],
[
337,
338
],
[
338,
339
],
[
339,
340
],
[
338,
341
],
[
326,
342
],
[
342,
343
],
[
342,
344
],
[
342,
345
],
[
324,
346
],
[
346,
347
],
[
324,
348
],
[
348,
349
],
[
310,
350
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.ArrayDeque;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.Stack;\nimport java.util.Scanner;\nimport java.util.Queue;\n\n/**\n * @author yoshikyoto\n */\nclass Main{\n\tstatic final boolean DEBUG = false;\n\tstatic Scanner sc = new Scanner(new InputStreamReader(System.in));\n\tstatic BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\n\tpublic static void main(String args[]) throws Exception{\n\t\tint n = parseInt(readLine());\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint t[] = parseInt(readLine().split(\" \"));\n\t\t\tArrays.sort(t);\n\t\t\tt[0] *= t[0]; t[1] *= t[1]; t[2] *= t[2];\n\t\t\tif(t[0] + t[1] == t[2]){\n\t\t\t\tp(\"YES\");\n\t\t\t}else{\n\t\t\t\tp(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static String readLine() throws IOException{return br.readLine();}\n\tpublic static int readInt(){return sc.nextInt();}\n\tpublic static void pa(Object[] arr){System.out.println(Arrays.toString(arr));}\n\tpublic static void pa(int[] arr){System.out.println(Arrays.toString(arr));}\n\tpublic static void pa(double[] arr){System.out.println(Arrays.toString(arr));}\n\tpublic static void pa(boolean[] arr){System.out.println(Arrays.toString(arr));}\n\tpublic static void p(Object o){System.out.println(o.toString());}\n\tpublic static void d(Object o){if(DEBUG)System.out.println(o.toString());}\n\tpublic static void da(int[] arr){if(DEBUG)System.out.println(Arrays.toString(arr));}\n\tpublic static void sort(int[] a){Arrays.sort(a);}\n\tpublic static int[] parseInt(String[] arr){\n\t\tint[] res = new int[arr.length];\n\t\tfor(int i = 0; i < arr.length; i++)res[i] = Integer.parseInt(arr[i]);\n\t\treturn res;\n\t}\n\tpublic static int parseInt(Object o){return Integer.parseInt(o.toString());}\n\tpublic static int digit(int n){return String.valueOf(n).length();}\n}\n\nclass MyHashMap<E> extends HashMap<E, Integer>{\n\tArrayList<E> keyArray = new ArrayList<E>();\n\tpublic void add(E key){add(key, 1);}\n\tpublic void add(E key, Integer value){\n\t\tif(containsKey(key)){\n\t\t\tvalue += get(key);\n\t\t}else{\n\t\t\tkeyArray.add(key);\n\t\t}\n\t\tput(key, value);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayDeque;",
"ArrayDeque",
"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.HashMap;",
"HashMap",
"java.util",
"import java.util.Stack;",
"Stack",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Queue;",
"Queue",
"java.util",
"class Main{\n\tstatic final boolean DEBUG = false;\n\tstatic Scanner sc = new Scanner(new InputStreamReader(System.in));\n\tstatic BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\n\tpublic static void main(String args[]) throws Exception{\n\t\tint n = parseInt(readLine());\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint t[] = parseInt(readLine().split(\" \"));\n\t\t\tArrays.sort(t);\n\t\t\tt[0] *= t[0]; t[1] *= t[1]; t[2] *= t[2];\n\t\t\tif(t[0] + t[1] == t[2]){\n\t\t\t\tp(\"YES\");\n\t\t\t}else{\n\t\t\t\tp(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static String readLine() throws IOException{return br.readLine();}\n\tpublic static int readInt(){return sc.nextInt();}\n\tpublic static void pa(Object[] arr){System.out.println(Arrays.toString(arr));}\n\tpublic static void pa(int[] arr){System.out.println(Arrays.toString(arr));}\n\tpublic static void pa(double[] arr){System.out.println(Arrays.toString(arr));}\n\tpublic static void pa(boolean[] arr){System.out.println(Arrays.toString(arr));}\n\tpublic static void p(Object o){System.out.println(o.toString());}\n\tpublic static void d(Object o){if(DEBUG)System.out.println(o.toString());}\n\tpublic static void da(int[] arr){if(DEBUG)System.out.println(Arrays.toString(arr));}\n\tpublic static void sort(int[] a){Arrays.sort(a);}\n\tpublic static int[] parseInt(String[] arr){\n\t\tint[] res = new int[arr.length];\n\t\tfor(int i = 0; i < arr.length; i++)res[i] = Integer.parseInt(arr[i]);\n\t\treturn res;\n\t}\n\tpublic static int parseInt(Object o){return Integer.parseInt(o.toString());}\n\tpublic static int digit(int n){return String.valueOf(n).length();}\n}",
"Main",
"static final boolean DEBUG = false;",
"DEBUG",
"false",
"static Scanner sc = new Scanner(new InputStreamReader(System.in));",
"sc",
"new Scanner(new InputStreamReader(System.in))",
"static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"public static void main(String args[]) throws Exception{\n\t\tint n = parseInt(readLine());\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint t[] = parseInt(readLine().split(\" \"));\n\t\t\tArrays.sort(t);\n\t\t\tt[0] *= t[0]; t[1] *= t[1]; t[2] *= t[2];\n\t\t\tif(t[0] + t[1] == t[2]){\n\t\t\t\tp(\"YES\");\n\t\t\t}else{\n\t\t\t\tp(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tint n = parseInt(readLine());\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tint t[] = parseInt(readLine().split(\" \"));\n\t\t\tArrays.sort(t);\n\t\t\tt[0] *= t[0]; t[1] *= t[1]; t[2] *= t[2];\n\t\t\tif(t[0] + t[1] == t[2]){\n\t\t\t\tp(\"YES\");\n\t\t\t}else{\n\t\t\t\tp(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"int n = parseInt(readLine());",
"n",
"parseInt(readLine())",
"parseInt",
"readLine()",
"readLine",
"for(int i = 0; i < n; i++){\n\t\t\tint t[] = parseInt(readLine().split(\" \"));\n\t\t\tArrays.sort(t);\n\t\t\tt[0] *= t[0]; t[1] *= t[1]; t[2] *= t[2];\n\t\t\tif(t[0] + t[1] == t[2]){\n\t\t\t\tp(\"YES\");\n\t\t\t}else{\n\t\t\t\tp(\"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 t[] = parseInt(readLine().split(\" \"));\n\t\t\tArrays.sort(t);\n\t\t\tt[0] *= t[0]; t[1] *= t[1]; t[2] *= t[2];\n\t\t\tif(t[0] + t[1] == t[2]){\n\t\t\t\tp(\"YES\");\n\t\t\t}else{\n\t\t\t\tp(\"NO\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tint t[] = parseInt(readLine().split(\" \"));\n\t\t\tArrays.sort(t);\n\t\t\tt[0] *= t[0]; t[1] *= t[1]; t[2] *= t[2];\n\t\t\tif(t[0] + t[1] == t[2]){\n\t\t\t\tp(\"YES\");\n\t\t\t}else{\n\t\t\t\tp(\"NO\");\n\t\t\t}\n\t\t}",
"int t[] = parseInt(readLine().split(\" \"));",
"t",
"parseInt(readLine().split(\" \"))",
"parseInt",
"readLine().split(\" \")",
"readLine().split",
"readLine()",
"readLine",
"\" \"",
"Arrays.sort(t)",
"Arrays.sort",
"Arrays",
"t",
"t[0] *= t[0]",
"t[0]",
"t",
"0",
"t[0]",
"t",
"0",
"t[1] *= t[1]",
"t[1]",
"t",
"1",
"t[1]",
"t",
"1",
"t[2] *= t[2]",
"t[2]",
"t",
"2",
"t[2]",
"t",
"2",
"if(t[0] + t[1] == t[2]){\n\t\t\t\tp(\"YES\");\n\t\t\t}else{\n\t\t\t\tp(\"NO\");\n\t\t\t}",
"t[0] + t[1] == t[2]",
"t[0] + t[1]",
"t[0]",
"t",
"0",
"t[1]",
"t",
"1",
"t[2]",
"t",
"2",
"{\n\t\t\t\tp(\"YES\");\n\t\t\t}",
"p(\"YES\")",
"p",
"\"YES\"",
"{\n\t\t\t\tp(\"NO\");\n\t\t\t}",
"p(\"NO\")",
"p",
"\"NO\"",
"String args[]",
"args",
"public static String readLine() throws IOException{return br.readLine();}",
"readLine",
"{return br.readLine();}",
"return br.readLine();",
"br.readLine()",
"br.readLine",
"br",
"public static int readInt(){return sc.nextInt();}",
"readInt",
"{return sc.nextInt();}",
"return sc.nextInt();",
"sc.nextInt()",
"sc.nextInt",
"sc",
"public static void pa(Object[] arr){System.out.println(Arrays.toString(arr));}",
"pa",
"{System.out.println(Arrays.toString(arr));}",
"System.out.println(Arrays.toString(arr))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.toString(arr)",
"Arrays.toString",
"Arrays",
"arr",
"Object[] arr",
"arr",
"public static void pa(int[] arr){System.out.println(Arrays.toString(arr));}",
"pa",
"{System.out.println(Arrays.toString(arr));}",
"System.out.println(Arrays.toString(arr))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.toString(arr)",
"Arrays.toString",
"Arrays",
"arr",
"int[] arr",
"arr",
"public static void pa(double[] arr){System.out.println(Arrays.toString(arr));}",
"pa",
"{System.out.println(Arrays.toString(arr));}",
"System.out.println(Arrays.toString(arr))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.toString(arr)",
"Arrays.toString",
"Arrays",
"arr",
"double[] arr",
"arr",
"public static void pa(boolean[] arr){System.out.println(Arrays.toString(arr));}",
"pa",
"{System.out.println(Arrays.toString(arr));}",
"System.out.println(Arrays.toString(arr))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.toString(arr)",
"Arrays.toString",
"Arrays",
"arr",
"boolean[] arr",
"arr",
"public static void p(Object o){System.out.println(o.toString());}",
"p",
"{System.out.println(o.toString());}",
"System.out.println(o.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"o.toString()",
"o.toString",
"o",
"Object o",
"o",
"public static void d(Object o){if(DEBUG)System.out.println(o.toString());}",
"d",
"{if(DEBUG)System.out.println(o.toString());}",
"if(DEBUG)System.out.println(o.toString());",
"DEBUG",
"System.out.println(o.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"o.toString()",
"o.toString",
"o",
"Object o",
"o",
"public static void da(int[] arr){if(DEBUG)System.out.println(Arrays.toString(arr));}",
"da",
"{if(DEBUG)System.out.println(Arrays.toString(arr));}",
"if(DEBUG)System.out.println(Arrays.toString(arr));",
"DEBUG",
"System.out.println(Arrays.toString(arr))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.toString(arr)",
"Arrays.toString",
"Arrays",
"arr",
"int[] arr",
"arr",
"public static void sort(int[] a){Arrays.sort(a);}",
"sort",
"{Arrays.sort(a);}",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"int[] a",
"a",
"public static int[] parseInt(String[] arr){\n\t\tint[] res = new int[arr.length];\n\t\tfor(int i = 0; i < arr.length; i++)res[i] = Integer.parseInt(arr[i]);\n\t\treturn res;\n\t}",
"parseInt",
"{\n\t\tint[] res = new int[arr.length];\n\t\tfor(int i = 0; i < arr.length; i++)res[i] = Integer.parseInt(arr[i]);\n\t\treturn res;\n\t}",
"int[] res = new int[arr.length];",
"res",
"new int[arr.length]",
"arr.length",
"arr",
"arr.length",
"for(int i = 0; i < arr.length; i++)res[i] = Integer.parseInt(arr[i]);",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < arr.length",
"i",
"arr.length",
"arr",
"arr.length",
"i++",
"i++",
"i",
"res[i] = Integer.parseInt(arr[i]);",
"res[i] = Integer.parseInt(arr[i])",
"res[i]",
"res",
"i",
"Integer.parseInt(arr[i])",
"Integer.parseInt",
"Integer",
"arr[i]",
"arr",
"i",
"return res;",
"res",
"String[] arr",
"arr",
"public static int parseInt(Object o){return Integer.parseInt(o.toString());}",
"parseInt",
"{return Integer.parseInt(o.toString());}",
"return Integer.parseInt(o.toString());",
"Integer.parseInt(o.toString())",
"Integer.parseInt",
"Integer",
"o.toString()",
"o.toString",
"o",
"Object o",
"o",
"public static int digit(int n){return String.valueOf(n).length();}",
"digit",
"{return String.valueOf(n).length();}",
"return String.valueOf(n).length();",
"String.valueOf(n).length()",
"String.valueOf(n).length",
"String.valueOf(n)",
"String.valueOf",
"String",
"n",
"int n",
"n",
"class MyHashMap<E> extends HashMap<E, Integer>{\n\tArrayList<E> keyArray = new ArrayList<E>();\n\tpublic void add(E key){add(key, 1);}\n\tpublic void add(E key, Integer value){\n\t\tif(containsKey(key)){\n\t\t\tvalue += get(key);\n\t\t}else{\n\t\t\tkeyArray.add(key);\n\t\t}\n\t\tput(key, value);\n\t}\n}",
"MyHashMap",
"ArrayList<E> keyArray = new ArrayList<E>();",
"keyArray",
"new ArrayList<E>()",
"public void add(E key){add(key, 1);}",
"add",
"{add(key, 1);}",
"add(key, 1)",
"add",
"key",
"1",
"E key",
"key",
"public void add(E key, Integer value){\n\t\tif(containsKey(key)){\n\t\t\tvalue += get(key);\n\t\t}else{\n\t\t\tkeyArray.add(key);\n\t\t}\n\t\tput(key, value);\n\t}",
"add",
"{\n\t\tif(containsKey(key)){\n\t\t\tvalue += get(key);\n\t\t}else{\n\t\t\tkeyArray.add(key);\n\t\t}\n\t\tput(key, value);\n\t}",
"if(containsKey(key)){\n\t\t\tvalue += get(key);\n\t\t}else{\n\t\t\tkeyArray.add(key);\n\t\t}",
"containsKey(key)",
"containsKey",
"key",
"{\n\t\t\tvalue += get(key);\n\t\t}",
"value += get(key)",
"value",
"get(key)",
"get",
"key",
"{\n\t\t\tkeyArray.add(key);\n\t\t}",
"keyArray.add(key)",
"keyArray.add",
"keyArray",
"key",
"put(key, value)",
"put",
"key",
"value",
"E key",
"key",
"Integer value",
"value",
"HashMap"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.Stack;
import java.util.Scanner;
import java.util.Queue;
/**
* @author yoshikyoto
*/
class Main{
static final boolean DEBUG = false;
static Scanner sc = new Scanner(new InputStreamReader(System.in));
static BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
public static void main(String args[]) throws Exception{
int n = parseInt(readLine());
for(int i = 0; i < n; i++){
int t[] = parseInt(readLine().split(" "));
Arrays.sort(t);
t[0] *= t[0]; t[1] *= t[1]; t[2] *= t[2];
if(t[0] + t[1] == t[2]){
p("YES");
}else{
p("NO");
}
}
}
public static String readLine() throws IOException{return br.readLine();}
public static int readInt(){return sc.nextInt();}
public static void pa(Object[] arr){System.out.println(Arrays.toString(arr));}
public static void pa(int[] arr){System.out.println(Arrays.toString(arr));}
public static void pa(double[] arr){System.out.println(Arrays.toString(arr));}
public static void pa(boolean[] arr){System.out.println(Arrays.toString(arr));}
public static void p(Object o){System.out.println(o.toString());}
public static void d(Object o){if(DEBUG)System.out.println(o.toString());}
public static void da(int[] arr){if(DEBUG)System.out.println(Arrays.toString(arr));}
public static void sort(int[] a){Arrays.sort(a);}
public static int[] parseInt(String[] arr){
int[] res = new int[arr.length];
for(int i = 0; i < arr.length; i++)res[i] = Integer.parseInt(arr[i]);
return res;
}
public static int parseInt(Object o){return Integer.parseInt(o.toString());}
public static int digit(int n){return String.valueOf(n).length();}
}
class MyHashMap<E> extends HashMap<E, Integer>{
ArrayList<E> keyArray = new ArrayList<E>();
public void add(E key){add(key, 1);}
public void add(E key, Integer value){
if(containsKey(key)){
value += get(key);
}else{
keyArray.add(key);
}
put(key, value);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
20,
17,
41,
13,
17,
41,
13,
20,
17,
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,
18,
13,
17,
17,
0,
18,
13,
17,
17,
0,
13,
17,
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,
13,
18,
13,
13,
30,
14,
2,
18,
13,
17,
17,
0,
18,
13,
17,
13,
14,
2,
18,
13,
17,
17,
0,
18,
13,
17,
13,
0,
13,
18,
13,
13,
30,
14,
2,
18,
13,
17,
17,
0,
18,
13,
17,
18,
13,
13,
14,
2,
18,
13,
17,
17,
0,
18,
13,
17,
18,
13,
13,
14,
2,
2,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
205,
11
],
[
205,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
14,
30
],
[
30,
31
],
[
30,
32
],
[
14,
34
],
[
34,
35
],
[
34,
36
],
[
14,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
14,
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
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
58,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
58,
74
],
[
74,
75
],
[
74,
76
],
[
58,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
58,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
83,
94
],
[
95,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
103,
104
],
[
103,
105
],
[
95,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
106,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
113,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
113,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
124,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
112,
135
],
[
135,
136
],
[
135,
137
],
[
137,
138
],
[
137,
139
],
[
106,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
142,
146
],
[
141,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
151,
153
],
[
141,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
155,
159
],
[
154,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
164,
166
],
[
58,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
173,
174
],
[
173,
175
],
[
170,
176
],
[
169,
177
],
[
177,
178
],
[
178,
179
],
[
177,
180
],
[
180,
181
],
[
180,
182
],
[
177,
183
],
[
168,
184
],
[
184,
185
],
[
185,
186
],
[
184,
187
],
[
184,
188
],
[
167,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
192,
193
],
[
192,
194
],
[
190,
195
],
[
167,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
12,
202
],
[
202,
203
],
[
0,
204
],
[
204,
205
],
[
204,
206
]
] | [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main{\n\n\tpublic static void main(String argv[]) throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString str;\n\t\tString triangle_side_str[] = new String[3];\n\t\tint max = 0;\n\t\tint remain[] = new int[2];\n\t\tint triangle_side_int[] = new int[3];\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tstr = br.readLine();\n\t\t\tremain[0] = 0;\n\t\t\tremain[1] = 0;\n\t\t\tmax = 0;\n\t\t\ttriangle_side_str = str.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\ttriangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);\n\t\t\t\tif (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// System.out.println(max);\n\t\t\t// System.out.println(remain[0]);\n\t\t\t// System.out.println(remain[1]);\n\t\t\tif (Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\n\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",
"public class Main{\n\n\tpublic static void main(String argv[]) throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString str;\n\t\tString triangle_side_str[] = new String[3];\n\t\tint max = 0;\n\t\tint remain[] = new int[2];\n\t\tint triangle_side_int[] = new int[3];\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tstr = br.readLine();\n\t\t\tremain[0] = 0;\n\t\t\tremain[1] = 0;\n\t\t\tmax = 0;\n\t\t\ttriangle_side_str = str.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\ttriangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);\n\t\t\t\tif (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// System.out.println(max);\n\t\t\t// System.out.println(remain[0]);\n\t\t\t// System.out.println(remain[1]);\n\t\t\tif (Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String argv[]) throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString str;\n\t\tString triangle_side_str[] = new String[3];\n\t\tint max = 0;\n\t\tint remain[] = new int[2];\n\t\tint triangle_side_int[] = new int[3];\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tstr = br.readLine();\n\t\t\tremain[0] = 0;\n\t\t\tremain[1] = 0;\n\t\t\tmax = 0;\n\t\t\ttriangle_side_str = str.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\ttriangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);\n\t\t\t\tif (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// System.out.println(max);\n\t\t\t// System.out.println(remain[0]);\n\t\t\t// System.out.println(remain[1]);\n\t\t\tif (Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}\n\n\t}",
"main",
"{\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString str;\n\t\tString triangle_side_str[] = new String[3];\n\t\tint max = 0;\n\t\tint remain[] = new int[2];\n\t\tint triangle_side_int[] = new int[3];\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tstr = br.readLine();\n\t\t\tremain[0] = 0;\n\t\t\tremain[1] = 0;\n\t\t\tmax = 0;\n\t\t\ttriangle_side_str = str.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\ttriangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);\n\t\t\t\tif (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// System.out.println(max);\n\t\t\t// System.out.println(remain[0]);\n\t\t\t// System.out.println(remain[1]);\n\t\t\tif (Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}\n\n\t}",
"InputStreamReader is = new InputStreamReader(System.in);",
"is",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(is);",
"br",
"new BufferedReader(is)",
"String str;",
"str",
"String triangle_side_str[] = new String[3];",
"triangle_side_str",
"new String[3]",
"3",
"int max = 0;",
"max",
"0",
"int remain[] = new int[2];",
"remain",
"new int[2]",
"2",
"int triangle_side_int[] = new int[3];",
"triangle_side_int",
"new int[3]",
"3",
"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\tstr = br.readLine();\n\t\t\tremain[0] = 0;\n\t\t\tremain[1] = 0;\n\t\t\tmax = 0;\n\t\t\ttriangle_side_str = str.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\ttriangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);\n\t\t\t\tif (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// System.out.println(max);\n\t\t\t// System.out.println(remain[0]);\n\t\t\t// System.out.println(remain[1]);\n\t\t\tif (Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < N",
"j",
"N",
"j++",
"j++",
"j",
"{\n\t\t\tstr = br.readLine();\n\t\t\tremain[0] = 0;\n\t\t\tremain[1] = 0;\n\t\t\tmax = 0;\n\t\t\ttriangle_side_str = str.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\ttriangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);\n\t\t\t\tif (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// System.out.println(max);\n\t\t\t// System.out.println(remain[0]);\n\t\t\t// System.out.println(remain[1]);\n\t\t\tif (Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}",
"{\n\t\t\tstr = br.readLine();\n\t\t\tremain[0] = 0;\n\t\t\tremain[1] = 0;\n\t\t\tmax = 0;\n\t\t\ttriangle_side_str = str.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\ttriangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);\n\t\t\t\tif (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// System.out.println(max);\n\t\t\t// System.out.println(remain[0]);\n\t\t\t// System.out.println(remain[1]);\n\t\t\tif (Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"remain[0] = 0",
"remain[0]",
"remain",
"0",
"0",
"remain[1] = 0",
"remain[1]",
"remain",
"1",
"0",
"max = 0",
"max",
"0",
"triangle_side_str = str.split(\" \")",
"triangle_side_str",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for (int i = 0; i < 3; i++) {\n\t\t\t\ttriangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);\n\t\t\t\tif (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\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\ttriangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);\n\t\t\t\tif (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}\n\n\t\t\t}",
"{\n\t\t\t\ttriangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);\n\t\t\t\tif (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}\n\n\t\t\t}",
"triangle_side_int[i] = Integer.parseInt(triangle_side_str[i])",
"triangle_side_int[i]",
"triangle_side_int",
"i",
"Integer.parseInt(triangle_side_str[i])",
"Integer.parseInt",
"Integer",
"triangle_side_str[i]",
"triangle_side_str",
"i",
"if (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}",
"max <= triangle_side_int[i]",
"max",
"triangle_side_int[i]",
"triangle_side_int",
"i",
"{\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t}",
"if (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;",
"remain[1] == 0",
"remain[1]",
"remain",
"1",
"0",
"remain[1] = max",
"remain[1]",
"remain",
"1",
"max",
"if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;",
"remain[0] == 0",
"remain[0]",
"remain",
"0",
"0",
"remain[0] = max",
"remain[0]",
"remain",
"0",
"max",
"max = triangle_side_int[i]",
"max",
"triangle_side_int[i]",
"triangle_side_int",
"i",
"{\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}",
"if (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];",
"remain[1] == 0",
"remain[1]",
"remain",
"1",
"0",
"remain[1] = triangle_side_int[i]",
"remain[1]",
"remain",
"1",
"triangle_side_int[i]",
"triangle_side_int",
"i",
"if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];",
"remain[0] == 0",
"remain[0]",
"remain",
"0",
"0",
"remain[0] = triangle_side_int[i]",
"remain[0]",
"remain",
"0",
"triangle_side_int[i]",
"triangle_side_int",
"i",
"if (Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");",
"Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)",
"Math.pow(remain[0], 2) + Math.pow(remain[1], 2)",
"Math.pow(remain[0], 2)",
"Math.pow",
"Math",
"remain[0]",
"remain",
"0",
"2",
"Math.pow(remain[1], 2)",
"Math.pow",
"Math",
"remain[1]",
"remain",
"1",
"2",
"Math.pow(max, 2)",
"Math.pow",
"Math",
"max",
"2",
"{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String argv[]",
"argv",
"public class Main{\n\n\tpublic static void main(String argv[]) throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString str;\n\t\tString triangle_side_str[] = new String[3];\n\t\tint max = 0;\n\t\tint remain[] = new int[2];\n\t\tint triangle_side_int[] = new int[3];\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tstr = br.readLine();\n\t\t\tremain[0] = 0;\n\t\t\tremain[1] = 0;\n\t\t\tmax = 0;\n\t\t\ttriangle_side_str = str.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\ttriangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);\n\t\t\t\tif (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// System.out.println(max);\n\t\t\t// System.out.println(remain[0]);\n\t\t\t// System.out.println(remain[1]);\n\t\t\tif (Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}\n\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String argv[]) throws IOException {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\t\tString str;\n\t\tString triangle_side_str[] = new String[3];\n\t\tint max = 0;\n\t\tint remain[] = new int[2];\n\t\tint triangle_side_int[] = new int[3];\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor (int j = 0; j < N; j++) {\n\t\t\tstr = br.readLine();\n\t\t\tremain[0] = 0;\n\t\t\tremain[1] = 0;\n\t\t\tmax = 0;\n\t\t\ttriangle_side_str = str.split(\" \");\n\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\ttriangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);\n\t\t\t\tif (max <= triangle_side_int[i]) {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = max;\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = max;\n\t\t\t\t\tmax = triangle_side_int[i];\n\t\t\t\t} else {\n\t\t\t\t\tif (remain[1] == 0)\n\t\t\t\t\t\tremain[1] = triangle_side_int[i];\n\t\t\t\t\telse if (remain[0] == 0)\n\t\t\t\t\t\tremain[0] = triangle_side_int[i];\n\t\t\t\t}\n\n\t\t\t}\n\t\t\t// System.out.println(max);\n\t\t\t// System.out.println(remain[0]);\n\t\t\t// System.out.println(remain[1]);\n\t\t\tif (Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else\n\t\t\t\tSystem.out.println(\"NO\");\n\n\t\t}\n\n\t}\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main{
public static void main(String argv[]) throws IOException {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(is);
String str;
String triangle_side_str[] = new String[3];
int max = 0;
int remain[] = new int[2];
int triangle_side_int[] = new int[3];
int N = Integer.parseInt(br.readLine());
for (int j = 0; j < N; j++) {
str = br.readLine();
remain[0] = 0;
remain[1] = 0;
max = 0;
triangle_side_str = str.split(" ");
for (int i = 0; i < 3; i++) {
triangle_side_int[i] = Integer.parseInt(triangle_side_str[i]);
if (max <= triangle_side_int[i]) {
if (remain[1] == 0)
remain[1] = max;
else if (remain[0] == 0)
remain[0] = max;
max = triangle_side_int[i];
} else {
if (remain[1] == 0)
remain[1] = triangle_side_int[i];
else if (remain[0] == 0)
remain[0] = triangle_side_int[i];
}
}
// System.out.println(max);
// System.out.println(remain[0]);
// System.out.println(remain[1]);
if (Math.pow(remain[0], 2) + Math.pow(remain[1], 2) == Math.pow(max, 2)) {
System.out.println("YES");
} else
System.out.println("NO");
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
40,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
13,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
29,
17,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
29,
17,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
29,
17,
29,
17,
23,
13,
23,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
5,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
18,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
18,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
18,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
18,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
37,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
36,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
3,
56
],
[
56,
57
],
[
1,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
61,
73
],
[
73,
74
],
[
60,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
75,
87
],
[
87,
88
],
[
60,
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
],
[
60,
103
],
[
103,
104
],
[
58,
105
],
[
105,
106
],
[
58,
107
],
[
107,
108
],
[
58,
109
],
[
109,
110
]
] | [
"class Main\n{\n\tpublic static void main( String[] args )\n\t{\n\t\tjava.util.Scanner sc = new java.util.Scanner( System.in );\n\t\t\n\t\tint n = sc.nextInt();\n\t\twhile( n != 0 )\n\t\t{\n\t\t\tn--;\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\tif( check( a, b, c ) ){\n\t\t\t\tSystem.out.println( \"YES\" );\n\t\t\t}else{\n\t\t\t\tSystem.out.println( \"NO\" );\n\t\t\t}\n\t\t}\n\t}\n\tstatic boolean check( int a, int b, int c )\n\t{\n\t\tif( a*a == b*b + c*c )return true;\n\t\tif( b*b == c*c + a*a )return true;\n\t\tif( c*c == a*a + b*b )return true;\n\t\t\n\t\treturn false;\n\t}\n}",
"class Main\n{\n\tpublic static void main( String[] args )\n\t{\n\t\tjava.util.Scanner sc = new java.util.Scanner( System.in );\n\t\t\n\t\tint n = sc.nextInt();\n\t\twhile( n != 0 )\n\t\t{\n\t\t\tn--;\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\tif( check( a, b, c ) ){\n\t\t\t\tSystem.out.println( \"YES\" );\n\t\t\t}else{\n\t\t\t\tSystem.out.println( \"NO\" );\n\t\t\t}\n\t\t}\n\t}\n\tstatic boolean check( int a, int b, int c )\n\t{\n\t\tif( a*a == b*b + c*c )return true;\n\t\tif( b*b == c*c + a*a )return true;\n\t\tif( c*c == a*a + b*b )return true;\n\t\t\n\t\treturn false;\n\t}\n}",
"Main",
"public static void main( String[] args )\n\t{\n\t\tjava.util.Scanner sc = new java.util.Scanner( System.in );\n\t\t\n\t\tint n = sc.nextInt();\n\t\twhile( n != 0 )\n\t\t{\n\t\t\tn--;\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\tif( check( a, b, c ) ){\n\t\t\t\tSystem.out.println( \"YES\" );\n\t\t\t}else{\n\t\t\t\tSystem.out.println( \"NO\" );\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tjava.util.Scanner sc = new java.util.Scanner( System.in );\n\t\t\n\t\tint n = sc.nextInt();\n\t\twhile( n != 0 )\n\t\t{\n\t\t\tn--;\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\tif( check( a, b, c ) ){\n\t\t\t\tSystem.out.println( \"YES\" );\n\t\t\t}else{\n\t\t\t\tSystem.out.println( \"NO\" );\n\t\t\t}\n\t\t}\n\t}",
"java.util.Scanner sc = new java.util.Scanner( System.in );",
"sc",
"new java.util.Scanner( System.in )",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while( n != 0 )\n\t\t{\n\t\t\tn--;\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\tif( check( a, b, c ) ){\n\t\t\t\tSystem.out.println( \"YES\" );\n\t\t\t}else{\n\t\t\t\tSystem.out.println( \"NO\" );\n\t\t\t}\n\t\t}",
"n != 0",
"n",
"0",
"{\n\t\t\tn--;\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\tif( check( a, b, c ) ){\n\t\t\t\tSystem.out.println( \"YES\" );\n\t\t\t}else{\n\t\t\t\tSystem.out.println( \"NO\" );\n\t\t\t}\n\t\t}",
"n--",
"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( check( a, b, c ) ){\n\t\t\t\tSystem.out.println( \"YES\" );\n\t\t\t}else{\n\t\t\t\tSystem.out.println( \"NO\" );\n\t\t\t}",
"check( a, b, c )",
"check",
"a",
"b",
"c",
"{\n\t\t\t\tSystem.out.println( \"YES\" );\n\t\t\t}",
"System.out.println( \"YES\" )",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\t\t\t\tSystem.out.println( \"NO\" );\n\t\t\t}",
"System.out.println( \"NO\" )",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args",
"static boolean check( int a, int b, int c )\n\t{\n\t\tif( a*a == b*b + c*c )return true;\n\t\tif( b*b == c*c + a*a )return true;\n\t\tif( c*c == a*a + b*b )return true;\n\t\t\n\t\treturn false;\n\t}",
"check",
"{\n\t\tif( a*a == b*b + c*c )return true;\n\t\tif( b*b == c*c + a*a )return true;\n\t\tif( c*c == a*a + b*b )return true;\n\t\t\n\t\treturn false;\n\t}",
"if( a*a == b*b + c*c )return true;",
"a*a == b*b + c*c",
"a*a",
"a",
"a",
"b*b + c*c",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"return true;",
"true",
"if( b*b == c*c + a*a )return true;",
"b*b == c*c + a*a",
"b*b",
"b",
"b",
"c*c + a*a",
"c*c",
"c",
"c",
"a*a",
"a",
"a",
"return true;",
"true",
"if( c*c == a*a + b*b )return true;",
"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"
] | class Main
{
public static void main( String[] args )
{
java.util.Scanner sc = new java.util.Scanner( System.in );
int n = sc.nextInt();
while( n != 0 )
{
n--;
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if( check( a, b, c ) ){
System.out.println( "YES" );
}else{
System.out.println( "NO" );
}
}
}
static boolean check( int a, int b, int c )
{
if( a*a == b*b + c*c )return true;
if( b*b == c*c + a*a )return true;
if( c*c == a*a + b*b )return true;
return false;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
18,
13,
17,
41,
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,
18,
13,
17,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
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
],
[
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
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
35,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
35,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
35,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
62,
64
],
[
35,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
70,
72
],
[
35,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
78,
80
],
[
35,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
90,
92
],
[
81,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
81,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
109,
111
],
[
100,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
100,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
125,
127
],
[
120,
128
],
[
128,
129
],
[
128,
130
],
[
119,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
119,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
6,
145
],
[
145,
146
],
[
0,
147
],
[
147,
148
],
[
147,
149
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t String n = sc.nextLine();\n\t int N = Integer.parseInt(n);\n\n\t for (int i = 0; i < N; i++) {\n\t \t \n\t\t\tString a = sc.nextLine();\n String[] array = a.split(\" \");\n String b = array[0];\n String c = array[1];\n\n \n\t\t\tint x = Integer.parseInt(array[0]);\t\t\t\n\t\t\tint y = Integer.parseInt(array[1]);\n\t\t\tint z = Integer.parseInt(array[2]);\n\t\t\t\n\t\t\tif(x*x + y*y == z*z){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(x*x + z*z == y*y){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(y*y + z*z == x*x){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t String n = sc.nextLine();\n\t int N = Integer.parseInt(n);\n\n\t for (int i = 0; i < N; i++) {\n\t \t \n\t\t\tString a = sc.nextLine();\n String[] array = a.split(\" \");\n String b = array[0];\n String c = array[1];\n\n \n\t\t\tint x = Integer.parseInt(array[0]);\t\t\t\n\t\t\tint y = Integer.parseInt(array[1]);\n\t\t\tint z = Integer.parseInt(array[2]);\n\t\t\t\n\t\t\tif(x*x + y*y == z*z){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(x*x + z*z == y*y){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(y*y + z*z == x*x){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t String n = sc.nextLine();\n\t int N = Integer.parseInt(n);\n\n\t for (int i = 0; i < N; i++) {\n\t \t \n\t\t\tString a = sc.nextLine();\n String[] array = a.split(\" \");\n String b = array[0];\n String c = array[1];\n\n \n\t\t\tint x = Integer.parseInt(array[0]);\t\t\t\n\t\t\tint y = Integer.parseInt(array[1]);\n\t\t\tint z = Integer.parseInt(array[2]);\n\t\t\t\n\t\t\tif(x*x + y*y == z*z){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(x*x + z*z == y*y){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(y*y + z*z == x*x){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t String n = sc.nextLine();\n\t int N = Integer.parseInt(n);\n\n\t for (int i = 0; i < N; i++) {\n\t \t \n\t\t\tString a = sc.nextLine();\n String[] array = a.split(\" \");\n String b = array[0];\n String c = array[1];\n\n \n\t\t\tint x = Integer.parseInt(array[0]);\t\t\t\n\t\t\tint y = Integer.parseInt(array[1]);\n\t\t\tint z = Integer.parseInt(array[2]);\n\t\t\t\n\t\t\tif(x*x + y*y == z*z){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(x*x + z*z == y*y){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(y*y + z*z == x*x){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String n = sc.nextLine();",
"n",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int N = Integer.parseInt(n);",
"N",
"Integer.parseInt(n)",
"Integer.parseInt",
"Integer",
"n",
"for (int i = 0; i < N; i++) {\n\t \t \n\t\t\tString a = sc.nextLine();\n String[] array = a.split(\" \");\n String b = array[0];\n String c = array[1];\n\n \n\t\t\tint x = Integer.parseInt(array[0]);\t\t\t\n\t\t\tint y = Integer.parseInt(array[1]);\n\t\t\tint z = Integer.parseInt(array[2]);\n\t\t\t\n\t\t\tif(x*x + y*y == z*z){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(x*x + z*z == y*y){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(y*y + z*z == x*x){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t \t \n\t\t\tString a = sc.nextLine();\n String[] array = a.split(\" \");\n String b = array[0];\n String c = array[1];\n\n \n\t\t\tint x = Integer.parseInt(array[0]);\t\t\t\n\t\t\tint y = Integer.parseInt(array[1]);\n\t\t\tint z = Integer.parseInt(array[2]);\n\t\t\t\n\t\t\tif(x*x + y*y == z*z){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(x*x + z*z == y*y){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(y*y + z*z == x*x){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t \t \n\t\t\tString a = sc.nextLine();\n String[] array = a.split(\" \");\n String b = array[0];\n String c = array[1];\n\n \n\t\t\tint x = Integer.parseInt(array[0]);\t\t\t\n\t\t\tint y = Integer.parseInt(array[1]);\n\t\t\tint z = Integer.parseInt(array[2]);\n\t\t\t\n\t\t\tif(x*x + y*y == z*z){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(x*x + z*z == y*y){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(y*y + z*z == x*x){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}",
"String a = sc.nextLine();",
"a",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] array = a.split(\" \");",
"array",
"a.split(\" \")",
"a.split",
"a",
"\" \"",
"String b = array[0];",
"b",
"array[0]",
"array",
"0",
"String c = array[1];",
"c",
"array[1]",
"array",
"1",
"int x = Integer.parseInt(array[0]);",
"x",
"Integer.parseInt(array[0])",
"Integer.parseInt",
"Integer",
"array[0]",
"array",
"0",
"int y = Integer.parseInt(array[1]);",
"y",
"Integer.parseInt(array[1])",
"Integer.parseInt",
"Integer",
"array[1]",
"array",
"1",
"int z = Integer.parseInt(array[2]);",
"z",
"Integer.parseInt(array[2])",
"Integer.parseInt",
"Integer",
"array[2]",
"array",
"2",
"if(x*x + y*y == z*z){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(x*x + z*z == y*y){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(y*y + z*z == x*x){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"x*x + y*y == z*z",
"x*x + y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"z*z",
"z",
"z",
"{\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(x*x + z*z == y*y){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(y*y + z*z == x*x){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"x*x + z*z == y*y",
"x*x + z*z",
"x*x",
"x",
"x",
"z*z",
"z",
"z",
"y*y",
"y",
"y",
"{\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(y*y + z*z == x*x){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"y*y + z*z == x*x",
"y*y + z*z",
"y*y",
"y",
"y",
"z*z",
"z",
"z",
"x*x",
"x",
"x",
"{\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\n\t String n = sc.nextLine();\n\t int N = Integer.parseInt(n);\n\n\t for (int i = 0; i < N; i++) {\n\t \t \n\t\t\tString a = sc.nextLine();\n String[] array = a.split(\" \");\n String b = array[0];\n String c = array[1];\n\n \n\t\t\tint x = Integer.parseInt(array[0]);\t\t\t\n\t\t\tint y = Integer.parseInt(array[1]);\n\t\t\tint z = Integer.parseInt(array[2]);\n\t\t\t\n\t\t\tif(x*x + y*y == z*z){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(x*x + z*z == y*y){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(y*y + z*z == x*x){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t String n = sc.nextLine();\n\t int N = Integer.parseInt(n);\n\n\t for (int i = 0; i < N; i++) {\n\t \t \n\t\t\tString a = sc.nextLine();\n String[] array = a.split(\" \");\n String b = array[0];\n String c = array[1];\n\n \n\t\t\tint x = Integer.parseInt(array[0]);\t\t\t\n\t\t\tint y = Integer.parseInt(array[1]);\n\t\t\tint z = Integer.parseInt(array[2]);\n\t\t\t\n\t\t\tif(x*x + y*y == z*z){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(x*x + z*z == y*y){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(y*y + z*z == x*x){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String n = sc.nextLine();
int N = Integer.parseInt(n);
for (int i = 0; i < N; i++) {
String a = sc.nextLine();
String[] array = a.split(" ");
String b = array[0];
String c = array[1];
int x = Integer.parseInt(array[0]);
int y = Integer.parseInt(array[1]);
int z = Integer.parseInt(array[2]);
if(x*x + y*y == z*z){
System.out.println("YES");
}else if(x*x + z*z == y*y){
System.out.println("YES");
}else if(y*y + z*z == x*x){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
41,
13,
41,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
42,
2,
40,
13,
17,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
14,
2,
2,
2,
13,
2,
13,
13,
2,
13,
2,
13,
13,
2,
13,
2,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
98,
5
],
[
98,
6
],
[
6,
7
],
[
6,
8
],
[
98,
9
],
[
9,
10
],
[
98,
11
],
[
11,
12
],
[
98,
13
],
[
13,
14
],
[
98,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
15,
21
],
[
21,
22
],
[
98,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
31,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
36,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
36,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
36,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
36,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
36,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
36,
67
],
[
67,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
69,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
69,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
67,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
67,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] | [
"import java.util.*;\npublic class Main{\n public static void main(String[] args){\n\tnew Main().run();\n }\n Scanner sc = new Scanner(System.in);\n\n int a, b, c;\n void run(){\n\tint n = sc.nextInt();\n\twhile(n-- > 0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = sc.nextInt();\n\t a = a*a;\n\t b = b*b;\n\t c = c*c;\n\t if(a==(b+c) || b==(a+c) || c==(a+b))\n\t\tSystem.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n\tnew Main().run();\n }\n Scanner sc = new Scanner(System.in);\n\n int a, b, c;\n void run(){\n\tint n = sc.nextInt();\n\twhile(n-- > 0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = sc.nextInt();\n\t a = a*a;\n\t b = b*b;\n\t c = c*c;\n\t if(a==(b+c) || b==(a+c) || c==(a+b))\n\t\tSystem.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}\n }\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a",
"a",
"b",
"b",
"c;",
"c",
"public static void main(String[] args){\n\tnew Main().run();\n }",
"main",
"{\n\tnew Main().run();\n }",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"void run(){\n\tint n = sc.nextInt();\n\twhile(n-- > 0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = sc.nextInt();\n\t a = a*a;\n\t b = b*b;\n\t c = c*c;\n\t if(a==(b+c) || b==(a+c) || c==(a+b))\n\t\tSystem.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}\n }",
"run",
"{\n\tint n = sc.nextInt();\n\twhile(n-- > 0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = sc.nextInt();\n\t a = a*a;\n\t b = b*b;\n\t c = c*c;\n\t if(a==(b+c) || b==(a+c) || c==(a+b))\n\t\tSystem.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(n-- > 0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = sc.nextInt();\n\t a = a*a;\n\t b = b*b;\n\t c = c*c;\n\t if(a==(b+c) || b==(a+c) || c==(a+b))\n\t\tSystem.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}",
"n-- > 0",
"n--",
"n",
"0",
"{\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = sc.nextInt();\n\t a = a*a;\n\t b = b*b;\n\t c = c*c;\n\t if(a==(b+c) || b==(a+c) || c==(a+b))\n\t\tSystem.out.println(\"YES\");\n\t else System.out.println(\"NO\");\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",
"a = a*a",
"a",
"a*a",
"a",
"a",
"b = b*b",
"b",
"b*b",
"b",
"b",
"c = c*c",
"c",
"c*c",
"c",
"c",
"if(a==(b+c) || b==(a+c) || c==(a+b))\n\t\tSystem.out.println(\"YES\");\n\t else System.out.println(\"NO\");",
"a==(b+c) || b==(a+c) || c==(a+b)",
"a==(b+c) || b==(a+c) || c==(a+b)",
"a==(b+c)",
"a",
"(b+c)",
"b",
"c",
"b==(a+c)",
"b",
"(a+c)",
"a",
"c",
"c==(a+b)",
"c",
"(a+b)",
"a",
"b",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"public class Main{\n public static void main(String[] args){\n\tnew Main().run();\n }\n Scanner sc = new Scanner(System.in);\n\n int a, b, c;\n void run(){\n\tint n = sc.nextInt();\n\twhile(n-- > 0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = sc.nextInt();\n\t a = a*a;\n\t b = b*b;\n\t c = c*c;\n\t if(a==(b+c) || b==(a+c) || c==(a+b))\n\t\tSystem.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}\n }\n}",
"public class Main{\n public static void main(String[] args){\n\tnew Main().run();\n }\n Scanner sc = new Scanner(System.in);\n\n int a, b, c;\n void run(){\n\tint n = sc.nextInt();\n\twhile(n-- > 0){\n\t a = sc.nextInt();\n\t b = sc.nextInt();\n\t c = sc.nextInt();\n\t a = a*a;\n\t b = b*b;\n\t c = c*c;\n\t if(a==(b+c) || b==(a+c) || c==(a+b))\n\t\tSystem.out.println(\"YES\");\n\t else System.out.println(\"NO\");\n\t}\n }\n}",
"Main"
] | import java.util.*;
public class Main{
public static void main(String[] args){
new Main().run();
}
Scanner sc = new Scanner(System.in);
int a, b, c;
void run(){
int n = sc.nextInt();
while(n-- > 0){
a = sc.nextInt();
b = sc.nextInt();
c = sc.nextInt();
a = a*a;
b = b*b;
c = c*c;
if(a==(b+c) || b==(a+c) || c==(a+b))
System.out.println("YES");
else System.out.println("NO");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
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,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
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
],
[
131,
17
],
[
131,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
47,
52
],
[
44,
53
],
[
53,
54
],
[
53,
55
],
[
44,
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
],
[
71,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
44,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
44,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
44,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
44,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
44,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
103,
111
],
[
111,
112
],
[
111,
113
],
[
102,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
102,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
122,
127
],
[
18,
128
],
[
128,
129
],
[
0,
130
],
[
130,
131
],
[
130,
132
]
] | [
"\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Collections;\n\npublic class Main {\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\tint n = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0 ; i < n;i++){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int j =0;j < s.length;j++){\n\t\t\t\tlist.add(Integer.parseInt(s[j]));\n\t\t\t}\n\t\t\tCollections.sort(list);\n\t\t\tint a = list.get(0);\n\t\t\tint b = list.get(1);\n\t\t\tint c = list.get(2);\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}\t\n\t\t\n\t\t\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"public class Main {\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\tint n = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0 ; i < n;i++){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int j =0;j < s.length;j++){\n\t\t\t\tlist.add(Integer.parseInt(s[j]));\n\t\t\t}\n\t\t\tCollections.sort(list);\n\t\t\tint a = list.get(0);\n\t\t\tint b = list.get(1);\n\t\t\tint c = list.get(2);\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}\t\n\t\t\n\t\t\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\tint n = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0 ; i < n;i++){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int j =0;j < s.length;j++){\n\t\t\t\tlist.add(Integer.parseInt(s[j]));\n\t\t\t}\n\t\t\tCollections.sort(list);\n\t\t\tint a = list.get(0);\n\t\t\tint b = list.get(1);\n\t\t\tint c = list.get(2);\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}\t\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0 ; i < n;i++){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int j =0;j < s.length;j++){\n\t\t\t\tlist.add(Integer.parseInt(s[j]));\n\t\t\t}\n\t\t\tCollections.sort(list);\n\t\t\tint a = list.get(0);\n\t\t\tint b = list.get(1);\n\t\t\tint c = list.get(2);\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}\t\n\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[] s = br.readLine().split(\" \");\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int j =0;j < s.length;j++){\n\t\t\t\tlist.add(Integer.parseInt(s[j]));\n\t\t\t}\n\t\t\tCollections.sort(list);\n\t\t\tint a = list.get(0);\n\t\t\tint b = list.get(1);\n\t\t\tint c = list.get(2);\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\tString[] s = br.readLine().split(\" \");\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int j =0;j < s.length;j++){\n\t\t\t\tlist.add(Integer.parseInt(s[j]));\n\t\t\t}\n\t\t\tCollections.sort(list);\n\t\t\tint a = list.get(0);\n\t\t\tint b = list.get(1);\n\t\t\tint c = list.get(2);\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\tString[] s = br.readLine().split(\" \");\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int j =0;j < s.length;j++){\n\t\t\t\tlist.add(Integer.parseInt(s[j]));\n\t\t\t}\n\t\t\tCollections.sort(list);\n\t\t\tint a = list.get(0);\n\t\t\tint b = list.get(1);\n\t\t\tint c = list.get(2);\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}",
"String[] s = br.readLine().split(\" \");",
"s",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"ArrayList<Integer> list = new ArrayList<Integer>();",
"list",
"new ArrayList<Integer>()",
"for(int j =0;j < s.length;j++){\n\t\t\t\tlist.add(Integer.parseInt(s[j]));\n\t\t\t}",
"int j =0;",
"int j =0;",
"j",
"0",
"j < s.length",
"j",
"s.length",
"s",
"s.length",
"j++",
"j++",
"j",
"{\n\t\t\t\tlist.add(Integer.parseInt(s[j]));\n\t\t\t}",
"{\n\t\t\t\tlist.add(Integer.parseInt(s[j]));\n\t\t\t}",
"list.add(Integer.parseInt(s[j]))",
"list.add",
"list",
"Integer.parseInt(s[j])",
"Integer.parseInt",
"Integer",
"s[j]",
"s",
"j",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"int a = list.get(0);",
"a",
"list.get(0)",
"list.get",
"list",
"0",
"int b = list.get(1);",
"b",
"list.get(1)",
"list.get",
"list",
"1",
"int c = list.get(2);",
"c",
"list.get(2)",
"list.get",
"list",
"2",
"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) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0 ; i < n;i++){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int j =0;j < s.length;j++){\n\t\t\t\tlist.add(Integer.parseInt(s[j]));\n\t\t\t}\n\t\t\tCollections.sort(list);\n\t\t\tint a = list.get(0);\n\t\t\tint b = list.get(1);\n\t\t\tint c = list.get(2);\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}\t\n\t\t\n\t\t\n\t}\n\n}",
"public class Main {\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\tint n = Integer.parseInt(br.readLine());\n\t\tfor(int i = 0 ; i < n;i++){\n\t\t\tString[] s = br.readLine().split(\" \");\n\t\t\tArrayList<Integer> list = new ArrayList<Integer>();\n\t\t\tfor(int j =0;j < s.length;j++){\n\t\t\t\tlist.add(Integer.parseInt(s[j]));\n\t\t\t}\n\t\t\tCollections.sort(list);\n\t\t\tint a = list.get(0);\n\t\t\tint b = list.get(1);\n\t\t\tint c = list.get(2);\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}\t\n\t\t\n\t\t\n\t}\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
import java.util.Collections;
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 i = 0 ; i < n;i++){
String[] s = br.readLine().split(" ");
ArrayList<Integer> list = new ArrayList<Integer>();
for(int j =0;j < s.length;j++){
list.add(Integer.parseInt(s[j]));
}
Collections.sort(list);
int a = list.get(0);
int b = list.get(1);
int c = list.get(2);
if(a*a + b*b == c*c){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
13,
30,
0,
13,
13,
41,
13,
18,
13,
13,
0,
18,
13,
13,
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,
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
],
[
154,
5
],
[
154,
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,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
39,
44
],
[
36,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
36,
68
],
[
68,
69
],
[
68,
70
],
[
36,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
71,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
36,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
36,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
36,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
36,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
120,
122
],
[
115,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
123,
127
],
[
127,
128
],
[
127,
129
],
[
114,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
113,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
113,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
6,
151
],
[
151,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
] | [
"import java.io.*;\n\npublic class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n int[] data = new int[3];\n\n for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<3; k++){\n data[k] = Integer.parseInt(str[k]);\n }\n int maxIndex = 0;\n\n for(int k=1; k<3; k++){\n if(data[k]>data[maxIndex]){\n maxIndex = k;\n }\n }\n //??\\?????????\n int tmp = data[maxIndex];\n data[maxIndex] = data[0];\n data[0] = tmp;\n\n if(data[1] * data[1] + data[2] * data[2] == data[0] * data[0]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n int[] data = new int[3];\n\n for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<3; k++){\n data[k] = Integer.parseInt(str[k]);\n }\n int maxIndex = 0;\n\n for(int k=1; k<3; k++){\n if(data[k]>data[maxIndex]){\n maxIndex = k;\n }\n }\n //??\\?????????\n int tmp = data[maxIndex];\n data[maxIndex] = data[0];\n data[0] = tmp;\n\n if(data[1] * data[1] + data[2] * data[2] == data[0] * data[0]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }\n }\n}",
"Main",
"public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n int[] data = new int[3];\n\n for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<3; k++){\n data[k] = Integer.parseInt(str[k]);\n }\n int maxIndex = 0;\n\n for(int k=1; k<3; k++){\n if(data[k]>data[maxIndex]){\n maxIndex = k;\n }\n }\n //??\\?????????\n int tmp = data[maxIndex];\n data[maxIndex] = data[0];\n data[0] = tmp;\n\n if(data[1] * data[1] + data[2] * data[2] == data[0] * data[0]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n int[] data = new int[3];\n\n for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<3; k++){\n data[k] = Integer.parseInt(str[k]);\n }\n int maxIndex = 0;\n\n for(int k=1; k<3; k++){\n if(data[k]>data[maxIndex]){\n maxIndex = k;\n }\n }\n //??\\?????????\n int tmp = data[maxIndex];\n data[maxIndex] = data[0];\n data[0] = tmp;\n\n if(data[1] * data[1] + data[2] * data[2] == data[0] * data[0]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\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",
"int[] data = new int[3];",
"data",
"new int[3]",
"3",
"for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<3; k++){\n data[k] = Integer.parseInt(str[k]);\n }\n int maxIndex = 0;\n\n for(int k=1; k<3; k++){\n if(data[k]>data[maxIndex]){\n maxIndex = k;\n }\n }\n //??\\?????????\n int tmp = data[maxIndex];\n data[maxIndex] = data[0];\n data[0] = tmp;\n\n if(data[1] * data[1] + data[2] * data[2] == data[0] * data[0]){\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 String[] str = br.readLine().split(\" \");\n for(int k=0; k<3; k++){\n data[k] = Integer.parseInt(str[k]);\n }\n int maxIndex = 0;\n\n for(int k=1; k<3; k++){\n if(data[k]>data[maxIndex]){\n maxIndex = k;\n }\n }\n //??\\?????????\n int tmp = data[maxIndex];\n data[maxIndex] = data[0];\n data[0] = tmp;\n\n if(data[1] * data[1] + data[2] * data[2] == data[0] * data[0]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }",
"{\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<3; k++){\n data[k] = Integer.parseInt(str[k]);\n }\n int maxIndex = 0;\n\n for(int k=1; k<3; k++){\n if(data[k]>data[maxIndex]){\n maxIndex = k;\n }\n }\n //??\\?????????\n int tmp = data[maxIndex];\n data[maxIndex] = data[0];\n data[0] = tmp;\n\n if(data[1] * data[1] + data[2] * data[2] == data[0] * data[0]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }",
"String[] str = br.readLine().split(\" \");",
"str",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"for(int k=0; k<3; k++){\n data[k] = Integer.parseInt(str[k]);\n }",
"int k=0;",
"int k=0;",
"k",
"0",
"k<3",
"k",
"3",
"k++",
"k++",
"k",
"{\n data[k] = Integer.parseInt(str[k]);\n }",
"{\n data[k] = Integer.parseInt(str[k]);\n }",
"data[k] = Integer.parseInt(str[k])",
"data[k]",
"data",
"k",
"Integer.parseInt(str[k])",
"Integer.parseInt",
"Integer",
"str[k]",
"str",
"k",
"int maxIndex = 0;",
"maxIndex",
"0",
"for(int k=1; k<3; k++){\n if(data[k]>data[maxIndex]){\n maxIndex = k;\n }\n }",
"int k=1;",
"int k=1;",
"k",
"1",
"k<3",
"k",
"3",
"k++",
"k++",
"k",
"{\n if(data[k]>data[maxIndex]){\n maxIndex = k;\n }\n }",
"{\n if(data[k]>data[maxIndex]){\n maxIndex = k;\n }\n }",
"if(data[k]>data[maxIndex]){\n maxIndex = k;\n }",
"data[k]>data[maxIndex]",
"data[k]",
"data",
"k",
"data[maxIndex]",
"data",
"maxIndex",
"{\n maxIndex = k;\n }",
"maxIndex = k",
"maxIndex",
"k",
"int tmp = data[maxIndex];",
"tmp",
"data[maxIndex]",
"data",
"maxIndex",
"data[maxIndex] = data[0]",
"data[maxIndex]",
"data",
"maxIndex",
"data[0]",
"data",
"0",
"data[0] = tmp",
"data[0]",
"data",
"0",
"tmp",
"if(data[1] * data[1] + data[2] * data[2] == data[0] * data[0]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"data[1] * data[1] + data[2] * data[2] == 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",
"data[0] * data[0]",
"data[0]",
"data",
"0",
"data[0]",
"data",
"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 int count = Integer.parseInt(br.readLine());\n int[] data = new int[3];\n\n for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<3; k++){\n data[k] = Integer.parseInt(str[k]);\n }\n int maxIndex = 0;\n\n for(int k=1; k<3; k++){\n if(data[k]>data[maxIndex]){\n maxIndex = k;\n }\n }\n //??\\?????????\n int tmp = data[maxIndex];\n data[maxIndex] = data[0];\n data[0] = tmp;\n\n if(data[1] * data[1] + data[2] * data[2] == data[0] * data[0]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }\n }\n}",
"public class Main{\n public static void main(String[]args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br.readLine());\n int[] data = new int[3];\n\n for(int i=0; i<count; i++){\n String[] str = br.readLine().split(\" \");\n for(int k=0; k<3; k++){\n data[k] = Integer.parseInt(str[k]);\n }\n int maxIndex = 0;\n\n for(int k=1; k<3; k++){\n if(data[k]>data[maxIndex]){\n maxIndex = k;\n }\n }\n //??\\?????????\n int tmp = data[maxIndex];\n data[maxIndex] = data[0];\n data[0] = tmp;\n\n if(data[1] * data[1] + data[2] * data[2] == data[0] * data[0]){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n\n }\n }\n}",
"Main"
] | import java.io.*;
public class Main{
public static void main(String[]args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int count = Integer.parseInt(br.readLine());
int[] data = new int[3];
for(int i=0; i<count; i++){
String[] str = br.readLine().split(" ");
for(int k=0; k<3; k++){
data[k] = Integer.parseInt(str[k]);
}
int maxIndex = 0;
for(int k=1; k<3; k++){
if(data[k]>data[maxIndex]){
maxIndex = k;
}
}
//??\?????????
int tmp = data[maxIndex];
data[maxIndex] = data[0];
data[0] = tmp;
if(data[1] * data[1] + data[2] * data[2] == data[0] * data[0]){
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,
17,
42,
2,
13,
13,
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,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
40,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
95,
5
],
[
95,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
24,
40
],
[
40,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
51,
53
],
[
42,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
54,
62
],
[
62,
63
],
[
62,
64
],
[
42,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
73,
75
],
[
40,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
40,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
24,
90
],
[
90,
91
],
[
6,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint line = scan.nextInt();\n\t\tint i = 1;\n\t\twhile (i <= line) {\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif (a * a + b * b == c * c || b * b + c * c == a * a || a * a + c * c == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint line = scan.nextInt();\n\t\tint i = 1;\n\t\twhile (i <= line) {\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif (a * a + b * b == c * c || b * b + c * c == a * a || a * a + c * c == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint line = scan.nextInt();\n\t\tint i = 1;\n\t\twhile (i <= line) {\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif (a * a + b * b == c * c || b * b + c * c == a * a || a * a + c * c == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint line = scan.nextInt();\n\t\tint i = 1;\n\t\twhile (i <= line) {\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif (a * a + b * b == c * c || b * b + c * c == a * a || a * a + c * c == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int line = scan.nextInt();",
"line",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int i = 1;",
"i",
"1",
"while (i <= line) {\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif (a * a + b * b == c * c || b * b + c * c == a * a || a * a + c * c == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\ti++;\n\t\t}",
"i <= line",
"i",
"line",
"{\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif (a * a + b * b == c * c || b * b + c * c == a * a || a * a + c * c == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\ti++;\n\t\t}",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int b = scan.nextInt();",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int c = scan.nextInt();",
"c",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if (a * a + b * b == c * c || b * b + c * c == a * a || a * a + c * c == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"a * a + b * b == c * c || b * b + 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\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\"",
"i++",
"i",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint line = scan.nextInt();\n\t\tint i = 1;\n\t\twhile (i <= line) {\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif (a * a + b * b == c * c || b * b + c * c == a * a || a * a + c * c == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint line = scan.nextInt();\n\t\tint i = 1;\n\t\twhile (i <= line) {\n\t\t\tint a = scan.nextInt();\n\t\t\tint b = scan.nextInt();\n\t\t\tint c = scan.nextInt();\n\t\t\tif (a * a + b * b == c * c || b * b + c * c == a * a || a * a + c * c == b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int line = scan.nextInt();
int i = 1;
while (i <= line) {
int a = scan.nextInt();
int b = scan.nextInt();
int c = scan.nextInt();
if (a * a + b * b == c * c || b * b + c * c == a * a || a * a + c * c == b * b) {
System.out.println("YES");
}else{
System.out.println("NO");
}
i++;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
4,
18,
13,
2,
40,
13,
17,
30,
30,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
8,
2,
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,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
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
],
[
20,
21
],
[
19,
22
],
[
12,
23
],
[
24,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
24,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
24,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
58,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
57,
81
],
[
57,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] | [
"import java.util.*;public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);for(int t=s.nextInt();t-->0;){int[]l=new int[3];for(int i=0;i<3;i++)l[i]=s.nextInt();Arrays.sort(l);System.out.println(l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?\"YES\":\"NO\");}}}",
"import java.util.*;",
"util.*",
"java",
"public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);for(int t=s.nextInt();t-->0;){int[]l=new int[3];for(int i=0;i<3;i++)l[i]=s.nextInt();Arrays.sort(l);System.out.println(l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?\"YES\":\"NO\");}}}",
"Main",
"public static void main(String[]a){Scanner s=new Scanner(System.in);for(int t=s.nextInt();t-->0;){int[]l=new int[3];for(int i=0;i<3;i++)l[i]=s.nextInt();Arrays.sort(l);System.out.println(l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?\"YES\":\"NO\");}}",
"main",
"{Scanner s=new Scanner(System.in);for(int t=s.nextInt();t-->0;){int[]l=new int[3];for(int i=0;i<3;i++)l[i]=s.nextInt();Arrays.sort(l);System.out.println(l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?\"YES\":\"NO\");}}",
"Scanner s=new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"for(int t=s.nextInt();t-->0;){int[]l=new int[3];for(int i=0;i<3;i++)l[i]=s.nextInt();Arrays.sort(l);System.out.println(l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?\"YES\":\"NO\");}",
"int t=s.nextInt();",
"int t=s.nextInt();",
"t",
"s.nextInt()",
"s.nextInt",
"s",
"t-->0",
"t--",
"t",
"0",
"{int[]l=new int[3];for(int i=0;i<3;i++)l[i]=s.nextInt();Arrays.sort(l);System.out.println(l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?\"YES\":\"NO\");}",
"{int[]l=new int[3];for(int i=0;i<3;i++)l[i]=s.nextInt();Arrays.sort(l);System.out.println(l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?\"YES\":\"NO\");}",
"int[]l=new int[3];",
"l",
"new int[3]",
"3",
"for(int i=0;i<3;i++)l[i]=s.nextInt();",
"int i=0;",
"int i=0;",
"i",
"0",
"i<3",
"i",
"3",
"i++",
"i++",
"i",
"l[i]=s.nextInt();",
"l[i]=s.nextInt()",
"l[i]",
"l",
"i",
"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]?\"YES\":\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?\"YES\":\"NO\"",
"l[0]*l[0]+l[1]*l[1]==l[2]*l[2]",
"l[0]*l[0]+l[1]*l[1]",
"l[0]*l[0]",
"l[0]",
"l",
"0",
"l[0]",
"l",
"0",
"l[1]*l[1]",
"l[1]",
"l",
"1",
"l[1]",
"l",
"1",
"l[2]*l[2]",
"l[2]",
"l",
"2",
"l[2]",
"l",
"2",
"\"YES\"",
"\"NO\"",
"String[]a",
"a",
"public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);for(int t=s.nextInt();t-->0;){int[]l=new int[3];for(int i=0;i<3;i++)l[i]=s.nextInt();Arrays.sort(l);System.out.println(l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?\"YES\":\"NO\");}}}",
"public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);for(int t=s.nextInt();t-->0;){int[]l=new int[3];for(int i=0;i<3;i++)l[i]=s.nextInt();Arrays.sort(l);System.out.println(l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?\"YES\":\"NO\");}}}",
"Main"
] | import java.util.*;public class Main{public static void main(String[]a){Scanner s=new Scanner(System.in);for(int t=s.nextInt();t-->0;){int[]l=new int[3];for(int i=0;i<3;i++)l[i]=s.nextInt();Arrays.sort(l);System.out.println(l[0]*l[0]+l[1]*l[1]==l[2]*l[2]?"YES":"NO");}}} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
41,
13,
20,
17,
42,
2,
13,
17,
30,
0,
13,
4,
18,
4,
18,
13,
17,
0,
18,
13,
17,
4,
18,
13,
18,
13,
17,
0,
18,
13,
17,
4,
18,
13,
18,
13,
17,
0,
18,
13,
17,
4,
18,
13,
18,
13,
17,
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,
40,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
119,
8
],
[
119,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
25,
27
],
[
11,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
36,
41
],
[
33,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
33,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
59,
61
],
[
33,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
33,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
33,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
78,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
89,
91
],
[
86,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
96,
97
],
[
96,
98
],
[
93,
99
],
[
76,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
76,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
108,
113
],
[
33,
114
],
[
114,
115
],
[
9,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
] | [
"import java.util.*;\nimport java.text.*;\n/*\nMain class for AOJ where there is no input.\n*/\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String[] sArr;\n int[] iArr = new int[3];\n \n \n while(n > 0){\n sArr = sc.nextLine().split(\" \");\n iArr[0] = Integer.parseInt(sArr[0]);\n iArr[1] = Integer.parseInt(sArr[1]);\n iArr[2] = Integer.parseInt(sArr[2]);\n \n Arrays.sort(iArr);\n \n if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n n--;\n }\n }//main\n}//class",
"import java.util.*;",
"util.*",
"java",
"import java.text.*;",
"text.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String[] sArr;\n int[] iArr = new int[3];\n \n \n while(n > 0){\n sArr = sc.nextLine().split(\" \");\n iArr[0] = Integer.parseInt(sArr[0]);\n iArr[1] = Integer.parseInt(sArr[1]);\n iArr[2] = Integer.parseInt(sArr[2]);\n \n Arrays.sort(iArr);\n \n if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n n--;\n }\n }//main\n}//class",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String[] sArr;\n int[] iArr = new int[3];\n \n \n while(n > 0){\n sArr = sc.nextLine().split(\" \");\n iArr[0] = Integer.parseInt(sArr[0]);\n iArr[1] = Integer.parseInt(sArr[1]);\n iArr[2] = Integer.parseInt(sArr[2]);\n \n Arrays.sort(iArr);\n \n if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n n--;\n }\n }//main",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String[] sArr;\n int[] iArr = new int[3];\n \n \n while(n > 0){\n sArr = sc.nextLine().split(\" \");\n iArr[0] = Integer.parseInt(sArr[0]);\n iArr[1] = Integer.parseInt(sArr[1]);\n iArr[2] = Integer.parseInt(sArr[2]);\n \n Arrays.sort(iArr);\n \n if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n n--;\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.nextLine());",
"n",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String[] sArr;",
"sArr",
"int[] iArr = new int[3];",
"iArr",
"new int[3]",
"3",
"while(n > 0){\n sArr = sc.nextLine().split(\" \");\n iArr[0] = Integer.parseInt(sArr[0]);\n iArr[1] = Integer.parseInt(sArr[1]);\n iArr[2] = Integer.parseInt(sArr[2]);\n \n Arrays.sort(iArr);\n \n if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n n--;\n }",
"n > 0",
"n",
"0",
"{\n sArr = sc.nextLine().split(\" \");\n iArr[0] = Integer.parseInt(sArr[0]);\n iArr[1] = Integer.parseInt(sArr[1]);\n iArr[2] = Integer.parseInt(sArr[2]);\n \n Arrays.sort(iArr);\n \n if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n n--;\n }",
"sArr = sc.nextLine().split(\" \")",
"sArr",
"sc.nextLine().split(\" \")",
"sc.nextLine().split",
"sc.nextLine()",
"sc.nextLine",
"sc",
"\" \"",
"iArr[0] = Integer.parseInt(sArr[0])",
"iArr[0]",
"iArr",
"0",
"Integer.parseInt(sArr[0])",
"Integer.parseInt",
"Integer",
"sArr[0]",
"sArr",
"0",
"iArr[1] = Integer.parseInt(sArr[1])",
"iArr[1]",
"iArr",
"1",
"Integer.parseInt(sArr[1])",
"Integer.parseInt",
"Integer",
"sArr[1]",
"sArr",
"1",
"iArr[2] = Integer.parseInt(sArr[2])",
"iArr[2]",
"iArr",
"2",
"Integer.parseInt(sArr[2])",
"Integer.parseInt",
"Integer",
"sArr[2]",
"sArr",
"2",
"Arrays.sort(iArr)",
"Arrays.sort",
"Arrays",
"iArr",
"if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)",
"Math.pow(iArr[2], 2)",
"Math.pow",
"Math",
"iArr[2]",
"iArr",
"2",
"2",
"Math.pow(iArr[0],2) + Math.pow(iArr[1],2)",
"Math.pow(iArr[0],2)",
"Math.pow",
"Math",
"iArr[0]",
"iArr",
"0",
"2",
"Math.pow(iArr[1],2)",
"Math.pow",
"Math",
"iArr[1]",
"iArr",
"1",
"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\"",
"n--",
"n",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String[] sArr;\n int[] iArr = new int[3];\n \n \n while(n > 0){\n sArr = sc.nextLine().split(\" \");\n iArr[0] = Integer.parseInt(sArr[0]);\n iArr[1] = Integer.parseInt(sArr[1]);\n iArr[2] = Integer.parseInt(sArr[2]);\n \n Arrays.sort(iArr);\n \n if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n n--;\n }\n }//main\n}//class",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.nextLine());\n String[] sArr;\n int[] iArr = new int[3];\n \n \n while(n > 0){\n sArr = sc.nextLine().split(\" \");\n iArr[0] = Integer.parseInt(sArr[0]);\n iArr[1] = Integer.parseInt(sArr[1]);\n iArr[2] = Integer.parseInt(sArr[2]);\n \n Arrays.sort(iArr);\n \n if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n n--;\n }\n }//main\n}//class",
"Main"
] | import java.util.*;
import java.text.*;
/*
Main class for AOJ where there is no input.
*/
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
String[] sArr;
int[] iArr = new int[3];
while(n > 0){
sArr = sc.nextLine().split(" ");
iArr[0] = Integer.parseInt(sArr[0]);
iArr[1] = Integer.parseInt(sArr[1]);
iArr[2] = Integer.parseInt(sArr[2]);
Arrays.sort(iArr);
if(Math.pow(iArr[2], 2) == Math.pow(iArr[0],2) + Math.pow(iArr[1],2)){
System.out.println("YES");
}else{
System.out.println("NO");
}
n--;
}
}//main
}//class
|
[
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,
20,
17,
41,
13,
17,
41,
13,
40,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
14,
2,
18,
13,
13,
13,
30,
0,
13,
18,
13,
13,
0,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
2,
18,
13,
13,
18,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
30,
0,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
154,
11
],
[
154,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
41,
46
],
[
38,
47
],
[
47,
48
],
[
47,
49
],
[
38,
51
],
[
51,
52
],
[
51,
53
],
[
38,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
38,
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
],
[
70,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
87,
93
],
[
93,
94
],
[
93,
95
],
[
38,
96
],
[
96,
97
],
[
96,
98
],
[
38,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
108,
109
],
[
99,
110
],
[
111,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
118,
119
],
[
118,
120
],
[
111,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
121,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
38,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
133,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
12,
151
],
[
151,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
] | [
"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 NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\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\t//???????????\\???\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString[] tmpStr = br.readLine().split(\" \");\n\t\t\tint[] lineLength = new int[3];\n\t\t\tint max = 0;\n\t\t\tint maxIndex = -1;\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tlineLength[j] = Integer.parseInt(tmpStr[j]);\n\t\t\t\tif(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//??´?§?????§???¢?????§??????\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\t\n\t\t\t\tint sq = lineLength[j] * lineLength[j];\n\t\t\t\tif(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(sum == 0){\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\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\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\t//???????????\\???\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString[] tmpStr = br.readLine().split(\" \");\n\t\t\tint[] lineLength = new int[3];\n\t\t\tint max = 0;\n\t\t\tint maxIndex = -1;\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tlineLength[j] = Integer.parseInt(tmpStr[j]);\n\t\t\t\tif(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//??´?§?????§???¢?????§??????\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\t\n\t\t\t\tint sq = lineLength[j] * lineLength[j];\n\t\t\t\tif(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(sum == 0){\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\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\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\t//???????????\\???\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString[] tmpStr = br.readLine().split(\" \");\n\t\t\tint[] lineLength = new int[3];\n\t\t\tint max = 0;\n\t\t\tint maxIndex = -1;\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tlineLength[j] = Integer.parseInt(tmpStr[j]);\n\t\t\t\tif(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//??´?§?????§???¢?????§??????\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\t\n\t\t\t\tint sq = lineLength[j] * lineLength[j];\n\t\t\t\tif(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(sum == 0){\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\t// TODO ?????????????????????????????????????????????\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\t//???????????\\???\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString[] tmpStr = br.readLine().split(\" \");\n\t\t\tint[] lineLength = new int[3];\n\t\t\tint max = 0;\n\t\t\tint maxIndex = -1;\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tlineLength[j] = Integer.parseInt(tmpStr[j]);\n\t\t\t\tif(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//??´?§?????§???¢?????§??????\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\t\n\t\t\t\tint sq = lineLength[j] * lineLength[j];\n\t\t\t\tif(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(sum == 0){\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}",
"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[] tmpStr = br.readLine().split(\" \");\n\t\t\tint[] lineLength = new int[3];\n\t\t\tint max = 0;\n\t\t\tint maxIndex = -1;\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tlineLength[j] = Integer.parseInt(tmpStr[j]);\n\t\t\t\tif(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//??´?§?????§???¢?????§??????\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\t\n\t\t\t\tint sq = lineLength[j] * lineLength[j];\n\t\t\t\tif(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(sum == 0){\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\tString[] tmpStr = br.readLine().split(\" \");\n\t\t\tint[] lineLength = new int[3];\n\t\t\tint max = 0;\n\t\t\tint maxIndex = -1;\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tlineLength[j] = Integer.parseInt(tmpStr[j]);\n\t\t\t\tif(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//??´?§?????§???¢?????§??????\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\t\n\t\t\t\tint sq = lineLength[j] * lineLength[j];\n\t\t\t\tif(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(sum == 0){\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\tString[] tmpStr = br.readLine().split(\" \");\n\t\t\tint[] lineLength = new int[3];\n\t\t\tint max = 0;\n\t\t\tint maxIndex = -1;\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tlineLength[j] = Integer.parseInt(tmpStr[j]);\n\t\t\t\tif(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//??´?§?????§???¢?????§??????\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\t\n\t\t\t\tint sq = lineLength[j] * lineLength[j];\n\t\t\t\tif(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(sum == 0){\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}",
"String[] tmpStr = br.readLine().split(\" \");",
"tmpStr",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int[] lineLength = new int[3];",
"lineLength",
"new int[3]",
"3",
"int max = 0;",
"max",
"0",
"int maxIndex = -1;",
"maxIndex",
"-1",
"1",
"for(int j = 0; j < 3; j++){\n\t\t\t\tlineLength[j] = Integer.parseInt(tmpStr[j]);\n\t\t\t\tif(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tlineLength[j] = Integer.parseInt(tmpStr[j]);\n\t\t\t\tif(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tlineLength[j] = Integer.parseInt(tmpStr[j]);\n\t\t\t\tif(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}\n\t\t\t}",
"lineLength[j] = Integer.parseInt(tmpStr[j])",
"lineLength[j]",
"lineLength",
"j",
"Integer.parseInt(tmpStr[j])",
"Integer.parseInt",
"Integer",
"tmpStr[j]",
"tmpStr",
"j",
"if(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}",
"lineLength[j] > max",
"lineLength[j]",
"lineLength",
"j",
"max",
"{\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}",
"max = lineLength[j]",
"max",
"lineLength[j]",
"lineLength",
"j",
"maxIndex = j",
"maxIndex",
"j",
"int sum = 0;",
"sum",
"0",
"for(int j = 0; j < 3; j++){\n\t\t\t\t\n\t\t\t\tint sq = lineLength[j] * lineLength[j];\n\t\t\t\tif(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\t\n\t\t\t\tint sq = lineLength[j] * lineLength[j];\n\t\t\t\tif(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\t\n\t\t\t\tint sq = lineLength[j] * lineLength[j];\n\t\t\t\tif(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}\n\t\t\t}",
"int sq = lineLength[j] * lineLength[j];",
"sq",
"lineLength[j] * lineLength[j]",
"lineLength[j]",
"lineLength",
"j",
"lineLength[j]",
"lineLength",
"j",
"if(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}",
"j == maxIndex",
"j",
"maxIndex",
"{\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}",
"sum -= sq",
"sum",
"sq",
"{\n\t\t\t\t\tsum += sq;\n\t\t\t\t}",
"sum += sq",
"sum",
"sq",
"if(sum == 0){\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}",
"sum == 0",
"sum",
"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 NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\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\t//???????????\\???\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString[] tmpStr = br.readLine().split(\" \");\n\t\t\tint[] lineLength = new int[3];\n\t\t\tint max = 0;\n\t\t\tint maxIndex = -1;\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tlineLength[j] = Integer.parseInt(tmpStr[j]);\n\t\t\t\tif(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//??´?§?????§???¢?????§??????\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\t\n\t\t\t\tint sq = lineLength[j] * lineLength[j];\n\t\t\t\tif(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(sum == 0){\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\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO ?????????????????????????????????????????????\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\t//???????????\\???\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tString[] tmpStr = br.readLine().split(\" \");\n\t\t\tint[] lineLength = new int[3];\n\t\t\tint max = 0;\n\t\t\tint maxIndex = -1;\n\t\t\t\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\tlineLength[j] = Integer.parseInt(tmpStr[j]);\n\t\t\t\tif(lineLength[j] > max){\n\t\t\t\t\tmax = lineLength[j];\n\t\t\t\t\tmaxIndex = j;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\t//??´?§?????§???¢?????§??????\n\t\t\tint sum = 0;\n\t\t\tfor(int j = 0; j < 3; j++){\n\t\t\t\t\n\t\t\t\tint sq = lineLength[j] * lineLength[j];\n\t\t\t\tif(j == maxIndex){\n\t\t\t\t\tsum -= sq;\n\t\t\t\t}\n\t\t\t\telse {\n\t\t\t\t\tsum += sq;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t\tif(sum == 0){\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\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
// TODO ?????????????????????????????????????????????
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[] lineLength = new int[3];
int max = 0;
int maxIndex = -1;
for(int j = 0; j < 3; j++){
lineLength[j] = Integer.parseInt(tmpStr[j]);
if(lineLength[j] > max){
max = lineLength[j];
maxIndex = j;
}
}
//??´?§?????§???¢?????§??????
int sum = 0;
for(int j = 0; j < 3; j++){
int sq = lineLength[j] * lineLength[j];
if(j == maxIndex){
sum -= sq;
}
else {
sum += sq;
}
}
if(sum == 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,
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,
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,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
122,
14
],
[
122,
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
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
35,
36
],
[
36,
37
],
[
17,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
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
],
[
75,
76
],
[
50,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
50,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
87,
88
],
[
87,
89
],
[
84,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
91,
97
],
[
82,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
101,
103
],
[
98,
104
],
[
81,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
81,
109
],
[
109,
110
],
[
110,
111
],
[
109,
112
],
[
17,
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.Arrays;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n System.in));\n StringBuilder builder = new StringBuilder();\n StringTokenizer to;\n int[] nums = new int[3];\n int a = Integer.parseInt(reader.readLine());\n for (int i = 0; i < a; i++) {\n to = new StringTokenizer(reader.readLine());\n for (int j = 0; j < 3; j++) {\n nums[j] = Integer.parseInt(to.nextToken());\n }\n Arrays.sort(nums);\n if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n nums[2], 2))\n builder.append(\"YES\\n\");\n else\n builder.append(\"NO\\n\");\n }\n System.out.print(builder);\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.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n System.in));\n StringBuilder builder = new StringBuilder();\n StringTokenizer to;\n int[] nums = new int[3];\n int a = Integer.parseInt(reader.readLine());\n for (int i = 0; i < a; i++) {\n to = new StringTokenizer(reader.readLine());\n for (int j = 0; j < 3; j++) {\n nums[j] = Integer.parseInt(to.nextToken());\n }\n Arrays.sort(nums);\n if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n nums[2], 2))\n builder.append(\"YES\\n\");\n else\n builder.append(\"NO\\n\");\n }\n System.out.print(builder);\n\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n System.in));\n StringBuilder builder = new StringBuilder();\n StringTokenizer to;\n int[] nums = new int[3];\n int a = Integer.parseInt(reader.readLine());\n for (int i = 0; i < a; i++) {\n to = new StringTokenizer(reader.readLine());\n for (int j = 0; j < 3; j++) {\n nums[j] = Integer.parseInt(to.nextToken());\n }\n Arrays.sort(nums);\n if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n nums[2], 2))\n builder.append(\"YES\\n\");\n else\n builder.append(\"NO\\n\");\n }\n System.out.print(builder);\n\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n System.in));\n StringBuilder builder = new StringBuilder();\n StringTokenizer to;\n int[] nums = new int[3];\n int a = Integer.parseInt(reader.readLine());\n for (int i = 0; i < a; i++) {\n to = new StringTokenizer(reader.readLine());\n for (int j = 0; j < 3; j++) {\n nums[j] = Integer.parseInt(to.nextToken());\n }\n Arrays.sort(nums);\n if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n nums[2], 2))\n builder.append(\"YES\\n\");\n else\n builder.append(\"NO\\n\");\n }\n System.out.print(builder);\n\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(\n System.in));",
"reader",
"new BufferedReader(new InputStreamReader(\n System.in))",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"StringTokenizer to;",
"to",
"int[] nums = new int[3];",
"nums",
"new int[3]",
"3",
"int a = Integer.parseInt(reader.readLine());",
"a",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"for (int i = 0; i < a; i++) {\n to = new StringTokenizer(reader.readLine());\n for (int j = 0; j < 3; j++) {\n nums[j] = Integer.parseInt(to.nextToken());\n }\n Arrays.sort(nums);\n if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n nums[2], 2))\n builder.append(\"YES\\n\");\n else\n builder.append(\"NO\\n\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < a",
"i",
"a",
"i++",
"i++",
"i",
"{\n to = new StringTokenizer(reader.readLine());\n for (int j = 0; j < 3; j++) {\n nums[j] = Integer.parseInt(to.nextToken());\n }\n Arrays.sort(nums);\n if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n nums[2], 2))\n builder.append(\"YES\\n\");\n else\n builder.append(\"NO\\n\");\n }",
"{\n to = new StringTokenizer(reader.readLine());\n for (int j = 0; j < 3; j++) {\n nums[j] = Integer.parseInt(to.nextToken());\n }\n Arrays.sort(nums);\n if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n nums[2], 2))\n builder.append(\"YES\\n\");\n else\n builder.append(\"NO\\n\");\n }",
"to = new StringTokenizer(reader.readLine())",
"to",
"new StringTokenizer(reader.readLine())",
"for (int j = 0; j < 3; j++) {\n nums[j] = Integer.parseInt(to.nextToken());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n nums[j] = Integer.parseInt(to.nextToken());\n }",
"{\n nums[j] = Integer.parseInt(to.nextToken());\n }",
"nums[j] = Integer.parseInt(to.nextToken())",
"nums[j]",
"nums",
"j",
"Integer.parseInt(to.nextToken())",
"Integer.parseInt",
"Integer",
"to.nextToken()",
"to.nextToken",
"to",
"Arrays.sort(nums)",
"Arrays.sort",
"Arrays",
"nums",
"if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n nums[2], 2))\n builder.append(\"YES\\n\");\n else\n builder.append(\"NO\\n\");",
"Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n nums[2], 2)",
"Math.pow(nums[0], 2) + Math.pow(nums[1], 2)",
"Math.pow(nums[0], 2)",
"Math.pow",
"Math",
"nums[0]",
"nums",
"0",
"2",
"Math.pow(nums[1], 2)",
"Math.pow",
"Math",
"nums[1]",
"nums",
"1",
"2",
"Math.pow(\n nums[2], 2)",
"Math.pow",
"Math",
"nums[2]",
"nums",
"2",
"2",
"builder.append(\"YES\\n\")",
"builder.append",
"builder",
"\"YES\\n\"",
"builder.append(\"NO\\n\")",
"builder.append",
"builder",
"\"NO\\n\"",
"System.out.print(builder)",
"System.out.print",
"System.out",
"System",
"System.out",
"builder",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n System.in));\n StringBuilder builder = new StringBuilder();\n StringTokenizer to;\n int[] nums = new int[3];\n int a = Integer.parseInt(reader.readLine());\n for (int i = 0; i < a; i++) {\n to = new StringTokenizer(reader.readLine());\n for (int j = 0; j < 3; j++) {\n nums[j] = Integer.parseInt(to.nextToken());\n }\n Arrays.sort(nums);\n if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n nums[2], 2))\n builder.append(\"YES\\n\");\n else\n builder.append(\"NO\\n\");\n }\n System.out.print(builder);\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n BufferedReader reader = new BufferedReader(new InputStreamReader(\n System.in));\n StringBuilder builder = new StringBuilder();\n StringTokenizer to;\n int[] nums = new int[3];\n int a = Integer.parseInt(reader.readLine());\n for (int i = 0; i < a; i++) {\n to = new StringTokenizer(reader.readLine());\n for (int j = 0; j < 3; j++) {\n nums[j] = Integer.parseInt(to.nextToken());\n }\n Arrays.sort(nums);\n if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(\n nums[2], 2))\n builder.append(\"YES\\n\");\n else\n builder.append(\"NO\\n\");\n }\n System.out.print(builder);\n\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader reader = new BufferedReader(new InputStreamReader(
System.in));
StringBuilder builder = new StringBuilder();
StringTokenizer to;
int[] nums = new int[3];
int a = Integer.parseInt(reader.readLine());
for (int i = 0; i < a; i++) {
to = new StringTokenizer(reader.readLine());
for (int j = 0; j < 3; j++) {
nums[j] = Integer.parseInt(to.nextToken());
}
Arrays.sort(nums);
if (Math.pow(nums[0], 2) + Math.pow(nums[1], 2) == Math.pow(
nums[2], 2))
builder.append("YES\n");
else
builder.append("NO\n");
}
System.out.print(builder);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
107,
5
],
[
107,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
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
],
[
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
],
[
56,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
56,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
56,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
54,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
54,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
6,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint n = scanner.nextInt();\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif(c * c == a * a + b * b || b * b == a * a + c * c || a * a == b * b + c * c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint n = scanner.nextInt();\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif(c * c == a * a + b * b || b * b == a * a + c * c || 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 scanner = new Scanner(System.in);\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint n = scanner.nextInt();\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif(c * c == a * a + b * b || b * b == a * a + c * c || 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 scanner = new Scanner(System.in);\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint n = scanner.nextInt();\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif(c * c == a * a + b * b || b * b == a * a + c * c || 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 scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int a = 0;",
"a",
"0",
"int b = 0;",
"b",
"0",
"int c = 0;",
"c",
"0",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i = 0; i < n; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif(c * c == a * a + b * b || b * b == a * a + c * c || 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\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif(c * c == a * a + b * b || b * b == a * a + c * c || 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\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif(c * c == a * a + b * b || b * b == a * a + c * c || 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}",
"a = scanner.nextInt()",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"b = scanner.nextInt()",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"c = scanner.nextInt()",
"c",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if(c * c == a * a + b * b || b * b == a * a + c * c || 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}",
"c * c == a * a + b * b || b * b == a * a + c * c || a * a == b * b + c * c",
"c * c == a * a + b * b || b * b == a * a + c * c || a * a == b * b + c * c",
"c * c == a * a + b * b",
"c * c",
"c",
"c",
"a * a + b * b",
"a * a",
"a",
"a",
"b * b",
"b",
"b",
"b * b == a * a + c * c",
"b * b",
"b",
"b",
"a * a + c * c",
"a * a",
"a",
"a",
"c * c",
"c",
"c",
"a * a == b * b + c * c",
"a * a",
"a",
"a",
"b * b + c * c",
"b * b",
"b",
"b",
"c * c",
"c",
"c",
"{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint n = scanner.nextInt();\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif(c * c == a * a + b * b || b * b == a * a + c * c || 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\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint a = 0;\n\t\tint b = 0;\n\t\tint c = 0;\n\t\tint n = scanner.nextInt();\n\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ta = scanner.nextInt();\n\t\t\tb = scanner.nextInt();\n\t\t\tc = scanner.nextInt();\n\n\t\t\tif(c * c == a * a + b * b || b * b == a * a + c * c || 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.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int a = 0;
int b = 0;
int c = 0;
int n = scanner.nextInt();
for(int i = 0; i < n; i++){
a = scanner.nextInt();
b = scanner.nextInt();
c = scanner.nextInt();
if(c * c == a * a + b * b || b * b == a * a + c * c || a * a == b * b + c * c){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
0,
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,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
4,
18,
13,
13,
13,
41,
13,
17,
14,
2,
13,
13,
30,
0,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
14,
2,
13,
13,
30,
0,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
14,
13,
30,
0,
18,
13,
2,
13,
17,
17,
30,
0,
18,
13,
2,
13,
17,
17,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
191,
5
],
[
191,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
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
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
41,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
41,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
41,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
41,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
41,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
41,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
84,
88
],
[
41,
89
],
[
89,
90
],
[
89,
91
],
[
41,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
104,
106
],
[
99,
107
],
[
107,
108
],
[
107,
109
],
[
92,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
122,
124
],
[
117,
125
],
[
125,
126
],
[
125,
127
],
[
110,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
136,
140
],
[
140,
141
],
[
140,
142
],
[
135,
143
],
[
143,
144
],
[
143,
145
],
[
41,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
150,
152
],
[
152,
153
],
[
152,
154
],
[
149,
155
],
[
146,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
160,
162
],
[
157,
163
],
[
8,
164
],
[
164,
165
],
[
165,
166
],
[
8,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
167,
172
],
[
172,
173
],
[
172,
174
],
[
167,
175
],
[
175,
176
],
[
176,
177
],
[
167,
178
],
[
179,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
185,
186
],
[
185,
187
],
[
6,
188
],
[
188,
189
],
[
0,
190
],
[
190,
191
],
[
190,
192
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\t//?????????????????????\n\n\t Scanner scan = new Scanner(System.in);\n\t String gyosu = scan.next();\n\t \tint intgyosu = Integer.parseInt(gyosu);\n\t \tString[] yesno;\n\t \tyesno = new String[intgyosu];\n\n\t for(int i = 1; i<=intgyosu; i++){\n\n\t String num1 = scan.next();\n\t \tint int1 = Integer.parseInt(num1);\n\n\t String num2 = scan.next();\n\t int int2 = Integer.parseInt(num2);\n\n\t String num3 = scan.next();\n\t int int3= Integer.parseInt(num3);\n\n\t int maxnum = Math.max(int1, int2);\n\t int max_num = Math.max(maxnum, int3);\n\n\t boolean hantei = false;\n\n\t\tif(max_num==int1){\n\t \thantei = (int2 * int2) + (int3 * int3) == (int1*int1);\n\t }else if(max_num==int2) {\n\t \thantei = (int1 * int1) + (int3 * int3) == (int2*int2);\n\t }else if (max_num==int3){\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }\n\n\t\tif(hantei){\n\t\t\t yesno[i-1] = \"YES\";\n\t\t}else{\n\t\t\tyesno[i-1] = \"NO\";\n\t\t}\n\t }\n\n\t //????????????\n\t scan.close();\n\n\t for(int j =0; j<intgyosu; j++){\n\t \t\tSystem.out.println(yesno[j]);\n\n\t}\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\t//?????????????????????\n\n\t Scanner scan = new Scanner(System.in);\n\t String gyosu = scan.next();\n\t \tint intgyosu = Integer.parseInt(gyosu);\n\t \tString[] yesno;\n\t \tyesno = new String[intgyosu];\n\n\t for(int i = 1; i<=intgyosu; i++){\n\n\t String num1 = scan.next();\n\t \tint int1 = Integer.parseInt(num1);\n\n\t String num2 = scan.next();\n\t int int2 = Integer.parseInt(num2);\n\n\t String num3 = scan.next();\n\t int int3= Integer.parseInt(num3);\n\n\t int maxnum = Math.max(int1, int2);\n\t int max_num = Math.max(maxnum, int3);\n\n\t boolean hantei = false;\n\n\t\tif(max_num==int1){\n\t \thantei = (int2 * int2) + (int3 * int3) == (int1*int1);\n\t }else if(max_num==int2) {\n\t \thantei = (int1 * int1) + (int3 * int3) == (int2*int2);\n\t }else if (max_num==int3){\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }\n\n\t\tif(hantei){\n\t\t\t yesno[i-1] = \"YES\";\n\t\t}else{\n\t\t\tyesno[i-1] = \"NO\";\n\t\t}\n\t }\n\n\t //????????????\n\t scan.close();\n\n\t for(int j =0; j<intgyosu; j++){\n\t \t\tSystem.out.println(yesno[j]);\n\n\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\t//?????????????????????\n\n\t Scanner scan = new Scanner(System.in);\n\t String gyosu = scan.next();\n\t \tint intgyosu = Integer.parseInt(gyosu);\n\t \tString[] yesno;\n\t \tyesno = new String[intgyosu];\n\n\t for(int i = 1; i<=intgyosu; i++){\n\n\t String num1 = scan.next();\n\t \tint int1 = Integer.parseInt(num1);\n\n\t String num2 = scan.next();\n\t int int2 = Integer.parseInt(num2);\n\n\t String num3 = scan.next();\n\t int int3= Integer.parseInt(num3);\n\n\t int maxnum = Math.max(int1, int2);\n\t int max_num = Math.max(maxnum, int3);\n\n\t boolean hantei = false;\n\n\t\tif(max_num==int1){\n\t \thantei = (int2 * int2) + (int3 * int3) == (int1*int1);\n\t }else if(max_num==int2) {\n\t \thantei = (int1 * int1) + (int3 * int3) == (int2*int2);\n\t }else if (max_num==int3){\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }\n\n\t\tif(hantei){\n\t\t\t yesno[i-1] = \"YES\";\n\t\t}else{\n\t\t\tyesno[i-1] = \"NO\";\n\t\t}\n\t }\n\n\t //????????????\n\t scan.close();\n\n\t for(int j =0; j<intgyosu; j++){\n\t \t\tSystem.out.println(yesno[j]);\n\n\t}\n\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\t//?????????????????????\n\n\t Scanner scan = new Scanner(System.in);\n\t String gyosu = scan.next();\n\t \tint intgyosu = Integer.parseInt(gyosu);\n\t \tString[] yesno;\n\t \tyesno = new String[intgyosu];\n\n\t for(int i = 1; i<=intgyosu; i++){\n\n\t String num1 = scan.next();\n\t \tint int1 = Integer.parseInt(num1);\n\n\t String num2 = scan.next();\n\t int int2 = Integer.parseInt(num2);\n\n\t String num3 = scan.next();\n\t int int3= Integer.parseInt(num3);\n\n\t int maxnum = Math.max(int1, int2);\n\t int max_num = Math.max(maxnum, int3);\n\n\t boolean hantei = false;\n\n\t\tif(max_num==int1){\n\t \thantei = (int2 * int2) + (int3 * int3) == (int1*int1);\n\t }else if(max_num==int2) {\n\t \thantei = (int1 * int1) + (int3 * int3) == (int2*int2);\n\t }else if (max_num==int3){\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }\n\n\t\tif(hantei){\n\t\t\t yesno[i-1] = \"YES\";\n\t\t}else{\n\t\t\tyesno[i-1] = \"NO\";\n\t\t}\n\t }\n\n\t //????????????\n\t scan.close();\n\n\t for(int j =0; j<intgyosu; j++){\n\t \t\tSystem.out.println(yesno[j]);\n\n\t}\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String gyosu = scan.next();",
"gyosu",
"scan.next()",
"scan.next",
"scan",
"int intgyosu = Integer.parseInt(gyosu);",
"intgyosu",
"Integer.parseInt(gyosu)",
"Integer.parseInt",
"Integer",
"gyosu",
"String[] yesno;",
"yesno",
"yesno = new String[intgyosu]",
"yesno",
"new String[intgyosu]",
"intgyosu",
"for(int i = 1; i<=intgyosu; i++){\n\n\t String num1 = scan.next();\n\t \tint int1 = Integer.parseInt(num1);\n\n\t String num2 = scan.next();\n\t int int2 = Integer.parseInt(num2);\n\n\t String num3 = scan.next();\n\t int int3= Integer.parseInt(num3);\n\n\t int maxnum = Math.max(int1, int2);\n\t int max_num = Math.max(maxnum, int3);\n\n\t boolean hantei = false;\n\n\t\tif(max_num==int1){\n\t \thantei = (int2 * int2) + (int3 * int3) == (int1*int1);\n\t }else if(max_num==int2) {\n\t \thantei = (int1 * int1) + (int3 * int3) == (int2*int2);\n\t }else if (max_num==int3){\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }\n\n\t\tif(hantei){\n\t\t\t yesno[i-1] = \"YES\";\n\t\t}else{\n\t\t\tyesno[i-1] = \"NO\";\n\t\t}\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i<=intgyosu",
"i",
"intgyosu",
"i++",
"i++",
"i",
"{\n\n\t String num1 = scan.next();\n\t \tint int1 = Integer.parseInt(num1);\n\n\t String num2 = scan.next();\n\t int int2 = Integer.parseInt(num2);\n\n\t String num3 = scan.next();\n\t int int3= Integer.parseInt(num3);\n\n\t int maxnum = Math.max(int1, int2);\n\t int max_num = Math.max(maxnum, int3);\n\n\t boolean hantei = false;\n\n\t\tif(max_num==int1){\n\t \thantei = (int2 * int2) + (int3 * int3) == (int1*int1);\n\t }else if(max_num==int2) {\n\t \thantei = (int1 * int1) + (int3 * int3) == (int2*int2);\n\t }else if (max_num==int3){\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }\n\n\t\tif(hantei){\n\t\t\t yesno[i-1] = \"YES\";\n\t\t}else{\n\t\t\tyesno[i-1] = \"NO\";\n\t\t}\n\t }",
"{\n\n\t String num1 = scan.next();\n\t \tint int1 = Integer.parseInt(num1);\n\n\t String num2 = scan.next();\n\t int int2 = Integer.parseInt(num2);\n\n\t String num3 = scan.next();\n\t int int3= Integer.parseInt(num3);\n\n\t int maxnum = Math.max(int1, int2);\n\t int max_num = Math.max(maxnum, int3);\n\n\t boolean hantei = false;\n\n\t\tif(max_num==int1){\n\t \thantei = (int2 * int2) + (int3 * int3) == (int1*int1);\n\t }else if(max_num==int2) {\n\t \thantei = (int1 * int1) + (int3 * int3) == (int2*int2);\n\t }else if (max_num==int3){\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }\n\n\t\tif(hantei){\n\t\t\t yesno[i-1] = \"YES\";\n\t\t}else{\n\t\t\tyesno[i-1] = \"NO\";\n\t\t}\n\t }",
"String num1 = scan.next();",
"num1",
"scan.next()",
"scan.next",
"scan",
"int int1 = Integer.parseInt(num1);",
"int1",
"Integer.parseInt(num1)",
"Integer.parseInt",
"Integer",
"num1",
"String num2 = scan.next();",
"num2",
"scan.next()",
"scan.next",
"scan",
"int int2 = Integer.parseInt(num2);",
"int2",
"Integer.parseInt(num2)",
"Integer.parseInt",
"Integer",
"num2",
"String num3 = scan.next();",
"num3",
"scan.next()",
"scan.next",
"scan",
"int int3= Integer.parseInt(num3);",
"int3",
"Integer.parseInt(num3)",
"Integer.parseInt",
"Integer",
"num3",
"int maxnum = Math.max(int1, int2);",
"maxnum",
"Math.max(int1, int2)",
"Math.max",
"Math",
"int1",
"int2",
"int max_num = Math.max(maxnum, int3);",
"max_num",
"Math.max(maxnum, int3)",
"Math.max",
"Math",
"maxnum",
"int3",
"boolean hantei = false;",
"hantei",
"false",
"if(max_num==int1){\n\t \thantei = (int2 * int2) + (int3 * int3) == (int1*int1);\n\t }else if(max_num==int2) {\n\t \thantei = (int1 * int1) + (int3 * int3) == (int2*int2);\n\t }else if (max_num==int3){\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }",
"max_num==int1",
"max_num",
"int1",
"{\n\t \thantei = (int2 * int2) + (int3 * int3) == (int1*int1);\n\t }",
"hantei = (int2 * int2) + (int3 * int3) == (int1*int1)",
"hantei",
"(int2 * int2) + (int3 * int3) == (int1*int1)",
"(int2 * int2) + (int3 * int3)",
"(int2 * int2)",
"int2",
"int2",
"(int3 * int3)",
"int3",
"int3",
"(int1*int1)",
"int1",
"int1",
"if(max_num==int2) {\n\t \thantei = (int1 * int1) + (int3 * int3) == (int2*int2);\n\t }else if (max_num==int3){\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }",
"max_num==int2",
"max_num",
"int2",
"{\n\t \thantei = (int1 * int1) + (int3 * int3) == (int2*int2);\n\t }",
"hantei = (int1 * int1) + (int3 * int3) == (int2*int2)",
"hantei",
"(int1 * int1) + (int3 * int3) == (int2*int2)",
"(int1 * int1) + (int3 * int3)",
"(int1 * int1)",
"int1",
"int1",
"(int3 * int3)",
"int3",
"int3",
"(int2*int2)",
"int2",
"int2",
"if (max_num==int3){\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }",
"max_num==int3",
"max_num",
"int3",
"{\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }",
"hantei = (int2 * int2) + (int1 * int1) == (int3*int3)",
"hantei",
"(int2 * int2) + (int1 * int1) == (int3*int3)",
"(int2 * int2) + (int1 * int1)",
"(int2 * int2)",
"int2",
"int2",
"(int1 * int1)",
"int1",
"int1",
"(int3*int3)",
"int3",
"int3",
"if(hantei){\n\t\t\t yesno[i-1] = \"YES\";\n\t\t}else{\n\t\t\tyesno[i-1] = \"NO\";\n\t\t}",
"hantei",
"{\n\t\t\t yesno[i-1] = \"YES\";\n\t\t}",
"yesno[i-1] = \"YES\"",
"yesno[i-1]",
"yesno",
"i-1",
"i",
"1",
"\"YES\"",
"{\n\t\t\tyesno[i-1] = \"NO\";\n\t\t}",
"yesno[i-1] = \"NO\"",
"yesno[i-1]",
"yesno",
"i-1",
"i",
"1",
"\"NO\"",
"scan.close()",
"scan.close",
"scan",
"for(int j =0; j<intgyosu; j++){\n\t \t\tSystem.out.println(yesno[j]);\n\n\t}",
"int j =0;",
"int j =0;",
"j",
"0",
"j<intgyosu",
"j",
"intgyosu",
"j++",
"j++",
"j",
"{\n\t \t\tSystem.out.println(yesno[j]);\n\n\t}",
"{\n\t \t\tSystem.out.println(yesno[j]);\n\n\t}",
"System.out.println(yesno[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"yesno[j]",
"yesno",
"j",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\t//?????????????????????\n\n\t Scanner scan = new Scanner(System.in);\n\t String gyosu = scan.next();\n\t \tint intgyosu = Integer.parseInt(gyosu);\n\t \tString[] yesno;\n\t \tyesno = new String[intgyosu];\n\n\t for(int i = 1; i<=intgyosu; i++){\n\n\t String num1 = scan.next();\n\t \tint int1 = Integer.parseInt(num1);\n\n\t String num2 = scan.next();\n\t int int2 = Integer.parseInt(num2);\n\n\t String num3 = scan.next();\n\t int int3= Integer.parseInt(num3);\n\n\t int maxnum = Math.max(int1, int2);\n\t int max_num = Math.max(maxnum, int3);\n\n\t boolean hantei = false;\n\n\t\tif(max_num==int1){\n\t \thantei = (int2 * int2) + (int3 * int3) == (int1*int1);\n\t }else if(max_num==int2) {\n\t \thantei = (int1 * int1) + (int3 * int3) == (int2*int2);\n\t }else if (max_num==int3){\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }\n\n\t\tif(hantei){\n\t\t\t yesno[i-1] = \"YES\";\n\t\t}else{\n\t\t\tyesno[i-1] = \"NO\";\n\t\t}\n\t }\n\n\t //????????????\n\t scan.close();\n\n\t for(int j =0; j<intgyosu; j++){\n\t \t\tSystem.out.println(yesno[j]);\n\n\t}\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\t//?????????????????????\n\n\t Scanner scan = new Scanner(System.in);\n\t String gyosu = scan.next();\n\t \tint intgyosu = Integer.parseInt(gyosu);\n\t \tString[] yesno;\n\t \tyesno = new String[intgyosu];\n\n\t for(int i = 1; i<=intgyosu; i++){\n\n\t String num1 = scan.next();\n\t \tint int1 = Integer.parseInt(num1);\n\n\t String num2 = scan.next();\n\t int int2 = Integer.parseInt(num2);\n\n\t String num3 = scan.next();\n\t int int3= Integer.parseInt(num3);\n\n\t int maxnum = Math.max(int1, int2);\n\t int max_num = Math.max(maxnum, int3);\n\n\t boolean hantei = false;\n\n\t\tif(max_num==int1){\n\t \thantei = (int2 * int2) + (int3 * int3) == (int1*int1);\n\t }else if(max_num==int2) {\n\t \thantei = (int1 * int1) + (int3 * int3) == (int2*int2);\n\t }else if (max_num==int3){\n\t \thantei = (int2 * int2) + (int1 * int1) == (int3*int3);\n\t }\n\n\t\tif(hantei){\n\t\t\t yesno[i-1] = \"YES\";\n\t\t}else{\n\t\t\tyesno[i-1] = \"NO\";\n\t\t}\n\t }\n\n\t //????????????\n\t scan.close();\n\n\t for(int j =0; j<intgyosu; j++){\n\t \t\tSystem.out.println(yesno[j]);\n\n\t}\n\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
//?????????????????????
Scanner scan = new Scanner(System.in);
String gyosu = scan.next();
int intgyosu = Integer.parseInt(gyosu);
String[] yesno;
yesno = new String[intgyosu];
for(int i = 1; i<=intgyosu; i++){
String num1 = scan.next();
int int1 = Integer.parseInt(num1);
String num2 = scan.next();
int int2 = Integer.parseInt(num2);
String num3 = scan.next();
int int3= Integer.parseInt(num3);
int maxnum = Math.max(int1, int2);
int max_num = Math.max(maxnum, int3);
boolean hantei = false;
if(max_num==int1){
hantei = (int2 * int2) + (int3 * int3) == (int1*int1);
}else if(max_num==int2) {
hantei = (int1 * int1) + (int3 * int3) == (int2*int2);
}else if (max_num==int3){
hantei = (int2 * int2) + (int1 * int1) == (int3*int3);
}
if(hantei){
yesno[i-1] = "YES";
}else{
yesno[i-1] = "NO";
}
}
//????????????
scan.close();
for(int j =0; j<intgyosu; j++){
System.out.println(yesno[j]);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
29,
17,
29,
17,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
2,
13,
17,
41,
13,
20,
13,
17,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
18,
13,
2,
13,
17,
17,
17,
0,
18,
13,
13,
4,
18,
13,
18,
18,
13,
13,
17,
0,
18,
13,
13,
4,
18,
13,
18,
18,
13,
13,
17,
0,
18,
13,
13,
4,
18,
13,
18,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
18,
13,
13,
18,
13,
13,
18,
13,
13,
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
],
[
221,
5
],
[
221,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
16,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
34,
36
],
[
30,
37
],
[
37,
38
],
[
37,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
40,
52
],
[
52,
53
],
[
40,
54
],
[
54,
55
],
[
6,
56
],
[
56,
57
],
[
6,
58
],
[
58,
59
],
[
6,
60
],
[
60,
61
],
[
221,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
64,
73
],
[
73,
74
],
[
73,
75
],
[
76,
77
],
[
76,
78
],
[
64,
79
],
[
79,
80
],
[
79,
81
],
[
64,
84
],
[
84,
85
],
[
84,
86
],
[
64,
88
],
[
88,
89
],
[
88,
90
],
[
64,
92
],
[
92,
93
],
[
92,
94
],
[
64,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
96,
106
],
[
106,
107
],
[
107,
108
],
[
96,
109
],
[
110,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
116,
117
],
[
64,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
132,
134
],
[
131,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
139,
140
],
[
139,
141
],
[
135,
142
],
[
135,
143
],
[
130,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
130,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
160,
161
],
[
161,
162
],
[
160,
163
],
[
163,
164
],
[
164,
165
],
[
164,
166
],
[
163,
167
],
[
130,
168
],
[
168,
169
],
[
169,
170
],
[
169,
171
],
[
168,
172
],
[
172,
173
],
[
173,
174
],
[
172,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
64,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
185,
186
],
[
185,
187
],
[
180,
188
],
[
188,
189
],
[
189,
190
],
[
180,
191
],
[
192,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
194,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
199,
200
],
[
199,
201
],
[
194,
202
],
[
202,
203
],
[
202,
204
],
[
193,
205
],
[
205,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
208,
210
],
[
206,
211
],
[
193,
212
],
[
212,
213
],
[
213,
214
],
[
214,
215
],
[
214,
216
],
[
212,
217
],
[
62,
218
],
[
218,
219
],
[
0,
220
],
[
220,
221
],
[
220,
222
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tstatic boolean rightA(int a, int b, int c){\n\t\tint max = a;\n\t\tif( b > a ){\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\tif( c > a ){\n\t\t\tint temp = a;\n\t\t\ta = c;\n\t\t\tc = temp;\n\t\t}\n\t\t\n\t\tif( a*a == b*b + c*c )\n\t\t\treturn true;\n\t\telse return false;\n\t}\n\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tString[] str = new String[n+1];\n\t\tString[][] s = new String[n][3];\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 i = 0; i < n+1; i++){\n\t\t\tstr[i] = stdIn.nextLine();\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ts[i] = str[i+1].split(\" \", 3);\n\t\t\ta[i] = Integer.parseInt(s[i][0]);\n\t\t\tb[i] = Integer.parseInt(s[i][1]);\n\t\t\tc[i] = Integer.parseInt(s[i][2]);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif( rightA(a[i], b[i], c[i]) ){\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}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tstatic boolean rightA(int a, int b, int c){\n\t\tint max = a;\n\t\tif( b > a ){\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\tif( c > a ){\n\t\t\tint temp = a;\n\t\t\ta = c;\n\t\t\tc = temp;\n\t\t}\n\t\t\n\t\tif( a*a == b*b + c*c )\n\t\t\treturn true;\n\t\telse return false;\n\t}\n\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tString[] str = new String[n+1];\n\t\tString[][] s = new String[n][3];\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 i = 0; i < n+1; i++){\n\t\t\tstr[i] = stdIn.nextLine();\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ts[i] = str[i+1].split(\" \", 3);\n\t\t\ta[i] = Integer.parseInt(s[i][0]);\n\t\t\tb[i] = Integer.parseInt(s[i][1]);\n\t\t\tc[i] = Integer.parseInt(s[i][2]);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif( rightA(a[i], b[i], c[i]) ){\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}\n\t}\n}",
"Main",
"static boolean rightA(int a, int b, int c){\n\t\tint max = a;\n\t\tif( b > a ){\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\tif( c > a ){\n\t\t\tint temp = a;\n\t\t\ta = c;\n\t\t\tc = temp;\n\t\t}\n\t\t\n\t\tif( a*a == b*b + c*c )\n\t\t\treturn true;\n\t\telse return false;\n\t}",
"rightA",
"{\n\t\tint max = a;\n\t\tif( b > a ){\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\tif( c > a ){\n\t\t\tint temp = a;\n\t\t\ta = c;\n\t\t\tc = temp;\n\t\t}\n\t\t\n\t\tif( a*a == b*b + c*c )\n\t\t\treturn true;\n\t\telse return false;\n\t}",
"int max = a;",
"max",
"a",
"if( b > a ){\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}",
"b > a",
"b",
"a",
"{\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}",
"int temp = a;",
"temp",
"a",
"a = b",
"a",
"b",
"b = temp",
"b",
"temp",
"if( c > a ){\n\t\t\tint temp = a;\n\t\t\ta = c;\n\t\t\tc = temp;\n\t\t}",
"c > a",
"c",
"a",
"{\n\t\t\tint temp = a;\n\t\t\ta = c;\n\t\t\tc = temp;\n\t\t}",
"int temp = a;",
"temp",
"a",
"a = c",
"a",
"c",
"c = temp",
"c",
"temp",
"if( a*a == b*b + c*c )\n\t\t\treturn true;\n\t\telse return false;",
"a*a == b*b + c*c",
"a*a",
"a",
"a",
"b*b + c*c",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"return true;",
"true",
"return false;",
"false",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tString[] str = new String[n+1];\n\t\tString[][] s = new String[n][3];\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 i = 0; i < n+1; i++){\n\t\t\tstr[i] = stdIn.nextLine();\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ts[i] = str[i+1].split(\" \", 3);\n\t\t\ta[i] = Integer.parseInt(s[i][0]);\n\t\t\tb[i] = Integer.parseInt(s[i][1]);\n\t\t\tc[i] = Integer.parseInt(s[i][2]);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif( rightA(a[i], b[i], c[i]) ){\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}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tString[] str = new String[n+1];\n\t\tString[][] s = new String[n][3];\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 i = 0; i < n+1; i++){\n\t\t\tstr[i] = stdIn.nextLine();\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ts[i] = str[i+1].split(\" \", 3);\n\t\t\ta[i] = Integer.parseInt(s[i][0]);\n\t\t\tb[i] = Integer.parseInt(s[i][1]);\n\t\t\tc[i] = Integer.parseInt(s[i][2]);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif( rightA(a[i], b[i], c[i]) ){\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}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"String[] str = new String[n+1];",
"str",
"new String[n+1]",
"n+1",
"n",
"1",
"String[][] s = new String[n][3];",
"s",
"new String[n][3]",
"n",
"3",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"int[] b = new int[n];",
"b",
"new int[n]",
"n",
"int[] c = new int[n];",
"c",
"new int[n]",
"n",
"for(int i = 0; i < n+1; i++){\n\t\t\tstr[i] = stdIn.nextLine();\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n+1",
"i",
"n+1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tstr[i] = stdIn.nextLine();\n\t\t}",
"{\n\t\t\tstr[i] = stdIn.nextLine();\n\t\t}",
"str[i] = stdIn.nextLine()",
"str[i]",
"str",
"i",
"stdIn.nextLine()",
"stdIn.nextLine",
"stdIn",
"for(int i = 0; i < n; i++){\n\t\t\ts[i] = str[i+1].split(\" \", 3);\n\t\t\ta[i] = Integer.parseInt(s[i][0]);\n\t\t\tb[i] = Integer.parseInt(s[i][1]);\n\t\t\tc[i] = Integer.parseInt(s[i][2]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ts[i] = str[i+1].split(\" \", 3);\n\t\t\ta[i] = Integer.parseInt(s[i][0]);\n\t\t\tb[i] = Integer.parseInt(s[i][1]);\n\t\t\tc[i] = Integer.parseInt(s[i][2]);\n\t\t}",
"{\n\t\t\ts[i] = str[i+1].split(\" \", 3);\n\t\t\ta[i] = Integer.parseInt(s[i][0]);\n\t\t\tb[i] = Integer.parseInt(s[i][1]);\n\t\t\tc[i] = Integer.parseInt(s[i][2]);\n\t\t}",
"s[i] = str[i+1].split(\" \", 3)",
"s[i]",
"s",
"i",
"str[i+1].split(\" \", 3)",
"str[i+1].split",
"str[i+1]",
"str",
"i+1",
"i",
"1",
"\" \"",
"3",
"a[i] = Integer.parseInt(s[i][0])",
"a[i]",
"a",
"i",
"Integer.parseInt(s[i][0])",
"Integer.parseInt",
"Integer",
"s[i][0]",
"s[i]",
"s",
"i",
"0",
"b[i] = Integer.parseInt(s[i][1])",
"b[i]",
"b",
"i",
"Integer.parseInt(s[i][1])",
"Integer.parseInt",
"Integer",
"s[i][1]",
"s[i]",
"s",
"i",
"1",
"c[i] = Integer.parseInt(s[i][2])",
"c[i]",
"c",
"i",
"Integer.parseInt(s[i][2])",
"Integer.parseInt",
"Integer",
"s[i][2]",
"s[i]",
"s",
"i",
"2",
"for(int i = 0; i < n; i++){\n\t\t\tif( rightA(a[i], b[i], c[i]) ){\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}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif( rightA(a[i], b[i], c[i]) ){\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}",
"{\n\t\t\tif( rightA(a[i], b[i], c[i]) ){\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}",
"if( rightA(a[i], b[i], c[i]) ){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse \n\t\t\t\tSystem.out.println(\"NO\");",
"rightA(a[i], b[i], c[i])",
"rightA",
"a[i]",
"a",
"i",
"b[i]",
"b",
"i",
"c[i]",
"c",
"i",
"{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args",
"public class Main{\n\tstatic boolean rightA(int a, int b, int c){\n\t\tint max = a;\n\t\tif( b > a ){\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\tif( c > a ){\n\t\t\tint temp = a;\n\t\t\ta = c;\n\t\t\tc = temp;\n\t\t}\n\t\t\n\t\tif( a*a == b*b + c*c )\n\t\t\treturn true;\n\t\telse return false;\n\t}\n\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tString[] str = new String[n+1];\n\t\tString[][] s = new String[n][3];\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 i = 0; i < n+1; i++){\n\t\t\tstr[i] = stdIn.nextLine();\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ts[i] = str[i+1].split(\" \", 3);\n\t\t\ta[i] = Integer.parseInt(s[i][0]);\n\t\t\tb[i] = Integer.parseInt(s[i][1]);\n\t\t\tc[i] = Integer.parseInt(s[i][2]);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif( rightA(a[i], b[i], c[i]) ){\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}\n\t}\n}",
"public class Main{\n\tstatic boolean rightA(int a, int b, int c){\n\t\tint max = a;\n\t\tif( b > a ){\n\t\t\tint temp = a;\n\t\t\ta = b;\n\t\t\tb = temp;\n\t\t}\n\t\tif( c > a ){\n\t\t\tint temp = a;\n\t\t\ta = c;\n\t\t\tc = temp;\n\t\t}\n\t\t\n\t\tif( a*a == b*b + c*c )\n\t\t\treturn true;\n\t\telse return false;\n\t}\n\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\t\n\t\tString[] str = new String[n+1];\n\t\tString[][] s = new String[n][3];\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 i = 0; i < n+1; i++){\n\t\t\tstr[i] = stdIn.nextLine();\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ts[i] = str[i+1].split(\" \", 3);\n\t\t\ta[i] = Integer.parseInt(s[i][0]);\n\t\t\tb[i] = Integer.parseInt(s[i][1]);\n\t\t\tc[i] = Integer.parseInt(s[i][2]);\n\t\t}\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif( rightA(a[i], b[i], c[i]) ){\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}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
static boolean rightA(int a, int b, int c){
int max = a;
if( b > a ){
int temp = a;
a = b;
b = temp;
}
if( c > a ){
int temp = a;
a = c;
c = temp;
}
if( a*a == b*b + c*c )
return true;
else return false;
}
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int n = stdIn.nextInt();
String[] str = new String[n+1];
String[][] s = new String[n][3];
int[] a = new int[n];
int[] b = new int[n];
int[] c = new int[n];
for(int i = 0; i < n+1; i++){
str[i] = stdIn.nextLine();
}
for(int i = 0; i < n; i++){
s[i] = str[i+1].split(" ", 3);
a[i] = Integer.parseInt(s[i][0]);
b[i] = Integer.parseInt(s[i][1]);
c[i] = Integer.parseInt(s[i][2]);
}
for(int i = 0; i < n; i++){
if( rightA(a[i], b[i], c[i]) ){
System.out.println("YES");
}
else
System.out.println("NO");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
13,
41,
13,
20,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
17,
0,
18,
13,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
17,
0,
18,
13,
13,
4,
18,
13,
18,
4,
18,
13,
17,
17,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
18,
13,
13,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
29,
2,
2,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
57,
63
],
[
44,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
72,
76
],
[
71,
77
],
[
44,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
86,
90
],
[
85,
91
],
[
8,
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
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
106,
114
],
[
114,
115
],
[
114,
116
],
[
105,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
105,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
6,
131
],
[
131,
132
],
[
4,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
138,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
140,
144
],
[
144,
145
],
[
144,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
155,
157
],
[
138,
158
],
[
158,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
159,
163
],
[
163,
164
],
[
163,
165
],
[
158,
166
],
[
166,
167
],
[
167,
168
],
[
167,
169
],
[
166,
170
],
[
170,
171
],
[
171,
172
],
[
171,
173
],
[
170,
174
],
[
174,
175
],
[
174,
176
],
[
138,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
179,
181
],
[
178,
182
],
[
182,
183
],
[
182,
184
],
[
177,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
185,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
193,
195
],
[
133,
196
],
[
196,
197
],
[
133,
198
],
[
198,
199
],
[
133,
200
],
[
200,
201
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] x){\n\t\tScanner sc = new Scanner(System.in);\n\t\tshort N = (short)Integer.parseInt(sc.nextLine());\n\t\tshort[] a = new short[N];\n\t\tshort[] b = new short[N];\n\t\tshort[] c = new short[N];\n\t\tfor(short i=0;i<N;i++){\n\t\t\tString s = sc.nextLine();\n\t\t\ta[i] = (short)Integer.parseInt((s.split(\" \",0))[0]);\n\t\t\tb[i] = (short)Integer.parseInt((s.split(\" \",0))[1]);\n\t\t\tc[i] = (short)Integer.parseInt((s.split(\" \",0))[2]);\n\t\t}\n\t\tfor(short i=0;i<N;i++){\n\t\t\tif(isRightTriangle(a[i],b[i],c[i])){System.out.println(\"YES\");}\n\t\t\telse{System.out.println(\"NO\");}\n\t\t}\n }\n\tpublic static boolean isRightTriangle(int a, int b, int c){\n\t\treturn (a>=b&&a>=c&&a*a==b*b+c*c)\n\t\t\t||(b>=c&&b>=a&&b*b==c*c+a*a)\n\t\t\t||(c>=a&&c>=b&&c*c==a*a+b*b);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] x){\n\t\tScanner sc = new Scanner(System.in);\n\t\tshort N = (short)Integer.parseInt(sc.nextLine());\n\t\tshort[] a = new short[N];\n\t\tshort[] b = new short[N];\n\t\tshort[] c = new short[N];\n\t\tfor(short i=0;i<N;i++){\n\t\t\tString s = sc.nextLine();\n\t\t\ta[i] = (short)Integer.parseInt((s.split(\" \",0))[0]);\n\t\t\tb[i] = (short)Integer.parseInt((s.split(\" \",0))[1]);\n\t\t\tc[i] = (short)Integer.parseInt((s.split(\" \",0))[2]);\n\t\t}\n\t\tfor(short i=0;i<N;i++){\n\t\t\tif(isRightTriangle(a[i],b[i],c[i])){System.out.println(\"YES\");}\n\t\t\telse{System.out.println(\"NO\");}\n\t\t}\n }\n\tpublic static boolean isRightTriangle(int a, int b, int c){\n\t\treturn (a>=b&&a>=c&&a*a==b*b+c*c)\n\t\t\t||(b>=c&&b>=a&&b*b==c*c+a*a)\n\t\t\t||(c>=a&&c>=b&&c*c==a*a+b*b);\n\t}\n}",
"Main",
"public static void main(String[] x){\n\t\tScanner sc = new Scanner(System.in);\n\t\tshort N = (short)Integer.parseInt(sc.nextLine());\n\t\tshort[] a = new short[N];\n\t\tshort[] b = new short[N];\n\t\tshort[] c = new short[N];\n\t\tfor(short i=0;i<N;i++){\n\t\t\tString s = sc.nextLine();\n\t\t\ta[i] = (short)Integer.parseInt((s.split(\" \",0))[0]);\n\t\t\tb[i] = (short)Integer.parseInt((s.split(\" \",0))[1]);\n\t\t\tc[i] = (short)Integer.parseInt((s.split(\" \",0))[2]);\n\t\t}\n\t\tfor(short i=0;i<N;i++){\n\t\t\tif(isRightTriangle(a[i],b[i],c[i])){System.out.println(\"YES\");}\n\t\t\telse{System.out.println(\"NO\");}\n\t\t}\n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tshort N = (short)Integer.parseInt(sc.nextLine());\n\t\tshort[] a = new short[N];\n\t\tshort[] b = new short[N];\n\t\tshort[] c = new short[N];\n\t\tfor(short i=0;i<N;i++){\n\t\t\tString s = sc.nextLine();\n\t\t\ta[i] = (short)Integer.parseInt((s.split(\" \",0))[0]);\n\t\t\tb[i] = (short)Integer.parseInt((s.split(\" \",0))[1]);\n\t\t\tc[i] = (short)Integer.parseInt((s.split(\" \",0))[2]);\n\t\t}\n\t\tfor(short i=0;i<N;i++){\n\t\t\tif(isRightTriangle(a[i],b[i],c[i])){System.out.println(\"YES\");}\n\t\t\telse{System.out.println(\"NO\");}\n\t\t}\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"short N = (short)Integer.parseInt(sc.nextLine());",
"N",
"(short)Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"short[] a = new short[N];",
"a",
"new short[N]",
"N",
"short[] b = new short[N];",
"b",
"new short[N]",
"N",
"short[] c = new short[N];",
"c",
"new short[N]",
"N",
"for(short i=0;i<N;i++){\n\t\t\tString s = sc.nextLine();\n\t\t\ta[i] = (short)Integer.parseInt((s.split(\" \",0))[0]);\n\t\t\tb[i] = (short)Integer.parseInt((s.split(\" \",0))[1]);\n\t\t\tc[i] = (short)Integer.parseInt((s.split(\" \",0))[2]);\n\t\t}",
"short i=0;",
"short i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tString s = sc.nextLine();\n\t\t\ta[i] = (short)Integer.parseInt((s.split(\" \",0))[0]);\n\t\t\tb[i] = (short)Integer.parseInt((s.split(\" \",0))[1]);\n\t\t\tc[i] = (short)Integer.parseInt((s.split(\" \",0))[2]);\n\t\t}",
"{\n\t\t\tString s = sc.nextLine();\n\t\t\ta[i] = (short)Integer.parseInt((s.split(\" \",0))[0]);\n\t\t\tb[i] = (short)Integer.parseInt((s.split(\" \",0))[1]);\n\t\t\tc[i] = (short)Integer.parseInt((s.split(\" \",0))[2]);\n\t\t}",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"a[i] = (short)Integer.parseInt((s.split(\" \",0))[0])",
"a[i]",
"a",
"i",
"(short)Integer.parseInt((s.split(\" \",0))[0])",
"Integer.parseInt",
"Integer",
"(s.split(\" \",0))[0]",
"(s.split(\" \",0))",
"s.split",
"s",
"\" \"",
"0",
"0",
"b[i] = (short)Integer.parseInt((s.split(\" \",0))[1])",
"b[i]",
"b",
"i",
"(short)Integer.parseInt((s.split(\" \",0))[1])",
"Integer.parseInt",
"Integer",
"(s.split(\" \",0))[1]",
"(s.split(\" \",0))",
"s.split",
"s",
"\" \"",
"0",
"1",
"c[i] = (short)Integer.parseInt((s.split(\" \",0))[2])",
"c[i]",
"c",
"i",
"(short)Integer.parseInt((s.split(\" \",0))[2])",
"Integer.parseInt",
"Integer",
"(s.split(\" \",0))[2]",
"(s.split(\" \",0))",
"s.split",
"s",
"\" \"",
"0",
"2",
"for(short i=0;i<N;i++){\n\t\t\tif(isRightTriangle(a[i],b[i],c[i])){System.out.println(\"YES\");}\n\t\t\telse{System.out.println(\"NO\");}\n\t\t}",
"short i=0;",
"short i=0;",
"i",
"0",
"i<N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tif(isRightTriangle(a[i],b[i],c[i])){System.out.println(\"YES\");}\n\t\t\telse{System.out.println(\"NO\");}\n\t\t}",
"{\n\t\t\tif(isRightTriangle(a[i],b[i],c[i])){System.out.println(\"YES\");}\n\t\t\telse{System.out.println(\"NO\");}\n\t\t}",
"if(isRightTriangle(a[i],b[i],c[i])){System.out.println(\"YES\");}\n\t\t\telse{System.out.println(\"NO\");}",
"isRightTriangle(a[i],b[i],c[i])",
"isRightTriangle",
"a[i]",
"a",
"i",
"b[i]",
"b",
"i",
"c[i]",
"c",
"i",
"{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[] x",
"x",
"public static boolean isRightTriangle(int a, int b, int c){\n\t\treturn (a>=b&&a>=c&&a*a==b*b+c*c)\n\t\t\t||(b>=c&&b>=a&&b*b==c*c+a*a)\n\t\t\t||(c>=a&&c>=b&&c*c==a*a+b*b);\n\t}",
"isRightTriangle",
"{\n\t\treturn (a>=b&&a>=c&&a*a==b*b+c*c)\n\t\t\t||(b>=c&&b>=a&&b*b==c*c+a*a)\n\t\t\t||(c>=a&&c>=b&&c*c==a*a+b*b);\n\t}",
"return (a>=b&&a>=c&&a*a==b*b+c*c)\n\t\t\t||(b>=c&&b>=a&&b*b==c*c+a*a)\n\t\t\t||(c>=a&&c>=b&&c*c==a*a+b*b);",
"(a>=b&&a>=c&&a*a==b*b+c*c)\n\t\t\t||(b>=c&&b>=a&&b*b==c*c+a*a)\n\t\t\t||(c>=a&&c>=b&&c*c==a*a+b*b)",
"(a>=b&&a>=c&&a*a==b*b+c*c)\n\t\t\t||(b>=c&&b>=a&&b*b==c*c+a*a)\n\t\t\t||(c>=a&&c>=b&&c*c==a*a+b*b)",
"(a>=b&&a>=c&&a*a==b*b+c*c)",
"a>=b&&a>=c&&a*a==b*b+c*c",
"a>=b",
"a",
"b",
"a>=c",
"a",
"c",
"a*a==b*b+c*c",
"a*a",
"a",
"a",
"b*b+c*c",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"(b>=c&&b>=a&&b*b==c*c+a*a)",
"b>=c&&b>=a&&b*b==c*c+a*a",
"b>=c",
"b",
"c",
"b>=a",
"b",
"a",
"b*b==c*c+a*a",
"b*b",
"b",
"b",
"c*c+a*a",
"c*c",
"c",
"c",
"a*a",
"a",
"a",
"(c>=a&&c>=b&&c*c==a*a+b*b)",
"c>=a&&c>=b&&c*c==a*a+b*b",
"c>=a",
"c",
"a",
"c>=b",
"c",
"b",
"c*c==a*a+b*b",
"c*c",
"c",
"c",
"a*a+b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"int a",
"a",
"int b",
"b",
"int c",
"c"
] | import java.util.Scanner;
class Main{
public static void main(String[] x){
Scanner sc = new Scanner(System.in);
short N = (short)Integer.parseInt(sc.nextLine());
short[] a = new short[N];
short[] b = new short[N];
short[] c = new short[N];
for(short i=0;i<N;i++){
String s = sc.nextLine();
a[i] = (short)Integer.parseInt((s.split(" ",0))[0]);
b[i] = (short)Integer.parseInt((s.split(" ",0))[1]);
c[i] = (short)Integer.parseInt((s.split(" ",0))[2]);
}
for(short i=0;i<N;i++){
if(isRightTriangle(a[i],b[i],c[i])){System.out.println("YES");}
else{System.out.println("NO");}
}
}
public static boolean isRightTriangle(int a, int b, int c){
return (a>=b&&a>=c&&a*a==b*b+c*c)
||(b>=c&&b>=a&&b*b==c*c+a*a)
||(c>=a&&c>=b&&c*c==a*a+b*b);
}
} |
[
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,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
13,
14,
2,
2,
4,
13,
18,
13,
17,
4,
13,
18,
13,
17,
4,
13,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
29,
2,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
104,
8
],
[
104,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
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
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
32,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
32,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
61,
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
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
9,
92
],
[
92,
93
],
[
104,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
94,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n for(int i=0;i<n;i++){\n int [] es = new int[3];\n for(int j=0;j<3;j++) es[j] = in.nextInt();\n Arrays.sort(es);\n if(sq(es[0]) + sq(es[1]) == sq(es[2])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n static int sq(int x){ return x*x; };\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n for(int i=0;i<n;i++){\n int [] es = new int[3];\n for(int j=0;j<3;j++) es[j] = in.nextInt();\n Arrays.sort(es);\n if(sq(es[0]) + sq(es[1]) == sq(es[2])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n static int sq(int x){ return x*x; };\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n for(int i=0;i<n;i++){\n int [] es = new int[3];\n for(int j=0;j<3;j++) es[j] = in.nextInt();\n Arrays.sort(es);\n if(sq(es[0]) + sq(es[1]) == sq(es[2])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n for(int i=0;i<n;i++){\n int [] es = new int[3];\n for(int j=0;j<3;j++) es[j] = in.nextInt();\n Arrays.sort(es);\n if(sq(es[0]) + sq(es[1]) == sq(es[2])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i=0;i<n;i++){\n int [] es = new int[3];\n for(int j=0;j<3;j++) es[j] = in.nextInt();\n Arrays.sort(es);\n if(sq(es[0]) + sq(es[1]) == sq(es[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 [] es = new int[3];\n for(int j=0;j<3;j++) es[j] = in.nextInt();\n Arrays.sort(es);\n if(sq(es[0]) + sq(es[1]) == sq(es[2])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"{\n int [] es = new int[3];\n for(int j=0;j<3;j++) es[j] = in.nextInt();\n Arrays.sort(es);\n if(sq(es[0]) + sq(es[1]) == sq(es[2])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }",
"int [] es = new int[3];",
"es",
"new int[3]",
"3",
"for(int j=0;j<3;j++) es[j] = in.nextInt();",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"es[j] = in.nextInt();",
"es[j] = in.nextInt()",
"es[j]",
"es",
"j",
"in.nextInt()",
"in.nextInt",
"in",
"Arrays.sort(es)",
"Arrays.sort",
"Arrays",
"es",
"if(sq(es[0]) + sq(es[1]) == sq(es[2])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"sq(es[0]) + sq(es[1]) == sq(es[2])",
"sq(es[0]) + sq(es[1])",
"sq(es[0])",
"sq",
"es[0]",
"es",
"0",
"sq(es[1])",
"sq",
"es[1]",
"es",
"1",
"sq(es[2])",
"sq",
"es[2]",
"es",
"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",
"static int sq(int x){ return x*x; }",
"sq",
"{ return x*x; }",
"return x*x;",
"x*x",
"x",
"x",
"int x",
"x",
"public class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n for(int i=0;i<n;i++){\n int [] es = new int[3];\n for(int j=0;j<3;j++) es[j] = in.nextInt();\n Arrays.sort(es);\n if(sq(es[0]) + sq(es[1]) == sq(es[2])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n static int sq(int x){ return x*x; };\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int n = in.nextInt();\n for(int i=0;i<n;i++){\n int [] es = new int[3];\n for(int j=0;j<3;j++) es[j] = in.nextInt();\n Arrays.sort(es);\n if(sq(es[0]) + sq(es[1]) == sq(es[2])){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n }\n }\n static int sq(int x){ return x*x; };\n\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int n = in.nextInt();
for(int i=0;i<n;i++){
int [] es = new int[3];
for(int j=0;j<3;j++) es[j] = in.nextInt();
Arrays.sort(es);
if(sq(es[0]) + sq(es[1]) == sq(es[2])){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
static int sq(int x){ return x*x; };
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
0,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
0,
13,
2,
13,
13,
14,
2,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
119,
5
],
[
119,
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
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
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
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
39,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
39,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
39,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
39,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
70,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
83,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
99,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
96,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
6,
116
],
[
116,
117
],
[
0,
118
],
[
118,
119
],
[
118,
120
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] atgs){\n\n\n\t\t//??????????????°\n\t\tScanner sc;\n\t\tint y;\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\n\t\tsc = new Scanner(System.in);\t\t//?????????????????§??\\????????????\n\n\t\ty = sc.nextInt();\t\t//???????????°\n\n\t\tfor(int i = 0;i < y ; i++){\n\t\t\ta = sc.nextInt();\t\t//??\\???????????????????????°?????\\??????\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(c == a + b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(b == a + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(a == b + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] atgs){\n\n\n\t\t//??????????????°\n\t\tScanner sc;\n\t\tint y;\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\n\t\tsc = new Scanner(System.in);\t\t//?????????????????§??\\????????????\n\n\t\ty = sc.nextInt();\t\t//???????????°\n\n\t\tfor(int i = 0;i < y ; i++){\n\t\t\ta = sc.nextInt();\t\t//??\\???????????????????????°?????\\??????\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(c == a + b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(b == a + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(a == b + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] atgs){\n\n\n\t\t//??????????????°\n\t\tScanner sc;\n\t\tint y;\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\n\t\tsc = new Scanner(System.in);\t\t//?????????????????§??\\????????????\n\n\t\ty = sc.nextInt();\t\t//???????????°\n\n\t\tfor(int i = 0;i < y ; i++){\n\t\t\ta = sc.nextInt();\t\t//??\\???????????????????????°?????\\??????\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(c == a + b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(b == a + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(a == b + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\n\n\t\t//??????????????°\n\t\tScanner sc;\n\t\tint y;\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\n\t\tsc = new Scanner(System.in);\t\t//?????????????????§??\\????????????\n\n\t\ty = sc.nextInt();\t\t//???????????°\n\n\t\tfor(int i = 0;i < y ; i++){\n\t\t\ta = sc.nextInt();\t\t//??\\???????????????????????°?????\\??????\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(c == a + b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(b == a + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(a == b + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"Scanner sc;",
"sc",
"int y;",
"y",
"int a;",
"a",
"int b;",
"b",
"int c;",
"c",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"y = sc.nextInt()",
"y",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 0;i < y ; i++){\n\t\t\ta = sc.nextInt();\t\t//??\\???????????????????????°?????\\??????\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(c == a + b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(b == a + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(a == b + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < y",
"i",
"y",
"i++",
"i++",
"i",
"{\n\t\t\ta = sc.nextInt();\t\t//??\\???????????????????????°?????\\??????\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(c == a + b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(b == a + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(a == b + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"{\n\t\t\ta = sc.nextInt();\t\t//??\\???????????????????????°?????\\??????\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(c == a + b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(b == a + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(a == b + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"a = 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(c == a + b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(b == a + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(a == b + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"c == a + b",
"c",
"a + b",
"a",
"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\"",
"if(b == a + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(a == b + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"b == a + c",
"b",
"a + c",
"a",
"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(a == b + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"a == b + c",
"a",
"b + c",
"b",
"c",
"{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] atgs",
"atgs",
"public class Main {\n\tpublic static void main(String[] atgs){\n\n\n\t\t//??????????????°\n\t\tScanner sc;\n\t\tint y;\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\n\t\tsc = new Scanner(System.in);\t\t//?????????????????§??\\????????????\n\n\t\ty = sc.nextInt();\t\t//???????????°\n\n\t\tfor(int i = 0;i < y ; i++){\n\t\t\ta = sc.nextInt();\t\t//??\\???????????????????????°?????\\??????\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(c == a + b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(b == a + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(a == b + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] atgs){\n\n\n\t\t//??????????????°\n\t\tScanner sc;\n\t\tint y;\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\n\t\tsc = new Scanner(System.in);\t\t//?????????????????§??\\????????????\n\n\t\ty = sc.nextInt();\t\t//???????????°\n\n\t\tfor(int i = 0;i < y ; i++){\n\t\t\ta = sc.nextInt();\t\t//??\\???????????????????????°?????\\??????\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(c == a + b){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(b == a + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else if(a == b + c){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] atgs){
//??????????????°
Scanner sc;
int y;
int a;
int b;
int c;
sc = new Scanner(System.in); //?????????????????§??\????????????
y = sc.nextInt(); //???????????°
for(int i = 0;i < y ; i++){
a = sc.nextInt(); //??\???????????????????????°?????\??????
b = sc.nextInt();
c = sc.nextInt();
a = a * a;
b = b * b;
c = c * c;
if(c == a + b){
System.out.println("YES");
}else if(b == a + c){
System.out.println("YES");
}else if(a == b + c){
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,
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
13,
13,
41,
13,
18,
18,
13,
13,
17,
41,
13,
18,
18,
13,
13,
17,
41,
13,
18,
18,
13,
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
],
[
129,
8
],
[
129,
9
],
[
9,
10
],
[
9,
11
],
[
129,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
20,
22
],
[
14,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
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
],
[
14,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
60,
68
],
[
68,
69
],
[
69,
70
],
[
60,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
72,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
72,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
72,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
72,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
100,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
100,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
12,
126
],
[
126,
127
],
[
0,
128
],
[
128,
129
],
[
128,
130
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\n\t\tint[][] box = 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\tbox[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tArrays.sort(box[i]);\n\t\t\tint a = box[i][0];\n\t\t\tint b = box[i][1];\n\t\t\tint c = box[i][2];\n\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\n\t\tint[][] box = 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\tbox[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tArrays.sort(box[i]);\n\t\t\tint a = box[i][0];\n\t\t\tint b = box[i][1];\n\t\t\tint c = box[i][2];\n\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\n\t\tint[][] box = 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\tbox[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tArrays.sort(box[i]);\n\t\t\tint a = box[i][0];\n\t\t\tint b = box[i][1];\n\t\t\tint c = box[i][2];\n\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}\n\n\t}",
"main",
"{\n\t\tint n = sc.nextInt();\n\n\t\tint[][] box = 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\tbox[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tArrays.sort(box[i]);\n\t\t\tint a = box[i][0];\n\t\t\tint b = box[i][1];\n\t\t\tint c = box[i][2];\n\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}\n\n\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[][] box = new int[n][3];",
"box",
"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\tbox[i][j] = sc.nextInt();\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\tbox[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\tbox[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}",
"for (int j = 0; j < 3; j++) {\n\t\t\t\tbox[i][j] = sc.nextInt();\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tbox[i][j] = sc.nextInt();\n\t\t\t}",
"{\n\t\t\t\tbox[i][j] = sc.nextInt();\n\t\t\t}",
"box[i][j] = sc.nextInt()",
"box[i][j]",
"box[i]",
"box",
"i",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < n; i++) {\n\t\t\tArrays.sort(box[i]);\n\t\t\tint a = box[i][0];\n\t\t\tint b = box[i][1];\n\t\t\tint c = box[i][2];\n\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tArrays.sort(box[i]);\n\t\t\tint a = box[i][0];\n\t\t\tint b = box[i][1];\n\t\t\tint c = box[i][2];\n\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tArrays.sort(box[i]);\n\t\t\tint a = box[i][0];\n\t\t\tint b = box[i][1];\n\t\t\tint c = box[i][2];\n\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}",
"Arrays.sort(box[i])",
"Arrays.sort",
"Arrays",
"box[i]",
"box",
"i",
"int a = box[i][0];",
"a",
"box[i][0]",
"box[i]",
"box",
"i",
"0",
"int b = box[i][1];",
"b",
"box[i][1]",
"box[i]",
"box",
"i",
"1",
"int c = box[i][2];",
"c",
"box[i][2]",
"box[i]",
"box",
"i",
"2",
"if (c * c == a * a + b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"c * c == a * a + b * b",
"c * c",
"c",
"c",
"a * a + b * b",
"a * a",
"a",
"a",
"b * b",
"b",
"b",
"{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\n\t\tint[][] box = 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\tbox[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tArrays.sort(box[i]);\n\t\t\tint a = box[i][0];\n\t\t\tint b = box[i][1];\n\t\t\tint c = box[i][2];\n\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\n\t\tint[][] box = 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\tbox[i][j] = sc.nextInt();\n\t\t\t}\n\t\t}\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tArrays.sort(box[i]);\n\t\t\tint a = box[i][0];\n\t\t\tint b = box[i][1];\n\t\t\tint c = box[i][2];\n\t\t\tif (c * c == a * a + b * b) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int n = sc.nextInt();
int[][] box = new int[n][3];
for (int i = 0; i < n; i++) {
for (int j = 0; j < 3; j++) {
box[i][j] = sc.nextInt();
}
}
for (int i = 0; i < n; i++) {
Arrays.sort(box[i]);
int a = box[i][0];
int b = box[i][1];
int c = box[i][2];
if (c * c == a * a + b * b) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
14,
2,
13,
13,
30,
41,
13,
13,
0,
13,
13,
0,
13,
13,
4,
18,
13,
8,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
17,
17,
12,
13,
30,
41,
13,
4,
18,
13,
4,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
136,
14
],
[
136,
15
],
[
15,
16
],
[
15,
17
],
[
136,
18
],
[
18,
19
],
[
18,
20
],
[
136,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
23,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
29,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
34,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
58,
60
],
[
54,
61
],
[
61,
62
],
[
61,
63
],
[
34,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
72,
74
],
[
68,
75
],
[
75,
76
],
[
75,
77
],
[
34,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
81,
93
],
[
81,
94
],
[
136,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
97,
103
],
[
103,
104
],
[
97,
105
],
[
105,
106
],
[
106,
107
],
[
97,
108
],
[
108,
109
],
[
108,
110
],
[
110,
111
],
[
111,
112
],
[
97,
113
],
[
113,
114
],
[
114,
115
],
[
97,
116
],
[
116,
117
],
[
117,
118
],
[
95,
119
],
[
119,
120
],
[
136,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
121,
133
],
[
133,
134
],
[
0,
135
],
[
135,
136
],
[
135,
137
]
] | [
"import java.util.*;\nimport java.io.*;\nimport java.awt.geom.*;\nimport java.math.*;\n\npublic class Main {\n\n\tstatic final Scanner in = new Scanner(System.in);\n\tstatic final PrintWriter out = new PrintWriter(System.out,false);\n\n\tstatic void solve() {\n\n\t\tint n = in.nextInt();\n\n\t\twhile (n-- > 0) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tint c = in.nextInt();\n\n\t\t\tif (a < b) {\n\t\t\t\tint t = a; a = b; b = t;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tint t = a; a = c; c = t;\n\t\t\t}\n\n\t\t\tout.println(a*a == b*b + c*c ? \"YES\" : \"NO\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tlong start = System.currentTimeMillis();\n\n\t\tsolve();\n\t\tout.flush();\n\n\t\tlong end = System.currentTimeMillis();\n\t\t//trace(end-start + \"ms\");\n\t\tin.close();\n\t\tout.close();\n\t}\n\n\tstatic void trace(Object... o) { System.out.println(Arrays.deepToString(o));}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.awt.geom.*;",
"geom.*",
"java.awt",
"import java.math.*;",
"math.*",
"java",
"public class Main {\n\n\tstatic final Scanner in = new Scanner(System.in);\n\tstatic final PrintWriter out = new PrintWriter(System.out,false);\n\n\tstatic void solve() {\n\n\t\tint n = in.nextInt();\n\n\t\twhile (n-- > 0) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tint c = in.nextInt();\n\n\t\t\tif (a < b) {\n\t\t\t\tint t = a; a = b; b = t;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tint t = a; a = c; c = t;\n\t\t\t}\n\n\t\t\tout.println(a*a == b*b + c*c ? \"YES\" : \"NO\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tlong start = System.currentTimeMillis();\n\n\t\tsolve();\n\t\tout.flush();\n\n\t\tlong end = System.currentTimeMillis();\n\t\t//trace(end-start + \"ms\");\n\t\tin.close();\n\t\tout.close();\n\t}\n\n\tstatic void trace(Object... o) { System.out.println(Arrays.deepToString(o));}\n}",
"Main",
"static final Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"static final PrintWriter out = new PrintWriter(System.out,false);",
"out",
"new PrintWriter(System.out,false)",
"static void solve() {\n\n\t\tint n = in.nextInt();\n\n\t\twhile (n-- > 0) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tint c = in.nextInt();\n\n\t\t\tif (a < b) {\n\t\t\t\tint t = a; a = b; b = t;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tint t = a; a = c; c = t;\n\t\t\t}\n\n\t\t\tout.println(a*a == b*b + c*c ? \"YES\" : \"NO\");\n\t\t}\n\t}",
"solve",
"{\n\n\t\tint n = in.nextInt();\n\n\t\twhile (n-- > 0) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tint c = in.nextInt();\n\n\t\t\tif (a < b) {\n\t\t\t\tint t = a; a = b; b = t;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tint t = a; a = c; c = t;\n\t\t\t}\n\n\t\t\tout.println(a*a == b*b + c*c ? \"YES\" : \"NO\");\n\t\t}\n\t}",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"while (n-- > 0) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tint c = in.nextInt();\n\n\t\t\tif (a < b) {\n\t\t\t\tint t = a; a = b; b = t;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tint t = a; a = c; c = t;\n\t\t\t}\n\n\t\t\tout.println(a*a == b*b + c*c ? \"YES\" : \"NO\");\n\t\t}",
"n-- > 0",
"n--",
"n",
"0",
"{\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tint c = in.nextInt();\n\n\t\t\tif (a < b) {\n\t\t\t\tint t = a; a = b; b = t;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tint t = a; a = c; c = t;\n\t\t\t}\n\n\t\t\tout.println(a*a == b*b + c*c ? \"YES\" : \"NO\");\n\t\t}",
"int a = in.nextInt();",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"int b = in.nextInt();",
"b",
"in.nextInt()",
"in.nextInt",
"in",
"int c = in.nextInt();",
"c",
"in.nextInt()",
"in.nextInt",
"in",
"if (a < b) {\n\t\t\t\tint t = a; a = b; b = t;\n\t\t\t}",
"a < b",
"a",
"b",
"{\n\t\t\t\tint t = a; a = b; b = t;\n\t\t\t}",
"int t = a;",
"t",
"a",
"a = b",
"a",
"b",
"b = t",
"b",
"t",
"if (a < c) {\n\t\t\t\tint t = a; a = c; c = t;\n\t\t\t}",
"a < c",
"a",
"c",
"{\n\t\t\t\tint t = a; a = c; c = t;\n\t\t\t}",
"int t = a;",
"t",
"a",
"a = c",
"a",
"c",
"c = t",
"c",
"t",
"out.println(a*a == b*b + c*c ? \"YES\" : \"NO\")",
"out.println",
"out",
"a*a == b*b + c*c ? \"YES\" : \"NO\"",
"a*a == b*b + c*c",
"a*a",
"a",
"a",
"b*b + c*c",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"\"YES\"",
"\"NO\"",
"public static void main(String[] args) {\n\t\tlong start = System.currentTimeMillis();\n\n\t\tsolve();\n\t\tout.flush();\n\n\t\tlong end = System.currentTimeMillis();\n\t\t//trace(end-start + \"ms\");\n\t\tin.close();\n\t\tout.close();\n\t}",
"main",
"{\n\t\tlong start = System.currentTimeMillis();\n\n\t\tsolve();\n\t\tout.flush();\n\n\t\tlong end = System.currentTimeMillis();\n\t\t//trace(end-start + \"ms\");\n\t\tin.close();\n\t\tout.close();\n\t}",
"long start = System.currentTimeMillis();",
"start",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"long end = System.currentTimeMillis();",
"end",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"in.close()",
"in.close",
"in",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static void trace(Object... o) { System.out.println(Arrays.deepToString(o));}",
"trace",
"{ System.out.println(Arrays.deepToString(o));}",
"System.out.println(Arrays.deepToString(o))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.deepToString(o)",
"Arrays.deepToString",
"Arrays",
"o",
"Object... o",
"o",
"public class Main {\n\n\tstatic final Scanner in = new Scanner(System.in);\n\tstatic final PrintWriter out = new PrintWriter(System.out,false);\n\n\tstatic void solve() {\n\n\t\tint n = in.nextInt();\n\n\t\twhile (n-- > 0) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tint c = in.nextInt();\n\n\t\t\tif (a < b) {\n\t\t\t\tint t = a; a = b; b = t;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tint t = a; a = c; c = t;\n\t\t\t}\n\n\t\t\tout.println(a*a == b*b + c*c ? \"YES\" : \"NO\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tlong start = System.currentTimeMillis();\n\n\t\tsolve();\n\t\tout.flush();\n\n\t\tlong end = System.currentTimeMillis();\n\t\t//trace(end-start + \"ms\");\n\t\tin.close();\n\t\tout.close();\n\t}\n\n\tstatic void trace(Object... o) { System.out.println(Arrays.deepToString(o));}\n}",
"public class Main {\n\n\tstatic final Scanner in = new Scanner(System.in);\n\tstatic final PrintWriter out = new PrintWriter(System.out,false);\n\n\tstatic void solve() {\n\n\t\tint n = in.nextInt();\n\n\t\twhile (n-- > 0) {\n\t\t\tint a = in.nextInt();\n\t\t\tint b = in.nextInt();\n\t\t\tint c = in.nextInt();\n\n\t\t\tif (a < b) {\n\t\t\t\tint t = a; a = b; b = t;\n\t\t\t}\n\t\t\tif (a < c) {\n\t\t\t\tint t = a; a = c; c = t;\n\t\t\t}\n\n\t\t\tout.println(a*a == b*b + c*c ? \"YES\" : \"NO\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tlong start = System.currentTimeMillis();\n\n\t\tsolve();\n\t\tout.flush();\n\n\t\tlong end = System.currentTimeMillis();\n\t\t//trace(end-start + \"ms\");\n\t\tin.close();\n\t\tout.close();\n\t}\n\n\tstatic void trace(Object... o) { System.out.println(Arrays.deepToString(o));}\n}",
"Main"
] | import java.util.*;
import java.io.*;
import java.awt.geom.*;
import java.math.*;
public class Main {
static final Scanner in = new Scanner(System.in);
static final PrintWriter out = new PrintWriter(System.out,false);
static void solve() {
int n = in.nextInt();
while (n-- > 0) {
int a = in.nextInt();
int b = in.nextInt();
int c = in.nextInt();
if (a < b) {
int t = a; a = b; b = t;
}
if (a < c) {
int t = a; a = c; c = t;
}
out.println(a*a == b*b + c*c ? "YES" : "NO");
}
}
public static void main(String[] args) {
long start = System.currentTimeMillis();
solve();
out.flush();
long end = System.currentTimeMillis();
//trace(end-start + "ms");
in.close();
out.close();
}
static void trace(Object... o) { System.out.println(Arrays.deepToString(o));}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
4,
13,
13,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
29,
2,
2,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
2,
2,
17,
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
],
[
157,
14
],
[
157,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
17,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
45,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
44,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
44,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
44,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
44,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
44,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
44,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
95,
98
],
[
95,
99
],
[
44,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
100,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
44,
118
],
[
118,
119
],
[
119,
120
],
[
15,
121
],
[
121,
122
],
[
157,
123
],
[
123,
124
],
[
123,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
130,
133
],
[
130,
134
],
[
129,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
135,
139
],
[
128,
140
],
[
140,
141
],
[
141,
142
],
[
140,
143
],
[
140,
144
],
[
127,
145
],
[
145,
146
],
[
146,
147
],
[
146,
148
],
[
145,
149
],
[
123,
150
],
[
150,
151
],
[
123,
152
],
[
152,
153
],
[
123,
154
],
[
154,
155
],
[
0,
156
],
[
156,
157
],
[
156,
158
]
] | [
"import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Integer> list = new ArrayList<Integer>();\n int limit = Integer.parseInt(scanner.next());\n for (int i = 0; i < limit; i++) {\n for (int j = 0; j < 3; j++) {\n list.add(Integer.parseInt(scanner.next()));\n }\n Collections.sort(list);\n Collections.reverse(list);\n int a = list.get(0);\n int b = list.get(1);\n int c = list.get(2);\n double cosA = getCosA(a, b, c);\n if (cosA == 0.0) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n list.clear();\n }\n }\n\n private static double getCosA(int a, int b, int c) {\n return (Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2)) / (2 * b * c);\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",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Integer> list = new ArrayList<Integer>();\n int limit = Integer.parseInt(scanner.next());\n for (int i = 0; i < limit; i++) {\n for (int j = 0; j < 3; j++) {\n list.add(Integer.parseInt(scanner.next()));\n }\n Collections.sort(list);\n Collections.reverse(list);\n int a = list.get(0);\n int b = list.get(1);\n int c = list.get(2);\n double cosA = getCosA(a, b, c);\n if (cosA == 0.0) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n list.clear();\n }\n }\n\n private static double getCosA(int a, int b, int c) {\n return (Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2)) / (2 * b * c);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Integer> list = new ArrayList<Integer>();\n int limit = Integer.parseInt(scanner.next());\n for (int i = 0; i < limit; i++) {\n for (int j = 0; j < 3; j++) {\n list.add(Integer.parseInt(scanner.next()));\n }\n Collections.sort(list);\n Collections.reverse(list);\n int a = list.get(0);\n int b = list.get(1);\n int c = list.get(2);\n double cosA = getCosA(a, b, c);\n if (cosA == 0.0) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n list.clear();\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n List<Integer> list = new ArrayList<Integer>();\n int limit = Integer.parseInt(scanner.next());\n for (int i = 0; i < limit; i++) {\n for (int j = 0; j < 3; j++) {\n list.add(Integer.parseInt(scanner.next()));\n }\n Collections.sort(list);\n Collections.reverse(list);\n int a = list.get(0);\n int b = list.get(1);\n int c = list.get(2);\n double cosA = getCosA(a, b, c);\n if (cosA == 0.0) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n list.clear();\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"List<Integer> list = new ArrayList<Integer>();",
"list",
"new ArrayList<Integer>()",
"int limit = Integer.parseInt(scanner.next());",
"limit",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"for (int i = 0; i < limit; i++) {\n for (int j = 0; j < 3; j++) {\n list.add(Integer.parseInt(scanner.next()));\n }\n Collections.sort(list);\n Collections.reverse(list);\n int a = list.get(0);\n int b = list.get(1);\n int c = list.get(2);\n double cosA = getCosA(a, b, c);\n if (cosA == 0.0) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n list.clear();\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < limit",
"i",
"limit",
"i++",
"i++",
"i",
"{\n for (int j = 0; j < 3; j++) {\n list.add(Integer.parseInt(scanner.next()));\n }\n Collections.sort(list);\n Collections.reverse(list);\n int a = list.get(0);\n int b = list.get(1);\n int c = list.get(2);\n double cosA = getCosA(a, b, c);\n if (cosA == 0.0) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n list.clear();\n }",
"{\n for (int j = 0; j < 3; j++) {\n list.add(Integer.parseInt(scanner.next()));\n }\n Collections.sort(list);\n Collections.reverse(list);\n int a = list.get(0);\n int b = list.get(1);\n int c = list.get(2);\n double cosA = getCosA(a, b, c);\n if (cosA == 0.0) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n list.clear();\n }",
"for (int j = 0; j < 3; j++) {\n list.add(Integer.parseInt(scanner.next()));\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n list.add(Integer.parseInt(scanner.next()));\n }",
"{\n list.add(Integer.parseInt(scanner.next()));\n }",
"list.add(Integer.parseInt(scanner.next()))",
"list.add",
"list",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"Collections.sort(list)",
"Collections.sort",
"Collections",
"list",
"Collections.reverse(list)",
"Collections.reverse",
"Collections",
"list",
"int a = list.get(0);",
"a",
"list.get(0)",
"list.get",
"list",
"0",
"int b = list.get(1);",
"b",
"list.get(1)",
"list.get",
"list",
"1",
"int c = list.get(2);",
"c",
"list.get(2)",
"list.get",
"list",
"2",
"double cosA = getCosA(a, b, c);",
"cosA",
"getCosA(a, b, c)",
"getCosA",
"a",
"b",
"c",
"if (cosA == 0.0) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }",
"cosA == 0.0",
"cosA",
"0.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\"",
"list.clear()",
"list.clear",
"list",
"String[] args",
"args",
"private static double getCosA(int a, int b, int c) {\n return (Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2)) / (2 * b * c);\n }",
"getCosA",
"{\n return (Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2)) / (2 * b * c);\n }",
"return (Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2)) / (2 * b * c);",
"(Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2)) / (2 * b * c)",
"(Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2))",
"Math.pow(b, 2) + Math.pow(c, 2)",
"Math.pow(b, 2)",
"Math.pow",
"Math",
"b",
"2",
"Math.pow(c, 2)",
"Math.pow",
"Math",
"c",
"2",
"Math.pow(a, 2)",
"Math.pow",
"Math",
"a",
"2",
"(2 * b * c)",
"2 * b * c",
"2",
"b",
"c",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Integer> list = new ArrayList<Integer>();\n int limit = Integer.parseInt(scanner.next());\n for (int i = 0; i < limit; i++) {\n for (int j = 0; j < 3; j++) {\n list.add(Integer.parseInt(scanner.next()));\n }\n Collections.sort(list);\n Collections.reverse(list);\n int a = list.get(0);\n int b = list.get(1);\n int c = list.get(2);\n double cosA = getCosA(a, b, c);\n if (cosA == 0.0) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n list.clear();\n }\n }\n\n private static double getCosA(int a, int b, int c) {\n return (Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2)) / (2 * b * c);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n List<Integer> list = new ArrayList<Integer>();\n int limit = Integer.parseInt(scanner.next());\n for (int i = 0; i < limit; i++) {\n for (int j = 0; j < 3; j++) {\n list.add(Integer.parseInt(scanner.next()));\n }\n Collections.sort(list);\n Collections.reverse(list);\n int a = list.get(0);\n int b = list.get(1);\n int c = list.get(2);\n double cosA = getCosA(a, b, c);\n if (cosA == 0.0) {\n System.out.println(\"YES\");\n } else {\n System.out.println(\"NO\");\n }\n list.clear();\n }\n }\n\n private static double getCosA(int a, int b, int c) {\n return (Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2)) / (2 * b * c);\n }\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
List<Integer> list = new ArrayList<Integer>();
int limit = Integer.parseInt(scanner.next());
for (int i = 0; i < limit; i++) {
for (int j = 0; j < 3; j++) {
list.add(Integer.parseInt(scanner.next()));
}
Collections.sort(list);
Collections.reverse(list);
int a = list.get(0);
int b = list.get(1);
int c = list.get(2);
double cosA = getCosA(a, b, c);
if (cosA == 0.0) {
System.out.println("YES");
} else {
System.out.println("NO");
}
list.clear();
}
}
private static double getCosA(int a, int b, int c) {
return (Math.pow(b, 2) + Math.pow(c, 2) - Math.pow(a, 2)) / (2 * b * c);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
17,
0,
13,
4,
18,
13,
41,
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,
4,
18,
18,
18,
13,
13,
13,
13,
14,
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,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
8,
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
],
[
40,
42
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
39,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
39,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
39,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
78,
85
],
[
39,
86
],
[
86,
87
],
[
87,
88
],
[
88,
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
],
[
88,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
104,
108
],
[
108,
109
],
[
108,
110
],
[
87,
111
],
[
86,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
86,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
6,
126
],
[
126,
127
]
] | [
"import java.io.*;\nclass Main{\n\n public static void main(String[] args)throws IOException{\n\t\n\tBufferedReader br =\n\t new BufferedReader (new InputStreamReader(System.in));\n\tString buf;\n\tint time;\n\tbuf=br.readLine();\n\ttime=Integer.parseInt(buf);\n\tfor(int i=0;i<time;i++){\n\t int[] side =new int[3];\n\t buf=br.readLine();\n\t String[] buf2=buf.split(\" \");\n\t for(int j=0;j<3;j++){\n\t\tside[j]=Integer.parseInt(buf2[j]);\n\t }\n\t java.util.Arrays.sort(side);\n\t if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){\n\t\tSystem.out.println(\"YES\");\n\t }else{\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main{\n\n public static void main(String[] args)throws IOException{\n\t\n\tBufferedReader br =\n\t new BufferedReader (new InputStreamReader(System.in));\n\tString buf;\n\tint time;\n\tbuf=br.readLine();\n\ttime=Integer.parseInt(buf);\n\tfor(int i=0;i<time;i++){\n\t int[] side =new int[3];\n\t buf=br.readLine();\n\t String[] buf2=buf.split(\" \");\n\t for(int j=0;j<3;j++){\n\t\tside[j]=Integer.parseInt(buf2[j]);\n\t }\n\t java.util.Arrays.sort(side);\n\t if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){\n\t\tSystem.out.println(\"YES\");\n\t }else{\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }\n}",
"Main",
"public static void main(String[] args)throws IOException{\n\t\n\tBufferedReader br =\n\t new BufferedReader (new InputStreamReader(System.in));\n\tString buf;\n\tint time;\n\tbuf=br.readLine();\n\ttime=Integer.parseInt(buf);\n\tfor(int i=0;i<time;i++){\n\t int[] side =new int[3];\n\t buf=br.readLine();\n\t String[] buf2=buf.split(\" \");\n\t for(int j=0;j<3;j++){\n\t\tside[j]=Integer.parseInt(buf2[j]);\n\t }\n\t java.util.Arrays.sort(side);\n\t if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){\n\t\tSystem.out.println(\"YES\");\n\t }else{\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }",
"main",
"{\n\t\n\tBufferedReader br =\n\t new BufferedReader (new InputStreamReader(System.in));\n\tString buf;\n\tint time;\n\tbuf=br.readLine();\n\ttime=Integer.parseInt(buf);\n\tfor(int i=0;i<time;i++){\n\t int[] side =new int[3];\n\t buf=br.readLine();\n\t String[] buf2=buf.split(\" \");\n\t for(int j=0;j<3;j++){\n\t\tside[j]=Integer.parseInt(buf2[j]);\n\t }\n\t java.util.Arrays.sort(side);\n\t if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){\n\t\tSystem.out.println(\"YES\");\n\t }else{\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}\n }",
"BufferedReader br =\n\t new BufferedReader (new InputStreamReader(System.in));",
"br",
"new BufferedReader (new InputStreamReader(System.in))",
"String buf;",
"buf",
"int time;",
"time",
"buf=br.readLine()",
"buf",
"br.readLine()",
"br.readLine",
"br",
"time=Integer.parseInt(buf)",
"time",
"Integer.parseInt(buf)",
"Integer.parseInt",
"Integer",
"buf",
"for(int i=0;i<time;i++){\n\t int[] side =new int[3];\n\t buf=br.readLine();\n\t String[] buf2=buf.split(\" \");\n\t for(int j=0;j<3;j++){\n\t\tside[j]=Integer.parseInt(buf2[j]);\n\t }\n\t java.util.Arrays.sort(side);\n\t if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){\n\t\tSystem.out.println(\"YES\");\n\t }else{\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<time",
"i",
"time",
"i++",
"i++",
"i",
"{\n\t int[] side =new int[3];\n\t buf=br.readLine();\n\t String[] buf2=buf.split(\" \");\n\t for(int j=0;j<3;j++){\n\t\tside[j]=Integer.parseInt(buf2[j]);\n\t }\n\t java.util.Arrays.sort(side);\n\t if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){\n\t\tSystem.out.println(\"YES\");\n\t }else{\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}",
"{\n\t int[] side =new int[3];\n\t buf=br.readLine();\n\t String[] buf2=buf.split(\" \");\n\t for(int j=0;j<3;j++){\n\t\tside[j]=Integer.parseInt(buf2[j]);\n\t }\n\t java.util.Arrays.sort(side);\n\t if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){\n\t\tSystem.out.println(\"YES\");\n\t }else{\n\t\tSystem.out.println(\"NO\");\n\t }\n\t}",
"int[] side =new int[3];",
"side",
"new int[3]",
"3",
"buf=br.readLine()",
"buf",
"br.readLine()",
"br.readLine",
"br",
"String[] buf2=buf.split(\" \");",
"buf2",
"buf.split(\" \")",
"buf.split",
"buf",
"\" \"",
"for(int j=0;j<3;j++){\n\t\tside[j]=Integer.parseInt(buf2[j]);\n\t }",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\tside[j]=Integer.parseInt(buf2[j]);\n\t }",
"{\n\t\tside[j]=Integer.parseInt(buf2[j]);\n\t }",
"side[j]=Integer.parseInt(buf2[j])",
"side[j]",
"side",
"j",
"Integer.parseInt(buf2[j])",
"Integer.parseInt",
"Integer",
"buf2[j]",
"buf2",
"j",
"java.util.Arrays.sort(side)",
"java.util.Arrays.sort",
"java.util.Arrays",
"java.util",
"java",
"java.util",
"java.util.Arrays",
"side",
"if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){\n\t\tSystem.out.println(\"YES\");\n\t }else{\n\t\tSystem.out.println(\"NO\");\n\t }",
"(side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0",
"(side[2]*side[2]-side[1]*side[1]-side[0]*side[0])",
"side[2]*side[2]-side[1]*side[1]-side[0]*side[0]",
"side[2]*side[2]",
"side[2]",
"side",
"2",
"side[2]",
"side",
"2",
"side[1]*side[1]",
"side[1]",
"side",
"1",
"side[1]",
"side",
"1",
"side[0]*side[0]",
"side[0]",
"side",
"0",
"side[0]",
"side",
"0",
"0",
"{\n\t\tSystem.out.println(\"YES\");\n\t }",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\t\tSystem.out.println(\"NO\");\n\t }",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args"
] | import java.io.*;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br =
new BufferedReader (new InputStreamReader(System.in));
String buf;
int time;
buf=br.readLine();
time=Integer.parseInt(buf);
for(int i=0;i<time;i++){
int[] side =new int[3];
buf=br.readLine();
String[] buf2=buf.split(" ");
for(int j=0;j<3;j++){
side[j]=Integer.parseInt(buf2[j]);
}
java.util.Arrays.sort(side);
if((side[2]*side[2]-side[1]*side[1]-side[0]*side[0])==0){
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,
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,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
98,
5
],
[
98,
6
],
[
6,
7
],
[
6,
8
],
[
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
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
33,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
33,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
58,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
78,
80
],
[
57,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
57,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
6,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] | [
"import java.util.*;\npublic 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 T[]=new int[3];\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t\tT[j]=scanner.nextInt();\n\t\t\tArrays.sort(T);\n\t\t\tif(T[0]*T[0]+T[1]*T[1]==T[2]*T[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public 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 T[]=new int[3];\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t\tT[j]=scanner.nextInt();\n\t\t\tArrays.sort(T);\n\t\t\tif(T[0]*T[0]+T[1]*T[1]==T[2]*T[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner=new Scanner(System.in);\n\t\tint N=scanner.nextInt();\n\t\tint T[]=new int[3];\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t\tT[j]=scanner.nextInt();\n\t\t\tArrays.sort(T);\n\t\t\tif(T[0]*T[0]+T[1]*T[1]==T[2]*T[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner=new Scanner(System.in);\n\t\tint N=scanner.nextInt();\n\t\tint T[]=new int[3];\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t\tT[j]=scanner.nextInt();\n\t\t\tArrays.sort(T);\n\t\t\tif(T[0]*T[0]+T[1]*T[1]==T[2]*T[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"Scanner scanner=new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int N=scanner.nextInt();",
"N",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int T[]=new int[3];",
"T",
"new int[3]",
"3",
"for(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t\tT[j]=scanner.nextInt();\n\t\t\tArrays.sort(T);\n\t\t\tif(T[0]*T[0]+T[1]*T[1]==T[2]*T[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\tfor(int j=0;j<3;j++)\n\t\t\t\tT[j]=scanner.nextInt();\n\t\t\tArrays.sort(T);\n\t\t\tif(T[0]*T[0]+T[1]*T[1]==T[2]*T[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\tfor(int j=0;j<3;j++)\n\t\t\t\tT[j]=scanner.nextInt();\n\t\t\tArrays.sort(T);\n\t\t\tif(T[0]*T[0]+T[1]*T[1]==T[2]*T[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}",
"for(int j=0;j<3;j++)\n\t\t\t\tT[j]=scanner.nextInt();",
"int j=0;",
"int j=0;",
"j",
"0",
"j<3",
"j",
"3",
"j++",
"j++",
"j",
"T[j]=scanner.nextInt();",
"T[j]=scanner.nextInt()",
"T[j]",
"T",
"j",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"Arrays.sort(T)",
"Arrays.sort",
"Arrays",
"T",
"if(T[0]*T[0]+T[1]*T[1]==T[2]*T[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}",
"T[0]*T[0]+T[1]*T[1]==T[2]*T[2]",
"T[0]*T[0]+T[1]*T[1]",
"T[0]*T[0]",
"T[0]",
"T",
"0",
"T[0]",
"T",
"0",
"T[1]*T[1]",
"T[1]",
"T",
"1",
"T[1]",
"T",
"1",
"T[2]*T[2]",
"T[2]",
"T",
"2",
"T[2]",
"T",
"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 scanner=new Scanner(System.in);\n\t\tint N=scanner.nextInt();\n\t\tint T[]=new int[3];\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t\tT[j]=scanner.nextInt();\n\t\t\tArrays.sort(T);\n\t\t\tif(T[0]*T[0]+T[1]*T[1]==T[2]*T[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public 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 T[]=new int[3];\n\t\tfor(int i=0;i<N;i++){\n\t\t\tfor(int j=0;j<3;j++)\n\t\t\t\tT[j]=scanner.nextInt();\n\t\t\tArrays.sort(T);\n\t\t\tif(T[0]*T[0]+T[1]*T[1]==T[2]*T[2]){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scanner=new Scanner(System.in);
int N=scanner.nextInt();
int T[]=new int[3];
for(int i=0;i<N;i++){
for(int j=0;j<3;j++)
T[j]=scanner.nextInt();
Arrays.sort(T);
if(T[0]*T[0]+T[1]*T[1]==T[2]*T[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,
41,
13,
20,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
0,
18,
18,
13,
13,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
13,
13,
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,
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
],
[
125,
5
],
[
125,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
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
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
73
],
[
67,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
76,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
75,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
74,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
74,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
6,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
] | [
"import java.util.*;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint[][]a=new int[n][3];\n\t\t\n\t\tfor(int j=0;j<n;j++)\n\t\t\tfor(int l=0;l<3;l++)\n\t\t\ta[j][l]=scan.nextInt();\n\t\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t\t{Arrays.sort(a[i]);\t\n\t\t\tif(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[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\t}\n}}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint[][]a=new int[n][3];\n\t\t\n\t\tfor(int j=0;j<n;j++)\n\t\t\tfor(int l=0;l<3;l++)\n\t\t\ta[j][l]=scan.nextInt();\n\t\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t\t{Arrays.sort(a[i]);\t\n\t\t\tif(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[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\t}\n}}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint[][]a=new int[n][3];\n\t\t\n\t\tfor(int j=0;j<n;j++)\n\t\t\tfor(int l=0;l<3;l++)\n\t\t\ta[j][l]=scan.nextInt();\n\t\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t\t{Arrays.sort(a[i]);\t\n\t\t\tif(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[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\t}\n}",
"main",
"{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint[][]a=new int[n][3];\n\t\t\n\t\tfor(int j=0;j<n;j++)\n\t\t\tfor(int l=0;l<3;l++)\n\t\t\ta[j][l]=scan.nextInt();\n\t\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t\t{Arrays.sort(a[i]);\t\n\t\t\tif(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[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\t}\n}",
"Scanner scan=new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n=scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[][]a=new int[n][3];",
"a",
"new int[n][3]",
"n",
"3",
"for(int j=0;j<n;j++)\n\t\t\tfor(int l=0;l<3;l++)\n\t\t\ta[j][l]=scan.nextInt();",
"int j=0;",
"int j=0;",
"j",
"0",
"j<n",
"j",
"n",
"j++",
"j++",
"j",
"for(int l=0;l<3;l++)\n\t\t\ta[j][l]=scan.nextInt();",
"for(int l=0;l<3;l++)\n\t\t\ta[j][l]=scan.nextInt();",
"int l=0;",
"int l=0;",
"l",
"0",
"l<3",
"l",
"3",
"l++",
"l++",
"l",
"a[j][l]=scan.nextInt();",
"a[j][l]=scan.nextInt()",
"a[j][l]",
"a[j]",
"a",
"j",
"l",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=0;i<n;i++)\n\t\t\t{Arrays.sort(a[i]);\t\n\t\t\tif(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[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\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{Arrays.sort(a[i]);\t\n\t\t\tif(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[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\t}",
"{Arrays.sort(a[i]);\t\n\t\t\tif(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[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\t}",
"Arrays.sort(a[i])",
"Arrays.sort",
"Arrays",
"a[i]",
"a",
"i",
"if(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[i][2])\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\telse\n\t\t\t\tSystem.out.println(\"NO\");",
"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",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint[][]a=new int[n][3];\n\t\t\n\t\tfor(int j=0;j<n;j++)\n\t\t\tfor(int l=0;l<3;l++)\n\t\t\ta[j][l]=scan.nextInt();\n\t\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t\t{Arrays.sort(a[i]);\t\n\t\t\tif(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[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\t}\n}}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint[][]a=new int[n][3];\n\t\t\n\t\tfor(int j=0;j<n;j++)\n\t\t\tfor(int l=0;l<3;l++)\n\t\t\ta[j][l]=scan.nextInt();\n\t\t\t\n\t\tfor(int i=0;i<n;i++)\n\t\t\t{Arrays.sort(a[i]);\t\n\t\t\tif(a[i][0]*a[i][0]+a[i][1]*a[i][1]==a[i][2]*a[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\t}\n}}",
"Main"
] | import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner scan=new Scanner(System.in);
int n=scan.nextInt();
int[][]a=new int[n][3];
for(int j=0;j<n;j++)
for(int l=0;l<3;l++)
a[j][l]=scan.nextInt();
for(int i=0;i<n;i++)
{Arrays.sort(a[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
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,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
0,
13,
2,
18,
13,
17,
17,
0,
13,
2,
18,
13,
17,
17,
0,
13,
2,
18,
13,
17,
17,
0,
13,
2,
18,
13,
17,
17,
0,
13,
2,
18,
13,
17,
17,
0,
13,
2,
18,
13,
17,
17,
14,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
14,
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
],
[
154,
5
],
[
154,
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
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
29,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
29,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
29,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
29,
59
],
[
59,
60
],
[
29,
61
],
[
61,
62
],
[
29,
63
],
[
63,
64
],
[
29,
65
],
[
65,
66
],
[
29,
67
],
[
67,
68
],
[
29,
69
],
[
69,
70
],
[
69,
71
],
[
29,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
29,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
29,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
29,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
29,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
29,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
29,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
119,
121
],
[
114,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
114,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
134
],
[
134,
135
],
[
134,
136
],
[
129,
137
],
[
137,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
129,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
145,
150
],
[
6,
151
],
[
151,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
] | [
"import java.util.*;\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\tfloat[] x = new float[3];\n\t\t\tx[0] = sc.nextFloat();\n\t\t\tx[1] = sc.nextFloat();\n\t\t\tx[2] = sc.nextFloat();\n\t\t\tArrays.sort(x);\n\t\t\tfloat a,b,c,d,e,f = 0;\n\t\t\t// 3:4:5\n\t\t\ta = x[0]/3.0f;\n\t\t\tb = x[1]/4.0f;\n\t\t\tc = x[2]/5.0f;\n\t\t\t// 5:12:13\n\t\t\td = x[0]/5.0f;\n\t\t\te = x[1]/12.0f;\n\t\t\tf = x[2]/13.0f;\n\t\t\tif(a == b && b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if(d == e && e == f) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\t// Not a right angled triangle.\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",
"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\tfloat[] x = new float[3];\n\t\t\tx[0] = sc.nextFloat();\n\t\t\tx[1] = sc.nextFloat();\n\t\t\tx[2] = sc.nextFloat();\n\t\t\tArrays.sort(x);\n\t\t\tfloat a,b,c,d,e,f = 0;\n\t\t\t// 3:4:5\n\t\t\ta = x[0]/3.0f;\n\t\t\tb = x[1]/4.0f;\n\t\t\tc = x[2]/5.0f;\n\t\t\t// 5:12:13\n\t\t\td = x[0]/5.0f;\n\t\t\te = x[1]/12.0f;\n\t\t\tf = x[2]/13.0f;\n\t\t\tif(a == b && b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if(d == e && e == f) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\t// Not a right angled triangle.\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...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\tfloat[] x = new float[3];\n\t\t\tx[0] = sc.nextFloat();\n\t\t\tx[1] = sc.nextFloat();\n\t\t\tx[2] = sc.nextFloat();\n\t\t\tArrays.sort(x);\n\t\t\tfloat a,b,c,d,e,f = 0;\n\t\t\t// 3:4:5\n\t\t\ta = x[0]/3.0f;\n\t\t\tb = x[1]/4.0f;\n\t\t\tc = x[2]/5.0f;\n\t\t\t// 5:12:13\n\t\t\td = x[0]/5.0f;\n\t\t\te = x[1]/12.0f;\n\t\t\tf = x[2]/13.0f;\n\t\t\tif(a == b && b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if(d == e && e == f) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\t// Not a right angled triangle.\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 sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tfloat[] x = new float[3];\n\t\t\tx[0] = sc.nextFloat();\n\t\t\tx[1] = sc.nextFloat();\n\t\t\tx[2] = sc.nextFloat();\n\t\t\tArrays.sort(x);\n\t\t\tfloat a,b,c,d,e,f = 0;\n\t\t\t// 3:4:5\n\t\t\ta = x[0]/3.0f;\n\t\t\tb = x[1]/4.0f;\n\t\t\tc = x[2]/5.0f;\n\t\t\t// 5:12:13\n\t\t\td = x[0]/5.0f;\n\t\t\te = x[1]/12.0f;\n\t\t\tf = x[2]/13.0f;\n\t\t\tif(a == b && b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if(d == e && e == f) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\t// Not a right angled triangle.\n\t\t\telse {\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\tfloat[] x = new float[3];\n\t\t\tx[0] = sc.nextFloat();\n\t\t\tx[1] = sc.nextFloat();\n\t\t\tx[2] = sc.nextFloat();\n\t\t\tArrays.sort(x);\n\t\t\tfloat a,b,c,d,e,f = 0;\n\t\t\t// 3:4:5\n\t\t\ta = x[0]/3.0f;\n\t\t\tb = x[1]/4.0f;\n\t\t\tc = x[2]/5.0f;\n\t\t\t// 5:12:13\n\t\t\td = x[0]/5.0f;\n\t\t\te = x[1]/12.0f;\n\t\t\tf = x[2]/13.0f;\n\t\t\tif(a == b && b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if(d == e && e == f) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\t// Not a right angled triangle.\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\tfloat[] x = new float[3];\n\t\t\tx[0] = sc.nextFloat();\n\t\t\tx[1] = sc.nextFloat();\n\t\t\tx[2] = sc.nextFloat();\n\t\t\tArrays.sort(x);\n\t\t\tfloat a,b,c,d,e,f = 0;\n\t\t\t// 3:4:5\n\t\t\ta = x[0]/3.0f;\n\t\t\tb = x[1]/4.0f;\n\t\t\tc = x[2]/5.0f;\n\t\t\t// 5:12:13\n\t\t\td = x[0]/5.0f;\n\t\t\te = x[1]/12.0f;\n\t\t\tf = x[2]/13.0f;\n\t\t\tif(a == b && b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if(d == e && e == f) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\t// Not a right angled triangle.\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tfloat[] x = new float[3];\n\t\t\tx[0] = sc.nextFloat();\n\t\t\tx[1] = sc.nextFloat();\n\t\t\tx[2] = sc.nextFloat();\n\t\t\tArrays.sort(x);\n\t\t\tfloat a,b,c,d,e,f = 0;\n\t\t\t// 3:4:5\n\t\t\ta = x[0]/3.0f;\n\t\t\tb = x[1]/4.0f;\n\t\t\tc = x[2]/5.0f;\n\t\t\t// 5:12:13\n\t\t\td = x[0]/5.0f;\n\t\t\te = x[1]/12.0f;\n\t\t\tf = x[2]/13.0f;\n\t\t\tif(a == b && b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if(d == e && e == f) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\t// Not a right angled triangle.\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"float[] x = new float[3];",
"x",
"new float[3]",
"3",
"x[0] = sc.nextFloat()",
"x[0]",
"x",
"0",
"sc.nextFloat()",
"sc.nextFloat",
"sc",
"x[1] = sc.nextFloat()",
"x[1]",
"x",
"1",
"sc.nextFloat()",
"sc.nextFloat",
"sc",
"x[2] = sc.nextFloat()",
"x[2]",
"x",
"2",
"sc.nextFloat()",
"sc.nextFloat",
"sc",
"Arrays.sort(x)",
"Arrays.sort",
"Arrays",
"x",
"float a",
"a",
"b",
"b",
"c",
"c",
"d",
"d",
"e",
"e",
"f = 0;",
"f",
"0",
"a = x[0]/3.0f",
"a",
"x[0]/3.0f",
"x[0]",
"x",
"0",
"3.0f",
"b = x[1]/4.0f",
"b",
"x[1]/4.0f",
"x[1]",
"x",
"1",
"4.0f",
"c = x[2]/5.0f",
"c",
"x[2]/5.0f",
"x[2]",
"x",
"2",
"5.0f",
"d = x[0]/5.0f",
"d",
"x[0]/5.0f",
"x[0]",
"x",
"0",
"5.0f",
"e = x[1]/12.0f",
"e",
"x[1]/12.0f",
"x[1]",
"x",
"1",
"12.0f",
"f = x[2]/13.0f",
"f",
"x[2]/13.0f",
"x[2]",
"x",
"2",
"13.0f",
"if(a == b && b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if(d == e && e == f) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\t// Not a right angled triangle.\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"a == b && b == c",
"a == b",
"a",
"b",
"b == c",
"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(d == e && e == f) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\t// Not a right angled triangle.\n\t\t\telse {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"d == e && e == f",
"d == e",
"d",
"e",
"e == f",
"e",
"f",
"{\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\tfloat[] x = new float[3];\n\t\t\tx[0] = sc.nextFloat();\n\t\t\tx[1] = sc.nextFloat();\n\t\t\tx[2] = sc.nextFloat();\n\t\t\tArrays.sort(x);\n\t\t\tfloat a,b,c,d,e,f = 0;\n\t\t\t// 3:4:5\n\t\t\ta = x[0]/3.0f;\n\t\t\tb = x[1]/4.0f;\n\t\t\tc = x[2]/5.0f;\n\t\t\t// 5:12:13\n\t\t\td = x[0]/5.0f;\n\t\t\te = x[1]/12.0f;\n\t\t\tf = x[2]/13.0f;\n\t\t\tif(a == b && b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if(d == e && e == f) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\t// Not a right angled triangle.\n\t\t\telse {\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\tfloat[] x = new float[3];\n\t\t\tx[0] = sc.nextFloat();\n\t\t\tx[1] = sc.nextFloat();\n\t\t\tx[2] = sc.nextFloat();\n\t\t\tArrays.sort(x);\n\t\t\tfloat a,b,c,d,e,f = 0;\n\t\t\t// 3:4:5\n\t\t\ta = x[0]/3.0f;\n\t\t\tb = x[1]/4.0f;\n\t\t\tc = x[2]/5.0f;\n\t\t\t// 5:12:13\n\t\t\td = x[0]/5.0f;\n\t\t\te = x[1]/12.0f;\n\t\t\tf = x[2]/13.0f;\n\t\t\tif(a == b && b == c) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse if(d == e && e == f) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\t// Not a right angled triangle.\n\t\t\telse {\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++) {
float[] x = new float[3];
x[0] = sc.nextFloat();
x[1] = sc.nextFloat();
x[2] = sc.nextFloat();
Arrays.sort(x);
float a,b,c,d,e,f = 0;
// 3:4:5
a = x[0]/3.0f;
b = x[1]/4.0f;
c = x[2]/5.0f;
// 5:12:13
d = x[0]/5.0f;
e = x[1]/12.0f;
f = x[2]/13.0f;
if(a == b && b == c) {
System.out.println("YES");
}
else if(d == e && e == f) {
System.out.println("YES");
}
// Not a right angled triangle.
else {
System.out.println("NO");
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
17,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
0,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
14,
2,
2,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
103,
8
],
[
103,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
32,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
32,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
32,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
32,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
63,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
62,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
62,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
9,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ???????????????????????°\n\t\tint num = sc.nextInt();\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tint[] inputNumList = new int[3];\n\n\t\t\tinputNumList[0] = sc.nextInt();\n\t\t\tinputNumList[1] = sc.nextInt();\n\t\t\tinputNumList[2] = sc.nextInt();\n\n\t\t\t// ?????????????????????inputNumList[2]?????§?????????????????£?????????\n\t\t\tArrays.sort(inputNumList);\n\n\t\t\tif (inputNumList[0] * inputNumList[0] + inputNumList[1]\n\t\t\t\t\t* inputNumList[1] == inputNumList[2] * inputNumList[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"import java.util.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@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ???????????????????????°\n\t\tint num = sc.nextInt();\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tint[] inputNumList = new int[3];\n\n\t\t\tinputNumList[0] = sc.nextInt();\n\t\t\tinputNumList[1] = sc.nextInt();\n\t\t\tinputNumList[2] = sc.nextInt();\n\n\t\t\t// ?????????????????????inputNumList[2]?????§?????????????????£?????????\n\t\t\tArrays.sort(inputNumList);\n\n\t\t\tif (inputNumList[0] * inputNumList[0] + inputNumList[1]\n\t\t\t\t\t* inputNumList[1] == inputNumList[2] * inputNumList[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ???????????????????????°\n\t\tint num = sc.nextInt();\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tint[] inputNumList = new int[3];\n\n\t\t\tinputNumList[0] = sc.nextInt();\n\t\t\tinputNumList[1] = sc.nextInt();\n\t\t\tinputNumList[2] = sc.nextInt();\n\n\t\t\t// ?????????????????????inputNumList[2]?????§?????????????????£?????????\n\t\t\tArrays.sort(inputNumList);\n\n\t\t\tif (inputNumList[0] * inputNumList[0] + inputNumList[1]\n\t\t\t\t\t* inputNumList[1] == inputNumList[2] * inputNumList[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\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\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ???????????????????????°\n\t\tint num = sc.nextInt();\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tint[] inputNumList = new int[3];\n\n\t\t\tinputNumList[0] = sc.nextInt();\n\t\t\tinputNumList[1] = sc.nextInt();\n\t\t\tinputNumList[2] = sc.nextInt();\n\n\t\t\t// ?????????????????????inputNumList[2]?????§?????????????????£?????????\n\t\t\tArrays.sort(inputNumList);\n\n\t\t\tif (inputNumList[0] * inputNumList[0] + inputNumList[1]\n\t\t\t\t\t* inputNumList[1] == inputNumList[2] * inputNumList[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}",
"@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < num; i++) {\n\t\t\tint[] inputNumList = new int[3];\n\n\t\t\tinputNumList[0] = sc.nextInt();\n\t\t\tinputNumList[1] = sc.nextInt();\n\t\t\tinputNumList[2] = sc.nextInt();\n\n\t\t\t// ?????????????????????inputNumList[2]?????§?????????????????£?????????\n\t\t\tArrays.sort(inputNumList);\n\n\t\t\tif (inputNumList[0] * inputNumList[0] + inputNumList[1]\n\t\t\t\t\t* inputNumList[1] == inputNumList[2] * inputNumList[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tint[] inputNumList = new int[3];\n\n\t\t\tinputNumList[0] = sc.nextInt();\n\t\t\tinputNumList[1] = sc.nextInt();\n\t\t\tinputNumList[2] = sc.nextInt();\n\n\t\t\t// ?????????????????????inputNumList[2]?????§?????????????????£?????????\n\t\t\tArrays.sort(inputNumList);\n\n\t\t\tif (inputNumList[0] * inputNumList[0] + inputNumList[1]\n\t\t\t\t\t* inputNumList[1] == inputNumList[2] * inputNumList[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tint[] inputNumList = new int[3];\n\n\t\t\tinputNumList[0] = sc.nextInt();\n\t\t\tinputNumList[1] = sc.nextInt();\n\t\t\tinputNumList[2] = sc.nextInt();\n\n\t\t\t// ?????????????????????inputNumList[2]?????§?????????????????£?????????\n\t\t\tArrays.sort(inputNumList);\n\n\t\t\tif (inputNumList[0] * inputNumList[0] + inputNumList[1]\n\t\t\t\t\t* inputNumList[1] == inputNumList[2] * inputNumList[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"int[] inputNumList = new int[3];",
"inputNumList",
"new int[3]",
"3",
"inputNumList[0] = sc.nextInt()",
"inputNumList[0]",
"inputNumList",
"0",
"sc.nextInt()",
"sc.nextInt",
"sc",
"inputNumList[1] = sc.nextInt()",
"inputNumList[1]",
"inputNumList",
"1",
"sc.nextInt()",
"sc.nextInt",
"sc",
"inputNumList[2] = sc.nextInt()",
"inputNumList[2]",
"inputNumList",
"2",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Arrays.sort(inputNumList)",
"Arrays.sort",
"Arrays",
"inputNumList",
"if (inputNumList[0] * inputNumList[0] + inputNumList[1]\n\t\t\t\t\t* inputNumList[1] == inputNumList[2] * inputNumList[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"inputNumList[0] * inputNumList[0] + inputNumList[1]\n\t\t\t\t\t* inputNumList[1] == inputNumList[2] * inputNumList[2]",
"inputNumList[0] * inputNumList[0] + inputNumList[1]\n\t\t\t\t\t* inputNumList[1]",
"inputNumList[0] * inputNumList[0]",
"inputNumList[0]",
"inputNumList",
"0",
"inputNumList[0]",
"inputNumList",
"0",
"inputNumList[1]\n\t\t\t\t\t* inputNumList[1]",
"inputNumList[1]",
"inputNumList",
"1",
"inputNumList[1]",
"inputNumList",
"1",
"inputNumList[2] * inputNumList[2]",
"inputNumList[2]",
"inputNumList",
"2",
"inputNumList[2]",
"inputNumList",
"2",
"{\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ???????????????????????°\n\t\tint num = sc.nextInt();\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tint[] inputNumList = new int[3];\n\n\t\t\tinputNumList[0] = sc.nextInt();\n\t\t\tinputNumList[1] = sc.nextInt();\n\t\t\tinputNumList[2] = sc.nextInt();\n\n\t\t\t// ?????????????????????inputNumList[2]?????§?????????????????£?????????\n\t\t\tArrays.sort(inputNumList);\n\n\t\t\tif (inputNumList[0] * inputNumList[0] + inputNumList[1]\n\t\t\t\t\t* inputNumList[1] == inputNumList[2] * inputNumList[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\t// ???????????????????????°\n\t\tint num = sc.nextInt();\n\n\t\tfor (int i = 0; i < num; i++) {\n\t\t\tint[] inputNumList = new int[3];\n\n\t\t\tinputNumList[0] = sc.nextInt();\n\t\t\tinputNumList[1] = sc.nextInt();\n\t\t\tinputNumList[2] = sc.nextInt();\n\n\t\t\t// ?????????????????????inputNumList[2]?????§?????????????????£?????????\n\t\t\tArrays.sort(inputNumList);\n\n\t\t\tif (inputNumList[0] * inputNumList[0] + inputNumList[1]\n\t\t\t\t\t* inputNumList[1] == inputNumList[2] * inputNumList[2]) {\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);
// ???????????????????????°
int num = sc.nextInt();
for (int i = 0; i < num; i++) {
int[] inputNumList = new int[3];
inputNumList[0] = sc.nextInt();
inputNumList[1] = sc.nextInt();
inputNumList[2] = sc.nextInt();
// ?????????????????????inputNumList[2]?????§?????????????????£?????????
Arrays.sort(inputNumList);
if (inputNumList[0] * inputNumList[0] + inputNumList[1]
* inputNumList[1] == inputNumList[2] * inputNumList[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,
41,
13,
41,
13,
41,
13,
20,
17,
11,
1,
0,
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,
13,
4,
18,
13,
18,
13,
17,
18,
13,
17,
0,
13,
4,
18,
13,
13,
18,
13,
17,
14,
2,
13,
18,
13,
17,
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,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
14,
2,
13,
18,
13,
17,
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,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
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
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
37,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
37,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
95,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
107,
109
],
[
86,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
86,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
79,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
127,
129
],
[
124,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
137,
139
],
[
132,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
145,
146
],
[
145,
147
],
[
140,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
152,
154
],
[
131,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
131,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
124,
169
],
[
169,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
173,
174
],
[
173,
175
],
[
172,
176
],
[
176,
177
],
[
176,
178
],
[
171,
179
],
[
179,
180
],
[
180,
181
],
[
181,
182
],
[
181,
183
],
[
180,
184
],
[
184,
185
],
[
184,
186
],
[
179,
187
],
[
187,
188
],
[
188,
189
],
[
188,
190
],
[
187,
191
],
[
191,
192
],
[
191,
193
],
[
170,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
197,
199
],
[
195,
200
],
[
170,
201
],
[
201,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
204,
206
],
[
202,
207
],
[
6,
208
],
[
208,
209
]
] | [
"import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint i,maxSide;\n\t\tint[] side = new int[3];\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\tside[0] = scan.nextInt();\n\t\t\tside[1] = scan.nextInt();\n\t\t\tside[2] = scan.nextInt();\n\t\t\t\n\t\t\tmaxSide = Math.max(side[0],side[1]);\n\t\t\tmaxSide = Math.max(maxSide,side[2]);\n\t\t\t\n\t\t\tif(maxSide == side[0]){\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}else if(maxSide == side[1]){\n\t\t\t\tif(side[1]*side[1] == side[0]*side[0]+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}else{\n\t\t\t\tif(side[2]*side[2] == side[0]*side[0]+side[1]*side[1]){\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}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint i,maxSide;\n\t\tint[] side = new int[3];\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\tside[0] = scan.nextInt();\n\t\t\tside[1] = scan.nextInt();\n\t\t\tside[2] = scan.nextInt();\n\t\t\t\n\t\t\tmaxSide = Math.max(side[0],side[1]);\n\t\t\tmaxSide = Math.max(maxSide,side[2]);\n\t\t\t\n\t\t\tif(maxSide == side[0]){\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}else if(maxSide == side[1]){\n\t\t\t\tif(side[1]*side[1] == side[0]*side[0]+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}else{\n\t\t\t\tif(side[2]*side[2] == side[0]*side[0]+side[1]*side[1]){\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}\n}",
"Main",
"public static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint i,maxSide;\n\t\tint[] side = new int[3];\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\tside[0] = scan.nextInt();\n\t\t\tside[1] = scan.nextInt();\n\t\t\tside[2] = scan.nextInt();\n\t\t\t\n\t\t\tmaxSide = Math.max(side[0],side[1]);\n\t\t\tmaxSide = Math.max(maxSide,side[2]);\n\t\t\t\n\t\t\tif(maxSide == side[0]){\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}else if(maxSide == side[1]){\n\t\t\t\tif(side[1]*side[1] == side[0]*side[0]+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}else{\n\t\t\t\tif(side[2]*side[2] == side[0]*side[0]+side[1]*side[1]){\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}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint i,maxSide;\n\t\tint[] side = new int[3];\n\t\t\n\t\tfor(i=0;i<num;i++){\n\t\t\tside[0] = scan.nextInt();\n\t\t\tside[1] = scan.nextInt();\n\t\t\tside[2] = scan.nextInt();\n\t\t\t\n\t\t\tmaxSide = Math.max(side[0],side[1]);\n\t\t\tmaxSide = Math.max(maxSide,side[2]);\n\t\t\t\n\t\t\tif(maxSide == side[0]){\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}else if(maxSide == side[1]){\n\t\t\t\tif(side[1]*side[1] == side[0]*side[0]+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}else{\n\t\t\t\tif(side[2]*side[2] == side[0]*side[0]+side[1]*side[1]){\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}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int num = scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int i",
"i",
"maxSide;",
"maxSide",
"int[] side = new int[3];",
"side",
"new int[3]",
"3",
"for(i=0;i<num;i++){\n\t\t\tside[0] = scan.nextInt();\n\t\t\tside[1] = scan.nextInt();\n\t\t\tside[2] = scan.nextInt();\n\t\t\t\n\t\t\tmaxSide = Math.max(side[0],side[1]);\n\t\t\tmaxSide = Math.max(maxSide,side[2]);\n\t\t\t\n\t\t\tif(maxSide == side[0]){\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}else if(maxSide == side[1]){\n\t\t\t\tif(side[1]*side[1] == side[0]*side[0]+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}else{\n\t\t\t\tif(side[2]*side[2] == side[0]*side[0]+side[1]*side[1]){\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}",
"i=0;",
"i=0",
"i",
"0",
"i<num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tside[0] = scan.nextInt();\n\t\t\tside[1] = scan.nextInt();\n\t\t\tside[2] = scan.nextInt();\n\t\t\t\n\t\t\tmaxSide = Math.max(side[0],side[1]);\n\t\t\tmaxSide = Math.max(maxSide,side[2]);\n\t\t\t\n\t\t\tif(maxSide == side[0]){\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}else if(maxSide == side[1]){\n\t\t\t\tif(side[1]*side[1] == side[0]*side[0]+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}else{\n\t\t\t\tif(side[2]*side[2] == side[0]*side[0]+side[1]*side[1]){\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\tside[0] = scan.nextInt();\n\t\t\tside[1] = scan.nextInt();\n\t\t\tside[2] = scan.nextInt();\n\t\t\t\n\t\t\tmaxSide = Math.max(side[0],side[1]);\n\t\t\tmaxSide = Math.max(maxSide,side[2]);\n\t\t\t\n\t\t\tif(maxSide == side[0]){\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}else if(maxSide == side[1]){\n\t\t\t\tif(side[1]*side[1] == side[0]*side[0]+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}else{\n\t\t\t\tif(side[2]*side[2] == side[0]*side[0]+side[1]*side[1]){\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}",
"side[0] = scan.nextInt()",
"side[0]",
"side",
"0",
"scan.nextInt()",
"scan.nextInt",
"scan",
"side[1] = scan.nextInt()",
"side[1]",
"side",
"1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"side[2] = scan.nextInt()",
"side[2]",
"side",
"2",
"scan.nextInt()",
"scan.nextInt",
"scan",
"maxSide = Math.max(side[0],side[1])",
"maxSide",
"Math.max(side[0],side[1])",
"Math.max",
"Math",
"side[0]",
"side",
"0",
"side[1]",
"side",
"1",
"maxSide = Math.max(maxSide,side[2])",
"maxSide",
"Math.max(maxSide,side[2])",
"Math.max",
"Math",
"maxSide",
"side[2]",
"side",
"2",
"if(maxSide == side[0]){\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}else if(maxSide == side[1]){\n\t\t\t\tif(side[1]*side[1] == side[0]*side[0]+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}else{\n\t\t\t\tif(side[2]*side[2] == side[0]*side[0]+side[1]*side[1]){\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}",
"maxSide == side[0]",
"maxSide",
"side[0]",
"side",
"0",
"{\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}",
"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[0]",
"side",
"0",
"side[0]",
"side",
"0",
"side[1]*side[1]+side[2]*side[2]",
"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\"",
"if(maxSide == side[1]){\n\t\t\t\tif(side[1]*side[1] == side[0]*side[0]+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}else{\n\t\t\t\tif(side[2]*side[2] == side[0]*side[0]+side[1]*side[1]){\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}",
"maxSide == side[1]",
"maxSide",
"side[1]",
"side",
"1",
"{\n\t\t\t\tif(side[1]*side[1] == side[0]*side[0]+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}",
"if(side[1]*side[1] == side[0]*side[0]+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[1]*side[1] == side[0]*side[0]+side[2]*side[2]",
"side[1]*side[1]",
"side[1]",
"side",
"1",
"side[1]",
"side",
"1",
"side[0]*side[0]+side[2]*side[2]",
"side[0]*side[0]",
"side[0]",
"side",
"0",
"side[0]",
"side",
"0",
"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\"",
"{\n\t\t\t\tif(side[2]*side[2] == side[0]*side[0]+side[1]*side[1]){\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(side[2]*side[2] == side[0]*side[0]+side[1]*side[1]){\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[2]*side[2] == side[0]*side[0]+side[1]*side[1]",
"side[2]*side[2]",
"side[2]",
"side",
"2",
"side[2]",
"side",
"2",
"side[0]*side[0]+side[1]*side[1]",
"side[0]*side[0]",
"side[0]",
"side",
"0",
"side[0]",
"side",
"0",
"side[1]*side[1]",
"side[1]",
"side",
"1",
"side[1]",
"side",
"1",
"{\n\t\t\t\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"
] | import java.util.Scanner;
class Main{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int num = scan.nextInt();
int i,maxSide;
int[] side = new int[3];
for(i=0;i<num;i++){
side[0] = scan.nextInt();
side[1] = scan.nextInt();
side[2] = scan.nextInt();
maxSide = Math.max(side[0],side[1]);
maxSide = Math.max(maxSide,side[2]);
if(maxSide == side[0]){
if(side[0]*side[0] == side[1]*side[1]+side[2]*side[2]){
System.out.println("YES");
}else{
System.out.println("NO");
}
}else if(maxSide == side[1]){
if(side[1]*side[1] == side[0]*side[0]+side[2]*side[2]){
System.out.println("YES");
}else{
System.out.println("NO");
}
}else{
if(side[2]*side[2] == side[0]*side[0]+side[1]*side[1]){
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
4,
13,
13,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
2,
2,
2,
13,
13,
13,
17,
17,
2,
2,
2,
2,
13,
13,
13,
17,
17,
30,
29,
17,
14,
2,
2,
13,
13,
2,
13,
13,
30,
29,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
14,
2,
13,
13,
30,
29,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
29,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
152,
5
],
[
152,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
29,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
46,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
45,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
6,
65
],
[
65,
66
],
[
152,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
72,
80
],
[
71,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
81,
89
],
[
70,
90
],
[
90,
91
],
[
91,
92
],
[
69,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
111,
113
],
[
93,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
125,
129
],
[
129,
130
],
[
129,
131
],
[
115,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
142,
144
],
[
67,
145
],
[
145,
146
],
[
67,
147
],
[
147,
148
],
[
67,
149
],
[
149,
150
],
[
0,
151
],
[
151,
152
],
[
151,
153
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static boolean isTriangle(int a, int b, int c) {\n\t\tif ((a + b + c) % 4 != 0 && (a + b + c) % 12 != 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static boolean isTriangle(int a, int b, int c) {\n\t\tif ((a + b + c) % 4 != 0 && (a + b + c) % 12 != 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int loopNum = scanner.nextInt();",
"loopNum",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < loopNum",
"i",
"loopNum",
"i++",
"i++",
"i",
"{\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"int a = scanner.nextInt();",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int b = scanner.nextInt();",
"b",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int c = scanner.nextInt();",
"c",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"if (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"isTriangle(a, b, c)",
"isTriangle",
"a",
"b",
"c",
"{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args",
"private static boolean isTriangle(int a, int b, int c) {\n\t\tif ((a + b + c) % 4 != 0 && (a + b + c) % 12 != 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}",
"isTriangle",
"{\n\t\tif ((a + b + c) % 4 != 0 && (a + b + c) % 12 != 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}",
"if ((a + b + c) % 4 != 0 && (a + b + c) % 12 != 0) {\n\t\t\treturn false;\n\t\t}",
"(a + b + c) % 4 != 0 && (a + b + c) % 12 != 0",
"(a + b + c) % 4 != 0",
"(a + b + c) % 4",
"(a + b + c)",
"a + b + c",
"a",
"b",
"c",
"4",
"0",
"(a + b + c) % 12 != 0",
"(a + b + c) % 12",
"(a + b + c)",
"a + b + c",
"a",
"b",
"c",
"12",
"0",
"{\n\t\t\treturn false;\n\t\t}",
"return false;",
"false",
"if (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}",
"a >= b && a >= c",
"a >= b",
"a",
"b",
"a >= c",
"a",
"c",
"{\n\t\t\treturn a * a == b * b + c * c;\n\t\t}",
"return a * a == b * b + c * c;",
"a * a == b * b + c * c",
"a * a",
"a",
"a",
"b * b + c * c",
"b * b",
"b",
"b",
"c * c",
"c",
"c",
"{\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}",
"if (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}",
"b >= c",
"b",
"c",
"{\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t}",
"return b * b == a * a + c * c;",
"b * b == a * a + c * c",
"b * b",
"b",
"b",
"a * a + c * c",
"a * a",
"a",
"a",
"c * c",
"c",
"c",
"{\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}",
"return c * c == a * a + b * b;",
"c * c == a * a + b * b",
"c * c",
"c",
"c",
"a * a + b * b",
"a * a",
"a",
"a",
"b * b",
"b",
"b",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static boolean isTriangle(int a, int b, int c) {\n\t\tif ((a + b + c) % 4 != 0 && (a + b + c) % 12 != 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\n\t\tint loopNum = scanner.nextInt();\n\t\tfor (int i = 0; i < loopNum; i++) {\n\t\t\tint a = scanner.nextInt();\n\t\t\tint b = scanner.nextInt();\n\t\t\tint c = scanner.nextInt();\n\n\t\t\tif (isTriangle(a, b, c)) {\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t} else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n\tprivate static boolean isTriangle(int a, int b, int c) {\n\t\tif ((a + b + c) % 4 != 0 && (a + b + c) % 12 != 0) {\n\t\t\treturn false;\n\t\t}\n\n\t\tif (a >= b && a >= c) {\n\t\t\treturn a * a == b * b + c * c;\n\t\t} else {\n\t\t\tif (b >= c) {\n\t\t\t\treturn b * b == a * a + c * c;\n\t\t\t} else {\n\t\t\t\treturn c * c == a * a + b * b;\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int loopNum = scanner.nextInt();
for (int i = 0; i < loopNum; i++) {
int a = scanner.nextInt();
int b = scanner.nextInt();
int c = scanner.nextInt();
if (isTriangle(a, b, c)) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
private static boolean isTriangle(int a, int b, int c) {
if ((a + b + c) % 4 != 0 && (a + b + c) % 12 != 0) {
return false;
}
if (a >= b && a >= c) {
return a * a == b * b + c * c;
} else {
if (b >= c) {
return b * b == a * a + c * c;
} else {
return c * c == a * a + b * b;
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
13,
17,
30,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
4,
18,
13,
17,
4,
18,
13,
17,
2,
2,
4,
18,
13,
17,
4,
18,
13,
17,
2,
4,
18,
13,
17,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
40,
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
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
40,
47
],
[
47,
48
],
[
48,
49
],
[
40,
50
],
[
50,
51
],
[
51,
52
],
[
36,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
36,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
60,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
70,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
80,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
59,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
59,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
36,
103
],
[
103,
104
],
[
21,
105
],
[
105,
106
]
] | [
"import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Comparator;\nimport java.util.List;\nimport java.util.Scanner;\n\nclass Main {\n\tstatic List<Integer> list = new ArrayList<Integer>();\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\twhile (n != 0) {\n\t\t\tlist.clear();\n\t\t\tCollections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());\n\t\t\tlist.sort(Comparator.reverseOrder());\n\t\t\tif ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(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\tn--;\n\t\t}\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tstatic List<Integer> list = new ArrayList<Integer>();\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\twhile (n != 0) {\n\t\t\tlist.clear();\n\t\t\tCollections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());\n\t\t\tlist.sort(Comparator.reverseOrder());\n\t\t\tif ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(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\tn--;\n\t\t}\n\t}\n}",
"Main",
"static List<Integer> list = new ArrayList<Integer>();",
"list",
"new ArrayList<Integer>()",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\twhile (n != 0) {\n\t\t\tlist.clear();\n\t\t\tCollections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());\n\t\t\tlist.sort(Comparator.reverseOrder());\n\t\t\tif ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(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\tn--;\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\twhile (n != 0) {\n\t\t\tlist.clear();\n\t\t\tCollections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());\n\t\t\tlist.sort(Comparator.reverseOrder());\n\t\t\tif ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(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\tn--;\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"while (n != 0) {\n\t\t\tlist.clear();\n\t\t\tCollections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());\n\t\t\tlist.sort(Comparator.reverseOrder());\n\t\t\tif ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(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\tn--;\n\t\t}",
"n != 0",
"n",
"0",
"{\n\t\t\tlist.clear();\n\t\t\tCollections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());\n\t\t\tlist.sort(Comparator.reverseOrder());\n\t\t\tif ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(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\tn--;\n\t\t}",
"list.clear()",
"list.clear",
"list",
"Collections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt())",
"Collections.addAll",
"Collections",
"list",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.nextInt()",
"scan.nextInt",
"scan",
"list.sort(Comparator.reverseOrder())",
"list.sort",
"list",
"Comparator.reverseOrder()",
"Comparator.reverseOrder",
"Comparator",
"if ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(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}",
"(list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(2)))",
"(list.get(0) * list.get(0))",
"list.get(0)",
"list.get",
"list",
"0",
"list.get(0)",
"list.get",
"list",
"0",
"((list.get(1) * list.get(1)) + (list.get(2) * list.get(2)))",
"(list.get(1) * list.get(1))",
"list.get(1)",
"list.get",
"list",
"1",
"list.get(1)",
"list.get",
"list",
"1",
"(list.get(2) * list.get(2))",
"list.get(2)",
"list.get",
"list",
"2",
"list.get(2)",
"list.get",
"list",
"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\"",
"n--",
"n",
"String[] args",
"args"
] | import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.List;
import java.util.Scanner;
class Main {
static List<Integer> list = new ArrayList<Integer>();
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
while (n != 0) {
list.clear();
Collections.addAll(list, scan.nextInt(),scan.nextInt(),scan.nextInt());
list.sort(Comparator.reverseOrder());
if ((list.get(0) * list.get(0)) == ((list.get(1) * list.get(1)) + (list.get(2) * list.get(2)))) {
System.out.println("YES");
}else{
System.out.println("NO");
}
n--;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
20,
13,
42,
2,
2,
13,
13,
2,
0,
13,
4,
18,
13,
17,
30,
14,
2,
13,
17,
30,
0,
13,
4,
18,
13,
13,
30,
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,
0,
18,
13,
2,
13,
17,
4,
13,
13,
40,
13,
14,
2,
13,
17,
30,
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,
4,
18,
18,
18,
13,
13,
13,
13,
14,
2,
2,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
30,
29,
17,
30,
29,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
180,
11
],
[
180,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
14,
27
],
[
27,
28
],
[
27,
29
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
36,
42
],
[
31,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
44,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
55,
63
],
[
63,
64
],
[
63,
65
],
[
55,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
74,
76
],
[
55,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
84,
86
],
[
55,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
55,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
97,
103
],
[
103,
104
],
[
103,
105
],
[
43,
106
],
[
106,
107
],
[
14,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
108,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
118,
119
],
[
118,
120
],
[
113,
121
],
[
121,
122
],
[
122,
123
],
[
113,
124
],
[
125,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
126,
131
],
[
131,
132
],
[
131,
133
],
[
12,
134
],
[
134,
135
],
[
180,
136
],
[
136,
137
],
[
136,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
141,
145
],
[
139,
146
],
[
138,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
154,
156
],
[
149,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
161,
163
],
[
148,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
164,
168
],
[
168,
169
],
[
168,
170
],
[
147,
171
],
[
171,
172
],
[
172,
173
],
[
147,
174
],
[
174,
175
],
[
175,
176
],
[
136,
177
],
[
177,
178
],
[
0,
179
],
[
179,
180
],
[
179,
181
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] a) throws IOException{\n\n\t\tString strLine =\"\";\n\t\tBufferedReader stdReader =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\n\t\tint i = 0;\n\t\tint max = 1000;\n\t\tString[] result = new String [max];\n\n\t\twhile ( i <= max && ((strLine = stdReader.readLine()) != null) ){\n\n\t\t\tif(i == 0){\n\t\t\t\tmax = Integer.parseInt(strLine);\n\n\t\t\t}else{\n\t\t\t\t//??????????????§?????????\n\t\t\t\tString[] temp = strLine.split(\" \",0);\n\t\t\t\tint[] tempInt = new int[3];\n\t\t\t\ttempInt[0] = Integer.parseInt(temp[0]);\n\t\t\t\ttempInt[1] = Integer.parseInt(temp[1]);\n\t\t\t\ttempInt[2] = Integer.parseInt(temp[2]);\n\n\n\t\t\t\t//????§???¢???????????????????????????????????????result???????´?\n\t\t\t\tresult[i-1]=calc(tempInt);\n\t\t\t\t}\n\n\t\t\ti++;\n\n\t\t}\n\n\n\t\t//?????????????????????\n\t\tif(i > 1){\n\t\t\tfor(int j = 0; j < max; j++){\n\t\t\t\tSystem.out.println(result[j]);\n\t\t\t}\n\t\t}\n\n\t}\n\n\tpublic static String calc(int[] tempInt){\n\n\t\tjava.util.Arrays.sort(tempInt);\n\n\t\tif((tempInt[0]*tempInt[0])+(tempInt[1]*tempInt[1])==(tempInt[2]*tempInt[2])){\n\n\t\t\treturn \"YES\";\n\t\t}else{\n\t\t\treturn \"NO\";\n\t\t}\n\n\n\t}\n\n\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] a) throws IOException{\n\n\t\tString strLine =\"\";\n\t\tBufferedReader stdReader =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\n\t\tint i = 0;\n\t\tint max = 1000;\n\t\tString[] result = new String [max];\n\n\t\twhile ( i <= max && ((strLine = stdReader.readLine()) != null) ){\n\n\t\t\tif(i == 0){\n\t\t\t\tmax = Integer.parseInt(strLine);\n\n\t\t\t}else{\n\t\t\t\t//??????????????§?????????\n\t\t\t\tString[] temp = strLine.split(\" \",0);\n\t\t\t\tint[] tempInt = new int[3];\n\t\t\t\ttempInt[0] = Integer.parseInt(temp[0]);\n\t\t\t\ttempInt[1] = Integer.parseInt(temp[1]);\n\t\t\t\ttempInt[2] = Integer.parseInt(temp[2]);\n\n\n\t\t\t\t//????§???¢???????????????????????????????????????result???????´?\n\t\t\t\tresult[i-1]=calc(tempInt);\n\t\t\t\t}\n\n\t\t\ti++;\n\n\t\t}\n\n\n\t\t//?????????????????????\n\t\tif(i > 1){\n\t\t\tfor(int j = 0; j < max; j++){\n\t\t\t\tSystem.out.println(result[j]);\n\t\t\t}\n\t\t}\n\n\t}\n\n\tpublic static String calc(int[] tempInt){\n\n\t\tjava.util.Arrays.sort(tempInt);\n\n\t\tif((tempInt[0]*tempInt[0])+(tempInt[1]*tempInt[1])==(tempInt[2]*tempInt[2])){\n\n\t\t\treturn \"YES\";\n\t\t}else{\n\t\t\treturn \"NO\";\n\t\t}\n\n\n\t}\n\n\n\n}",
"Main",
"public static void main(String[] a) throws IOException{\n\n\t\tString strLine =\"\";\n\t\tBufferedReader stdReader =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\n\t\tint i = 0;\n\t\tint max = 1000;\n\t\tString[] result = new String [max];\n\n\t\twhile ( i <= max && ((strLine = stdReader.readLine()) != null) ){\n\n\t\t\tif(i == 0){\n\t\t\t\tmax = Integer.parseInt(strLine);\n\n\t\t\t}else{\n\t\t\t\t//??????????????§?????????\n\t\t\t\tString[] temp = strLine.split(\" \",0);\n\t\t\t\tint[] tempInt = new int[3];\n\t\t\t\ttempInt[0] = Integer.parseInt(temp[0]);\n\t\t\t\ttempInt[1] = Integer.parseInt(temp[1]);\n\t\t\t\ttempInt[2] = Integer.parseInt(temp[2]);\n\n\n\t\t\t\t//????§???¢???????????????????????????????????????result???????´?\n\t\t\t\tresult[i-1]=calc(tempInt);\n\t\t\t\t}\n\n\t\t\ti++;\n\n\t\t}\n\n\n\t\t//?????????????????????\n\t\tif(i > 1){\n\t\t\tfor(int j = 0; j < max; j++){\n\t\t\t\tSystem.out.println(result[j]);\n\t\t\t}\n\t\t}\n\n\t}",
"main",
"{\n\n\t\tString strLine =\"\";\n\t\tBufferedReader stdReader =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\n\t\tint i = 0;\n\t\tint max = 1000;\n\t\tString[] result = new String [max];\n\n\t\twhile ( i <= max && ((strLine = stdReader.readLine()) != null) ){\n\n\t\t\tif(i == 0){\n\t\t\t\tmax = Integer.parseInt(strLine);\n\n\t\t\t}else{\n\t\t\t\t//??????????????§?????????\n\t\t\t\tString[] temp = strLine.split(\" \",0);\n\t\t\t\tint[] tempInt = new int[3];\n\t\t\t\ttempInt[0] = Integer.parseInt(temp[0]);\n\t\t\t\ttempInt[1] = Integer.parseInt(temp[1]);\n\t\t\t\ttempInt[2] = Integer.parseInt(temp[2]);\n\n\n\t\t\t\t//????§???¢???????????????????????????????????????result???????´?\n\t\t\t\tresult[i-1]=calc(tempInt);\n\t\t\t\t}\n\n\t\t\ti++;\n\n\t\t}\n\n\n\t\t//?????????????????????\n\t\tif(i > 1){\n\t\t\tfor(int j = 0; j < max; j++){\n\t\t\t\tSystem.out.println(result[j]);\n\t\t\t}\n\t\t}\n\n\t}",
"String strLine =\"\";",
"strLine",
"\"\"",
"BufferedReader stdReader =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));",
"stdReader",
"new BufferedReader(new InputStreamReader(System.in))",
"int i = 0;",
"i",
"0",
"int max = 1000;",
"max",
"1000",
"String[] result = new String [max];",
"result",
"new String [max]",
"max",
"while ( i <= max && ((strLine = stdReader.readLine()) != null) ){\n\n\t\t\tif(i == 0){\n\t\t\t\tmax = Integer.parseInt(strLine);\n\n\t\t\t}else{\n\t\t\t\t//??????????????§?????????\n\t\t\t\tString[] temp = strLine.split(\" \",0);\n\t\t\t\tint[] tempInt = new int[3];\n\t\t\t\ttempInt[0] = Integer.parseInt(temp[0]);\n\t\t\t\ttempInt[1] = Integer.parseInt(temp[1]);\n\t\t\t\ttempInt[2] = Integer.parseInt(temp[2]);\n\n\n\t\t\t\t//????§???¢???????????????????????????????????????result???????´?\n\t\t\t\tresult[i-1]=calc(tempInt);\n\t\t\t\t}\n\n\t\t\ti++;\n\n\t\t}",
"i <= max && ((strLine = stdReader.readLine()) != null)",
"i <= max",
"i",
"max",
"((strLine = stdReader.readLine()) != null)",
"(strLine = stdReader.readLine())",
"strLine",
"stdReader.readLine()",
"stdReader.readLine",
"stdReader",
"null",
"{\n\n\t\t\tif(i == 0){\n\t\t\t\tmax = Integer.parseInt(strLine);\n\n\t\t\t}else{\n\t\t\t\t//??????????????§?????????\n\t\t\t\tString[] temp = strLine.split(\" \",0);\n\t\t\t\tint[] tempInt = new int[3];\n\t\t\t\ttempInt[0] = Integer.parseInt(temp[0]);\n\t\t\t\ttempInt[1] = Integer.parseInt(temp[1]);\n\t\t\t\ttempInt[2] = Integer.parseInt(temp[2]);\n\n\n\t\t\t\t//????§???¢???????????????????????????????????????result???????´?\n\t\t\t\tresult[i-1]=calc(tempInt);\n\t\t\t\t}\n\n\t\t\ti++;\n\n\t\t}",
"if(i == 0){\n\t\t\t\tmax = Integer.parseInt(strLine);\n\n\t\t\t}else{\n\t\t\t\t//??????????????§?????????\n\t\t\t\tString[] temp = strLine.split(\" \",0);\n\t\t\t\tint[] tempInt = new int[3];\n\t\t\t\ttempInt[0] = Integer.parseInt(temp[0]);\n\t\t\t\ttempInt[1] = Integer.parseInt(temp[1]);\n\t\t\t\ttempInt[2] = Integer.parseInt(temp[2]);\n\n\n\t\t\t\t//????§???¢???????????????????????????????????????result???????´?\n\t\t\t\tresult[i-1]=calc(tempInt);\n\t\t\t\t}",
"i == 0",
"i",
"0",
"{\n\t\t\t\tmax = Integer.parseInt(strLine);\n\n\t\t\t}",
"max = Integer.parseInt(strLine)",
"max",
"Integer.parseInt(strLine)",
"Integer.parseInt",
"Integer",
"strLine",
"{\n\t\t\t\t//??????????????§?????????\n\t\t\t\tString[] temp = strLine.split(\" \",0);\n\t\t\t\tint[] tempInt = new int[3];\n\t\t\t\ttempInt[0] = Integer.parseInt(temp[0]);\n\t\t\t\ttempInt[1] = Integer.parseInt(temp[1]);\n\t\t\t\ttempInt[2] = Integer.parseInt(temp[2]);\n\n\n\t\t\t\t//????§???¢???????????????????????????????????????result???????´?\n\t\t\t\tresult[i-1]=calc(tempInt);\n\t\t\t\t}",
"String[] temp = strLine.split(\" \",0);",
"temp",
"strLine.split(\" \",0)",
"strLine.split",
"strLine",
"\" \"",
"0",
"int[] tempInt = new int[3];",
"tempInt",
"new int[3]",
"3",
"tempInt[0] = Integer.parseInt(temp[0])",
"tempInt[0]",
"tempInt",
"0",
"Integer.parseInt(temp[0])",
"Integer.parseInt",
"Integer",
"temp[0]",
"temp",
"0",
"tempInt[1] = Integer.parseInt(temp[1])",
"tempInt[1]",
"tempInt",
"1",
"Integer.parseInt(temp[1])",
"Integer.parseInt",
"Integer",
"temp[1]",
"temp",
"1",
"tempInt[2] = Integer.parseInt(temp[2])",
"tempInt[2]",
"tempInt",
"2",
"Integer.parseInt(temp[2])",
"Integer.parseInt",
"Integer",
"temp[2]",
"temp",
"2",
"result[i-1]=calc(tempInt)",
"result[i-1]",
"result",
"i-1",
"i",
"1",
"calc(tempInt)",
"calc",
"tempInt",
"i++",
"i",
"if(i > 1){\n\t\t\tfor(int j = 0; j < max; j++){\n\t\t\t\tSystem.out.println(result[j]);\n\t\t\t}\n\t\t}",
"i > 1",
"i",
"1",
"{\n\t\t\tfor(int j = 0; j < max; j++){\n\t\t\t\tSystem.out.println(result[j]);\n\t\t\t}\n\t\t}",
"for(int j = 0; j < max; j++){\n\t\t\t\tSystem.out.println(result[j]);\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < max",
"j",
"max",
"j++",
"j++",
"j",
"{\n\t\t\t\tSystem.out.println(result[j]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println(result[j]);\n\t\t\t}",
"System.out.println(result[j])",
"System.out.println",
"System.out",
"System",
"System.out",
"result[j]",
"result",
"j",
"String[] a",
"a",
"public static String calc(int[] tempInt){\n\n\t\tjava.util.Arrays.sort(tempInt);\n\n\t\tif((tempInt[0]*tempInt[0])+(tempInt[1]*tempInt[1])==(tempInt[2]*tempInt[2])){\n\n\t\t\treturn \"YES\";\n\t\t}else{\n\t\t\treturn \"NO\";\n\t\t}\n\n\n\t}",
"calc",
"{\n\n\t\tjava.util.Arrays.sort(tempInt);\n\n\t\tif((tempInt[0]*tempInt[0])+(tempInt[1]*tempInt[1])==(tempInt[2]*tempInt[2])){\n\n\t\t\treturn \"YES\";\n\t\t}else{\n\t\t\treturn \"NO\";\n\t\t}\n\n\n\t}",
"java.util.Arrays.sort(tempInt)",
"java.util.Arrays.sort",
"java.util.Arrays",
"java.util",
"java",
"java.util",
"java.util.Arrays",
"tempInt",
"if((tempInt[0]*tempInt[0])+(tempInt[1]*tempInt[1])==(tempInt[2]*tempInt[2])){\n\n\t\t\treturn \"YES\";\n\t\t}else{\n\t\t\treturn \"NO\";\n\t\t}",
"(tempInt[0]*tempInt[0])+(tempInt[1]*tempInt[1])==(tempInt[2]*tempInt[2])",
"(tempInt[0]*tempInt[0])+(tempInt[1]*tempInt[1])",
"(tempInt[0]*tempInt[0])",
"tempInt[0]",
"tempInt",
"0",
"tempInt[0]",
"tempInt",
"0",
"(tempInt[1]*tempInt[1])",
"tempInt[1]",
"tempInt",
"1",
"tempInt[1]",
"tempInt",
"1",
"(tempInt[2]*tempInt[2])",
"tempInt[2]",
"tempInt",
"2",
"tempInt[2]",
"tempInt",
"2",
"{\n\n\t\t\treturn \"YES\";\n\t\t}",
"return \"YES\";",
"\"YES\"",
"{\n\t\t\treturn \"NO\";\n\t\t}",
"return \"NO\";",
"\"NO\"",
"int[] tempInt",
"tempInt",
"public class Main {\n\n\tpublic static void main(String[] a) throws IOException{\n\n\t\tString strLine =\"\";\n\t\tBufferedReader stdReader =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\n\t\tint i = 0;\n\t\tint max = 1000;\n\t\tString[] result = new String [max];\n\n\t\twhile ( i <= max && ((strLine = stdReader.readLine()) != null) ){\n\n\t\t\tif(i == 0){\n\t\t\t\tmax = Integer.parseInt(strLine);\n\n\t\t\t}else{\n\t\t\t\t//??????????????§?????????\n\t\t\t\tString[] temp = strLine.split(\" \",0);\n\t\t\t\tint[] tempInt = new int[3];\n\t\t\t\ttempInt[0] = Integer.parseInt(temp[0]);\n\t\t\t\ttempInt[1] = Integer.parseInt(temp[1]);\n\t\t\t\ttempInt[2] = Integer.parseInt(temp[2]);\n\n\n\t\t\t\t//????§???¢???????????????????????????????????????result???????´?\n\t\t\t\tresult[i-1]=calc(tempInt);\n\t\t\t\t}\n\n\t\t\ti++;\n\n\t\t}\n\n\n\t\t//?????????????????????\n\t\tif(i > 1){\n\t\t\tfor(int j = 0; j < max; j++){\n\t\t\t\tSystem.out.println(result[j]);\n\t\t\t}\n\t\t}\n\n\t}\n\n\tpublic static String calc(int[] tempInt){\n\n\t\tjava.util.Arrays.sort(tempInt);\n\n\t\tif((tempInt[0]*tempInt[0])+(tempInt[1]*tempInt[1])==(tempInt[2]*tempInt[2])){\n\n\t\t\treturn \"YES\";\n\t\t}else{\n\t\t\treturn \"NO\";\n\t\t}\n\n\n\t}\n\n\n\n}",
"public class Main {\n\n\tpublic static void main(String[] a) throws IOException{\n\n\t\tString strLine =\"\";\n\t\tBufferedReader stdReader =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\n\t\tint i = 0;\n\t\tint max = 1000;\n\t\tString[] result = new String [max];\n\n\t\twhile ( i <= max && ((strLine = stdReader.readLine()) != null) ){\n\n\t\t\tif(i == 0){\n\t\t\t\tmax = Integer.parseInt(strLine);\n\n\t\t\t}else{\n\t\t\t\t//??????????????§?????????\n\t\t\t\tString[] temp = strLine.split(\" \",0);\n\t\t\t\tint[] tempInt = new int[3];\n\t\t\t\ttempInt[0] = Integer.parseInt(temp[0]);\n\t\t\t\ttempInt[1] = Integer.parseInt(temp[1]);\n\t\t\t\ttempInt[2] = Integer.parseInt(temp[2]);\n\n\n\t\t\t\t//????§???¢???????????????????????????????????????result???????´?\n\t\t\t\tresult[i-1]=calc(tempInt);\n\t\t\t\t}\n\n\t\t\ti++;\n\n\t\t}\n\n\n\t\t//?????????????????????\n\t\tif(i > 1){\n\t\t\tfor(int j = 0; j < max; j++){\n\t\t\t\tSystem.out.println(result[j]);\n\t\t\t}\n\t\t}\n\n\t}\n\n\tpublic static String calc(int[] tempInt){\n\n\t\tjava.util.Arrays.sort(tempInt);\n\n\t\tif((tempInt[0]*tempInt[0])+(tempInt[1]*tempInt[1])==(tempInt[2]*tempInt[2])){\n\n\t\t\treturn \"YES\";\n\t\t}else{\n\t\t\treturn \"NO\";\n\t\t}\n\n\n\t}\n\n\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] a) throws IOException{
String strLine ="";
BufferedReader stdReader =
new BufferedReader(new InputStreamReader(System.in));
int i = 0;
int max = 1000;
String[] result = new String [max];
while ( i <= max && ((strLine = stdReader.readLine()) != null) ){
if(i == 0){
max = Integer.parseInt(strLine);
}else{
//??????????????§?????????
String[] temp = strLine.split(" ",0);
int[] tempInt = new int[3];
tempInt[0] = Integer.parseInt(temp[0]);
tempInt[1] = Integer.parseInt(temp[1]);
tempInt[2] = Integer.parseInt(temp[2]);
//????§???¢???????????????????????????????????????result???????´?
result[i-1]=calc(tempInt);
}
i++;
}
//?????????????????????
if(i > 1){
for(int j = 0; j < max; j++){
System.out.println(result[j]);
}
}
}
public static String calc(int[] tempInt){
java.util.Arrays.sort(tempInt);
if((tempInt[0]*tempInt[0])+(tempInt[1]*tempInt[1])==(tempInt[2]*tempInt[2])){
return "YES";
}else{
return "NO";
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
14,
2,
13,
17,
30,
38,
5,
13,
30,
30,
4,
18,
13,
30,
0,
13,
20,
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,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
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,
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
],
[
132,
8
],
[
132,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
19,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
19,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
43,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
52,
60
],
[
60,
61
],
[
61,
62
],
[
52,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
65,
75
],
[
75,
76
],
[
76,
77
],
[
65,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
64,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
64,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
94,
100
],
[
93,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
92,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
111,
113
],
[
108,
114
],
[
91,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
91,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
9,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = null;\n\t\tint[] triangle = new int[3];\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tint numQ = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < numQ; i++) {\n\t\t\t\tfor (int j = 0; j < triangle.length; j++) {\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\t\tArrays.sort(triangle);\n\t\t\t\t\tif (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {\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}\n\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsc.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\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\n\tpublic static void main(String[] args) {\n\t\tScanner sc = null;\n\t\tint[] triangle = new int[3];\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tint numQ = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < numQ; i++) {\n\t\t\t\tfor (int j = 0; j < triangle.length; j++) {\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\t\tArrays.sort(triangle);\n\t\t\t\t\tif (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {\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}\n\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsc.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = null;\n\t\tint[] triangle = new int[3];\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tint numQ = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < numQ; i++) {\n\t\t\t\tfor (int j = 0; j < triangle.length; j++) {\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\t\tArrays.sort(triangle);\n\t\t\t\t\tif (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {\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}\n\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsc.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = null;\n\t\tint[] triangle = new int[3];\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tint numQ = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < numQ; i++) {\n\t\t\t\tfor (int j = 0; j < triangle.length; j++) {\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\t\tArrays.sort(triangle);\n\t\t\t\t\tif (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {\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}\n\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsc.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"Scanner sc = null;",
"sc",
"null",
"int[] triangle = new int[3];",
"triangle",
"new int[3]",
"3",
"try {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tint numQ = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < numQ; i++) {\n\t\t\t\tfor (int j = 0; j < triangle.length; j++) {\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\t\tArrays.sort(triangle);\n\t\t\t\t\tif (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {\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}\n\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsc.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\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}",
"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\tif (sc != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsc.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if (sc != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsc.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t}",
"sc != null",
"sc",
"null",
"{\n\t\t\t\ttry {\n\t\t\t\t\tsc.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t}",
"try {\n\t\t\t\t\tsc.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}",
"catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}",
"Exception e",
"{\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}",
"{\n\t\t\t\t\tsc.close();\n\t\t\t\t}",
"sc.close()",
"sc.close",
"sc",
"{\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tint numQ = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < numQ; i++) {\n\t\t\t\tfor (int j = 0; j < triangle.length; j++) {\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\t\tArrays.sort(triangle);\n\t\t\t\t\tif (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {\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}\n\n\t\t}",
"sc = new Scanner(System.in)",
"sc",
"new Scanner(System.in)",
"int numQ = sc.nextInt();",
"numQ",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 0; i < numQ; i++) {\n\t\t\t\tfor (int j = 0; j < triangle.length; j++) {\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\t\tArrays.sort(triangle);\n\t\t\t\t\tif (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {\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}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < numQ",
"i",
"numQ",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor (int j = 0; j < triangle.length; j++) {\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\t\tArrays.sort(triangle);\n\t\t\t\t\tif (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {\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}",
"{\n\t\t\t\tfor (int j = 0; j < triangle.length; j++) {\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\t\tArrays.sort(triangle);\n\t\t\t\t\tif (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {\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}",
"for (int j = 0; j < triangle.length; j++) {\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < triangle.length",
"j",
"triangle.length",
"triangle",
"triangle.length",
"j++",
"j++",
"j",
"{\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}",
"{\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}",
"triangle[j] = sc.nextInt()",
"triangle[j]",
"triangle",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Arrays.sort(triangle)",
"Arrays.sort",
"Arrays",
"triangle",
"if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {\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}",
"Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)",
"Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2)",
"Math.pow(triangle[0], 2)",
"Math.pow",
"Math",
"triangle[0]",
"triangle",
"0",
"2",
"Math.pow(triangle[1], 2)",
"Math.pow",
"Math",
"triangle[1]",
"triangle",
"1",
"2",
"Math.pow(triangle[2], 2)",
"Math.pow",
"Math",
"triangle[2]",
"triangle",
"2",
"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\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = null;\n\t\tint[] triangle = new int[3];\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tint numQ = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < numQ; i++) {\n\t\t\t\tfor (int j = 0; j < triangle.length; j++) {\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\t\tArrays.sort(triangle);\n\t\t\t\t\tif (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {\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}\n\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsc.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = null;\n\t\tint[] triangle = new int[3];\n\n\t\ttry {\n\t\t\tsc = new Scanner(System.in);\n\n\t\t\tint numQ = sc.nextInt();\n\n\t\t\tfor (int i = 0; i < numQ; i++) {\n\t\t\t\tfor (int j = 0; j < triangle.length; j++) {\n\t\t\t\t\ttriangle[j] = sc.nextInt();\n\t\t\t\t}\n\t\t\t\t\tArrays.sort(triangle);\n\t\t\t\t\tif (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {\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}\n\n\t\t}catch (Exception e) {\n\t\t\tSystem.out.println(e);\n\t\t} finally {\n\t\t\tif (sc != null) {\n\t\t\t\ttry {\n\t\t\t\t\tsc.close();\n\t\t\t\t} catch (Exception e) {\n\t\t\t\t\t// TODO: handle exception\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 {
public static void main(String[] args) {
Scanner sc = null;
int[] triangle = new int[3];
try {
sc = new Scanner(System.in);
int numQ = sc.nextInt();
for (int i = 0; i < numQ; i++) {
for (int j = 0; j < triangle.length; j++) {
triangle[j] = sc.nextInt();
}
Arrays.sort(triangle);
if (Math.pow(triangle[0], 2) + Math.pow(triangle[1], 2) == Math.pow(triangle[2], 2)) {
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}catch (Exception e) {
System.out.println(e);
} finally {
if (sc != null) {
try {
sc.close();
} catch (Exception e) {
// TODO: handle exception
}
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
20,
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,
4,
18,
13,
4,
18,
13,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
4,
18,
13,
14,
2,
4,
18,
13,
4,
18,
13,
17,
17,
2,
4,
18,
13,
4,
18,
13,
17,
17,
4,
18,
13,
4,
18,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
123,
14
],
[
123,
15
],
[
15,
16
],
[
15,
17
],
[
123,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
20,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
41,
61
],
[
61,
62
],
[
61,
63
],
[
41,
64
],
[
64,
65
],
[
65,
66
],
[
18,
67
],
[
67,
68
],
[
123,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
81,
88
],
[
80,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
90,
97
],
[
89,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
98,
105
],
[
79,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
79,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
69,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
] | [
"import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Comparator;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer> side = new ArrayList<Integer>();\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside.add(sc.nextInt());\n\t\t\t\t}\n\t\t\t\tjudgeRightTri(side);\n\t\t\t\tside.clear();\n\t\t\t}\n\t}\n\n\tprivate static void judgeRightTri(ArrayList<Integer> side) {\n\t\tCollections.sort(side, Comparator.reverseOrder());\n\n\t\t\t\tif ( Math.pow(side.get(0), 2) == Math.pow(side.get(1), 2) + Math.pow(side.get(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}\n\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer> side = new ArrayList<Integer>();\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside.add(sc.nextInt());\n\t\t\t\t}\n\t\t\t\tjudgeRightTri(side);\n\t\t\t\tside.clear();\n\t\t\t}\n\t}\n\n\tprivate static void judgeRightTri(ArrayList<Integer> side) {\n\t\tCollections.sort(side, Comparator.reverseOrder());\n\n\t\t\t\tif ( Math.pow(side.get(0), 2) == Math.pow(side.get(1), 2) + Math.pow(side.get(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}\n\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer> side = new ArrayList<Integer>();\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside.add(sc.nextInt());\n\t\t\t\t}\n\t\t\t\tjudgeRightTri(side);\n\t\t\t\tside.clear();\n\t\t\t}\n\t}",
"main",
"{\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer> side = new ArrayList<Integer>();\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside.add(sc.nextInt());\n\t\t\t\t}\n\t\t\t\tjudgeRightTri(side);\n\t\t\t\tside.clear();\n\t\t\t}\n\t}",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"ArrayList<Integer> side = new ArrayList<Integer>();",
"side",
"new ArrayList<Integer>()",
"for (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside.add(sc.nextInt());\n\t\t\t\t}\n\t\t\t\tjudgeRightTri(side);\n\t\t\t\tside.clear();\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside.add(sc.nextInt());\n\t\t\t\t}\n\t\t\t\tjudgeRightTri(side);\n\t\t\t\tside.clear();\n\t\t\t}",
"{\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside.add(sc.nextInt());\n\t\t\t\t}\n\t\t\t\tjudgeRightTri(side);\n\t\t\t\tside.clear();\n\t\t\t}",
"for (int j = 0; j < 3; j++) {\n\t\t\t\t\tside.add(sc.nextInt());\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.add(sc.nextInt());\n\t\t\t\t}",
"{\n\t\t\t\t\tside.add(sc.nextInt());\n\t\t\t\t}",
"side.add(sc.nextInt())",
"side.add",
"side",
"sc.nextInt()",
"sc.nextInt",
"sc",
"judgeRightTri(side)",
"judgeRightTri",
"side",
"side.clear()",
"side.clear",
"side",
"String[] args",
"args",
"private static void judgeRightTri(ArrayList<Integer> side) {\n\t\tCollections.sort(side, Comparator.reverseOrder());\n\n\t\t\t\tif ( Math.pow(side.get(0), 2) == Math.pow(side.get(1), 2) + Math.pow(side.get(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}",
"judgeRightTri",
"{\n\t\tCollections.sort(side, Comparator.reverseOrder());\n\n\t\t\t\tif ( Math.pow(side.get(0), 2) == Math.pow(side.get(1), 2) + Math.pow(side.get(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}",
"Collections.sort(side, Comparator.reverseOrder())",
"Collections.sort",
"Collections",
"side",
"Comparator.reverseOrder()",
"Comparator.reverseOrder",
"Comparator",
"if ( Math.pow(side.get(0), 2) == Math.pow(side.get(1), 2) + Math.pow(side.get(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(side.get(0), 2) == Math.pow(side.get(1), 2) + Math.pow(side.get(2), 2)",
"Math.pow(side.get(0), 2)",
"Math.pow",
"Math",
"side.get(0)",
"side.get",
"side",
"0",
"2",
"Math.pow(side.get(1), 2) + Math.pow(side.get(2), 2)",
"Math.pow(side.get(1), 2)",
"Math.pow",
"Math",
"side.get(1)",
"side.get",
"side",
"1",
"2",
"Math.pow(side.get(2), 2)",
"Math.pow",
"Math",
"side.get(2)",
"side.get",
"side",
"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\"",
"ArrayList<Integer> side",
"side",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer> side = new ArrayList<Integer>();\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside.add(sc.nextInt());\n\t\t\t\t}\n\t\t\t\tjudgeRightTri(side);\n\t\t\t\tside.clear();\n\t\t\t}\n\t}\n\n\tprivate static void judgeRightTri(ArrayList<Integer> side) {\n\t\tCollections.sort(side, Comparator.reverseOrder());\n\n\t\t\t\tif ( Math.pow(side.get(0), 2) == Math.pow(side.get(1), 2) + Math.pow(side.get(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}\n\n}",
"public class Main {\n\n\tstatic Scanner sc = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint n = sc.nextInt();\n\t\tArrayList<Integer> side = new ArrayList<Integer>();\n\n\t\t\tfor (int i = 0; i < n; i++) {\n\t\t\t\tfor (int j = 0; j < 3; j++) {\n\t\t\t\t\tside.add(sc.nextInt());\n\t\t\t\t}\n\t\t\t\tjudgeRightTri(side);\n\t\t\t\tside.clear();\n\t\t\t}\n\t}\n\n\tprivate static void judgeRightTri(ArrayList<Integer> side) {\n\t\tCollections.sort(side, Comparator.reverseOrder());\n\n\t\t\t\tif ( Math.pow(side.get(0), 2) == Math.pow(side.get(1), 2) + Math.pow(side.get(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}\n\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
int n = sc.nextInt();
ArrayList<Integer> side = new ArrayList<Integer>();
for (int i = 0; i < n; i++) {
for (int j = 0; j < 3; j++) {
side.add(sc.nextInt());
}
judgeRightTri(side);
side.clear();
}
}
private static void judgeRightTri(ArrayList<Integer> side) {
Collections.sort(side, Comparator.reverseOrder());
if ( Math.pow(side.get(0), 2) == Math.pow(side.get(1), 2) + Math.pow(side.get(2), 2) ) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
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,
29,
17,
29,
17,
23,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
13,
13,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
124,
5
],
[
124,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
11,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
12,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
31,
33
],
[
11,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
42,
44
],
[
9,
45
],
[
45,
46
],
[
46,
47
],
[
9,
48
],
[
48,
49
],
[
6,
50
],
[
50,
51
],
[
6,
52
],
[
52,
53
],
[
6,
54
],
[
54,
55
],
[
124,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
58,
67
],
[
67,
68
],
[
58,
69
],
[
69,
70
],
[
58,
71
],
[
71,
72
],
[
58,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
89,
90
],
[
85,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
85,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
85,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
103,
106
],
[
103,
107
],
[
102,
108
],
[
101,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
101,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
56,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\t\n\tstatic boolean isRight(int a, int b, int c) {\n\t\tif (a * a + b * b == c * c || a * a + c * c == b * b\n\t\t\t\t|| b * b + c * c == a * a) {\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint a,b,c;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isRight(a,b,c)==true)\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\tstatic boolean isRight(int a, int b, int c) {\n\t\tif (a * a + b * b == c * c || a * a + c * c == b * b\n\t\t\t\t|| b * b + c * c == a * a) {\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint a,b,c;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isRight(a,b,c)==true)\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}\n\n}",
"Main",
"static boolean isRight(int a, int b, int c) {\n\t\tif (a * a + b * b == c * c || a * a + c * c == b * b\n\t\t\t\t|| b * b + c * c == a * a) {\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}",
"isRight",
"{\n\t\tif (a * a + b * b == c * c || a * a + c * c == b * b\n\t\t\t\t|| b * b + c * c == a * a) {\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}",
"if (a * a + b * b == c * c || a * a + c * c == b * b\n\t\t\t\t|| b * b + c * c == a * a) {\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;",
"a * a + b * b == c * c || a * a + c * c == b * b\n\t\t\t\t|| b * b + c * c == a * a",
"a * a + b * b == c * c || a * a + c * c == b * b\n\t\t\t\t|| 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\treturn true;\n\t\t}",
"return true;",
"true",
"return false;",
"false",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint a,b,c;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isRight(a,b,c)==true)\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint a,b,c;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isRight(a,b,c)==true)\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 a",
"a",
"b",
"b",
"c;",
"c",
"for(int i=0;i<n;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isRight(a,b,c)==true)\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\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isRight(a,b,c)==true)\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"{\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isRight(a,b,c)==true)\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"a=scan.nextInt()",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"b=scan.nextInt()",
"b",
"scan.nextInt()",
"scan.nextInt",
"scan",
"c=scan.nextInt()",
"c",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(isRight(a,b,c)==true)\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");",
"isRight(a,b,c)==true",
"isRight(a,b,c)",
"isRight",
"a",
"b",
"c",
"true",
"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\t\n\tstatic boolean isRight(int a, int b, int c) {\n\t\tif (a * a + b * b == c * c || a * a + c * c == b * b\n\t\t\t\t|| b * b + c * c == a * a) {\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint a,b,c;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isRight(a,b,c)==true)\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}\n\n}",
"public class Main {\n\t\n\tstatic boolean isRight(int a, int b, int c) {\n\t\tif (a * a + b * b == c * c || a * a + c * c == b * b\n\t\t\t\t|| b * b + c * c == a * a) {\n\t\t\treturn true;\n\t\t} else\n\t\t\treturn false;\n\t}\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint a,b,c;\n\t\tfor(int i=0;i<n;i++){\n\t\t\ta=scan.nextInt();\n\t\t\tb=scan.nextInt();\n\t\t\tc=scan.nextInt();\n\t\t\tif(isRight(a,b,c)==true)\tSystem.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
static boolean isRight(int a, int b, int c) {
if (a * a + b * b == c * c || a * a + c * c == b * b
|| b * b + c * c == a * a) {
return true;
} else
return false;
}
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int a,b,c;
for(int i=0;i<n;i++){
a=scan.nextInt();
b=scan.nextInt();
c=scan.nextInt();
if(isRight(a,b,c)==true) 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,
38,
5,
13,
30,
4,
18,
13,
17,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
137,
23
],
[
137,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
35,
47
],
[
47,
48
],
[
35,
49
],
[
49,
50
],
[
49,
51
],
[
35,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
78,
79
],
[
69,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
90,
91
],
[
65,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
65,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
110,
112
],
[
97,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
117,
119
],
[
96,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
96,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
24,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.lang.Exception;\nimport java.lang.Integer;\nimport java.lang.System;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] a){\n try {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(r.readLine());\n StringTokenizer st;\n\n int side[] = new int[3];\n for(int i = 0; i < n; i++) {\n st = new StringTokenizer(r.readLine());\n for(int j = 0; j < 3; j++) {\n side[j] = Integer.parseInt(st.nextToken());\n }\n Arrays.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 }\n } catch (Exception ex) {\n System.exit(0);\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.lang.Exception;",
"Exception",
"java.lang",
"import java.lang.Integer;",
"Integer",
"java.lang",
"import java.lang.System;",
"System",
"java.lang",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n public static void main(String[] a){\n try {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(r.readLine());\n StringTokenizer st;\n\n int side[] = new int[3];\n for(int i = 0; i < n; i++) {\n st = new StringTokenizer(r.readLine());\n for(int j = 0; j < 3; j++) {\n side[j] = Integer.parseInt(st.nextToken());\n }\n Arrays.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 }\n } catch (Exception ex) {\n System.exit(0);\n }\n }\n}",
"Main",
"public static void main(String[] a){\n try {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(r.readLine());\n StringTokenizer st;\n\n int side[] = new int[3];\n for(int i = 0; i < n; i++) {\n st = new StringTokenizer(r.readLine());\n for(int j = 0; j < 3; j++) {\n side[j] = Integer.parseInt(st.nextToken());\n }\n Arrays.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 }\n } catch (Exception ex) {\n System.exit(0);\n }\n }",
"main",
"{\n try {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(r.readLine());\n StringTokenizer st;\n\n int side[] = new int[3];\n for(int i = 0; i < n; i++) {\n st = new StringTokenizer(r.readLine());\n for(int j = 0; j < 3; j++) {\n side[j] = Integer.parseInt(st.nextToken());\n }\n Arrays.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 }\n } catch (Exception ex) {\n System.exit(0);\n }\n }",
"try {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(r.readLine());\n StringTokenizer st;\n\n int side[] = new int[3];\n for(int i = 0; i < n; i++) {\n st = new StringTokenizer(r.readLine());\n for(int j = 0; j < 3; j++) {\n side[j] = Integer.parseInt(st.nextToken());\n }\n Arrays.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 }\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 BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(r.readLine());\n StringTokenizer st;\n\n int side[] = new int[3];\n for(int i = 0; i < n; i++) {\n st = new StringTokenizer(r.readLine());\n for(int j = 0; j < 3; j++) {\n side[j] = Integer.parseInt(st.nextToken());\n }\n Arrays.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 }\n }",
"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 st = new StringTokenizer(r.readLine());\n for(int j = 0; j < 3; j++) {\n side[j] = Integer.parseInt(st.nextToken());\n }\n Arrays.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 }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n st = new StringTokenizer(r.readLine());\n for(int j = 0; j < 3; j++) {\n side[j] = Integer.parseInt(st.nextToken());\n }\n Arrays.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 }",
"{\n st = new StringTokenizer(r.readLine());\n for(int j = 0; j < 3; j++) {\n side[j] = Integer.parseInt(st.nextToken());\n }\n Arrays.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 }",
"st = new StringTokenizer(r.readLine())",
"st",
"new StringTokenizer(r.readLine())",
"for(int j = 0; j < 3; j++) {\n side[j] = Integer.parseInt(st.nextToken());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n side[j] = Integer.parseInt(st.nextToken());\n }",
"{\n side[j] = Integer.parseInt(st.nextToken());\n }",
"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[] a",
"a",
"public class Main {\n public static void main(String[] a){\n try {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(r.readLine());\n StringTokenizer st;\n\n int side[] = new int[3];\n for(int i = 0; i < n; i++) {\n st = new StringTokenizer(r.readLine());\n for(int j = 0; j < 3; j++) {\n side[j] = Integer.parseInt(st.nextToken());\n }\n Arrays.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 }\n } catch (Exception ex) {\n System.exit(0);\n }\n }\n}",
"public class Main {\n public static void main(String[] a){\n try {\n BufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(r.readLine());\n StringTokenizer st;\n\n int side[] = new int[3];\n for(int i = 0; i < n; i++) {\n st = new StringTokenizer(r.readLine());\n for(int j = 0; j < 3; j++) {\n side[j] = Integer.parseInt(st.nextToken());\n }\n Arrays.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 }\n } catch (Exception ex) {\n System.exit(0);\n }\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.lang.Exception;
import java.lang.Integer;
import java.lang.System;
import java.util.Arrays;
import java.util.StringTokenizer;
public class Main {
public static void main(String[] a){
try {
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");
}
}
} catch (Exception ex) {
System.exit(0);
}
}
} |
[
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,
42,
2,
2,
13,
17,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
39,
4,
18,
13,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
8,
2,
2,
18,
13,
17,
18,
13,
17,
18,
13,
17,
17,
17,
40,
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
],
[
112,
14
],
[
112,
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
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
32,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
44,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
60,
62
],
[
54,
63
],
[
53,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
68,
69
],
[
67,
70
],
[
70,
71
],
[
70,
72
],
[
64,
73
],
[
53,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
80,
82
],
[
74,
83
],
[
44,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
44,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
94,
102
],
[
102,
103
],
[
102,
104
],
[
93,
105
],
[
93,
106
],
[
44,
107
],
[
107,
108
],
[
15,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString r = br.readLine();\n\t\tint n = Integer.valueOf(r);\n\t\twhile (n > 0 && (r = br.readLine()) != null) {\n\t\t\tString[] s = r.split(\" \");\n\t\t\tint[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[1]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[2]), 2) };\n\t\t\tArrays.sort(e);\n\t\t\tSystem.out.println(((e[0] + e[1]) == e[2]) ? \"YES\" : \"NO\");\n\t\t\tn--;\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\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString r = br.readLine();\n\t\tint n = Integer.valueOf(r);\n\t\twhile (n > 0 && (r = br.readLine()) != null) {\n\t\t\tString[] s = r.split(\" \");\n\t\t\tint[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[1]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[2]), 2) };\n\t\t\tArrays.sort(e);\n\t\t\tSystem.out.println(((e[0] + e[1]) == e[2]) ? \"YES\" : \"NO\");\n\t\t\tn--;\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 r = br.readLine();\n\t\tint n = Integer.valueOf(r);\n\t\twhile (n > 0 && (r = br.readLine()) != null) {\n\t\t\tString[] s = r.split(\" \");\n\t\t\tint[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[1]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[2]), 2) };\n\t\t\tArrays.sort(e);\n\t\t\tSystem.out.println(((e[0] + e[1]) == e[2]) ? \"YES\" : \"NO\");\n\t\t\tn--;\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString r = br.readLine();\n\t\tint n = Integer.valueOf(r);\n\t\twhile (n > 0 && (r = br.readLine()) != null) {\n\t\t\tString[] s = r.split(\" \");\n\t\t\tint[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[1]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[2]), 2) };\n\t\t\tArrays.sort(e);\n\t\t\tSystem.out.println(((e[0] + e[1]) == e[2]) ? \"YES\" : \"NO\");\n\t\t\tn--;\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String r = br.readLine();",
"r",
"br.readLine()",
"br.readLine",
"br",
"int n = Integer.valueOf(r);",
"n",
"Integer.valueOf(r)",
"Integer.valueOf",
"Integer",
"r",
"while (n > 0 && (r = br.readLine()) != null) {\n\t\t\tString[] s = r.split(\" \");\n\t\t\tint[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[1]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[2]), 2) };\n\t\t\tArrays.sort(e);\n\t\t\tSystem.out.println(((e[0] + e[1]) == e[2]) ? \"YES\" : \"NO\");\n\t\t\tn--;\n\t\t}",
"n > 0 && (r = br.readLine()) != null",
"n > 0",
"n",
"0",
"(r = br.readLine()) != null",
"(r = br.readLine())",
"r",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tString[] s = r.split(\" \");\n\t\t\tint[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[1]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[2]), 2) };\n\t\t\tArrays.sort(e);\n\t\t\tSystem.out.println(((e[0] + e[1]) == e[2]) ? \"YES\" : \"NO\");\n\t\t\tn--;\n\t\t}",
"String[] s = r.split(\" \");",
"s",
"r.split(\" \")",
"r.split",
"r",
"\" \"",
"int[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[1]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[2]), 2) };",
"e",
"{ (int) Math.pow(Integer.valueOf(s[0]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[1]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[2]), 2) }",
"(int) Math.pow(Integer.valueOf(s[0]), 2)",
"Math.pow",
"Math",
"Integer.valueOf(s[0])",
"Integer.valueOf",
"Integer",
"s[0]",
"s",
"0",
"2",
"(int) Math.pow(Integer.valueOf(s[1]), 2)",
"Math.pow",
"Math",
"Integer.valueOf(s[1])",
"Integer.valueOf",
"Integer",
"s[1]",
"s",
"1",
"2",
"(int) Math.pow(Integer.valueOf(s[2]), 2)",
"Math.pow",
"Math",
"Integer.valueOf(s[2])",
"Integer.valueOf",
"Integer",
"s[2]",
"s",
"2",
"2",
"Arrays.sort(e)",
"Arrays.sort",
"Arrays",
"e",
"System.out.println(((e[0] + e[1]) == e[2]) ? \"YES\" : \"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"((e[0] + e[1]) == e[2]) ? \"YES\" : \"NO\"",
"((e[0] + e[1]) == e[2])",
"(e[0] + e[1])",
"e[0]",
"e",
"0",
"e[1]",
"e",
"1",
"e[2]",
"e",
"2",
"\"YES\"",
"\"NO\"",
"n--",
"n",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString r = br.readLine();\n\t\tint n = Integer.valueOf(r);\n\t\twhile (n > 0 && (r = br.readLine()) != null) {\n\t\t\tString[] s = r.split(\" \");\n\t\t\tint[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[1]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[2]), 2) };\n\t\t\tArrays.sort(e);\n\t\t\tSystem.out.println(((e[0] + e[1]) == e[2]) ? \"YES\" : \"NO\");\n\t\t\tn--;\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString r = br.readLine();\n\t\tint n = Integer.valueOf(r);\n\t\twhile (n > 0 && (r = br.readLine()) != null) {\n\t\t\tString[] s = r.split(\" \");\n\t\t\tint[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[1]), 2),\n\t\t\t\t\t(int) Math.pow(Integer.valueOf(s[2]), 2) };\n\t\t\tArrays.sort(e);\n\t\t\tSystem.out.println(((e[0] + e[1]) == e[2]) ? \"YES\" : \"NO\");\n\t\t\tn--;\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));
String r = br.readLine();
int n = Integer.valueOf(r);
while (n > 0 && (r = br.readLine()) != null) {
String[] s = r.split(" ");
int[] e = { (int) Math.pow(Integer.valueOf(s[0]), 2),
(int) Math.pow(Integer.valueOf(s[1]), 2),
(int) Math.pow(Integer.valueOf(s[2]), 2) };
Arrays.sort(e);
System.out.println(((e[0] + e[1]) == e[2]) ? "YES" : "NO");
n--;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
14,
2,
2,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
121,
8
],
[
121,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
38,
43
],
[
35,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
35,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
35,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
35,
68
],
[
68,
69
],
[
70,
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
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
90,
92
],
[
70,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
101,
103
],
[
68,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
68,
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.*;\n\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\t\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tString[] lc = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(lc[0]);\n\t\t\tint b = Integer.parseInt(lc[1]);\n\t\t\tint c = Integer.parseInt(lc[2]);\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b)\n\t\t\t{\n\t\t\t\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.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tString[] lc = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(lc[0]);\n\t\t\tint b = Integer.parseInt(lc[1]);\n\t\t\tint c = Integer.parseInt(lc[2]);\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b)\n\t\t\t{\n\t\t\t\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) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tString[] lc = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(lc[0]);\n\t\t\tint b = Integer.parseInt(lc[1]);\n\t\t\tint c = Integer.parseInt(lc[2]);\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b)\n\t\t\t{\n\t\t\t\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\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tString[] lc = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(lc[0]);\n\t\t\tint b = Integer.parseInt(lc[1]);\n\t\t\tint c = Integer.parseInt(lc[2]);\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b)\n\t\t\t{\n\t\t\t\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}",
"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[] lc = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(lc[0]);\n\t\t\tint b = Integer.parseInt(lc[1]);\n\t\t\tint c = Integer.parseInt(lc[2]);\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b)\n\t\t\t{\n\t\t\t\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[] lc = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(lc[0]);\n\t\t\tint b = Integer.parseInt(lc[1]);\n\t\t\tint c = Integer.parseInt(lc[2]);\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b)\n\t\t\t{\n\t\t\t\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[] lc = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(lc[0]);\n\t\t\tint b = Integer.parseInt(lc[1]);\n\t\t\tint c = Integer.parseInt(lc[2]);\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b)\n\t\t\t{\n\t\t\t\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[] lc = br.readLine().split(\" \");",
"lc",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int a = Integer.parseInt(lc[0]);",
"a",
"Integer.parseInt(lc[0])",
"Integer.parseInt",
"Integer",
"lc[0]",
"lc",
"0",
"int b = Integer.parseInt(lc[1]);",
"b",
"Integer.parseInt(lc[1])",
"Integer.parseInt",
"Integer",
"lc[1]",
"lc",
"1",
"int c = Integer.parseInt(lc[2]);",
"c",
"Integer.parseInt(lc[2])",
"Integer.parseInt",
"Integer",
"lc[2]",
"lc",
"2",
"if(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b)\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b",
"a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b",
"a*a+b*b==c*c",
"a*a+b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"b*b+c*c==a*a",
"b*b+c*c",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"a*a",
"a",
"a",
"c*c+a*a==b*b",
"c*c+a*a",
"c*c",
"c",
"c",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"{\n\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\t\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tString[] lc = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(lc[0]);\n\t\t\tint b = Integer.parseInt(lc[1]);\n\t\t\tint c = Integer.parseInt(lc[2]);\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b)\n\t\t\t{\n\t\t\t\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\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n\t\tint N = Integer.parseInt(br.readLine());\n\n\t\tfor(int i=0;i<N;i++) {\n\t\t\tString[] lc = br.readLine().split(\" \");\n\t\t\tint a = Integer.parseInt(lc[0]);\n\t\t\tint b = Integer.parseInt(lc[1]);\n\t\t\tint c = Integer.parseInt(lc[2]);\n\t\t\t\n\t\t\tif(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b)\n\t\t\t{\n\t\t\t\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.io.*;
import java.util.*;
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[] lc = br.readLine().split(" ");
int a = Integer.parseInt(lc[0]);
int b = Integer.parseInt(lc[1]);
int c = Integer.parseInt(lc[2]);
if(a*a+b*b==c*c || b*b+c*c==a*a || c*c+a*a==b*b)
{
System.out.println("YES");
}else{
System.out.println("NO");
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
8,
2,
4,
18,
13,
4,
18,
13,
2,
4,
18,
13,
17,
17,
2,
4,
18,
13,
4,
18,
13,
17,
17,
4,
18,
13,
4,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
103,
11
],
[
103,
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
],
[
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
],
[
52,
55
],
[
55,
56
],
[
56,
57
],
[
35,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
35,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
75,
79
],
[
69,
80
],
[
68,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
82,
89
],
[
81,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
90,
97
],
[
67,
98
],
[
67,
99
],
[
12,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] | [
"\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n\n/*\n * To change this template, choose Tools | Templates\n * and open the template in the editor.\n */\n\n/**\n *\n * @author User\n */\npublic class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x =input.nextInt();\n for (int i = 0; i < x; i++) {\n ArrayList<Integer> out = new ArrayList<Integer>();\n for (int j = 0; j < 3; j++) {\n out.add(input.nextInt());\n }\n Collections.sort(out);\n System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?\"YES\":\"NO\");\n }\n }\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x =input.nextInt();\n for (int i = 0; i < x; i++) {\n ArrayList<Integer> out = new ArrayList<Integer>();\n for (int j = 0; j < 3; j++) {\n out.add(input.nextInt());\n }\n Collections.sort(out);\n System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?\"YES\":\"NO\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x =input.nextInt();\n for (int i = 0; i < x; i++) {\n ArrayList<Integer> out = new ArrayList<Integer>();\n for (int j = 0; j < 3; j++) {\n out.add(input.nextInt());\n }\n Collections.sort(out);\n System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?\"YES\":\"NO\");\n }\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n int x =input.nextInt();\n for (int i = 0; i < x; i++) {\n ArrayList<Integer> out = new ArrayList<Integer>();\n for (int j = 0; j < 3; j++) {\n out.add(input.nextInt());\n }\n Collections.sort(out);\n System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?\"YES\":\"NO\");\n }\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int x =input.nextInt();",
"x",
"input.nextInt()",
"input.nextInt",
"input",
"for (int i = 0; i < x; i++) {\n ArrayList<Integer> out = new ArrayList<Integer>();\n for (int j = 0; j < 3; j++) {\n out.add(input.nextInt());\n }\n Collections.sort(out);\n System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?\"YES\":\"NO\");\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < x",
"i",
"x",
"i++",
"i++",
"i",
"{\n ArrayList<Integer> out = new ArrayList<Integer>();\n for (int j = 0; j < 3; j++) {\n out.add(input.nextInt());\n }\n Collections.sort(out);\n System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?\"YES\":\"NO\");\n }",
"{\n ArrayList<Integer> out = new ArrayList<Integer>();\n for (int j = 0; j < 3; j++) {\n out.add(input.nextInt());\n }\n Collections.sort(out);\n System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?\"YES\":\"NO\");\n }",
"ArrayList<Integer> out = new ArrayList<Integer>();",
"out",
"new ArrayList<Integer>()",
"for (int j = 0; j < 3; j++) {\n out.add(input.nextInt());\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n out.add(input.nextInt());\n }",
"{\n out.add(input.nextInt());\n }",
"out.add(input.nextInt())",
"out.add",
"out",
"input.nextInt()",
"input.nextInt",
"input",
"Collections.sort(out)",
"Collections.sort",
"Collections",
"out",
"System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?\"YES\":\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?\"YES\":\"NO\"",
"Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)",
"Math.pow(out.get(out.size()-1), 2)",
"Math.pow",
"Math",
"out.get(out.size()-1)",
"out.get",
"out",
"out.size()-1",
"out.size()",
"out.size",
"out",
"1",
"2",
"Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)",
"Math.pow(out.get(0), 2)",
"Math.pow",
"Math",
"out.get(0)",
"out.get",
"out",
"0",
"2",
"Math.pow(out.get(1), 2)",
"Math.pow",
"Math",
"out.get(1)",
"out.get",
"out",
"1",
"2",
"\"YES\"",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x =input.nextInt();\n for (int i = 0; i < x; i++) {\n ArrayList<Integer> out = new ArrayList<Integer>();\n for (int j = 0; j < 3; j++) {\n out.add(input.nextInt());\n }\n Collections.sort(out);\n System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?\"YES\":\"NO\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int x =input.nextInt();\n for (int i = 0; i < x; i++) {\n ArrayList<Integer> out = new ArrayList<Integer>();\n for (int j = 0; j < 3; j++) {\n out.add(input.nextInt());\n }\n Collections.sort(out);\n System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?\"YES\":\"NO\");\n }\n }\n}",
"Main"
] |
import java.util.ArrayList;
import java.util.Collections;
import java.util.Scanner;
/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
/**
*
* @author User
*/
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int x =input.nextInt();
for (int i = 0; i < x; i++) {
ArrayList<Integer> out = new ArrayList<Integer>();
for (int j = 0; j < 3; j++) {
out.add(input.nextInt());
}
Collections.sort(out);
System.out.println(Math.pow(out.get(out.size()-1), 2)==Math.pow(out.get(0), 2)+Math.pow(out.get(1), 2)?"YES":"NO");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
4,
13,
13,
23,
13,
12,
13,
30,
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,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
2,
13,
13,
41,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
2,
13,
2,
13,
13,
14,
2,
2,
13,
13,
2,
13,
13,
30,
0,
13,
2,
13,
2,
13,
13,
30,
0,
13,
2,
13,
2,
13,
13,
4,
18,
18,
13,
13,
8,
13,
17,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
117,
5
],
[
117,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
6,
17
],
[
17,
18
],
[
117,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
21,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
27,
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
],
[
50,
51
],
[
50,
52
],
[
32,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
55,
57
],
[
32,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
60,
62
],
[
32,
63
],
[
63,
64
],
[
32,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
78,
80
],
[
65,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
81,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
32,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
110,
113
],
[
19,
114
],
[
114,
115
],
[
0,
116
],
[
116,
117
],
[
116,
118
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n int N = in.nextInt();\n while (N-- > 0) {\n int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();\n int A = a * a, B = b * b, C = c * c;\n boolean isRight;\n if (A > B && A > C) {\n isRight = A == B + C;\n } else if (B > A && B > C) {\n isRight = B == A + C;\n } else {\n isRight = C == A + B;\n }\n System.out.println(isRight ? \"YES\" : \"NO\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n int N = in.nextInt();\n while (N-- > 0) {\n int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();\n int A = a * a, B = b * b, C = c * c;\n boolean isRight;\n if (A > B && A > C) {\n isRight = A == B + C;\n } else if (B > A && B > C) {\n isRight = B == A + C;\n } else {\n isRight = C == A + B;\n }\n System.out.println(isRight ? \"YES\" : \"NO\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }",
"main",
"{\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }",
"try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }",
"{\n solve(in);\n }",
"Scanner in = new Scanner(System.in)",
"Scanner in = new Scanner(System.in)",
"new Scanner(System.in)",
"solve(in)",
"solve",
"in",
"String[] args",
"args",
"private static void solve(Scanner in) {\n int N = in.nextInt();\n while (N-- > 0) {\n int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();\n int A = a * a, B = b * b, C = c * c;\n boolean isRight;\n if (A > B && A > C) {\n isRight = A == B + C;\n } else if (B > A && B > C) {\n isRight = B == A + C;\n } else {\n isRight = C == A + B;\n }\n System.out.println(isRight ? \"YES\" : \"NO\");\n }\n }",
"solve",
"{\n int N = in.nextInt();\n while (N-- > 0) {\n int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();\n int A = a * a, B = b * b, C = c * c;\n boolean isRight;\n if (A > B && A > C) {\n isRight = A == B + C;\n } else if (B > A && B > C) {\n isRight = B == A + C;\n } else {\n isRight = C == A + B;\n }\n System.out.println(isRight ? \"YES\" : \"NO\");\n }\n }",
"int N = in.nextInt();",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"while (N-- > 0) {\n int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();\n int A = a * a, B = b * b, C = c * c;\n boolean isRight;\n if (A > B && A > C) {\n isRight = A == B + C;\n } else if (B > A && B > C) {\n isRight = B == A + C;\n } else {\n isRight = C == A + B;\n }\n System.out.println(isRight ? \"YES\" : \"NO\");\n }",
"N-- > 0",
"N--",
"N",
"0",
"{\n int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();\n int A = a * a, B = b * b, C = c * c;\n boolean isRight;\n if (A > B && A > C) {\n isRight = A == B + C;\n } else if (B > A && B > C) {\n isRight = B == A + C;\n } else {\n isRight = C == A + B;\n }\n System.out.println(isRight ? \"YES\" : \"NO\");\n }",
"int a = in.nextInt()",
"a",
"in.nextInt()",
"in.nextInt",
"in",
"b = in.nextInt()",
"b",
"in.nextInt()",
"in.nextInt",
"in",
"c = in.nextInt();",
"c",
"in.nextInt()",
"in.nextInt",
"in",
"int A = a * a",
"A",
"a * a",
"a",
"a",
"B = b * b",
"B",
"b * b",
"b",
"b",
"C = c * c;",
"C",
"c * c",
"c",
"c",
"boolean isRight;",
"isRight",
"if (A > B && A > C) {\n isRight = A == B + C;\n } else if (B > A && B > C) {\n isRight = B == A + C;\n } else {\n isRight = C == A + B;\n }",
"A > B && A > C",
"A > B",
"A",
"B",
"A > C",
"A",
"C",
"{\n isRight = A == B + C;\n }",
"isRight = A == B + C",
"isRight",
"A == B + C",
"A",
"B + C",
"B",
"C",
"if (B > A && B > C) {\n isRight = B == A + C;\n } else {\n isRight = C == A + B;\n }",
"B > A && B > C",
"B > A",
"B",
"A",
"B > C",
"B",
"C",
"{\n isRight = B == A + C;\n }",
"isRight = B == A + C",
"isRight",
"B == A + C",
"B",
"A + C",
"A",
"C",
"{\n isRight = C == A + B;\n }",
"isRight = C == A + B",
"isRight",
"C == A + B",
"C",
"A + B",
"A",
"B",
"System.out.println(isRight ? \"YES\" : \"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"isRight ? \"YES\" : \"NO\"",
"isRight",
"\"YES\"",
"\"NO\"",
"Scanner in",
"in",
"public class Main {\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n int N = in.nextInt();\n while (N-- > 0) {\n int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();\n int A = a * a, B = b * b, C = c * c;\n boolean isRight;\n if (A > B && A > C) {\n isRight = A == B + C;\n } else if (B > A && B > C) {\n isRight = B == A + C;\n } else {\n isRight = C == A + B;\n }\n System.out.println(isRight ? \"YES\" : \"NO\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try (Scanner in = new Scanner(System.in)) {\n solve(in);\n }\n }\n\n private static void solve(Scanner in) {\n int N = in.nextInt();\n while (N-- > 0) {\n int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();\n int A = a * a, B = b * b, C = c * c;\n boolean isRight;\n if (A > B && A > C) {\n isRight = A == B + C;\n } else if (B > A && B > C) {\n isRight = B == A + C;\n } else {\n isRight = C == A + B;\n }\n System.out.println(isRight ? \"YES\" : \"NO\");\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner in = new Scanner(System.in)) {
solve(in);
}
}
private static void solve(Scanner in) {
int N = in.nextInt();
while (N-- > 0) {
int a = in.nextInt(), b = in.nextInt(), c = in.nextInt();
int A = a * a, B = b * b, C = c * c;
boolean isRight;
if (A > B && A > C) {
isRight = A == B + C;
} else if (B > A && B > C) {
isRight = B == A + C;
} else {
isRight = C == A + B;
}
System.out.println(isRight ? "YES" : "NO");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
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,
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,
14,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
112,
5
],
[
112,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
31,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
59,
61
],
[
55,
62
],
[
62,
63
],
[
62,
64
],
[
47,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
73,
80
],
[
80,
81
],
[
80,
82
],
[
31,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
89,
90
],
[
89,
91
],
[
84,
92
],
[
92,
93
],
[
92,
94
],
[
83,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
83,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
6,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x;\n\n for(int i=0;i<n;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if(a>b && a>c){\n x = a;\n a = c;\n c = x;\n }else if(b>a && b>c){\n x = b;\n b = c;\n c = x;\n }\n if(a*a+b*b == c*c){System.out.println(\"YES\");}\n else{System.out.println(\"NO\");}\n }\n \n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x;\n\n for(int i=0;i<n;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if(a>b && a>c){\n x = a;\n a = c;\n c = x;\n }else if(b>a && b>c){\n x = b;\n b = c;\n c = x;\n }\n if(a*a+b*b == c*c){System.out.println(\"YES\");}\n else{System.out.println(\"NO\");}\n }\n \n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x;\n\n for(int i=0;i<n;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if(a>b && a>c){\n x = a;\n a = c;\n c = x;\n }else if(b>a && b>c){\n x = b;\n b = c;\n c = x;\n }\n if(a*a+b*b == c*c){System.out.println(\"YES\");}\n else{System.out.println(\"NO\");}\n }\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x;\n\n for(int i=0;i<n;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if(a>b && a>c){\n x = a;\n a = c;\n c = x;\n }else if(b>a && b>c){\n x = b;\n b = c;\n c = x;\n }\n if(a*a+b*b == c*c){System.out.println(\"YES\");}\n else{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",
"int x;",
"x",
"for(int i=0;i<n;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if(a>b && a>c){\n x = a;\n a = c;\n c = x;\n }else if(b>a && b>c){\n x = b;\n b = c;\n c = x;\n }\n if(a*a+b*b == c*c){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 int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if(a>b && a>c){\n x = a;\n a = c;\n c = x;\n }else if(b>a && b>c){\n x = b;\n b = c;\n c = x;\n }\n if(a*a+b*b == c*c){System.out.println(\"YES\");}\n else{System.out.println(\"NO\");}\n }",
"{\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if(a>b && a>c){\n x = a;\n a = c;\n c = x;\n }else if(b>a && b>c){\n x = b;\n b = c;\n c = x;\n }\n if(a*a+b*b == c*c){System.out.println(\"YES\");}\n else{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>b && a>c){\n x = a;\n a = c;\n c = x;\n }else if(b>a && b>c){\n x = b;\n b = c;\n c = x;\n }",
"a>b && a>c",
"a>b",
"a",
"b",
"a>c",
"a",
"c",
"{\n x = a;\n a = c;\n c = x;\n }",
"x = a",
"x",
"a",
"a = c",
"a",
"c",
"c = x",
"c",
"x",
"if(b>a && b>c){\n x = b;\n b = c;\n c = x;\n }",
"b>a && b>c",
"b>a",
"b",
"a",
"b>c",
"b",
"c",
"{\n x = b;\n b = c;\n c = x;\n }",
"x = b",
"x",
"b",
"b = c",
"b",
"c",
"c = x",
"c",
"x",
"if(a*a+b*b == c*c){System.out.println(\"YES\");}\n else{System.out.println(\"NO\");}",
"a*a+b*b == c*c",
"a*a+b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"{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 public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x;\n\n for(int i=0;i<n;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if(a>b && a>c){\n x = a;\n a = c;\n c = x;\n }else if(b>a && b>c){\n x = b;\n b = c;\n c = x;\n }\n if(a*a+b*b == c*c){System.out.println(\"YES\");}\n else{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 int n = sc.nextInt();\n int x;\n\n for(int i=0;i<n;i++){\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if(a>b && a>c){\n x = a;\n a = c;\n c = x;\n }else if(b>a && b>c){\n x = b;\n b = c;\n c = x;\n }\n if(a*a+b*b == c*c){System.out.println(\"YES\");}\n else{System.out.println(\"NO\");}\n }\n \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 x;
for(int i=0;i<n;i++){
int a = sc.nextInt();
int b = sc.nextInt();
int c = sc.nextInt();
if(a>b && a>c){
x = a;
a = c;
c = x;
}else if(b>a && b>c){
x = b;
b = c;
c = x;
}
if(a*a+b*b == c*c){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,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
38,
5,
13,
30,
4,
18,
13,
17,
30,
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,
13,
4,
18,
13,
4,
18,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
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,
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
],
[
11,
19
],
[
19,
20
],
[
11,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
35,
47
],
[
47,
48
],
[
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
],
[
59,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
59,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
59,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
59,
98
],
[
98,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
106,
108
],
[
101,
109
],
[
109,
110
],
[
109,
111
],
[
100,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
113,
117
],
[
117,
118
],
[
117,
119
],
[
112,
120
],
[
120,
121
],
[
120,
122
],
[
100,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
131,
132
],
[
131,
133
],
[
98,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
98,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
142,
147
],
[
9,
148
],
[
148,
149
]
] | [
"import java.io.*;\nimport java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tStringTokenizer st;\n\t\tint i,a,b,c;\n\t\ttry {\n\t\t\ts = r.readLine();\n\t\t\tint number = Integer.parseInt(s);\n\t\t\tfor(i=0;i<number;i++){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tc = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){\n\t\t\t\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 (NoSuchElementException e) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tStringTokenizer st;\n\t\tint i,a,b,c;\n\t\ttry {\n\t\t\ts = r.readLine();\n\t\t\tint number = Integer.parseInt(s);\n\t\t\tfor(i=0;i<number;i++){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tc = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){\n\t\t\t\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 (NoSuchElementException e) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tStringTokenizer st;\n\t\tint i,a,b,c;\n\t\ttry {\n\t\t\ts = r.readLine();\n\t\t\tint number = Integer.parseInt(s);\n\t\t\tfor(i=0;i<number;i++){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tc = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){\n\t\t\t\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 (NoSuchElementException e) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tStringTokenizer st;\n\t\tint i,a,b,c;\n\t\ttry {\n\t\t\ts = r.readLine();\n\t\t\tint number = Integer.parseInt(s);\n\t\t\tfor(i=0;i<number;i++){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tc = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){\n\t\t\t\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 (NoSuchElementException e) {\n\t\t\tSystem.exit(0);\n\t\t}\n\t}",
"BufferedReader r = new BufferedReader(new InputStreamReader(System.in));",
"r",
"new BufferedReader(new InputStreamReader(System.in))",
"String s;",
"s",
"StringTokenizer st;",
"st",
"int i",
"i",
"a",
"a",
"b",
"b",
"c;",
"c",
"try {\n\t\t\ts = r.readLine();\n\t\t\tint number = Integer.parseInt(s);\n\t\t\tfor(i=0;i<number;i++){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tc = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){\n\t\t\t\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 (NoSuchElementException e) {\n\t\t\tSystem.exit(0);\n\t\t}",
"catch (NoSuchElementException e) {\n\t\t\tSystem.exit(0);\n\t\t}",
"NoSuchElementException e",
"{\n\t\t\tSystem.exit(0);\n\t\t}",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n\t\t\ts = r.readLine();\n\t\t\tint number = Integer.parseInt(s);\n\t\t\tfor(i=0;i<number;i++){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tc = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){\n\t\t\t\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}",
"s = r.readLine()",
"s",
"r.readLine()",
"r.readLine",
"r",
"int number = Integer.parseInt(s);",
"number",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"for(i=0;i<number;i++){\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tc = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){\n\t\t\t\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}",
"i=0;",
"i=0",
"i",
"0",
"i<number",
"i",
"number",
"i++",
"i++",
"i",
"{\n\t\t\t\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tc = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){\n\t\t\t\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\ts = r.readLine();\n\t\t\t\tst = new StringTokenizer(s,\" \");\n\t\t\t\ta = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tb = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tc = Integer.parseInt(st.nextToken().toString());\n\t\t\t\tif((a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)){\n\t\t\t\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}",
"s = r.readLine()",
"s",
"r.readLine()",
"r.readLine",
"r",
"st = new StringTokenizer(s,\" \")",
"st",
"new StringTokenizer(s,\" \")",
"a = Integer.parseInt(st.nextToken().toString())",
"a",
"Integer.parseInt(st.nextToken().toString())",
"Integer.parseInt",
"Integer",
"st.nextToken().toString()",
"st.nextToken().toString",
"st.nextToken()",
"st.nextToken",
"st",
"b = Integer.parseInt(st.nextToken().toString())",
"b",
"Integer.parseInt(st.nextToken().toString())",
"Integer.parseInt",
"Integer",
"st.nextToken().toString()",
"st.nextToken().toString",
"st.nextToken()",
"st.nextToken",
"st",
"c = Integer.parseInt(st.nextToken().toString())",
"c",
"Integer.parseInt(st.nextToken().toString())",
"Integer.parseInt",
"Integer",
"st.nextToken().toString()",
"st.nextToken().toString",
"st.nextToken()",
"st.nextToken",
"st",
"if((a*a+b*b==c*c)||(b*b+c*c==a*a)||(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}",
"(a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)",
"(a*a+b*b==c*c)||(b*b+c*c==a*a)||(c*c+a*a==b*b)",
"(a*a+b*b==c*c)",
"a*a+b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"(b*b+c*c==a*a)",
"b*b+c*c",
"b*b",
"b",
"b",
"c*c",
"c",
"c",
"a*a",
"a",
"a",
"(c*c+a*a==b*b)",
"c*c+a*a",
"c*c",
"c",
"c",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"{\n\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"
] | import java.io.*;
import java.util.*;
class Main{
public static void main(String[] args) throws IOException{
BufferedReader r = new BufferedReader(new InputStreamReader(System.in));
String s;
StringTokenizer st;
int i,a,b,c;
try {
s = r.readLine();
int number = Integer.parseInt(s);
for(i=0;i<number;i++){
s = r.readLine();
st = new StringTokenizer(s," ");
a = Integer.parseInt(st.nextToken().toString());
b = Integer.parseInt(st.nextToken().toString());
c = Integer.parseInt(st.nextToken().toString());
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");
}
}
} catch (NoSuchElementException e) {
System.exit(0);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
11,
1,
41,
13,
2,
18,
13,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
18,
13,
2,
13,
17,
30,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
2,
13,
17,
0,
18,
13,
2,
13,
17,
13,
29,
13,
23,
13,
12,
13,
30,
41,
13,
0,
13,
20,
41,
13,
38,
5,
13,
30,
4,
18,
13,
30,
0,
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,
20,
17,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
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,
0,
13,
4,
13,
13,
41,
13,
2,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
17,
14,
2,
13,
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
],
[
212,
11
],
[
212,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
15,
24
],
[
24,
25
],
[
24,
26
],
[
15,
27
],
[
27,
28
],
[
28,
29
],
[
15,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
55,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
70,
76
],
[
14,
77
],
[
77,
78
],
[
12,
79
],
[
79,
80
],
[
212,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
89,
90
],
[
83,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
91,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
98,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
98,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
110,
121
],
[
122,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
122,
127
],
[
127,
128
],
[
127,
129
],
[
129,
130
],
[
130,
131
],
[
122,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
134,
137
],
[
122,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
145,
147
],
[
138,
148
],
[
148,
149
],
[
149,
150
],
[
138,
151
],
[
152,
152
],
[
152,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
153,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
160,
162
],
[
122,
163
],
[
163,
164
],
[
163,
165
],
[
165,
166
],
[
165,
167
],
[
122,
168
],
[
168,
169
],
[
168,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
171,
174
],
[
174,
175
],
[
174,
176
],
[
171,
177
],
[
170,
178
],
[
178,
179
],
[
179,
180
],
[
178,
181
],
[
181,
182
],
[
181,
183
],
[
178,
184
],
[
122,
185
],
[
185,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
188,
191
],
[
191,
192
],
[
191,
193
],
[
188,
194
],
[
185,
195
],
[
195,
196
],
[
196,
197
],
[
197,
198
],
[
198,
199
],
[
198,
200
],
[
196,
201
],
[
185,
202
],
[
202,
203
],
[
203,
204
],
[
204,
205
],
[
205,
206
],
[
205,
207
],
[
203,
208
],
[
81,
209
],
[
209,
210
],
[
0,
211
],
[
211,
212
],
[
211,
213
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static int[] sort(int[] nums){\n\t\tfor(int h=nums.length-1;h>0;h--){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tif(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nums;\n\t}\n\tpublic static void main(String[] a) {\n\t\tBufferedReader br;\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\n\t\ttry {\n\t\t\t//data set num\n\t\t\tstr = br.readLine();\n\t\t\tint setNum=Integer.parseInt(str);\n\t\t\tfor (int h = 0; h < setNum; h++) {\n\t\t\t\tint[] num = new int[3];\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] numbers =str.split(\" \");\n\t\t\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}\n\t\t\t\tnum =sort(num);\n\t\t\t\tint answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);\n\t\t\t\tif(answer==(Math.pow(num[0], 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 (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static int[] sort(int[] nums){\n\t\tfor(int h=nums.length-1;h>0;h--){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tif(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nums;\n\t}\n\tpublic static void main(String[] a) {\n\t\tBufferedReader br;\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\n\t\ttry {\n\t\t\t//data set num\n\t\t\tstr = br.readLine();\n\t\t\tint setNum=Integer.parseInt(str);\n\t\t\tfor (int h = 0; h < setNum; h++) {\n\t\t\t\tint[] num = new int[3];\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] numbers =str.split(\" \");\n\t\t\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}\n\t\t\t\tnum =sort(num);\n\t\t\t\tint answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);\n\t\t\t\tif(answer==(Math.pow(num[0], 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 (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}",
"Main",
"public static int[] sort(int[] nums){\n\t\tfor(int h=nums.length-1;h>0;h--){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tif(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nums;\n\t}",
"sort",
"{\n\t\tfor(int h=nums.length-1;h>0;h--){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tif(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nums;\n\t}",
"for(int h=nums.length-1;h>0;h--){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tif(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int h=nums.length-1;",
"int h=nums.length-1;",
"h",
"nums.length-1",
"nums.length",
"nums",
"nums.length",
"1",
"h>0",
"h",
"0",
"h--",
"h--",
"h",
"{\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tif(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tif(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for(int i=1;i<=h;i++){\n\t\t\t\tif(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}\n\t\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=h",
"i",
"h",
"i++",
"i++",
"i",
"{\n\t\t\t\tif(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}\n\t\t\t}",
"if(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}",
"nums[i]>nums[i-1]",
"nums[i]",
"nums",
"i",
"nums[i-1]",
"nums",
"i-1",
"i",
"1",
"{\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}",
"int tmp=nums[i];",
"tmp",
"nums[i]",
"nums",
"i",
"nums[i]= nums[i-1]",
"nums[i]",
"nums",
"i",
"nums[i-1]",
"nums",
"i-1",
"i",
"1",
"nums[i-1]=tmp",
"nums[i-1]",
"nums",
"i-1",
"i",
"1",
"tmp",
"return nums;",
"nums",
"int[] nums",
"nums",
"public static void main(String[] a) {\n\t\tBufferedReader br;\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\n\t\ttry {\n\t\t\t//data set num\n\t\t\tstr = br.readLine();\n\t\t\tint setNum=Integer.parseInt(str);\n\t\t\tfor (int h = 0; h < setNum; h++) {\n\t\t\t\tint[] num = new int[3];\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] numbers =str.split(\" \");\n\t\t\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}\n\t\t\t\tnum =sort(num);\n\t\t\t\tint answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);\n\t\t\t\tif(answer==(Math.pow(num[0], 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 (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"main",
"{\n\t\tBufferedReader br;\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\n\t\ttry {\n\t\t\t//data set num\n\t\t\tstr = br.readLine();\n\t\t\tint setNum=Integer.parseInt(str);\n\t\t\tfor (int h = 0; h < setNum; h++) {\n\t\t\t\tint[] num = new int[3];\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] numbers =str.split(\" \");\n\t\t\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}\n\t\t\t\tnum =sort(num);\n\t\t\t\tint answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);\n\t\t\t\tif(answer==(Math.pow(num[0], 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 (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"BufferedReader br;",
"br",
"br = new BufferedReader(new InputStreamReader(System.in))",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"try {\n\t\t\t//data set num\n\t\t\tstr = br.readLine();\n\t\t\tint setNum=Integer.parseInt(str);\n\t\t\tfor (int h = 0; h < setNum; h++) {\n\t\t\t\tint[] num = new int[3];\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] numbers =str.split(\" \");\n\t\t\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}\n\t\t\t\tnum =sort(num);\n\t\t\t\tint answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);\n\t\t\t\tif(answer==(Math.pow(num[0], 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 (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\t//data set num\n\t\t\tstr = br.readLine();\n\t\t\tint setNum=Integer.parseInt(str);\n\t\t\tfor (int h = 0; h < setNum; h++) {\n\t\t\t\tint[] num = new int[3];\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] numbers =str.split(\" \");\n\t\t\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}\n\t\t\t\tnum =sort(num);\n\t\t\t\tint answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);\n\t\t\t\tif(answer==(Math.pow(num[0], 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}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"int setNum=Integer.parseInt(str);",
"setNum",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"for (int h = 0; h < setNum; h++) {\n\t\t\t\tint[] num = new int[3];\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] numbers =str.split(\" \");\n\t\t\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}\n\t\t\t\tnum =sort(num);\n\t\t\t\tint answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);\n\t\t\t\tif(answer==(Math.pow(num[0], 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 h = 0;",
"int h = 0;",
"h",
"0",
"h < setNum",
"h",
"setNum",
"h++",
"h++",
"h",
"{\n\t\t\t\tint[] num = new int[3];\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] numbers =str.split(\" \");\n\t\t\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}\n\t\t\t\tnum =sort(num);\n\t\t\t\tint answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);\n\t\t\t\tif(answer==(Math.pow(num[0], 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\tint[] num = new int[3];\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] numbers =str.split(\" \");\n\t\t\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}\n\t\t\t\tnum =sort(num);\n\t\t\t\tint answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);\n\t\t\t\tif(answer==(Math.pow(num[0], 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[] num = new int[3];",
"num",
"new int[3]",
"3",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] numbers =str.split(\" \");",
"numbers",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for (int i = 0; i < numbers.length; i++) {\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < numbers.length",
"i",
"numbers.length",
"numbers",
"numbers.length",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}",
"{\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}",
"num[i] = Integer.parseInt(numbers[i])",
"num[i]",
"num",
"i",
"Integer.parseInt(numbers[i])",
"Integer.parseInt",
"Integer",
"numbers[i]",
"numbers",
"i",
"num =sort(num)",
"num",
"sort(num)",
"sort",
"num",
"int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);",
"answer",
"(int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2)",
"(int)Math.pow(num[1], 2)",
"Math.pow",
"Math",
"num[1]",
"num",
"1",
"2",
"(int)Math.pow(num[2], 2)",
"Math.pow",
"Math",
"num[2]",
"num",
"2",
"2",
"if(answer==(Math.pow(num[0], 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}",
"answer==(Math.pow(num[0], 2))",
"answer",
"(Math.pow(num[0], 2))",
"Math.pow",
"Math",
"num[0]",
"num",
"0",
"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[] a",
"a",
"public class Main {\n\tpublic static int[] sort(int[] nums){\n\t\tfor(int h=nums.length-1;h>0;h--){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tif(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nums;\n\t}\n\tpublic static void main(String[] a) {\n\t\tBufferedReader br;\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\n\t\ttry {\n\t\t\t//data set num\n\t\t\tstr = br.readLine();\n\t\t\tint setNum=Integer.parseInt(str);\n\t\t\tfor (int h = 0; h < setNum; h++) {\n\t\t\t\tint[] num = new int[3];\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] numbers =str.split(\" \");\n\t\t\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}\n\t\t\t\tnum =sort(num);\n\t\t\t\tint answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);\n\t\t\t\tif(answer==(Math.pow(num[0], 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 (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}",
"public class Main {\n\tpublic static int[] sort(int[] nums){\n\t\tfor(int h=nums.length-1;h>0;h--){\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tif(nums[i]>nums[i-1]){\n\t\t\t\t\tint tmp=nums[i];\n\t\t\t\t\tnums[i]= nums[i-1];\n\t\t\t\t\tnums[i-1]=tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn nums;\n\t}\n\tpublic static void main(String[] a) {\n\t\tBufferedReader br;\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString str;\n\n\t\ttry {\n\t\t\t//data set num\n\t\t\tstr = br.readLine();\n\t\t\tint setNum=Integer.parseInt(str);\n\t\t\tfor (int h = 0; h < setNum; h++) {\n\t\t\t\tint[] num = new int[3];\n\t\t\t\tstr = br.readLine();\n\t\t\t\tString[] numbers =str.split(\" \");\n\t\t\t\tfor (int i = 0; i < numbers.length; i++) {\n\t\t\t\t\tnum[i] = Integer.parseInt(numbers[i]);\n\t\t\t\t}\n\t\t\t\tnum =sort(num);\n\t\t\t\tint answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);\n\t\t\t\tif(answer==(Math.pow(num[0], 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 (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static int[] sort(int[] nums){
for(int h=nums.length-1;h>0;h--){
for(int i=1;i<=h;i++){
if(nums[i]>nums[i-1]){
int tmp=nums[i];
nums[i]= nums[i-1];
nums[i-1]=tmp;
}
}
}
return nums;
}
public static void main(String[] a) {
BufferedReader br;
br = new BufferedReader(new InputStreamReader(System.in));
String str;
try {
//data set num
str = br.readLine();
int setNum=Integer.parseInt(str);
for (int h = 0; h < setNum; h++) {
int[] num = new int[3];
str = br.readLine();
String[] numbers =str.split(" ");
for (int i = 0; i < numbers.length; i++) {
num[i] = Integer.parseInt(numbers[i]);
}
num =sort(num);
int answer = (int)Math.pow(num[1], 2)+(int)Math.pow(num[2], 2);
if(answer==(Math.pow(num[0], 2))){
System.out.println("YES");
}else {
System.out.println("NO");
}
}
} catch (IOException e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
30,
41,
13,
41,
13,
41,
13,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
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,
14,
2,
2,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
137,
11
],
[
137,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
22,
23
],
[
19,
24
],
[
24,
25
],
[
19,
26
],
[
26,
27
],
[
26,
28
],
[
19,
29
],
[
29,
30
],
[
29,
31
],
[
19,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
19,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
38,
46
],
[
46,
47
],
[
47,
48
],
[
38,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
50,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
50,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
50,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
81,
83
],
[
50,
84
],
[
84,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
92,
94
],
[
87,
95
],
[
95,
96
],
[
95,
97
],
[
86,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
106,
108
],
[
86,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
114,
115
],
[
114,
116
],
[
109,
117
],
[
117,
118
],
[
117,
119
],
[
84,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
84,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
128,
133
],
[
12,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\ttry {\n\t\t\tint a;\n\t\t\tint b;\n\t\t\tint c;\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = new String(reader.readLine());\n\t\t\tint setsu = Integer.parseInt(s);\n\t\t\tfor(int i=1;i<=setsu;i++){\n\t\t\t\tString Tri = new String(reader.readLine());\n\t\t\t\tString[] result1 = Tri.split(\" \");\n\t\t\t\ta = Integer.parseInt(result1[0]);\n\t\t\t\tb = Integer.parseInt(result1[1]);\n\t\t\t\tc = Integer.parseInt(result1[2]);\n\t\t\t\tif(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\ttry {\n\t\t\tint a;\n\t\t\tint b;\n\t\t\tint c;\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = new String(reader.readLine());\n\t\t\tint setsu = Integer.parseInt(s);\n\t\t\tfor(int i=1;i<=setsu;i++){\n\t\t\t\tString Tri = new String(reader.readLine());\n\t\t\t\tString[] result1 = Tri.split(\" \");\n\t\t\t\ta = Integer.parseInt(result1[0]);\n\t\t\t\tb = Integer.parseInt(result1[1]);\n\t\t\t\tc = Integer.parseInt(result1[2]);\n\t\t\t\tif(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\ttry {\n\t\t\tint a;\n\t\t\tint b;\n\t\t\tint c;\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = new String(reader.readLine());\n\t\t\tint setsu = Integer.parseInt(s);\n\t\t\tfor(int i=1;i<=setsu;i++){\n\t\t\t\tString Tri = new String(reader.readLine());\n\t\t\t\tString[] result1 = Tri.split(\" \");\n\t\t\t\ta = Integer.parseInt(result1[0]);\n\t\t\t\tb = Integer.parseInt(result1[1]);\n\t\t\t\tc = Integer.parseInt(result1[2]);\n\t\t\t\tif(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\n\t\t}\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\t\ttry {\n\t\t\tint a;\n\t\t\tint b;\n\t\t\tint c;\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = new String(reader.readLine());\n\t\t\tint setsu = Integer.parseInt(s);\n\t\t\tfor(int i=1;i<=setsu;i++){\n\t\t\t\tString Tri = new String(reader.readLine());\n\t\t\t\tString[] result1 = Tri.split(\" \");\n\t\t\t\ta = Integer.parseInt(result1[0]);\n\t\t\t\tb = Integer.parseInt(result1[1]);\n\t\t\t\tc = Integer.parseInt(result1[2]);\n\t\t\t\tif(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\n\t\t}\n\t}",
"try {\n\t\t\tint a;\n\t\t\tint b;\n\t\t\tint c;\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = new String(reader.readLine());\n\t\t\tint setsu = Integer.parseInt(s);\n\t\t\tfor(int i=1;i<=setsu;i++){\n\t\t\t\tString Tri = new String(reader.readLine());\n\t\t\t\tString[] result1 = Tri.split(\" \");\n\t\t\t\ta = Integer.parseInt(result1[0]);\n\t\t\t\tb = Integer.parseInt(result1[1]);\n\t\t\t\tc = Integer.parseInt(result1[2]);\n\t\t\t\tif(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t}\n\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\tint a;\n\t\t\tint b;\n\t\t\tint c;\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = new String(reader.readLine());\n\t\t\tint setsu = Integer.parseInt(s);\n\t\t\tfor(int i=1;i<=setsu;i++){\n\t\t\t\tString Tri = new String(reader.readLine());\n\t\t\t\tString[] result1 = Tri.split(\" \");\n\t\t\t\ta = Integer.parseInt(result1[0]);\n\t\t\t\tb = Integer.parseInt(result1[1]);\n\t\t\t\tc = Integer.parseInt(result1[2]);\n\t\t\t\tif(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t}",
"int a;",
"a",
"int b;",
"b",
"int c;",
"c",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String s = new String(reader.readLine());",
"s",
"new String(reader.readLine())",
"int setsu = Integer.parseInt(s);",
"setsu",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"for(int i=1;i<=setsu;i++){\n\t\t\t\tString Tri = new String(reader.readLine());\n\t\t\t\tString[] result1 = Tri.split(\" \");\n\t\t\t\ta = Integer.parseInt(result1[0]);\n\t\t\t\tb = Integer.parseInt(result1[1]);\n\t\t\t\tc = Integer.parseInt(result1[2]);\n\t\t\t\tif(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=setsu",
"i",
"setsu",
"i++",
"i++",
"i",
"{\n\t\t\t\tString Tri = new String(reader.readLine());\n\t\t\t\tString[] result1 = Tri.split(\" \");\n\t\t\t\ta = Integer.parseInt(result1[0]);\n\t\t\t\tb = Integer.parseInt(result1[1]);\n\t\t\t\tc = Integer.parseInt(result1[2]);\n\t\t\t\tif(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t}",
"{\n\t\t\t\tString Tri = new String(reader.readLine());\n\t\t\t\tString[] result1 = Tri.split(\" \");\n\t\t\t\ta = Integer.parseInt(result1[0]);\n\t\t\t\tb = Integer.parseInt(result1[1]);\n\t\t\t\tc = Integer.parseInt(result1[2]);\n\t\t\t\tif(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t}",
"String Tri = new String(reader.readLine());",
"Tri",
"new String(reader.readLine())",
"String[] result1 = Tri.split(\" \");",
"result1",
"Tri.split(\" \")",
"Tri.split",
"Tri",
"\" \"",
"a = Integer.parseInt(result1[0])",
"a",
"Integer.parseInt(result1[0])",
"Integer.parseInt",
"Integer",
"result1[0]",
"result1",
"0",
"b = Integer.parseInt(result1[1])",
"b",
"Integer.parseInt(result1[1])",
"Integer.parseInt",
"Integer",
"result1[1]",
"result1",
"1",
"c = Integer.parseInt(result1[2])",
"c",
"Integer.parseInt(result1[2])",
"Integer.parseInt",
"Integer",
"result1[2]",
"result1",
"2",
"if(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}",
"((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b))",
"((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(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",
"((c*c)+(b*b)==(a*a))",
"(c*c)+(b*b)",
"(c*c)",
"c",
"c",
"(b*b)",
"b",
"b",
"(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\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\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\ttry {\n\t\t\tint a;\n\t\t\tint b;\n\t\t\tint c;\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = new String(reader.readLine());\n\t\t\tint setsu = Integer.parseInt(s);\n\t\t\tfor(int i=1;i<=setsu;i++){\n\t\t\t\tString Tri = new String(reader.readLine());\n\t\t\t\tString[] result1 = Tri.split(\" \");\n\t\t\t\ta = Integer.parseInt(result1[0]);\n\t\t\t\tb = Integer.parseInt(result1[1]);\n\t\t\t\tc = Integer.parseInt(result1[2]);\n\t\t\t\tif(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\ttry {\n\t\t\tint a;\n\t\t\tint b;\n\t\t\tint c;\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = new String(reader.readLine());\n\t\t\tint setsu = Integer.parseInt(s);\n\t\t\tfor(int i=1;i<=setsu;i++){\n\t\t\t\tString Tri = new String(reader.readLine());\n\t\t\t\tString[] result1 = Tri.split(\" \");\n\t\t\t\ta = Integer.parseInt(result1[0]);\n\t\t\t\tb = Integer.parseInt(result1[1]);\n\t\t\t\tc = Integer.parseInt(result1[2]);\n\t\t\t\tif(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t\t}else\n\t\t\t\t{\n\t\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t\t}\n\n\t\t\t}\n\n\t\t} catch (IOException e) {\n\n\t\t}\n\t}\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
// TODO ?????????????????????????????????????????????
try {
int a;
int b;
int c;
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = new String(reader.readLine());
int setsu = Integer.parseInt(s);
for(int i=1;i<=setsu;i++){
String Tri = new String(reader.readLine());
String[] result1 = Tri.split(" ");
a = Integer.parseInt(result1[0]);
b = Integer.parseInt(result1[1]);
c = Integer.parseInt(result1[2]);
if(((a*a)+(b*b)==(c*c))||((c*c)+(b*b)==(a*a))||((a*a)+(c*c)==(b*b)))
{
System.out.println("YES");
}else
{
System.out.println("NO");
}
}
} catch (IOException e) {
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
4,
18,
13,
17,
14,
2,
2,
2,
2,
13,
13,
13,
2,
2,
13,
13,
13,
2,
2,
13,
13,
13,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
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
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
14,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
43,
49
],
[
40,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
40,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
40,
68
],
[
68,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
70,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
68,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
68,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
14,
96
],
[
96,
97
],
[
96,
98
],
[
96,
99
],
[
100,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
12,
107
],
[
107,
108
]
] | [
"import java.util.ArrayList;\nimport java.util.List;\nimport java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> ret = new ArrayList<String>();\n\t\tint i, max = sc.nextInt();\n\t\tfor (i = 0; i < max; i++) {\n\t\t\tdouble a = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble b = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble c = Math.pow(sc.nextInt(), 2);\n\t\t\tif (a + b == c || b + c == a || a + c == b) {\n\t\t\t\tret.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tret.add(\"NO\");\n\t\t\t}\n\t\t}\n\t\tfor (String text : ret) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> ret = new ArrayList<String>();\n\t\tint i, max = sc.nextInt();\n\t\tfor (i = 0; i < max; i++) {\n\t\t\tdouble a = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble b = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble c = Math.pow(sc.nextInt(), 2);\n\t\t\tif (a + b == c || b + c == a || a + c == b) {\n\t\t\t\tret.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tret.add(\"NO\");\n\t\t\t}\n\t\t}\n\t\tfor (String text : ret) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> ret = new ArrayList<String>();\n\t\tint i, max = sc.nextInt();\n\t\tfor (i = 0; i < max; i++) {\n\t\t\tdouble a = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble b = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble c = Math.pow(sc.nextInt(), 2);\n\t\t\tif (a + b == c || b + c == a || a + c == b) {\n\t\t\t\tret.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tret.add(\"NO\");\n\t\t\t}\n\t\t}\n\t\tfor (String text : ret) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tList<String> ret = new ArrayList<String>();\n\t\tint i, max = sc.nextInt();\n\t\tfor (i = 0; i < max; i++) {\n\t\t\tdouble a = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble b = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble c = Math.pow(sc.nextInt(), 2);\n\t\t\tif (a + b == c || b + c == a || a + c == b) {\n\t\t\t\tret.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tret.add(\"NO\");\n\t\t\t}\n\t\t}\n\t\tfor (String text : ret) {\n\t\t\tSystem.out.println(text);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"List<String> ret = new ArrayList<String>();",
"ret",
"new ArrayList<String>()",
"int i",
"i",
"max = sc.nextInt();",
"max",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (i = 0; i < max; i++) {\n\t\t\tdouble a = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble b = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble c = Math.pow(sc.nextInt(), 2);\n\t\t\tif (a + b == c || b + c == a || a + c == b) {\n\t\t\t\tret.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tret.add(\"NO\");\n\t\t\t}\n\t\t}",
"i = 0;",
"i = 0",
"i",
"0",
"i < max",
"i",
"max",
"i++",
"i++",
"i",
"{\n\t\t\tdouble a = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble b = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble c = Math.pow(sc.nextInt(), 2);\n\t\t\tif (a + b == c || b + c == a || a + c == b) {\n\t\t\t\tret.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tret.add(\"NO\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tdouble a = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble b = Math.pow(sc.nextInt(), 2);\n\t\t\tdouble c = Math.pow(sc.nextInt(), 2);\n\t\t\tif (a + b == c || b + c == a || a + c == b) {\n\t\t\t\tret.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tret.add(\"NO\");\n\t\t\t}\n\t\t}",
"double a = Math.pow(sc.nextInt(), 2);",
"a",
"Math.pow(sc.nextInt(), 2)",
"Math.pow",
"Math",
"sc.nextInt()",
"sc.nextInt",
"sc",
"2",
"double b = Math.pow(sc.nextInt(), 2);",
"b",
"Math.pow(sc.nextInt(), 2)",
"Math.pow",
"Math",
"sc.nextInt()",
"sc.nextInt",
"sc",
"2",
"double c = Math.pow(sc.nextInt(), 2);",
"c",
"Math.pow(sc.nextInt(), 2)",
"Math.pow",
"Math",
"sc.nextInt()",
"sc.nextInt",
"sc",
"2",
"if (a + b == c || b + c == a || a + c == b) {\n\t\t\t\tret.add(\"YES\");\n\t\t\t} else {\n\t\t\t\tret.add(\"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\tret.add(\"YES\");\n\t\t\t}",
"ret.add(\"YES\")",
"ret.add",
"ret",
"\"YES\"",
"{\n\t\t\t\tret.add(\"NO\");\n\t\t\t}",
"ret.add(\"NO\")",
"ret.add",
"ret",
"\"NO\"",
"for (String text : ret) {\n\t\t\tSystem.out.println(text);\n\t\t}",
"String text",
"ret",
"{\n\t\t\tSystem.out.println(text);\n\t\t}",
"{\n\t\t\tSystem.out.println(text);\n\t\t}",
"System.out.println(text)",
"System.out.println",
"System.out",
"System",
"System.out",
"text",
"String[] args",
"args"
] | import java.util.ArrayList;
import java.util.List;
import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
List<String> ret = new ArrayList<String>();
int i, max = sc.nextInt();
for (i = 0; i < max; i++) {
double a = Math.pow(sc.nextInt(), 2);
double b = Math.pow(sc.nextInt(), 2);
double c = Math.pow(sc.nextInt(), 2);
if (a + b == c || b + c == a || a + c == b) {
ret.add("YES");
} else {
ret.add("NO");
}
}
for (String text : ret) {
System.out.println(text);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
41,
13,
41,
13,
17,
41,
13,
20,
17,
12,
13,
30,
42,
4,
13,
30,
4,
13,
23,
13,
12,
13,
30,
14,
40,
4,
18,
13,
29,
17,
14,
2,
13,
13,
0,
13,
4,
18,
13,
0,
18,
13,
13,
4,
18,
13,
40,
13,
29,
17,
12,
13,
30,
14,
2,
13,
17,
29,
4,
18,
18,
13,
13,
8,
2,
2,
2,
2,
18,
13,
17,
18,
13,
17,
2,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
2,
2,
18,
13,
17,
18,
13,
17,
2,
2,
18,
13,
17,
18,
13,
17,
2,
18,
13,
17,
18,
13,
17,
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,
0,
13,
17,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
152,
5
],
[
152,
6
],
[
6,
7
],
[
6,
8
],
[
152,
9
],
[
9,
10
],
[
152,
11
],
[
11,
12
],
[
152,
13
],
[
13,
14
],
[
13,
15
],
[
152,
16
],
[
16,
17
],
[
16,
18
],
[
152,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
152,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
34,
39
],
[
39,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
33,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
33,
57
],
[
57,
58
],
[
33,
59
],
[
59,
60
],
[
152,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
77,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
97,
99
],
[
76,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
108,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
120,
122
],
[
75,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
124,
128
],
[
128,
129
],
[
128,
130
],
[
123,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
132,
136
],
[
136,
137
],
[
136,
138
],
[
131,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
139,
143
],
[
143,
144
],
[
143,
145
],
[
74,
146
],
[
74,
147
],
[
63,
148
],
[
148,
149
],
[
148,
150
],
[
0,
151
],
[
151,
152
],
[
151,
153
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\t\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int n, m, i=0;\n\tstatic int a[] = new int[3];\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\twhile(read())\n\t\t{\n\t\t\tsolve();\n\t\t}\n\t}\n\t\n\tstatic boolean read(){\n\t\tif(!sc.hasNext()) return false;\n\t\tif(n == m) n = sc.nextInt();\n\t\t\n\t\ta[i] = sc.nextInt();\n\t\ti++;\n\t\t\n\t\treturn true;\n\t}\n\t\n\tstatic void solve(){\n\t\tif(i != 3) return;\n\t\t\n\t\tSystem.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||\n\t\t a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||\n\t\t a[2] * a[2] == a[0] * a[0] + a[1] * a[1])\n\t\t ?\"YES\":\"NO\");\n\t\ti=0;\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int n, m, i=0;\n\tstatic int a[] = new int[3];\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\twhile(read())\n\t\t{\n\t\t\tsolve();\n\t\t}\n\t}\n\t\n\tstatic boolean read(){\n\t\tif(!sc.hasNext()) return false;\n\t\tif(n == m) n = sc.nextInt();\n\t\t\n\t\ta[i] = sc.nextInt();\n\t\ti++;\n\t\t\n\t\treturn true;\n\t}\n\t\n\tstatic void solve(){\n\t\tif(i != 3) return;\n\t\t\n\t\tSystem.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||\n\t\t a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||\n\t\t a[2] * a[2] == a[0] * a[0] + a[1] * a[1])\n\t\t ?\"YES\":\"NO\");\n\t\ti=0;\n\t}\n\n}",
"Main",
"static Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"static int n",
"n",
"m",
"m",
"i=0;",
"i",
"0",
"static int a[] = new int[3];",
"a",
"new int[3]",
"3",
"public static void main(String[] args) {\n\t\t\n\t\twhile(read())\n\t\t{\n\t\t\tsolve();\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\twhile(read())\n\t\t{\n\t\t\tsolve();\n\t\t}\n\t}",
"while(read())\n\t\t{\n\t\t\tsolve();\n\t\t}",
"read()",
"read",
"{\n\t\t\tsolve();\n\t\t}",
"solve()",
"solve",
"String[] args",
"args",
"static boolean read(){\n\t\tif(!sc.hasNext()) return false;\n\t\tif(n == m) n = sc.nextInt();\n\t\t\n\t\ta[i] = sc.nextInt();\n\t\ti++;\n\t\t\n\t\treturn true;\n\t}",
"read",
"{\n\t\tif(!sc.hasNext()) return false;\n\t\tif(n == m) n = sc.nextInt();\n\t\t\n\t\ta[i] = sc.nextInt();\n\t\ti++;\n\t\t\n\t\treturn true;\n\t}",
"if(!sc.hasNext()) return false;",
"!sc.hasNext()",
"sc.hasNext()",
"sc.hasNext",
"sc",
"return false;",
"false",
"if(n == m) n = sc.nextInt();",
"n == m",
"n",
"m",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"a[i] = sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"i++",
"i",
"return true;",
"true",
"static void solve(){\n\t\tif(i != 3) return;\n\t\t\n\t\tSystem.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||\n\t\t a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||\n\t\t a[2] * a[2] == a[0] * a[0] + a[1] * a[1])\n\t\t ?\"YES\":\"NO\");\n\t\ti=0;\n\t}",
"solve",
"{\n\t\tif(i != 3) return;\n\t\t\n\t\tSystem.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||\n\t\t a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||\n\t\t a[2] * a[2] == a[0] * a[0] + a[1] * a[1])\n\t\t ?\"YES\":\"NO\");\n\t\ti=0;\n\t}",
"if(i != 3) return;",
"i != 3",
"i",
"3",
"return;",
"System.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||\n\t\t a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||\n\t\t a[2] * a[2] == a[0] * a[0] + a[1] * a[1])\n\t\t ?\"YES\":\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"(a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||\n\t\t a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||\n\t\t a[2] * a[2] == a[0] * a[0] + a[1] * a[1])\n\t\t ?\"YES\":\"NO\"",
"(a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||\n\t\t a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||\n\t\t a[2] * a[2] == a[0] * a[0] + a[1] * a[1])",
"a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||\n\t\t a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||\n\t\t a[2] * a[2] == a[0] * a[0] + a[1] * a[1]",
"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",
"a[1] * a[1] == a[0] * a[0] + a[2] * a[2]",
"a[1] * a[1]",
"a[1]",
"a",
"1",
"a[1]",
"a",
"1",
"a[0] * a[0] + a[2] * a[2]",
"a[0] * a[0]",
"a[0]",
"a",
"0",
"a[0]",
"a",
"0",
"a[2] * a[2]",
"a[2]",
"a",
"2",
"a[2]",
"a",
"2",
"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\"",
"i=0",
"i",
"0",
"public class Main {\n\t\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int n, m, i=0;\n\tstatic int a[] = new int[3];\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\twhile(read())\n\t\t{\n\t\t\tsolve();\n\t\t}\n\t}\n\t\n\tstatic boolean read(){\n\t\tif(!sc.hasNext()) return false;\n\t\tif(n == m) n = sc.nextInt();\n\t\t\n\t\ta[i] = sc.nextInt();\n\t\ti++;\n\t\t\n\t\treturn true;\n\t}\n\t\n\tstatic void solve(){\n\t\tif(i != 3) return;\n\t\t\n\t\tSystem.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||\n\t\t a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||\n\t\t a[2] * a[2] == a[0] * a[0] + a[1] * a[1])\n\t\t ?\"YES\":\"NO\");\n\t\ti=0;\n\t}\n\n}",
"public class Main {\n\t\n\tstatic Scanner sc = new Scanner(System.in);\n\tstatic int n, m, i=0;\n\tstatic int a[] = new int[3];\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\twhile(read())\n\t\t{\n\t\t\tsolve();\n\t\t}\n\t}\n\t\n\tstatic boolean read(){\n\t\tif(!sc.hasNext()) return false;\n\t\tif(n == m) n = sc.nextInt();\n\t\t\n\t\ta[i] = sc.nextInt();\n\t\ti++;\n\t\t\n\t\treturn true;\n\t}\n\t\n\tstatic void solve(){\n\t\tif(i != 3) return;\n\t\t\n\t\tSystem.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||\n\t\t a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||\n\t\t a[2] * a[2] == a[0] * a[0] + a[1] * a[1])\n\t\t ?\"YES\":\"NO\");\n\t\ti=0;\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
static Scanner sc = new Scanner(System.in);
static int n, m, i=0;
static int a[] = new int[3];
public static void main(String[] args) {
while(read())
{
solve();
}
}
static boolean read(){
if(!sc.hasNext()) return false;
if(n == m) n = sc.nextInt();
a[i] = sc.nextInt();
i++;
return true;
}
static void solve(){
if(i != 3) return;
System.out.println((a[0] * a[0] == a[1] * a[1] + a[2] * a[2] ||
a[1] * a[1] == a[0] * a[0] + a[2] * a[2] ||
a[2] * a[2] == a[0] * a[0] + a[1] * a[1])
?"YES":"NO");
i=0;
}
} |
[
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,
13,
13,
30,
14,
2,
13,
13,
30,
4,
13,
13,
13,
13,
30,
4,
13,
13,
13,
13,
30,
14,
2,
13,
13,
30,
4,
13,
13,
13,
13,
30,
4,
13,
13,
13,
13,
23,
13,
12,
13,
30,
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,
23,
13,
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
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
29,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
55,
58
],
[
55,
59
],
[
50,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
61,
64
],
[
61,
65
],
[
45,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
72,
75
],
[
72,
76
],
[
67,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
78,
81
],
[
78,
82
],
[
6,
83
],
[
83,
84
],
[
127,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
90,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
96,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
101,
105
],
[
88,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
88,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
85,
120
],
[
120,
121
],
[
85,
122
],
[
122,
123
],
[
85,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
] | [
"\nimport 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 n = stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint c = stdIn.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\tif(b<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(a<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\tstatic void func(int a,int b,int c){\n\t\tif(Math.pow(a,2) == (Math.pow(b,2)+Math.pow(c,2))){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n}",
"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 n = stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint c = stdIn.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\tif(b<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(a<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\tstatic void func(int a,int b,int c){\n\t\tif(Math.pow(a,2) == (Math.pow(b,2)+Math.pow(c,2))){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint c = stdIn.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\tif(b<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(a<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint c = stdIn.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\tif(b<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(a<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for(int i=0;i<n;i++){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint c = stdIn.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\tif(b<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(a<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint c = stdIn.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\tif(b<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(a<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint c = stdIn.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\tif(b<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(a<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int a = stdIn.nextInt();",
"a",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int b = stdIn.nextInt();",
"b",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int c = stdIn.nextInt();",
"c",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"if(a<b){\n\t\t\t\tif(b<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(a<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}\n\t\t\t}",
"a<b",
"a",
"b",
"{\n\t\t\t\tif(b<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}\n\t\t\t}",
"if(b<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}",
"b<c",
"b",
"c",
"{\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}",
"func(c,a,b)",
"func",
"c",
"a",
"b",
"{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}",
"func(b,a,c)",
"func",
"b",
"a",
"c",
"{\n\t\t\t\tif(a<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}\n\t\t\t}",
"if(a<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}",
"a<c",
"a",
"c",
"{\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}",
"func(c,a,b)",
"func",
"c",
"a",
"b",
"{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}",
"func(a,b,c)",
"func",
"a",
"b",
"c",
"String[] args",
"args",
"static void func(int a,int b,int c){\n\t\tif(Math.pow(a,2) == (Math.pow(b,2)+Math.pow(c,2))){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}",
"func",
"{\n\t\tif(Math.pow(a,2) == (Math.pow(b,2)+Math.pow(c,2))){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}",
"if(Math.pow(a,2) == (Math.pow(b,2)+Math.pow(c,2))){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}",
"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\t\t\tSystem.out.println(\"YES\");\n\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"int a",
"a",
"int b",
"b",
"int c",
"c",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint c = stdIn.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\tif(b<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(a<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\tstatic void func(int a,int b,int c){\n\t\tif(Math.pow(a,2) == (Math.pow(b,2)+Math.pow(c,2))){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tfor(int i=0;i<n;i++){\n\t\t\tint a = stdIn.nextInt();\n\t\t\tint b = stdIn.nextInt();\n\t\t\tint c = stdIn.nextInt();\n\t\t\t\n\t\t\tif(a<b){\n\t\t\t\tif(b<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(b,a,c);\n\t\t\t\t}\n\t\t\t}\n\t\t\telse{\n\t\t\t\tif(a<c){\n\t\t\t\t\tfunc(c,a,b);\n\t\t\t\t}\n\t\t\t\telse{\n\t\t\t\t\tfunc(a,b,c);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\t\n\tstatic void func(int a,int b,int c){\n\t\tif(Math.pow(a,2) == (Math.pow(b,2)+Math.pow(c,2))){\n\t\t\tSystem.out.println(\"YES\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"NO\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner stdIn = new Scanner(System.in);
int n = stdIn.nextInt();
for(int i=0;i<n;i++){
int a = stdIn.nextInt();
int b = stdIn.nextInt();
int c = stdIn.nextInt();
if(a<b){
if(b<c){
func(c,a,b);
}
else{
func(b,a,c);
}
}
else{
if(a<c){
func(c,a,b);
}
else{
func(a,b,c);
}
}
}
}
static void func(int a,int b,int 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,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
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,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
39,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
39,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
64,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
84,
86
],
[
63,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
63,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
12,
99
],
[
99,
100
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\nimport static java.lang.Math.*;\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 temp[]=new int[3];\n\t\tfor(int i = 0;i < n; i++){\n\t\t\tfor(int j = 0;j < 3; j++)\ttemp[j]=sc.nextInt();\n\t\t\tArrays.sort(temp);\n\t\t\t\n\t\t\n\t\t\tif(temp[0]*temp[0]+temp[1]*temp[1]==temp[2]*temp[2])System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\n\t\t}\n\t}\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"import static java.lang.Math.*;",
"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 temp[]=new int[3];\n\t\tfor(int i = 0;i < n; i++){\n\t\t\tfor(int j = 0;j < 3; j++)\ttemp[j]=sc.nextInt();\n\t\t\tArrays.sort(temp);\n\t\t\t\n\t\t\n\t\t\tif(temp[0]*temp[0]+temp[1]*temp[1]==temp[2]*temp[2])System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint temp[]=new int[3];\n\t\tfor(int i = 0;i < n; i++){\n\t\t\tfor(int j = 0;j < 3; j++)\ttemp[j]=sc.nextInt();\n\t\t\tArrays.sort(temp);\n\t\t\t\n\t\t\n\t\t\tif(temp[0]*temp[0]+temp[1]*temp[1]==temp[2]*temp[2])System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tint temp[]=new int[3];\n\t\tfor(int i = 0;i < n; i++){\n\t\t\tfor(int j = 0;j < 3; j++)\ttemp[j]=sc.nextInt();\n\t\t\tArrays.sort(temp);\n\t\t\t\n\t\t\n\t\t\tif(temp[0]*temp[0]+temp[1]*temp[1]==temp[2]*temp[2])System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\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 temp[]=new int[3];",
"temp",
"new int[3]",
"3",
"for(int i = 0;i < n; i++){\n\t\t\tfor(int j = 0;j < 3; j++)\ttemp[j]=sc.nextInt();\n\t\t\tArrays.sort(temp);\n\t\t\t\n\t\t\n\t\t\tif(temp[0]*temp[0]+temp[1]*temp[1]==temp[2]*temp[2])System.out.println(\"YES\");\n\t\t\telse 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\tfor(int j = 0;j < 3; j++)\ttemp[j]=sc.nextInt();\n\t\t\tArrays.sort(temp);\n\t\t\t\n\t\t\n\t\t\tif(temp[0]*temp[0]+temp[1]*temp[1]==temp[2]*temp[2])System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\n\t\t}",
"{\n\t\t\tfor(int j = 0;j < 3; j++)\ttemp[j]=sc.nextInt();\n\t\t\tArrays.sort(temp);\n\t\t\t\n\t\t\n\t\t\tif(temp[0]*temp[0]+temp[1]*temp[1]==temp[2]*temp[2])System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\n\t\t}",
"for(int j = 0;j < 3; j++)\ttemp[j]=sc.nextInt();",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"temp[j]=sc.nextInt();",
"temp[j]=sc.nextInt()",
"temp[j]",
"temp",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Arrays.sort(temp)",
"Arrays.sort",
"Arrays",
"temp",
"if(temp[0]*temp[0]+temp[1]*temp[1]==temp[2]*temp[2])System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");",
"temp[0]*temp[0]+temp[1]*temp[1]==temp[2]*temp[2]",
"temp[0]*temp[0]+temp[1]*temp[1]",
"temp[0]*temp[0]",
"temp[0]",
"temp",
"0",
"temp[0]",
"temp",
"0",
"temp[1]*temp[1]",
"temp[1]",
"temp",
"1",
"temp[1]",
"temp",
"1",
"temp[2]*temp[2]",
"temp[2]",
"temp",
"2",
"temp[2]",
"temp",
"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.Arrays;
import java.util.Scanner;
import static java.lang.Math.*;
class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n=sc.nextInt();
int temp[]=new int[3];
for(int i = 0;i < n; i++){
for(int j = 0;j < 3; j++) temp[j]=sc.nextInt();
Arrays.sort(temp);
if(temp[0]*temp[0]+temp[1]*temp[1]==temp[2]*temp[2])System.out.println("YES");
else System.out.println("NO");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
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,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
124,
5
],
[
124,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
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
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
32,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
32,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
32,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
32,
68
],
[
68,
69
],
[
70,
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
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
87,
89
],
[
82,
90
],
[
90,
91
],
[
90,
92
],
[
70,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
98,
100
],
[
93,
101
],
[
101,
102
],
[
101,
103
],
[
68,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
68,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
8,
118
],
[
118,
119
],
[
119,
120
],
[
6,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
] | [
"\nimport java.io.*;\n\npublic class Main {\n\n\t//ツ 0003\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(reader.readLine());\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tString s = reader.readLine();\n//\t\t\tif (s == null)\n//\t\t\t\tbreak;\n\t\t\t\n\t\t\tString[] sp = s.split(\" \");\n\t\t\tint a = Integer.parseInt(sp[0]);\n\t\t\tint b = Integer.parseInt(sp[1]);\n\t\t\tint c = Integer.parseInt(sp[2]);\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.printf(\"YES\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"NO\\n\");\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\t//ツ 0003\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(reader.readLine());\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tString s = reader.readLine();\n//\t\t\tif (s == null)\n//\t\t\t\tbreak;\n\t\t\t\n\t\t\tString[] sp = s.split(\" \");\n\t\t\tint a = Integer.parseInt(sp[0]);\n\t\t\tint b = Integer.parseInt(sp[1]);\n\t\t\tint c = Integer.parseInt(sp[2]);\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.printf(\"YES\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"NO\\n\");\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}\n}",
"Main",
"//ツ 0003\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(reader.readLine());\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tString s = reader.readLine();\n//\t\t\tif (s == null)\n//\t\t\t\tbreak;\n\t\t\t\n\t\t\tString[] sp = s.split(\" \");\n\t\t\tint a = Integer.parseInt(sp[0]);\n\t\t\tint b = Integer.parseInt(sp[1]);\n\t\t\tint c = Integer.parseInt(sp[2]);\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.printf(\"YES\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"NO\\n\");\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}",
"main",
"{\n\t\t\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(reader.readLine());\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tString s = reader.readLine();\n//\t\t\tif (s == null)\n//\t\t\t\tbreak;\n\t\t\t\n\t\t\tString[] sp = s.split(\" \");\n\t\t\tint a = Integer.parseInt(sp[0]);\n\t\t\tint b = Integer.parseInt(sp[1]);\n\t\t\tint c = Integer.parseInt(sp[2]);\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.printf(\"YES\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"NO\\n\");\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(reader.readLine());",
"n",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"for(int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tString s = reader.readLine();\n//\t\t\tif (s == null)\n//\t\t\t\tbreak;\n\t\t\t\n\t\t\tString[] sp = s.split(\" \");\n\t\t\tint a = Integer.parseInt(sp[0]);\n\t\t\tint b = Integer.parseInt(sp[1]);\n\t\t\tint c = Integer.parseInt(sp[2]);\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.printf(\"YES\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"NO\\n\");\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\n\t\t\tString s = reader.readLine();\n//\t\t\tif (s == null)\n//\t\t\t\tbreak;\n\t\t\t\n\t\t\tString[] sp = s.split(\" \");\n\t\t\tint a = Integer.parseInt(sp[0]);\n\t\t\tint b = Integer.parseInt(sp[1]);\n\t\t\tint c = Integer.parseInt(sp[2]);\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.printf(\"YES\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"NO\\n\");\n\t\t\t}\n\t\t}",
"{\n\t\t\t\n\t\t\tString s = reader.readLine();\n//\t\t\tif (s == null)\n//\t\t\t\tbreak;\n\t\t\t\n\t\t\tString[] sp = s.split(\" \");\n\t\t\tint a = Integer.parseInt(sp[0]);\n\t\t\tint b = Integer.parseInt(sp[1]);\n\t\t\tint c = Integer.parseInt(sp[2]);\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.printf(\"YES\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"NO\\n\");\n\t\t\t}\n\t\t}",
"String s = reader.readLine();",
"s",
"reader.readLine()",
"reader.readLine",
"reader",
"String[] sp = s.split(\" \");",
"sp",
"s.split(\" \")",
"s.split",
"s",
"\" \"",
"int a = Integer.parseInt(sp[0]);",
"a",
"Integer.parseInt(sp[0])",
"Integer.parseInt",
"Integer",
"sp[0]",
"sp",
"0",
"int b = Integer.parseInt(sp[1]);",
"b",
"Integer.parseInt(sp[1])",
"Integer.parseInt",
"Integer",
"sp[1]",
"sp",
"1",
"int c = Integer.parseInt(sp[2]);",
"c",
"Integer.parseInt(sp[2])",
"Integer.parseInt",
"Integer",
"sp[2]",
"sp",
"2",
"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.printf(\"YES\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"NO\\n\");\n\t\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\t\tSystem.out.printf(\"YES\\n\");\n\t\t\t}",
"System.out.printf(\"YES\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"YES\\n\"",
"{\n\t\t\t\tSystem.out.printf(\"NO\\n\");\n\t\t\t}",
"System.out.printf(\"NO\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"NO\\n\"",
"reader.close()",
"reader.close",
"reader",
"String[] args",
"args",
"public class Main {\n\n\t//ツ 0003\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(reader.readLine());\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tString s = reader.readLine();\n//\t\t\tif (s == null)\n//\t\t\t\tbreak;\n\t\t\t\n\t\t\tString[] sp = s.split(\" \");\n\t\t\tint a = Integer.parseInt(sp[0]);\n\t\t\tint b = Integer.parseInt(sp[1]);\n\t\t\tint c = Integer.parseInt(sp[2]);\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.printf(\"YES\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"NO\\n\");\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}\n}",
"public class Main {\n\n\t//ツ 0003\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(reader.readLine());\n\t\t\n\t\tfor(int i = 0; i < n; i++) {\n\t\t\t\n\t\t\tString s = reader.readLine();\n//\t\t\tif (s == null)\n//\t\t\t\tbreak;\n\t\t\t\n\t\t\tString[] sp = s.split(\" \");\n\t\t\tint a = Integer.parseInt(sp[0]);\n\t\t\tint b = Integer.parseInt(sp[1]);\n\t\t\tint c = Integer.parseInt(sp[2]);\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.printf(\"YES\\n\");\n\t\t\t}\n\t\t\telse {\n\t\t\t\tSystem.out.printf(\"NO\\n\");\n\t\t\t}\n\t\t}\n\t\treader.close();\n\t}\n}",
"Main"
] |
import java.io.*;
public class Main {
//ツ 0003
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(reader.readLine());
for(int i = 0; i < n; i++) {
String s = reader.readLine();
// if (s == null)
// break;
String[] sp = s.split(" ");
int a = Integer.parseInt(sp[0]);
int b = Integer.parseInt(sp[1]);
int c = Integer.parseInt(sp[2]);
if (a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a) {
System.out.printf("YES\n");
}
else {
System.out.printf("NO\n");
}
}
reader.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
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
],
[
120,
5
],
[
120,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
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
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
62,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
53,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
72,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
72,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
100,
101
],
[
100,
102
],
[
91,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
91,
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\n\tpublic static void main(String[] args) {\n\t\tint n1;\n\t\tint n2;\n\t\tint n3;\n\t\tint date;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdate = scan.nextInt();\n\n\t\tfor(int i = 0 ; i < date ;i++){\n\t\t\tn1 = scan.nextInt();\n\t\t\tn2 = scan.nextInt();\n\t\t\tn3 = scan.nextInt();\n\n\t\t\tif(n3 * n3 == n2*n2+n1*n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n2 * n2 == n3 * n3 + n1 * n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n1 * n1 == n3 * n3 + n2 * n2){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint n1;\n\t\tint n2;\n\t\tint n3;\n\t\tint date;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdate = scan.nextInt();\n\n\t\tfor(int i = 0 ; i < date ;i++){\n\t\t\tn1 = scan.nextInt();\n\t\t\tn2 = scan.nextInt();\n\t\t\tn3 = scan.nextInt();\n\n\t\t\tif(n3 * n3 == n2*n2+n1*n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n2 * n2 == n3 * n3 + n1 * n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n1 * n1 == n3 * n3 + n2 * n2){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tint n1;\n\t\tint n2;\n\t\tint n3;\n\t\tint date;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdate = scan.nextInt();\n\n\t\tfor(int i = 0 ; i < date ;i++){\n\t\t\tn1 = scan.nextInt();\n\t\t\tn2 = scan.nextInt();\n\t\t\tn3 = scan.nextInt();\n\n\t\t\tif(n3 * n3 == n2*n2+n1*n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n2 * n2 == n3 * n3 + n1 * n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n1 * n1 == n3 * n3 + n2 * n2){\n\t\t\t\tSystem.out.println(\"YES\");\n\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\tint n1;\n\t\tint n2;\n\t\tint n3;\n\t\tint date;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdate = scan.nextInt();\n\n\t\tfor(int i = 0 ; i < date ;i++){\n\t\t\tn1 = scan.nextInt();\n\t\t\tn2 = scan.nextInt();\n\t\t\tn3 = scan.nextInt();\n\n\t\t\tif(n3 * n3 == n2*n2+n1*n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n2 * n2 == n3 * n3 + n1 * n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n1 * n1 == n3 * n3 + n2 * n2){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}",
"int n1;",
"n1",
"int n2;",
"n2",
"int n3;",
"n3",
"int date;",
"date",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"date = scan.nextInt()",
"date",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 0 ; i < date ;i++){\n\t\t\tn1 = scan.nextInt();\n\t\t\tn2 = scan.nextInt();\n\t\t\tn3 = scan.nextInt();\n\n\t\t\tif(n3 * n3 == n2*n2+n1*n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n2 * n2 == n3 * n3 + n1 * n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n1 * n1 == n3 * n3 + n2 * n2){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < date",
"i",
"date",
"i++",
"i++",
"i",
"{\n\t\t\tn1 = scan.nextInt();\n\t\t\tn2 = scan.nextInt();\n\t\t\tn3 = scan.nextInt();\n\n\t\t\tif(n3 * n3 == n2*n2+n1*n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n2 * n2 == n3 * n3 + n1 * n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n1 * n1 == n3 * n3 + n2 * n2){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tn1 = scan.nextInt();\n\t\t\tn2 = scan.nextInt();\n\t\t\tn3 = scan.nextInt();\n\n\t\t\tif(n3 * n3 == n2*n2+n1*n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n2 * n2 == n3 * n3 + n1 * n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n1 * n1 == n3 * n3 + n2 * n2){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"n1 = scan.nextInt()",
"n1",
"scan.nextInt()",
"scan.nextInt",
"scan",
"n2 = scan.nextInt()",
"n2",
"scan.nextInt()",
"scan.nextInt",
"scan",
"n3 = scan.nextInt()",
"n3",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(n3 * n3 == n2*n2+n1*n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n2 * n2 == n3 * n3 + n1 * n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n1 * n1 == n3 * n3 + n2 * n2){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"n3 * n3 == n2*n2+n1*n1",
"n3 * n3",
"n3",
"n3",
"n2*n2+n1*n1",
"n2*n2",
"n2",
"n2",
"n1*n1",
"n1",
"n1",
"{\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"if(n2 * n2 == n3 * n3 + n1 * n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n1 * n1 == n3 * n3 + n2 * n2){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"n2 * n2 == n3 * n3 + n1 * n1",
"n2 * n2",
"n2",
"n2",
"n3 * n3 + n1 * n1",
"n3 * n3",
"n3",
"n3",
"n1 * n1",
"n1",
"n1",
"{\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"if(n1 * n1 == n3 * n3 + n2 * n2){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"n1 * n1 == n3 * n3 + n2 * n2",
"n1 * n1",
"n1",
"n1",
"n3 * n3 + n2 * n2",
"n3 * n3",
"n3",
"n3",
"n2 * n2",
"n2",
"n2",
"{\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint n1;\n\t\tint n2;\n\t\tint n3;\n\t\tint date;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdate = scan.nextInt();\n\n\t\tfor(int i = 0 ; i < date ;i++){\n\t\t\tn1 = scan.nextInt();\n\t\t\tn2 = scan.nextInt();\n\t\t\tn3 = scan.nextInt();\n\n\t\t\tif(n3 * n3 == n2*n2+n1*n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n2 * n2 == n3 * n3 + n1 * n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n1 * n1 == n3 * n3 + n2 * n2){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tint n1;\n\t\tint n2;\n\t\tint n3;\n\t\tint date;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tdate = scan.nextInt();\n\n\t\tfor(int i = 0 ; i < date ;i++){\n\t\t\tn1 = scan.nextInt();\n\t\t\tn2 = scan.nextInt();\n\t\t\tn3 = scan.nextInt();\n\n\t\t\tif(n3 * n3 == n2*n2+n1*n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n2 * n2 == n3 * n3 + n1 * n1){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else if(n1 * n1 == n3 * n3 + n2 * n2){\n\t\t\t\tSystem.out.println(\"YES\");\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
int n1;
int n2;
int n3;
int date;
Scanner scan = new Scanner(System.in);
date = scan.nextInt();
for(int i = 0 ; i < date ;i++){
n1 = scan.nextInt();
n2 = scan.nextInt();
n3 = scan.nextInt();
if(n3 * n3 == n2*n2+n1*n1){
System.out.println("YES");
}else if(n2 * n2 == n3 * n3 + n1 * n1){
System.out.println("YES");
}else if(n1 * n1 == n3 * n3 + n2 * n2){
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,
20,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
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,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
13,
14,
2,
2,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
17,
4,
18,
13,
18,
13,
17,
17,
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
],
[
125,
14
],
[
125,
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
],
[
17,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
30,
41
],
[
41,
42
],
[
42,
43
],
[
30,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
45,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
45,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
45,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
87,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
97,
98
],
[
97,
99
],
[
94,
100
],
[
85,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
84,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
109,
114
],
[
84,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
116,
121
],
[
15,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\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 f = br.readLine();\n\t\tint[] a = new int[3];\n\t\tfor(int i = 0 ; i < Integer.parseInt(f) ; i++){\n\t\t\tString str = br.readLine();\n\t\t\tString[] stra = str.split(\" \");\n\t\t\tfor(int j = 0 ; j < 3 ; j++){\n\t\t\t\ta[j] = Integer.parseInt(stra[j]);\n\t\t\t}\n\t\t\tArrays.sort(a);\n\t\t\tif(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.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\tString f = br.readLine();\n\t\tint[] a = new int[3];\n\t\tfor(int i = 0 ; i < Integer.parseInt(f) ; i++){\n\t\t\tString str = br.readLine();\n\t\t\tString[] stra = str.split(\" \");\n\t\t\tfor(int j = 0 ; j < 3 ; j++){\n\t\t\t\ta[j] = Integer.parseInt(stra[j]);\n\t\t\t}\n\t\t\tArrays.sort(a);\n\t\t\tif(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString f = br.readLine();\n\t\tint[] a = new int[3];\n\t\tfor(int i = 0 ; i < Integer.parseInt(f) ; i++){\n\t\t\tString str = br.readLine();\n\t\t\tString[] stra = str.split(\" \");\n\t\t\tfor(int j = 0 ; j < 3 ; j++){\n\t\t\t\ta[j] = Integer.parseInt(stra[j]);\n\t\t\t}\n\t\t\tArrays.sort(a);\n\t\t\tif(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[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\tString f = br.readLine();\n\t\tint[] a = new int[3];\n\t\tfor(int i = 0 ; i < Integer.parseInt(f) ; i++){\n\t\t\tString str = br.readLine();\n\t\t\tString[] stra = str.split(\" \");\n\t\t\tfor(int j = 0 ; j < 3 ; j++){\n\t\t\t\ta[j] = Integer.parseInt(stra[j]);\n\t\t\t}\n\t\t\tArrays.sort(a);\n\t\t\tif(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String f = br.readLine();",
"f",
"br.readLine()",
"br.readLine",
"br",
"int[] a = new int[3];",
"a",
"new int[3]",
"3",
"for(int i = 0 ; i < Integer.parseInt(f) ; i++){\n\t\t\tString str = br.readLine();\n\t\t\tString[] stra = str.split(\" \");\n\t\t\tfor(int j = 0 ; j < 3 ; j++){\n\t\t\t\ta[j] = Integer.parseInt(stra[j]);\n\t\t\t}\n\t\t\tArrays.sort(a);\n\t\t\tif(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[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 < Integer.parseInt(f)",
"i",
"Integer.parseInt(f)",
"Integer.parseInt",
"Integer",
"f",
"i++",
"i++",
"i",
"{\n\t\t\tString str = br.readLine();\n\t\t\tString[] stra = str.split(\" \");\n\t\t\tfor(int j = 0 ; j < 3 ; j++){\n\t\t\t\ta[j] = Integer.parseInt(stra[j]);\n\t\t\t}\n\t\t\tArrays.sort(a);\n\t\t\tif(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[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();\n\t\t\tString[] stra = str.split(\" \");\n\t\t\tfor(int j = 0 ; j < 3 ; j++){\n\t\t\t\ta[j] = Integer.parseInt(stra[j]);\n\t\t\t}\n\t\t\tArrays.sort(a);\n\t\t\tif(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[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();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] stra = str.split(\" \");",
"stra",
"str.split(\" \")",
"str.split",
"str",
"\" \"",
"for(int j = 0 ; j < 3 ; j++){\n\t\t\t\ta[j] = Integer.parseInt(stra[j]);\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] = Integer.parseInt(stra[j]);\n\t\t\t}",
"{\n\t\t\t\ta[j] = Integer.parseInt(stra[j]);\n\t\t\t}",
"a[j] = Integer.parseInt(stra[j])",
"a[j]",
"a",
"j",
"Integer.parseInt(stra[j])",
"Integer.parseInt",
"Integer",
"stra[j]",
"stra",
"j",
"Arrays.sort(a)",
"Arrays.sort",
"Arrays",
"a",
"if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[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(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)",
"Math.pow(a[0],2) + Math.pow(a[1],2)",
"Math.pow(a[0],2)",
"Math.pow",
"Math",
"a[0]",
"a",
"0",
"2",
"Math.pow(a[1],2)",
"Math.pow",
"Math",
"a[1]",
"a",
"1",
"2",
"Math.pow(a[2],2)",
"Math.pow",
"Math",
"a[2]",
"a",
"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\tString f = br.readLine();\n\t\tint[] a = new int[3];\n\t\tfor(int i = 0 ; i < Integer.parseInt(f) ; i++){\n\t\t\tString str = br.readLine();\n\t\t\tString[] stra = str.split(\" \");\n\t\t\tfor(int j = 0 ; j < 3 ; j++){\n\t\t\t\ta[j] = Integer.parseInt(stra[j]);\n\t\t\t}\n\t\t\tArrays.sort(a);\n\t\t\tif(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"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 f = br.readLine();\n\t\tint[] a = new int[3];\n\t\tfor(int i = 0 ; i < Integer.parseInt(f) ; i++){\n\t\t\tString str = br.readLine();\n\t\t\tString[] stra = str.split(\" \");\n\t\t\tfor(int j = 0 ; j < 3 ; j++){\n\t\t\t\ta[j] = Integer.parseInt(stra[j]);\n\t\t\t}\n\t\t\tArrays.sort(a);\n\t\t\tif(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],2)){\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}else {\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n\n}",
"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));
String f = br.readLine();
int[] a = new int[3];
for(int i = 0 ; i < Integer.parseInt(f) ; i++){
String str = br.readLine();
String[] stra = str.split(" ");
for(int j = 0 ; j < 3 ; j++){
a[j] = Integer.parseInt(stra[j]);
}
Arrays.sort(a);
if(Math.pow(a[0],2) + Math.pow(a[1],2) == Math.pow(a[2],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,
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,
0,
13,
4,
18,
13,
0,
13,
13,
14,
2,
13,
13,
30,
0,
13,
13,
14,
2,
13,
13,
30,
0,
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,
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,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
172,
5
],
[
172,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
41,
57
],
[
57,
58
],
[
57,
59
],
[
41,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
41,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
41,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
81,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
81,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
76,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
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
],
[
112,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
112,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
107,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
144,
148
],
[
148,
149
],
[
149,
150
],
[
149,
151
],
[
148,
152
],
[
152,
153
],
[
152,
154
],
[
143,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
156,
161
],
[
143,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
6,
169
],
[
169,
170
],
[
0,
171
],
[
171,
172
],
[
171,
173
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner kb = new Scanner(System.in);\n int i, N, x, y, z, longest;\n \n N = kb.nextInt();\n \n for(i = 0 ; i < N ; i++){\n x = kb.nextInt();\n y = kb.nextInt();\n z = kb.nextInt();\n longest = x;\n if (longest < y){\n longest = y;\n }\n if (longest < z){\n longest = z;\n }\n if (longest == x){\n if ((x * x) == (y * y + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == y){\n if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == z){\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner kb = new Scanner(System.in);\n int i, N, x, y, z, longest;\n \n N = kb.nextInt();\n \n for(i = 0 ; i < N ; i++){\n x = kb.nextInt();\n y = kb.nextInt();\n z = kb.nextInt();\n longest = x;\n if (longest < y){\n longest = y;\n }\n if (longest < z){\n longest = z;\n }\n if (longest == x){\n if ((x * x) == (y * y + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == y){\n if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == z){\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner kb = new Scanner(System.in);\n int i, N, x, y, z, longest;\n \n N = kb.nextInt();\n \n for(i = 0 ; i < N ; i++){\n x = kb.nextInt();\n y = kb.nextInt();\n z = kb.nextInt();\n longest = x;\n if (longest < y){\n longest = y;\n }\n if (longest < z){\n longest = z;\n }\n if (longest == x){\n if ((x * x) == (y * y + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == y){\n if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == z){\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n }\n }",
"main",
"{\n Scanner kb = new Scanner(System.in);\n int i, N, x, y, z, longest;\n \n N = kb.nextInt();\n \n for(i = 0 ; i < N ; i++){\n x = kb.nextInt();\n y = kb.nextInt();\n z = kb.nextInt();\n longest = x;\n if (longest < y){\n longest = y;\n }\n if (longest < z){\n longest = z;\n }\n if (longest == x){\n if ((x * x) == (y * y + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == y){\n if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == z){\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n }\n }",
"Scanner kb = new Scanner(System.in);",
"kb",
"new Scanner(System.in)",
"int i",
"i",
"N",
"N",
"x",
"x",
"y",
"y",
"z",
"z",
"longest;",
"longest",
"N = kb.nextInt()",
"N",
"kb.nextInt()",
"kb.nextInt",
"kb",
"for(i = 0 ; i < N ; i++){\n x = kb.nextInt();\n y = kb.nextInt();\n z = kb.nextInt();\n longest = x;\n if (longest < y){\n longest = y;\n }\n if (longest < z){\n longest = z;\n }\n if (longest == x){\n if ((x * x) == (y * y + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == y){\n if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == z){\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n }",
"i = 0 ;",
"i = 0",
"i",
"0",
"i < N",
"i",
"N",
"i++",
"i++",
"i",
"{\n x = kb.nextInt();\n y = kb.nextInt();\n z = kb.nextInt();\n longest = x;\n if (longest < y){\n longest = y;\n }\n if (longest < z){\n longest = z;\n }\n if (longest == x){\n if ((x * x) == (y * y + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == y){\n if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == z){\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n }",
"{\n x = kb.nextInt();\n y = kb.nextInt();\n z = kb.nextInt();\n longest = x;\n if (longest < y){\n longest = y;\n }\n if (longest < z){\n longest = z;\n }\n if (longest == x){\n if ((x * x) == (y * y + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == y){\n if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == z){\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n }",
"x = kb.nextInt()",
"x",
"kb.nextInt()",
"kb.nextInt",
"kb",
"y = kb.nextInt()",
"y",
"kb.nextInt()",
"kb.nextInt",
"kb",
"z = kb.nextInt()",
"z",
"kb.nextInt()",
"kb.nextInt",
"kb",
"longest = x",
"longest",
"x",
"if (longest < y){\n longest = y;\n }",
"longest < y",
"longest",
"y",
"{\n longest = y;\n }",
"longest = y",
"longest",
"y",
"if (longest < z){\n longest = z;\n }",
"longest < z",
"longest",
"z",
"{\n longest = z;\n }",
"longest = z",
"longest",
"z",
"if (longest == x){\n if ((x * x) == (y * y + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == y){\n if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == z){\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }",
"longest == x",
"longest",
"x",
"{\n if ((x * x) == (y * y + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }",
"if ((x * x) == (y * y + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }",
"(x * x) == (y * y + z * z)",
"(x * x)",
"x",
"x",
"(y * y + z * z)",
"y * y",
"y",
"y",
"z * z",
"z",
"z",
"{\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\"",
"if (longest == y){\n if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == z){\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }",
"longest == y",
"longest",
"y",
"{\n if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }",
"if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }",
"(y * y) == (x * x + z * z)",
"(y * y)",
"y",
"y",
"(x * x + z * z)",
"x * x",
"x",
"x",
"z * z",
"z",
"z",
"{\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\"",
"if (longest == z){\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }",
"longest == z",
"longest",
"z",
"{\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }",
"if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }",
"(z * z) == (x * x + y * y)",
"(z * z)",
"z",
"z",
"(x * x + y * y)",
"x * x",
"x",
"x",
"y * y",
"y",
"y",
"{\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 kb = new Scanner(System.in);\n int i, N, x, y, z, longest;\n \n N = kb.nextInt();\n \n for(i = 0 ; i < N ; i++){\n x = kb.nextInt();\n y = kb.nextInt();\n z = kb.nextInt();\n longest = x;\n if (longest < y){\n longest = y;\n }\n if (longest < z){\n longest = z;\n }\n if (longest == x){\n if ((x * x) == (y * y + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == y){\n if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == z){\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n }\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner kb = new Scanner(System.in);\n int i, N, x, y, z, longest;\n \n N = kb.nextInt();\n \n for(i = 0 ; i < N ; i++){\n x = kb.nextInt();\n y = kb.nextInt();\n z = kb.nextInt();\n longest = x;\n if (longest < y){\n longest = y;\n }\n if (longest < z){\n longest = z;\n }\n if (longest == x){\n if ((x * x) == (y * y + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == y){\n if ((y * y) == (x * x + z * z)){\n System.out.println(\"YES\");\n }\n else{\n System.out.println(\"NO\");\n }\n }\n else if (longest == z){\n if ((z * z) == (x * x + y * y)){\n System.out.println(\"YES\");\n }\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 kb = new Scanner(System.in);
int i, N, x, y, z, longest;
N = kb.nextInt();
for(i = 0 ; i < N ; i++){
x = kb.nextInt();
y = kb.nextInt();
z = kb.nextInt();
longest = x;
if (longest < y){
longest = y;
}
if (longest < z){
longest = z;
}
if (longest == x){
if ((x * x) == (y * y + z * z)){
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
else if (longest == y){
if ((y * y) == (x * x + z * z)){
System.out.println("YES");
}
else{
System.out.println("NO");
}
}
else if (longest == z){
if ((z * z) == (x * x + y * y)){
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,
4,
18,
18,
13,
13,
17,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
18,
13,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
14,
2,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
40,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
132,
8
],
[
132,
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
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
15,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
25,
34
],
[
34,
35
],
[
34,
36
],
[
25,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
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,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
57,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
41,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
41,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
41,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
41,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
41,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
110,
112
],
[
101,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
101,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
41,
127
],
[
127,
128
],
[
9,
129
],
[
129,
130
],
[
0,
131
],
[
131,
132
],
[
131,
133
]
] | [
"import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int x = Integer.parseInt(br.readLine());\n int i = 0;\n while (i < x) {\n String str = br.readLine();\n String[] num = str.split(\" \", 0);\n ArrayList<Integer> al = new ArrayList<>();\n for (int j = 0; j < 3; j++) {\n al.add(Integer.parseInt(num[j]));\n }\n Collections.sort(al);\n int a = al.get(0);\n int b = al.get(1);\n int c = al.get(2);\n if(c*c==a*a+b*b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n i++;\n }\n } catch (IOException ex) {\n System.out.println(\"error\");\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int x = Integer.parseInt(br.readLine());\n int i = 0;\n while (i < x) {\n String str = br.readLine();\n String[] num = str.split(\" \", 0);\n ArrayList<Integer> al = new ArrayList<>();\n for (int j = 0; j < 3; j++) {\n al.add(Integer.parseInt(num[j]));\n }\n Collections.sort(al);\n int a = al.get(0);\n int b = al.get(1);\n int c = al.get(2);\n if(c*c==a*a+b*b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n i++;\n }\n } catch (IOException ex) {\n System.out.println(\"error\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int x = Integer.parseInt(br.readLine());\n int i = 0;\n while (i < x) {\n String str = br.readLine();\n String[] num = str.split(\" \", 0);\n ArrayList<Integer> al = new ArrayList<>();\n for (int j = 0; j < 3; j++) {\n al.add(Integer.parseInt(num[j]));\n }\n Collections.sort(al);\n int a = al.get(0);\n int b = al.get(1);\n int c = al.get(2);\n if(c*c==a*a+b*b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n i++;\n }\n } catch (IOException ex) {\n System.out.println(\"error\");\n }\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int x = Integer.parseInt(br.readLine());\n int i = 0;\n while (i < x) {\n String str = br.readLine();\n String[] num = str.split(\" \", 0);\n ArrayList<Integer> al = new ArrayList<>();\n for (int j = 0; j < 3; j++) {\n al.add(Integer.parseInt(num[j]));\n }\n Collections.sort(al);\n int a = al.get(0);\n int b = al.get(1);\n int c = al.get(2);\n if(c*c==a*a+b*b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n i++;\n }\n } catch (IOException ex) {\n System.out.println(\"error\");\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"try {\n int x = Integer.parseInt(br.readLine());\n int i = 0;\n while (i < x) {\n String str = br.readLine();\n String[] num = str.split(\" \", 0);\n ArrayList<Integer> al = new ArrayList<>();\n for (int j = 0; j < 3; j++) {\n al.add(Integer.parseInt(num[j]));\n }\n Collections.sort(al);\n int a = al.get(0);\n int b = al.get(1);\n int c = al.get(2);\n if(c*c==a*a+b*b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n i++;\n }\n } catch (IOException ex) {\n System.out.println(\"error\");\n }",
"catch (IOException ex) {\n System.out.println(\"error\");\n }",
"IOException ex",
"{\n System.out.println(\"error\");\n }",
"System.out.println(\"error\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"error\"",
"{\n int x = Integer.parseInt(br.readLine());\n int i = 0;\n while (i < x) {\n String str = br.readLine();\n String[] num = str.split(\" \", 0);\n ArrayList<Integer> al = new ArrayList<>();\n for (int j = 0; j < 3; j++) {\n al.add(Integer.parseInt(num[j]));\n }\n Collections.sort(al);\n int a = al.get(0);\n int b = al.get(1);\n int c = al.get(2);\n if(c*c==a*a+b*b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n i++;\n }\n }",
"int x = Integer.parseInt(br.readLine());",
"x",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int i = 0;",
"i",
"0",
"while (i < x) {\n String str = br.readLine();\n String[] num = str.split(\" \", 0);\n ArrayList<Integer> al = new ArrayList<>();\n for (int j = 0; j < 3; j++) {\n al.add(Integer.parseInt(num[j]));\n }\n Collections.sort(al);\n int a = al.get(0);\n int b = al.get(1);\n int c = al.get(2);\n if(c*c==a*a+b*b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n i++;\n }",
"i < x",
"i",
"x",
"{\n String str = br.readLine();\n String[] num = str.split(\" \", 0);\n ArrayList<Integer> al = new ArrayList<>();\n for (int j = 0; j < 3; j++) {\n al.add(Integer.parseInt(num[j]));\n }\n Collections.sort(al);\n int a = al.get(0);\n int b = al.get(1);\n int c = al.get(2);\n if(c*c==a*a+b*b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n i++;\n }",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] num = str.split(\" \", 0);",
"num",
"str.split(\" \", 0)",
"str.split",
"str",
"\" \"",
"0",
"ArrayList<Integer> al = new ArrayList<>();",
"al",
"new ArrayList<>()",
"for (int j = 0; j < 3; j++) {\n al.add(Integer.parseInt(num[j]));\n }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n al.add(Integer.parseInt(num[j]));\n }",
"{\n al.add(Integer.parseInt(num[j]));\n }",
"al.add(Integer.parseInt(num[j]))",
"al.add",
"al",
"Integer.parseInt(num[j])",
"Integer.parseInt",
"Integer",
"num[j]",
"num",
"j",
"Collections.sort(al)",
"Collections.sort",
"Collections",
"al",
"int a = al.get(0);",
"a",
"al.get(0)",
"al.get",
"al",
"0",
"int b = al.get(1);",
"b",
"al.get(1)",
"al.get",
"al",
"1",
"int c = al.get(2);",
"c",
"al.get(2)",
"al.get",
"al",
"2",
"if(c*c==a*a+b*b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }",
"c*c==a*a+b*b",
"c*c",
"c",
"c",
"a*a+b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"{\n System.out.println(\"YES\");\n }",
"System.out.println(\"YES\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"YES\"",
"{\n System.out.println(\"NO\");\n }",
"System.out.println(\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"NO\"",
"i++",
"i",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int x = Integer.parseInt(br.readLine());\n int i = 0;\n while (i < x) {\n String str = br.readLine();\n String[] num = str.split(\" \", 0);\n ArrayList<Integer> al = new ArrayList<>();\n for (int j = 0; j < 3; j++) {\n al.add(Integer.parseInt(num[j]));\n }\n Collections.sort(al);\n int a = al.get(0);\n int b = al.get(1);\n int c = al.get(2);\n if(c*c==a*a+b*b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n i++;\n }\n } catch (IOException ex) {\n System.out.println(\"error\");\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try {\n int x = Integer.parseInt(br.readLine());\n int i = 0;\n while (i < x) {\n String str = br.readLine();\n String[] num = str.split(\" \", 0);\n ArrayList<Integer> al = new ArrayList<>();\n for (int j = 0; j < 3; j++) {\n al.add(Integer.parseInt(num[j]));\n }\n Collections.sort(al);\n int a = al.get(0);\n int b = al.get(1);\n int c = al.get(2);\n if(c*c==a*a+b*b){\n System.out.println(\"YES\");\n }else{\n System.out.println(\"NO\");\n }\n i++;\n }\n } catch (IOException ex) {\n System.out.println(\"error\");\n }\n }\n}",
"Main"
] | import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
try {
int x = Integer.parseInt(br.readLine());
int i = 0;
while (i < x) {
String str = br.readLine();
String[] num = str.split(" ", 0);
ArrayList<Integer> al = new ArrayList<>();
for (int j = 0; j < 3; j++) {
al.add(Integer.parseInt(num[j]));
}
Collections.sort(al);
int a = al.get(0);
int b = al.get(1);
int c = al.get(2);
if(c*c==a*a+b*b){
System.out.println("YES");
}else{
System.out.println("NO");
}
i++;
}
} catch (IOException ex) {
System.out.println("error");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
42,
2,
40,
13,
17,
30,
41,
13,
4,
18,
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,
0,
13,
4,
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,
12,
13,
30,
41,
13,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
11,
1,
41,
13,
2,
13,
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,
29,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
177,
8
],
[
177,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
31,
36
],
[
31,
37
],
[
28,
38
],
[
38,
39
],
[
38,
40
],
[
28,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
62,
64
],
[
28,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
28,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
87,
93
],
[
70,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
70,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
9,
108
],
[
108,
109
],
[
177,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
115,
117
],
[
112,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
118,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
118,
129
],
[
130,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
135,
137
],
[
131,
138
],
[
138,
139
],
[
138,
140
],
[
131,
141
],
[
141,
142
],
[
142,
143
],
[
131,
144
],
[
145,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
151,
153
],
[
146,
154
],
[
154,
155
],
[
155,
156
],
[
155,
157
],
[
157,
158
],
[
157,
159
],
[
154,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
160,
164
],
[
164,
165
],
[
164,
166
],
[
154,
167
],
[
167,
168
],
[
168,
169
],
[
168,
170
],
[
167,
171
],
[
112,
172
],
[
172,
173
],
[
110,
174
],
[
174,
175
],
[
0,
176
],
[
176,
177
],
[
176,
178
]
] | [
"import java.util.ArrayList;\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 N = Integer.valueOf(scan.nextLine());\n\t\twhile (N-- > 0) {\n\t\t\tString[] data = scan.nextLine().split(\" \", 0);\n\t\t\tint num[] = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tnum[i] = Integer.parseInt(data[i]);\n\t\t\t}\n\t\t\tnum = sortInteger(num);\n\t\t\tif (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[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\tpublic static int[] sortInteger(int[] num) {\n\t\tint len = num.length;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tfor (int j = i+1; j < len; j++) {\n\t\t\t\tif (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.valueOf(scan.nextLine());\n\t\twhile (N-- > 0) {\n\t\t\tString[] data = scan.nextLine().split(\" \", 0);\n\t\t\tint num[] = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tnum[i] = Integer.parseInt(data[i]);\n\t\t\t}\n\t\t\tnum = sortInteger(num);\n\t\t\tif (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[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\tpublic static int[] sortInteger(int[] num) {\n\t\tint len = num.length;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tfor (int j = i+1; j < len; j++) {\n\t\t\t\tif (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.valueOf(scan.nextLine());\n\t\twhile (N-- > 0) {\n\t\t\tString[] data = scan.nextLine().split(\" \", 0);\n\t\t\tint num[] = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tnum[i] = Integer.parseInt(data[i]);\n\t\t\t}\n\t\t\tnum = sortInteger(num);\n\t\t\tif (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[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\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.valueOf(scan.nextLine());\n\t\twhile (N-- > 0) {\n\t\t\tString[] data = scan.nextLine().split(\" \", 0);\n\t\t\tint num[] = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tnum[i] = Integer.parseInt(data[i]);\n\t\t\t}\n\t\t\tnum = sortInteger(num);\n\t\t\tif (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[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}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int N = Integer.valueOf(scan.nextLine());",
"N",
"Integer.valueOf(scan.nextLine())",
"Integer.valueOf",
"Integer",
"scan.nextLine()",
"scan.nextLine",
"scan",
"while (N-- > 0) {\n\t\t\tString[] data = scan.nextLine().split(\" \", 0);\n\t\t\tint num[] = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tnum[i] = Integer.parseInt(data[i]);\n\t\t\t}\n\t\t\tnum = sortInteger(num);\n\t\t\tif (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[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-- > 0",
"N--",
"N",
"0",
"{\n\t\t\tString[] data = scan.nextLine().split(\" \", 0);\n\t\t\tint num[] = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tnum[i] = Integer.parseInt(data[i]);\n\t\t\t}\n\t\t\tnum = sortInteger(num);\n\t\t\tif (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[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[] data = scan.nextLine().split(\" \", 0);",
"data",
"scan.nextLine().split(\" \", 0)",
"scan.nextLine().split",
"scan.nextLine()",
"scan.nextLine",
"scan",
"\" \"",
"0",
"int num[] = new int[3];",
"num",
"new int[3]",
"3",
"for (int i = 0; i < 3; i++) {\n\t\t\t\tnum[i] = Integer.parseInt(data[i]);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\t\tnum[i] = Integer.parseInt(data[i]);\n\t\t\t}",
"{\n\t\t\t\tnum[i] = Integer.parseInt(data[i]);\n\t\t\t}",
"num[i] = Integer.parseInt(data[i])",
"num[i]",
"num",
"i",
"Integer.parseInt(data[i])",
"Integer.parseInt",
"Integer",
"data[i]",
"data",
"i",
"num = sortInteger(num)",
"num",
"sortInteger(num)",
"sortInteger",
"num",
"if (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[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(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2)",
"Math.pow(num[0], 2)",
"Math.pow",
"Math",
"num[0]",
"num",
"0",
"2",
"Math.pow(num[1], 2) + Math.pow(num[2], 2)",
"Math.pow(num[1], 2)",
"Math.pow",
"Math",
"num[1]",
"num",
"1",
"2",
"Math.pow(num[2], 2)",
"Math.pow",
"Math",
"num[2]",
"num",
"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 static int[] sortInteger(int[] num) {\n\t\tint len = num.length;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tfor (int j = i+1; j < len; j++) {\n\t\t\t\tif (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}",
"sortInteger",
"{\n\t\tint len = num.length;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tfor (int j = i+1; j < len; j++) {\n\t\t\t\tif (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}",
"int len = num.length;",
"len",
"num.length",
"num",
"num.length",
"for (int i = 0; i < len; i++) {\n\t\t\tfor (int j = i+1; j < len; j++) {\n\t\t\t\tif (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < len",
"i",
"len",
"i++",
"i++",
"i",
"{\n\t\t\tfor (int j = i+1; j < len; j++) {\n\t\t\t\tif (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tfor (int j = i+1; j < len; j++) {\n\t\t\t\tif (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"for (int j = i+1; j < len; j++) {\n\t\t\t\tif (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}\n\t\t\t}",
"int j = i+1;",
"int j = i+1;",
"j",
"i+1",
"i",
"1",
"j < len",
"j",
"len",
"j++",
"j++",
"j",
"{\n\t\t\t\tif (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}\n\t\t\t}",
"if (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}",
"num[i] < num[j]",
"num[i]",
"num",
"i",
"num[j]",
"num",
"j",
"{\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}",
"int tmp = num[i];",
"tmp",
"num[i]",
"num",
"i",
"num[i] = num[j]",
"num[i]",
"num",
"i",
"num[j]",
"num",
"j",
"num[j] = tmp",
"num[j]",
"num",
"j",
"tmp",
"return num;",
"num",
"int[] num",
"num",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.valueOf(scan.nextLine());\n\t\twhile (N-- > 0) {\n\t\t\tString[] data = scan.nextLine().split(\" \", 0);\n\t\t\tint num[] = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tnum[i] = Integer.parseInt(data[i]);\n\t\t\t}\n\t\t\tnum = sortInteger(num);\n\t\t\tif (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[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\tpublic static int[] sortInteger(int[] num) {\n\t\tint len = num.length;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tfor (int j = i+1; j < len; j++) {\n\t\t\t\tif (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint N = Integer.valueOf(scan.nextLine());\n\t\twhile (N-- > 0) {\n\t\t\tString[] data = scan.nextLine().split(\" \", 0);\n\t\t\tint num[] = new int[3];\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tnum[i] = Integer.parseInt(data[i]);\n\t\t\t}\n\t\t\tnum = sortInteger(num);\n\t\t\tif (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[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\tpublic static int[] sortInteger(int[] num) {\n\t\tint len = num.length;\n\t\tfor (int i = 0; i < len; i++) {\n\t\t\tfor (int j = i+1; j < len; j++) {\n\t\t\t\tif (num[i] < num[j]) {\n\t\t\t\t\tint tmp = num[i];\n\t\t\t\t\tnum[i] = num[j];\n\t\t\t\t\tnum[j] = tmp;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\treturn num;\n\t}\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int N = Integer.valueOf(scan.nextLine());
while (N-- > 0) {
String[] data = scan.nextLine().split(" ", 0);
int num[] = new int[3];
for (int i = 0; i < 3; i++) {
num[i] = Integer.parseInt(data[i]);
}
num = sortInteger(num);
if (Math.pow(num[0], 2) == Math.pow(num[1], 2) + Math.pow(num[2], 2)) {
System.out.println("YES");
} else {
System.out.println("NO");
}
}
}
public static int[] sortInteger(int[] num) {
int len = num.length;
for (int i = 0; i < len; i++) {
for (int j = i+1; j < len; j++) {
if (num[i] < num[j]) {
int tmp = num[i];
num[i] = num[j];
num[j] = tmp;
}
}
}
return num;
}
} |
[
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,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
2,
2,
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,
0,
18,
13,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
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
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
39,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
39,
55
],
[
55,
56
],
[
57,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
66,
68
],
[
57,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
77,
78
],
[
77,
79
],
[
57,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
88,
90
],
[
55,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
96,
107
],
[
108,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
115,
120
],
[
109,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
123,
125
],
[
121,
126
],
[
6,
127
],
[
127,
128
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint x, y, z;\n\t\tint yn[] = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tx = scan.nextInt();\n\t\t\ty = scan.nextInt();\n\t\t\tz = scan.nextInt();\n\t\t\tif(x*x + y*y == z*z ||\n\t\t\t x*x + z*z == y*y ||\n\t\t\t y*y + z*z == x*x)yn[i] = 1;\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(yn[i] == 1)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint x, y, z;\n\t\tint yn[] = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tx = scan.nextInt();\n\t\t\ty = scan.nextInt();\n\t\t\tz = scan.nextInt();\n\t\t\tif(x*x + y*y == z*z ||\n\t\t\t x*x + z*z == y*y ||\n\t\t\t y*y + z*z == x*x)yn[i] = 1;\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(yn[i] == 1)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint x, y, z;\n\t\tint yn[] = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tx = scan.nextInt();\n\t\t\ty = scan.nextInt();\n\t\t\tz = scan.nextInt();\n\t\t\tif(x*x + y*y == z*z ||\n\t\t\t x*x + z*z == y*y ||\n\t\t\t y*y + z*z == x*x)yn[i] = 1;\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(yn[i] == 1)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint x, y, z;\n\t\tint yn[] = new int[n];\n\t\t\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tx = scan.nextInt();\n\t\t\ty = scan.nextInt();\n\t\t\tz = scan.nextInt();\n\t\t\tif(x*x + y*y == z*z ||\n\t\t\t x*x + z*z == y*y ||\n\t\t\t y*y + z*z == x*x)yn[i] = 1;\n\t\t}\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tif(yn[i] == 1)System.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 x",
"x",
"y",
"y",
"z;",
"z",
"int yn[] = new int[n];",
"yn",
"new int[n]",
"n",
"for(int i = 0; i < n; i++){\n\t\t\tx = scan.nextInt();\n\t\t\ty = scan.nextInt();\n\t\t\tz = scan.nextInt();\n\t\t\tif(x*x + y*y == z*z ||\n\t\t\t x*x + z*z == y*y ||\n\t\t\t y*y + z*z == x*x)yn[i] = 1;\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx = scan.nextInt();\n\t\t\ty = scan.nextInt();\n\t\t\tz = scan.nextInt();\n\t\t\tif(x*x + y*y == z*z ||\n\t\t\t x*x + z*z == y*y ||\n\t\t\t y*y + z*z == x*x)yn[i] = 1;\n\t\t}",
"{\n\t\t\tx = scan.nextInt();\n\t\t\ty = scan.nextInt();\n\t\t\tz = scan.nextInt();\n\t\t\tif(x*x + y*y == z*z ||\n\t\t\t x*x + z*z == y*y ||\n\t\t\t y*y + z*z == x*x)yn[i] = 1;\n\t\t}",
"x = scan.nextInt()",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"y = scan.nextInt()",
"y",
"scan.nextInt()",
"scan.nextInt",
"scan",
"z = scan.nextInt()",
"z",
"scan.nextInt()",
"scan.nextInt",
"scan",
"if(x*x + y*y == z*z ||\n\t\t\t x*x + z*z == y*y ||\n\t\t\t y*y + z*z == x*x)yn[i] = 1;",
"x*x + y*y == z*z ||\n\t\t\t x*x + z*z == y*y ||\n\t\t\t y*y + z*z == x*x",
"x*x + y*y == z*z ||\n\t\t\t x*x + z*z == y*y ||\n\t\t\t y*y + z*z == x*x",
"x*x + y*y == z*z",
"x*x + y*y",
"x*x",
"x",
"x",
"y*y",
"y",
"y",
"z*z",
"z",
"z",
"x*x + z*z == y*y",
"x*x + z*z",
"x*x",
"x",
"x",
"z*z",
"z",
"z",
"y*y",
"y",
"y",
"y*y + z*z == x*x",
"y*y + z*z",
"y*y",
"y",
"y",
"z*z",
"z",
"z",
"x*x",
"x",
"x",
"yn[i] = 1",
"yn[i]",
"yn",
"i",
"1",
"for(int i = 0; i < n; i++){\n\t\t\tif(yn[i] == 1)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(yn[i] == 1)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"{\n\t\t\tif(yn[i] == 1)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");\n\t\t}",
"if(yn[i] == 1)System.out.println(\"YES\");\n\t\t\telse System.out.println(\"NO\");",
"yn[i] == 1",
"yn[i]",
"yn",
"i",
"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"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
int x, y, z;
int yn[] = new int[n];
for(int i = 0; i < n; i++){
x = scan.nextInt();
y = scan.nextInt();
z = scan.nextInt();
if(x*x + y*y == z*z ||
x*x + z*z == y*y ||
y*y + z*z == x*x)yn[i] = 1;
}
for(int i = 0; i < n; i++){
if(yn[i] == 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,
42,
2,
40,
13,
17,
30,
41,
13,
20,
17,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
4,
18,
13,
17,
4,
18,
18,
13,
13,
8,
2,
2,
2,
2,
18,
13,
17,
18,
13,
17,
18,
13,
17,
2,
2,
18,
13,
17,
18,
13,
17,
18,
13,
17,
2,
2,
18,
13,
17,
18,
13,
17,
18,
13,
17,
17,
17,
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
],
[
18,
21
],
[
17,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
44,
50
],
[
22,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
66
],
[
59,
67
],
[
67,
68
],
[
67,
69
],
[
58,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
70,
78
],
[
78,
79
],
[
78,
80
],
[
57,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
86,
88
],
[
81,
89
],
[
89,
90
],
[
89,
91
],
[
56,
92
],
[
56,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] | [
"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\twhile(n-- != 0){\n\t\t\tint a[] = new int[3];\n\t\t\t for(int i = 0; i < 3; i++){\n\t\t\t\t a[i]=(int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\t\t\tSystem.out.println((a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])?\"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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\twhile(n-- != 0){\n\t\t\tint a[] = new int[3];\n\t\t\t for(int i = 0; i < 3; i++){\n\t\t\t\t a[i]=(int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\t\t\tSystem.out.println((a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])?\"YES\":\"NO\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\twhile(n-- != 0){\n\t\t\tint a[] = new int[3];\n\t\t\t for(int i = 0; i < 3; i++){\n\t\t\t\t a[i]=(int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\t\t\tSystem.out.println((a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])?\"YES\":\"NO\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\twhile(n-- != 0){\n\t\t\tint a[] = new int[3];\n\t\t\t for(int i = 0; i < 3; i++){\n\t\t\t\t a[i]=(int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\t\t\tSystem.out.println((a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])?\"YES\":\"NO\");\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(n-- != 0){\n\t\t\tint a[] = new int[3];\n\t\t\t for(int i = 0; i < 3; i++){\n\t\t\t\t a[i]=(int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\t\t\tSystem.out.println((a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])?\"YES\":\"NO\");\n\t\t}",
"n-- != 0",
"n--",
"n",
"0",
"{\n\t\t\tint a[] = new int[3];\n\t\t\t for(int i = 0; i < 3; i++){\n\t\t\t\t a[i]=(int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\t\t\tSystem.out.println((a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])?\"YES\":\"NO\");\n\t\t}",
"int a[] = new int[3];",
"a",
"new int[3]",
"3",
"for(int i = 0; i < 3; i++){\n\t\t\t\t a[i]=(int)Math.pow(sc.nextInt(), 2);\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"i++",
"i++",
"i",
"{\n\t\t\t\t a[i]=(int)Math.pow(sc.nextInt(), 2);\n\t\t\t}",
"{\n\t\t\t\t a[i]=(int)Math.pow(sc.nextInt(), 2);\n\t\t\t}",
"a[i]=(int)Math.pow(sc.nextInt(), 2)",
"a[i]",
"a",
"i",
"(int)Math.pow(sc.nextInt(), 2)",
"Math.pow",
"Math",
"sc.nextInt()",
"sc.nextInt",
"sc",
"2",
"System.out.println((a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])?\"YES\":\"NO\")",
"System.out.println",
"System.out",
"System",
"System.out",
"(a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])?\"YES\":\"NO\"",
"(a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])",
"a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0]",
"a[0]+a[1]==a[2]",
"a[0]+a[1]",
"a[0]",
"a",
"0",
"a[1]",
"a",
"1",
"a[2]",
"a",
"2",
"a[0]+a[2]==a[1]",
"a[0]+a[2]",
"a[0]",
"a",
"0",
"a[2]",
"a",
"2",
"a[1]",
"a",
"1",
"a[2]+a[1]==a[0]",
"a[2]+a[1]",
"a[2]",
"a",
"2",
"a[1]",
"a",
"1",
"a[0]",
"a",
"0",
"\"YES\"",
"\"NO\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\twhile(n-- != 0){\n\t\t\tint a[] = new int[3];\n\t\t\t for(int i = 0; i < 3; i++){\n\t\t\t\t a[i]=(int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\t\t\tSystem.out.println((a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])?\"YES\":\"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\tint n = sc.nextInt();\n\t\twhile(n-- != 0){\n\t\t\tint a[] = new int[3];\n\t\t\t for(int i = 0; i < 3; i++){\n\t\t\t\t a[i]=(int)Math.pow(sc.nextInt(), 2);\n\t\t\t}\n\t\t\tSystem.out.println((a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])?\"YES\":\"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);
int n = sc.nextInt();
while(n-- != 0){
int a[] = new int[3];
for(int i = 0; i < 3; i++){
a[i]=(int)Math.pow(sc.nextInt(), 2);
}
System.out.println((a[0]+a[1]==a[2]||a[0]+a[2]==a[1]||a[2]+a[1]==a[0])?"YES":"NO");
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
14,
2,
2,
2,
4,
18,
13,
17,
4,
18,
13,
17,
2,
4,
18,
13,
17,
4,
18,
13,
17,
2,
4,
18,
13,
17,
4,
18,
13,
17,
30,
4,
18,
13,
17,
30,
4,
18,
13,
17,
28,
13,
13,
30,
30,
14,
13,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
38,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
38,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
67,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
66,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
86,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
65,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
65,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
14,
105
],
[
105,
106
],
[
105,
107
],
[
105,
108
],
[
109,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
113,
118
],
[
110,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
12,
126
],
[
126,
127
]
] | [
"import java.util.Scanner;\nimport java.util.Vector;\nimport java.util.Collections;\n\nclass Main\n{\n\tpublic static void main(String[] av)\n\t{\n\t\tScanner sc = new Scanner( System.in );\n\t\tint num = sc.nextInt();\n\n\t\tVector<Boolean> bools = new Vector<Boolean>();\n\t\tfor ( int i = 0; i < num; ++i )\n\t\t{\n\t\t\tVector<Integer> ps = new Vector<Integer>();\n\t\t\tfor ( int j = 0; j < 3; j++ )\n\t\t\t{\n\t\t\t\tps.add( sc.nextInt() );\n\t\t\t}\n\t\t\tCollections.sort( ps );\n\t\t\tif ( ps.get(0)*ps.get(0) + ps.get(1)*ps.get(1)\n\t\t\t\t== ps.get(2)*ps.get(2) )\n\t\t\t{\n\t\t\t\tbools.add( true );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbools.add( false );\n\t\t\t}\n\t\t}\n\t\tfor ( Boolean bool: bools )\n\t\t{\n\t\t\tif ( bool )\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}\n\t\t\t\t\n\t\t",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Vector;",
"Vector",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"class Main\n{\n\tpublic static void main(String[] av)\n\t{\n\t\tScanner sc = new Scanner( System.in );\n\t\tint num = sc.nextInt();\n\n\t\tVector<Boolean> bools = new Vector<Boolean>();\n\t\tfor ( int i = 0; i < num; ++i )\n\t\t{\n\t\t\tVector<Integer> ps = new Vector<Integer>();\n\t\t\tfor ( int j = 0; j < 3; j++ )\n\t\t\t{\n\t\t\t\tps.add( sc.nextInt() );\n\t\t\t}\n\t\t\tCollections.sort( ps );\n\t\t\tif ( ps.get(0)*ps.get(0) + ps.get(1)*ps.get(1)\n\t\t\t\t== ps.get(2)*ps.get(2) )\n\t\t\t{\n\t\t\t\tbools.add( true );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbools.add( false );\n\t\t\t}\n\t\t}\n\t\tfor ( Boolean bool: bools )\n\t\t{\n\t\t\tif ( bool )\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] av)\n\t{\n\t\tScanner sc = new Scanner( System.in );\n\t\tint num = sc.nextInt();\n\n\t\tVector<Boolean> bools = new Vector<Boolean>();\n\t\tfor ( int i = 0; i < num; ++i )\n\t\t{\n\t\t\tVector<Integer> ps = new Vector<Integer>();\n\t\t\tfor ( int j = 0; j < 3; j++ )\n\t\t\t{\n\t\t\t\tps.add( sc.nextInt() );\n\t\t\t}\n\t\t\tCollections.sort( ps );\n\t\t\tif ( ps.get(0)*ps.get(0) + ps.get(1)*ps.get(1)\n\t\t\t\t== ps.get(2)*ps.get(2) )\n\t\t\t{\n\t\t\t\tbools.add( true );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbools.add( false );\n\t\t\t}\n\t\t}\n\t\tfor ( Boolean bool: bools )\n\t\t{\n\t\t\tif ( bool )\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\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 num = sc.nextInt();\n\n\t\tVector<Boolean> bools = new Vector<Boolean>();\n\t\tfor ( int i = 0; i < num; ++i )\n\t\t{\n\t\t\tVector<Integer> ps = new Vector<Integer>();\n\t\t\tfor ( int j = 0; j < 3; j++ )\n\t\t\t{\n\t\t\t\tps.add( sc.nextInt() );\n\t\t\t}\n\t\t\tCollections.sort( ps );\n\t\t\tif ( ps.get(0)*ps.get(0) + ps.get(1)*ps.get(1)\n\t\t\t\t== ps.get(2)*ps.get(2) )\n\t\t\t{\n\t\t\t\tbools.add( true );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbools.add( false );\n\t\t\t}\n\t\t}\n\t\tfor ( Boolean bool: bools )\n\t\t{\n\t\t\tif ( bool )\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\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 num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Vector<Boolean> bools = new Vector<Boolean>();",
"bools",
"new Vector<Boolean>()",
"for ( int i = 0; i < num; ++i )\n\t\t{\n\t\t\tVector<Integer> ps = new Vector<Integer>();\n\t\t\tfor ( int j = 0; j < 3; j++ )\n\t\t\t{\n\t\t\t\tps.add( sc.nextInt() );\n\t\t\t}\n\t\t\tCollections.sort( ps );\n\t\t\tif ( ps.get(0)*ps.get(0) + ps.get(1)*ps.get(1)\n\t\t\t\t== ps.get(2)*ps.get(2) )\n\t\t\t{\n\t\t\t\tbools.add( true );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbools.add( false );\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"++i",
"++i",
"i",
"{\n\t\t\tVector<Integer> ps = new Vector<Integer>();\n\t\t\tfor ( int j = 0; j < 3; j++ )\n\t\t\t{\n\t\t\t\tps.add( sc.nextInt() );\n\t\t\t}\n\t\t\tCollections.sort( ps );\n\t\t\tif ( ps.get(0)*ps.get(0) + ps.get(1)*ps.get(1)\n\t\t\t\t== ps.get(2)*ps.get(2) )\n\t\t\t{\n\t\t\t\tbools.add( true );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbools.add( false );\n\t\t\t}\n\t\t}",
"{\n\t\t\tVector<Integer> ps = new Vector<Integer>();\n\t\t\tfor ( int j = 0; j < 3; j++ )\n\t\t\t{\n\t\t\t\tps.add( sc.nextInt() );\n\t\t\t}\n\t\t\tCollections.sort( ps );\n\t\t\tif ( ps.get(0)*ps.get(0) + ps.get(1)*ps.get(1)\n\t\t\t\t== ps.get(2)*ps.get(2) )\n\t\t\t{\n\t\t\t\tbools.add( true );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbools.add( false );\n\t\t\t}\n\t\t}",
"Vector<Integer> ps = new Vector<Integer>();",
"ps",
"new Vector<Integer>()",
"for ( int j = 0; j < 3; j++ )\n\t\t\t{\n\t\t\t\tps.add( sc.nextInt() );\n\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < 3",
"j",
"3",
"j++",
"j++",
"j",
"{\n\t\t\t\tps.add( sc.nextInt() );\n\t\t\t}",
"{\n\t\t\t\tps.add( sc.nextInt() );\n\t\t\t}",
"ps.add( sc.nextInt() )",
"ps.add",
"ps",
"sc.nextInt()",
"sc.nextInt",
"sc",
"Collections.sort( ps )",
"Collections.sort",
"Collections",
"ps",
"if ( ps.get(0)*ps.get(0) + ps.get(1)*ps.get(1)\n\t\t\t\t== ps.get(2)*ps.get(2) )\n\t\t\t{\n\t\t\t\tbools.add( true );\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tbools.add( false );\n\t\t\t}",
"ps.get(0)*ps.get(0) + ps.get(1)*ps.get(1)\n\t\t\t\t== ps.get(2)*ps.get(2)",
"ps.get(0)*ps.get(0) + ps.get(1)*ps.get(1)",
"ps.get(0)*ps.get(0)",
"ps.get(0)",
"ps.get",
"ps",
"0",
"ps.get(0)",
"ps.get",
"ps",
"0",
"ps.get(1)*ps.get(1)",
"ps.get(1)",
"ps.get",
"ps",
"1",
"ps.get(1)",
"ps.get",
"ps",
"1",
"ps.get(2)*ps.get(2)",
"ps.get(2)",
"ps.get",
"ps",
"2",
"ps.get(2)",
"ps.get",
"ps",
"2",
"{\n\t\t\t\tbools.add( true );\n\t\t\t}",
"bools.add( true )",
"bools.add",
"bools",
"true",
"{\n\t\t\t\tbools.add( false );\n\t\t\t}",
"bools.add( false )",
"bools.add",
"bools",
"false",
"for ( Boolean bool: bools )\n\t\t{\n\t\t\tif ( bool )\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"Boolean bool",
"bools",
"{\n\t\t\tif ( bool )\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tif ( bool )\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}\n\t\t}",
"if ( bool )\n\t\t\t{\n\t\t\t\tSystem.out.println(\"YES\");\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tSystem.out.println(\"NO\");\n\t\t\t}",
"bool",
"{\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[] av",
"av"
] | import java.util.Scanner;
import java.util.Vector;
import java.util.Collections;
class Main
{
public static void main(String[] av)
{
Scanner sc = new Scanner( System.in );
int num = sc.nextInt();
Vector<Boolean> bools = new Vector<Boolean>();
for ( int i = 0; i < num; ++i )
{
Vector<Integer> ps = new Vector<Integer>();
for ( int j = 0; j < 3; j++ )
{
ps.add( sc.nextInt() );
}
Collections.sort( ps );
if ( ps.get(0)*ps.get(0) + ps.get(1)*ps.get(1)
== ps.get(2)*ps.get(2) )
{
bools.add( true );
}
else
{
bools.add( false );
}
}
for ( Boolean bool: bools )
{
if ( bool )
{
System.out.println("YES");
}
else
{
System.out.println("NO");
}
}
}
}
|
Subsets and Splits
No saved queries yet
Save your SQL queries to embed, download, and access them later. Queries will appear here once saved.