node_ids
listlengths
4
1.4k
edge_index
listlengths
1
2.22k
text
listlengths
4
1.4k
source
stringlengths
14
427k
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 4, 18, 20, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 0, 13, 4, 18, 13, 42, 2, 40, 13, 17, 30, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 113, 5 ], [ 113, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 6, 12 ], [ 12, 13 ], [ 113, 14 ...
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tnew Main().run();\n\t}\n\t\n\tpublic void run() {\n\t\tScanner sc = new Scanner(System.in); \n\t\tint n;\n\t\tn = sc.nextInt();\n\t\twhile(n-->0){\n\t\t\tint x,y,z;\n\t\t\tx = sc.nextInt();\n\t\t\ty = sc.nextInt();\n\t\t\tz ...
import java.util.*; public class Main{ public static void main(String[] args) { new Main().run(); } public void run() { Scanner sc = new Scanner(System.in); int n; n = sc.nextInt(); while(n-->0){ int x,y,z; x = sc.nextInt(); y = sc.nextInt(); z = sc.nextInt(); int a,b,c; a = Math....
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 5, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 133, 11 ], [ 133, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t \n\t\ttry {\n\t\t\tint lim = Integer.parseInt(in.readLine());\n\t\t...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); try { int lim = Integer.parseInt(in.readLine()); for (int i = 0; i < l...
[ 7, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 11, 1, 0, 13, 4, 18, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 39, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 18, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 8, 2, 2, 2, 18...
[ [ 0, 1 ], [ 81, 2 ], [ 81, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ], ...
[ "public class\nMain\n{\n public static void\n main (\n String[ ] args\n )\n {\n java.util.Scanner cin = new java.util.Scanner ( System.in );\n int n;\n\n for ( n = cin.nextInt ( ); n != 0; --n )\n {\n int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) };\n\n java.util.Arra...
public class Main { public static void main ( String[ ] args ) { java.util.Scanner cin = new java.util.Scanner ( System.in ); int n; for ( n = cin.nextInt ( ); n != 0; --n ) { int[ ] a = { cin.nextInt ( ), cin.nextInt ( ), cin.nextInt ( ) }; java.util.Arrays.sort ( a ); ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 179, 11 ], [ 179, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\nimport java.util.ArrayList;\nimport java.util.*;\npublic class Main\n{\n public static void main(String args[])\n {\n Scanner input=new Scanner(System.in);\n ArrayList<String> list=new ArrayList<String>();\n int cases=input.nextInt();\n if(cases>=1 && cases<=1000)\n {\n ...
import java.util.Scanner; import java.util.ArrayList; import java.util.*; public class Main { public static void main(String args[]) { Scanner input=new Scanner(System.in); ArrayList<String> list=new ArrayList<String>(); int cases=input.nextInt(); if(cases>=1 && cases<=1000) { for(int i=0;i<...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], ...
[ "import java.io.*;\nimport java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n int N;\n Scanner sc = new Scanner(System.in);\n\n N = sc.nextInt();\n\n for (int i = 0; i < N; i++) {\n int a,b,c;\n\n a = sc.nextInt();\n b = sc.nextInt();\n c = sc.nextInt();\n\n ...
import java.io.*; import java.util.*; class Main { public static void main(String[] args) { int N; Scanner sc = new Scanner(System.in); N = sc.nextInt(); for (int i = 0; i < N; i++) { int a,b,c; a = sc.nextInt(); b = sc.nextInt(); c = sc.nextInt(); if (a+b > c && a+c...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 17, 41, 13, 20, 0, 13, 4, 18, 13, 42, 2, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 110, 11 ], [ 110, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\nimport java.util.Scanner ; \nimport java.math.BigInteger;\n\npublic class Main {\n public static void main(String[] args) {\n int t,n1,n2,n3;\n int [] a = new int[3];\n Scanner sc = new Scanner(System.in);\n t = sc.nextInt();\n while(t>0){\n t--...
import java.util.*; import java.util.Scanner ; import java.math.BigInteger; public class Main { public static void main(String[] args) { int t,n1,n2,n3; int [] a = new int[3]; Scanner sc = new Scanner(System.in); t = sc.nextInt(); while(t>0){ t--; n1...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 4, 13, 23, 13, 12, 13, 30, 0, 13, 4, 18, 13, 41, 13, 11, 1, 0, 13, 17, 2, 13, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 170, 8 ], [ 170, 9 ], [ 9, 10 ], [ 9, 11 ], [ 170, 12 ], [ 12, 13 ], [ 12, 14 ...
[ "import java.util.*;\nimport java.io.*;\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static InputStreamReader reader = new InputStreamReader(System.in);\n static int n, a, b, c;//prepare \"number\" and \"Edge\".\n static int A,B,C;\n public static void main(String[] args) {\n\...
import java.util.*; import java.io.*; public class Main { static Scanner sc = new Scanner(System.in); static InputStreamReader reader = new InputStreamReader(System.in); static int n, a, b, c;//prepare "number" and "Edge". static int A,B,C; public static void main(String[] args) { read(); }...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 136, 8 ], [ 136, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n try{\n int n = Integer.parseInt(br.readLine());\n for(int i=0;i<n;i++){\n...
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try{ int n = Integer.parseInt(br.readLine()); for(int i=0;i<n;i++){ St...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, ...
[ [ 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 ], ...
[ "import java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n Scanner sc = new Scanner(System.in);\n\n int noDataSet = sc.nextInt();\n\n for (int i = 0; i < noDataSet; i++) {\n ArrayList<Integer>...
import java.util.ArrayList; import java.util.Collections; import java.util.Scanner; class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int noDataSet = sc.nextInt(); for (int i = 0; i < noDataSet; i++) { ArrayList<Integer> nums = new Arra...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 13, 17, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tif (count <= 1000) {\n\t\t\tString[] triangles = new String[count];\n\t\t\tfor (int j = 0; j < count; j++) {\n\t\t\t\tint side1 = sc.nextInt();\n\t\t...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int count = sc.nextInt(); if (count <= 1000) { String[] triangles = new String[count]; for (int j = 0; j < count; j++) { int side1 = sc.nextInt(); int side2 = sc.nextInt(); int...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 18, 13, 13, 4, ...
[ [ 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 ], ...
[ "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 ...
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 ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 4, 18...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\nimport java.math.*;\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int count = Integer.parseInt(br...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; import java.math.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int count = Integer.parseInt(br.readLine())...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 105, 11 ], [ 105, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.IOException;\nimport java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n for (int i = 0; i < n; i++){\n int a[] = new int[...
import java.io.IOException; import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 0; i < n; i++){ int a[] = new int[3]; ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 20, 17, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 118, 8 ], [ 118, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.*;\nimport java.util.*;\npublic class Main{\n public static void main(String args[]){\n BufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n try{\n String str=br.readLine();\n int n[]=new int[3];\n while((str=br.readLine())!=null){\n StringTokenizer st=new StringToken...
import java.io.*; import java.util.*; public class Main{ public static void main(String args[]){ BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); try{ String str=br.readLine(); int n[]=new int[3]; while((str=br.readLine())!=null){ StringTokenizer st=new StringTokenizer(str); ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 131, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n\n\tprivate static final String RIGHT_TRIANGLE = \"YES\";\n\tprivate static final String NOT_RIGHT_TRIANGLE = \"NO\";\n\n\t/**\n\t * <p>\n\t * 与えられた三辺で直角三角形が作れるかを判定する。\n\...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { private static final String RIGHT_TRIANGLE = "YES"; private static final String NOT_RIGHT_TRIANGLE = "NO"; /** * <p> * 与えられた三辺で直角三角形が作れるかを判定する。 * </p> * * @param args...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, ...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.ArrayList;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new I...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.Collections; import java.util.List; import java.util.ArrayList; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamRead...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 11,...
[ [ 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 ],...
[ "import java.util.Scanner;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\t\n\t\tfor(int i=0; i<n; i++)\n\t\t{\n\t\t\tint[] a = new int[3];\n\t\t\tfor(int j=0; j<3; j++)\n\t\t\t{\n\t\t\t\ta[j] = scanner.nextIn...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); for(int i=0; i<n; i++) { int[] a = new int[3]; for(int j=0; j<3; j++) { a[j] = scanner.nextInt(); } for(int j=1; j<3; j++) {...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 102, 8 ], [ 102, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.Scanner;\nimport java.util.Arrays;\n \npublic class Main\n{\n public static void main(String[] args)\n {\n\tScanner cin = new Scanner(System.in);\n\tint N = cin.nextInt();\n\tfor(int i=1; i<=N; i++){\n\t\tint[] len = new int[3];\n\t\tfor(int j=0; j<3; j++){ len[j] = cin.nextInt();}\n\t\tArra...
import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args) { Scanner cin = new Scanner(System.in); int N = cin.nextInt(); for(int i=1; i<=N; i++){ int[] len = new int[3]; for(int j=0; j<3; j++){ len[j] = cin.nextInt();} Arrays.sort(len); if(len[0]*...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 41, 13, 20, 17, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, ...
[ [ 0, 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n InputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; public class Main { public static void main(String[] args) throws IOException { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReade...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13, 14, 2, 2, ...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main{\n\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint length = sc.nextInt();\n\n\t\twhile(sc.hasNext()){\n\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\n\t\t\tint a2 = a * a;\n\t\t\tint ...
import java.util.Scanner; class Main{ public static void main(String args[]){ Scanner sc = new Scanner(System.in); int length = sc.nextInt(); while(sc.hasNext()){ int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int a2 = a * a; int b2 = b * b; int c2 = c * c; if(a2 + b...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 41, 13, 20, 17, 11, 1, ...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\nimport java.util.Arrays;\nclass Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br=new BufferedReader(new InputStreamReader(System...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; import java.util.Arrays; class Main { public static void main(String[] args) throws IOException { BufferedReader br=new BufferedReader(new InputStreamReader(System.in)); ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 13, 28, 13, 13, 30, 30, 41, 13, 4, 13, 13, 14, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 12, 13, 30, 14, ...
[ [ 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 ], ...
[ "\n\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.List;\nimport java.util.Scanner;\n\n class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// get user input\n\t\tList<List<Integer>> userInputs = getUserInputs();\n\t\tfor (List<Integer> triangleSides : userInputs) {\n\t\...
import java.util.ArrayList; import java.util.Collections; import java.util.List; import java.util.Scanner; class Main { public static void main(String[] args) { // get user input List<List<Integer>> userInputs = getUserInputs(); for (List<Integer> triangleSides : userInputs) { // check whether triagle i...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 42, 4, 13, 30, 23, 13, 12, 13, 30, 14, 40, 4, 18, 13, 29, 17, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 157, 5 ], [ 157, 6 ], [ 6, 7 ], [ 6, 8 ], [ 157, 9 ], [ 9, 10 ], [ 157, 11 ], [ 11, 12 ], [ 157, 13 ], [ 13, 1...
[ "import java.util.*;\npublic class Main {\n static Scanner sc = new Scanner(System.in);\n static int n, a, b, c;\n static int A,B,C;\n public static void main(String[] args) {\n while(read()){\n\n }\n }\n\n static boolean read(){\n if(!sc.hasNext())return false;\n n = s...
import java.util.*; public class Main { static Scanner sc = new Scanner(System.in); static int n, a, b, c; static int A,B,C; public static void main(String[] args) { while(read()){ } } static boolean read(){ if(!sc.hasNext())return false; n = sc.nextInt(); ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 20, 41, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 124, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main {\n public static void main(String[] args) throws java.io.IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String l...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args) throws java.io.IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.read...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 17, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 204, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\tpublic static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1);\n\t\tString str = \"...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] a) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in), 1); String str = ""; StringTokenize...
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 0, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 39, 17, 17, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 109, 5 ], [ 109, 6 ], [ 6, 7 ], [ 109, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tprivate static Scanner scan;\n\tpublic static void main(String[] args) {\n\t\tscan = new Scanner(System.in);\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 0;i < n;i++){\n\t\t\tint a[] = {0,0,0};\n\t\t\tfor (int j = 0;j <3;j++){\n\t\t\t\ta[j] = (int...
import java.util.Scanner; public class Main { private static Scanner scan; public static void main(String[] args) { scan = new Scanner(System.in); int n = Integer.parseInt(scan.next()); for(int i = 0;i < n;i++){ int a[] = {0,0,0}; for (int j = 0;j <3;j++){ a[j] = (int) Math.pow(Integer.parseInt(scan....
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 20, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 4,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 224, 5 ], [ 224, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint roop = Integer.parseInt(sc.nextLine());\n\t\tfor(int i=0; i<roop; i++) {\n\t\t\tTriangle tri = new Triangle(sc.nextLine().split(\" \"));\n\t\t\ttri.execute();\n\t\t}\n\t}\n}\n\nc...
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); int roop = Integer.parseInt(sc.nextLine()); for(int i=0; i<roop; i++) { Triangle tri = new Triangle(sc.nextLine().split(" ")); tri.execute(); } } } class Triangle { private int a; pri...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 17, 41...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 188, 11 ], [ 188, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] arg) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str = br.readLine();\n\t\tint count = Inte...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] arg) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int count = Integer.parseInt(str); ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 11, 1, 41, 13, 4, 18, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 39, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 18, 13, 13, 8, 2, 2, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 80, 8 ], [ 80, 9 ], [ 9, 10 ], [ 9, 11 ], [ 80, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main{\n\t\n\tstatic final Scanner s=new Scanner(System.in);\n\t\n\tpublic static void main(String args[]){\n\t\tfor(int i=s.nextInt(); i>0; i--){\n\t\t\tint[] in={s.nextInt(),s.nextInt(),s.nextInt()};\n\t\t\tArrays.sort(in);\n\t\t\tSystem.out.prin...
import java.util.Arrays; import java.util.Scanner; public class Main{ static final Scanner s=new Scanner(System.in); public static void main(String args[]){ for(int i=s.nextInt(); i>0; i--){ int[] in={s.nextInt(),s.nextInt(),s.nextInt()}; Arrays.sort(in); System.out.println( in[2]*in[2]==(in[1]*i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 0, 18, 18, 13, 13, 17, 4, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 177, 5 ], [ 177, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint dataSize = Integer.parseInt(sc.nextLine());\n\t\tint[][] data = new int[dataSize][3];\n\t\n\t\tfor(int i = 0; i < dataSize; ++i)\n\t\t{\n\t\t\tString[] splitted = sc.nextLi...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int dataSize = Integer.parseInt(sc.nextLine()); int[][] data = new int[dataSize][3]; for(int i = 0; i < dataSize; ++i) { String[] splitted = sc.nextLine().split("\\s+"); data[i][0]...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 120, 5 ], [ 120, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int N = Integer.parseInt(sc.next());\n\n for (int i = 0; i < N; i++) {\n int a = Integer.parseInt(sc.next());\n int b = Integer.parseI...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = Integer.parseInt(sc.next()); for (int i = 0; i < N; i++) { int a = Integer.parseInt(sc.next()); int b = Integer.parseInt(sc.next()); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 4, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 94, 5 ], [ 94, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.*;\n\npublic class Main\n{\n public static void main(String... args)\n {\n final Scanner scanner = new Scanner(System.in);\n final int set = scanner.nextInt();\n for (int i = 0; i < set; i++) {\n final List<Integer> integers = Arrays.asList(scanner.nextInt(), ...
import java.util.*; public class Main { public static void main(String... args) { final Scanner scanner = new Scanner(System.in); final int set = scanner.nextInt(); for (int i = 0; i < set; i++) { final List<Integer> integers = Arrays.asList(scanner.nextInt(), scanner.nextIn...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 1...
[ [ 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 ], ...
[ "\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String[] a) throws IOException{\n\n// \tfor(int i=1; i<=9; i++) {\n// \t\tfor (int j=1; j<=9; j++) {\n// \t\t\tSystem.out.println(i + \"x\" + j + \"=\" + (i*j));\n...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String[] a) throws IOException{ // for(int i=1; i<=9; i++) { // for (int j=1; j<=9; j++) { // System.out.println(i + "x" + j + "=" + (i*j)); // } // } ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 23, 13, 12, 13, 30, 41, 13, 20, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 155, 11 ], [ 155, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tprint();\n\t}\n\n\tprivate static void print() {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry {\n\t\t\tSt...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) { print(); } private static void print() { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); try { String str = br.readLine(); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 18,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [...
[ "/* Volume0 0003 Is it a Right Triangle? */\nimport java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args){\n\n\t\tint n, temp;\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tn = stdIn.nextInt();\n\t\tint[][] side = new int[n][3];\n\n\t\tfor( int i = 0; i < n; i++) {\n\t\t\tfor( int j = 0; j...
/* Volume0 0003 Is it a Right Triangle? */ import java.util.Scanner; class Main{ public static void main(String[] args){ int n, temp; Scanner stdIn = new Scanner(System.in); n = stdIn.nextInt(); int[][] side = new int[n][3]; for( int i = 0; i < n; i++) { for( int j = 0; j < 3; j++) { side[i][j] = s...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 17, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 117, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n\n public static void main(String[] args) throws NumberFormatException, IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in))...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); in...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 42, 2, 40, 13, 17, 30, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 4, 18, 13, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 91, 8 ], [ 91, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tint n = s.nextInt();\n\t\tint[] l = new int[3];\n\t\twhile (n-->0) {\n\t\t\tl[0] = s.nextInt();\n\t\t\tl[1] = s.nextInt();\n\t\t\tl[2] = s.nextInt();\...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int n = s.nextInt(); int[] l = new int[3]; while (n-->0) { l[0] = s.nextInt(); l[1] = s.nextInt(); l[2] = s.nextInt(); Arrays.sort(l); System.out.p...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 2, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 121, 5 ], [ 121, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tvoid run() {\n\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint N = sc.nextInt();\n\n\t\tint a, b, c;\n\n\t\tfor (int i = 0; i < N; i++) {\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\n\t\t\ta = a * a;\n\t\t\tb = b * b;\n...
import java.util.Scanner; public class Main { void run() { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int a, b, c; for (int i = 0; i < N; i++) { a = sc.nextInt(); b = sc.nextInt(); c = sc.nextInt(); a = a * a; b = b * b; c = c * c; if (a + b == c) { System.out...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 17, 11, 1,...
[ [ 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 ]...
[ "import java.io.*;\nimport java.util.Arrays;\npublic class Main {\n\n\tpublic static void main (String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint set = Integer.parseInt(br.readLine());\n\t\t\t\t\t\n\t\tfor(int i = 0; i < set;...
import java.io.*; import java.util.Arrays; public class Main { public static void main (String[] args) throws IOException{ BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line; int set = Integer.parseInt(br.readLine()); for(int i = 0; i < set; i++) { line = br.readLin...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 41, 13, 41, 13, 17, 41, 13, 4, 18, 13, 42, 2, 2, 13, 17, 2, 0, 13, 4, 18, 13, 17, 30, 0, 13, 1...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\nclass Main\n{\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException\n\t{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ArrayList<String> str...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 101, 5 ], [ 101, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\npublic class Main{\n Main(){\n\tScanner sc = new Scanner(System.in);\n\tint[] a = new int[3];\n\n\twhile(sc.hasNext()){\n\t int n = sc.nextInt();\n\t for(int cs = 0; cs < n; cs++){\n\t\tfor(int i = 0; i < 3; i++){\n\t\t a[i] = sc.nextInt();\n\t\t a[i] *= a[i];\n\t\t}\n\t\tArra...
import java.util.*; public class Main{ Main(){ Scanner sc = new Scanner(System.in); int[] a = new int[3]; while(sc.hasNext()){ int n = sc.nextInt(); for(int cs = 0; cs < n; cs++){ for(int i = 0; i < 3; i++){ a[i] = sc.nextInt(); a[i] *= a[i]; } Arrays.sort(a); String s = "NO"; i...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 38, 5, 13, 30, 4, 18, 13, 17, 30, 41, 13, 20, 41, 13, 20, 41, 13, 20, 17, 41, 13, 20, 17, 41, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 42, 2, 40, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nclass Main{\n public static void main(String args[]){\n\tString str;\n\ttry{\n\t InputStreamReader is = new InputStreamReader(System.in);\n\t BufferedReader br = new BufferedReader(is);\n\t String[] strary = new String[3];\n\t int[] ...
import java.io.BufferedReader; import java.io.InputStreamReader; class Main{ public static void main(String args[]){ String str; try{ InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); String[] strary = new String[3]; int[] len = new int[3]; ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 42, 2, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 4, ...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.List;\nimport java.util.StringTokenizer;\n\nclass Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new B...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.List; import java.util.StringTokenizer; class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new...
[ 7, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 177, 5 ], [ 177, 6 ], [ 6, 7 ], [ 6, 8 ], [ 177, 9 ], [ 9, 10 ], [ 9, 11 ], [ 177, 12 ], [ 12, 13 ], [ 12, 14 ...
[ "import java.io.*;\n\npublic class Main {\n\n\tprivate static final int subNum = 3;\n\tprivate static final int adge1 = 0;\n\tprivate static final int adge2 = 1;\n\tprivate static final int adge3 = 2;\n\n\tpublic static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new Input...
import java.io.*; public class Main { private static final int subNum = 3; private static final int adge1 = 0; private static final int adge2 = 1; private static final int adge3 = 2; public static void main(String[] a) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 0, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 100, 5 ], [ 100, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t \n\tScanner sc= new Scanner (System.in);\n\tint n = sc.nextInt();\n\tint i[];\n\ti = new int[3];\nfor(int count=0;count<n;count++){\t\n\t\tfor(int d=0;d<3;d++ ){\n\t\t\ti[d]=sc.nextInt();\n\t\t}\n\t\tArrays.sort(i);\n\t\tif((i[...
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc= new Scanner (System.in); int n = sc.nextInt(); int i[]; i = new int[3]; for(int count=0;count<n;count++){ for(int d=0;d<3;d++ ){ i[d]=sc.nextInt(); } Arrays.sort(i); if((i[2]*i[2])==(i[0]*i[0])+(i[1]*i[1])){ ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 38, 5, 13, 30, 30, 4, 18, 13, 42, 2, 0, 13, 4, 18, 13, 17, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString line;\n\t\ttry {\n\t\t\tbr.readLine();\n\t\t\twhile ((line = br.readLine()) != null) {\n\t\t\t\t...
import java.io.BufferedReader; import java.io.InputStreamReader; class Main { public static void main(String[] args) { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line; try { br.readLine(); while ((line = br.readLine()) != null) { String[] v = line.split(" "); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 2, 2, 13, 13, 2, 13, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner input=new Scanner(System.in);\n\t\t\n\t\tint circle=input.nextInt();\n\t\tfor(int i=0;i<circle;i++){\n\t\t\tint a=input.nextInt();\n\t\t\tint b=input.nextInt();\n\t\t\tint c=input.nextInt();\n\t\t\t\n\t\t\tif(a*a+b*b==...
import java.util.*; public class Main { public static void main(String[] args){ Scanner input=new Scanner(System.in); int circle=input.nextInt(); for(int i=0;i<circle;i++){ int a=input.nextInt(); int b=input.nextInt(); int c=input.nextInt(); if(a*a+b*b==c*c || a*a+c*c==b*b || b*b+c*c==a*a) ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, ...
[ [ 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 ], [...
[ "import java.util.*;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint[] sides = new int[3];\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tsides[0] = scanner.nextInt();\n\t\t\tsides[1] = scanner.nextInt();\n\t\t\tsides[2] ...
import java.util.*; class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int[] sides = new int[3]; for (int i = 0; i < n; i++) { sides[0] = scanner.nextInt(); sides[1] = scanner.nextInt(); sides[2] = scanner.nextInt(); Arrays.so...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 20, 11, 1, 41, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 119, 14 ], ...
[ "\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t\n\t\tBufferedReader r = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.pars...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws IOException { BufferedReader r = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(r.readLine()); S...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 122, 5 ], [ 122, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner s=new Scanner(System.in);\n\t\tint a,b,c,n,i,temp,x,y;\n\t\tn=s.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta=s.nextInt();\n\t\t\tb=s.nextInt();\n\t\t\tif(b>a){\n\t\t\t\ttemp=a;\n\t\t\t\ta=b;\n\t\t\t\tb=temp;\n...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner s=new Scanner(System.in); int a,b,c,n,i,temp,x,y; n=s.nextInt(); for(i=0;i<n;i++){ a=s.nextInt(); b=s.nextInt(); if(b>a){ temp=a; a=b; b=temp; } c=s.nextInt(); if(c>a){ temp=a; ...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 11, 1, 41, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 39, 4, 18, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 13, 41, 13, 2, 2, 2, 18, 13, 17, 18, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 83, 5 ], [ 83, 6 ], [ 6, 7 ], [ 6, 8 ], [ 83, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ],...
[ "import java.util.*;\n\npublic class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n for(int i = 0, n = scn.nextInt(); i < n; i++) {\n int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()};\n Arrays.sort(ar...
import java.util.*; public class Main { private static final Scanner scn = new Scanner(System.in); public static void main(String[] args) { for(int i = 0, n = scn.nextInt(); i < n; i++) { int[] ary = {scn.nextInt(), scn.nextInt(), scn.nextInt()}; Arrays.sort(ary); ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 20, 18, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 125, 8 ], [ 125, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.io.*;\nimport java.util.*;\npublic class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader reader=new BufferedReader(new InputStreamReader(System.in));\n\t\tString s=reader.readLine();\n\t\tint n=Integer.parseInt(s);\n\t\tfor(int j=0;j<n;j++){\n\t\t\ts=reader.readLi...
import java.io.*; import java.util.*; public class Main{ public static void main(String[] args)throws IOException{ BufferedReader reader=new BufferedReader(new InputStreamReader(System.in)); String s=reader.readLine(); int n=Integer.parseInt(s); for(int j=0;j<n;j++){ s=reader.readLine(); String t[] =s.sp...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 11, 1,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 159, 8 ], [ 159, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ]...
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main{\n\tpublic static void main(String[] args) throws NumberFormatException, IOException{\n\t\tint n;\n\t\tint[] lines=new int[3];\n\t\tint max_lines_number=0;\n\t\tBufferedReader d=new BufferedReader(new InputStreamReader(System.in));\n\n\t\tn=Integer.valueO...
import java.util.*; import java.io.*; public class Main{ public static void main(String[] args) throws NumberFormatException, IOException{ int n; int[] lines=new int[3]; int max_lines_number=0; BufferedReader d=new BufferedReader(new InputStreamReader(System.in)); n=Integer.valueOf(d.readLine());//なんこの三角形を...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 42, 2, 13, 17, 30, 41, 13, 4, 18, 13, 17, 0, 13, 4, 18, 13, 18, 13, 17, 0, 13...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String[] a) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t// ????§???¢??????????????°\n\t\tint x;\n\t\tint y;\n\t\t...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; class Main{ public static void main(String[] a) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); // ????§???¢??????????????° int x; int y; int z; // ????????\????...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 2, 2, 2, 13,...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main {\n private void rightTriangle() {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while (n-- != 0) {\n int a = sc.nextInt();\n int b = sc.nextInt();\n int c = sc.nextInt();\n if (a * a + b ...
import java.util.Scanner; class Main { private void rightTriangle() { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); while (n-- != 0) { int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if (a * a + b * b == c * c ||...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 129, 5 ], [ 129, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ],...
[ "import java.io.*;\n\npublic class Main {\n\tpublic static void main(String args[]) throws IOException{\n\t\tString str;\n\t\tString[] dataSet;\n\t\tint dataSet_Number;\n\t\tdouble a,b,c,i;\n\t\tBufferedReader input =\n\t\t\t\tnew BufferedReader(new InputStreamReader(System.in));\n\t\tdataSet_Number = Integer.parse...
import java.io.*; public class Main { public static void main(String args[]) throws IOException{ String str; String[] dataSet; int dataSet_Number; double a,b,c,i; BufferedReader input = new BufferedReader(new InputStreamReader(System.in)); dataSet_Number = Integer.parseInt(input.readLine()); for(...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 20, 11, 1, 2, 17, 13, 1, 40, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 163, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\n\npublic class Main{\n\tprivate final static String NEGATIVE = \"NO\\n\";\n\tprivate final static String AFFIRMATIVE = \"YES\\n\";\n\n\tpublic static void main(String[] args) throws Excep...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class Main{ private final static String NEGATIVE = "NO\n"; private final static String AFFIRMATIVE = "YES\n"; public static void main(String[] args) throws Exception { BufferedReader...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 42, 17, 30, 14, 2, 13, 17, 30, 3, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 13, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 127, 5 ], [ 127, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint a;\n\t\tint b;\n\t\tint c;\n\t\tint N = stdIn.nextInt();\n\t\tint count = 0;\n\t\tint box;\n\t\twhile (true) {\n\t\t\tif(N<=0){\n\t\t\tbreak;\n\t\t\t}\n\t\t\ta = stdIn.n...
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); int a; int b; int c; int N = stdIn.nextInt(); int count = 0; int box; while (true) { if(N<=0){ break; } a = stdIn.nextInt(); b = stdIn.nextInt(); c = stdIn.ne...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4...
[ [ 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 ], ...
[ "import java.util.Scanner;\nimport java.util.Arrays;\n\nclass Main{\n public static void main(String[] a){\n Scanner s = new Scanner(System.in);\n int n = s.nextInt();\n int[] inputs = new int[3];\n\n String result;\n for(int i = 0;i < n;i++) {\n for (int j = 0; j < ...
import java.util.Scanner; import java.util.Arrays; class Main{ public static void main(String[] a){ Scanner s = new Scanner(System.in); int n = s.nextInt(); int[] inputs = new int[3]; String result; for(int i = 0;i < n;i++) { for (int j = 0; j < 3; j++) { ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 4, 18, 13, 18, 13, 17...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 166, 11 ], [ 166, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\t/**\n\t * <p>\n\t * 与えられた三辺で直角三角形が作れるかを判定する。\n\t * </p>\n\t *\n\t * @param args\n\t * 利用しない。\n\t * @throws IOException\n\t */\n\tpublic static void main(String[] args) throws Number...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { /** * <p> * 与えられた三辺で直角三角形が作れるかを判定する。 * </p> * * @param args * 利用しない。 * @throws IOException */ public static void main(String[] args) throws NumberFormatException, IOExceptio...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 41, 13, 4, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13...
[ [ 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 ],...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tint size = readInt();\n\t\tfor (int i = 0; i < size; i++) {\n\t\t\tboolean yes = false;\n\t\t\tint[] a = readInts();\n\t\t\tfor...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { int size = readInt(); for (int i = 0; i < size; i++) { boolean yes = false; int[] a = readInts(); for (int j = 0; j < a.length; j++...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 38, 5, 13, 30, 4, 18, 18, 13, 13, 17, 30, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 3...
[ [ 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 ], ...
[ "import java.io.*;\nimport java.util.StringTokenizer;\nimport java.util.Collections;\nimport java.util.ArrayList;\n\nclass Main {\n\tpublic static void main(String args[]) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\n\t\ttry {\n\t\t\tint n = I...
import java.io.*; import java.util.StringTokenizer; import java.util.Collections; import java.util.ArrayList; class Main { public static void main(String args[]) { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); try { int n = Integer.parseInt(br.readLin...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 17, 38, 5, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 0, 13, 20, 13, 11, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 332, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.lang.Math;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(is);\n\n\t\tString col ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.lang.Math; public class Main { public static void main(String[] args) { InputStreamReader is = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(is); String col = "0"; //入力する行数 Stri...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 4, ...
[ [ 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 ], [...
[ "import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] a){\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint N = scanner.nextInt();\n\t\tint[] hen = new int[3];\n\t\tfor(int i = 0 ; i < N ; i ++ ){\n\t\t\tfor(int x = 0; x < 3 ; x++){\n\t\t\t\then[x] = scanner.nextInt();\n\t\t\t}\n\t\t\tArrays...
import java.util.*; class Main{ public static void main(String[] a){ Scanner scanner = new Scanner(System.in); int N = scanner.nextInt(); int[] hen = new int[3]; for(int i = 0 ; i < N ; i ++ ){ for(int x = 0; x < 3 ; x++){ hen[x] = scanner.nextInt(); } Arrays.sort(hen); if( (hen[2]*hen[2]) =...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, ...
[ [ 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 ], [...
[ "import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a, b, c;\n\t\tboolean flg;\n\t\tfor(int i = 0; i < n; i++){\n\t\t\ta = sc.nextInt();\n\t\t\tb = sc.nextInt();\n\t\t\tc = sc.nextInt();\n\t\t\tif(a >= b && a >=...
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int a, b, c; boolean flg; for(int i = 0; i < n; i++){ a = sc.nextInt(); b = sc.nextInt(); c = sc.nextInt(); if(a >= b && a >= c){ flg = pita(a, b, c); }else i...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 41, 13, 20, 11, 1, 2, 17, 13, 1, 40, ...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.StringTokenizer;\n\npublic class Main {\n\tprivate final static String NEGATIVE = \"NO\\n\";\n\tprivate final static String AFFIRMATIVE = \"YES\\n\";\n\n\tpublic static void ma...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; import java.util.StringTokenizer; public class Main { private final static String NEGATIVE = "NO\n"; private final static String AFFIRMATIVE = "YES\n"; public static void main(String[] args) throws...
[ 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, ...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.List;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tBufferedReader br = new BufferedReader(new InputStrea...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.List; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in))...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 4, 18, 13, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 2, 13, 13, 2, 2, 13, 13, 2, 13, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 93, 5 ], [ 93, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], ...
[ "import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tfor(int i = sc.nextInt(); i>0; i--){\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tif(a*a == (b*b + c*c) || b*b == (a*a + c*c) || c...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); for(int i = sc.nextInt(); i>0; i--){ int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(a*a == (b*b + c*c) || b*b == (a*a + c*c) || c*c == (a*a + b*b)) System....
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 42, 4, 18, 13, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 13, 14, 2, 2, 18, 13, 17, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 88, 5 ], [ 88, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner s = new Scanner(System.in);\n int x = s.nextInt();\n byte[] a = new byte[3];\n while(s.hasNext()){\n for(int i=0;i<3;i++)\n a[i] = s.nextByte(); ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner s = new Scanner(System.in); int x = s.nextInt(); byte[] a = new byte[3]; while(s.hasNext()){ for(int i=0;i<3;i++) a[i] = s.nextByte(); Ar...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 40, 17, 41, 13, 40, 17, 41, 13, 40, 17, 41, 13, 40, 17, 41, 13, 20, 38, 5, 13, 30, 5, 13, 30, 30, 42, 2, 2, 0, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 237, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\n\npublic class Main {\n\t\n public static void main(String[] a){\n \t\n \tBufferedReader stdin = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint n...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; public class Main { public static void main(String[] a){ BufferedReader stdin = new BufferedReader(new InputStreamReader(System.in)); String line; int numDS = -1; int aSide =...
[ 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, ...
[ [ 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 ],...
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\t\n\t\tfor(int i=1; i<=N; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\t\n\t\t\tif(a < c && ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); for(int i=1; i<=N; i++) { int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); if(a < c && b < c) { if(c * c == a * a + b * b) { ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 4, 13, 13, 13, 13, 30...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 123, 8 ], [ 123, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.Scanner;\nimport java.util.Arrays;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int num = scanner.nextInt();\n for (int i = 0; i < num; i++) {\n int a = scanner.nextInt();\n int b =...
import java.util.Scanner; import java.util.Arrays; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int num = scanner.nextInt(); for (int i = 0; i < num; i++) { int a = scanner.nextInt(); int b = scanner.nextInt...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 17, 41, 13, 17, 41, 13, 20, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 0, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 106, 8 ], [ 106, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] arg) {\n\t\tint[] a=new int[3];\n\t\tint n=0;\n\t\tScanner scan = new Scanner(System.in);\n\t\tn=scan.nextInt();\n\t\tfor (int j=0;j<n;j++) {\n\t\t\ta[0] = scan.nextInt();\n\t\t\ta[1] = scan.nextInt();\n\...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] arg) { int[] a=new int[3]; int n=0; Scanner scan = new Scanner(System.in); n=scan.nextInt(); for (int j=0;j<n;j++) { a[0] = scan.nextInt(); a[1] = scan.nextInt(); a[2] = scan.nextInt(); Arrays...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 20, 17, 41, 13, 20, 0, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 104, 8 ], [ 104, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ]...
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tint dataset;\n\t\tint[] data = new int[3];\t\t\n\t\tScanner scanner = new Scanner(System.in);\n\t\tdataset = scanner.nextInt();\n\t\tfor(int i=0; i<dataset; i++){\n\t\t\tfor(int j=0; j<3; j...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { int dataset; int[] data = new int[3]; Scanner scanner = new Scanner(System.in); dataset = scanner.nextInt(); for(int i=0; i<dataset; i++){ for(int j=0; j<3; j++){ data[j] = scanner.nextI...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 124, 8 ], [ 124, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 13, 14 ]...
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tint T = Integer.parseInt(in.readLine());\n\t\t\tfor (int i = 0; i < T; i++) {\n\t\t\t\tString[] sar = in.readL...
import java.io.*; import java.util.*; public class Main { public static void main(String[] args) { try { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int T = Integer.parseInt(in.readLine()); for (int i = 0; i < T; i++) { String[] sar = in.readLine().split(" "); int[] si...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 17, 42, 4, 18, 13, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13,...
[ [ 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 ], [...
[ "import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int[] data = new int[3];\n while (scan.hasNext()) {\n int n=scan.nextInt();\n for (int i = 0; i < n; i++) {\n for (int j = 0; j ...
import java.util.Scanner; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); int[] data = new int[3]; while (scan.hasNext()) { int n=scan.nextInt(); for (int i = 0; i < n; i++) { for (int j = 0; j < 3; j++) { ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 18, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 126, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint N = Integer.parseI...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); ...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 109, 8 ], [ 109, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint dataSetOfNum = scan.nextInt();\n\t\tint[] dataSet = new int[3];\n\t\tint side1, side2, side3;\n\t\t\n\t\tfor(int i = 0; i < dataSetOfNum; i++) ...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int dataSetOfNum = scan.nextInt(); int[] dataSet = new int[3]; int side1, side2, side3; for(int i = 0; i < dataSetOfNum; i++) { dataSet[0] = scan.nextI...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 18, 13, 13, 13, 30, 41, 13, 4, 18, 13, 17, 41, 13, 20, 41, 13, 41, 13, 20, 41, 13, 4, 18, 13, ...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tPattern pattern = Pattern.compile(\"([...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Collections; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static void main(String[] args) { try { Pattern pattern = Pattern.compile("([0-9]+) *([0-9]+) *([0-...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 13, 17, 41, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 4, 18, 13, 17, 11, 1,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 156, 8 ], [ 156, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\tScanner s = new Scanner(System.in);\n\t\tint N = s.nextInt();\n\t\ts.nextLine();\n\t\tint[][] a = new int[N][3];\n\t\tString str ;...
import java.util.Arrays; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO ????????????????????????????????????????????? Scanner s = new Scanner(System.in); int N = s.nextInt(); s.nextLine(); int[][] a = new int[N][3]; String str ; String[] result; fo...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 13, 13, 30, 4...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 135, 5 ], [ 135, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint N=sc.nextInt();\n\t\tfor(int i=0;i<N;i++){\n\t\t\tint a=0,b=0,c=0;\n\t\t\tint x=sc.nextInt();\n\t\t\tint y=sc.nextInt();\n\t\t\tif(x>y){\n\t\t\t\tint t=x;\n\t\t\t\tx=y;\n\t\t\t\ty=...
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc=new Scanner(System.in); int N=sc.nextInt(); for(int i=0;i<N;i++){ int a=0,b=0,c=0; int x=sc.nextInt(); int y=sc.nextInt(); if(x>y){ int t=x; x=y; y=t; } int z=sc.nextInt(); if(z<x){ a=...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 17, 41, 13, 20, 18, 13, 13, 1...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 133, 11 ], [ 133, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Here your code !\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer....
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.Arrays; public class Main { public static void main(String[] args) throws Exception { // Here your code ! BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(br.r...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 165, 5 ], [ 165, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) throws java.io.IOException {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint[] a = new int [n];\n\t\tint[] b = new int [n];\n\t\tint[] c = new int [n];\n\t\tfor(int d = 0; d < n ; d++){\n\t\t\...
import java.util.Scanner; public class Main { public static void main(String[] args) throws java.io.IOException { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); int[] a = new int [n]; int[] b = new int [n]; int[] c = new int [n]; for(int d = 0; d < n ; d++){ a[d] = scan.nextInt(); b[d...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 4, 13, 4, 18, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 131, 8 ], [ 131, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ]...
[ "\nimport java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tArrayList<String> result = new ArrayList<String>();\n\t\t\n\t\tint num = sc.nextInt();\n\t\t\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tresul...
import java.util.ArrayList; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); ArrayList<String> result = new ArrayList<String>(); int num = sc.nextInt(); for(int i = 0; i < num; i++){ result.add(isTriangle(sc.nextInt(), sc.n...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 20, 17, 1...
[ [ 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 ], ...
[ "\n\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\npublic class Main{\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamRead...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main{ public static void main(String[] args) throws IOException { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 4, 18, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 17, 2, 40, 13, 17, 1, 4, 18, 18, 13, 13, 8, 2, 2, 18, 13, 17, 18, 13, 17, 2, 2, 18, 13, 17, ...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [...
[ "import java.util.*;class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?\"YES\":\"NO\")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}}}", "import java.util.*;", "util.*", "java",...
import java.util.*;class Main{public static void main(String[]g){Scanner S=new Scanner(System.in);for(int i=S.nextInt(),j,x,y,z,a[]=new int[3];i-->0;System.out.println(a[2]*a[2]==a[1]*a[1]+a[0]*a[0]?"YES":"NO")){for(j=0;j<3;)a[j++]=S.nextInt();Arrays.sort(a);}}}
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13, 17, 4, 18, 13, 0, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 186, 5 ], [ 186, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint sides[] = new int[3];\n\t\tint rank[] = new int[3];\n\n\t\tfor(int i=0;i<N;i++){\n\t\t\tsides[0]=sc.nextInt();\n\t\t\tsides[1]=sc.nextInt();\n\t\t\tside...
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int sides[] = new int[3]; int rank[] = new int[3]; for(int i=0;i<N;i++){ sides[0]=sc.nextInt(); sides[1]=sc.nextInt(); sides[2]=sc.nextInt(); rank[0]=sides[0...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 17, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13,...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 256, 5 ], [ 256, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 8, 14 ], ...
[ "import java.util.Scanner;\n\n public class Main{\n\t public static void main(String[] args){\n\t\t Scanner s = new Scanner(System.in);\n\t\t int b,x,max,SH;\n\t\t SH = 0;\n\t\t while(s.hasNextInt()){\n\t\t x = s.nextInt();\n\t\t int[][] a = new int[x][3];\n\t\t for(b = 0; b < x; b++){\n\t\t\t a[b][0] = s.nextInt()...
import java.util.Scanner; public class Main{ public static void main(String[] args){ Scanner s = new Scanner(System.in); int b,x,max,SH; SH = 0; while(s.hasNextInt()){ x = s.nextInt(); int[][] a = new int[x][3]; for(b = 0; b < x; b++){ a[b][0] = s.nextInt(); a[b][1] = s.nextInt(); a...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 41, 13, 17, 41, 13, 20, 42, 40, 2, 2, 13, 17, ...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.StringTokenizer;\n\nclass Main {\n\tpublic static void main(String[] args)\n\t\t\tthrows IOException {\n\n\t\tBuffer...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.StringTokenizer; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new Buffe...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 4, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, ...
[ [ 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 ], ...
[ "import java.util.List;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[]args){\n\t\tIsitATriangle();\n\t}\n\t\n\tpublic static void IsitATriangle(){\n\t\tScanner scan = new Scanner(System.in);\...
import java.util.List; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; import java.util.Scanner; public class Main { public static void main(String[]args){ IsitATriangle(); } public static void IsitATriangle(){ Scanner scan = new Scanner(System.in); int n = scan.nextInt();...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17...
[ [ 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 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\nclass Main {\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tint data...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; class Main { public static void main(String[] args) throws NumberFormatException, IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int dataset = Integer.pars...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 13, 0, 13, 13, 0, 13, 13, 14, ...
[ [ 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 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int count = scanner.nextInt();\n\n for(int i=0; i<count; i++){\n \tint a = scanner.nextInt();\n int b = scanner.nextInt();\n ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int count = scanner.nextInt(); for(int i=0; i<count; i++){ int a = scanner.nextInt(); int b = scanner.nextInt(); int c = scann...
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 4, 18, 13, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 99, 8 ], [ 99, 9 ], [ 9, 10 ], [ 9, 11 ], [ 99, 12 ], [ 12, 13 ], [ 12, 14 ], ...
[ "import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\tstatic Scanner sc = new java.util.Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor (int x = 0 ; x < n ; x++){\n\t\t\t\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.ne...
import java.util.Arrays; import java.util.Scanner; public class Main { static Scanner sc = new java.util.Scanner(System.in); public static void main(String[] args) { int n = sc.nextInt(); for (int x = 0 ; x < n ; x++){ int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); ...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 4, 18, 13, 17, 41, 13, 17, 12, 13, 30, 41, 13, 4, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 13, 17, 41, 13, 4, 18...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 348, 11 ], [ 348, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\npublic class Main {\n final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n final String LINE_SPR = System.getProperty(\"line.separator\");\n final int BIG_MOD = 1000000007;\n\n void ru...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { final BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); final String LINE_SPR = System.getProperty("line.separator"); final int BIG_MOD = 1000000007; void run() throws Excep...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 132, 11 ], [ 132, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tint N = Integer.parseInt(br.readLine());\n \tStri...
import java.io.BufferedReader; import java.io.InputStreamReader; import java.util.*; public class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int N = Integer.parseInt(br.readLine()); String line = br.re...
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 20, 17, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 169, 5 ], [ 169, 6 ], [ 6, 7 ], [ 6, 8 ], [ 169, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ...
[ "import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tList<String> list = new ArrayList<String>();\n\t\tboolean flag = false;\n\t\tint[] tri = new int[3];\n\t\tint N = scan.nextInt();\n\t\tfor(int a = 0; a < N; a++...
import java.util.*; public class Main{ private static final Scanner scan = new Scanner(System.in); public static void main(String[] args){ List<String> list = new ArrayList<String>(); boolean flag = false; int[] tri = new int[3]; int N = scan.nextInt(); for(int a = 0; a < N; a++){ for(int i = 0; i < 3;...
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 2, 2, 0, 13, 4, 18, 13, 17, 40, 4, 18, 13, 30, 41, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 47, 14 ], ...
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n Strin...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = ""; ...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 13, 13, 41, 13, 2, 13, 13,...
[ [ 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 ], ...
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint a = sc.nextInt();\n\t\t\tint b = sc.nextInt();\n\t\t\tint c = sc.nextInt();\n\t\t\tint a2 = a * a;\n\t\t\ti...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 0; i < n; i++) { int a = sc.nextInt(); int b = sc.nextInt(); int c = sc.nextInt(); int a2 = a * a; int b2 = b * b; int c2 = c * c; i...
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 4...
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 245, 5 ], [ 245, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ],...
[ "import java.io.*;\n\npublic class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\t//System.out.println(\"Hello world\");\n\t\tInputStreamReader is = new InputStreamReader(System.in);\n\t\tBufferedReader br =new BufferedReader(is);\n\n\t\tString c = br.readLine();\n\t\tint n1 = Integer.par...
import java.io.*; public class Main { public static void main(String[] args)throws IOException{ //System.out.println("Hello world"); InputStreamReader is = new InputStreamReader(System.in); BufferedReader br =new BufferedReader(is); String c = br.readLine(); int n1 = Integer.parseInt(c); int[] n = new i...
[ 7, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 41, 13, 41, 13, 41, 13, 0, 13, 4, 18, 13, 0, 13, 20, 13, 17, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 0, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, ...
[ [ 0, 1 ], [ 233, 2 ], [ 233, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 5, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 5, 13 ], [ 13, 14 ],...
[ "public class Main{\n\tpublic void run(java.io.InputStream in,java.io.PrintStream out){\n\tjava.util.Scanner sc = new java.util.Scanner(in);\n/*????????§Input*/\n\tint N, i, j;\n\tint[][] a;\n\n\tN = sc.nextInt();\n\ta = new int[N][3];\n\n\tfor(i = 0;i < N;i++){\n\t\tfor(j = 0;j < 3;j++){\n\t\t\ta[i][j] = sc.nextIn...
public class Main{ public void run(java.io.InputStream in,java.io.PrintStream out){ java.util.Scanner sc = new java.util.Scanner(in); /*????????§Input*/ int N, i, j; int[][] a; N = sc.nextInt(); a = new int[N][3]; for(i = 0;i < N;i++){ for(j = 0;j < 3;j++){ a[i][j] = sc.nextInt(); } } sc.close(); /...