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, 41, 13, 20, 41, 13, 4, 18, 13, 35, 13, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 102, 5 ], [ 102, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 21, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 31, 38 ], [ 17, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 41, 48 ], [ 17, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 51, 58 ], [ 17, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 61, 68 ], [ 17, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 71, 78 ], [ 17, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 81, 88 ], [ 17, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 91, 98 ], [ 6, 99 ], [ 99, 100 ], [ 0, 101 ], [ 101, 102 ], [ 101, 103 ] ]
[ "import java.util.*;\npublic class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String L = sc.nextLine();\n \n switch(L){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n }\n }\n}\n\n\n\n\n\n\n", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String L = sc.nextLine();\n \n switch(L){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String L = sc.nextLine();\n \n switch(L){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String L = sc.nextLine();\n \n switch(L){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String L = sc.nextLine();", "L", "sc.nextLine()", "sc.nextLine", "sc", "switch(L){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n }", "L", "case \"SSS\":", "\"SSS\"", "case \"SSS\":", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "break;", "case \"SSR\":", "\"SSR\"", "case \"SSR\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "case \"SRS\":", "\"SRS\"", "case \"SRS\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "case \"RSS\":", "\"RSS\"", "case \"RSS\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "case \"RRS\":", "\"RRS\"", "case \"RRS\":", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "break;", "case \"RSR\":", "\"RSR\"", "case \"RSR\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "case \"SRR\":", "\"SRR\"", "case \"SRR\":", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "break;", "case \"RRR\":", "\"RRR\"", "case \"RRR\":", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "break;", "String[] args", "args", "public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String L = sc.nextLine();\n \n switch(L){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n }\n }\n}", "public class Main{\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String L = sc.nextLine();\n \n switch(L){\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n System.out.println(\"1\");\n break;\n case \"SRS\":\n System.out.println(\"1\");\n break;\n case \"RSS\":\n System.out.println(\"1\");\n break;\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n break;\n }\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args) { Scanner sc = new Scanner(System.in); String L = sc.nextLine(); switch(L){ case "SSS": System.out.println("0"); break; case "SSR": System.out.println("1"); break; case "SRS": System.out.println("1"); break; case "RSS": System.out.println("1"); break; case "RRS": System.out.println("2"); break; case "RSR": System.out.println("1"); break; case "SRR": System.out.println("2"); break; case "RRR": System.out.println("3"); break; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 2, 17, 17, 30, 4, 18, 18, 13, 13, 2, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 71, 5 ], [ 71, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 17, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 42, 44 ], [ 31, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 45, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 6, 68 ], [ 68, 69 ], [ 0, 70 ], [ 70, 71 ], [ 70, 72 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n \tif(str.contains(\"RRR\")){System.out.println(\"\"+3);}\n \telse if(str.contains(\"RR\")){System.out.println(\"\"+2);}\n \telse if(str.contains(\"R\")){System.out.println(\"\"+1);}\n \telse{System.out.println(\"\"+0);}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n \tif(str.contains(\"RRR\")){System.out.println(\"\"+3);}\n \telse if(str.contains(\"RR\")){System.out.println(\"\"+2);}\n \telse if(str.contains(\"R\")){System.out.println(\"\"+1);}\n \telse{System.out.println(\"\"+0);}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n \tif(str.contains(\"RRR\")){System.out.println(\"\"+3);}\n \telse if(str.contains(\"RR\")){System.out.println(\"\"+2);}\n \telse if(str.contains(\"R\")){System.out.println(\"\"+1);}\n \telse{System.out.println(\"\"+0);}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n \tif(str.contains(\"RRR\")){System.out.println(\"\"+3);}\n \telse if(str.contains(\"RR\")){System.out.println(\"\"+2);}\n \telse if(str.contains(\"R\")){System.out.println(\"\"+1);}\n \telse{System.out.println(\"\"+0);}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "if(str.contains(\"RRR\")){System.out.println(\"\"+3);}\n \telse if(str.contains(\"RR\")){System.out.println(\"\"+2);}\n \telse if(str.contains(\"R\")){System.out.println(\"\"+1);}\n \telse{System.out.println(\"\"+0);}", "str.contains(\"RRR\")", "str.contains", "str", "\"RRR\"", "{System.out.println(\"\"+3);}", "System.out.println(\"\"+3)", "System.out.println", "System.out", "System", "System.out", "\"\"+3", "\"\"", "3", "if(str.contains(\"RR\")){System.out.println(\"\"+2);}\n \telse if(str.contains(\"R\")){System.out.println(\"\"+1);}\n \telse{System.out.println(\"\"+0);}", "str.contains(\"RR\")", "str.contains", "str", "\"RR\"", "{System.out.println(\"\"+2);}", "System.out.println(\"\"+2)", "System.out.println", "System.out", "System", "System.out", "\"\"+2", "\"\"", "2", "if(str.contains(\"R\")){System.out.println(\"\"+1);}\n \telse{System.out.println(\"\"+0);}", "str.contains(\"R\")", "str.contains", "str", "\"R\"", "{System.out.println(\"\"+1);}", "System.out.println(\"\"+1)", "System.out.println", "System.out", "System", "System.out", "\"\"+1", "\"\"", "1", "{System.out.println(\"\"+0);}", "System.out.println(\"\"+0)", "System.out.println", "System.out", "System", "System.out", "\"\"+0", "\"\"", "0", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n \tif(str.contains(\"RRR\")){System.out.println(\"\"+3);}\n \telse if(str.contains(\"RR\")){System.out.println(\"\"+2);}\n \telse if(str.contains(\"R\")){System.out.println(\"\"+1);}\n \telse{System.out.println(\"\"+0);}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString str = sc.next();\n \tif(str.contains(\"RRR\")){System.out.println(\"\"+3);}\n \telse if(str.contains(\"RR\")){System.out.println(\"\"+2);}\n \telse if(str.contains(\"R\")){System.out.println(\"\"+1);}\n \telse{System.out.println(\"\"+0);}\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String str = sc.next(); if(str.contains("RRR")){System.out.println(""+3);} else if(str.contains("RR")){System.out.println(""+2);} else if(str.contains("R")){System.out.println(""+1);} else{System.out.println(""+0);} } }
[ 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, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 30, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 17, 30, 0, 13, 17, 14, 2, 13, 13, 30, 4, 18, 18, 13, 13, 13, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 101, 17 ], [ 101, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 21, 23 ], [ 20, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 20, 34 ], [ 34, 35 ], [ 34, 36 ], [ 20, 37 ], [ 37, 38 ], [ 37, 39 ], [ 20, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 47, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 40, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 55, 61 ], [ 61, 62 ], [ 62, 63 ], [ 55, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 65, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 73, 74 ], [ 73, 75 ], [ 65, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 20, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 80, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 18, 98 ], [ 98, 99 ], [ 0, 100 ], [ 100, 101 ], [ 100, 102 ] ]
[ "import java.util.Arrays;\nimport java.util.HashSet;\nimport java.util.Scanner;\nimport java.util.Vector;\nimport java.util.concurrent.CountDownLatch;\n\npublic class Main {\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString string = in.next();\n\t\tchar arr[] = string.toCharArray();\n\t\tint r = 0;//2\n\t\tint max = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\n\t\t}\n\t}\n\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.HashSet;", "HashSet", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Vector;", "Vector", "java.util", "import java.util.concurrent.CountDownLatch;", "CountDownLatch", "java.util.concurrent", "public class Main {\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString string = in.next();\n\t\tchar arr[] = string.toCharArray();\n\t\tint r = 0;//2\n\t\tint max = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\n\t\t}\n\t}\n\n}", "Main", "public static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString string = in.next();\n\t\tchar arr[] = string.toCharArray();\n\t\tint r = 0;//2\n\t\tint max = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\n\t\t}\n\t}", "main", "{\n\t\tScanner in = new Scanner(System.in);\n\t\tString string = in.next();\n\t\tchar arr[] = string.toCharArray();\n\t\tint r = 0;//2\n\t\tint max = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\n\t\t}\n\t}", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String string = in.next();", "string", "in.next()", "in.next", "in", "char arr[] = string.toCharArray();", "arr", "string.toCharArray()", "string.toCharArray", "string", "int r = 0;", "r", "0", "int max = 0;", "max", "0", "for (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}", "arr[i]=='R'", "arr[i]", "arr", "i", "'R'", "{\n\t\t\t\tr++;\n\t\t\t}", "r++", "r", "{\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}", "if (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}", "max<r", "max", "r", "{\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}", "max = r", "max", "r", "r = 0", "r", "0", "{\n\t\t\t\t\tr = 0;\n\t\t\t\t}", "r = 0", "r", "0", "if (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\n\t\t}", "max<r", "max", "r", "{\n\t\t\tSystem.out.println(r);\n\t\t}", "System.out.println(r)", "System.out.println", "System.out", "System", "System.out", "r", "{\n\t\tSystem.out.println(max);\n\t\t}", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String args[]", "args", "public class Main {\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString string = in.next();\n\t\tchar arr[] = string.toCharArray();\n\t\tint r = 0;//2\n\t\tint max = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\n\t\t}\n\t}\n\n}", "public class Main {\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner in = new Scanner(System.in);\n\t\tString string = in.next();\n\t\tchar arr[] = string.toCharArray();\n\t\tint r = 0;//2\n\t\tint max = 0;\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tif(arr[i]=='R') {\n\t\t\t\tr++;\n\t\t\t}else {\n\t\t\t\tif (max<r) {\n\t\t\t\t\tmax = r;\n\t\t\t\t\tr = 0;\n\t\t\t\t}else {\n\t\t\t\t\tr = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (max<r) {\n\t\t\tSystem.out.println(r);\n\t\t}else {\n\t\tSystem.out.println(max);\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Arrays; import java.util.HashSet; import java.util.Scanner; import java.util.Vector; import java.util.concurrent.CountDownLatch; public class Main { public static void main(String args[]) { Scanner in = new Scanner(System.in); String string = in.next(); char arr[] = string.toCharArray(); int r = 0;//2 int max = 0; for (int i = 0; i < arr.length; i++) { if(arr[i]=='R') { r++; }else { if (max<r) { max = r; r = 0; }else { r = 0; } } } if (max<r) { System.out.println(r); }else { System.out.println(max); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 63, 5 ], [ 63, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 29, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 41, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 6, 60 ], [ 60, 61 ], [ 0, 62 ], [ 62, 63 ], [ 62, 64 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n final String S = sc.nextLine();\n if (S.equals(\"RRR\")) {\n System.out.println(3);\n } else if (S.contains(\"RR\")) {\n System.out.println(2);\n } else if (S.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n final String S = sc.nextLine();\n if (S.equals(\"RRR\")) {\n System.out.println(3);\n } else if (S.contains(\"RR\")) {\n System.out.println(2);\n } else if (S.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n final String S = sc.nextLine();\n if (S.equals(\"RRR\")) {\n System.out.println(3);\n } else if (S.contains(\"RR\")) {\n System.out.println(2);\n } else if (S.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n final String S = sc.nextLine();\n if (S.equals(\"RRR\")) {\n System.out.println(3);\n } else if (S.contains(\"RR\")) {\n System.out.println(2);\n } else if (S.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final String S = sc.nextLine();", "S", "sc.nextLine()", "sc.nextLine", "sc", "if (S.equals(\"RRR\")) {\n System.out.println(3);\n } else if (S.contains(\"RR\")) {\n System.out.println(2);\n } else if (S.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }", "S.equals(\"RRR\")", "S.equals", "S", "\"RRR\"", "{\n System.out.println(3);\n }", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if (S.contains(\"RR\")) {\n System.out.println(2);\n } else if (S.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }", "S.contains(\"RR\")", "S.contains", "S", "\"RR\"", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if (S.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }", "S.contains(\"R\")", "S.contains", "S", "\"R\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n final String S = sc.nextLine();\n if (S.equals(\"RRR\")) {\n System.out.println(3);\n } else if (S.contains(\"RR\")) {\n System.out.println(2);\n } else if (S.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n final String S = sc.nextLine();\n if (S.equals(\"RRR\")) {\n System.out.println(3);\n } else if (S.contains(\"RR\")) {\n System.out.println(2);\n } else if (S.contains(\"R\")) {\n System.out.println(1);\n } else {\n System.out.println(0);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final String S = sc.nextLine(); if (S.equals("RRR")) { System.out.println(3); } else if (S.contains("RR")) { System.out.println(2); } else if (S.contains("R")) { System.out.println(1); } else { System.out.println(0); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 29, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 29, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 29, 44 ], [ 44, 45 ], [ 44, 46 ], [ 29, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 60, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 29, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 29, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 27, 86 ], [ 86, 87 ] ]
[ "import java.util.Scanner;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Comparator;\nimport java.util.Arrays;\nimport java.util.Collections;\nimport java.util.*;\nimport java.math.BigInteger;\nclass Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n String[] split = S.split(\"\");\n int count = 0;\n for (int i = 0;i < 3;i++) {\n if (split[i].equals(\"R\")) {\n count += 1;\n }\n }\n if (S.equals(\"RSR\")) {\n count -= 1;\n }\n System.out.println(count);\n }\n}\n", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.List;", "List", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Comparator;", "Comparator", "java.util", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.*;", "util.*", "java", "import java.math.BigInteger;", "BigInteger", "java.math", "class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n String[] split = S.split(\"\");\n int count = 0;\n for (int i = 0;i < 3;i++) {\n if (split[i].equals(\"R\")) {\n count += 1;\n }\n }\n if (S.equals(\"RSR\")) {\n count -= 1;\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n String[] split = S.split(\"\");\n int count = 0;\n for (int i = 0;i < 3;i++) {\n if (split[i].equals(\"R\")) {\n count += 1;\n }\n }\n if (S.equals(\"RSR\")) {\n count -= 1;\n }\n System.out.println(count);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n String[] split = S.split(\"\");\n int count = 0;\n for (int i = 0;i < 3;i++) {\n if (split[i].equals(\"R\")) {\n count += 1;\n }\n }\n if (S.equals(\"RSR\")) {\n count -= 1;\n }\n System.out.println(count);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String S = scan.next();", "S", "scan.next()", "scan.next", "scan", "String[] split = S.split(\"\");", "split", "S.split(\"\")", "S.split", "S", "\"\"", "int count = 0;", "count", "0", "for (int i = 0;i < 3;i++) {\n if (split[i].equals(\"R\")) {\n count += 1;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n if (split[i].equals(\"R\")) {\n count += 1;\n }\n }", "{\n if (split[i].equals(\"R\")) {\n count += 1;\n }\n }", "if (split[i].equals(\"R\")) {\n count += 1;\n }", "split[i].equals(\"R\")", "split[i].equals", "split[i]", "split", "i", "\"R\"", "{\n count += 1;\n }", "count += 1", "count", "1", "if (S.equals(\"RSR\")) {\n count -= 1;\n }", "S.equals(\"RSR\")", "S.equals", "S", "\"RSR\"", "{\n count -= 1;\n }", "count -= 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.util.Scanner; import java.util.List; import java.util.ArrayList; import java.util.Comparator; import java.util.Arrays; import java.util.Collections; import java.util.*; import java.math.BigInteger; class Main{ public static void main(String[] args){ Scanner scan = new Scanner(System.in); String S = scan.next(); String[] split = S.split(""); int count = 0; for (int i = 0;i < 3;i++) { if (split[i].equals("R")) { count += 1; } } if (S.equals("RSR")) { count -= 1; } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 0, 13, 4, 18, 13, 4, 18, 13, 41, 13, 20, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 0, 18, 13, 13, 4, 18, 13, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 17, 30, 40, 13, 14, 2, 13, 13, 0, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 8, 47 ], [ 47, 48 ], [ 47, 49 ], [ 8, 50 ], [ 50, 51 ], [ 50, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 58, 59 ], [ 58, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 53, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 66, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 66, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "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\tString Word=new String();\n\t\tWord=sc.next();\n\t\tsc.close();\n\t\tCharacter word[]=new Character[3];\n\t\tfor(int i=0;i<3;i++)\n\t\t\tword[i]=Word.charAt(i);\n\t\tint count=0;\n\t\tint max=0;\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(word[i].equals('R')) {\n\t\t\t\tcount++;\n\t\t\t\tif(count>max)\n\t\t\t\t\tmax=count;\n\t\t\t}else {\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString Word=new String();\n\t\tWord=sc.next();\n\t\tsc.close();\n\t\tCharacter word[]=new Character[3];\n\t\tfor(int i=0;i<3;i++)\n\t\t\tword[i]=Word.charAt(i);\n\t\tint count=0;\n\t\tint max=0;\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(word[i].equals('R')) {\n\t\t\t\tcount++;\n\t\t\t\tif(count>max)\n\t\t\t\t\tmax=count;\n\t\t\t}else {\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString Word=new String();\n\t\tWord=sc.next();\n\t\tsc.close();\n\t\tCharacter word[]=new Character[3];\n\t\tfor(int i=0;i<3;i++)\n\t\t\tword[i]=Word.charAt(i);\n\t\tint count=0;\n\t\tint max=0;\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(word[i].equals('R')) {\n\t\t\t\tcount++;\n\t\t\t\tif(count>max)\n\t\t\t\t\tmax=count;\n\t\t\t}else {\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString Word=new String();\n\t\tWord=sc.next();\n\t\tsc.close();\n\t\tCharacter word[]=new Character[3];\n\t\tfor(int i=0;i<3;i++)\n\t\t\tword[i]=Word.charAt(i);\n\t\tint count=0;\n\t\tint max=0;\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(word[i].equals('R')) {\n\t\t\t\tcount++;\n\t\t\t\tif(count>max)\n\t\t\t\t\tmax=count;\n\t\t\t}else {\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String Word=new String();", "Word", "new String()", "Word=sc.next()", "Word", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "Character word[]=new Character[3];", "word", "new Character[3]", "3", "for(int i=0;i<3;i++)\n\t\t\tword[i]=Word.charAt(i);", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "word[i]=Word.charAt(i);", "word[i]=Word.charAt(i)", "word[i]", "word", "i", "Word.charAt(i)", "Word.charAt", "Word", "i", "int count=0;", "count", "0", "int max=0;", "max", "0", "for(int i=0;i<3;i++) {\n\t\t\tif(word[i].equals('R')) {\n\t\t\t\tcount++;\n\t\t\t\tif(count>max)\n\t\t\t\t\tmax=count;\n\t\t\t}else {\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n\t\t\tif(word[i].equals('R')) {\n\t\t\t\tcount++;\n\t\t\t\tif(count>max)\n\t\t\t\t\tmax=count;\n\t\t\t}else {\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(word[i].equals('R')) {\n\t\t\t\tcount++;\n\t\t\t\tif(count>max)\n\t\t\t\t\tmax=count;\n\t\t\t}else {\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}", "if(word[i].equals('R')) {\n\t\t\t\tcount++;\n\t\t\t\tif(count>max)\n\t\t\t\t\tmax=count;\n\t\t\t}else {\n\t\t\t\tcount=0;\n\t\t\t}", "word[i].equals('R')", "word[i].equals", "word[i]", "word", "i", "'R'", "{\n\t\t\t\tcount++;\n\t\t\t\tif(count>max)\n\t\t\t\t\tmax=count;\n\t\t\t}", "count++", "count", "if(count>max)\n\t\t\t\t\tmax=count;", "count>max", "count", "max", "max=count", "max", "count", "{\n\t\t\t\tcount=0;\n\t\t\t}", "count=0", "count", "0", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString Word=new String();\n\t\tWord=sc.next();\n\t\tsc.close();\n\t\tCharacter word[]=new Character[3];\n\t\tfor(int i=0;i<3;i++)\n\t\t\tword[i]=Word.charAt(i);\n\t\tint count=0;\n\t\tint max=0;\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(word[i].equals('R')) {\n\t\t\t\tcount++;\n\t\t\t\tif(count>max)\n\t\t\t\t\tmax=count;\n\t\t\t}else {\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString Word=new String();\n\t\tWord=sc.next();\n\t\tsc.close();\n\t\tCharacter word[]=new Character[3];\n\t\tfor(int i=0;i<3;i++)\n\t\t\tword[i]=Word.charAt(i);\n\t\tint count=0;\n\t\tint max=0;\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(word[i].equals('R')) {\n\t\t\t\tcount++;\n\t\t\t\tif(count>max)\n\t\t\t\t\tmax=count;\n\t\t\t}else {\n\t\t\t\tcount=0;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(max);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String Word=new String(); Word=sc.next(); sc.close(); Character word[]=new Character[3]; for(int i=0;i<3;i++) word[i]=Word.charAt(i); int count=0; int max=0; for(int i=0;i<3;i++) { if(word[i].equals('R')) { count++; if(count>max) max=count; }else { count=0; } } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 20, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 14, 2, 18, 13, 17, 17, 30, 40, 13, 14, 2, 18, 13, 17, 17, 30, 40, 13, 14, 2, 18, 13, 17, 17, 30, 40, 13, 30, 14, 2, 18, 13, 17, 17, 30, 40, 13, 14, 2, 18, 13, 17, 17, 30, 40, 13, 30, 14, 2, 18, 13, 17, 17, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 113, 5 ], [ 113, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 24 ], [ 24, 25 ], [ 24, 26 ], [ 8, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 8, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 48, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 66, 72 ], [ 72, 73 ], [ 73, 74 ], [ 48, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 85, 91 ], [ 91, 92 ], [ 92, 93 ], [ 76, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 96, 100 ], [ 95, 101 ], [ 101, 102 ], [ 102, 103 ], [ 8, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 6, 110 ], [ 110, 111 ], [ 0, 112 ], [ 112, 113 ], [ 112, 114 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\t\n\t\tint count=0;\n\t\tchar[] tenki = new char[3];\n\t\tchar temp = 'R';\n\t\t\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\ttenki[i] = s.charAt(i);\n\t\t}\n\t\t\n\t\tif(tenki[0] == 'R') {\n\t\t\tcount++;\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t\t\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\t\n\t\tint count=0;\n\t\tchar[] tenki = new char[3];\n\t\tchar temp = 'R';\n\t\t\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\ttenki[i] = s.charAt(i);\n\t\t}\n\t\t\n\t\tif(tenki[0] == 'R') {\n\t\t\tcount++;\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t\t\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\t\n\t\tint count=0;\n\t\tchar[] tenki = new char[3];\n\t\tchar temp = 'R';\n\t\t\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\ttenki[i] = s.charAt(i);\n\t\t}\n\t\t\n\t\tif(tenki[0] == 'R') {\n\t\t\tcount++;\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t\t\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\t\n\t\tint count=0;\n\t\tchar[] tenki = new char[3];\n\t\tchar temp = 'R';\n\t\t\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\ttenki[i] = s.charAt(i);\n\t\t}\n\t\t\n\t\tif(tenki[0] == 'R') {\n\t\t\tcount++;\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t\t\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "int count=0;", "count", "0", "char[] tenki = new char[3];", "tenki", "new char[3]", "3", "char temp = 'R';", "temp", "'R'", "for(int i=0; i < 3; i++) {\n\t\t\ttenki[i] = s.charAt(i);\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\ttenki[i] = s.charAt(i);\n\t\t}", "{\n\t\t\ttenki[i] = s.charAt(i);\n\t\t}", "tenki[i] = s.charAt(i)", "tenki[i]", "tenki", "i", "s.charAt(i)", "s.charAt", "s", "i", "if(tenki[0] == 'R') {\n\t\t\tcount++;\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "tenki[0] == 'R'", "tenki[0]", "tenki", "0", "'R'", "{\n\t\t\tcount++;\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "count++", "count", "if(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "tenki[1] == 'R'", "tenki[1]", "tenki", "1", "'R'", "{\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "count++", "count", "if(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}", "tenki[2] == 'R'", "tenki[2]", "tenki", "2", "'R'", "{\n\t\t\t\t\tcount++;\n\t\t\t\t}", "count++", "count", "{\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "tenki[1] == 'R'", "tenki[1]", "tenki", "1", "'R'", "{\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "count++", "count", "if(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}", "tenki[2] == 'R'", "tenki[2]", "tenki", "2", "'R'", "{\n\t\t\t\t\tcount++;\n\t\t\t\t}", "count++", "count", "{\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}", "if(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}", "tenki[2] == 'R'", "tenki[2]", "tenki", "2", "'R'", "{\n\t\t\t\t\tcount++;\n\t\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\t\n\t\tint count=0;\n\t\tchar[] tenki = new char[3];\n\t\tchar temp = 'R';\n\t\t\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\ttenki[i] = s.charAt(i);\n\t\t}\n\t\t\n\t\tif(tenki[0] == 'R') {\n\t\t\tcount++;\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t\t\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.nextLine();\n\t\t\n\t\tint count=0;\n\t\tchar[] tenki = new char[3];\n\t\tchar temp = 'R';\n\t\t\n\t\tfor(int i=0; i < 3; i++) {\n\t\t\ttenki[i] = s.charAt(i);\n\t\t}\n\t\t\n\t\tif(tenki[0] == 'R') {\n\t\t\tcount++;\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}else {\n\t\t\tif(tenki[1] == 'R') {\n\t\t\t\tcount++;\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}else {\n\t\t\t\tif(tenki[2] == 'R') {\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\tSystem.out.println(count);\n\t\t\n\t\t\n\t\t\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int count=0; char[] tenki = new char[3]; char temp = 'R'; for(int i=0; i < 3; i++) { tenki[i] = s.charAt(i); } if(tenki[0] == 'R') { count++; if(tenki[1] == 'R') { count++; if(tenki[2] == 'R') { count++; } } }else { if(tenki[1] == 'R') { count++; if(tenki[2] == 'R') { count++; } }else { if(tenki[2] == 'R') { count++; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 14, 2, 13, 13, 29, 17, 14, 2, 18, 18, 13, 13, 13, 40, 17, 29, 18, 18, 13, 13, 13, 41, 13, 4, 13, 2, 13, 17, 13, 0, 13, 4, 18, 13, 13, 4, 13, 13, 2, 13, 17, 28, 13, 18, 13, 13, 30, 30, 14, 2, 18, 18, 13, 13, 13, 13, 9, 41, 13, 8, 18, 18, 13, 2, 18, 18, 13, 13, 13, 17, 13, 17, 17, 0, 13, 4, 18, 13, 13, 2, 2, 2, 17, 4, 13, 18, 18, 13, 13, 13, 18, 18, 13, 13, 13, 13, 4, 13, 2, 18, 18, 13, 13, 13, 17, 13, 28, 13, 18, 13, 13, 30, 30, 14, 2, 18, 18, 13, 13, 13, 13, 9, 41, 13, 8, 18, 18, 13, 13, 2, 18, 18, 13, 13, 13, 17, 17, 17, 0, 13, 4, 18, 13, 13, 2, 2, 2, 17, 4, 13, 18, 18, 13, 13, 13, 18, 18, 13, 13, 13, 13, 4, 13, 2, 18, 18, 13, 13, 13, 17, 13, 29, 0, 18, 18, 13, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 18, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 18, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 18, 18, 13, 13, 13, 4, 18, 13, 18, 18, 13, 13, 13, 4, 18, 13, 17, 4, 18, 13, 17, 41, 13, 20, 28, 13, 13, 30, 4, 18, 13, 13, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 18, 13, 18, 18, 13, 13, 13, 0, 18, 18, 13, 13, 13, 4, 18, 13, 18, 18, 13, 13, 13, 0, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 13, 0, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 2, 13, 13, 41, 13, 2, 18, 13, 13, 18, 13, 13, 29, 2, 13, 13, 23, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 463, 11 ], [ 463, 12 ], [ 12, 13 ], [ 463, 14 ], [ 14, 15 ], [ 463, 16 ], [ 16, 17 ], [ 463, 18 ], [ 18, 19 ], [ 463, 20 ], [ 20, 21 ], [ 463, 22 ], [ 22, 23 ], [ 463, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 26, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 34, 40 ], [ 40, 41 ], [ 33, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 26, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 26, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 62, 65 ], [ 65, 66 ], [ 65, 67 ], [ 26, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 77, 81 ], [ 76, 82 ], [ 75, 83 ], [ 74, 84 ], [ 84, 85 ], [ 84, 86 ], [ 86, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 90, 96 ], [ 87, 97 ], [ 86, 98 ], [ 86, 99 ], [ 74, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 102, 106 ], [ 108, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 110, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 117, 121 ], [ 107, 122 ], [ 108, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 125, 131 ], [ 123, 132 ], [ 26, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 139, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 142, 146 ], [ 141, 147 ], [ 140, 148 ], [ 139, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 156, 162 ], [ 151, 163 ], [ 151, 164 ], [ 139, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 167, 170 ], [ 167, 171 ], [ 173, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 175, 182 ], [ 182, 183 ], [ 183, 184 ], [ 183, 185 ], [ 182, 186 ], [ 172, 187 ], [ 173, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 191, 195 ], [ 190, 196 ], [ 188, 197 ], [ 26, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 200, 204 ], [ 199, 205 ], [ 24, 206 ], [ 206, 207 ], [ 24, 208 ], [ 208, 209 ], [ 463, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 212, 216 ], [ 216, 217 ], [ 216, 218 ], [ 212, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 212, 226 ], [ 226, 227 ], [ 228, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 229, 233 ], [ 228, 234 ], [ 234, 235 ], [ 235, 236 ], [ 235, 237 ], [ 234, 238 ], [ 228, 239 ], [ 239, 240 ], [ 240, 241 ], [ 240, 242 ], [ 239, 243 ], [ 226, 244 ], [ 244, 245 ], [ 245, 246 ], [ 244, 247 ], [ 226, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 252, 254 ], [ 251, 255 ], [ 250, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 256, 260 ], [ 249, 261 ], [ 261, 262 ], [ 262, 263 ], [ 263, 264 ], [ 263, 265 ], [ 262, 266 ], [ 261, 267 ], [ 267, 268 ], [ 268, 269 ], [ 268, 270 ], [ 267, 271 ], [ 248, 272 ], [ 272, 273 ], [ 273, 274 ], [ 272, 275 ], [ 248, 276 ], [ 276, 277 ], [ 278, 278 ], [ 278, 279 ], [ 279, 280 ], [ 280, 281 ], [ 280, 282 ], [ 279, 283 ], [ 278, 284 ], [ 284, 285 ], [ 285, 286 ], [ 285, 287 ], [ 284, 288 ], [ 278, 289 ], [ 289, 290 ], [ 290, 291 ], [ 290, 292 ], [ 289, 293 ], [ 276, 294 ], [ 294, 295 ], [ 295, 296 ], [ 294, 297 ], [ 276, 298 ], [ 298, 299 ], [ 299, 300 ], [ 298, 301 ], [ 212, 302 ], [ 302, 303 ], [ 303, 304 ], [ 212, 305 ], [ 305, 306 ], [ 306, 307 ], [ 210, 308 ], [ 308, 309 ], [ 463, 310 ], [ 310, 311 ], [ 310, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 312, 316 ], [ 316, 317 ], [ 317, 318 ], [ 318, 319 ], [ 318, 320 ], [ 316, 321 ], [ 321, 322 ], [ 321, 323 ], [ 323, 324 ], [ 323, 325 ], [ 316, 326 ], [ 326, 327 ], [ 327, 328 ], [ 316, 329 ], [ 330, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 331, 334 ], [ 334, 335 ], [ 335, 336 ], [ 335, 337 ], [ 334, 338 ], [ 330, 339 ], [ 339, 340 ], [ 340, 341 ], [ 339, 342 ], [ 342, 343 ], [ 343, 344 ], [ 343, 345 ], [ 342, 346 ], [ 312, 347 ], [ 347, 348 ], [ 348, 349 ], [ 347, 350 ], [ 312, 351 ], [ 351, 352 ], [ 352, 353 ], [ 351, 354 ], [ 312, 355 ], [ 355, 356 ], [ 355, 357 ], [ 312, 358 ], [ 358, 359 ], [ 358, 360 ], [ 358, 361 ], [ 361, 362 ], [ 362, 363 ], [ 363, 364 ], [ 362, 365 ], [ 362, 366 ], [ 366, 367 ], [ 367, 368 ], [ 312, 369 ], [ 369, 370 ], [ 370, 371 ], [ 371, 372 ], [ 371, 373 ], [ 369, 374 ], [ 374, 375 ], [ 374, 376 ], [ 376, 377 ], [ 376, 378 ], [ 369, 379 ], [ 379, 380 ], [ 380, 381 ], [ 369, 382 ], [ 383, 383 ], [ 383, 384 ], [ 384, 385 ], [ 385, 386 ], [ 386, 387 ], [ 386, 388 ], [ 385, 389 ], [ 384, 390 ], [ 390, 391 ], [ 391, 392 ], [ 390, 393 ], [ 393, 394 ], [ 394, 395 ], [ 394, 396 ], [ 393, 397 ], [ 383, 398 ], [ 398, 399 ], [ 399, 400 ], [ 400, 401 ], [ 400, 402 ], [ 399, 403 ], [ 398, 404 ], [ 404, 405 ], [ 405, 406 ], [ 404, 407 ], [ 407, 408 ], [ 408, 409 ], [ 408, 410 ], [ 407, 411 ], [ 312, 412 ], [ 412, 413 ], [ 412, 414 ], [ 414, 415 ], [ 415, 416 ], [ 310, 417 ], [ 417, 418 ], [ 463, 419 ], [ 419, 420 ], [ 419, 421 ], [ 421, 422 ], [ 419, 423 ], [ 423, 424 ], [ 419, 425 ], [ 425, 426 ], [ 425, 427 ], [ 427, 428 ], [ 428, 429 ], [ 428, 430 ], [ 427, 431 ], [ 431, 432 ], [ 431, 433 ], [ 425, 434 ], [ 434, 435 ], [ 425, 436 ], [ 436, 437 ], [ 419, 438 ], [ 438, 439 ], [ 438, 440 ], [ 440, 441 ], [ 441, 442 ], [ 441, 443 ], [ 443, 444 ], [ 443, 445 ], [ 440, 446 ], [ 446, 447 ], [ 446, 448 ], [ 448, 449 ], [ 449, 450 ], [ 449, 451 ], [ 448, 452 ], [ 452, 453 ], [ 452, 454 ], [ 440, 455 ], [ 455, 456 ], [ 456, 457 ], [ 456, 458 ], [ 438, 459 ], [ 459, 460 ], [ 419, 461 ], [ 0, 462 ], [ 462, 463 ], [ 462, 464 ] ]
[ "import java.util.*;\nimport java.awt.Frame;\nimport java.io.*;\n\npublic class Main {\n\t// static ArrayList<Integer>[] g;\n\n\tstatic pair[] a;\n\tstatic int[][] memo;\n\n\tstatic int dp(int l, int r) {\n\t\tif (l > r)\n\t\t\treturn 0;\n\t\tif (memo[l][r] != -1)\n\t\t\treturn memo[l][r];\n\t\tint ans = dp(l + 1, r);\n\t\tans = Math.max(ans, dp(l, r - 1));\n\t\tfor (int idx : startAt[l]) {\n\t\t\tif (a[idx].y >= r)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[a[idx].y + 1][r] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}\n\t\tfor (int idx : endAt[r]) {\n\t\t\tif (a[idx].x <= l)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[l][a[idx].x - 1] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}\n\n\t\treturn memo[l][r] = ans;\n\t}\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\t\tchar[] a=br.readLine().toCharArray();\n\t\t\t\tif(a[0]=='R' && a[1]=='R' && a[2]=='R')\n\t\t\t\t\tpw.println(3);\n\t\t\t\telse if((a[0]=='R' && a[1]=='R')|| (a[1]=='R' && a[2]=='R'))\n\t\t\t\t\tpw.println(2);\n\t\t\t\telse if(a[0]=='R' || a[1]=='R'|| a[2]=='R')\n\t\t\t\t\tpw.println(1);\n\t\t\t\telse\n\t\t\t\t\tpw.println(0);\n\n\t\tpw.flush();\n\t\tpw.close();\n\n\t}\n\n\tstatic int maxSize;\n\tstatic boolean[][] exist;\n\tstatic ArrayList<Integer>[] startAt, endAt;\n\n\tstatic void compress(pair[] arr) {\n\t\tTreeSet<Integer> tr = new TreeSet<>();\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttr.add(arr[i].x);\n\t\t\ttr.add(arr[i].y);\n\t\t}\n\t\ttr.add(0);\n\t\ttr.add((int) 1e9);\n\t\tHashMap<Integer, Integer> hm = new HashMap<>();\n\t\tfor (int x : tr)\n\t\t\thm.put(x, hm.size());\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i].x = hm.get(arr[i].x);\n\t\t\tarr[i].y = hm.get(arr[i].y);\n\t\t}\n\t\tmaxSize = hm.size();\n\t}\n\n\tstatic class pair implements Comparable<pair> {\n\t\tint x;\n\t\tint y;\n\n\t\tpublic pair(int d, int u) {\n\t\t\tx = d;\n\t\t\ty = u;\n\t\t}\n\n\t\t@Override\n\t\tpublic int compareTo(pair o) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tint x1 = y - x;\n\t\t\tint x2 = o.y - o.x;\n\t\t\treturn x1 - x2;\n\t\t}\n\n\t}\n\n}", "import java.util.*;", "util.*", "java", "import java.awt.Frame;", "Frame", "java.awt", "import java.io.*;", "io.*", "java", "public class Main {\n\t// static ArrayList<Integer>[] g;\n\n\tstatic pair[] a;\n\tstatic int[][] memo;\n\n\tstatic int dp(int l, int r) {\n\t\tif (l > r)\n\t\t\treturn 0;\n\t\tif (memo[l][r] != -1)\n\t\t\treturn memo[l][r];\n\t\tint ans = dp(l + 1, r);\n\t\tans = Math.max(ans, dp(l, r - 1));\n\t\tfor (int idx : startAt[l]) {\n\t\t\tif (a[idx].y >= r)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[a[idx].y + 1][r] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}\n\t\tfor (int idx : endAt[r]) {\n\t\t\tif (a[idx].x <= l)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[l][a[idx].x - 1] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}\n\n\t\treturn memo[l][r] = ans;\n\t}\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\t\tchar[] a=br.readLine().toCharArray();\n\t\t\t\tif(a[0]=='R' && a[1]=='R' && a[2]=='R')\n\t\t\t\t\tpw.println(3);\n\t\t\t\telse if((a[0]=='R' && a[1]=='R')|| (a[1]=='R' && a[2]=='R'))\n\t\t\t\t\tpw.println(2);\n\t\t\t\telse if(a[0]=='R' || a[1]=='R'|| a[2]=='R')\n\t\t\t\t\tpw.println(1);\n\t\t\t\telse\n\t\t\t\t\tpw.println(0);\n\n\t\tpw.flush();\n\t\tpw.close();\n\n\t}\n\n\tstatic int maxSize;\n\tstatic boolean[][] exist;\n\tstatic ArrayList<Integer>[] startAt, endAt;\n\n\tstatic void compress(pair[] arr) {\n\t\tTreeSet<Integer> tr = new TreeSet<>();\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttr.add(arr[i].x);\n\t\t\ttr.add(arr[i].y);\n\t\t}\n\t\ttr.add(0);\n\t\ttr.add((int) 1e9);\n\t\tHashMap<Integer, Integer> hm = new HashMap<>();\n\t\tfor (int x : tr)\n\t\t\thm.put(x, hm.size());\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i].x = hm.get(arr[i].x);\n\t\t\tarr[i].y = hm.get(arr[i].y);\n\t\t}\n\t\tmaxSize = hm.size();\n\t}\n\n\tstatic class pair implements Comparable<pair> {\n\t\tint x;\n\t\tint y;\n\n\t\tpublic pair(int d, int u) {\n\t\t\tx = d;\n\t\t\ty = u;\n\t\t}\n\n\t\t@Override\n\t\tpublic int compareTo(pair o) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tint x1 = y - x;\n\t\t\tint x2 = o.y - o.x;\n\t\t\treturn x1 - x2;\n\t\t}\n\n\t}\n\n}", "Main", "static pair[] a;", "a", "static int[][] memo;", "memo", "static int maxSize;", "maxSize", "static boolean[][] exist;", "exist", "static ArrayList<Integer>[] startAt", "startAt", "endAt;", "endAt", "static int dp(int l, int r) {\n\t\tif (l > r)\n\t\t\treturn 0;\n\t\tif (memo[l][r] != -1)\n\t\t\treturn memo[l][r];\n\t\tint ans = dp(l + 1, r);\n\t\tans = Math.max(ans, dp(l, r - 1));\n\t\tfor (int idx : startAt[l]) {\n\t\t\tif (a[idx].y >= r)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[a[idx].y + 1][r] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}\n\t\tfor (int idx : endAt[r]) {\n\t\t\tif (a[idx].x <= l)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[l][a[idx].x - 1] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}\n\n\t\treturn memo[l][r] = ans;\n\t}", "dp", "{\n\t\tif (l > r)\n\t\t\treturn 0;\n\t\tif (memo[l][r] != -1)\n\t\t\treturn memo[l][r];\n\t\tint ans = dp(l + 1, r);\n\t\tans = Math.max(ans, dp(l, r - 1));\n\t\tfor (int idx : startAt[l]) {\n\t\t\tif (a[idx].y >= r)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[a[idx].y + 1][r] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}\n\t\tfor (int idx : endAt[r]) {\n\t\t\tif (a[idx].x <= l)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[l][a[idx].x - 1] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}\n\n\t\treturn memo[l][r] = ans;\n\t}", "if (l > r)\n\t\t\treturn 0;", "l > r", "l", "r", "return 0;", "0", "if (memo[l][r] != -1)\n\t\t\treturn memo[l][r];", "memo[l][r] != -1", "memo[l][r]", "memo[l]", "memo", "l", "r", "-1", "1", "return memo[l][r];", "memo[l][r]", "memo[l]", "memo", "l", "r", "int ans = dp(l + 1, r);", "ans", "dp(l + 1, r)", "dp", "l + 1", "l", "1", "r", "ans = Math.max(ans, dp(l, r - 1))", "ans", "Math.max(ans, dp(l, r - 1))", "Math.max", "Math", "ans", "dp(l, r - 1)", "dp", "l", "r - 1", "r", "1", "for (int idx : startAt[l]) {\n\t\t\tif (a[idx].y >= r)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[a[idx].y + 1][r] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}", "int idx", "startAt[l]", "startAt", "l", "{\n\t\t\tif (a[idx].y >= r)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[a[idx].y + 1][r] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}", "{\n\t\t\tif (a[idx].y >= r)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[a[idx].y + 1][r] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}", "if (a[idx].y >= r)\n\t\t\t\tcontinue;", "a[idx].y >= r", "a[idx].y", "a[idx]", "a", "idx", "a[idx].y", "r", "continue;", "int inc = exist[a[idx].y + 1][r] ? 1 : 0;", "inc", "exist[a[idx].y + 1][r] ? 1 : 0", "exist[a[idx].y + 1][r]", "exist[a[idx].y + 1]", "exist", "a[idx].y + 1", "a[idx].y", "a[idx]", "a", "idx", "a[idx].y", "1", "r", "1", "0", "ans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r))", "ans", "Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r))", "Math.max", "Math", "ans", "1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r)", "inc", "1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r)", "1", "dp(a[idx].x, a[idx].y)", "dp", "a[idx].x", "a[idx]", "a", "idx", "a[idx].x", "a[idx].y", "a[idx]", "a", "idx", "a[idx].y", "inc", "dp(a[idx].y + 1, r)", "dp", "a[idx].y + 1", "a[idx].y", "a[idx]", "a", "idx", "a[idx].y", "1", "r", "for (int idx : endAt[r]) {\n\t\t\tif (a[idx].x <= l)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[l][a[idx].x - 1] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}", "int idx", "endAt[r]", "endAt", "r", "{\n\t\t\tif (a[idx].x <= l)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[l][a[idx].x - 1] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}", "{\n\t\t\tif (a[idx].x <= l)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[l][a[idx].x - 1] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}", "if (a[idx].x <= l)\n\t\t\t\tcontinue;", "a[idx].x <= l", "a[idx].x", "a[idx]", "a", "idx", "a[idx].x", "l", "continue;", "int inc = exist[l][a[idx].x - 1] ? 1 : 0;", "inc", "exist[l][a[idx].x - 1] ? 1 : 0", "exist[l][a[idx].x - 1]", "exist[l]", "exist", "l", "a[idx].x - 1", "a[idx].x", "a[idx]", "a", "idx", "a[idx].x", "1", "1", "0", "ans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r))", "ans", "Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r))", "Math.max", "Math", "ans", "1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r)", "inc", "1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r)", "1", "dp(a[idx].x, a[idx].y)", "dp", "a[idx].x", "a[idx]", "a", "idx", "a[idx].x", "a[idx].y", "a[idx]", "a", "idx", "a[idx].y", "inc", "dp(a[idx].y + 1, r)", "dp", "a[idx].y + 1", "a[idx].y", "a[idx]", "a", "idx", "a[idx].y", "1", "r", "return memo[l][r] = ans;", "memo[l][r] = ans", "memo[l][r]", "memo[l]", "memo", "l", "r", "ans", "int l", "l", "int r", "r", "public static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\t\tchar[] a=br.readLine().toCharArray();\n\t\t\t\tif(a[0]=='R' && a[1]=='R' && a[2]=='R')\n\t\t\t\t\tpw.println(3);\n\t\t\t\telse if((a[0]=='R' && a[1]=='R')|| (a[1]=='R' && a[2]=='R'))\n\t\t\t\t\tpw.println(2);\n\t\t\t\telse if(a[0]=='R' || a[1]=='R'|| a[2]=='R')\n\t\t\t\t\tpw.println(1);\n\t\t\t\telse\n\t\t\t\t\tpw.println(0);\n\n\t\tpw.flush();\n\t\tpw.close();\n\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\t\tchar[] a=br.readLine().toCharArray();\n\t\t\t\tif(a[0]=='R' && a[1]=='R' && a[2]=='R')\n\t\t\t\t\tpw.println(3);\n\t\t\t\telse if((a[0]=='R' && a[1]=='R')|| (a[1]=='R' && a[2]=='R'))\n\t\t\t\t\tpw.println(2);\n\t\t\t\telse if(a[0]=='R' || a[1]=='R'|| a[2]=='R')\n\t\t\t\t\tpw.println(1);\n\t\t\t\telse\n\t\t\t\t\tpw.println(0);\n\n\t\tpw.flush();\n\t\tpw.close();\n\n\t}", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "char[] a=br.readLine().toCharArray();", "a", "br.readLine().toCharArray()", "br.readLine().toCharArray", "br.readLine()", "br.readLine", "br", "if(a[0]=='R' && a[1]=='R' && a[2]=='R')\n\t\t\t\t\tpw.println(3);\n\t\t\t\telse if((a[0]=='R' && a[1]=='R')|| (a[1]=='R' && a[2]=='R'))\n\t\t\t\t\tpw.println(2);\n\t\t\t\telse if(a[0]=='R' || a[1]=='R'|| a[2]=='R')\n\t\t\t\t\tpw.println(1);\n\t\t\t\telse\n\t\t\t\t\tpw.println(0);", "a[0]=='R' && a[1]=='R' && a[2]=='R'", "a[0]=='R' && a[1]=='R' && a[2]=='R'", "a[0]=='R'", "a[0]", "a", "0", "'R'", "a[1]=='R'", "a[1]", "a", "1", "'R'", "a[2]=='R'", "a[2]", "a", "2", "'R'", "pw.println(3)", "pw.println", "pw", "3", "if((a[0]=='R' && a[1]=='R')|| (a[1]=='R' && a[2]=='R'))\n\t\t\t\t\tpw.println(2);\n\t\t\t\telse if(a[0]=='R' || a[1]=='R'|| a[2]=='R')\n\t\t\t\t\tpw.println(1);\n\t\t\t\telse\n\t\t\t\t\tpw.println(0);", "(a[0]=='R' && a[1]=='R')|| (a[1]=='R' && a[2]=='R')", "(a[0]=='R' && a[1]=='R')", "a[0]=='R'", "a[0]", "a", "0", "'R'", "a[1]=='R'", "a[1]", "a", "1", "'R'", "(a[1]=='R' && a[2]=='R')", "a[1]=='R'", "a[1]", "a", "1", "'R'", "a[2]=='R'", "a[2]", "a", "2", "'R'", "pw.println(2)", "pw.println", "pw", "2", "if(a[0]=='R' || a[1]=='R'|| a[2]=='R')\n\t\t\t\t\tpw.println(1);\n\t\t\t\telse\n\t\t\t\t\tpw.println(0);", "a[0]=='R' || a[1]=='R'|| a[2]=='R'", "a[0]=='R' || a[1]=='R'|| a[2]=='R'", "a[0]=='R'", "a[0]", "a", "0", "'R'", "a[1]=='R'", "a[1]", "a", "1", "'R'", "a[2]=='R'", "a[2]", "a", "2", "'R'", "pw.println(1)", "pw.println", "pw", "1", "pw.println(0)", "pw.println", "pw", "0", "pw.flush()", "pw.flush", "pw", "pw.close()", "pw.close", "pw", "String[] args", "args", "static void compress(pair[] arr) {\n\t\tTreeSet<Integer> tr = new TreeSet<>();\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttr.add(arr[i].x);\n\t\t\ttr.add(arr[i].y);\n\t\t}\n\t\ttr.add(0);\n\t\ttr.add((int) 1e9);\n\t\tHashMap<Integer, Integer> hm = new HashMap<>();\n\t\tfor (int x : tr)\n\t\t\thm.put(x, hm.size());\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i].x = hm.get(arr[i].x);\n\t\t\tarr[i].y = hm.get(arr[i].y);\n\t\t}\n\t\tmaxSize = hm.size();\n\t}", "compress", "{\n\t\tTreeSet<Integer> tr = new TreeSet<>();\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttr.add(arr[i].x);\n\t\t\ttr.add(arr[i].y);\n\t\t}\n\t\ttr.add(0);\n\t\ttr.add((int) 1e9);\n\t\tHashMap<Integer, Integer> hm = new HashMap<>();\n\t\tfor (int x : tr)\n\t\t\thm.put(x, hm.size());\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i].x = hm.get(arr[i].x);\n\t\t\tarr[i].y = hm.get(arr[i].y);\n\t\t}\n\t\tmaxSize = hm.size();\n\t}", "TreeSet<Integer> tr = new TreeSet<>();", "tr", "new TreeSet<>()", "for (int i = 0; i < arr.length; i++) {\n\t\t\ttr.add(arr[i].x);\n\t\t\ttr.add(arr[i].y);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n\t\t\ttr.add(arr[i].x);\n\t\t\ttr.add(arr[i].y);\n\t\t}", "{\n\t\t\ttr.add(arr[i].x);\n\t\t\ttr.add(arr[i].y);\n\t\t}", "tr.add(arr[i].x)", "tr.add", "tr", "arr[i].x", "arr[i]", "arr", "i", "arr[i].x", "tr.add(arr[i].y)", "tr.add", "tr", "arr[i].y", "arr[i]", "arr", "i", "arr[i].y", "tr.add(0)", "tr.add", "tr", "0", "tr.add((int) 1e9)", "tr.add", "tr", "(int) 1e9", "HashMap<Integer, Integer> hm = new HashMap<>();", "hm", "new HashMap<>()", "for (int x : tr)\n\t\t\thm.put(x, hm.size());", "int x", "tr", "hm.put(x, hm.size());", "hm.put(x, hm.size())", "hm.put", "hm", "x", "hm.size()", "hm.size", "hm", "for (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i].x = hm.get(arr[i].x);\n\t\t\tarr[i].y = hm.get(arr[i].y);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n\t\t\tarr[i].x = hm.get(arr[i].x);\n\t\t\tarr[i].y = hm.get(arr[i].y);\n\t\t}", "{\n\t\t\tarr[i].x = hm.get(arr[i].x);\n\t\t\tarr[i].y = hm.get(arr[i].y);\n\t\t}", "arr[i].x = hm.get(arr[i].x)", "arr[i].x", "arr[i]", "arr", "i", "arr[i].x", "hm.get(arr[i].x)", "hm.get", "hm", "arr[i].x", "arr[i]", "arr", "i", "arr[i].x", "arr[i].y = hm.get(arr[i].y)", "arr[i].y", "arr[i]", "arr", "i", "arr[i].y", "hm.get(arr[i].y)", "hm.get", "hm", "arr[i].y", "arr[i]", "arr", "i", "arr[i].y", "maxSize = hm.size()", "maxSize", "hm.size()", "hm.size", "hm", "pair[] arr", "arr", "static class pair implements Comparable<pair> {\n\t\tint x;\n\t\tint y;\n\n\t\tpublic pair(int d, int u) {\n\t\t\tx = d;\n\t\t\ty = u;\n\t\t}\n\n\t\t@Override\n\t\tpublic int compareTo(pair o) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tint x1 = y - x;\n\t\t\tint x2 = o.y - o.x;\n\t\t\treturn x1 - x2;\n\t\t}\n\n\t}", "pair", "int x;", "x", "int y;", "y", "public pair(int d, int u) {\n\t\t\tx = d;\n\t\t\ty = u;\n\t\t}", "pair", "{\n\t\t\tx = d;\n\t\t\ty = u;\n\t\t}", "x = d", "x", "d", "y = u", "y", "u", "int d", "d", "int u", "u", "@Override\n\t\tpublic int compareTo(pair o) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tint x1 = y - x;\n\t\t\tint x2 = o.y - o.x;\n\t\t\treturn x1 - x2;\n\t\t}", "compareTo", "{\n\t\t\t// TODO Auto-generated method stub\n\t\t\tint x1 = y - x;\n\t\t\tint x2 = o.y - o.x;\n\t\t\treturn x1 - x2;\n\t\t}", "int x1 = y - x;", "x1", "y - x", "y", "x", "int x2 = o.y - o.x;", "x2", "o.y - o.x", "o.y", "o", "o.y", "o.x", "o", "o.x", "return x1 - x2;", "x1 - x2", "x1", "x2", "pair o", "o", "Comparable", "public class Main {\n\t// static ArrayList<Integer>[] g;\n\n\tstatic pair[] a;\n\tstatic int[][] memo;\n\n\tstatic int dp(int l, int r) {\n\t\tif (l > r)\n\t\t\treturn 0;\n\t\tif (memo[l][r] != -1)\n\t\t\treturn memo[l][r];\n\t\tint ans = dp(l + 1, r);\n\t\tans = Math.max(ans, dp(l, r - 1));\n\t\tfor (int idx : startAt[l]) {\n\t\t\tif (a[idx].y >= r)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[a[idx].y + 1][r] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}\n\t\tfor (int idx : endAt[r]) {\n\t\t\tif (a[idx].x <= l)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[l][a[idx].x - 1] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}\n\n\t\treturn memo[l][r] = ans;\n\t}\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\t\tchar[] a=br.readLine().toCharArray();\n\t\t\t\tif(a[0]=='R' && a[1]=='R' && a[2]=='R')\n\t\t\t\t\tpw.println(3);\n\t\t\t\telse if((a[0]=='R' && a[1]=='R')|| (a[1]=='R' && a[2]=='R'))\n\t\t\t\t\tpw.println(2);\n\t\t\t\telse if(a[0]=='R' || a[1]=='R'|| a[2]=='R')\n\t\t\t\t\tpw.println(1);\n\t\t\t\telse\n\t\t\t\t\tpw.println(0);\n\n\t\tpw.flush();\n\t\tpw.close();\n\n\t}\n\n\tstatic int maxSize;\n\tstatic boolean[][] exist;\n\tstatic ArrayList<Integer>[] startAt, endAt;\n\n\tstatic void compress(pair[] arr) {\n\t\tTreeSet<Integer> tr = new TreeSet<>();\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttr.add(arr[i].x);\n\t\t\ttr.add(arr[i].y);\n\t\t}\n\t\ttr.add(0);\n\t\ttr.add((int) 1e9);\n\t\tHashMap<Integer, Integer> hm = new HashMap<>();\n\t\tfor (int x : tr)\n\t\t\thm.put(x, hm.size());\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i].x = hm.get(arr[i].x);\n\t\t\tarr[i].y = hm.get(arr[i].y);\n\t\t}\n\t\tmaxSize = hm.size();\n\t}\n\n\tstatic class pair implements Comparable<pair> {\n\t\tint x;\n\t\tint y;\n\n\t\tpublic pair(int d, int u) {\n\t\t\tx = d;\n\t\t\ty = u;\n\t\t}\n\n\t\t@Override\n\t\tpublic int compareTo(pair o) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tint x1 = y - x;\n\t\t\tint x2 = o.y - o.x;\n\t\t\treturn x1 - x2;\n\t\t}\n\n\t}\n\n}", "public class Main {\n\t// static ArrayList<Integer>[] g;\n\n\tstatic pair[] a;\n\tstatic int[][] memo;\n\n\tstatic int dp(int l, int r) {\n\t\tif (l > r)\n\t\t\treturn 0;\n\t\tif (memo[l][r] != -1)\n\t\t\treturn memo[l][r];\n\t\tint ans = dp(l + 1, r);\n\t\tans = Math.max(ans, dp(l, r - 1));\n\t\tfor (int idx : startAt[l]) {\n\t\t\tif (a[idx].y >= r)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[a[idx].y + 1][r] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}\n\t\tfor (int idx : endAt[r]) {\n\t\t\tif (a[idx].x <= l)\n\t\t\t\tcontinue;\n\t\t\tint inc = exist[l][a[idx].x - 1] ? 1 : 0;\n\t\t\tans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r));\n\t\t}\n\n\t\treturn memo[l][r] = ans;\n\t}\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\t\t\tchar[] a=br.readLine().toCharArray();\n\t\t\t\tif(a[0]=='R' && a[1]=='R' && a[2]=='R')\n\t\t\t\t\tpw.println(3);\n\t\t\t\telse if((a[0]=='R' && a[1]=='R')|| (a[1]=='R' && a[2]=='R'))\n\t\t\t\t\tpw.println(2);\n\t\t\t\telse if(a[0]=='R' || a[1]=='R'|| a[2]=='R')\n\t\t\t\t\tpw.println(1);\n\t\t\t\telse\n\t\t\t\t\tpw.println(0);\n\n\t\tpw.flush();\n\t\tpw.close();\n\n\t}\n\n\tstatic int maxSize;\n\tstatic boolean[][] exist;\n\tstatic ArrayList<Integer>[] startAt, endAt;\n\n\tstatic void compress(pair[] arr) {\n\t\tTreeSet<Integer> tr = new TreeSet<>();\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\ttr.add(arr[i].x);\n\t\t\ttr.add(arr[i].y);\n\t\t}\n\t\ttr.add(0);\n\t\ttr.add((int) 1e9);\n\t\tHashMap<Integer, Integer> hm = new HashMap<>();\n\t\tfor (int x : tr)\n\t\t\thm.put(x, hm.size());\n\t\tfor (int i = 0; i < arr.length; i++) {\n\t\t\tarr[i].x = hm.get(arr[i].x);\n\t\t\tarr[i].y = hm.get(arr[i].y);\n\t\t}\n\t\tmaxSize = hm.size();\n\t}\n\n\tstatic class pair implements Comparable<pair> {\n\t\tint x;\n\t\tint y;\n\n\t\tpublic pair(int d, int u) {\n\t\t\tx = d;\n\t\t\ty = u;\n\t\t}\n\n\t\t@Override\n\t\tpublic int compareTo(pair o) {\n\t\t\t// TODO Auto-generated method stub\n\t\t\tint x1 = y - x;\n\t\t\tint x2 = o.y - o.x;\n\t\t\treturn x1 - x2;\n\t\t}\n\n\t}\n\n}", "Main" ]
import java.util.*; import java.awt.Frame; import java.io.*; public class Main { // static ArrayList<Integer>[] g; static pair[] a; static int[][] memo; static int dp(int l, int r) { if (l > r) return 0; if (memo[l][r] != -1) return memo[l][r]; int ans = dp(l + 1, r); ans = Math.max(ans, dp(l, r - 1)); for (int idx : startAt[l]) { if (a[idx].y >= r) continue; int inc = exist[a[idx].y + 1][r] ? 1 : 0; ans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r)); } for (int idx : endAt[r]) { if (a[idx].x <= l) continue; int inc = exist[l][a[idx].x - 1] ? 1 : 0; ans = Math.max(ans, 1 + dp(a[idx].x, a[idx].y) + inc + dp(a[idx].y + 1, r)); } return memo[l][r] = ans; } public static void main(String[] args) throws NumberFormatException, IOException { // TODO Auto-generated method stub BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); PrintWriter pw = new PrintWriter(System.out); char[] a=br.readLine().toCharArray(); if(a[0]=='R' && a[1]=='R' && a[2]=='R') pw.println(3); else if((a[0]=='R' && a[1]=='R')|| (a[1]=='R' && a[2]=='R')) pw.println(2); else if(a[0]=='R' || a[1]=='R'|| a[2]=='R') pw.println(1); else pw.println(0); pw.flush(); pw.close(); } static int maxSize; static boolean[][] exist; static ArrayList<Integer>[] startAt, endAt; static void compress(pair[] arr) { TreeSet<Integer> tr = new TreeSet<>(); for (int i = 0; i < arr.length; i++) { tr.add(arr[i].x); tr.add(arr[i].y); } tr.add(0); tr.add((int) 1e9); HashMap<Integer, Integer> hm = new HashMap<>(); for (int x : tr) hm.put(x, hm.size()); for (int i = 0; i < arr.length; i++) { arr[i].x = hm.get(arr[i].x); arr[i].y = hm.get(arr[i].y); } maxSize = hm.size(); } static class pair implements Comparable<pair> { int x; int y; public pair(int d, int u) { x = d; y = u; } @Override public int compareTo(pair o) { // TODO Auto-generated method stub int x1 = y - x; int x2 = o.y - o.x; return x1 - x2; } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 17, 14, 2, 4, 18, 13, 13, 17, 30, 41, 13, 13, 0, 13, 17, 42, 2, 2, 13, 17, 2, 4, 18, 13, 13, 17, 30, 40, 13, 40, 13, 0, 13, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 88, 8 ], [ 88, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 39, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 50, 52 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 58, 63 ], [ 53, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 46, 69 ], [ 69, 70 ], [ 69, 71 ], [ 35, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 74, 78 ], [ 11, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 9, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tint local = 0;\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\tlocal = 0;\n\t\t\t\twhile(j < 3 && s.charAt(j) == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}\n\t\t\t\ti = j;\n\t\t\t}\n\t\t\tans = Math.max(ans, local);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tint local = 0;\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\tlocal = 0;\n\t\t\t\twhile(j < 3 && s.charAt(j) == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}\n\t\t\t\ti = j;\n\t\t\t}\n\t\t\tans = Math.max(ans, local);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tint local = 0;\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\tlocal = 0;\n\t\t\t\twhile(j < 3 && s.charAt(j) == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}\n\t\t\t\ti = j;\n\t\t\t}\n\t\t\tans = Math.max(ans, local);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tint local = 0;\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\tlocal = 0;\n\t\t\t\twhile(j < 3 && s.charAt(j) == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}\n\t\t\t\ti = j;\n\t\t\t}\n\t\t\tans = Math.max(ans, local);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int ans = 0;", "ans", "0", "for(int i = 0; i < 3; i++) {\n\t\t\tint local = 0;\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\tlocal = 0;\n\t\t\t\twhile(j < 3 && s.charAt(j) == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}\n\t\t\t\ti = j;\n\t\t\t}\n\t\t\tans = Math.max(ans, local);\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\tint local = 0;\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\tlocal = 0;\n\t\t\t\twhile(j < 3 && s.charAt(j) == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}\n\t\t\t\ti = j;\n\t\t\t}\n\t\t\tans = Math.max(ans, local);\n\t\t}", "{\n\t\t\tint local = 0;\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\tlocal = 0;\n\t\t\t\twhile(j < 3 && s.charAt(j) == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}\n\t\t\t\ti = j;\n\t\t\t}\n\t\t\tans = Math.max(ans, local);\n\t\t}", "int local = 0;", "local", "0", "if(s.charAt(i) == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\tlocal = 0;\n\t\t\t\twhile(j < 3 && s.charAt(j) == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}\n\t\t\t\ti = j;\n\t\t\t}", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n\t\t\t\tint j = i;\n\t\t\t\tlocal = 0;\n\t\t\t\twhile(j < 3 && s.charAt(j) == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}\n\t\t\t\ti = j;\n\t\t\t}", "int j = i;", "j", "i", "local = 0", "local", "0", "while(j < 3 && s.charAt(j) == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}", "j < 3 && s.charAt(j) == 'R'", "j < 3", "j", "3", "s.charAt(j) == 'R'", "s.charAt(j)", "s.charAt", "s", "j", "'R'", "{\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}", "j++", "j", "local++", "local", "i = j", "i", "j", "ans = Math.max(ans, local)", "ans", "Math.max(ans, local)", "Math.max", "Math", "ans", "local", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tint local = 0;\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\tlocal = 0;\n\t\t\t\twhile(j < 3 && s.charAt(j) == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}\n\t\t\t\ti = j;\n\t\t\t}\n\t\t\tans = Math.max(ans, local);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tString s = sc.next();\n\t\tint ans = 0;\n\t\tfor(int i = 0; i < 3; i++) {\n\t\t\tint local = 0;\n\t\t\tif(s.charAt(i) == 'R') {\n\t\t\t\tint j = i;\n\t\t\t\tlocal = 0;\n\t\t\t\twhile(j < 3 && s.charAt(j) == 'R') {\n\t\t\t\t\tj++;\n\t\t\t\t\tlocal++;\n\t\t\t\t}\n\t\t\t\ti = j;\n\t\t\t}\n\t\t\tans = Math.max(ans, local);\n\t\t}\n\t\tSystem.out.println(ans);\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); String s = sc.next(); int ans = 0; for(int i = 0; i < 3; i++) { int local = 0; if(s.charAt(i) == 'R') { int j = i; local = 0; while(j < 3 && s.charAt(j) == 'R') { j++; local++; } i = j; } ans = Math.max(ans, local); } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 30, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 93, 5 ], [ 93, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 27, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 20, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 36, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 35, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 44, 53 ], [ 53, 54 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 8, 64 ], [ 64, 65 ], [ 6, 66 ], [ 66, 67 ], [ 93, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 74, 76 ], [ 76, 77 ], [ 77, 78 ], [ 70, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 70, 87 ], [ 87, 88 ], [ 88, 89 ], [ 68, 90 ], [ 90, 91 ], [ 0, 92 ], [ 92, 93 ], [ 92, 94 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static int findMaxConsecutiveDays(String weatherString){\n int maxDays =0;\n\n char[] weatherChar = weatherString.toCharArray();\n// for(char character:weatherChar){\n// System.out.println(character);\n// }\n\n int temporaryCount = 0;\n for(int i =0 ;i<weatherChar.length;i++){\n if(weatherChar[i] == 'R'){\n temporaryCount++;\n }else{\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n temporaryCount =0;\n }\n }\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n return maxDays;\n }\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String str = scanner.next();\n System.out.println(findMaxConsecutiveDays(str));\n scanner.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static int findMaxConsecutiveDays(String weatherString){\n int maxDays =0;\n\n char[] weatherChar = weatherString.toCharArray();\n// for(char character:weatherChar){\n// System.out.println(character);\n// }\n\n int temporaryCount = 0;\n for(int i =0 ;i<weatherChar.length;i++){\n if(weatherChar[i] == 'R'){\n temporaryCount++;\n }else{\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n temporaryCount =0;\n }\n }\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n return maxDays;\n }\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String str = scanner.next();\n System.out.println(findMaxConsecutiveDays(str));\n scanner.close();\n }\n}", "Main", "public static int findMaxConsecutiveDays(String weatherString){\n int maxDays =0;\n\n char[] weatherChar = weatherString.toCharArray();\n// for(char character:weatherChar){\n// System.out.println(character);\n// }\n\n int temporaryCount = 0;\n for(int i =0 ;i<weatherChar.length;i++){\n if(weatherChar[i] == 'R'){\n temporaryCount++;\n }else{\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n temporaryCount =0;\n }\n }\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n return maxDays;\n }", "findMaxConsecutiveDays", "{\n int maxDays =0;\n\n char[] weatherChar = weatherString.toCharArray();\n// for(char character:weatherChar){\n// System.out.println(character);\n// }\n\n int temporaryCount = 0;\n for(int i =0 ;i<weatherChar.length;i++){\n if(weatherChar[i] == 'R'){\n temporaryCount++;\n }else{\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n temporaryCount =0;\n }\n }\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n return maxDays;\n }", "int maxDays =0;", "maxDays", "0", "char[] weatherChar = weatherString.toCharArray();", "weatherChar", "weatherString.toCharArray()", "weatherString.toCharArray", "weatherString", "int temporaryCount = 0;", "temporaryCount", "0", "for(int i =0 ;i<weatherChar.length;i++){\n if(weatherChar[i] == 'R'){\n temporaryCount++;\n }else{\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n temporaryCount =0;\n }\n }", "int i =0 ;", "int i =0 ;", "i", "0", "i<weatherChar.length", "i", "weatherChar.length", "weatherChar", "weatherChar.length", "i++", "i++", "i", "{\n if(weatherChar[i] == 'R'){\n temporaryCount++;\n }else{\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n temporaryCount =0;\n }\n }", "{\n if(weatherChar[i] == 'R'){\n temporaryCount++;\n }else{\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n temporaryCount =0;\n }\n }", "if(weatherChar[i] == 'R'){\n temporaryCount++;\n }else{\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n temporaryCount =0;\n }", "weatherChar[i] == 'R'", "weatherChar[i]", "weatherChar", "i", "'R'", "{\n temporaryCount++;\n }", "temporaryCount++", "temporaryCount", "{\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n temporaryCount =0;\n }", "if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }", "temporaryCount>maxDays", "temporaryCount", "maxDays", "{\n maxDays = temporaryCount;\n }", "maxDays = temporaryCount", "maxDays", "temporaryCount", "temporaryCount =0", "temporaryCount", "0", "if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }", "temporaryCount>maxDays", "temporaryCount", "maxDays", "{\n maxDays = temporaryCount;\n }", "maxDays = temporaryCount", "maxDays", "temporaryCount", "return maxDays;", "maxDays", "String weatherString", "weatherString", "public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String str = scanner.next();\n System.out.println(findMaxConsecutiveDays(str));\n scanner.close();\n }", "main", "{\n Scanner scanner = new Scanner(System.in);\n String str = scanner.next();\n System.out.println(findMaxConsecutiveDays(str));\n scanner.close();\n }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String str = scanner.next();", "str", "scanner.next()", "scanner.next", "scanner", "System.out.println(findMaxConsecutiveDays(str))", "System.out.println", "System.out", "System", "System.out", "findMaxConsecutiveDays(str)", "findMaxConsecutiveDays", "str", "scanner.close()", "scanner.close", "scanner", "String[] args", "args", "public class Main {\n\n public static int findMaxConsecutiveDays(String weatherString){\n int maxDays =0;\n\n char[] weatherChar = weatherString.toCharArray();\n// for(char character:weatherChar){\n// System.out.println(character);\n// }\n\n int temporaryCount = 0;\n for(int i =0 ;i<weatherChar.length;i++){\n if(weatherChar[i] == 'R'){\n temporaryCount++;\n }else{\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n temporaryCount =0;\n }\n }\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n return maxDays;\n }\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String str = scanner.next();\n System.out.println(findMaxConsecutiveDays(str));\n scanner.close();\n }\n}", "public class Main {\n\n public static int findMaxConsecutiveDays(String weatherString){\n int maxDays =0;\n\n char[] weatherChar = weatherString.toCharArray();\n// for(char character:weatherChar){\n// System.out.println(character);\n// }\n\n int temporaryCount = 0;\n for(int i =0 ;i<weatherChar.length;i++){\n if(weatherChar[i] == 'R'){\n temporaryCount++;\n }else{\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n temporaryCount =0;\n }\n }\n if(temporaryCount>maxDays) {\n maxDays = temporaryCount;\n }\n return maxDays;\n }\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n String str = scanner.next();\n System.out.println(findMaxConsecutiveDays(str));\n scanner.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static int findMaxConsecutiveDays(String weatherString){ int maxDays =0; char[] weatherChar = weatherString.toCharArray(); // for(char character:weatherChar){ // System.out.println(character); // } int temporaryCount = 0; for(int i =0 ;i<weatherChar.length;i++){ if(weatherChar[i] == 'R'){ temporaryCount++; }else{ if(temporaryCount>maxDays) { maxDays = temporaryCount; } temporaryCount =0; } } if(temporaryCount>maxDays) { maxDays = temporaryCount; } return maxDays; } public static void main(String[] args) { Scanner scanner = new Scanner(System.in); String str = scanner.next(); System.out.println(findMaxConsecutiveDays(str)); scanner.close(); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 4, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 11, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 17, 28 ], [ 28, 29 ], [ 31, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 30, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 31, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 28, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 28, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 54, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 9, 71 ], [ 71, 72 ] ]
[ "import java.util.*;\n\nclass Main{\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String args[]){\n String S=sc.next();\n if(S.equals(\"RRR\")) System.out.println(3);\n else if(S.equals(\"RSR\")||S.equals(\"RSS\")||S.equals(\"SSR\")||S.equals(\"SRS\")) System.out.println(1);\n \telse if(S.equals(\"SSS\")) System.out.println(0);\n else System.out.println(2);\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n static Scanner sc = new Scanner(System.in);\n\n public static void main(String args[]){\n String S=sc.next();\n if(S.equals(\"RRR\")) System.out.println(3);\n else if(S.equals(\"RSR\")||S.equals(\"RSS\")||S.equals(\"SSR\")||S.equals(\"SRS\")) System.out.println(1);\n \telse if(S.equals(\"SSS\")) System.out.println(0);\n else System.out.println(2);\n }\n}", "Main", "static Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String args[]){\n String S=sc.next();\n if(S.equals(\"RRR\")) System.out.println(3);\n else if(S.equals(\"RSR\")||S.equals(\"RSS\")||S.equals(\"SSR\")||S.equals(\"SRS\")) System.out.println(1);\n \telse if(S.equals(\"SSS\")) System.out.println(0);\n else System.out.println(2);\n }", "main", "{\n String S=sc.next();\n if(S.equals(\"RRR\")) System.out.println(3);\n else if(S.equals(\"RSR\")||S.equals(\"RSS\")||S.equals(\"SSR\")||S.equals(\"SRS\")) System.out.println(1);\n \telse if(S.equals(\"SSS\")) System.out.println(0);\n else System.out.println(2);\n }", "String S=sc.next();", "S", "sc.next()", "sc.next", "sc", "if(S.equals(\"RRR\")) System.out.println(3);\n else if(S.equals(\"RSR\")||S.equals(\"RSS\")||S.equals(\"SSR\")||S.equals(\"SRS\")) System.out.println(1);\n \telse if(S.equals(\"SSS\")) System.out.println(0);\n else System.out.println(2);", "S.equals(\"RRR\")", "S.equals", "S", "\"RRR\"", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if(S.equals(\"RSR\")||S.equals(\"RSS\")||S.equals(\"SSR\")||S.equals(\"SRS\")) System.out.println(1);\n \telse if(S.equals(\"SSS\")) System.out.println(0);\n else System.out.println(2);", "S.equals(\"RSR\")||S.equals(\"RSS\")||S.equals(\"SSR\")||S.equals(\"SRS\")", "S.equals(\"SSR\")", "S.equals(\"RSR\")||S.equals(\"RSS\")||S.equals(\"SSR\")||S.equals(\"SRS\")", "S.equals(\"RSR\")", "S.equals", "S", "\"RSR\"", "S.equals(\"RSS\")", "S.equals", "S", "\"RSS\"", "S.equals(\"SSR\")", "S.equals", "S", "\"SSR\"", "S.equals(\"SRS\")", "S.equals", "S", "\"SRS\"", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(S.equals(\"SSS\")) System.out.println(0);\n else System.out.println(2);", "S.equals(\"SSS\")", "S.equals", "S", "\"SSS\"", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "String args[]", "args" ]
import java.util.*; class Main{ static Scanner sc = new Scanner(System.in); public static void main(String args[]){ String S=sc.next(); if(S.equals("RRR")) System.out.println(3); else if(S.equals("RSR")||S.equals("RSS")||S.equals("SSR")||S.equals("SRS")) System.out.println(1); else if(S.equals("SSS")) System.out.println(0); else System.out.println(2); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 14, 2, 4, 18, 13, 17, 17, 30, 40, 13, 14, 2, 4, 18, 13, 17, 17, 30, 40, 13, 30, 14, 2, 4, 18, 13, 17, 17, 30, 40, 13, 14, 2, 4, 18, 13, 17, 17, 30, 40, 13, 30, 14, 2, 4, 18, 13, 17, 17, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 92, 5 ], [ 92, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 21, 26 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 27, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 31, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 41, 48 ], [ 48, 49 ], [ 49, 50 ], [ 20, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 53, 58 ], [ 52, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 63, 68 ], [ 62, 69 ], [ 69, 70 ], [ 70, 71 ], [ 52, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 74, 79 ], [ 73, 80 ], [ 80, 81 ], [ 81, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 6, 89 ], [ 89, 90 ], [ 0, 91 ], [ 91, 92 ], [ 91, 93 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn=new Scanner(System.in);\n\t\t String s =scn.next();\n\t\t int ans=0;\n\t\t if(s.charAt(0)=='R'){\n\t\t\t ans=1;\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t }else{\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }else{\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t System.out.println(ans);\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn=new Scanner(System.in);\n\t\t String s =scn.next();\n\t\t int ans=0;\n\t\t if(s.charAt(0)=='R'){\n\t\t\t ans=1;\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t }else{\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }else{\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t System.out.println(ans);\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn=new Scanner(System.in);\n\t\t String s =scn.next();\n\t\t int ans=0;\n\t\t if(s.charAt(0)=='R'){\n\t\t\t ans=1;\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t }else{\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }else{\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t System.out.println(ans);\n\n\t}", "main", "{\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn=new Scanner(System.in);\n\t\t String s =scn.next();\n\t\t int ans=0;\n\t\t if(s.charAt(0)=='R'){\n\t\t\t ans=1;\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t }else{\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }else{\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t System.out.println(ans);\n\n\t}", "Scanner scn=new Scanner(System.in);", "scn", "new Scanner(System.in)", "String s =scn.next();", "s", "scn.next()", "scn.next", "scn", "int ans=0;", "ans", "0", "if(s.charAt(0)=='R'){\n\t\t\t ans=1;\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t }else{\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }else{\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t }", "s.charAt(0)=='R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "{\n\t\t\t ans=1;\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t }", "ans=1", "ans", "1", "if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }", "s.charAt(1)=='R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "{\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }", "ans++", "ans", "if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }", "s.charAt(2)=='R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n\t\t\t\t\t ans++;\n\t\t\t\t }", "ans++", "ans", "{\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }else{\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t }", "if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }else{\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }", "s.charAt(1)=='R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "{\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }", "ans++", "ans", "if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }", "s.charAt(2)=='R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n\t\t\t\t\t ans++;\n\t\t\t\t }", "ans++", "ans", "{\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }", "if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }", "s.charAt(2)=='R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n\t\t\t\t\t ans++;\n\t\t\t\t }", "ans++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn=new Scanner(System.in);\n\t\t String s =scn.next();\n\t\t int ans=0;\n\t\t if(s.charAt(0)=='R'){\n\t\t\t ans=1;\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t }else{\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }else{\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t System.out.println(ans);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner scn=new Scanner(System.in);\n\t\t String s =scn.next();\n\t\t int ans=0;\n\t\t if(s.charAt(0)=='R'){\n\t\t\t ans=1;\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t\t \n\t\t }else{\n\t\t\t if(s.charAt(1)=='R'){\n\t\t\t\t ans++;\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }else{\n\t\t\t\t if(s.charAt(2)=='R'){\n\t\t\t\t\t ans++;\n\t\t\t\t }\n\t\t\t }\n\t\t }\n\t\t System.out.println(ans);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO Auto-generated method stub Scanner scn=new Scanner(System.in); String s =scn.next(); int ans=0; if(s.charAt(0)=='R'){ ans=1; if(s.charAt(1)=='R'){ ans++; if(s.charAt(2)=='R'){ ans++; } } }else{ if(s.charAt(1)=='R'){ ans++; if(s.charAt(2)=='R'){ ans++; } }else{ if(s.charAt(2)=='R'){ ans++; } } } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 20, 17, 0, 18, 13, 17, 8, 2, 18, 13, 17, 17, 17, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 18, 13, 13, 8, 2, 18, 13, 13, 17, 2, 18, 13, 2, 13, 17, 17, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 13, 18, 13, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 108, 5 ], [ 108, 6 ], [ 6, 7 ], [ 108, 8 ], [ 8, 9 ], [ 8, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 10, 24 ], [ 24, 25 ], [ 24, 26 ], [ 10, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 32, 38 ], [ 32, 39 ], [ 10, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 40, 48 ], [ 48, 49 ], [ 49, 50 ], [ 40, 51 ], [ 52, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 66, 68 ], [ 63, 69 ], [ 57, 70 ], [ 10, 71 ], [ 71, 72 ], [ 71, 73 ], [ 10, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 74, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 89, 93 ], [ 93, 94 ], [ 93, 95 ], [ 10, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 10, 102 ], [ 102, 103 ], [ 103, 104 ], [ 8, 105 ], [ 105, 106 ], [ 0, 107 ], [ 107, 108 ], [ 107, 109 ] ]
[ "import java.util.*;\n\npublic class Main{\n\n static int[] dp;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n char[] cs = s.toCharArray();\n dp = new int[3];\n \n dp[0] = (cs[0]=='R'?1:0);\n\n for(int i=1;i<3;i++){\n dp[i] = cs[i]=='R'?(dp[i-1]+1):0;\n }\n\n int max = 0;\n for (int i = 0; i < 3; i++) {\n max = Math.max(max, dp[i]);\n }\n\n System.out.println(max);\n\n sc.close();\n }\n\n\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\n static int[] dp;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n char[] cs = s.toCharArray();\n dp = new int[3];\n \n dp[0] = (cs[0]=='R'?1:0);\n\n for(int i=1;i<3;i++){\n dp[i] = cs[i]=='R'?(dp[i-1]+1):0;\n }\n\n int max = 0;\n for (int i = 0; i < 3; i++) {\n max = Math.max(max, dp[i]);\n }\n\n System.out.println(max);\n\n sc.close();\n }\n\n\n}", "Main", "static int[] dp;", "dp", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n char[] cs = s.toCharArray();\n dp = new int[3];\n \n dp[0] = (cs[0]=='R'?1:0);\n\n for(int i=1;i<3;i++){\n dp[i] = cs[i]=='R'?(dp[i-1]+1):0;\n }\n\n int max = 0;\n for (int i = 0; i < 3; i++) {\n max = Math.max(max, dp[i]);\n }\n\n System.out.println(max);\n\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n char[] cs = s.toCharArray();\n dp = new int[3];\n \n dp[0] = (cs[0]=='R'?1:0);\n\n for(int i=1;i<3;i++){\n dp[i] = cs[i]=='R'?(dp[i-1]+1):0;\n }\n\n int max = 0;\n for (int i = 0; i < 3; i++) {\n max = Math.max(max, dp[i]);\n }\n\n System.out.println(max);\n\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "char[] cs = s.toCharArray();", "cs", "s.toCharArray()", "s.toCharArray", "s", "dp = new int[3]", "dp", "new int[3]", "3", "dp[0] = (cs[0]=='R'?1:0)", "dp[0]", "dp", "0", "(cs[0]=='R'?1:0)", "cs[0]=='R'", "cs[0]", "cs", "0", "'R'", "1", "0", "for(int i=1;i<3;i++){\n dp[i] = cs[i]=='R'?(dp[i-1]+1):0;\n }", "int i=1;", "int i=1;", "i", "1", "i<3", "i", "3", "i++", "i++", "i", "{\n dp[i] = cs[i]=='R'?(dp[i-1]+1):0;\n }", "{\n dp[i] = cs[i]=='R'?(dp[i-1]+1):0;\n }", "dp[i] = cs[i]=='R'?(dp[i-1]+1):0", "dp[i]", "dp", "i", "cs[i]=='R'?(dp[i-1]+1):0", "cs[i]=='R'", "cs[i]", "cs", "i", "'R'", "(dp[i-1]+1)", "dp[i-1]", "dp", "i-1", "i", "1", "1", "0", "int max = 0;", "max", "0", "for (int i = 0; i < 3; i++) {\n max = Math.max(max, dp[i]);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n max = Math.max(max, dp[i]);\n }", "{\n max = Math.max(max, dp[i]);\n }", "max = Math.max(max, dp[i])", "max", "Math.max(max, dp[i])", "Math.max", "Math", "max", "dp[i]", "dp", "i", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main{\n\n static int[] dp;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n char[] cs = s.toCharArray();\n dp = new int[3];\n \n dp[0] = (cs[0]=='R'?1:0);\n\n for(int i=1;i<3;i++){\n dp[i] = cs[i]=='R'?(dp[i-1]+1):0;\n }\n\n int max = 0;\n for (int i = 0; i < 3; i++) {\n max = Math.max(max, dp[i]);\n }\n\n System.out.println(max);\n\n sc.close();\n }\n\n\n}", "public class Main{\n\n static int[] dp;\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n char[] cs = s.toCharArray();\n dp = new int[3];\n \n dp[0] = (cs[0]=='R'?1:0);\n\n for(int i=1;i<3;i++){\n dp[i] = cs[i]=='R'?(dp[i-1]+1):0;\n }\n\n int max = 0;\n for (int i = 0; i < 3; i++) {\n max = Math.max(max, dp[i]);\n }\n\n System.out.println(max);\n\n sc.close();\n }\n\n\n}", "Main" ]
import java.util.*; public class Main{ static int[] dp; public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); char[] cs = s.toCharArray(); dp = new int[3]; dp[0] = (cs[0]=='R'?1:0); for(int i=1;i<3;i++){ dp[i] = cs[i]=='R'?(dp[i-1]+1):0; } int max = 0; for (int i = 0; i < 3; i++) { max = Math.max(max, dp[i]); } System.out.println(max); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 40, 13, 14, 2, 2, 13, 2, 4, 18, 13, 17, 2, 4, 18, 13, 2, 13, 17, 17, 30, 3, 4, 18, 13, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 4, 13, 17, 12, 13, 30, 29, 4, 18, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 202, 8 ], [ 202, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 14, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 31, 35 ], [ 31, 36 ], [ 11, 37 ], [ 37, 38 ], [ 38, 39 ], [ 9, 40 ], [ 40, 41 ], [ 202, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 46, 52 ], [ 52, 53 ], [ 52, 54 ], [ 46, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 55, 65 ], [ 65, 66 ], [ 66, 67 ], [ 55, 68 ], [ 69, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 69, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 87, 91 ], [ 84, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 96, 97 ], [ 96, 98 ], [ 92, 99 ], [ 83, 100 ], [ 100, 101 ], [ 46, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 44, 106 ], [ 106, 107 ], [ 44, 108 ], [ 108, 109 ], [ 44, 110 ], [ 110, 111 ], [ 202, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 112, 116 ], [ 116, 117 ], [ 112, 118 ], [ 118, 119 ], [ 118, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 124, 126 ], [ 118, 127 ], [ 127, 128 ], [ 112, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 132, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 142, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 131, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 112, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 163, 164 ], [ 112, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 169, 172 ], [ 172, 173 ], [ 112, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 178, 181 ], [ 181, 182 ], [ 112, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 187, 191 ], [ 112, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 0, 201 ], [ 201, 202 ], [ 201, 203 ] ]
[ "\n\nimport java.io.*;\nimport java.util.StringTokenizer;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n// int t = in.nextInt();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {\n String s = in.next();\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n char ch = s.charAt(i);\n if (ch == 'R'){\n count++;\n if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }\n }\n }\n out.println(count);\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public String nextLine() throws IOException {\n return reader.readLine().trim();\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n// int t = in.nextInt();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {\n String s = in.next();\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n char ch = s.charAt(i);\n if (ch == 'R'){\n count++;\n if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }\n }\n }\n out.println(count);\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public String nextLine() throws IOException {\n return reader.readLine().trim();\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n// int t = in.nextInt();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n// int t = in.nextInt();\n solver.solve(1, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "InputReader in = new InputReader(inputStream);", "in", "new InputReader(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "Task solver = new Task();", "solver", "new Task()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {\n String s = in.next();\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n char ch = s.charAt(i);\n if (ch == 'R'){\n count++;\n if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }\n }\n }\n out.println(count);\n }\n }", "Task", "public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {\n String s = in.next();\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n char ch = s.charAt(i);\n if (ch == 'R'){\n count++;\n if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }\n }\n }\n out.println(count);\n }", "solve", "{\n String s = in.next();\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n char ch = s.charAt(i);\n if (ch == 'R'){\n count++;\n if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }\n }\n }\n out.println(count);\n }", "String s = in.next();", "s", "in.next()", "in.next", "in", "int count = 0;", "count", "0", "for (int i = 0; i < s.length(); i++) {\n char ch = s.charAt(i);\n if (ch == 'R'){\n count++;\n if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n char ch = s.charAt(i);\n if (ch == 'R'){\n count++;\n if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }\n }\n }", "{\n char ch = s.charAt(i);\n if (ch == 'R'){\n count++;\n if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }\n }\n }", "char ch = s.charAt(i);", "ch", "s.charAt(i)", "s.charAt", "s", "i", "if (ch == 'R'){\n count++;\n if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }\n }", "ch == 'R'", "ch", "'R'", "{\n count++;\n if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }\n }", "count++", "count", "if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }", "i < s.length() - 1 && s.charAt(i+1) == 'S'", "i < s.length() - 1", "i", "s.length() - 1", "s.length()", "s.length", "s", "1", "s.charAt(i+1) == 'S'", "s.charAt(i+1)", "s.charAt", "s", "i+1", "i", "1", "'S'", "{\n break;\n }", "break;", "out.println(count)", "out.println", "out", "count", "int testNumber", "testNumber", "InputReader in", "in", "PrintWriter out", "out", "static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public String nextLine() throws IOException {\n return reader.readLine().trim();\n }\n }", "InputReader", "public BufferedReader reader;", "reader", "public StringTokenizer tokenizer;", "tokenizer", "public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }", "InputReader", "{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }", "reader = new BufferedReader(new InputStreamReader(stream), 32768)", "reader", "new BufferedReader(new InputStreamReader(stream), 32768)", "tokenizer = null", "tokenizer", "null", "InputStream stream", "stream", "public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "next", "{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }", "catch (IOException e) {\n throw new RuntimeException(e);\n }", "IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n tokenizer = new StringTokenizer(reader.readLine());\n }", "tokenizer = new StringTokenizer(reader.readLine())", "tokenizer", "new StringTokenizer(reader.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "public long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public char nextChar() {\n return next().charAt(0);\n }", "nextChar", "{\n return next().charAt(0);\n }", "return next().charAt(0);", "next().charAt(0)", "next().charAt", "next()", "next", "0", "public String nextLine() throws IOException {\n return reader.readLine().trim();\n }", "nextLine", "{\n return reader.readLine().trim();\n }", "return reader.readLine().trim();", "reader.readLine().trim()", "reader.readLine().trim", "reader.readLine()", "reader.readLine", "reader", "public class Main {\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n// int t = in.nextInt();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {\n String s = in.next();\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n char ch = s.charAt(i);\n if (ch == 'R'){\n count++;\n if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }\n }\n }\n out.println(count);\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public String nextLine() throws IOException {\n return reader.readLine().trim();\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n// int t = in.nextInt();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class Task {\n public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException {\n String s = in.next();\n int count = 0;\n for (int i = 0; i < s.length(); i++) {\n char ch = s.charAt(i);\n if (ch == 'R'){\n count++;\n if (i < s.length() - 1 && s.charAt(i+1) == 'S'){\n break;\n }\n }\n }\n out.println(count);\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public char nextChar() {\n return next().charAt(0);\n }\n\n public String nextLine() throws IOException {\n return reader.readLine().trim();\n }\n }\n}", "Main" ]
import java.io.*; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out = new PrintWriter(outputStream); Task solver = new Task(); // int t = in.nextInt(); solver.solve(1, in, out); out.close(); } static class Task { public void solve(int testNumber, InputReader in, PrintWriter out) throws IOException { String s = in.next(); int count = 0; for (int i = 0; i < s.length(); i++) { char ch = s.charAt(i); if (ch == 'R'){ count++; if (i < s.length() - 1 && s.charAt(i+1) == 'S'){ break; } } } out.println(count); } } static class InputReader { public BufferedReader reader; public StringTokenizer tokenizer; public InputReader(InputStream stream) { reader = new BufferedReader(new InputStreamReader(stream), 32768); tokenizer = null; } public String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } public long nextLong() { return Long.parseLong(next()); } public double nextDouble() { return Double.parseDouble(next()); } public int nextInt() { return Integer.parseInt(next()); } public char nextChar() { return next().charAt(0); } public String nextLine() throws IOException { return reader.readLine().trim(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 14, 2, 2, 13, 17, 2, 18, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 70, 5 ], [ 70, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 38, 44 ], [ 44, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 47, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 6, 67 ], [ 67, 68 ], [ 0, 69 ], [ 69, 70 ], [ 69, 71 ] ]
[ "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\tString S = sc.next();\n\t\tchar[] cs = S.toCharArray();\n\n\t\tint n = 0;\n\t\tfor(int i=0; i<3; i++) {\n\t\t\tif(cs[i]=='R') {\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\n\t\tif(n==2 && cs[1]=='S') {\n\t\t\tn=1;\n\t\t}\n\n\t\tSystem.out.println(n);\n\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tchar[] cs = S.toCharArray();\n\n\t\tint n = 0;\n\t\tfor(int i=0; i<3; i++) {\n\t\t\tif(cs[i]=='R') {\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\n\t\tif(n==2 && cs[1]=='S') {\n\t\t\tn=1;\n\t\t}\n\n\t\tSystem.out.println(n);\n\n\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tchar[] cs = S.toCharArray();\n\n\t\tint n = 0;\n\t\tfor(int i=0; i<3; i++) {\n\t\t\tif(cs[i]=='R') {\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\n\t\tif(n==2 && cs[1]=='S') {\n\t\t\tn=1;\n\t\t}\n\n\t\tSystem.out.println(n);\n\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tchar[] cs = S.toCharArray();\n\n\t\tint n = 0;\n\t\tfor(int i=0; i<3; i++) {\n\t\t\tif(cs[i]=='R') {\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\n\t\tif(n==2 && cs[1]=='S') {\n\t\t\tn=1;\n\t\t}\n\n\t\tSystem.out.println(n);\n\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "char[] cs = S.toCharArray();", "cs", "S.toCharArray()", "S.toCharArray", "S", "int n = 0;", "n", "0", "for(int i=0; i<3; i++) {\n\t\t\tif(cs[i]=='R') {\n\t\t\t\tn++;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n\t\t\tif(cs[i]=='R') {\n\t\t\t\tn++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(cs[i]=='R') {\n\t\t\t\tn++;\n\t\t\t}\n\t\t}", "if(cs[i]=='R') {\n\t\t\t\tn++;\n\t\t\t}", "cs[i]=='R'", "cs[i]", "cs", "i", "'R'", "{\n\t\t\t\tn++;\n\t\t\t}", "n++", "n", "if(n==2 && cs[1]=='S') {\n\t\t\tn=1;\n\t\t}", "n==2 && cs[1]=='S'", "n==2", "n", "2", "cs[1]=='S'", "cs[1]", "cs", "1", "'S'", "{\n\t\t\tn=1;\n\t\t}", "n=1", "n", "1", "System.out.println(n)", "System.out.println", "System.out", "System", "System.out", "n", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tchar[] cs = S.toCharArray();\n\n\t\tint n = 0;\n\t\tfor(int i=0; i<3; i++) {\n\t\t\tif(cs[i]=='R') {\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\n\t\tif(n==2 && cs[1]=='S') {\n\t\t\tn=1;\n\t\t}\n\n\t\tSystem.out.println(n);\n\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString S = sc.next();\n\t\tchar[] cs = S.toCharArray();\n\n\t\tint n = 0;\n\t\tfor(int i=0; i<3; i++) {\n\t\t\tif(cs[i]=='R') {\n\t\t\t\tn++;\n\t\t\t}\n\t\t}\n\n\t\tif(n==2 && cs[1]=='S') {\n\t\t\tn=1;\n\t\t}\n\n\t\tSystem.out.println(n);\n\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); char[] cs = S.toCharArray(); int n = 0; for(int i=0; i<3; i++) { if(cs[i]=='R') { n++; } } if(n==2 && cs[1]=='S') { n=1; } System.out.println(n); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 41, 13, 17, 14, 4, 18, 18, 13, 17, 17, 30, 40, 13, 11, 1, 41, 13, 17, 2, 13, 2, 18, 13, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 2, 13, 17, 17, 30, 40, 13, 14, 2, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 2, 13, 17, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 24, 29 ], [ 23, 30 ], [ 30, 31 ], [ 31, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 40, 44 ], [ 33, 45 ], [ 45, 46 ], [ 46, 47 ], [ 33, 48 ], [ 49, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 51, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 62, 64 ], [ 58, 65 ], [ 50, 66 ], [ 66, 67 ], [ 67, 68 ], [ 49, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 70, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 77, 84 ], [ 69, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 91, 93 ], [ 89, 94 ], [ 8, 95 ], [ 95, 96 ], [ 96, 97 ], [ 6, 98 ], [ 98, 99 ] ]
[ "import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \t\n \tString str = sc.next();\n \tString[] rs = new String[]{str.substring(0, 1), str.substring(1, 2), str.substring(2, 3)}; \n \tint count = 0;\n \n \tif(rs[0].equals(\"R\")) {\n \tcount++;\n }\n \n for(int i = 1; i <= rs.length - 1; i++) {\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"R\")) {\n count++; \n }\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"S\")) {\n count = 1;\n }\n }\n \n \tSystem.out.println(count);\n \tsc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n\tpublic static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \t\n \tString str = sc.next();\n \tString[] rs = new String[]{str.substring(0, 1), str.substring(1, 2), str.substring(2, 3)}; \n \tint count = 0;\n \n \tif(rs[0].equals(\"R\")) {\n \tcount++;\n }\n \n for(int i = 1; i <= rs.length - 1; i++) {\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"R\")) {\n count++; \n }\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"S\")) {\n count = 1;\n }\n }\n \n \tSystem.out.println(count);\n \tsc.close();\n }\n}", "Main", "public static void main(String[] args) {\n \tScanner sc = new Scanner(System.in);\n \t\n \tString str = sc.next();\n \tString[] rs = new String[]{str.substring(0, 1), str.substring(1, 2), str.substring(2, 3)}; \n \tint count = 0;\n \n \tif(rs[0].equals(\"R\")) {\n \tcount++;\n }\n \n for(int i = 1; i <= rs.length - 1; i++) {\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"R\")) {\n count++; \n }\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"S\")) {\n count = 1;\n }\n }\n \n \tSystem.out.println(count);\n \tsc.close();\n }", "main", "{\n \tScanner sc = new Scanner(System.in);\n \t\n \tString str = sc.next();\n \tString[] rs = new String[]{str.substring(0, 1), str.substring(1, 2), str.substring(2, 3)}; \n \tint count = 0;\n \n \tif(rs[0].equals(\"R\")) {\n \tcount++;\n }\n \n for(int i = 1; i <= rs.length - 1; i++) {\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"R\")) {\n count++; \n }\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"S\")) {\n count = 1;\n }\n }\n \n \tSystem.out.println(count);\n \tsc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "String[] rs = new String[]{str.substring(0, 1), str.substring(1, 2), str.substring(2, 3)};", "rs", "new String[]{str.substring(0, 1), str.substring(1, 2), str.substring(2, 3)}", "int count = 0;", "count", "0", "if(rs[0].equals(\"R\")) {\n \tcount++;\n }", "rs[0].equals(\"R\")", "rs[0].equals", "rs[0]", "rs", "0", "\"R\"", "{\n \tcount++;\n }", "count++", "count", "for(int i = 1; i <= rs.length - 1; i++) {\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"R\")) {\n count++; \n }\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"S\")) {\n count = 1;\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i <= rs.length - 1", "i", "rs.length - 1", "rs.length", "rs", "rs.length", "1", "i++", "i++", "i", "{\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"R\")) {\n count++; \n }\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"S\")) {\n count = 1;\n }\n }", "{\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"R\")) {\n count++; \n }\n if(rs[i].equals(\"R\") && rs[i - 1].equals(\"S\")) {\n count = 1;\n }\n }", "if(rs[i].equals(\"R\") && rs[i - 1].equals(\"R\")) {\n count++; \n }", "rs[i].equals(\"R\") && rs[i - 1].equals(\"R\")", "rs[i].equals(\"R\")", "rs[i].equals", "rs[i]", "rs", "i", "\"R\"", "rs[i - 1].equals(\"R\")", "rs[i - 1].equals", "rs[i - 1]", "rs", "i - 1", "i", "1", "\"R\"", "{\n count++; \n }", "count++", "count", "if(rs[i].equals(\"R\") && rs[i - 1].equals(\"S\")) {\n count = 1;\n }", "rs[i].equals(\"R\") && rs[i - 1].equals(\"S\")", "rs[i].equals(\"R\")", "rs[i].equals", "rs[i]", "rs", "i", "\"R\"", "rs[i - 1].equals(\"S\")", "rs[i - 1].equals", "rs[i - 1]", "rs", "i - 1", "i", "1", "\"S\"", "{\n count = 1;\n }", "count = 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "sc.close()", "sc.close", "sc", "String[] args", "args" ]
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String str = sc.next(); String[] rs = new String[]{str.substring(0, 1), str.substring(1, 2), str.substring(2, 3)}; int count = 0; if(rs[0].equals("R")) { count++; } for(int i = 1; i <= rs.length - 1; i++) { if(rs[i].equals("R") && rs[i - 1].equals("R")) { count++; } if(rs[i].equals("R") && rs[i - 1].equals("S")) { count = 1; } } System.out.println(count); sc.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 20, 23, 13, 12, 13, 30, 4, 18, 20, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 39, 17, 41, 13, 39, 17, 17, 17, 17, 41, 13, 39, 17, 17, 41, 13, 39, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 4, 18, 13, 18, 13, 13, 4, 18, 18, 13, 13, 17, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 173, 14 ], [ 173, 15 ], [ 15, 16 ], [ 15, 17 ], [ 173, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 18, 22 ], [ 22, 23 ], [ 173, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 173, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 34, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 34, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 46, 48 ], [ 46, 49 ], [ 46, 50 ], [ 34, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 53, 55 ], [ 34, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 34, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 67, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 60, 73 ], [ 74, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 79, 80 ], [ 79, 81 ], [ 75, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 34, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 88, 98 ], [ 98, 99 ], [ 99, 100 ], [ 88, 101 ], [ 102, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 104, 107 ], [ 107, 108 ], [ 107, 109 ], [ 103, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 34, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 116, 121 ], [ 121, 122 ], [ 121, 123 ], [ 123, 124 ], [ 123, 125 ], [ 116, 126 ], [ 126, 127 ], [ 127, 128 ], [ 116, 129 ], [ 130, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 135, 136 ], [ 135, 137 ], [ 131, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 138, 143 ], [ 34, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 144, 149 ], [ 149, 150 ], [ 149, 151 ], [ 151, 152 ], [ 151, 153 ], [ 144, 154 ], [ 154, 155 ], [ 155, 156 ], [ 144, 157 ], [ 158, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 163, 164 ], [ 163, 165 ], [ 159, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 0, 172 ], [ 172, 173 ], [ 172, 174 ] ]
[ "import java.awt.*;\nimport java.io.*;\nimport java.net.StandardSocketOptions;\nimport java.util.*;\n\npublic class Main {\n Scanner sc = new Scanner(System.in);\n public static void main(String[] args){\n new Main();\n }\n public Main(){\n new TestA().doIt();\n }\n class TestA{\n void doIt() {\n String str = sc.next();\n String zero[] = {\"SSS\"};\n String one[] = {\"RSS\",\"SRS\",\"SSR\",\"RSR\"};\n String two[] = {\"RRS\",\"SRR\"};\n String three[] = {\"RRR\"};\n for(int i = 0;i < zero.length;i++){\n if(str.equals(zero[i]))System.out.println(0);\n }\n for(int i = 0;i < one.length;i++) {\n if (str.equals(one[i])) System.out.println(1);\n }\n for(int i = 0;i < two.length;i++){\n if(str.equals(two[i]))System.out.println(2);\n }\n for(int i = 0;i < three.length;i++){\n if(str.equals(three[i]))System.out.println(3);\n }\n }\n }\n}", "import java.awt.*;", "awt.*", "java", "import java.io.*;", "io.*", "java", "import java.net.StandardSocketOptions;", "StandardSocketOptions", "java.net", "import java.util.*;", "util.*", "java", "public class Main {\n Scanner sc = new Scanner(System.in);\n public static void main(String[] args){\n new Main();\n }\n public Main(){\n new TestA().doIt();\n }\n class TestA{\n void doIt() {\n String str = sc.next();\n String zero[] = {\"SSS\"};\n String one[] = {\"RSS\",\"SRS\",\"SSR\",\"RSR\"};\n String two[] = {\"RRS\",\"SRR\"};\n String three[] = {\"RRR\"};\n for(int i = 0;i < zero.length;i++){\n if(str.equals(zero[i]))System.out.println(0);\n }\n for(int i = 0;i < one.length;i++) {\n if (str.equals(one[i])) System.out.println(1);\n }\n for(int i = 0;i < two.length;i++){\n if(str.equals(two[i]))System.out.println(2);\n }\n for(int i = 0;i < three.length;i++){\n if(str.equals(three[i]))System.out.println(3);\n }\n }\n }\n}", "Main", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(String[] args){\n new Main();\n }", "main", "{\n new Main();\n }", "new Main()", "String[] args", "args", "public Main(){\n new TestA().doIt();\n }", "Main", "{\n new TestA().doIt();\n }", "new TestA().doIt()", "new TestA().doIt", "new TestA()", "class TestA{\n void doIt() {\n String str = sc.next();\n String zero[] = {\"SSS\"};\n String one[] = {\"RSS\",\"SRS\",\"SSR\",\"RSR\"};\n String two[] = {\"RRS\",\"SRR\"};\n String three[] = {\"RRR\"};\n for(int i = 0;i < zero.length;i++){\n if(str.equals(zero[i]))System.out.println(0);\n }\n for(int i = 0;i < one.length;i++) {\n if (str.equals(one[i])) System.out.println(1);\n }\n for(int i = 0;i < two.length;i++){\n if(str.equals(two[i]))System.out.println(2);\n }\n for(int i = 0;i < three.length;i++){\n if(str.equals(three[i]))System.out.println(3);\n }\n }\n }", "TestA", "void doIt() {\n String str = sc.next();\n String zero[] = {\"SSS\"};\n String one[] = {\"RSS\",\"SRS\",\"SSR\",\"RSR\"};\n String two[] = {\"RRS\",\"SRR\"};\n String three[] = {\"RRR\"};\n for(int i = 0;i < zero.length;i++){\n if(str.equals(zero[i]))System.out.println(0);\n }\n for(int i = 0;i < one.length;i++) {\n if (str.equals(one[i])) System.out.println(1);\n }\n for(int i = 0;i < two.length;i++){\n if(str.equals(two[i]))System.out.println(2);\n }\n for(int i = 0;i < three.length;i++){\n if(str.equals(three[i]))System.out.println(3);\n }\n }", "doIt", "{\n String str = sc.next();\n String zero[] = {\"SSS\"};\n String one[] = {\"RSS\",\"SRS\",\"SSR\",\"RSR\"};\n String two[] = {\"RRS\",\"SRR\"};\n String three[] = {\"RRR\"};\n for(int i = 0;i < zero.length;i++){\n if(str.equals(zero[i]))System.out.println(0);\n }\n for(int i = 0;i < one.length;i++) {\n if (str.equals(one[i])) System.out.println(1);\n }\n for(int i = 0;i < two.length;i++){\n if(str.equals(two[i]))System.out.println(2);\n }\n for(int i = 0;i < three.length;i++){\n if(str.equals(three[i]))System.out.println(3);\n }\n }", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "String zero[] = {\"SSS\"};", "zero", "{\"SSS\"}", "\"SSS\"", "String one[] = {\"RSS\",\"SRS\",\"SSR\",\"RSR\"};", "one", "{\"RSS\",\"SRS\",\"SSR\",\"RSR\"}", "\"RSS\"", "\"SRS\"", "\"SSR\"", "\"RSR\"", "String two[] = {\"RRS\",\"SRR\"};", "two", "{\"RRS\",\"SRR\"}", "\"RRS\"", "\"SRR\"", "String three[] = {\"RRR\"};", "three", "{\"RRR\"}", "\"RRR\"", "for(int i = 0;i < zero.length;i++){\n if(str.equals(zero[i]))System.out.println(0);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < zero.length", "i", "zero.length", "zero", "zero.length", "i++", "i++", "i", "{\n if(str.equals(zero[i]))System.out.println(0);\n }", "{\n if(str.equals(zero[i]))System.out.println(0);\n }", "if(str.equals(zero[i]))System.out.println(0);", "str.equals(zero[i])", "str.equals", "str", "zero[i]", "zero", "i", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "for(int i = 0;i < one.length;i++) {\n if (str.equals(one[i])) System.out.println(1);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < one.length", "i", "one.length", "one", "one.length", "i++", "i++", "i", "{\n if (str.equals(one[i])) System.out.println(1);\n }", "{\n if (str.equals(one[i])) System.out.println(1);\n }", "if (str.equals(one[i])) System.out.println(1);", "str.equals(one[i])", "str.equals", "str", "one[i]", "one", "i", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "for(int i = 0;i < two.length;i++){\n if(str.equals(two[i]))System.out.println(2);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < two.length", "i", "two.length", "two", "two.length", "i++", "i++", "i", "{\n if(str.equals(two[i]))System.out.println(2);\n }", "{\n if(str.equals(two[i]))System.out.println(2);\n }", "if(str.equals(two[i]))System.out.println(2);", "str.equals(two[i])", "str.equals", "str", "two[i]", "two", "i", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "for(int i = 0;i < three.length;i++){\n if(str.equals(three[i]))System.out.println(3);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < three.length", "i", "three.length", "three", "three.length", "i++", "i++", "i", "{\n if(str.equals(three[i]))System.out.println(3);\n }", "{\n if(str.equals(three[i]))System.out.println(3);\n }", "if(str.equals(three[i]))System.out.println(3);", "str.equals(three[i])", "str.equals", "str", "three[i]", "three", "i", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "public class Main {\n Scanner sc = new Scanner(System.in);\n public static void main(String[] args){\n new Main();\n }\n public Main(){\n new TestA().doIt();\n }\n class TestA{\n void doIt() {\n String str = sc.next();\n String zero[] = {\"SSS\"};\n String one[] = {\"RSS\",\"SRS\",\"SSR\",\"RSR\"};\n String two[] = {\"RRS\",\"SRR\"};\n String three[] = {\"RRR\"};\n for(int i = 0;i < zero.length;i++){\n if(str.equals(zero[i]))System.out.println(0);\n }\n for(int i = 0;i < one.length;i++) {\n if (str.equals(one[i])) System.out.println(1);\n }\n for(int i = 0;i < two.length;i++){\n if(str.equals(two[i]))System.out.println(2);\n }\n for(int i = 0;i < three.length;i++){\n if(str.equals(three[i]))System.out.println(3);\n }\n }\n }\n}", "public class Main {\n Scanner sc = new Scanner(System.in);\n public static void main(String[] args){\n new Main();\n }\n public Main(){\n new TestA().doIt();\n }\n class TestA{\n void doIt() {\n String str = sc.next();\n String zero[] = {\"SSS\"};\n String one[] = {\"RSS\",\"SRS\",\"SSR\",\"RSR\"};\n String two[] = {\"RRS\",\"SRR\"};\n String three[] = {\"RRR\"};\n for(int i = 0;i < zero.length;i++){\n if(str.equals(zero[i]))System.out.println(0);\n }\n for(int i = 0;i < one.length;i++) {\n if (str.equals(one[i])) System.out.println(1);\n }\n for(int i = 0;i < two.length;i++){\n if(str.equals(two[i]))System.out.println(2);\n }\n for(int i = 0;i < three.length;i++){\n if(str.equals(three[i]))System.out.println(3);\n }\n }\n }\n}", "Main" ]
import java.awt.*; import java.io.*; import java.net.StandardSocketOptions; import java.util.*; public class Main { Scanner sc = new Scanner(System.in); public static void main(String[] args){ new Main(); } public Main(){ new TestA().doIt(); } class TestA{ void doIt() { String str = sc.next(); String zero[] = {"SSS"}; String one[] = {"RSS","SRS","SSR","RSR"}; String two[] = {"RRS","SRR"}; String three[] = {"RRR"}; for(int i = 0;i < zero.length;i++){ if(str.equals(zero[i]))System.out.println(0); } for(int i = 0;i < one.length;i++) { if (str.equals(one[i])) System.out.println(1); } for(int i = 0;i < two.length;i++){ if(str.equals(two[i]))System.out.println(2); } for(int i = 0;i < three.length;i++){ if(str.equals(three[i]))System.out.println(3); } } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 13, 14, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 20, 41, 13, 17, 28, 13, 4, 18, 4, 18, 13, 30, 4, 18, 13, 13, 14, 2, 4, 18, 13, 17, 17, 40, 13, 14, 2, 4, 18, 13, 17, 17, 14, 2, 13, 17, 29, 17, 14, 2, 4, 18, 13, 17, 17, 40, 13, 14, 2, 4, 18, 13, 17, 17, 40, 13, 29, 13, 6, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 2, 13, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 30, 4, 18, 13, 13, 14, 2, 2, 13, 13, 13, 4, 18, 13, 2, 13, 13, 4, 18, 13, 13, 29, 13, 23, 13, 6, 13, 12, 13, 30, 29, 4, 18, 13, 13, 23, 13, 12, 13, 30, 29, 2, 17, 2, 13, 2, 17, 13, 23, 13, 23, 13, 12, 13, 30, 29, 0, 13, 2, 17, 13, 23, 13, 23, 13, 12, 13, 30, 29, 0, 13, 40, 2, 17, 13, 23, 13, 23, 13, 12, 13, 30, 29, 8, 4, 13, 13, 13, 4, 13, 13, 13, 4, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 40, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 240, 14 ], [ 240, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 15, 32 ], [ 32, 33 ], [ 240, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 42, 43 ], [ 42, 44 ], [ 38, 45 ], [ 45, 46 ], [ 45, 47 ], [ 38, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 48, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 38, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 61, 66 ], [ 60, 67 ], [ 67, 68 ], [ 38, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 70, 75 ], [ 69, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 38, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 83, 88 ], [ 82, 89 ], [ 89, 90 ], [ 38, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 92, 97 ], [ 91, 98 ], [ 98, 99 ], [ 38, 100 ], [ 100, 101 ], [ 0, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 106, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 110, 115 ], [ 115, 116 ], [ 116, 117 ], [ 116, 118 ], [ 115, 119 ], [ 110, 120 ], [ 120, 121 ], [ 121, 122 ], [ 110, 123 ], [ 124, 124 ], [ 124, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 125, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 131, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 137, 141 ], [ 136, 142 ], [ 142, 143 ], [ 143, 144 ], [ 142, 145 ], [ 145, 146 ], [ 145, 147 ], [ 106, 148 ], [ 148, 149 ], [ 149, 150 ], [ 148, 151 ], [ 106, 152 ], [ 152, 153 ], [ 104, 154 ], [ 154, 155 ], [ 0, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 161, 162 ], [ 162, 163 ], [ 163, 164 ], [ 162, 165 ], [ 158, 166 ], [ 166, 167 ], [ 156, 168 ], [ 168, 169 ], [ 168, 170 ], [ 170, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 174, 176 ], [ 176, 177 ], [ 176, 178 ], [ 168, 179 ], [ 179, 180 ], [ 168, 181 ], [ 181, 182 ], [ 156, 183 ], [ 183, 184 ], [ 183, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 189, 191 ], [ 183, 192 ], [ 192, 193 ], [ 183, 194 ], [ 194, 195 ], [ 156, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 202, 203 ], [ 203, 204 ], [ 203, 205 ], [ 196, 206 ], [ 206, 207 ], [ 196, 208 ], [ 208, 209 ], [ 156, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 215, 217 ], [ 215, 218 ], [ 214, 219 ], [ 219, 220 ], [ 219, 221 ], [ 219, 222 ], [ 214, 223 ], [ 223, 224 ], [ 223, 225 ], [ 223, 226 ], [ 210, 227 ], [ 227, 228 ], [ 210, 229 ], [ 229, 230 ], [ 156, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 234, 235 ], [ 235, 236 ], [ 231, 237 ], [ 237, 238 ], [ 0, 239 ], [ 239, 240 ], [ 239, 241 ] ]
[ "import java.util.ArrayList;\nimport java.util.Collection;\nimport java.util.Collections;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Object o = run();\n if (o != null)\n System.out.println(o);\n }\n\n static Object run() {\n try (Scanner sc = new Scanner(System.in)) {\n ArrayList<Character> c = new ArrayList<>();\n int r = 0;\n for (char c1 : sc.next().toCharArray()) c.add(c1);\n if (c.get(0) == 'R') r++;\n if (c.get(1) == 'S') if (r == 1) return 1;\n if (c.get(1) == 'R') r++;\n if (c.get(2) == 'R') r++;\n return r;\n }\n }\n}\n\nclass ChenNumberUtil {\n static Collection<Integer> getDivisors(int n) {\n ArrayList<Integer> al = new ArrayList<>();\n for (int i = 1; i * i <= n; i++) {\n if (n % i == 0) {\n al.add(i);\n if (n / i != i)\n al.add(n / i);\n }\n }\n Collections.sort(al);\n return al;\n }\n}\n\nclass ChenBitUtil {\n static int popCount(int bit) {\n return Integer.bitCount(bit);\n }\n\n static boolean isFlag(int bit, int i) {\n return 0 != (bit & (1 << i));\n }\n\n static int setTrue(int bit, int i) {\n return bit |= (1 << i);\n }\n\n static int setFalse(int bit, int i) {\n return bit &= ~(1 << i);\n }\n\n static int setReverse(int bit, int i) {\n return isFlag(bit, i) ? setFalse(bit, i) : setTrue(bit, i);\n }\n\n static int reverseAll(int bit) {\n return ~bit;\n }\n}", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.Collection;", "Collection", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Object o = run();\n if (o != null)\n System.out.println(o);\n }\n\n static Object run() {\n try (Scanner sc = new Scanner(System.in)) {\n ArrayList<Character> c = new ArrayList<>();\n int r = 0;\n for (char c1 : sc.next().toCharArray()) c.add(c1);\n if (c.get(0) == 'R') r++;\n if (c.get(1) == 'S') if (r == 1) return 1;\n if (c.get(1) == 'R') r++;\n if (c.get(2) == 'R') r++;\n return r;\n }\n }\n}", "Main", "public static void main(String[] args) {\n Object o = run();\n if (o != null)\n System.out.println(o);\n }", "main", "{\n Object o = run();\n if (o != null)\n System.out.println(o);\n }", "Object o = run();", "o", "run()", "run", "if (o != null)\n System.out.println(o);", "o != null", "o", "null", "System.out.println(o)", "System.out.println", "System.out", "System", "System.out", "o", "String[] args", "args", "static Object run() {\n try (Scanner sc = new Scanner(System.in)) {\n ArrayList<Character> c = new ArrayList<>();\n int r = 0;\n for (char c1 : sc.next().toCharArray()) c.add(c1);\n if (c.get(0) == 'R') r++;\n if (c.get(1) == 'S') if (r == 1) return 1;\n if (c.get(1) == 'R') r++;\n if (c.get(2) == 'R') r++;\n return r;\n }\n }", "run", "{\n try (Scanner sc = new Scanner(System.in)) {\n ArrayList<Character> c = new ArrayList<>();\n int r = 0;\n for (char c1 : sc.next().toCharArray()) c.add(c1);\n if (c.get(0) == 'R') r++;\n if (c.get(1) == 'S') if (r == 1) return 1;\n if (c.get(1) == 'R') r++;\n if (c.get(2) == 'R') r++;\n return r;\n }\n }", "try (Scanner sc = new Scanner(System.in)) {\n ArrayList<Character> c = new ArrayList<>();\n int r = 0;\n for (char c1 : sc.next().toCharArray()) c.add(c1);\n if (c.get(0) == 'R') r++;\n if (c.get(1) == 'S') if (r == 1) return 1;\n if (c.get(1) == 'R') r++;\n if (c.get(2) == 'R') r++;\n return r;\n }", "{\n ArrayList<Character> c = new ArrayList<>();\n int r = 0;\n for (char c1 : sc.next().toCharArray()) c.add(c1);\n if (c.get(0) == 'R') r++;\n if (c.get(1) == 'S') if (r == 1) return 1;\n if (c.get(1) == 'R') r++;\n if (c.get(2) == 'R') r++;\n return r;\n }", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "ArrayList<Character> c = new ArrayList<>();", "c", "new ArrayList<>()", "int r = 0;", "r", "0", "for (char c1 : sc.next().toCharArray()) c.add(c1);", "char c1", "sc.next().toCharArray()", "sc.next().toCharArray", "sc.next()", "sc.next", "sc", "c.add(c1);", "c.add(c1)", "c.add", "c", "c1", "if (c.get(0) == 'R') r++;", "c.get(0) == 'R'", "c.get(0)", "c.get", "c", "0", "'R'", "r++", "r", "if (c.get(1) == 'S') if (r == 1) return 1;", "c.get(1) == 'S'", "c.get(1)", "c.get", "c", "1", "'S'", "if (r == 1) return 1;", "r == 1", "r", "1", "return 1;", "1", "if (c.get(1) == 'R') r++;", "c.get(1) == 'R'", "c.get(1)", "c.get", "c", "1", "'R'", "r++", "r", "if (c.get(2) == 'R') r++;", "c.get(2) == 'R'", "c.get(2)", "c.get", "c", "2", "'R'", "r++", "r", "return r;", "r", "class ChenNumberUtil {\n static Collection<Integer> getDivisors(int n) {\n ArrayList<Integer> al = new ArrayList<>();\n for (int i = 1; i * i <= n; i++) {\n if (n % i == 0) {\n al.add(i);\n if (n / i != i)\n al.add(n / i);\n }\n }\n Collections.sort(al);\n return al;\n }\n}", "ChenNumberUtil", "static Collection<Integer> getDivisors(int n) {\n ArrayList<Integer> al = new ArrayList<>();\n for (int i = 1; i * i <= n; i++) {\n if (n % i == 0) {\n al.add(i);\n if (n / i != i)\n al.add(n / i);\n }\n }\n Collections.sort(al);\n return al;\n }", "getDivisors", "{\n ArrayList<Integer> al = new ArrayList<>();\n for (int i = 1; i * i <= n; i++) {\n if (n % i == 0) {\n al.add(i);\n if (n / i != i)\n al.add(n / i);\n }\n }\n Collections.sort(al);\n return al;\n }", "ArrayList<Integer> al = new ArrayList<>();", "al", "new ArrayList<>()", "for (int i = 1; i * i <= n; i++) {\n if (n % i == 0) {\n al.add(i);\n if (n / i != i)\n al.add(n / i);\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i * i <= n", "i * i", "i", "i", "n", "i++", "i++", "i", "{\n if (n % i == 0) {\n al.add(i);\n if (n / i != i)\n al.add(n / i);\n }\n }", "{\n if (n % i == 0) {\n al.add(i);\n if (n / i != i)\n al.add(n / i);\n }\n }", "if (n % i == 0) {\n al.add(i);\n if (n / i != i)\n al.add(n / i);\n }", "n % i == 0", "n % i", "n", "i", "0", "{\n al.add(i);\n if (n / i != i)\n al.add(n / i);\n }", "al.add(i)", "al.add", "al", "i", "if (n / i != i)\n al.add(n / i);", "n / i != i", "n / i", "n", "i", "i", "al.add(n / i)", "al.add", "al", "n / i", "n", "i", "Collections.sort(al)", "Collections.sort", "Collections", "al", "return al;", "al", "int n", "n", "class ChenBitUtil {\n static int popCount(int bit) {\n return Integer.bitCount(bit);\n }\n\n static boolean isFlag(int bit, int i) {\n return 0 != (bit & (1 << i));\n }\n\n static int setTrue(int bit, int i) {\n return bit |= (1 << i);\n }\n\n static int setFalse(int bit, int i) {\n return bit &= ~(1 << i);\n }\n\n static int setReverse(int bit, int i) {\n return isFlag(bit, i) ? setFalse(bit, i) : setTrue(bit, i);\n }\n\n static int reverseAll(int bit) {\n return ~bit;\n }\n}", "ChenBitUtil", "static int popCount(int bit) {\n return Integer.bitCount(bit);\n }", "popCount", "{\n return Integer.bitCount(bit);\n }", "return Integer.bitCount(bit);", "Integer.bitCount(bit)", "Integer.bitCount", "Integer", "bit", "int bit", "bit", "static boolean isFlag(int bit, int i) {\n return 0 != (bit & (1 << i));\n }", "isFlag", "{\n return 0 != (bit & (1 << i));\n }", "return 0 != (bit & (1 << i));", "0 != (bit & (1 << i))", "0", "(bit & (1 << i))", "bit", "(1 << i)", "1", "i", "int bit", "bit", "int i", "i", "static int setTrue(int bit, int i) {\n return bit |= (1 << i);\n }", "setTrue", "{\n return bit |= (1 << i);\n }", "return bit |= (1 << i);", "bit |= (1 << i)", "bit", "(1 << i)", "1", "i", "int bit", "bit", "int i", "i", "static int setFalse(int bit, int i) {\n return bit &= ~(1 << i);\n }", "setFalse", "{\n return bit &= ~(1 << i);\n }", "return bit &= ~(1 << i);", "bit &= ~(1 << i)", "bit", "~(1 << i)", "(1 << i)", "1", "i", "int bit", "bit", "int i", "i", "static int setReverse(int bit, int i) {\n return isFlag(bit, i) ? setFalse(bit, i) : setTrue(bit, i);\n }", "setReverse", "{\n return isFlag(bit, i) ? setFalse(bit, i) : setTrue(bit, i);\n }", "return isFlag(bit, i) ? setFalse(bit, i) : setTrue(bit, i);", "isFlag(bit, i) ? setFalse(bit, i) : setTrue(bit, i)", "isFlag(bit, i)", "isFlag", "bit", "i", "setFalse(bit, i)", "setFalse", "bit", "i", "setTrue(bit, i)", "setTrue", "bit", "i", "int bit", "bit", "int i", "i", "static int reverseAll(int bit) {\n return ~bit;\n }", "reverseAll", "{\n return ~bit;\n }", "return ~bit;", "~bit", "bit", "int bit", "bit", "public class Main {\n public static void main(String[] args) {\n Object o = run();\n if (o != null)\n System.out.println(o);\n }\n\n static Object run() {\n try (Scanner sc = new Scanner(System.in)) {\n ArrayList<Character> c = new ArrayList<>();\n int r = 0;\n for (char c1 : sc.next().toCharArray()) c.add(c1);\n if (c.get(0) == 'R') r++;\n if (c.get(1) == 'S') if (r == 1) return 1;\n if (c.get(1) == 'R') r++;\n if (c.get(2) == 'R') r++;\n return r;\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Object o = run();\n if (o != null)\n System.out.println(o);\n }\n\n static Object run() {\n try (Scanner sc = new Scanner(System.in)) {\n ArrayList<Character> c = new ArrayList<>();\n int r = 0;\n for (char c1 : sc.next().toCharArray()) c.add(c1);\n if (c.get(0) == 'R') r++;\n if (c.get(1) == 'S') if (r == 1) return 1;\n if (c.get(1) == 'R') r++;\n if (c.get(2) == 'R') r++;\n return r;\n }\n }\n}", "Main" ]
import java.util.ArrayList; import java.util.Collection; import java.util.Collections; import java.util.Scanner; public class Main { public static void main(String[] args) { Object o = run(); if (o != null) System.out.println(o); } static Object run() { try (Scanner sc = new Scanner(System.in)) { ArrayList<Character> c = new ArrayList<>(); int r = 0; for (char c1 : sc.next().toCharArray()) c.add(c1); if (c.get(0) == 'R') r++; if (c.get(1) == 'S') if (r == 1) return 1; if (c.get(1) == 'R') r++; if (c.get(2) == 'R') r++; return r; } } } class ChenNumberUtil { static Collection<Integer> getDivisors(int n) { ArrayList<Integer> al = new ArrayList<>(); for (int i = 1; i * i <= n; i++) { if (n % i == 0) { al.add(i); if (n / i != i) al.add(n / i); } } Collections.sort(al); return al; } } class ChenBitUtil { static int popCount(int bit) { return Integer.bitCount(bit); } static boolean isFlag(int bit, int i) { return 0 != (bit & (1 << i)); } static int setTrue(int bit, int i) { return bit |= (1 << i); } static int setFalse(int bit, int i) { return bit &= ~(1 << i); } static int setReverse(int bit, int i) { return isFlag(bit, i) ? setFalse(bit, i) : setTrue(bit, i); } static int reverseAll(int bit) { return ~bit; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 35, 13, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 1, 0, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 65, 5 ], [ 65, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 20, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 20, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 20, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 51, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 6, 62 ], [ 62, 63 ], [ 0, 64 ], [ 64, 65 ], [ 64, 66 ] ]
[ "import java.util.*;\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n int result = 0;\n\n switch(str){\n case \"RRR\":\n result = 3;\n break;\n case \"RRS\":\n result = 2;\n break;\n case \"SRR\":\n result = 2;\n break;\n case \"SSS\":\n result = 0;\n break;\n default:\n result = 1;\n break;\n }\n System.out.println(result);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n int result = 0;\n\n switch(str){\n case \"RRR\":\n result = 3;\n break;\n case \"RRS\":\n result = 2;\n break;\n case \"SRR\":\n result = 2;\n break;\n case \"SSS\":\n result = 0;\n break;\n default:\n result = 1;\n break;\n }\n System.out.println(result);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n int result = 0;\n\n switch(str){\n case \"RRR\":\n result = 3;\n break;\n case \"RRS\":\n result = 2;\n break;\n case \"SRR\":\n result = 2;\n break;\n case \"SSS\":\n result = 0;\n break;\n default:\n result = 1;\n break;\n }\n System.out.println(result);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n int result = 0;\n\n switch(str){\n case \"RRR\":\n result = 3;\n break;\n case \"RRS\":\n result = 2;\n break;\n case \"SRR\":\n result = 2;\n break;\n case \"SSS\":\n result = 0;\n break;\n default:\n result = 1;\n break;\n }\n System.out.println(result);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str = sc.next();", "str", "sc.next()", "sc.next", "sc", "int result = 0;", "result", "0", "switch(str){\n case \"RRR\":\n result = 3;\n break;\n case \"RRS\":\n result = 2;\n break;\n case \"SRR\":\n result = 2;\n break;\n case \"SSS\":\n result = 0;\n break;\n default:\n result = 1;\n break;\n }", "str", "case \"RRR\":", "\"RRR\"", "case \"RRR\":", "result = 3", "result", "3", "break;", "case \"RRS\":", "\"RRS\"", "case \"RRS\":", "result = 2", "result", "2", "break;", "case \"SRR\":", "\"SRR\"", "case \"SRR\":", "result = 2", "result", "2", "break;", "case \"SSS\":", "\"SSS\"", "case \"SSS\":", "result = 0", "result", "0", "break;", "default:", "default:", "result = 1", "result", "1", "break;", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n int result = 0;\n\n switch(str){\n case \"RRR\":\n result = 3;\n break;\n case \"RRS\":\n result = 2;\n break;\n case \"SRR\":\n result = 2;\n break;\n case \"SSS\":\n result = 0;\n break;\n default:\n result = 1;\n break;\n }\n System.out.println(result);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String str = sc.next();\n int result = 0;\n\n switch(str){\n case \"RRR\":\n result = 3;\n break;\n case \"RRS\":\n result = 2;\n break;\n case \"SRR\":\n result = 2;\n break;\n case \"SSS\":\n result = 0;\n break;\n default:\n result = 1;\n break;\n }\n System.out.println(result);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); String str = sc.next(); int result = 0; switch(str){ case "RRR": result = 3; break; case "RRS": result = 2; break; case "SRR": result = 2; break; case "SSS": result = 0; break; default: result = 1; break; } System.out.println(result); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 66, 5 ], [ 66, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 20, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 33, 36 ], [ 32, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 32, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 50, 55 ], [ 44, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 57, 62 ], [ 6, 63 ], [ 63, 64 ], [ 0, 65 ], [ 65, 66 ], [ 65, 67 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n String s=kbd.next();\n int cou=0;\n if(s.contains(\"RRR\")){\n System.out.println(3);\n }else if(s.contains(\"RR\")){\n System.out.println(2);\n }else if(s.contains(\"R\")){\n System.out.println(1);\n}else{\n System.out.println(0);\n}\n}}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n String s=kbd.next();\n int cou=0;\n if(s.contains(\"RRR\")){\n System.out.println(3);\n }else if(s.contains(\"RR\")){\n System.out.println(2);\n }else if(s.contains(\"R\")){\n System.out.println(1);\n}else{\n System.out.println(0);\n}\n}}", "Main", "public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n String s=kbd.next();\n int cou=0;\n if(s.contains(\"RRR\")){\n System.out.println(3);\n }else if(s.contains(\"RR\")){\n System.out.println(2);\n }else if(s.contains(\"R\")){\n System.out.println(1);\n}else{\n System.out.println(0);\n}\n}", "main", "{\n Scanner kbd =new Scanner(System.in);\n String s=kbd.next();\n int cou=0;\n if(s.contains(\"RRR\")){\n System.out.println(3);\n }else if(s.contains(\"RR\")){\n System.out.println(2);\n }else if(s.contains(\"R\")){\n System.out.println(1);\n}else{\n System.out.println(0);\n}\n}", "Scanner kbd =new Scanner(System.in);", "kbd", "new Scanner(System.in)", "String s=kbd.next();", "s", "kbd.next()", "kbd.next", "kbd", "int cou=0;", "cou", "0", "if(s.contains(\"RRR\")){\n System.out.println(3);\n }else if(s.contains(\"RR\")){\n System.out.println(2);\n }else if(s.contains(\"R\")){\n System.out.println(1);\n}else{\n System.out.println(0);\n}", "s.contains(\"RRR\")", "s.contains", "s", "\"RRR\"", "{\n System.out.println(3);\n }", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if(s.contains(\"RR\")){\n System.out.println(2);\n }else if(s.contains(\"R\")){\n System.out.println(1);\n}else{\n System.out.println(0);\n}", "s.contains(\"RR\")", "s.contains", "s", "\"RR\"", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(s.contains(\"R\")){\n System.out.println(1);\n}else{\n System.out.println(0);\n}", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "{\n System.out.println(1);\n}", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "{\n System.out.println(0);\n}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String[] args", "args", "public class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n String s=kbd.next();\n int cou=0;\n if(s.contains(\"RRR\")){\n System.out.println(3);\n }else if(s.contains(\"RR\")){\n System.out.println(2);\n }else if(s.contains(\"R\")){\n System.out.println(1);\n}else{\n System.out.println(0);\n}\n}}", "public class Main{\n public static void main(String[] args) {\n Scanner kbd =new Scanner(System.in);\n String s=kbd.next();\n int cou=0;\n if(s.contains(\"RRR\")){\n System.out.println(3);\n }else if(s.contains(\"RR\")){\n System.out.println(2);\n }else if(s.contains(\"R\")){\n System.out.println(1);\n}else{\n System.out.println(0);\n}\n}}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] args) { Scanner kbd =new Scanner(System.in); String s=kbd.next(); int cou=0; if(s.contains("RRR")){ System.out.println(3); }else if(s.contains("RR")){ System.out.println(2); }else if(s.contains("R")){ System.out.println(1); }else{ System.out.println(0); } }}
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 29, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 28, 13, 4, 18, 13, 30, 30, 14, 2, 13, 17, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 40, 13, 14, 2, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 203, 8 ], [ 203, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 14, 16 ], [ 11, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 31, 35 ], [ 11, 36 ], [ 36, 37 ], [ 37, 38 ], [ 9, 39 ], [ 39, 40 ], [ 203, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 41, 45 ], [ 45, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 47, 56 ], [ 56, 57 ], [ 41, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 58, 67 ], [ 67, 68 ], [ 41, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 75, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 71, 87 ], [ 87, 88 ], [ 41, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 92, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 105, 106 ], [ 106, 107 ], [ 102, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 91, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 41, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 41, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 132, 133 ], [ 41, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 141, 142 ], [ 203, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 145, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 147, 153 ], [ 153, 154 ], [ 153, 155 ], [ 147, 156 ], [ 156, 157 ], [ 156, 158 ], [ 147, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 159, 164 ], [ 165, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 166, 170 ], [ 170, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 173, 176 ], [ 173, 177 ], [ 170, 178 ], [ 178, 179 ], [ 178, 180 ], [ 166, 181 ], [ 181, 182 ], [ 147, 183 ], [ 183, 184 ], [ 184, 185 ], [ 184, 186 ], [ 183, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 189, 192 ], [ 189, 193 ], [ 147, 194 ], [ 194, 195 ], [ 195, 196 ], [ 194, 197 ], [ 145, 198 ], [ 198, 199 ], [ 145, 200 ], [ 200, 201 ], [ 0, 202 ], [ 202, 203 ], [ 202, 204 ] ]
[ "import java.io.*;\nimport java.util.*;\n\npublic class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String s=in.next();\n int max=0;\n int count=0;\n for(char c:s.toCharArray()){\n if(c=='S'){\n max=Math.max(max,count);\n count=0;\n }\n else\n count++;\n }\n if(count>0)\n max=Math.max(count,max);\n out.println(max);\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "public class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String s=in.next();\n int max=0;\n int count=0;\n for(char c:s.toCharArray()){\n if(c=='S'){\n max=Math.max(max,count);\n count=0;\n }\n else\n count++;\n }\n if(count>0)\n max=Math.max(count,max);\n out.println(max);\n }\n }\n}", "Main", "public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }", "main", "{\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }", "InputStream inputstream = System.in;", "inputstream", "System.in", "System", "System.in", "OutputStream outputstream = System.out;", "outputstream", "System.out", "System", "System.out", "InputReader in = new InputReader(inputstream);", "in", "new InputReader(inputstream)", "PrintWriter out = new PrintWriter(outputstream);", "out", "new PrintWriter(outputstream)", "Task solver = new Task();", "solver", "new Task()", "solver.solve(in, out)", "solver.solve", "solver", "in", "out", "out.flush()", "out.flush", "out", "String args[]", "args", "static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }", "InputReader", "public BufferedReader reader;", "reader", "public StringTokenizer tok;", "tok", "public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }", "InputReader", "{\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }", "reader = new BufferedReader(new InputStreamReader(inputStream))", "reader", "new BufferedReader(new InputStreamReader(inputStream))", "tok = null", "tok", "null", "InputStream inputStream", "inputStream", "public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }", "InputReader", "{\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }", "reader = new BufferedReader(new FileReader(inputFile))", "reader", "new BufferedReader(new FileReader(inputFile))", "tok = null", "tok", "null", "String inputFile", "inputFile", "public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }", "nextLine", "{\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }", "String c = \"\";", "c", "\"\"", "try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }", "catch (IOException e) {\n throw new RuntimeException(e);\n }", "IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n c = reader.readLine();\n }", "c = reader.readLine()", "c", "reader.readLine()", "reader.readLine", "reader", "return c;", "c", "public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }", "next", "{\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }", "while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "tok == null || !tok.hasMoreTokens()", "tok == null", "tok", "null", "!tok.hasMoreTokens()", "tok.hasMoreTokens()", "tok.hasMoreTokens", "tok", "{\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }", "try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }", "catch (Exception e) {\n throw new RuntimeException(e);\n }", "Exception e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n tok = new StringTokenizer(nextLine());\n }", "tok = new StringTokenizer(nextLine())", "tok", "new StringTokenizer(nextLine())", "return tok.nextToken();", "tok.nextToken()", "tok.nextToken", "tok", "public int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public double nextDouble(){\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String s=in.next();\n int max=0;\n int count=0;\n for(char c:s.toCharArray()){\n if(c=='S'){\n max=Math.max(max,count);\n count=0;\n }\n else\n count++;\n }\n if(count>0)\n max=Math.max(count,max);\n out.println(max);\n }\n }", "Task", "public void solve(InputReader in, PrintWriter out) {\n String s=in.next();\n int max=0;\n int count=0;\n for(char c:s.toCharArray()){\n if(c=='S'){\n max=Math.max(max,count);\n count=0;\n }\n else\n count++;\n }\n if(count>0)\n max=Math.max(count,max);\n out.println(max);\n }", "solve", "{\n String s=in.next();\n int max=0;\n int count=0;\n for(char c:s.toCharArray()){\n if(c=='S'){\n max=Math.max(max,count);\n count=0;\n }\n else\n count++;\n }\n if(count>0)\n max=Math.max(count,max);\n out.println(max);\n }", "String s=in.next();", "s", "in.next()", "in.next", "in", "int max=0;", "max", "0", "int count=0;", "count", "0", "for(char c:s.toCharArray()){\n if(c=='S'){\n max=Math.max(max,count);\n count=0;\n }\n else\n count++;\n }", "char c", "s.toCharArray()", "s.toCharArray", "s", "{\n if(c=='S'){\n max=Math.max(max,count);\n count=0;\n }\n else\n count++;\n }", "{\n if(c=='S'){\n max=Math.max(max,count);\n count=0;\n }\n else\n count++;\n }", "if(c=='S'){\n max=Math.max(max,count);\n count=0;\n }\n else\n count++;", "c=='S'", "c", "'S'", "{\n max=Math.max(max,count);\n count=0;\n }", "max=Math.max(max,count)", "max", "Math.max(max,count)", "Math.max", "Math", "max", "count", "count=0", "count", "0", "count++", "count", "if(count>0)\n max=Math.max(count,max);", "count>0", "count", "0", "max=Math.max(count,max)", "max", "Math.max(count,max)", "Math.max", "Math", "count", "max", "out.println(max)", "out.println", "out", "max", "InputReader in", "in", "PrintWriter out", "out", "public class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String s=in.next();\n int max=0;\n int count=0;\n for(char c:s.toCharArray()){\n if(c=='S'){\n max=Math.max(max,count);\n count=0;\n }\n else\n count++;\n }\n if(count>0)\n max=Math.max(count,max);\n out.println(max);\n }\n }\n}", "public class Main {\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tok;\n\n public InputReader(InputStream inputStream) {\n reader = new BufferedReader(new InputStreamReader(inputStream));\n tok = null;\n }\n\n public InputReader(String inputFile) throws FileNotFoundException {\n reader = new BufferedReader(new FileReader(inputFile));\n tok = null;\n }\n\n public String nextLine() {\n String c = \"\";\n try {\n c = reader.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n\n return c;\n }\n\n public String next() {\n while (tok == null || !tok.hasMoreTokens()) {\n try {\n tok = new StringTokenizer(nextLine());\n } catch (Exception e) {\n throw new RuntimeException(e);\n }\n }\n\n return tok.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble(){\n return Double.parseDouble(next());\n }\n }\n\n public static void main(String args[]) {\n InputStream inputstream = System.in;\n OutputStream outputstream = System.out;\n InputReader in = new InputReader(inputstream);\n PrintWriter out = new PrintWriter(outputstream);\n Task solver = new Task();\n solver.solve(in, out);\n out.flush();\n }\n\n static class Task {\n public void solve(InputReader in, PrintWriter out) {\n String s=in.next();\n int max=0;\n int count=0;\n for(char c:s.toCharArray()){\n if(c=='S'){\n max=Math.max(max,count);\n count=0;\n }\n else\n count++;\n }\n if(count>0)\n max=Math.max(count,max);\n out.println(max);\n }\n }\n}", "Main" ]
import java.io.*; import java.util.*; public class Main { static class InputReader { public BufferedReader reader; public StringTokenizer tok; public InputReader(InputStream inputStream) { reader = new BufferedReader(new InputStreamReader(inputStream)); tok = null; } public InputReader(String inputFile) throws FileNotFoundException { reader = new BufferedReader(new FileReader(inputFile)); tok = null; } public String nextLine() { String c = ""; try { c = reader.readLine(); } catch (IOException e) { throw new RuntimeException(e); } return c; } public String next() { while (tok == null || !tok.hasMoreTokens()) { try { tok = new StringTokenizer(nextLine()); } catch (Exception e) { throw new RuntimeException(e); } } return tok.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } public long nextLong() { return Long.parseLong(next()); } public double nextDouble(){ return Double.parseDouble(next()); } } public static void main(String args[]) { InputStream inputstream = System.in; OutputStream outputstream = System.out; InputReader in = new InputReader(inputstream); PrintWriter out = new PrintWriter(outputstream); Task solver = new Task(); solver.solve(in, out); out.flush(); } static class Task { public void solve(InputReader in, PrintWriter out) { String s=in.next(); int max=0; int count=0; for(char c:s.toCharArray()){ if(c=='S'){ max=Math.max(max,count); count=0; } else count++; } if(count>0) max=Math.max(count,max); out.println(max); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 14, 4, 18, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 8, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 8, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 8, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 8, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 73, 74 ], [ 73, 75 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 76, 81 ], [ 81, 82 ], [ 81, 83 ], [ 8, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 84, 89 ], [ 8, 90 ], [ 90, 91 ], [ 91, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int ans = 0;\n if (s.equals(\"SSS\"))\n ans = 0;\n if (s.equals(\"SSR\"))\n ans = 1;\n if (s.equals(\"SRS\"))\n ans = 1;\n if (s.equals(\"SRR\"))\n ans = 2;\n if (s.equals(\"RSS\"))\n ans = 1;\n if (s.equals(\"RSR\"))\n ans = 1;\n if (s.equals(\"RRS\"))\n ans = 2;\n if (s.equals(\"RRR\"))\n ans = 3;\n System.out.println(ans);\n sc.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int ans = 0;\n if (s.equals(\"SSS\"))\n ans = 0;\n if (s.equals(\"SSR\"))\n ans = 1;\n if (s.equals(\"SRS\"))\n ans = 1;\n if (s.equals(\"SRR\"))\n ans = 2;\n if (s.equals(\"RSS\"))\n ans = 1;\n if (s.equals(\"RSR\"))\n ans = 1;\n if (s.equals(\"RRS\"))\n ans = 2;\n if (s.equals(\"RRR\"))\n ans = 3;\n System.out.println(ans);\n sc.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int ans = 0;\n if (s.equals(\"SSS\"))\n ans = 0;\n if (s.equals(\"SSR\"))\n ans = 1;\n if (s.equals(\"SRS\"))\n ans = 1;\n if (s.equals(\"SRR\"))\n ans = 2;\n if (s.equals(\"RSS\"))\n ans = 1;\n if (s.equals(\"RSR\"))\n ans = 1;\n if (s.equals(\"RRS\"))\n ans = 2;\n if (s.equals(\"RRR\"))\n ans = 3;\n System.out.println(ans);\n sc.close();\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int ans = 0;\n if (s.equals(\"SSS\"))\n ans = 0;\n if (s.equals(\"SSR\"))\n ans = 1;\n if (s.equals(\"SRS\"))\n ans = 1;\n if (s.equals(\"SRR\"))\n ans = 2;\n if (s.equals(\"RSS\"))\n ans = 1;\n if (s.equals(\"RSR\"))\n ans = 1;\n if (s.equals(\"RRS\"))\n ans = 2;\n if (s.equals(\"RRR\"))\n ans = 3;\n System.out.println(ans);\n sc.close();\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "int ans = 0;", "ans", "0", "if (s.equals(\"SSS\"))\n ans = 0;", "s.equals(\"SSS\")", "s.equals", "s", "\"SSS\"", "ans = 0", "ans", "0", "if (s.equals(\"SSR\"))\n ans = 1;", "s.equals(\"SSR\")", "s.equals", "s", "\"SSR\"", "ans = 1", "ans", "1", "if (s.equals(\"SRS\"))\n ans = 1;", "s.equals(\"SRS\")", "s.equals", "s", "\"SRS\"", "ans = 1", "ans", "1", "if (s.equals(\"SRR\"))\n ans = 2;", "s.equals(\"SRR\")", "s.equals", "s", "\"SRR\"", "ans = 2", "ans", "2", "if (s.equals(\"RSS\"))\n ans = 1;", "s.equals(\"RSS\")", "s.equals", "s", "\"RSS\"", "ans = 1", "ans", "1", "if (s.equals(\"RSR\"))\n ans = 1;", "s.equals(\"RSR\")", "s.equals", "s", "\"RSR\"", "ans = 1", "ans", "1", "if (s.equals(\"RRS\"))\n ans = 2;", "s.equals(\"RRS\")", "s.equals", "s", "\"RRS\"", "ans = 2", "ans", "2", "if (s.equals(\"RRR\"))\n ans = 3;", "s.equals(\"RRR\")", "s.equals", "s", "\"RRR\"", "ans = 3", "ans", "3", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int ans = 0;\n if (s.equals(\"SSS\"))\n ans = 0;\n if (s.equals(\"SSR\"))\n ans = 1;\n if (s.equals(\"SRS\"))\n ans = 1;\n if (s.equals(\"SRR\"))\n ans = 2;\n if (s.equals(\"RSS\"))\n ans = 1;\n if (s.equals(\"RSR\"))\n ans = 1;\n if (s.equals(\"RRS\"))\n ans = 2;\n if (s.equals(\"RRR\"))\n ans = 3;\n System.out.println(ans);\n sc.close();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int ans = 0;\n if (s.equals(\"SSS\"))\n ans = 0;\n if (s.equals(\"SSR\"))\n ans = 1;\n if (s.equals(\"SRS\"))\n ans = 1;\n if (s.equals(\"SRR\"))\n ans = 2;\n if (s.equals(\"RSS\"))\n ans = 1;\n if (s.equals(\"RSR\"))\n ans = 1;\n if (s.equals(\"RRS\"))\n ans = 2;\n if (s.equals(\"RRR\"))\n ans = 3;\n System.out.println(ans);\n sc.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int ans = 0; if (s.equals("SSS")) ans = 0; if (s.equals("SSR")) ans = 1; if (s.equals("SRS")) ans = 1; if (s.equals("SRR")) ans = 2; if (s.equals("RSS")) ans = 1; if (s.equals("RSR")) ans = 1; if (s.equals("RRS")) ans = 2; if (s.equals("RRR")) ans = 3; System.out.println(ans); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 41, 13, 4, 18, 13, 2, 13, 17, 14, 2, 2, 13, 13, 2, 13, 17, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 97, 5 ], [ 97, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 32, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 39, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 59, 66 ], [ 66, 67 ], [ 66, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 71, 72 ], [ 71, 73 ], [ 59, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 79, 81 ], [ 74, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 85, 86 ], [ 85, 87 ], [ 8, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 6, 94 ], [ 94, 95 ], [ 0, 96 ], [ 96, 97 ], [ 96, 98 ] ]
[ " import java.util.Scanner;\n\n public class Main {\n \t public static void main(String args[]){\n \tScanner scanner = new Scanner(System.in);\n\n \tString n=scanner.next();\n \tint t=0;\n for(int i=0;i<3;i++){\n char str=n.charAt(i);\n \t\tif(str=='R'){\n t=1;\n }}\n\n \tfor(int j=0;j<2;j++) {\n \tchar str1=n.charAt(j);\n char str2=n.charAt(j+1);\n\n if(str1==str2 && str1=='R'){\n t=t+1;\n }\n \t}\n \tSystem.out.println(t);\n \t }\n }", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n \t public static void main(String args[]){\n \tScanner scanner = new Scanner(System.in);\n\n \tString n=scanner.next();\n \tint t=0;\n for(int i=0;i<3;i++){\n char str=n.charAt(i);\n \t\tif(str=='R'){\n t=1;\n }}\n\n \tfor(int j=0;j<2;j++) {\n \tchar str1=n.charAt(j);\n char str2=n.charAt(j+1);\n\n if(str1==str2 && str1=='R'){\n t=t+1;\n }\n \t}\n \tSystem.out.println(t);\n \t }\n }", "Main", "public static void main(String args[]){\n \tScanner scanner = new Scanner(System.in);\n\n \tString n=scanner.next();\n \tint t=0;\n for(int i=0;i<3;i++){\n char str=n.charAt(i);\n \t\tif(str=='R'){\n t=1;\n }}\n\n \tfor(int j=0;j<2;j++) {\n \tchar str1=n.charAt(j);\n char str2=n.charAt(j+1);\n\n if(str1==str2 && str1=='R'){\n t=t+1;\n }\n \t}\n \tSystem.out.println(t);\n \t }", "main", "{\n \tScanner scanner = new Scanner(System.in);\n\n \tString n=scanner.next();\n \tint t=0;\n for(int i=0;i<3;i++){\n char str=n.charAt(i);\n \t\tif(str=='R'){\n t=1;\n }}\n\n \tfor(int j=0;j<2;j++) {\n \tchar str1=n.charAt(j);\n char str2=n.charAt(j+1);\n\n if(str1==str2 && str1=='R'){\n t=t+1;\n }\n \t}\n \tSystem.out.println(t);\n \t }", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "String n=scanner.next();", "n", "scanner.next()", "scanner.next", "scanner", "int t=0;", "t", "0", "for(int i=0;i<3;i++){\n char str=n.charAt(i);\n \t\tif(str=='R'){\n t=1;\n }}", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n char str=n.charAt(i);\n \t\tif(str=='R'){\n t=1;\n }}", "{\n char str=n.charAt(i);\n \t\tif(str=='R'){\n t=1;\n }}", "char str=n.charAt(i);", "str", "n.charAt(i)", "n.charAt", "n", "i", "if(str=='R'){\n t=1;\n }", "str=='R'", "str", "'R'", "{\n t=1;\n }", "t=1", "t", "1", "for(int j=0;j<2;j++) {\n \tchar str1=n.charAt(j);\n char str2=n.charAt(j+1);\n\n if(str1==str2 && str1=='R'){\n t=t+1;\n }\n \t}", "int j=0;", "int j=0;", "j", "0", "j<2", "j", "2", "j++", "j++", "j", "{\n \tchar str1=n.charAt(j);\n char str2=n.charAt(j+1);\n\n if(str1==str2 && str1=='R'){\n t=t+1;\n }\n \t}", "{\n \tchar str1=n.charAt(j);\n char str2=n.charAt(j+1);\n\n if(str1==str2 && str1=='R'){\n t=t+1;\n }\n \t}", "char str1=n.charAt(j);", "str1", "n.charAt(j)", "n.charAt", "n", "j", "char str2=n.charAt(j+1);", "str2", "n.charAt(j+1)", "n.charAt", "n", "j+1", "j", "1", "if(str1==str2 && str1=='R'){\n t=t+1;\n }", "str1==str2 && str1=='R'", "str1==str2", "str1", "str2", "str1=='R'", "str1", "'R'", "{\n t=t+1;\n }", "t=t+1", "t", "t+1", "t", "1", "System.out.println(t)", "System.out.println", "System.out", "System", "System.out", "t", "String args[]", "args", "public class Main {\n \t public static void main(String args[]){\n \tScanner scanner = new Scanner(System.in);\n\n \tString n=scanner.next();\n \tint t=0;\n for(int i=0;i<3;i++){\n char str=n.charAt(i);\n \t\tif(str=='R'){\n t=1;\n }}\n\n \tfor(int j=0;j<2;j++) {\n \tchar str1=n.charAt(j);\n char str2=n.charAt(j+1);\n\n if(str1==str2 && str1=='R'){\n t=t+1;\n }\n \t}\n \tSystem.out.println(t);\n \t }\n }", "public class Main {\n \t public static void main(String args[]){\n \tScanner scanner = new Scanner(System.in);\n\n \tString n=scanner.next();\n \tint t=0;\n for(int i=0;i<3;i++){\n char str=n.charAt(i);\n \t\tif(str=='R'){\n t=1;\n }}\n\n \tfor(int j=0;j<2;j++) {\n \tchar str1=n.charAt(j);\n char str2=n.charAt(j+1);\n\n if(str1==str2 && str1=='R'){\n t=t+1;\n }\n \t}\n \tSystem.out.println(t);\n \t }\n }", "Main" ]
import java.util.Scanner; public class Main { public static void main(String args[]){ Scanner scanner = new Scanner(System.in); String n=scanner.next(); int t=0; for(int i=0;i<3;i++){ char str=n.charAt(i); if(str=='R'){ t=1; }} for(int j=0;j<2;j++) { char str1=n.charAt(j); char str2=n.charAt(j+1); if(str1==str2 && str1=='R'){ t=t+1; } } System.out.println(t); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 38, 30, 41, 13, 20, 4, 18, 20, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 28, 13, 4, 18, 13, 30, 30, 14, 2, 13, 17, 30, 40, 13, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 6, 13, 41, 13, 18, 13, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 12, 13, 30, 14, 2, 13, 13, 30, 29, 17, 30, 0, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 29, 17, 29, 17, 12, 13, 30, 14, 4, 13, 29, 18, 13, 40, 13, 29, 40, 17, 12, 13, 30, 29, 2, 2, 17, 13, 2, 13, 17, 23, 13, 12, 13, 30, 42, 2, 4, 13, 40, 4, 13, 18, 13, 13, 40, 13, 29, 4, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 20, 41, 13, 4, 13, 42, 4, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 14, 40, 4, 13, 37, 20, 41, 13, 17, 41, 13, 17, 41, 13, 4, 13, 14, 2, 13, 17, 30, 0, 13, 17, 0, 13, 4, 13, 14, 2, 2, 13, 17, 2, 17, 13, 30, 37, 20, 42, 17, 30, 14, 2, 2, 17, 13, 2, 13, 17, 30, 0, 13, 17, 0, 13, 2, 13, 17, 14, 2, 2, 13, 40, 17, 40, 4, 13, 13, 30, 29, 8, 13, 40, 13, 13, 30, 37, 20, 0, 13, 4, 13, 12, 13, 30, 41, 13, 4, 13, 14, 2, 2, 13, 18, 13, 13, 2, 13, 18, 13, 13, 37, 20, 29, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 27, 28 ], [ 22, 29 ], [ 29, 30 ], [ 30, 31 ], [ 15, 32 ], [ 32, 33 ], [ 13, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 34, 38 ], [ 38, 39 ], [ 34, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 42, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 40, 53 ], [ 53, 54 ], [ 40, 55 ], [ 55, 56 ], [ 34, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 59, 65 ], [ 65, 66 ], [ 65, 67 ], [ 59, 68 ], [ 68, 69 ], [ 68, 70 ], [ 59, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 71, 76 ], [ 77, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 78, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 77, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 91, 94 ], [ 91, 95 ], [ 59, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 13, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 100, 107 ], [ 107, 108 ], [ 107, 109 ], [ 100, 111 ], [ 111, 112 ], [ 111, 113 ], [ 100, 114 ], [ 114, 115 ], [ 114, 116 ], [ 100, 117 ], [ 117, 118 ], [ 117, 119 ], [ 100, 120 ], [ 120, 121 ], [ 120, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 123, 127 ], [ 127, 128 ], [ 128, 129 ], [ 123, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 134, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 144, 145 ], [ 145, 146 ], [ 144, 147 ], [ 130, 148 ], [ 148, 149 ], [ 149, 150 ], [ 149, 151 ], [ 148, 152 ], [ 152, 153 ], [ 153, 154 ], [ 122, 155 ], [ 155, 156 ], [ 100, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 166, 167 ], [ 160, 168 ], [ 168, 169 ], [ 169, 170 ], [ 100, 171 ], [ 171, 172 ], [ 171, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 176, 177 ], [ 176, 178 ], [ 175, 179 ], [ 179, 180 ], [ 179, 181 ], [ 171, 182 ], [ 182, 183 ], [ 100, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 188, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 194, 196 ], [ 187, 197 ], [ 197, 198 ], [ 186, 199 ], [ 199, 200 ], [ 200, 201 ], [ 100, 202 ], [ 202, 203 ], [ 202, 204 ], [ 204, 205 ], [ 205, 206 ], [ 206, 207 ], [ 207, 208 ], [ 205, 209 ], [ 209, 210 ], [ 204, 211 ], [ 211, 212 ], [ 211, 213 ], [ 204, 214 ], [ 214, 215 ], [ 214, 216 ], [ 216, 217 ], [ 204, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 218, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 223, 226 ], [ 222, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 204, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 100, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 240, 241 ], [ 238, 242 ], [ 242, 243 ], [ 237, 244 ], [ 244, 245 ], [ 244, 246 ], [ 237, 247 ], [ 247, 248 ], [ 247, 249 ], [ 237, 250 ], [ 250, 251 ], [ 250, 252 ], [ 252, 253 ], [ 237, 254 ], [ 254, 255 ], [ 255, 256 ], [ 255, 257 ], [ 254, 258 ], [ 258, 259 ], [ 259, 260 ], [ 259, 261 ], [ 258, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 237, 266 ], [ 266, 267 ], [ 267, 268 ], [ 268, 269 ], [ 268, 270 ], [ 267, 271 ], [ 271, 272 ], [ 271, 273 ], [ 266, 274 ], [ 274, 275 ], [ 275, 276 ], [ 237, 277 ], [ 277, 278 ], [ 277, 279 ], [ 279, 280 ], [ 280, 281 ], [ 281, 282 ], [ 282, 283 ], [ 282, 284 ], [ 281, 285 ], [ 285, 286 ], [ 285, 287 ], [ 280, 288 ], [ 288, 289 ], [ 289, 290 ], [ 289, 291 ], [ 288, 292 ], [ 292, 293 ], [ 292, 294 ], [ 294, 295 ], [ 294, 296 ], [ 280, 297 ], [ 297, 298 ], [ 298, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 298, 303 ], [ 303, 304 ], [ 304, 305 ], [ 304, 306 ], [ 297, 307 ], [ 307, 308 ], [ 308, 309 ], [ 309, 310 ], [ 309, 311 ], [ 311, 312 ], [ 309, 313 ], [ 297, 314 ], [ 314, 315 ], [ 315, 316 ], [ 279, 317 ], [ 317, 318 ], [ 317, 319 ], [ 319, 320 ], [ 100, 321 ], [ 321, 322 ], [ 321, 323 ], [ 323, 324 ], [ 324, 325 ], [ 324, 326 ], [ 326, 327 ], [ 323, 328 ], [ 328, 329 ], [ 329, 330 ], [ 330, 331 ], [ 330, 332 ], [ 332, 333 ], [ 332, 334 ], [ 329, 335 ], [ 335, 336 ], [ 335, 337 ], [ 337, 338 ], [ 337, 339 ], [ 328, 340 ], [ 340, 341 ], [ 323, 342 ], [ 342, 343 ], [ 100, 344 ], [ 344, 345 ], [ 344, 346 ], [ 346, 347 ], [ 347, 348 ], [ 348, 349 ], [ 349, 350 ], [ 348, 351 ], [ 351, 352 ], [ 100, 353 ], [ 353, 354 ], [ 353, 355 ], [ 355, 356 ], [ 356, 357 ], [ 356, 358 ], [ 355, 360 ], [ 360, 361 ], [ 361, 362 ], [ 362, 363 ], [ 362, 364 ], [ 360, 365 ], [ 365, 366 ], [ 365, 367 ], [ 360, 368 ], [ 368, 369 ], [ 369, 370 ], [ 360, 371 ], [ 371, 372 ], [ 372, 373 ], [ 373, 374 ], [ 373, 375 ], [ 372, 376 ], [ 376, 377 ], [ 355, 378 ], [ 378, 379 ], [ 353, 380 ], [ 380, 381 ], [ 100, 382 ], [ 382, 383 ], [ 382, 384 ], [ 384, 385 ], [ 385, 386 ], [ 385, 387 ], [ 384, 389 ], [ 389, 390 ], [ 390, 391 ], [ 391, 392 ], [ 391, 393 ], [ 389, 394 ], [ 394, 395 ], [ 394, 396 ], [ 389, 397 ], [ 397, 398 ], [ 398, 399 ], [ 389, 400 ], [ 400, 401 ], [ 401, 402 ], [ 402, 403 ], [ 402, 404 ], [ 401, 405 ], [ 405, 406 ], [ 384, 407 ], [ 407, 408 ], [ 382, 409 ], [ 409, 410 ] ]
[ "import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.NoSuchElementException;\n\nclass Main {\n\n static class Solver {\n final FastScanner sc;\n final PrintWriter writer;\n\n Solver(final FastScanner sc, final PrintWriter writer) {\n this.sc = sc;\n this.writer = writer;\n }\n\n void run() {\n String s = sc.next();\n int max = 0;\n int count = 0;\n for (char c : s.toCharArray()) {\n if (c == 'R') {\n count++;\n } else {\n count = 0;\n }\n max = Math.max(max, count);\n }\n writer.println(max);\n }\n }\n\n public static void main(final String[] args) {\n final FastScanner sc = new FastScanner();\n try (final PrintWriter w = new PrintWriter(System.out)) {\n new Solver(sc, w).run();\n w.flush();\n }\n }\n\n // FastScanner\n static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n public FastScanner() {\n }\n\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n } else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }\n\n private boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }\n\n public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n return hasNextByte();\n }\n\n public String next() {\n if (!hasNext())\n throw new NoSuchElementException();\n final StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n public long nextLong() {\n if (!hasNext())\n throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n\n public int nextInt() {\n final long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n throw new NumberFormatException();\n return (int) nl;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(final int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(final int n) {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n}", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.NoSuchElementException;", "NoSuchElementException", "java.util", "class Main {\n\n static class Solver {\n final FastScanner sc;\n final PrintWriter writer;\n\n Solver(final FastScanner sc, final PrintWriter writer) {\n this.sc = sc;\n this.writer = writer;\n }\n\n void run() {\n String s = sc.next();\n int max = 0;\n int count = 0;\n for (char c : s.toCharArray()) {\n if (c == 'R') {\n count++;\n } else {\n count = 0;\n }\n max = Math.max(max, count);\n }\n writer.println(max);\n }\n }\n\n public static void main(final String[] args) {\n final FastScanner sc = new FastScanner();\n try (final PrintWriter w = new PrintWriter(System.out)) {\n new Solver(sc, w).run();\n w.flush();\n }\n }\n\n // FastScanner\n static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n public FastScanner() {\n }\n\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n } else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }\n\n private boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }\n\n public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n return hasNextByte();\n }\n\n public String next() {\n if (!hasNext())\n throw new NoSuchElementException();\n final StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n public long nextLong() {\n if (!hasNext())\n throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n\n public int nextInt() {\n final long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n throw new NumberFormatException();\n return (int) nl;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(final int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(final int n) {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }\n}", "Main", "public static void main(final String[] args) {\n final FastScanner sc = new FastScanner();\n try (final PrintWriter w = new PrintWriter(System.out)) {\n new Solver(sc, w).run();\n w.flush();\n }\n }", "main", "{\n final FastScanner sc = new FastScanner();\n try (final PrintWriter w = new PrintWriter(System.out)) {\n new Solver(sc, w).run();\n w.flush();\n }\n }", "final FastScanner sc = new FastScanner();", "sc", "new FastScanner()", "try (final PrintWriter w = new PrintWriter(System.out)) {\n new Solver(sc, w).run();\n w.flush();\n }", "{\n new Solver(sc, w).run();\n w.flush();\n }", "final PrintWriter w = new PrintWriter(System.out)", "final PrintWriter w = new PrintWriter(System.out)", "new PrintWriter(System.out)", "new Solver(sc, w).run()", "new Solver(sc, w).run", "new Solver(sc, w)", "w.flush()", "w.flush", "w", "final String[] args", "args", "static class Solver {\n final FastScanner sc;\n final PrintWriter writer;\n\n Solver(final FastScanner sc, final PrintWriter writer) {\n this.sc = sc;\n this.writer = writer;\n }\n\n void run() {\n String s = sc.next();\n int max = 0;\n int count = 0;\n for (char c : s.toCharArray()) {\n if (c == 'R') {\n count++;\n } else {\n count = 0;\n }\n max = Math.max(max, count);\n }\n writer.println(max);\n }\n }", "Solver", "final FastScanner sc;", "sc", "final PrintWriter writer;", "writer", "Solver(final FastScanner sc, final PrintWriter writer) {\n this.sc = sc;\n this.writer = writer;\n }", "Solver", "{\n this.sc = sc;\n this.writer = writer;\n }", "this.sc = sc", "this.sc", "this", "this.sc", "sc", "this.writer = writer", "this.writer", "this", "this.writer", "writer", "final FastScanner sc", "sc", "final PrintWriter writer", "writer", "void run() {\n String s = sc.next();\n int max = 0;\n int count = 0;\n for (char c : s.toCharArray()) {\n if (c == 'R') {\n count++;\n } else {\n count = 0;\n }\n max = Math.max(max, count);\n }\n writer.println(max);\n }", "run", "{\n String s = sc.next();\n int max = 0;\n int count = 0;\n for (char c : s.toCharArray()) {\n if (c == 'R') {\n count++;\n } else {\n count = 0;\n }\n max = Math.max(max, count);\n }\n writer.println(max);\n }", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int max = 0;", "max", "0", "int count = 0;", "count", "0", "for (char c : s.toCharArray()) {\n if (c == 'R') {\n count++;\n } else {\n count = 0;\n }\n max = Math.max(max, count);\n }", "char c", "s.toCharArray()", "s.toCharArray", "s", "{\n if (c == 'R') {\n count++;\n } else {\n count = 0;\n }\n max = Math.max(max, count);\n }", "{\n if (c == 'R') {\n count++;\n } else {\n count = 0;\n }\n max = Math.max(max, count);\n }", "if (c == 'R') {\n count++;\n } else {\n count = 0;\n }", "c == 'R'", "c", "'R'", "{\n count++;\n }", "count++", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "max = Math.max(max, count)", "max", "Math.max(max, count)", "Math.max", "Math", "max", "count", "writer.println(max)", "writer.println", "writer", "max", "static class FastScanner {\n private final InputStream in = System.in;\n private final byte[] buffer = new byte[1024];\n private int ptr = 0;\n private int buflen = 0;\n\n public FastScanner() {\n }\n\n private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n } else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }\n\n private int readByte() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }\n\n private boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }\n\n public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n return hasNextByte();\n }\n\n public String next() {\n if (!hasNext())\n throw new NoSuchElementException();\n final StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }\n\n public long nextLong() {\n if (!hasNext())\n throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }\n\n public int nextInt() {\n final long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n throw new NumberFormatException();\n return (int) nl;\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public int[] nextIntArray(final int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }\n\n public long[] nextLongArray(final int n) {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }\n }", "FastScanner", "private final InputStream in = System.in;", "in", "System.in", "System", "System.in", "private final byte[] buffer = new byte[1024];", "buffer", "new byte[1024]", "1024", "private int ptr = 0;", "ptr", "0", "private int buflen = 0;", "buflen", "0", "public FastScanner() {\n }", "FastScanner", "{\n }", "private boolean hasNextByte() {\n if (ptr < buflen) {\n return true;\n } else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }", "hasNextByte", "{\n if (ptr < buflen) {\n return true;\n } else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }\n return true;\n }", "if (ptr < buflen) {\n return true;\n } else {\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }", "ptr < buflen", "ptr", "buflen", "{\n return true;\n }", "return true;", "true", "{\n ptr = 0;\n try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }\n if (buflen <= 0) {\n return false;\n }\n }", "ptr = 0", "ptr", "0", "try {\n buflen = in.read(buffer);\n } catch (final IOException e) {\n e.printStackTrace();\n }", "catch (final IOException e) {\n e.printStackTrace();\n }", "final IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n buflen = in.read(buffer);\n }", "buflen = in.read(buffer)", "buflen", "in.read(buffer)", "in.read", "in", "buffer", "if (buflen <= 0) {\n return false;\n }", "buflen <= 0", "buflen", "0", "{\n return false;\n }", "return false;", "false", "return true;", "true", "private int readByte() {\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }", "readByte", "{\n if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;\n }", "if (hasNextByte())\n return buffer[ptr++];\n else\n return -1;", "hasNextByte()", "hasNextByte", "return buffer[ptr++];", "buffer[ptr++]", "buffer", "ptr++", "ptr", "return -1;", "-1", "1", "private boolean isPrintableChar(final int c) {\n return 33 <= c && c <= 126;\n }", "isPrintableChar", "{\n return 33 <= c && c <= 126;\n }", "return 33 <= c && c <= 126;", "33 <= c && c <= 126", "33 <= c", "33", "c", "c <= 126", "c", "126", "final int c", "c", "public boolean hasNext() {\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n return hasNextByte();\n }", "hasNext", "{\n while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;\n return hasNextByte();\n }", "while (hasNextByte() && !isPrintableChar(buffer[ptr]))\n ptr++;", "hasNextByte() && !isPrintableChar(buffer[ptr])", "hasNextByte()", "hasNextByte", "!isPrintableChar(buffer[ptr])", "isPrintableChar(buffer[ptr])", "isPrintableChar", "buffer[ptr]", "buffer", "ptr", "ptr++", "ptr", "return hasNextByte();", "hasNextByte()", "hasNextByte", "public String next() {\n if (!hasNext())\n throw new NoSuchElementException();\n final StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }", "next", "{\n if (!hasNext())\n throw new NoSuchElementException();\n final StringBuilder sb = new StringBuilder();\n int b = readByte();\n while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }\n return sb.toString();\n }", "if (!hasNext())\n throw new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "final StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "int b = readByte();", "b", "readByte()", "readByte", "while (isPrintableChar(b)) {\n sb.appendCodePoint(b);\n b = readByte();\n }", "isPrintableChar(b)", "isPrintableChar", "b", "{\n sb.appendCodePoint(b);\n b = readByte();\n }", "sb.appendCodePoint(b)", "sb.appendCodePoint", "sb", "b", "b = readByte()", "b", "readByte()", "readByte", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "public long nextLong() {\n if (!hasNext())\n throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }", "nextLong", "{\n if (!hasNext())\n throw new NoSuchElementException();\n long n = 0;\n boolean minus = false;\n int b = readByte();\n if (b == '-') {\n minus = true;\n b = readByte();\n }\n if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }\n while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }\n }", "if (!hasNext())\n throw new NoSuchElementException();", "!hasNext()", "hasNext()", "hasNext", "throw new NoSuchElementException();", "new NoSuchElementException()", "long n = 0;", "n", "0", "boolean minus = false;", "minus", "false", "int b = readByte();", "b", "readByte()", "readByte", "if (b == '-') {\n minus = true;\n b = readByte();\n }", "b == '-'", "b", "'-'", "{\n minus = true;\n b = readByte();\n }", "minus = true", "minus", "true", "b = readByte()", "b", "readByte()", "readByte", "if (b < '0' || '9' < b) {\n throw new NumberFormatException();\n }", "b < '0' || '9' < b", "b < '0'", "b", "'0'", "'9' < b", "'9'", "b", "{\n throw new NumberFormatException();\n }", "throw new NumberFormatException();", "new NumberFormatException()", "while (true) {\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }", "true", "{\n if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }\n b = readByte();\n }", "if ('0' <= b && b <= '9') {\n n *= 10;\n n += b - '0';\n } else if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }", "'0' <= b && b <= '9'", "'0' <= b", "'0'", "b", "b <= '9'", "b", "'9'", "{\n n *= 10;\n n += b - '0';\n }", "n *= 10", "n", "10", "n += b - '0'", "n", "b - '0'", "b", "'0'", "if (b == -1 || !isPrintableChar(b)) {\n return minus ? -n : n;\n } else {\n throw new NumberFormatException();\n }", "b == -1 || !isPrintableChar(b)", "b == -1", "b", "-1", "1", "!isPrintableChar(b)", "isPrintableChar(b)", "isPrintableChar", "b", "{\n return minus ? -n : n;\n }", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "{\n throw new NumberFormatException();\n }", "throw new NumberFormatException();", "new NumberFormatException()", "b = readByte()", "b", "readByte()", "readByte", "public int nextInt() {\n final long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n throw new NumberFormatException();\n return (int) nl;\n }", "nextInt", "{\n final long nl = nextLong();\n if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n throw new NumberFormatException();\n return (int) nl;\n }", "final long nl = nextLong();", "nl", "nextLong()", "nextLong", "if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE)\n throw new NumberFormatException();", "nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE", "nl < Integer.MIN_VALUE", "nl", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "nl > Integer.MAX_VALUE", "nl", "Integer.MAX_VALUE", "Integer", "Integer.MAX_VALUE", "throw new NumberFormatException();", "new NumberFormatException()", "return (int) nl;", "(int) nl", "public double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public int[] nextIntArray(final int n) {\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }", "nextIntArray", "{\n final int[] a = new int[n];\n for (int i = 0; i < n; i++)\n a[i] = nextInt();\n return a;\n }", "final int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n a[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextInt();", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "final int n", "n", "public long[] nextLongArray(final int n) {\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }", "nextLongArray", "{\n final long[] a = new long[n];\n for (int i = 0; i < n; i++)\n a[i] = nextLong();\n return a;\n }", "final long[] a = new long[n];", "a", "new long[n]", "n", "for (int i = 0; i < n; i++)\n a[i] = nextLong();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextLong();", "a[i] = nextLong()", "a[i]", "a", "i", "nextLong()", "nextLong", "return a;", "a", "final int n", "n" ]
import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.NoSuchElementException; class Main { static class Solver { final FastScanner sc; final PrintWriter writer; Solver(final FastScanner sc, final PrintWriter writer) { this.sc = sc; this.writer = writer; } void run() { String s = sc.next(); int max = 0; int count = 0; for (char c : s.toCharArray()) { if (c == 'R') { count++; } else { count = 0; } max = Math.max(max, count); } writer.println(max); } } public static void main(final String[] args) { final FastScanner sc = new FastScanner(); try (final PrintWriter w = new PrintWriter(System.out)) { new Solver(sc, w).run(); w.flush(); } } // FastScanner static class FastScanner { private final InputStream in = System.in; private final byte[] buffer = new byte[1024]; private int ptr = 0; private int buflen = 0; public FastScanner() { } private boolean hasNextByte() { if (ptr < buflen) { return true; } else { ptr = 0; try { buflen = in.read(buffer); } catch (final IOException e) { e.printStackTrace(); } if (buflen <= 0) { return false; } } return true; } private int readByte() { if (hasNextByte()) return buffer[ptr++]; else return -1; } private boolean isPrintableChar(final int c) { return 33 <= c && c <= 126; } public boolean hasNext() { while (hasNextByte() && !isPrintableChar(buffer[ptr])) ptr++; return hasNextByte(); } public String next() { if (!hasNext()) throw new NoSuchElementException(); final StringBuilder sb = new StringBuilder(); int b = readByte(); while (isPrintableChar(b)) { sb.appendCodePoint(b); b = readByte(); } return sb.toString(); } public long nextLong() { if (!hasNext()) throw new NoSuchElementException(); long n = 0; boolean minus = false; int b = readByte(); if (b == '-') { minus = true; b = readByte(); } if (b < '0' || '9' < b) { throw new NumberFormatException(); } while (true) { if ('0' <= b && b <= '9') { n *= 10; n += b - '0'; } else if (b == -1 || !isPrintableChar(b)) { return minus ? -n : n; } else { throw new NumberFormatException(); } b = readByte(); } } public int nextInt() { final long nl = nextLong(); if (nl < Integer.MIN_VALUE || nl > Integer.MAX_VALUE) throw new NumberFormatException(); return (int) nl; } public double nextDouble() { return Double.parseDouble(next()); } public int[] nextIntArray(final int n) { final int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } public long[] nextLongArray(final int n) { final long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = nextLong(); return a; } } }
[ 7, 6, 13, 12, 13, 30, 41, 13, 4, 18, 20, 35, 13, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 34, 17, 1, 34, 17, 1, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 67, 2 ], [ 67, 3 ], [ 3, 4 ], [ 3, 5 ], [ 5, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 5, 11 ], [ 11, 12 ], [ 11, 13 ], [ 13, 14 ], [ 13, 15 ], [ 15, 16 ], [ 16, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 16, 21 ], [ 15, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 29, 31 ], [ 11, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 34, 41 ], [ 11, 42 ], [ 42, 43 ], [ 42, 44 ], [ 11, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 47, 54 ], [ 11, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 3, 64 ], [ 64, 65 ], [ 0, 66 ], [ 66, 67 ], [ 66, 68 ] ]
[ "public class Main {\n public static void main(String[] args) {\n String S = new java.util.Scanner(System.in).nextLine();\n switch (S) {\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n String S = new java.util.Scanner(System.in).nextLine();\n switch (S) {\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n String S = new java.util.Scanner(System.in).nextLine();\n switch (S) {\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n }\n }", "main", "{\n String S = new java.util.Scanner(System.in).nextLine();\n switch (S) {\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n }\n }", "String S = new java.util.Scanner(System.in).nextLine();", "S", "new java.util.Scanner(System.in).nextLine()", "new java.util.Scanner(System.in).nextLine", "new java.util.Scanner(System.in)", "switch (S) {\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n }", "S", "case \"SSS\":", "\"SSS\"", "case \"SSS\":", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "break;", "case \"SSR\":", "\"SSR\"", "case \"SSR\":", "case \"SRS\":", "\"SRS\"", "case \"SRS\":", "case \"RSS\":", "\"RSS\"", "case \"RSS\":", "case \"RSR\":", "\"RSR\"", "case \"RSR\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "case \"SRR\":", "\"SRR\"", "case \"SRR\":", "case \"RRS\":", "\"RRS\"", "case \"RRS\":", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "break;", "case \"RRR\":", "\"RRR\"", "case \"RRR\":", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n String S = new java.util.Scanner(System.in).nextLine();\n switch (S) {\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n String S = new java.util.Scanner(System.in).nextLine();\n switch (S) {\n case \"SSS\":\n System.out.println(\"0\");\n break;\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n System.out.println(\"1\");\n break;\n case \"SRR\":\n case \"RRS\":\n System.out.println(\"2\");\n break;\n case \"RRR\":\n System.out.println(\"3\");\n }\n }\n}", "Main" ]
public class Main { public static void main(String[] args) { String S = new java.util.Scanner(System.in).nextLine(); switch (S) { case "SSS": System.out.println("0"); break; case "SSR": case "SRS": case "RSS": case "RSR": System.out.println("1"); break; case "SRR": case "RRS": System.out.println("2"); break; case "RRR": System.out.println("3"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 63, 5 ], [ 63, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 29, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 41, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 54, 59 ], [ 6, 60 ], [ 60, 61 ], [ 0, 62 ], [ 62, 63 ], [ 62, 64 ] ]
[ "import java.util.*;\npublic class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String S =sc.next();\n if(S.contains(\"RRR\")){System.out.println(3);}\n else if(S.contains(\"RR\")){System.out.println(2);}\n else if(S.contains(\"R\")){System.out.println(1);}\n else{System.out.println(0);}\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String S =sc.next();\n if(S.contains(\"RRR\")){System.out.println(3);}\n else if(S.contains(\"RR\")){System.out.println(2);}\n else if(S.contains(\"R\")){System.out.println(1);}\n else{System.out.println(0);}\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String S =sc.next();\n if(S.contains(\"RRR\")){System.out.println(3);}\n else if(S.contains(\"RR\")){System.out.println(2);}\n else if(S.contains(\"R\")){System.out.println(1);}\n else{System.out.println(0);}\n }", "main", "{\n Scanner sc =new Scanner(System.in);\n String S =sc.next();\n if(S.contains(\"RRR\")){System.out.println(3);}\n else if(S.contains(\"RR\")){System.out.println(2);}\n else if(S.contains(\"R\")){System.out.println(1);}\n else{System.out.println(0);}\n }", "Scanner sc =new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S =sc.next();", "S", "sc.next()", "sc.next", "sc", "if(S.contains(\"RRR\")){System.out.println(3);}\n else if(S.contains(\"RR\")){System.out.println(2);}\n else if(S.contains(\"R\")){System.out.println(1);}\n else{System.out.println(0);}", "S.contains(\"RRR\")", "S.contains", "S", "\"RRR\"", "{System.out.println(3);}", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if(S.contains(\"RR\")){System.out.println(2);}\n else if(S.contains(\"R\")){System.out.println(1);}\n else{System.out.println(0);}", "S.contains(\"RR\")", "S.contains", "S", "\"RR\"", "{System.out.println(2);}", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(S.contains(\"R\")){System.out.println(1);}\n else{System.out.println(0);}", "S.contains(\"R\")", "S.contains", "S", "\"R\"", "{System.out.println(1);}", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "{System.out.println(0);}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String S =sc.next();\n if(S.contains(\"RRR\")){System.out.println(3);}\n else if(S.contains(\"RR\")){System.out.println(2);}\n else if(S.contains(\"R\")){System.out.println(1);}\n else{System.out.println(0);}\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc =new Scanner(System.in);\n String S =sc.next();\n if(S.contains(\"RRR\")){System.out.println(3);}\n else if(S.contains(\"RR\")){System.out.println(2);}\n else if(S.contains(\"R\")){System.out.println(1);}\n else{System.out.println(0);}\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc =new Scanner(System.in); String S =sc.next(); if(S.contains("RRR")){System.out.println(3);} else if(S.contains("RR")){System.out.println(2);} else if(S.contains("R")){System.out.println(1);} else{System.out.println(0);} } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 14, 4, 18, 13, 17, 30, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 29, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 29, 17, 30, 29, 17, 29, 17, 23, 13, 12, 13, 30, 4, 18, 13, 4, 13, 4, 18, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 17, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 164, 17 ], [ 164, 18 ], [ 18, 19 ], [ 18, 20 ], [ 164, 21 ], [ 21, 22 ], [ 21, 23 ], [ 164, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 27, 32 ], [ 32, 33 ], [ 33, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 35, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 35, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 33, 54 ], [ 54, 55 ], [ 55, 56 ], [ 33, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 60, 65 ], [ 59, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 66, 71 ], [ 58, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 73, 78 ], [ 72, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 80, 83 ], [ 79, 84 ], [ 57, 85 ], [ 85, 86 ], [ 86, 87 ], [ 57, 88 ], [ 88, 89 ], [ 89, 90 ], [ 26, 91 ], [ 91, 92 ], [ 24, 93 ], [ 93, 94 ], [ 164, 95 ], [ 95, 96 ], [ 95, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 98, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 97, 106 ], [ 106, 107 ], [ 107, 108 ], [ 95, 109 ], [ 109, 110 ], [ 164, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 111, 115 ], [ 115, 116 ], [ 111, 117 ], [ 117, 118 ], [ 117, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 123, 124 ], [ 123, 125 ], [ 111, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 129, 138 ], [ 138, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 139, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 128, 150 ], [ 150, 151 ], [ 151, 152 ], [ 152, 153 ], [ 111, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 161, 162 ], [ 0, 163 ], [ 163, 164 ], [ 163, 165 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n\nimport java.util.StringTokenizer;\n\n\npublic class Main {\n\n private final static FastReader in = new FastReader();\n private static final PrintWriter out = new PrintWriter(System.out);\n\n\n public static int solve(String s) {\n if (s.contains(\"R\")) {\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R' ||\n s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 2;\n } else {\n return 1;\n }\n }\n return 0;\n\n }\n\n public static void main(String[] args) {\n\n out.println(solve(in.next()));\n\n out.flush();\n }\n\n private static final class FastReader {\n private static BufferedReader BF;\n private static StringTokenizer ST;\n\n public FastReader() {\n BF = new BufferedReader(new InputStreamReader(System.in));\n ST = null;\n }\n\n\n public final String next() {\n while (ST == null || !ST.hasMoreTokens()) {\n try {\n ST = new StringTokenizer(BF.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return ST.nextToken();\n\n }\n\n final int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n\n private final static FastReader in = new FastReader();\n private static final PrintWriter out = new PrintWriter(System.out);\n\n\n public static int solve(String s) {\n if (s.contains(\"R\")) {\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R' ||\n s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 2;\n } else {\n return 1;\n }\n }\n return 0;\n\n }\n\n public static void main(String[] args) {\n\n out.println(solve(in.next()));\n\n out.flush();\n }\n\n private static final class FastReader {\n private static BufferedReader BF;\n private static StringTokenizer ST;\n\n public FastReader() {\n BF = new BufferedReader(new InputStreamReader(System.in));\n ST = null;\n }\n\n\n public final String next() {\n while (ST == null || !ST.hasMoreTokens()) {\n try {\n ST = new StringTokenizer(BF.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return ST.nextToken();\n\n }\n\n final int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n\n\n}", "Main", "private final static FastReader in = new FastReader();", "in", "new FastReader()", "private static final PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "public static int solve(String s) {\n if (s.contains(\"R\")) {\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R' ||\n s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 2;\n } else {\n return 1;\n }\n }\n return 0;\n\n }", "solve", "{\n if (s.contains(\"R\")) {\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R' ||\n s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 2;\n } else {\n return 1;\n }\n }\n return 0;\n\n }", "if (s.contains(\"R\")) {\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R' ||\n s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 2;\n } else {\n return 1;\n }\n }", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "{\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R' ||\n s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 2;\n } else {\n return 1;\n }\n }", "if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R' ||\n s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 2;\n } else {\n return 1;\n }", "s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R'", "s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R'", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "s.charAt(1) == 'R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n return 3;\n }", "return 3;", "3", "if (s.charAt(0) == 'R' && s.charAt(1) == 'R' ||\n s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 2;\n } else {\n return 1;\n }", "s.charAt(0) == 'R' && s.charAt(1) == 'R' ||\n s.charAt(1) == 'R' && s.charAt(2) == 'R'", "s.charAt(0) == 'R' && s.charAt(1) == 'R'", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "s.charAt(1) == 'R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "s.charAt(1) == 'R' && s.charAt(2) == 'R'", "s.charAt(1) == 'R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n return 2;\n }", "return 2;", "2", "{\n return 1;\n }", "return 1;", "1", "return 0;", "0", "String s", "s", "public static void main(String[] args) {\n\n out.println(solve(in.next()));\n\n out.flush();\n }", "main", "{\n\n out.println(solve(in.next()));\n\n out.flush();\n }", "out.println(solve(in.next()))", "out.println", "out", "solve(in.next())", "solve", "in.next()", "in.next", "in", "out.flush()", "out.flush", "out", "String[] args", "args", "private static final class FastReader {\n private static BufferedReader BF;\n private static StringTokenizer ST;\n\n public FastReader() {\n BF = new BufferedReader(new InputStreamReader(System.in));\n ST = null;\n }\n\n\n public final String next() {\n while (ST == null || !ST.hasMoreTokens()) {\n try {\n ST = new StringTokenizer(BF.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return ST.nextToken();\n\n }\n\n final int nextInt() {\n return Integer.parseInt(next());\n }\n\n }", "FastReader", "private static BufferedReader BF;", "BF", "private static StringTokenizer ST;", "ST", "public FastReader() {\n BF = new BufferedReader(new InputStreamReader(System.in));\n ST = null;\n }", "FastReader", "{\n BF = new BufferedReader(new InputStreamReader(System.in));\n ST = null;\n }", "BF = new BufferedReader(new InputStreamReader(System.in))", "BF", "new BufferedReader(new InputStreamReader(System.in))", "ST = null", "ST", "null", "public final String next() {\n while (ST == null || !ST.hasMoreTokens()) {\n try {\n ST = new StringTokenizer(BF.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return ST.nextToken();\n\n }", "next", "{\n while (ST == null || !ST.hasMoreTokens()) {\n try {\n ST = new StringTokenizer(BF.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return ST.nextToken();\n\n }", "while (ST == null || !ST.hasMoreTokens()) {\n try {\n ST = new StringTokenizer(BF.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "ST == null || !ST.hasMoreTokens()", "ST == null", "ST", "null", "!ST.hasMoreTokens()", "ST.hasMoreTokens()", "ST.hasMoreTokens", "ST", "{\n try {\n ST = new StringTokenizer(BF.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n ST = new StringTokenizer(BF.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n ST = new StringTokenizer(BF.readLine());\n }", "ST = new StringTokenizer(BF.readLine())", "ST", "new StringTokenizer(BF.readLine())", "return ST.nextToken();", "ST.nextToken()", "ST.nextToken", "ST", "final int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public class Main {\n\n private final static FastReader in = new FastReader();\n private static final PrintWriter out = new PrintWriter(System.out);\n\n\n public static int solve(String s) {\n if (s.contains(\"R\")) {\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R' ||\n s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 2;\n } else {\n return 1;\n }\n }\n return 0;\n\n }\n\n public static void main(String[] args) {\n\n out.println(solve(in.next()));\n\n out.flush();\n }\n\n private static final class FastReader {\n private static BufferedReader BF;\n private static StringTokenizer ST;\n\n public FastReader() {\n BF = new BufferedReader(new InputStreamReader(System.in));\n ST = null;\n }\n\n\n public final String next() {\n while (ST == null || !ST.hasMoreTokens()) {\n try {\n ST = new StringTokenizer(BF.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return ST.nextToken();\n\n }\n\n final int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n\n\n}", "public class Main {\n\n private final static FastReader in = new FastReader();\n private static final PrintWriter out = new PrintWriter(System.out);\n\n\n public static int solve(String s) {\n if (s.contains(\"R\")) {\n if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 3;\n } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R' ||\n s.charAt(1) == 'R' && s.charAt(2) == 'R') {\n return 2;\n } else {\n return 1;\n }\n }\n return 0;\n\n }\n\n public static void main(String[] args) {\n\n out.println(solve(in.next()));\n\n out.flush();\n }\n\n private static final class FastReader {\n private static BufferedReader BF;\n private static StringTokenizer ST;\n\n public FastReader() {\n BF = new BufferedReader(new InputStreamReader(System.in));\n ST = null;\n }\n\n\n public final String next() {\n while (ST == null || !ST.hasMoreTokens()) {\n try {\n ST = new StringTokenizer(BF.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return ST.nextToken();\n\n }\n\n final int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { private final static FastReader in = new FastReader(); private static final PrintWriter out = new PrintWriter(System.out); public static int solve(String s) { if (s.contains("R")) { if (s.charAt(0) == 'R' && s.charAt(1) == 'R' && s.charAt(2) == 'R') { return 3; } else if (s.charAt(0) == 'R' && s.charAt(1) == 'R' || s.charAt(1) == 'R' && s.charAt(2) == 'R') { return 2; } else { return 1; } } return 0; } public static void main(String[] args) { out.println(solve(in.next())); out.flush(); } private static final class FastReader { private static BufferedReader BF; private static StringTokenizer ST; public FastReader() { BF = new BufferedReader(new InputStreamReader(System.in)); ST = null; } public final String next() { while (ST == null || !ST.hasMoreTokens()) { try { ST = new StringTokenizer(BF.readLine()); } catch (IOException e) { e.printStackTrace(); } } return ST.nextToken(); } final int nextInt() { return Integer.parseInt(next()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 0, 13, 4, 18, 13, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 2, 4, 18, 13, 13, 17, 2, 4, 18, 13, 2, 13, 17, 17, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 94, 5 ], [ 94, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 24, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 25, 30 ], [ 24, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 24, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 22, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 22, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 51, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 51, 61 ], [ 61, 62 ], [ 62, 63 ], [ 51, 64 ], [ 65, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 69, 72 ], [ 68, 73 ], [ 67, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 75, 78 ], [ 78, 79 ], [ 78, 80 ], [ 74, 81 ], [ 66, 82 ], [ 82, 83 ], [ 83, 84 ], [ 50, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 6, 91 ], [ 91, 92 ], [ 0, 93 ], [ 93, 94 ], [ 93, 95 ] ]
[ "\nimport java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int count=1;\n String rain;\n rain=scan.nextLine();\n if(rain.charAt(0)=='S' && rain.charAt(1)=='S' && rain.charAt(2)=='S'){\n System.out.print(0);\n }else {\n for (int i = 1; i < rain.length(); i++) {\n if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') {\n count++;\n }\n }\n System.out.print(count);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int count=1;\n String rain;\n rain=scan.nextLine();\n if(rain.charAt(0)=='S' && rain.charAt(1)=='S' && rain.charAt(2)=='S'){\n System.out.print(0);\n }else {\n for (int i = 1; i < rain.length(); i++) {\n if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') {\n count++;\n }\n }\n System.out.print(count);\n }\n }\n}", "Main", "public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int count=1;\n String rain;\n rain=scan.nextLine();\n if(rain.charAt(0)=='S' && rain.charAt(1)=='S' && rain.charAt(2)=='S'){\n System.out.print(0);\n }else {\n for (int i = 1; i < rain.length(); i++) {\n if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') {\n count++;\n }\n }\n System.out.print(count);\n }\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n int count=1;\n String rain;\n rain=scan.nextLine();\n if(rain.charAt(0)=='S' && rain.charAt(1)=='S' && rain.charAt(2)=='S'){\n System.out.print(0);\n }else {\n for (int i = 1; i < rain.length(); i++) {\n if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') {\n count++;\n }\n }\n System.out.print(count);\n }\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "int count=1;", "count", "1", "String rain;", "rain", "rain=scan.nextLine()", "rain", "scan.nextLine()", "scan.nextLine", "scan", "if(rain.charAt(0)=='S' && rain.charAt(1)=='S' && rain.charAt(2)=='S'){\n System.out.print(0);\n }else {\n for (int i = 1; i < rain.length(); i++) {\n if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') {\n count++;\n }\n }\n System.out.print(count);\n }", "rain.charAt(0)=='S' && rain.charAt(1)=='S' && rain.charAt(2)=='S'", "rain.charAt(0)=='S' && rain.charAt(1)=='S' && rain.charAt(2)=='S'", "rain.charAt(0)=='S'", "rain.charAt(0)", "rain.charAt", "rain", "0", "'S'", "rain.charAt(1)=='S'", "rain.charAt(1)", "rain.charAt", "rain", "1", "'S'", "rain.charAt(2)=='S'", "rain.charAt(2)", "rain.charAt", "rain", "2", "'S'", "{\n System.out.print(0);\n }", "System.out.print(0)", "System.out.print", "System.out", "System", "System.out", "0", "{\n for (int i = 1; i < rain.length(); i++) {\n if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') {\n count++;\n }\n }\n System.out.print(count);\n }", "for (int i = 1; i < rain.length(); i++) {\n if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') {\n count++;\n }\n }", "int i = 1;", "int i = 1;", "i", "1", "i < rain.length()", "i", "rain.length()", "rain.length", "rain", "i++", "i++", "i", "{\n if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') {\n count++;\n }\n }", "{\n if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') {\n count++;\n }\n }", "if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') {\n count++;\n }", "rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R'", "rain.charAt(i) == 'R'", "rain.charAt(i)", "rain.charAt", "rain", "i", "'R'", "rain.charAt(i - 1) == 'R'", "rain.charAt(i - 1)", "rain.charAt", "rain", "i - 1", "i", "1", "'R'", "{\n count++;\n }", "count++", "count", "System.out.print(count)", "System.out.print", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int count=1;\n String rain;\n rain=scan.nextLine();\n if(rain.charAt(0)=='S' && rain.charAt(1)=='S' && rain.charAt(2)=='S'){\n System.out.print(0);\n }else {\n for (int i = 1; i < rain.length(); i++) {\n if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') {\n count++;\n }\n }\n System.out.print(count);\n }\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int count=1;\n String rain;\n rain=scan.nextLine();\n if(rain.charAt(0)=='S' && rain.charAt(1)=='S' && rain.charAt(2)=='S'){\n System.out.print(0);\n }else {\n for (int i = 1; i < rain.length(); i++) {\n if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') {\n count++;\n }\n }\n System.out.print(count);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner scan = new Scanner(System.in); int count=1; String rain; rain=scan.nextLine(); if(rain.charAt(0)=='S' && rain.charAt(1)=='S' && rain.charAt(2)=='S'){ System.out.print(0); }else { for (int i = 1; i < rain.length(); i++) { if (rain.charAt(i) == 'R' && rain.charAt(i - 1) == 'R') { count++; } } System.out.print(count); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 17, 12, 13, 30, 41, 13, 4, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 4, 13, 4, 18, 13, 13, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 41, 13, 17, 4, 13, 41, 13, 4, 18, 13, 4, 18, 13, 14, 40, 13, 4, 18, 18, 13, 13, 2, 2, 4, 18, 13, 13, 17, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 13, 4, 18, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 18, 13, 13, 41, 13, 2, 13, 4, 18, 13, 2, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 18, 13, 13, 4, 18, 18, 13, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 8, 2, 13, 17, 13, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 8, 2, 13, 17, 13, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 12, 13, 30, 29, 8, 2, 13, 17, 17, 2, 17, 4, 13, 2, 13, 2, 13, 17, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 463, 11 ], [ 463, 12 ], [ 12, 13 ], [ 463, 14 ], [ 14, 15 ], [ 463, 16 ], [ 16, 17 ], [ 16, 18 ], [ 463, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 21, 26 ], [ 26, 27 ], [ 26, 28 ], [ 21, 29 ], [ 29, 30 ], [ 29, 31 ], [ 21, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 32, 43 ], [ 44, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 46, 51 ], [ 45, 52 ], [ 52, 53 ], [ 45, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 57, 61 ], [ 54, 62 ], [ 62, 63 ], [ 62, 64 ], [ 21, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 67, 71 ], [ 463, 72 ], [ 72, 73 ], [ 72, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 78, 80 ], [ 74, 81 ], [ 81, 82 ], [ 81, 83 ], [ 74, 84 ], [ 84, 85 ], [ 74, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 89, 90 ], [ 74, 91 ], [ 91, 92 ], [ 92, 93 ], [ 74, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 103, 107 ], [ 102, 108 ], [ 74, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 72, 114 ], [ 114, 115 ], [ 463, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 119, 122 ], [ 118, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 116, 127 ], [ 127, 128 ], [ 116, 129 ], [ 129, 130 ], [ 463, 131 ], [ 131, 132 ], [ 131, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 137, 142 ], [ 142, 143 ], [ 142, 144 ], [ 137, 145 ], [ 145, 146 ], [ 146, 147 ], [ 137, 148 ], [ 149, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 152, 154 ], [ 149, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 159, 162 ], [ 162, 163 ], [ 162, 164 ], [ 149, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 165, 169 ], [ 169, 170 ], [ 169, 171 ], [ 149, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 172, 176 ], [ 131, 177 ], [ 177, 178 ], [ 131, 179 ], [ 179, 180 ], [ 463, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 184, 187 ], [ 181, 188 ], [ 188, 189 ], [ 463, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 193, 196 ], [ 190, 197 ], [ 197, 198 ], [ 463, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 202, 205 ], [ 201, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 208, 210 ], [ 199, 211 ], [ 211, 212 ], [ 463, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 463, 220 ], [ 220, 221 ], [ 220, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 225, 226 ], [ 463, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 463, 234 ], [ 234, 235 ], [ 234, 236 ], [ 236, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 463, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 463, 248 ], [ 248, 249 ], [ 248, 250 ], [ 250, 251 ], [ 251, 252 ], [ 252, 253 ], [ 253, 254 ], [ 253, 255 ], [ 252, 256 ], [ 252, 257 ], [ 257, 258 ], [ 257, 259 ], [ 257, 260 ], [ 260, 261 ], [ 260, 262 ], [ 248, 263 ], [ 263, 264 ], [ 248, 265 ], [ 265, 266 ], [ 463, 267 ], [ 267, 268 ], [ 267, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 272, 274 ], [ 271, 275 ], [ 271, 276 ], [ 276, 277 ], [ 276, 278 ], [ 276, 279 ], [ 279, 280 ], [ 279, 281 ], [ 267, 282 ], [ 282, 283 ], [ 267, 284 ], [ 284, 285 ], [ 463, 286 ], [ 286, 287 ], [ 286, 288 ], [ 288, 289 ], [ 289, 290 ], [ 290, 291 ], [ 291, 292 ], [ 291, 293 ], [ 290, 294 ], [ 290, 295 ], [ 295, 296 ], [ 295, 297 ], [ 297, 298 ], [ 297, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 301, 303 ], [ 286, 304 ], [ 304, 305 ], [ 463, 306 ], [ 306, 307 ], [ 306, 308 ], [ 308, 309 ], [ 309, 310 ], [ 309, 311 ], [ 308, 313 ], [ 313, 314 ], [ 314, 315 ], [ 315, 316 ], [ 315, 317 ], [ 313, 318 ], [ 318, 319 ], [ 318, 320 ], [ 313, 321 ], [ 321, 322 ], [ 322, 323 ], [ 313, 324 ], [ 325, 325 ], [ 325, 326 ], [ 326, 327 ], [ 327, 328 ], [ 327, 329 ], [ 326, 330 ], [ 330, 331 ], [ 308, 332 ], [ 332, 333 ], [ 306, 334 ], [ 334, 335 ], [ 463, 336 ], [ 336, 337 ], [ 336, 338 ], [ 338, 339 ], [ 339, 340 ], [ 339, 341 ], [ 338, 343 ], [ 343, 344 ], [ 344, 345 ], [ 345, 346 ], [ 345, 347 ], [ 343, 348 ], [ 348, 349 ], [ 348, 350 ], [ 343, 351 ], [ 351, 352 ], [ 352, 353 ], [ 343, 354 ], [ 355, 355 ], [ 355, 356 ], [ 356, 357 ], [ 357, 358 ], [ 357, 359 ], [ 356, 360 ], [ 360, 361 ], [ 338, 362 ], [ 362, 363 ], [ 336, 364 ], [ 364, 365 ], [ 463, 366 ], [ 366, 367 ], [ 366, 368 ], [ 368, 369 ], [ 366, 370 ], [ 370, 371 ], [ 366, 372 ], [ 372, 373 ], [ 372, 374 ], [ 374, 375 ], [ 375, 376 ], [ 375, 377 ], [ 366, 378 ], [ 378, 379 ], [ 378, 380 ], [ 380, 381 ], [ 381, 382 ], [ 381, 383 ], [ 378, 384 ], [ 384, 385 ], [ 366, 386 ], [ 386, 387 ], [ 386, 388 ], [ 388, 389 ], [ 389, 390 ], [ 390, 391 ], [ 391, 392 ], [ 391, 393 ], [ 390, 394 ], [ 394, 395 ], [ 395, 396 ], [ 396, 397 ], [ 389, 398 ], [ 398, 399 ], [ 399, 400 ], [ 400, 401 ], [ 400, 402 ], [ 402, 403 ], [ 403, 404 ], [ 404, 405 ], [ 399, 406 ], [ 406, 407 ], [ 407, 408 ], [ 407, 409 ], [ 388, 410 ], [ 410, 411 ], [ 411, 412 ], [ 412, 413 ], [ 366, 414 ], [ 414, 415 ], [ 414, 416 ], [ 416, 417 ], [ 417, 418 ], [ 418, 419 ], [ 419, 420 ], [ 418, 421 ], [ 421, 422 ], [ 366, 423 ], [ 423, 424 ], [ 423, 425 ], [ 425, 426 ], [ 426, 427 ], [ 427, 428 ], [ 428, 429 ], [ 427, 430 ], [ 430, 431 ], [ 366, 432 ], [ 432, 433 ], [ 432, 434 ], [ 434, 435 ], [ 435, 436 ], [ 436, 437 ], [ 437, 438 ], [ 436, 439 ], [ 439, 440 ], [ 366, 441 ], [ 441, 442 ], [ 441, 443 ], [ 443, 444 ], [ 444, 445 ], [ 444, 446 ], [ 443, 447 ], [ 447, 448 ], [ 448, 449 ], [ 448, 450 ], [ 450, 451 ], [ 451, 452 ], [ 452, 453 ], [ 447, 454 ], [ 454, 455 ], [ 455, 456 ], [ 455, 457 ], [ 457, 458 ], [ 458, 459 ], [ 443, 460 ], [ 460, 461 ], [ 0, 462 ], [ 462, 463 ], [ 462, 464 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.math.*;\n/*\njavac Main.java\njava Main <input.txt> output.txt\n*/\npublic class Main\n{ \n public static void process()throws IOException\n {\n //int n=ni();\n String s=nn();\n long a=0l,d=0l;\n for(int i=0;i<3;i++)\n {\n if(s.charAt(i)=='R')\n a++;\n else\n {d=Math.max(a,d);a=0l;}\n }\n pn(Math.max(a,d));\n }\n \n \n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n //PrintWriter out=new PrintWriter(\"output\");\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n\n //int i=1;\n //int T=ni(); while(T-->0)\n process();\n //{\n //p(\"Case #\"+i+\": \");\n \n //i++;\n //}\n long s = System.currentTimeMillis();\n \n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }\n static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }\n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}\n static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}\n static boolean multipleTC=false;\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}\n \n ", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "public class Main\n{ \n public static void process()throws IOException\n {\n //int n=ni();\n String s=nn();\n long a=0l,d=0l;\n for(int i=0;i<3;i++)\n {\n if(s.charAt(i)=='R')\n a++;\n else\n {d=Math.max(a,d);a=0l;}\n }\n pn(Math.max(a,d));\n }\n \n \n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n //PrintWriter out=new PrintWriter(\"output\");\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n\n //int i=1;\n //int T=ni(); while(T-->0)\n process();\n //{\n //p(\"Case #\"+i+\": \");\n \n //i++;\n //}\n long s = System.currentTimeMillis();\n \n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }\n static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }\n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}\n static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}\n static boolean multipleTC=false;\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}", "Main", "static AnotherReader sc;", "sc", "static PrintWriter out;", "out", "static boolean multipleTC=false;", "multipleTC", "false", "public static void process()throws IOException\n {\n //int n=ni();\n String s=nn();\n long a=0l,d=0l;\n for(int i=0;i<3;i++)\n {\n if(s.charAt(i)=='R')\n a++;\n else\n {d=Math.max(a,d);a=0l;}\n }\n pn(Math.max(a,d));\n }", "process", "{\n //int n=ni();\n String s=nn();\n long a=0l,d=0l;\n for(int i=0;i<3;i++)\n {\n if(s.charAt(i)=='R')\n a++;\n else\n {d=Math.max(a,d);a=0l;}\n }\n pn(Math.max(a,d));\n }", "String s=nn();", "s", "nn()", "nn", "long a=0l", "a", "0l", "d=0l;", "d", "0l", "for(int i=0;i<3;i++)\n {\n if(s.charAt(i)=='R')\n a++;\n else\n {d=Math.max(a,d);a=0l;}\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if(s.charAt(i)=='R')\n a++;\n else\n {d=Math.max(a,d);a=0l;}\n }", "{\n if(s.charAt(i)=='R')\n a++;\n else\n {d=Math.max(a,d);a=0l;}\n }", "if(s.charAt(i)=='R')\n a++;\n else\n {d=Math.max(a,d);a=0l;}", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "a++", "a", "{d=Math.max(a,d);a=0l;}", "d=Math.max(a,d)", "d", "Math.max(a,d)", "Math.max", "Math", "a", "d", "a=0l", "a", "0l", "pn(Math.max(a,d))", "pn", "Math.max(a,d)", "Math.max", "Math", "a", "d", "public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n //PrintWriter out=new PrintWriter(\"output\");\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n\n //int i=1;\n //int T=ni(); while(T-->0)\n process();\n //{\n //p(\"Case #\"+i+\": \");\n \n //i++;\n //}\n long s = System.currentTimeMillis();\n \n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }", "main", "{\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n //PrintWriter out=new PrintWriter(\"output\");\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n\n //int i=1;\n //int T=ni(); while(T-->0)\n process();\n //{\n //p(\"Case #\"+i+\": \");\n \n //i++;\n //}\n long s = System.currentTimeMillis();\n \n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }", "out = new PrintWriter(System.out)", "out", "new PrintWriter(System.out)", "sc=new AnotherReader()", "sc", "new AnotherReader()", "boolean oj = true;", "oj", "true", "process()", "process", "long s = System.currentTimeMillis();", "s", "System.currentTimeMillis()", "System.currentTimeMillis", "System", "out.flush()", "out.flush", "out", "if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");", "!oj", "oj", "System.out.println(System.currentTimeMillis()-s+\"ms\")", "System.out.println", "System.out", "System", "System.out", "System.currentTimeMillis()-s+\"ms\"", "System.currentTimeMillis()-s", "System.currentTimeMillis()", "System.currentTimeMillis", "System", "s", "\"ms\"", "System.out.close()", "System.out.close", "System.out", "System", "System.out", "String[]args", "args", "static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }", "sort", "{\n shuffle(arr,n);\n Arrays.sort(arr);\n }", "shuffle(arr,n)", "shuffle", "arr", "n", "Arrays.sort(arr)", "Arrays.sort", "Arrays", "arr", "long arr[]", "arr", "int n", "n", "static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }", "shuffle", "{\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }", "Random r=new Random();", "r", "new Random()", "for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }", "{\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }", "long temp=arr[i];", "temp", "arr[i]", "arr", "i", "int pos=i+r.nextInt(n-i);", "pos", "i+r.nextInt(n-i)", "i", "r.nextInt(n-i)", "r.nextInt", "r", "n-i", "n", "i", "arr[i]=arr[pos]", "arr[i]", "arr", "i", "arr[pos]", "arr", "pos", "arr[pos]=temp", "arr[pos]", "arr", "pos", "temp", "long arr[]", "arr", "int n", "n", "static void pn(Object o){out.println(o);}", "pn", "{out.println(o);}", "out.println(o)", "out.println", "out", "o", "Object o", "o", "static void p(Object o){out.print(o);}", "p", "{out.print(o);}", "out.print(o)", "out.print", "out", "o", "Object o", "o", "static void pni(Object o){out.println(o);System.out.flush();}", "pni", "{out.println(o);System.out.flush();}", "out.println(o)", "out.println", "out", "o", "System.out.flush()", "System.out.flush", "System.out", "System", "System.out", "Object o", "o", "static int ni()throws IOException{return sc.nextInt();}", "ni", "{return sc.nextInt();}", "return sc.nextInt();", "sc.nextInt()", "sc.nextInt", "sc", "static long nl()throws IOException{return sc.nextLong();}", "nl", "{return sc.nextLong();}", "return sc.nextLong();", "sc.nextLong()", "sc.nextLong", "sc", "static double nd()throws IOException{return sc.nextDouble();}", "nd", "{return sc.nextDouble();}", "return sc.nextDouble();", "sc.nextDouble()", "sc.nextDouble", "sc", "static String nln()throws IOException{return sc.nextLine();}", "nln", "{return sc.nextLine();}", "return sc.nextLine();", "sc.nextLine()", "sc.nextLine", "sc", "static String nn()throws IOException{return sc.next();}", "nn", "{return sc.next();}", "return sc.next();", "sc.next()", "sc.next", "sc", "static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}", "gcd", "{return (b==0)?a:gcd(b,a%b);}", "return (b==0)?a:gcd(b,a%b);", "(b==0)?a:gcd(b,a%b)", "(b==0)", "b", "0", "a", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "long a", "a", "long b", "b", "static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}", "gcd", "{return (b==0)?a:gcd(b,a%b);}", "return (b==0)?a:gcd(b,a%b);", "(b==0)?a:gcd(b,a%b)", "(b==0)", "b", "0", "a", "gcd(b,a%b)", "gcd", "b", "a%b", "a", "b", "int a", "a", "int b", "b", "static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}", "bit", "{return (n==0)?0:(1+bit(n&(n-1)));}", "return (n==0)?0:(1+bit(n&(n-1)));", "(n==0)?0:(1+bit(n&(n-1)))", "(n==0)", "n", "0", "0", "(1+bit(n&(n-1)))", "1", "bit(n&(n-1))", "bit", "n&(n-1)", "n", "(n-1)", "n", "1", "long n", "n", "static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}", "iarr", "{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}", "int[]ARR=new int[N];", "ARR", "new int[N]", "N", "for(int i=0;i<N;i++){ARR[i]=ni();}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{ARR[i]=ni();}", "{ARR[i]=ni();}", "ARR[i]=ni()", "ARR[i]", "ARR", "i", "ni()", "ni", "return ARR;", "ARR", "int N", "N", "static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}", "larr", "{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}", "long[]ARR=new long[N];", "ARR", "new long[N]", "N", "for(int i=0;i<N;i++){ARR[i]=nl();}", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{ARR[i]=nl();}", "{ARR[i]=nl();}", "ARR[i]=nl()", "ARR[i]", "ARR", "i", "nl()", "nl", "return ARR;", "ARR", "int N", "N", " static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}", "AnotherReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}", "AnotherReader", "{\n br=new BufferedReader(new InputStreamReader(System.in));}", "br=new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}", "AnotherReader", "{\n br = new BufferedReader(new FileReader(\"input.txt\"));}", "br = new BufferedReader(new FileReader(\"input.txt\"))", "br", "new BufferedReader(new FileReader(\"input.txt\"))", "int a", "a", "String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); }", "next", "{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); }", "while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}", "try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }", "catch (IOException e){ e.printStackTrace(); }", "IOException e", "{ e.printStackTrace(); }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());}", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() throws IOException{\n return Integer.parseInt(next());}", "nextInt", "{\n return Integer.parseInt(next());}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() throws IOException\n {return Long.parseLong(next());}", "nextLong", "{return Long.parseLong(next());}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble()throws IOException { return Double.parseDouble(next()); }", "nextDouble", "{ return Double.parseDouble(next()); }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}", "nextLine", "{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}", "String str = \"\";", "str", "\"\"", "try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();}", "catch (IOException e){\n e.printStackTrace();}", "IOException e", "{\n e.printStackTrace();}", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();}", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main\n{ \n public static void process()throws IOException\n {\n //int n=ni();\n String s=nn();\n long a=0l,d=0l;\n for(int i=0;i<3;i++)\n {\n if(s.charAt(i)=='R')\n a++;\n else\n {d=Math.max(a,d);a=0l;}\n }\n pn(Math.max(a,d));\n }\n \n \n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n //PrintWriter out=new PrintWriter(\"output\");\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n\n //int i=1;\n //int T=ni(); while(T-->0)\n process();\n //{\n //p(\"Case #\"+i+\": \");\n \n //i++;\n //}\n long s = System.currentTimeMillis();\n \n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }\n static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }\n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}\n static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}\n static boolean multipleTC=false;\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}", "public class Main\n{ \n public static void process()throws IOException\n {\n //int n=ni();\n String s=nn();\n long a=0l,d=0l;\n for(int i=0;i<3;i++)\n {\n if(s.charAt(i)=='R')\n a++;\n else\n {d=Math.max(a,d);a=0l;}\n }\n pn(Math.max(a,d));\n }\n \n \n static AnotherReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new AnotherReader();\n boolean oj = true;\n //PrintWriter out=new PrintWriter(\"output\");\n //oj = System.getProperty(\"ONLINE_JUDGE\") != null;\n //if(!oj) sc=new AnotherReader(100);\n\n //int i=1;\n //int T=ni(); while(T-->0)\n process();\n //{\n //p(\"Case #\"+i+\": \");\n \n //i++;\n //}\n long s = System.currentTimeMillis();\n \n out.flush();\n if(!oj)\n System.out.println(System.currentTimeMillis()-s+\"ms\");\n System.out.close(); \n }\n static void sort(long arr[],int n)\n {\n shuffle(arr,n);\n Arrays.sort(arr);\n }\n static void shuffle(long arr[],int n)\n {\n Random r=new Random();\n for(int i=0;i<n;i++)\n {\n long temp=arr[i];\n int pos=i+r.nextInt(n-i);\n arr[i]=arr[pos];\n arr[pos]=temp;\n }\n }\n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static void pni(Object o){out.println(o);System.out.flush();}\n static int ni()throws IOException{return sc.nextInt();}\n static long nl()throws IOException{return sc.nextLong();}\n static double nd()throws IOException{return sc.nextDouble();}\n static String nln()throws IOException{return sc.nextLine();}\n static String nn()throws IOException{return sc.next();}\n static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);}\n static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));}\n static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;}\n static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;}\n static boolean multipleTC=false;\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////\n static class AnotherReader{BufferedReader br; StringTokenizer st;\n AnotherReader()throws FileNotFoundException{\n br=new BufferedReader(new InputStreamReader(System.in));}\n AnotherReader(int a)throws FileNotFoundException{\n br = new BufferedReader(new FileReader(\"input.txt\"));}\n String next()throws IOException{\n while (st == null || !st.hasMoreElements()) {try{\n st = new StringTokenizer(br.readLine());}\n catch (IOException e){ e.printStackTrace(); }}\n return st.nextToken(); } int nextInt() throws IOException{\n return Integer.parseInt(next());}\n long nextLong() throws IOException\n {return Long.parseLong(next());}\n double nextDouble()throws IOException { return Double.parseDouble(next()); }\n String nextLine() throws IOException{ String str = \"\"; try{\n str = br.readLine();} catch (IOException e){\n e.printStackTrace();} return str;}}\n \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}", "Main" ]
import java.util.*; import java.io.*; import java.math.*; /* javac Main.java java Main <input.txt> output.txt */ public class Main { public static void process()throws IOException { //int n=ni(); String s=nn(); long a=0l,d=0l; for(int i=0;i<3;i++) { if(s.charAt(i)=='R') a++; else {d=Math.max(a,d);a=0l;} } pn(Math.max(a,d)); } static AnotherReader sc; static PrintWriter out; public static void main(String[]args)throws IOException { out = new PrintWriter(System.out); sc=new AnotherReader(); boolean oj = true; //PrintWriter out=new PrintWriter("output"); //oj = System.getProperty("ONLINE_JUDGE") != null; //if(!oj) sc=new AnotherReader(100); //int i=1; //int T=ni(); while(T-->0) process(); //{ //p("Case #"+i+": "); //i++; //} long s = System.currentTimeMillis(); out.flush(); if(!oj) System.out.println(System.currentTimeMillis()-s+"ms"); System.out.close(); } static void sort(long arr[],int n) { shuffle(arr,n); Arrays.sort(arr); } static void shuffle(long arr[],int n) { Random r=new Random(); for(int i=0;i<n;i++) { long temp=arr[i]; int pos=i+r.nextInt(n-i); arr[i]=arr[pos]; arr[pos]=temp; } } static void pn(Object o){out.println(o);} static void p(Object o){out.print(o);} static void pni(Object o){out.println(o);System.out.flush();} static int ni()throws IOException{return sc.nextInt();} static long nl()throws IOException{return sc.nextLong();} static double nd()throws IOException{return sc.nextDouble();} static String nln()throws IOException{return sc.nextLine();} static String nn()throws IOException{return sc.next();} static long gcd(long a, long b)throws IOException{return (b==0)?a:gcd(b,a%b);} static int gcd(int a, int b)throws IOException{return (b==0)?a:gcd(b,a%b);} static int bit(long n)throws IOException{return (n==0)?0:(1+bit(n&(n-1)));} static int[] iarr(int N)throws IOException{int[]ARR=new int[N];for(int i=0;i<N;i++){ARR[i]=ni();}return ARR;} static long[] larr(int N)throws IOException{long[]ARR=new long[N];for(int i=0;i<N;i++){ARR[i]=nl();}return ARR;} static boolean multipleTC=false; ///////////////////////////////////////////////////////////////////////////////////////////////////////// static class AnotherReader{BufferedReader br; StringTokenizer st; AnotherReader()throws FileNotFoundException{ br=new BufferedReader(new InputStreamReader(System.in));} AnotherReader(int a)throws FileNotFoundException{ br = new BufferedReader(new FileReader("input.txt"));} String next()throws IOException{ while (st == null || !st.hasMoreElements()) {try{ st = new StringTokenizer(br.readLine());} catch (IOException e){ e.printStackTrace(); }} return st.nextToken(); } int nextInt() throws IOException{ return Integer.parseInt(next());} long nextLong() throws IOException {return Long.parseLong(next());} double nextDouble()throws IOException { return Double.parseDouble(next()); } String nextLine() throws IOException{ String str = ""; try{ str = br.readLine();} catch (IOException e){ e.printStackTrace();} return str;}} ///////////////////////////////////////////////////////////////////////////////////////////////////////////// }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 28, 13, 4, 18, 13, 30, 30, 14, 2, 13, 17, 30, 40, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 56, 5 ], [ 56, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 23, 28 ], [ 29, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 30, 34 ], [ 34, 35 ], [ 35, 36 ], [ 30, 37 ], [ 37, 38 ], [ 37, 39 ], [ 29, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 42, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 6, 53 ], [ 53, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ] ]
[ "// \"static void main\" must be defined in a public class.\nimport java.util.* ;\npublic class Main {\n public static void main(String[] args) {\n Scanner S = new Scanner( System.in ) ;\n String s = S.nextLine() ;\n int result = 0 ; int count = 0 ;\n for( char ch : s.toCharArray() ) {\n if( ch=='R' ) {\n count++ ;\n }else count = 0 ;\n result = Math.max( result , count ) ;\n }\n System.out.println(result) ;\n }\n}", "import java.util.* ;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n Scanner S = new Scanner( System.in ) ;\n String s = S.nextLine() ;\n int result = 0 ; int count = 0 ;\n for( char ch : s.toCharArray() ) {\n if( ch=='R' ) {\n count++ ;\n }else count = 0 ;\n result = Math.max( result , count ) ;\n }\n System.out.println(result) ;\n }\n}", "Main", "public static void main(String[] args) {\n Scanner S = new Scanner( System.in ) ;\n String s = S.nextLine() ;\n int result = 0 ; int count = 0 ;\n for( char ch : s.toCharArray() ) {\n if( ch=='R' ) {\n count++ ;\n }else count = 0 ;\n result = Math.max( result , count ) ;\n }\n System.out.println(result) ;\n }", "main", "{\n Scanner S = new Scanner( System.in ) ;\n String s = S.nextLine() ;\n int result = 0 ; int count = 0 ;\n for( char ch : s.toCharArray() ) {\n if( ch=='R' ) {\n count++ ;\n }else count = 0 ;\n result = Math.max( result , count ) ;\n }\n System.out.println(result) ;\n }", "Scanner S = new Scanner( System.in ) ;", "S", "new Scanner( System.in )", "String s = S.nextLine() ;", "s", "S.nextLine()", "S.nextLine", "S", "int result = 0 ;", "result", "0", "int count = 0 ;", "count", "0", "for( char ch : s.toCharArray() ) {\n if( ch=='R' ) {\n count++ ;\n }else count = 0 ;\n result = Math.max( result , count ) ;\n }", "char ch", "s.toCharArray()", "s.toCharArray", "s", "{\n if( ch=='R' ) {\n count++ ;\n }else count = 0 ;\n result = Math.max( result , count ) ;\n }", "{\n if( ch=='R' ) {\n count++ ;\n }else count = 0 ;\n result = Math.max( result , count ) ;\n }", "if( ch=='R' ) {\n count++ ;\n }else count = 0 ;", "ch=='R'", "ch", "'R'", "{\n count++ ;\n }", "count++", "count", "count = 0", "count", "0", "result = Math.max( result , count )", "result", "Math.max( result , count )", "Math.max", "Math", "result", "count", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner S = new Scanner( System.in ) ;\n String s = S.nextLine() ;\n int result = 0 ; int count = 0 ;\n for( char ch : s.toCharArray() ) {\n if( ch=='R' ) {\n count++ ;\n }else count = 0 ;\n result = Math.max( result , count ) ;\n }\n System.out.println(result) ;\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner S = new Scanner( System.in ) ;\n String s = S.nextLine() ;\n int result = 0 ; int count = 0 ;\n for( char ch : s.toCharArray() ) {\n if( ch=='R' ) {\n count++ ;\n }else count = 0 ;\n result = Math.max( result , count ) ;\n }\n System.out.println(result) ;\n }\n}", "Main" ]
// "static void main" must be defined in a public class. import java.util.* ; public class Main { public static void main(String[] args) { Scanner S = new Scanner( System.in ) ; String s = S.nextLine() ; int result = 0 ; int count = 0 ; for( char ch : s.toCharArray() ) { if( ch=='R' ) { count++ ; }else count = 0 ; result = Math.max( result , count ) ; } System.out.println(result) ; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 35, 13, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 34, 17, 1, 4, 18, 18, 13, 13, 17, 3, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 21, 28 ], [ 17, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 31, 38 ], [ 17, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 41, 48 ], [ 17, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 51, 58 ], [ 17, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 61, 68 ], [ 17, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 71, 78 ], [ 17, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 81, 88 ], [ 17, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 92, 97 ], [ 91, 98 ], [ 6, 99 ], [ 99, 100 ] ]
[ "import java.util.Scanner;\nclass Main {\n static public void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n switch (S) {\n case \"SRR\": System.out.println(\"2\"); break;\n case \"RRS\": System.out.println(\"2\"); break;\n case \"RRR\": System.out.println(\"3\"); break;\n case \"RSR\": System.out.println(\"1\"); break;\n case \"SSS\": System.out.println(\"0\"); break;\n case \"SSR\": System.out.println(\"1\"); break;\n case \"SRS\": System.out.println(\"1\"); break;\n case \"RSS\": System.out.println(\"1\"); break;\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "class Main {\n static public void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n switch (S) {\n case \"SRR\": System.out.println(\"2\"); break;\n case \"RRS\": System.out.println(\"2\"); break;\n case \"RRR\": System.out.println(\"3\"); break;\n case \"RSR\": System.out.println(\"1\"); break;\n case \"SSS\": System.out.println(\"0\"); break;\n case \"SSR\": System.out.println(\"1\"); break;\n case \"SRS\": System.out.println(\"1\"); break;\n case \"RSS\": System.out.println(\"1\"); break;\n }\n }\n}", "Main", "static public void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n switch (S) {\n case \"SRR\": System.out.println(\"2\"); break;\n case \"RRS\": System.out.println(\"2\"); break;\n case \"RRR\": System.out.println(\"3\"); break;\n case \"RSR\": System.out.println(\"1\"); break;\n case \"SSS\": System.out.println(\"0\"); break;\n case \"SSR\": System.out.println(\"1\"); break;\n case \"SRS\": System.out.println(\"1\"); break;\n case \"RSS\": System.out.println(\"1\"); break;\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n switch (S) {\n case \"SRR\": System.out.println(\"2\"); break;\n case \"RRS\": System.out.println(\"2\"); break;\n case \"RRR\": System.out.println(\"3\"); break;\n case \"RSR\": System.out.println(\"1\"); break;\n case \"SSS\": System.out.println(\"0\"); break;\n case \"SSR\": System.out.println(\"1\"); break;\n case \"SRS\": System.out.println(\"1\"); break;\n case \"RSS\": System.out.println(\"1\"); break;\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "switch (S) {\n case \"SRR\": System.out.println(\"2\"); break;\n case \"RRS\": System.out.println(\"2\"); break;\n case \"RRR\": System.out.println(\"3\"); break;\n case \"RSR\": System.out.println(\"1\"); break;\n case \"SSS\": System.out.println(\"0\"); break;\n case \"SSR\": System.out.println(\"1\"); break;\n case \"SRS\": System.out.println(\"1\"); break;\n case \"RSS\": System.out.println(\"1\"); break;\n }", "S", "case \"SRR\":", "\"SRR\"", "case \"SRR\":", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "break;", "case \"RRS\":", "\"RRS\"", "case \"RRS\":", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "break;", "case \"RRR\":", "\"RRR\"", "case \"RRR\":", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "break;", "case \"RSR\":", "\"RSR\"", "case \"RSR\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "case \"SSS\":", "\"SSS\"", "case \"SSS\":", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "break;", "case \"SSR\":", "\"SSR\"", "case \"SSR\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "case \"SRS\":", "\"SRS\"", "case \"SRS\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "case \"RSS\":", "\"RSS\"", "case \"RSS\":", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "break;", "String[] args", "args" ]
import java.util.Scanner; class Main { static public void main(String[] args) { Scanner sc = new Scanner(System.in); String S = sc.next(); switch (S) { case "SRR": System.out.println("2"); break; case "RRS": System.out.println("2"); break; case "RRR": System.out.println("3"); break; case "RSR": System.out.println("1"); break; case "SSS": System.out.println("0"); break; case "SSR": System.out.println("1"); break; case "SRS": System.out.println("1"); break; case "RSS": System.out.println("1"); break; } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 2, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 116, 11 ], [ 116, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 27, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 27, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 27, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 25, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 25, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 52, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 51, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 63, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 50, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 75, 80 ], [ 50, 81 ], [ 81, 82 ], [ 83, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 83, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 83, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 81, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 81, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 12, 113 ], [ 113, 114 ], [ 0, 115 ], [ 115, 116 ], [ 115, 117 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String args[]) throws IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tchar charArray[] = br.readLine().toCharArray();\n\tif (charArray[0] == 'R' && charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(3);\n\t} else if (charArray[0] == 'R' && charArray[1] == 'R' || charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(2);\n\t} else if (charArray[0] == 'R' || charArray[1] == 'R' || charArray[2] == 'R') {\n\t System.out.println(1);\n\t} else {\n\t System.out.println(0);\n\t}\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n public static void main(String args[]) throws IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tchar charArray[] = br.readLine().toCharArray();\n\tif (charArray[0] == 'R' && charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(3);\n\t} else if (charArray[0] == 'R' && charArray[1] == 'R' || charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(2);\n\t} else if (charArray[0] == 'R' || charArray[1] == 'R' || charArray[2] == 'R') {\n\t System.out.println(1);\n\t} else {\n\t System.out.println(0);\n\t}\n }\n}", "Main", "public static void main(String args[]) throws IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tchar charArray[] = br.readLine().toCharArray();\n\tif (charArray[0] == 'R' && charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(3);\n\t} else if (charArray[0] == 'R' && charArray[1] == 'R' || charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(2);\n\t} else if (charArray[0] == 'R' || charArray[1] == 'R' || charArray[2] == 'R') {\n\t System.out.println(1);\n\t} else {\n\t System.out.println(0);\n\t}\n }", "main", "{\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tchar charArray[] = br.readLine().toCharArray();\n\tif (charArray[0] == 'R' && charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(3);\n\t} else if (charArray[0] == 'R' && charArray[1] == 'R' || charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(2);\n\t} else if (charArray[0] == 'R' || charArray[1] == 'R' || charArray[2] == 'R') {\n\t System.out.println(1);\n\t} else {\n\t System.out.println(0);\n\t}\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "char charArray[] = br.readLine().toCharArray();", "charArray", "br.readLine().toCharArray()", "br.readLine().toCharArray", "br.readLine()", "br.readLine", "br", "if (charArray[0] == 'R' && charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(3);\n\t} else if (charArray[0] == 'R' && charArray[1] == 'R' || charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(2);\n\t} else if (charArray[0] == 'R' || charArray[1] == 'R' || charArray[2] == 'R') {\n\t System.out.println(1);\n\t} else {\n\t System.out.println(0);\n\t}", "charArray[0] == 'R' && charArray[1] == 'R' && charArray[2] == 'R'", "charArray[0] == 'R' && charArray[1] == 'R' && charArray[2] == 'R'", "charArray[0] == 'R'", "charArray[0]", "charArray", "0", "'R'", "charArray[1] == 'R'", "charArray[1]", "charArray", "1", "'R'", "charArray[2] == 'R'", "charArray[2]", "charArray", "2", "'R'", "{\n\t System.out.println(3);\n\t}", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if (charArray[0] == 'R' && charArray[1] == 'R' || charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(2);\n\t} else if (charArray[0] == 'R' || charArray[1] == 'R' || charArray[2] == 'R') {\n\t System.out.println(1);\n\t} else {\n\t System.out.println(0);\n\t}", "charArray[0] == 'R' && charArray[1] == 'R' || charArray[1] == 'R' && charArray[2] == 'R'", "charArray[0] == 'R' && charArray[1] == 'R'", "charArray[0] == 'R'", "charArray[0]", "charArray", "0", "'R'", "charArray[1] == 'R'", "charArray[1]", "charArray", "1", "'R'", "charArray[1] == 'R' && charArray[2] == 'R'", "charArray[1] == 'R'", "charArray[1]", "charArray", "1", "'R'", "charArray[2] == 'R'", "charArray[2]", "charArray", "2", "'R'", "{\n\t System.out.println(2);\n\t}", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if (charArray[0] == 'R' || charArray[1] == 'R' || charArray[2] == 'R') {\n\t System.out.println(1);\n\t} else {\n\t System.out.println(0);\n\t}", "charArray[0] == 'R' || charArray[1] == 'R' || charArray[2] == 'R'", "charArray[0] == 'R' || charArray[1] == 'R' || charArray[2] == 'R'", "charArray[0] == 'R'", "charArray[0]", "charArray", "0", "'R'", "charArray[1] == 'R'", "charArray[1]", "charArray", "1", "'R'", "charArray[2] == 'R'", "charArray[2]", "charArray", "2", "'R'", "{\n\t System.out.println(1);\n\t}", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "{\n\t System.out.println(0);\n\t}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String args[]", "args", "public class Main {\n public static void main(String args[]) throws IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tchar charArray[] = br.readLine().toCharArray();\n\tif (charArray[0] == 'R' && charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(3);\n\t} else if (charArray[0] == 'R' && charArray[1] == 'R' || charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(2);\n\t} else if (charArray[0] == 'R' || charArray[1] == 'R' || charArray[2] == 'R') {\n\t System.out.println(1);\n\t} else {\n\t System.out.println(0);\n\t}\n }\n}", "public class Main {\n public static void main(String args[]) throws IOException {\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tchar charArray[] = br.readLine().toCharArray();\n\tif (charArray[0] == 'R' && charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(3);\n\t} else if (charArray[0] == 'R' && charArray[1] == 'R' || charArray[1] == 'R' && charArray[2] == 'R') {\n\t System.out.println(2);\n\t} else if (charArray[0] == 'R' || charArray[1] == 'R' || charArray[2] == 'R') {\n\t System.out.println(1);\n\t} else {\n\t System.out.println(0);\n\t}\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String args[]) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); char charArray[] = br.readLine().toCharArray(); if (charArray[0] == 'R' && charArray[1] == 'R' && charArray[2] == 'R') { System.out.println(3); } else if (charArray[0] == 'R' && charArray[1] == 'R' || charArray[1] == 'R' && charArray[2] == 'R') { System.out.println(2); } else if (charArray[0] == 'R' || charArray[1] == 'R' || charArray[2] == 'R') { System.out.println(1); } else { System.out.println(0); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 41, 13, 17, 42, 2, 2, 13, 2, 4, 18, 13, 17, 2, 4, 18, 13, 13, 17, 30, 40, 13, 40, 13, 4, 18, 13, 13, 0, 13, 2, 13, 17, 30, 9, 41, 13, 18, 13, 13, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 13, 13, 14, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 20, 30 ], [ 30, 31 ], [ 31, 32 ], [ 20, 33 ], [ 34, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 35, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 50, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 55, 60 ], [ 46, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 42, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 42, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 72, 74 ], [ 35, 75 ], [ 75, 76 ], [ 8, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 79, 81 ], [ 8, 82 ], [ 82, 83 ], [ 82, 84 ], [ 82, 85 ], [ 86, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 89, 92 ], [ 89, 93 ], [ 8, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 94, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 6, 111 ], [ 111, 112 ] ]
[ "import java.util.*;\nclass Main {\n public static void main(String [] args){\n\n Scanner sc = new Scanner(System.in);\n\n String s= sc.next();\n ArrayList<Integer> res = new ArrayList<>();\n for(int i=0;i<s.length();i++){\n\n if(s.charAt(i)=='R'){\n int c=0;\n while( i <= s.length()-1 && s.charAt(i)!='S' ){\n i++;\n c++;\n }\n res.add(c);\n i=i-1;\n }\n else{\n continue;\n }\n }\n\n int max= Integer.MIN_VALUE;\n for(int i: res){\n max=Math.max(max,i);\n }\n if(max<0){\n System.out.println(\"0\");\n }\n else\n System.out.println(max);\n }\n }", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String [] args){\n\n Scanner sc = new Scanner(System.in);\n\n String s= sc.next();\n ArrayList<Integer> res = new ArrayList<>();\n for(int i=0;i<s.length();i++){\n\n if(s.charAt(i)=='R'){\n int c=0;\n while( i <= s.length()-1 && s.charAt(i)!='S' ){\n i++;\n c++;\n }\n res.add(c);\n i=i-1;\n }\n else{\n continue;\n }\n }\n\n int max= Integer.MIN_VALUE;\n for(int i: res){\n max=Math.max(max,i);\n }\n if(max<0){\n System.out.println(\"0\");\n }\n else\n System.out.println(max);\n }\n }", "Main", "public static void main(String [] args){\n\n Scanner sc = new Scanner(System.in);\n\n String s= sc.next();\n ArrayList<Integer> res = new ArrayList<>();\n for(int i=0;i<s.length();i++){\n\n if(s.charAt(i)=='R'){\n int c=0;\n while( i <= s.length()-1 && s.charAt(i)!='S' ){\n i++;\n c++;\n }\n res.add(c);\n i=i-1;\n }\n else{\n continue;\n }\n }\n\n int max= Integer.MIN_VALUE;\n for(int i: res){\n max=Math.max(max,i);\n }\n if(max<0){\n System.out.println(\"0\");\n }\n else\n System.out.println(max);\n }", "main", "{\n\n Scanner sc = new Scanner(System.in);\n\n String s= sc.next();\n ArrayList<Integer> res = new ArrayList<>();\n for(int i=0;i<s.length();i++){\n\n if(s.charAt(i)=='R'){\n int c=0;\n while( i <= s.length()-1 && s.charAt(i)!='S' ){\n i++;\n c++;\n }\n res.add(c);\n i=i-1;\n }\n else{\n continue;\n }\n }\n\n int max= Integer.MIN_VALUE;\n for(int i: res){\n max=Math.max(max,i);\n }\n if(max<0){\n System.out.println(\"0\");\n }\n else\n System.out.println(max);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s= sc.next();", "s", "sc.next()", "sc.next", "sc", "ArrayList<Integer> res = new ArrayList<>();", "res", "new ArrayList<>()", "for(int i=0;i<s.length();i++){\n\n if(s.charAt(i)=='R'){\n int c=0;\n while( i <= s.length()-1 && s.charAt(i)!='S' ){\n i++;\n c++;\n }\n res.add(c);\n i=i-1;\n }\n else{\n continue;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\n if(s.charAt(i)=='R'){\n int c=0;\n while( i <= s.length()-1 && s.charAt(i)!='S' ){\n i++;\n c++;\n }\n res.add(c);\n i=i-1;\n }\n else{\n continue;\n }\n }", "{\n\n if(s.charAt(i)=='R'){\n int c=0;\n while( i <= s.length()-1 && s.charAt(i)!='S' ){\n i++;\n c++;\n }\n res.add(c);\n i=i-1;\n }\n else{\n continue;\n }\n }", "if(s.charAt(i)=='R'){\n int c=0;\n while( i <= s.length()-1 && s.charAt(i)!='S' ){\n i++;\n c++;\n }\n res.add(c);\n i=i-1;\n }\n else{\n continue;\n }", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n int c=0;\n while( i <= s.length()-1 && s.charAt(i)!='S' ){\n i++;\n c++;\n }\n res.add(c);\n i=i-1;\n }", "int c=0;", "c", "0", "while( i <= s.length()-1 && s.charAt(i)!='S' ){\n i++;\n c++;\n }", "i <= s.length()-1 && s.charAt(i)!='S'", "i <= s.length()-1", "i", "s.length()-1", "s.length()", "s.length", "s", "1", "s.charAt(i)!='S'", "s.charAt(i)", "s.charAt", "s", "i", "'S'", "{\n i++;\n c++;\n }", "i++", "i", "c++", "c", "res.add(c)", "res.add", "res", "c", "i=i-1", "i", "i-1", "i", "1", "{\n continue;\n }", "continue;", "int max= Integer.MIN_VALUE;", "max", "Integer.MIN_VALUE", "Integer", "Integer.MIN_VALUE", "for(int i: res){\n max=Math.max(max,i);\n }", "int i", "res", "{\n max=Math.max(max,i);\n }", "{\n max=Math.max(max,i);\n }", "max=Math.max(max,i)", "max", "Math.max(max,i)", "Math.max", "Math", "max", "i", "if(max<0){\n System.out.println(\"0\");\n }\n else\n System.out.println(max);", "max<0", "max", "0", "{\n System.out.println(\"0\");\n }", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String [] args", "args" ]
import java.util.*; class Main { public static void main(String [] args){ Scanner sc = new Scanner(System.in); String s= sc.next(); ArrayList<Integer> res = new ArrayList<>(); for(int i=0;i<s.length();i++){ if(s.charAt(i)=='R'){ int c=0; while( i <= s.length()-1 && s.charAt(i)!='S' ){ i++; c++; } res.add(c); i=i-1; } else{ continue; } } int max= Integer.MIN_VALUE; for(int i: res){ max=Math.max(max,i); } if(max<0){ System.out.println("0"); } else System.out.println(max); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 13, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 4, 13, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 4, 13, 13, 4, 18, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 4, 18, 13, 4, 18, 13, 13, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 17, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 29, 4, 18, 13, 29, 17, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 30, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 29, 17, 0, 13, 20, 29, 17, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 13, 4, 13, 29, 13, 23, 13, 23, 13, 12, 13, 30, 29, 20, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 31, 32 ], [ 31, 33 ], [ 0, 34 ], [ 34, 35 ], [ 34, 36 ], [ 0, 37 ], [ 551, 38 ], [ 551, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 41, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 49, 51 ], [ 41, 52 ], [ 52, 53 ], [ 52, 54 ], [ 41, 55 ], [ 55, 56 ], [ 55, 57 ], [ 41, 58 ], [ 58, 59 ], [ 58, 60 ], [ 41, 61 ], [ 61, 62 ], [ 61, 63 ], [ 41, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 76, 80 ], [ 76, 81 ], [ 41, 82 ], [ 82, 83 ], [ 83, 84 ], [ 39, 85 ], [ 85, 86 ], [ 551, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 89, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 87, 97 ], [ 97, 98 ], [ 551, 99 ], [ 99, 100 ], [ 99, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 101, 105 ], [ 105, 106 ], [ 106, 107 ], [ 105, 108 ], [ 99, 109 ], [ 109, 110 ], [ 551, 111 ], [ 111, 112 ], [ 111, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 122, 123 ], [ 122, 124 ], [ 124, 125 ], [ 124, 126 ], [ 117, 127 ], [ 127, 128 ], [ 128, 129 ], [ 117, 130 ], [ 131, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 137, 138 ], [ 137, 139 ], [ 131, 140 ], [ 140, 141 ], [ 140, 142 ], [ 142, 143 ], [ 142, 144 ], [ 131, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 149, 151 ], [ 131, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 152, 156 ], [ 111, 157 ], [ 157, 158 ], [ 551, 159 ], [ 159, 160 ], [ 159, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 165, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 172, 174 ], [ 165, 175 ], [ 175, 176 ], [ 176, 177 ], [ 165, 178 ], [ 179, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 182, 183 ], [ 183, 184 ], [ 182, 185 ], [ 185, 186 ], [ 185, 187 ], [ 179, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 190, 192 ], [ 179, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 193, 197 ], [ 197, 198 ], [ 197, 199 ], [ 179, 200 ], [ 200, 201 ], [ 201, 202 ], [ 201, 203 ], [ 200, 204 ], [ 159, 205 ], [ 205, 206 ], [ 551, 207 ], [ 207, 208 ], [ 207, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 212, 213 ], [ 212, 214 ], [ 214, 215 ], [ 215, 216 ], [ 211, 217 ], [ 217, 218 ], [ 217, 219 ], [ 219, 220 ], [ 220, 221 ], [ 211, 222 ], [ 222, 223 ], [ 222, 224 ], [ 211, 225 ], [ 225, 226 ], [ 225, 227 ], [ 211, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 228, 233 ], [ 233, 234 ], [ 233, 235 ], [ 228, 236 ], [ 236, 237 ], [ 237, 238 ], [ 228, 239 ], [ 240, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 243, 244 ], [ 243, 245 ], [ 242, 246 ], [ 241, 247 ], [ 247, 248 ], [ 248, 249 ], [ 241, 250 ], [ 250, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 254, 255 ], [ 253, 256 ], [ 253, 257 ], [ 250, 258 ], [ 258, 259 ], [ 258, 260 ], [ 211, 261 ], [ 261, 262 ], [ 262, 263 ], [ 261, 264 ], [ 264, 265 ], [ 265, 266 ], [ 264, 267 ], [ 264, 268 ], [ 209, 269 ], [ 269, 270 ], [ 209, 271 ], [ 271, 272 ], [ 209, 273 ], [ 273, 274 ], [ 551, 275 ], [ 275, 276 ], [ 275, 277 ], [ 277, 278 ], [ 275, 279 ], [ 279, 280 ], [ 275, 281 ], [ 281, 282 ], [ 281, 283 ], [ 283, 284 ], [ 284, 285 ], [ 284, 286 ], [ 283, 287 ], [ 287, 288 ], [ 287, 289 ], [ 281, 290 ], [ 290, 291 ], [ 275, 292 ], [ 292, 293 ], [ 292, 294 ], [ 294, 295 ], [ 295, 296 ], [ 296, 297 ], [ 297, 298 ], [ 297, 299 ], [ 296, 300 ], [ 300, 301 ], [ 301, 302 ], [ 302, 303 ], [ 295, 304 ], [ 304, 305 ], [ 305, 306 ], [ 306, 307 ], [ 306, 308 ], [ 308, 309 ], [ 309, 310 ], [ 305, 311 ], [ 311, 312 ], [ 312, 313 ], [ 312, 314 ], [ 294, 315 ], [ 315, 316 ], [ 316, 317 ], [ 317, 318 ], [ 275, 319 ], [ 319, 320 ], [ 319, 321 ], [ 321, 322 ], [ 322, 323 ], [ 323, 324 ], [ 324, 325 ], [ 323, 326 ], [ 326, 327 ], [ 275, 328 ], [ 328, 329 ], [ 328, 330 ], [ 330, 331 ], [ 331, 332 ], [ 332, 333 ], [ 333, 334 ], [ 332, 335 ], [ 335, 336 ], [ 275, 337 ], [ 337, 338 ], [ 337, 339 ], [ 339, 340 ], [ 340, 341 ], [ 341, 342 ], [ 342, 343 ], [ 341, 344 ], [ 344, 345 ], [ 275, 346 ], [ 346, 347 ], [ 346, 348 ], [ 348, 349 ], [ 349, 350 ], [ 350, 351 ], [ 350, 352 ], [ 352, 353 ], [ 353, 354 ], [ 354, 355 ], [ 349, 356 ], [ 356, 357 ], [ 357, 358 ], [ 358, 359 ], [ 359, 360 ], [ 348, 361 ], [ 361, 362 ], [ 275, 363 ], [ 363, 364 ], [ 363, 365 ], [ 365, 366 ], [ 366, 367 ], [ 366, 368 ], [ 365, 369 ], [ 369, 370 ], [ 370, 371 ], [ 370, 372 ], [ 369, 373 ], [ 373, 374 ], [ 374, 375 ], [ 374, 376 ], [ 376, 377 ], [ 377, 378 ], [ 365, 379 ], [ 379, 380 ], [ 380, 381 ], [ 380, 382 ], [ 379, 383 ], [ 383, 384 ], [ 384, 385 ], [ 365, 386 ], [ 386, 387 ], [ 386, 388 ], [ 365, 389 ], [ 389, 390 ], [ 275, 391 ], [ 391, 392 ], [ 391, 393 ], [ 393, 394 ], [ 394, 395 ], [ 394, 396 ], [ 393, 398 ], [ 398, 399 ], [ 399, 400 ], [ 400, 401 ], [ 400, 402 ], [ 398, 403 ], [ 403, 404 ], [ 403, 405 ], [ 398, 406 ], [ 406, 407 ], [ 407, 408 ], [ 398, 409 ], [ 409, 410 ], [ 410, 411 ], [ 411, 412 ], [ 411, 413 ], [ 410, 414 ], [ 414, 415 ], [ 393, 416 ], [ 416, 417 ], [ 391, 418 ], [ 418, 419 ], [ 275, 420 ], [ 420, 421 ], [ 420, 422 ], [ 422, 423 ], [ 423, 424 ], [ 423, 425 ], [ 422, 427 ], [ 427, 428 ], [ 428, 429 ], [ 429, 430 ], [ 429, 431 ], [ 427, 432 ], [ 432, 433 ], [ 432, 434 ], [ 427, 435 ], [ 435, 436 ], [ 436, 437 ], [ 427, 438 ], [ 438, 439 ], [ 439, 440 ], [ 440, 441 ], [ 440, 442 ], [ 439, 443 ], [ 443, 444 ], [ 422, 445 ], [ 445, 446 ], [ 420, 447 ], [ 447, 448 ], [ 275, 449 ], [ 449, 450 ], [ 449, 451 ], [ 451, 452 ], [ 452, 453 ], [ 452, 454 ], [ 451, 457 ], [ 457, 458 ], [ 458, 459 ], [ 459, 460 ], [ 459, 461 ], [ 457, 462 ], [ 462, 463 ], [ 462, 464 ], [ 457, 465 ], [ 465, 466 ], [ 466, 467 ], [ 457, 468 ], [ 469, 469 ], [ 469, 470 ], [ 470, 471 ], [ 471, 472 ], [ 472, 473 ], [ 472, 474 ], [ 470, 475 ], [ 475, 476 ], [ 475, 477 ], [ 470, 478 ], [ 478, 479 ], [ 479, 480 ], [ 470, 481 ], [ 482, 482 ], [ 482, 483 ], [ 483, 484 ], [ 484, 485 ], [ 485, 486 ], [ 485, 487 ], [ 484, 488 ], [ 483, 489 ], [ 489, 490 ], [ 451, 491 ], [ 491, 492 ], [ 449, 493 ], [ 493, 494 ], [ 449, 495 ], [ 495, 496 ], [ 275, 497 ], [ 497, 498 ], [ 497, 499 ], [ 499, 500 ], [ 500, 501 ], [ 500, 502 ], [ 499, 505 ], [ 505, 506 ], [ 506, 507 ], [ 507, 508 ], [ 507, 509 ], [ 505, 510 ], [ 510, 511 ], [ 510, 512 ], [ 505, 513 ], [ 513, 514 ], [ 514, 515 ], [ 505, 516 ], [ 517, 517 ], [ 517, 518 ], [ 518, 519 ], [ 519, 520 ], [ 520, 521 ], [ 520, 522 ], [ 518, 523 ], [ 523, 524 ], [ 523, 525 ], [ 518, 526 ], [ 526, 527 ], [ 527, 528 ], [ 518, 529 ], [ 530, 530 ], [ 530, 531 ], [ 531, 532 ], [ 532, 533 ], [ 533, 534 ], [ 533, 535 ], [ 532, 536 ], [ 531, 537 ], [ 537, 538 ], [ 499, 539 ], [ 539, 540 ], [ 497, 541 ], [ 541, 542 ], [ 497, 543 ], [ 543, 544 ], [ 275, 545 ], [ 545, 546 ], [ 545, 547 ], [ 547, 548 ], [ 548, 549 ], [ 0, 550 ], [ 550, 551 ], [ 550, 552 ] ]
[ "import java.io.*;\nimport java.lang.*;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.OutputStream;\nimport java.io.PrintWriter;\nimport java.io.IOException;\nimport java.util.Arrays;\nimport java.util.Random;\nimport java.util.StringTokenizer;\nimport java.math.BigInteger;\n\npublic class Main {\n //code written by a living bruh moment\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n int t = 1;\n for (int tt = 1; tt <= t; tt++) solver.solve(tt, in, out);\n out.close();\n }\n\n static class Task {\n\n public void solve(int tt, InputReader in, PrintWriter out) {\n String s = in.next();\n char[] c = s.toCharArray();\n int len = 0;\n int max = 0;\n for(int i = 0; i<3; i++){\n if(c[i]=='R'){\n ++len;\n }\n else{\n max = Math.max(max,len);\n len = 0;\n }\n }\n out.println(Math.max(max,len));\n }\n }\n\n static void sort(int[] x) {\n shuffle(x);\n Arrays.sort(x);\n }\n\n static void sort(long[] x) {\n shuffle(x);\n Arrays.sort(x);\n }\n\n static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static void shuffle(long[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public int[] nextInta(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n public long[] nextLonga(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++) a[i] = nextLong();\n return a;\n }\n\n public int[][] nextIntm(int n, int m) {\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextInt();\n }\n }\n return a;\n }\n\n public long[][] nextLongm(int n, int m) {\n long[][] a = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextLong();\n }\n }\n return a;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Random;", "Random", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "import java.math.BigInteger;", "BigInteger", "java.math", "public class Main {\n //code written by a living bruh moment\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n int t = 1;\n for (int tt = 1; tt <= t; tt++) solver.solve(tt, in, out);\n out.close();\n }\n\n static class Task {\n\n public void solve(int tt, InputReader in, PrintWriter out) {\n String s = in.next();\n char[] c = s.toCharArray();\n int len = 0;\n int max = 0;\n for(int i = 0; i<3; i++){\n if(c[i]=='R'){\n ++len;\n }\n else{\n max = Math.max(max,len);\n len = 0;\n }\n }\n out.println(Math.max(max,len));\n }\n }\n\n static void sort(int[] x) {\n shuffle(x);\n Arrays.sort(x);\n }\n\n static void sort(long[] x) {\n shuffle(x);\n Arrays.sort(x);\n }\n\n static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static void shuffle(long[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public int[] nextInta(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n public long[] nextLonga(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++) a[i] = nextLong();\n return a;\n }\n\n public int[][] nextIntm(int n, int m) {\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextInt();\n }\n }\n return a;\n }\n\n public long[][] nextLongm(int n, int m) {\n long[][] a = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextLong();\n }\n }\n return a;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }\n}", "Main", "//code written by a living bruh moment\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n int t = 1;\n for (int tt = 1; tt <= t; tt++) solver.solve(tt, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n int t = 1;\n for (int tt = 1; tt <= t; tt++) solver.solve(tt, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "InputReader in = new InputReader(inputStream);", "in", "new InputReader(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "Task solver = new Task();", "solver", "new Task()", "int t = 1;", "t", "1", "for (int tt = 1; tt <= t; tt++) solver.solve(tt, in, out);", "int tt = 1;", "int tt = 1;", "tt", "1", "tt <= t", "tt", "t", "tt++", "tt++", "tt", "solver.solve(tt, in, out);", "solver.solve(tt, in, out)", "solver.solve", "solver", "tt", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static void sort(int[] x) {\n shuffle(x);\n Arrays.sort(x);\n }", "sort", "{\n shuffle(x);\n Arrays.sort(x);\n }", "shuffle(x)", "shuffle", "x", "Arrays.sort(x)", "Arrays.sort", "Arrays", "x", "int[] x", "x", "static void sort(long[] x) {\n shuffle(x);\n Arrays.sort(x);\n }", "sort", "{\n shuffle(x);\n Arrays.sort(x);\n }", "shuffle(x)", "shuffle", "x", "Arrays.sort(x)", "Arrays.sort", "Arrays", "x", "long[] x", "x", "static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "shuffle", "{\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "Random get = new Random();", "get", "new Random()", "for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }", "{\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }", "int r = get.nextInt(a.length);", "r", "get.nextInt(a.length)", "get.nextInt", "get", "a.length", "a", "a.length", "int temp = a[i];", "temp", "a[i]", "a", "i", "a[i] = a[r]", "a[i]", "a", "i", "a[r]", "a", "r", "a[r] = temp", "a[r]", "a", "r", "temp", "int[] a", "a", "static void shuffle(long[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "shuffle", "{\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "Random get = new Random();", "get", "new Random()", "for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }", "{\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }", "int r = get.nextInt(a.length);", "r", "get.nextInt(a.length)", "get.nextInt", "get", "a.length", "a", "a.length", "long temp = a[i];", "temp", "a[i]", "a", "i", "a[i] = a[r]", "a[i]", "a", "i", "a[r]", "a", "r", "a[r] = temp", "a[r]", "a", "r", "temp", "long[] a", "a", "static class Task {\n\n public void solve(int tt, InputReader in, PrintWriter out) {\n String s = in.next();\n char[] c = s.toCharArray();\n int len = 0;\n int max = 0;\n for(int i = 0; i<3; i++){\n if(c[i]=='R'){\n ++len;\n }\n else{\n max = Math.max(max,len);\n len = 0;\n }\n }\n out.println(Math.max(max,len));\n }\n }", "Task", "public void solve(int tt, InputReader in, PrintWriter out) {\n String s = in.next();\n char[] c = s.toCharArray();\n int len = 0;\n int max = 0;\n for(int i = 0; i<3; i++){\n if(c[i]=='R'){\n ++len;\n }\n else{\n max = Math.max(max,len);\n len = 0;\n }\n }\n out.println(Math.max(max,len));\n }", "solve", "{\n String s = in.next();\n char[] c = s.toCharArray();\n int len = 0;\n int max = 0;\n for(int i = 0; i<3; i++){\n if(c[i]=='R'){\n ++len;\n }\n else{\n max = Math.max(max,len);\n len = 0;\n }\n }\n out.println(Math.max(max,len));\n }", "String s = in.next();", "s", "in.next()", "in.next", "in", "char[] c = s.toCharArray();", "c", "s.toCharArray()", "s.toCharArray", "s", "int len = 0;", "len", "0", "int max = 0;", "max", "0", "for(int i = 0; i<3; i++){\n if(c[i]=='R'){\n ++len;\n }\n else{\n max = Math.max(max,len);\n len = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if(c[i]=='R'){\n ++len;\n }\n else{\n max = Math.max(max,len);\n len = 0;\n }\n }", "{\n if(c[i]=='R'){\n ++len;\n }\n else{\n max = Math.max(max,len);\n len = 0;\n }\n }", "if(c[i]=='R'){\n ++len;\n }\n else{\n max = Math.max(max,len);\n len = 0;\n }", "c[i]=='R'", "c[i]", "c", "i", "'R'", "{\n ++len;\n }", "++len", "len", "{\n max = Math.max(max,len);\n len = 0;\n }", "max = Math.max(max,len)", "max", "Math.max(max,len)", "Math.max", "Math", "max", "len", "len = 0", "len", "0", "out.println(Math.max(max,len))", "out.println", "out", "Math.max(max,len)", "Math.max", "Math", "max", "len", "int tt", "tt", "InputReader in", "in", "PrintWriter out", "out", "static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public int[] nextInta(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n public long[] nextLonga(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++) a[i] = nextLong();\n return a;\n }\n\n public int[][] nextIntm(int n, int m) {\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextInt();\n }\n }\n return a;\n }\n\n public long[][] nextLongm(int n, int m) {\n long[][] a = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextLong();\n }\n }\n return a;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }", "InputReader", "public BufferedReader reader;", "reader", "public StringTokenizer tokenizer;", "tokenizer", "public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }", "InputReader", "{\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }", "reader = new BufferedReader(new InputStreamReader(stream), 32768)", "reader", "new BufferedReader(new InputStreamReader(stream), 32768)", "tokenizer = null", "tokenizer", "null", "InputStream stream", "stream", "public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "next", "{\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }", "while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }", "try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }", "catch (IOException e) {\n throw new RuntimeException(e);\n }", "IOException e", "{\n throw new RuntimeException(e);\n }", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n tokenizer = new StringTokenizer(reader.readLine());\n }", "tokenizer = new StringTokenizer(reader.readLine())", "tokenizer", "new StringTokenizer(reader.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "public int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "nextLine", "{\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }", "try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }", "catch (Exception e) {\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n return reader.readLine();\n }", "return reader.readLine();", "reader.readLine()", "reader.readLine", "reader", "return null;", "null", "public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }", "hasNext", "{\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }", "String next = null;", "next", "null", "try {\n next = reader.readLine();\n } catch (Exception e) {\n }", "catch (Exception e) {\n }", "Exception e", "{\n }", "{\n next = reader.readLine();\n }", "next = reader.readLine()", "next", "reader.readLine()", "reader.readLine", "reader", "if (next == null) {\n return false;\n }", "next == null", "next", "null", "{\n return false;\n }", "return false;", "false", "tokenizer = new StringTokenizer(next)", "tokenizer", "new StringTokenizer(next)", "return true;", "true", "public int[] nextInta(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }", "nextInta", "{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++) a[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextInt();", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "public long[] nextLonga(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++) a[i] = nextLong();\n return a;\n }", "nextLonga", "{\n long[] a = new long[n];\n for (int i = 0; i < n; i++) a[i] = nextLong();\n return a;\n }", "long[] a = new long[n];", "a", "new long[n]", "n", "for (int i = 0; i < n; i++) a[i] = nextLong();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextLong();", "a[i] = nextLong()", "a[i]", "a", "i", "nextLong()", "nextLong", "return a;", "a", "int n", "n", "public int[][] nextIntm(int n, int m) {\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextInt();\n }\n }\n return a;\n }", "nextIntm", "{\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextInt();\n }\n }\n return a;\n }", "int[][] a = new int[n][m];", "a", "new int[n][m]", "n", "m", "for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextInt();\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n for (int j = 0; j < m; j++) {\n a[i][j] = nextInt();\n }\n }", "{\n for (int j = 0; j < m; j++) {\n a[i][j] = nextInt();\n }\n }", "for (int j = 0; j < m; j++) {\n a[i][j] = nextInt();\n }", "int j = 0;", "int j = 0;", "j", "0", "j < m", "j", "m", "j++", "j++", "j", "{\n a[i][j] = nextInt();\n }", "{\n a[i][j] = nextInt();\n }", "a[i][j] = nextInt()", "a[i][j]", "a[i]", "a", "i", "j", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "int m", "m", "public long[][] nextLongm(int n, int m) {\n long[][] a = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextLong();\n }\n }\n return a;\n }", "nextLongm", "{\n long[][] a = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextLong();\n }\n }\n return a;\n }", "long[][] a = new long[n][m];", "a", "new long[n][m]", "n", "m", "for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextLong();\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n for (int j = 0; j < m; j++) {\n a[i][j] = nextLong();\n }\n }", "{\n for (int j = 0; j < m; j++) {\n a[i][j] = nextLong();\n }\n }", "for (int j = 0; j < m; j++) {\n a[i][j] = nextLong();\n }", "int j = 0;", "int j = 0;", "j", "0", "j < m", "j", "m", "j++", "j++", "j", "{\n a[i][j] = nextLong();\n }", "{\n a[i][j] = nextLong();\n }", "a[i][j] = nextLong()", "a[i][j]", "a[i]", "a", "i", "j", "nextLong()", "nextLong", "return a;", "a", "int n", "n", "int m", "m", "public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }", "nextBigInteger", "{\n return new BigInteger(next());\n }", "return new BigInteger(next());", "new BigInteger(next())", "public class Main {\n //code written by a living bruh moment\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n int t = 1;\n for (int tt = 1; tt <= t; tt++) solver.solve(tt, in, out);\n out.close();\n }\n\n static class Task {\n\n public void solve(int tt, InputReader in, PrintWriter out) {\n String s = in.next();\n char[] c = s.toCharArray();\n int len = 0;\n int max = 0;\n for(int i = 0; i<3; i++){\n if(c[i]=='R'){\n ++len;\n }\n else{\n max = Math.max(max,len);\n len = 0;\n }\n }\n out.println(Math.max(max,len));\n }\n }\n\n static void sort(int[] x) {\n shuffle(x);\n Arrays.sort(x);\n }\n\n static void sort(long[] x) {\n shuffle(x);\n Arrays.sort(x);\n }\n\n static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static void shuffle(long[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public int[] nextInta(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n public long[] nextLonga(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++) a[i] = nextLong();\n return a;\n }\n\n public int[][] nextIntm(int n, int m) {\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextInt();\n }\n }\n return a;\n }\n\n public long[][] nextLongm(int n, int m) {\n long[][] a = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextLong();\n }\n }\n return a;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }\n}", "public class Main {\n //code written by a living bruh moment\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n Task solver = new Task();\n int t = 1;\n for (int tt = 1; tt <= t; tt++) solver.solve(tt, in, out);\n out.close();\n }\n\n static class Task {\n\n public void solve(int tt, InputReader in, PrintWriter out) {\n String s = in.next();\n char[] c = s.toCharArray();\n int len = 0;\n int max = 0;\n for(int i = 0; i<3; i++){\n if(c[i]=='R'){\n ++len;\n }\n else{\n max = Math.max(max,len);\n len = 0;\n }\n }\n out.println(Math.max(max,len));\n }\n }\n\n static void sort(int[] x) {\n shuffle(x);\n Arrays.sort(x);\n }\n\n static void sort(long[] x) {\n shuffle(x);\n Arrays.sort(x);\n }\n\n static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static void shuffle(long[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static class InputReader {\n public BufferedReader reader;\n public StringTokenizer tokenizer;\n\n public InputReader(InputStream stream) {\n reader = new BufferedReader(new InputStreamReader(stream), 32768);\n tokenizer = null;\n }\n\n public String next() {\n while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n try {\n tokenizer = new StringTokenizer(reader.readLine());\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n return tokenizer.nextToken();\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n public long nextLong() {\n return Long.parseLong(next());\n }\n\n public double nextDouble() {\n return Double.parseDouble(next());\n }\n\n public String nextLine() {\n try {\n return reader.readLine();\n } catch (Exception e) {\n e.printStackTrace();\n }\n return null;\n }\n\n public boolean hasNext() {\n String next = null;\n try {\n next = reader.readLine();\n } catch (Exception e) {\n }\n if (next == null) {\n return false;\n }\n tokenizer = new StringTokenizer(next);\n return true;\n }\n\n public int[] nextInta(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n public long[] nextLonga(int n) {\n long[] a = new long[n];\n for (int i = 0; i < n; i++) a[i] = nextLong();\n return a;\n }\n\n public int[][] nextIntm(int n, int m) {\n int[][] a = new int[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextInt();\n }\n }\n return a;\n }\n\n public long[][] nextLongm(int n, int m) {\n long[][] a = new long[n][m];\n for (int i = 0; i < n; i++) {\n for (int j = 0; j < m; j++) {\n a[i][j] = nextLong();\n }\n }\n return a;\n }\n\n public BigInteger nextBigInteger() {\n return new BigInteger(next());\n }\n }\n}", "Main" ]
import java.io.*; import java.lang.*; import java.io.InputStream; import java.io.InputStreamReader; import java.io.BufferedReader; import java.io.OutputStream; import java.io.PrintWriter; import java.io.IOException; import java.util.Arrays; import java.util.Random; import java.util.StringTokenizer; import java.math.BigInteger; public class Main { //code written by a living bruh moment public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out = new PrintWriter(outputStream); Task solver = new Task(); int t = 1; for (int tt = 1; tt <= t; tt++) solver.solve(tt, in, out); out.close(); } static class Task { public void solve(int tt, InputReader in, PrintWriter out) { String s = in.next(); char[] c = s.toCharArray(); int len = 0; int max = 0; for(int i = 0; i<3; i++){ if(c[i]=='R'){ ++len; } else{ max = Math.max(max,len); len = 0; } } out.println(Math.max(max,len)); } } static void sort(int[] x) { shuffle(x); Arrays.sort(x); } static void sort(long[] x) { shuffle(x); Arrays.sort(x); } static void shuffle(int[] a) { Random get = new Random(); for (int i = 0; i < a.length; i++) { int r = get.nextInt(a.length); int temp = a[i]; a[i] = a[r]; a[r] = temp; } } static void shuffle(long[] a) { Random get = new Random(); for (int i = 0; i < a.length; i++) { int r = get.nextInt(a.length); long temp = a[i]; a[i] = a[r]; a[r] = temp; } } static class InputReader { public BufferedReader reader; public StringTokenizer tokenizer; public InputReader(InputStream stream) { reader = new BufferedReader(new InputStreamReader(stream), 32768); tokenizer = null; } public String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(reader.readLine()); } catch (IOException e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } public int nextInt() { return Integer.parseInt(next()); } public long nextLong() { return Long.parseLong(next()); } public double nextDouble() { return Double.parseDouble(next()); } public String nextLine() { try { return reader.readLine(); } catch (Exception e) { e.printStackTrace(); } return null; } public boolean hasNext() { String next = null; try { next = reader.readLine(); } catch (Exception e) { } if (next == null) { return false; } tokenizer = new StringTokenizer(next); return true; } public int[] nextInta(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } public long[] nextLonga(int n) { long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = nextLong(); return a; } public int[][] nextIntm(int n, int m) { int[][] a = new int[n][m]; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { a[i][j] = nextInt(); } } return a; } public long[][] nextLongm(int n, int m) { long[][] a = new long[n][m]; for (int i = 0; i < n; i++) { for (int j = 0; j < m; j++) { a[i][j] = nextLong(); } } return a; } public BigInteger nextBigInteger() { return new BigInteger(next()); } } }
[ 7, 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, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 4, 18, 13, 13, 13, 13, 4, 18, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 18, 13, 13, 41, 13, 18, 13, 13, 0, 18, 13, 13, 18, 13, 13, 0, 18, 13, 13, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 13, 4, 18, 13, 8, 4, 18, 13, 17, 17, 8, 4, 18, 13, 17, 17, 8, 4, 18, 13, 17, 17, 17, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 281, 11 ], [ 281, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 14, 24 ], [ 24, 25 ], [ 24, 26 ], [ 14, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 27, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 39, 43 ], [ 39, 44 ], [ 14, 45 ], [ 45, 46 ], [ 46, 47 ], [ 12, 48 ], [ 48, 49 ], [ 281, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 56, 66 ], [ 66, 67 ], [ 67, 68 ], [ 56, 69 ], [ 70, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 70, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 70, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 84, 88 ], [ 88, 89 ], [ 88, 90 ], [ 70, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 91, 95 ], [ 50, 96 ], [ 96, 97 ], [ 281, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 104, 109 ], [ 109, 110 ], [ 109, 111 ], [ 111, 112 ], [ 111, 113 ], [ 104, 114 ], [ 114, 115 ], [ 115, 116 ], [ 104, 117 ], [ 118, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 121, 124 ], [ 124, 125 ], [ 124, 126 ], [ 118, 127 ], [ 127, 128 ], [ 127, 129 ], [ 129, 130 ], [ 129, 131 ], [ 118, 132 ], [ 132, 133 ], [ 133, 134 ], [ 133, 135 ], [ 132, 136 ], [ 136, 137 ], [ 136, 138 ], [ 118, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 98, 144 ], [ 144, 145 ], [ 281, 146 ], [ 146, 147 ], [ 146, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 150, 156 ], [ 156, 157 ], [ 157, 158 ], [ 156, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 159, 164 ], [ 159, 165 ], [ 165, 166 ], [ 166, 167 ], [ 167, 168 ], [ 166, 169 ], [ 165, 170 ], [ 165, 171 ], [ 171, 172 ], [ 172, 173 ], [ 173, 174 ], [ 172, 175 ], [ 171, 176 ], [ 171, 177 ], [ 148, 178 ], [ 178, 179 ], [ 148, 180 ], [ 180, 181 ], [ 148, 182 ], [ 182, 183 ], [ 281, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 184, 188 ], [ 188, 189 ], [ 184, 190 ], [ 190, 191 ], [ 190, 192 ], [ 192, 193 ], [ 193, 194 ], [ 193, 195 ], [ 184, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 199, 200 ], [ 199, 201 ], [ 196, 202 ], [ 202, 203 ], [ 184, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 209, 211 ], [ 208, 212 ], [ 212, 213 ], [ 213, 214 ], [ 214, 215 ], [ 207, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 218, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 217, 224 ], [ 224, 225 ], [ 225, 226 ], [ 225, 227 ], [ 206, 228 ], [ 228, 229 ], [ 229, 230 ], [ 230, 231 ], [ 184, 232 ], [ 232, 233 ], [ 232, 234 ], [ 234, 235 ], [ 235, 236 ], [ 236, 237 ], [ 237, 238 ], [ 236, 239 ], [ 239, 240 ], [ 184, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 246, 247 ], [ 245, 248 ], [ 248, 249 ], [ 184, 250 ], [ 250, 251 ], [ 250, 252 ], [ 252, 253 ], [ 253, 254 ], [ 254, 255 ], [ 255, 256 ], [ 254, 257 ], [ 257, 258 ], [ 184, 259 ], [ 259, 260 ], [ 259, 261 ], [ 261, 262 ], [ 262, 263 ], [ 262, 264 ], [ 261, 265 ], [ 265, 266 ], [ 266, 267 ], [ 266, 268 ], [ 268, 269 ], [ 269, 270 ], [ 270, 271 ], [ 265, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 275, 276 ], [ 276, 277 ], [ 261, 278 ], [ 278, 279 ], [ 0, 280 ], [ 280, 281 ], [ 280, 282 ] ]
[ "import java.io.*;\nimport java.util.Random;\nimport java.util.StringTokenizer;\n\npublic class Main {\n //Solution by Sathvik Kuthuru\n public static void main(String[] args) {\n FastReader scan = new FastReader();\n PrintWriter out = new PrintWriter(System.out);\n Task solver = new Task();\n int t = 1;\n for(int tt = 1; tt <= t; tt++) solver.solve(tt, scan, out);\n out.close();\n }\n\n static class Task {\n\n public void solve(int testNumber, FastReader scan, PrintWriter out) {\n String s = scan.next();\n out.println(s.contains(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n }\n }\n\n static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static void shuffle(long[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public FastReader(String s) throws FileNotFoundException {\n br = new BufferedReader(new FileReader(new File(s)));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}", "import java.io.*;", "io.*", "java", "import java.util.Random;", "Random", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n //Solution by Sathvik Kuthuru\n public static void main(String[] args) {\n FastReader scan = new FastReader();\n PrintWriter out = new PrintWriter(System.out);\n Task solver = new Task();\n int t = 1;\n for(int tt = 1; tt <= t; tt++) solver.solve(tt, scan, out);\n out.close();\n }\n\n static class Task {\n\n public void solve(int testNumber, FastReader scan, PrintWriter out) {\n String s = scan.next();\n out.println(s.contains(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n }\n }\n\n static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static void shuffle(long[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public FastReader(String s) throws FileNotFoundException {\n br = new BufferedReader(new FileReader(new File(s)));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}", "Main", "//Solution by Sathvik Kuthuru\n public static void main(String[] args) {\n FastReader scan = new FastReader();\n PrintWriter out = new PrintWriter(System.out);\n Task solver = new Task();\n int t = 1;\n for(int tt = 1; tt <= t; tt++) solver.solve(tt, scan, out);\n out.close();\n }", "main", "{\n FastReader scan = new FastReader();\n PrintWriter out = new PrintWriter(System.out);\n Task solver = new Task();\n int t = 1;\n for(int tt = 1; tt <= t; tt++) solver.solve(tt, scan, out);\n out.close();\n }", "FastReader scan = new FastReader();", "scan", "new FastReader()", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "Task solver = new Task();", "solver", "new Task()", "int t = 1;", "t", "1", "for(int tt = 1; tt <= t; tt++) solver.solve(tt, scan, out);", "int tt = 1;", "int tt = 1;", "tt", "1", "tt <= t", "tt", "t", "tt++", "tt++", "tt", "solver.solve(tt, scan, out);", "solver.solve(tt, scan, out)", "solver.solve", "solver", "tt", "scan", "out", "out.close()", "out.close", "out", "String[] args", "args", "static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "shuffle", "{\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "Random get = new Random();", "get", "new Random()", "for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }", "{\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }", "int r = get.nextInt(a.length);", "r", "get.nextInt(a.length)", "get.nextInt", "get", "a.length", "a", "a.length", "int temp = a[i];", "temp", "a[i]", "a", "i", "a[i] = a[r]", "a[i]", "a", "i", "a[r]", "a", "r", "a[r] = temp", "a[r]", "a", "r", "temp", "int[] a", "a", "static void shuffle(long[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "shuffle", "{\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }", "Random get = new Random();", "get", "new Random()", "for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < a.length", "i", "a.length", "a", "a.length", "i++", "i++", "i", "{\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }", "{\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }", "int r = get.nextInt(a.length);", "r", "get.nextInt(a.length)", "get.nextInt", "get", "a.length", "a", "a.length", "long temp = a[i];", "temp", "a[i]", "a", "i", "a[i] = a[r]", "a[i]", "a", "i", "a[r]", "a", "r", "a[r] = temp", "a[r]", "a", "r", "temp", "long[] a", "a", "static class Task {\n\n public void solve(int testNumber, FastReader scan, PrintWriter out) {\n String s = scan.next();\n out.println(s.contains(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n }\n }", "Task", "public void solve(int testNumber, FastReader scan, PrintWriter out) {\n String s = scan.next();\n out.println(s.contains(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n }", "solve", "{\n String s = scan.next();\n out.println(s.contains(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n }", "String s = scan.next();", "s", "scan.next()", "scan.next", "scan", "out.println(s.contains(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0)", "out.println", "out", "s.contains(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0", "s.contains(\"RRR\")", "s.contains", "s", "\"RRR\"", "3", "s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0", "s.contains(\"RR\")", "s.contains", "s", "\"RR\"", "2", "s.contains(\"R\") ? 1 : 0", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "1", "0", "int testNumber", "testNumber", "FastReader scan", "scan", "PrintWriter out", "out", "static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public FastReader(String s) throws FileNotFoundException {\n br = new BufferedReader(new FileReader(new File(s)));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "FastReader", "{\n br = new BufferedReader(new InputStreamReader(System.in));\n }", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "public FastReader(String s) throws FileNotFoundException {\n br = new BufferedReader(new FileReader(new File(s)));\n }", "FastReader", "{\n br = new BufferedReader(new FileReader(new File(s)));\n }", "br = new BufferedReader(new FileReader(new File(s)))", "br", "new BufferedReader(new FileReader(new File(s)))", "String s", "s", "String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }", "while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "nextLine", "{\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }", "String str = \"\";", "str", "\"\"", "try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n //Solution by Sathvik Kuthuru\n public static void main(String[] args) {\n FastReader scan = new FastReader();\n PrintWriter out = new PrintWriter(System.out);\n Task solver = new Task();\n int t = 1;\n for(int tt = 1; tt <= t; tt++) solver.solve(tt, scan, out);\n out.close();\n }\n\n static class Task {\n\n public void solve(int testNumber, FastReader scan, PrintWriter out) {\n String s = scan.next();\n out.println(s.contains(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n }\n }\n\n static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static void shuffle(long[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public FastReader(String s) throws FileNotFoundException {\n br = new BufferedReader(new FileReader(new File(s)));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}", "public class Main {\n //Solution by Sathvik Kuthuru\n public static void main(String[] args) {\n FastReader scan = new FastReader();\n PrintWriter out = new PrintWriter(System.out);\n Task solver = new Task();\n int t = 1;\n for(int tt = 1; tt <= t; tt++) solver.solve(tt, scan, out);\n out.close();\n }\n\n static class Task {\n\n public void solve(int testNumber, FastReader scan, PrintWriter out) {\n String s = scan.next();\n out.println(s.contains(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n }\n }\n\n static void shuffle(int[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n int temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static void shuffle(long[] a) {\n Random get = new Random();\n for (int i = 0; i < a.length; i++) {\n int r = get.nextInt(a.length);\n long temp = a[i];\n a[i] = a[r];\n a[r] = temp;\n }\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\n }\n\n public FastReader(String s) throws FileNotFoundException {\n br = new BufferedReader(new FileReader(new File(s)));\n }\n\n String next() {\n while (st == null || !st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n\n double nextDouble() {\n return Double.parseDouble(next());\n }\n\n String nextLine() {\n String str = \"\";\n try {\n str = br.readLine();\n } catch (IOException e) {\n e.printStackTrace();\n }\n return str;\n }\n }\n\n}", "Main" ]
import java.io.*; import java.util.Random; import java.util.StringTokenizer; public class Main { //Solution by Sathvik Kuthuru public static void main(String[] args) { FastReader scan = new FastReader(); PrintWriter out = new PrintWriter(System.out); Task solver = new Task(); int t = 1; for(int tt = 1; tt <= t; tt++) solver.solve(tt, scan, out); out.close(); } static class Task { public void solve(int testNumber, FastReader scan, PrintWriter out) { String s = scan.next(); out.println(s.contains("RRR") ? 3 : s.contains("RR") ? 2 : s.contains("R") ? 1 : 0); } } static void shuffle(int[] a) { Random get = new Random(); for (int i = 0; i < a.length; i++) { int r = get.nextInt(a.length); int temp = a[i]; a[i] = a[r]; a[r] = temp; } } static void shuffle(long[] a) { Random get = new Random(); for (int i = 0; i < a.length; i++) { int r = get.nextInt(a.length); long temp = a[i]; a[i] = a[r]; a[r] = temp; } } static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } public FastReader(String s) throws FileNotFoundException { br = new BufferedReader(new FileReader(new File(s))); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 0, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 40, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 68, 5 ], [ 68, 6 ], [ 6, 7 ], [ 6, 8 ], [ 68, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 11, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 11, 19 ], [ 19, 20 ], [ 19, 21 ], [ 11, 22 ], [ 22, 23 ], [ 22, 24 ], [ 11, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 25, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 40, 47 ], [ 47, 48 ], [ 40, 49 ], [ 49, 50 ], [ 49, 51 ], [ 39, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 54, 58 ], [ 11, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 9, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static Scanner Scan = new Scanner(System.in);\n public static void main(String[] args) {\n String s;\n s = Scan.next();\n\n int cnt = 0, ans = 0;\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) == 'R') cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n\n System.out.println(ans);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static Scanner Scan = new Scanner(System.in);\n public static void main(String[] args) {\n String s;\n s = Scan.next();\n\n int cnt = 0, ans = 0;\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) == 'R') cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n\n System.out.println(ans);\n }\n}", "Main", "public static Scanner Scan = new Scanner(System.in);", "Scan", "new Scanner(System.in)", "public static void main(String[] args) {\n String s;\n s = Scan.next();\n\n int cnt = 0, ans = 0;\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) == 'R') cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n\n System.out.println(ans);\n }", "main", "{\n String s;\n s = Scan.next();\n\n int cnt = 0, ans = 0;\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) == 'R') cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n\n System.out.println(ans);\n }", "String s;", "s", "s = Scan.next()", "s", "Scan.next()", "Scan.next", "Scan", "int cnt = 0", "cnt", "0", "ans = 0;", "ans", "0", "for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) == 'R') cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n if(s.charAt(i) == 'R') cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }", "{\n if(s.charAt(i) == 'R') cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }", "if(s.charAt(i) == 'R') cnt++;\n else cnt = 0;", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "cnt++", "cnt", "cnt = 0", "cnt", "0", "ans = Math.max(ans, cnt)", "ans", "Math.max(ans, cnt)", "Math.max", "Math", "ans", "cnt", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n public static Scanner Scan = new Scanner(System.in);\n public static void main(String[] args) {\n String s;\n s = Scan.next();\n\n int cnt = 0, ans = 0;\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) == 'R') cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n\n System.out.println(ans);\n }\n}", "public class Main {\n public static Scanner Scan = new Scanner(System.in);\n public static void main(String[] args) {\n String s;\n s = Scan.next();\n\n int cnt = 0, ans = 0;\n for(int i=0; i<s.length(); i++) {\n if(s.charAt(i) == 'R') cnt++;\n else cnt = 0;\n ans = Math.max(ans, cnt);\n }\n\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static Scanner Scan = new Scanner(System.in); public static void main(String[] args) { String s; s = Scan.next(); int cnt = 0, ans = 0; for(int i=0; i<s.length(); i++) { if(s.charAt(i) == 'R') cnt++; else cnt = 0; ans = Math.max(ans, cnt); } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 40, 13, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 9, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 16, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 16, 28 ], [ 28, 29 ], [ 28, 30 ], [ 16, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 43, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 50, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 43, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 16, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 6, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n String s = scanner.next();\n int counter = 0;\n int result = 0;\n\n for (int i = 0; i < 3; i++) {\n char next = s.charAt(i);\n if (next == 'R') {\n counter++;\n } else {\n counter = 0;\n }\n result = Math.max(result, counter);\n }\n System.out.println(result);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n String s = scanner.next();\n int counter = 0;\n int result = 0;\n\n for (int i = 0; i < 3; i++) {\n char next = s.charAt(i);\n if (next == 'R') {\n counter++;\n } else {\n counter = 0;\n }\n result = Math.max(result, counter);\n }\n System.out.println(result);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}", "Main", "public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n String s = scanner.next();\n int counter = 0;\n int result = 0;\n\n for (int i = 0; i < 3; i++) {\n char next = s.charAt(i);\n if (next == 'R') {\n counter++;\n } else {\n counter = 0;\n }\n result = Math.max(result, counter);\n }\n System.out.println(result);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "main", "{\n try (Scanner scanner = new Scanner(System.in);) {\n String s = scanner.next();\n int counter = 0;\n int result = 0;\n\n for (int i = 0; i < 3; i++) {\n char next = s.charAt(i);\n if (next == 'R') {\n counter++;\n } else {\n counter = 0;\n }\n result = Math.max(result, counter);\n }\n System.out.println(result);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }", "try (Scanner scanner = new Scanner(System.in);) {\n String s = scanner.next();\n int counter = 0;\n int result = 0;\n\n for (int i = 0; i < 3; i++) {\n char next = s.charAt(i);\n if (next == 'R') {\n counter++;\n } else {\n counter = 0;\n }\n result = Math.max(result, counter);\n }\n System.out.println(result);\n } catch (Exception e) {\n e.printStackTrace();\n }", "catch (Exception e) {\n e.printStackTrace();\n }", "Exception e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n String s = scanner.next();\n int counter = 0;\n int result = 0;\n\n for (int i = 0; i < 3; i++) {\n char next = s.charAt(i);\n if (next == 'R') {\n counter++;\n } else {\n counter = 0;\n }\n result = Math.max(result, counter);\n }\n System.out.println(result);\n }", "Scanner scanner = new Scanner(System.in)", "Scanner scanner = new Scanner(System.in)", "new Scanner(System.in)", "String s = scanner.next();", "s", "scanner.next()", "scanner.next", "scanner", "int counter = 0;", "counter", "0", "int result = 0;", "result", "0", "for (int i = 0; i < 3; i++) {\n char next = s.charAt(i);\n if (next == 'R') {\n counter++;\n } else {\n counter = 0;\n }\n result = Math.max(result, counter);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n char next = s.charAt(i);\n if (next == 'R') {\n counter++;\n } else {\n counter = 0;\n }\n result = Math.max(result, counter);\n }", "{\n char next = s.charAt(i);\n if (next == 'R') {\n counter++;\n } else {\n counter = 0;\n }\n result = Math.max(result, counter);\n }", "char next = s.charAt(i);", "next", "s.charAt(i)", "s.charAt", "s", "i", "if (next == 'R') {\n counter++;\n } else {\n counter = 0;\n }", "next == 'R'", "next", "'R'", "{\n counter++;\n }", "counter++", "counter", "{\n counter = 0;\n }", "counter = 0", "counter", "0", "result = Math.max(result, counter)", "result", "Math.max(result, counter)", "Math.max", "Math", "result", "counter", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n String s = scanner.next();\n int counter = 0;\n int result = 0;\n\n for (int i = 0; i < 3; i++) {\n char next = s.charAt(i);\n if (next == 'R') {\n counter++;\n } else {\n counter = 0;\n }\n result = Math.max(result, counter);\n }\n System.out.println(result);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n try (Scanner scanner = new Scanner(System.in);) {\n String s = scanner.next();\n int counter = 0;\n int result = 0;\n\n for (int i = 0; i < 3; i++) {\n char next = s.charAt(i);\n if (next == 'R') {\n counter++;\n } else {\n counter = 0;\n }\n result = Math.max(result, counter);\n }\n System.out.println(result);\n } catch (Exception e) {\n e.printStackTrace();\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner scanner = new Scanner(System.in);) { String s = scanner.next(); int counter = 0; int result = 0; for (int i = 0; i < 3; i++) { char next = s.charAt(i); if (next == 'R') { counter++; } else { counter = 0; } result = Math.max(result, counter); } System.out.println(result); } catch (Exception e) { e.printStackTrace(); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 0, 13, 4, 18, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 42, 2, 13, 17, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 40, 13, 30, 14, 2, 13, 17, 0, 13, 17, 40, 13, 14, 2, 2, 13, 17, 2, 13, 17, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 8, 11 ], [ 11, 12 ], [ 8, 13 ], [ 13, 14 ], [ 8, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 8, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 31, 33 ], [ 8, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 34, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 41, 44 ], [ 40, 45 ], [ 39, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 39, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 56, 58 ], [ 38, 59 ], [ 59, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 66, 68 ], [ 61, 69 ], [ 69, 70 ], [ 69, 71 ], [ 8, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 72, 77 ], [ 6, 78 ], [ 78, 79 ] ]
[ "import java.io.*;\nclass Main \n{\n public static void main(String args[])throws IOException\n {\n int c,i,c1;\n String S;\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\n S=br.readLine();\n i=0;c=0;c1=0;\n while(i<3)\n {\n if(S.charAt(i)=='R')\n {c++;c1++;}\n else\n {\n if(c==1)\n c=0;\n }\n i++;\n }\n if(c==0&&c1==1)\n c=c1;\n System.out.println(c);\n }\n}", "import java.io.*;", "io.*", "java", "class Main \n{\n public static void main(String args[])throws IOException\n {\n int c,i,c1;\n String S;\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\n S=br.readLine();\n i=0;c=0;c1=0;\n while(i<3)\n {\n if(S.charAt(i)=='R')\n {c++;c1++;}\n else\n {\n if(c==1)\n c=0;\n }\n i++;\n }\n if(c==0&&c1==1)\n c=c1;\n System.out.println(c);\n }\n}", "Main", "public static void main(String args[])throws IOException\n {\n int c,i,c1;\n String S;\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\n S=br.readLine();\n i=0;c=0;c1=0;\n while(i<3)\n {\n if(S.charAt(i)=='R')\n {c++;c1++;}\n else\n {\n if(c==1)\n c=0;\n }\n i++;\n }\n if(c==0&&c1==1)\n c=c1;\n System.out.println(c);\n }", "main", "{\n int c,i,c1;\n String S;\n BufferedReader br= new BufferedReader(new InputStreamReader(System.in));\n S=br.readLine();\n i=0;c=0;c1=0;\n while(i<3)\n {\n if(S.charAt(i)=='R')\n {c++;c1++;}\n else\n {\n if(c==1)\n c=0;\n }\n i++;\n }\n if(c==0&&c1==1)\n c=c1;\n System.out.println(c);\n }", "int c", "c", "i", "i", "c1;", "c1", "String S;", "S", "BufferedReader br= new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "S=br.readLine()", "S", "br.readLine()", "br.readLine", "br", "i=0", "i", "0", "c=0", "c", "0", "c1=0", "c1", "0", "while(i<3)\n {\n if(S.charAt(i)=='R')\n {c++;c1++;}\n else\n {\n if(c==1)\n c=0;\n }\n i++;\n }", "i<3", "i", "3", "{\n if(S.charAt(i)=='R')\n {c++;c1++;}\n else\n {\n if(c==1)\n c=0;\n }\n i++;\n }", "if(S.charAt(i)=='R')\n {c++;c1++;}\n else\n {\n if(c==1)\n c=0;\n }", "S.charAt(i)=='R'", "S.charAt(i)", "S.charAt", "S", "i", "'R'", "{c++;c1++;}", "c++", "c", "c1++", "c1", "{\n if(c==1)\n c=0;\n }", "if(c==1)\n c=0;", "c==1", "c", "1", "c=0", "c", "0", "i++", "i", "if(c==0&&c1==1)\n c=c1;", "c==0&&c1==1", "c==0", "c", "0", "c1==1", "c1", "1", "c=c1", "c", "c1", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String args[]", "args" ]
import java.io.*; class Main { public static void main(String args[])throws IOException { int c,i,c1; String S; BufferedReader br= new BufferedReader(new InputStreamReader(System.in)); S=br.readLine(); i=0;c=0;c1=0; while(i<3) { if(S.charAt(i)=='R') {c++;c1++;} else { if(c==1) c=0; } i++; } if(c==0&&c1==1) c=c1; System.out.println(c); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 13, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 159, 8 ], [ 159, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 26, 36 ], [ 36, 37 ], [ 37, 38 ], [ 26, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 41, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 53, 57 ], [ 41, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 11, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 9, 68 ], [ 68, 69 ], [ 159, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 70, 74 ], [ 74, 75 ], [ 70, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 70, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 85, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 95, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 84, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 70, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 114, 117 ], [ 117, 118 ], [ 70, 119 ], [ 119, 120 ], [ 119, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 123, 126 ], [ 126, 127 ], [ 70, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 133, 134 ], [ 132, 135 ], [ 135, 136 ], [ 70, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 140, 142 ], [ 139, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 146, 147 ], [ 147, 148 ], [ 148, 149 ], [ 143, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 139, 156 ], [ 156, 157 ], [ 0, 158 ], [ 158, 159 ], [ 158, 160 ] ]
[ "import java.util.*;\nimport java.io.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t\tString s = fs.nextLine();\n\t\tint c=0,max=0;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\t\n\t\t\tif(s.charAt(i)=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tmax = Math.max(max, c);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n\n\t\n\t\n\t\n\t\n\t\n\t\n\tstatic class FastScanner\n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }\n\t\n\t\n\t\n\t\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t\tString s = fs.nextLine();\n\t\tint c=0,max=0;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\t\n\t\t\tif(s.charAt(i)=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tmax = Math.max(max, c);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n\n\t\n\t\n\t\n\t\n\t\n\t\n\tstatic class FastScanner\n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }\n\t\n\t\n\t\n\t\n}", "Main", "public static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t\tString s = fs.nextLine();\n\t\tint c=0,max=0;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\t\n\t\t\tif(s.charAt(i)=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tmax = Math.max(max, c);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}", "main", "{\n\t\tFastScanner fs = new FastScanner();\n\t\tString s = fs.nextLine();\n\t\tint c=0,max=0;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\t\n\t\t\tif(s.charAt(i)=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tmax = Math.max(max, c);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}", "FastScanner fs = new FastScanner();", "fs", "new FastScanner()", "String s = fs.nextLine();", "s", "fs.nextLine()", "fs.nextLine", "fs", "int c=0", "c", "0", "max=0;", "max", "0", "for(int i=0;i<s.length();i++)\n\t\t{\n\t\t\t\n\t\t\tif(s.charAt(i)=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tmax = Math.max(max, c);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\t\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n\t\t\t\n\t\t\tif(s.charAt(i)=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tmax = Math.max(max, c);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\t\n\t\t}", "{\n\t\t\t\n\t\t\tif(s.charAt(i)=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tmax = Math.max(max, c);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\t\n\t\t}", "if(s.charAt(i)=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tmax = Math.max(max, c);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc=0;\n\t\t\t}", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n\t\t\t\tc++;\n\t\t\t\tmax = Math.max(max, c);\n\t\t\t}", "c++", "c", "max = Math.max(max, c)", "max", "Math.max(max, c)", "Math.max", "Math", "max", "c", "{\n\t\t\t\tc=0;\n\t\t\t}", "c=0", "c", "0", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "static class FastScanner\n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }", "FastScanner", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastScanner() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }", "FastScanner", "{ \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }", "br = new BufferedReader(new\n InputStreamReader(System.in))", "br", "new BufferedReader(new\n InputStreamReader(System.in))", "String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }", "next", "{ \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }", "while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{ \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }", "try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }", "catch (IOException e) \n { \n e.printStackTrace(); \n }", "IOException e", "{ \n e.printStackTrace(); \n }", "e.printStackTrace()", "e.printStackTrace", "e", "{ \n st = new StringTokenizer(br.readLine()); \n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() \n { \n return Integer.parseInt(next()); \n }", "nextInt", "{ \n return Integer.parseInt(next()); \n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() \n { \n return Long.parseLong(next()); \n }", "nextLong", "{ \n return Long.parseLong(next()); \n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() \n { \n return Double.parseDouble(next()); \n }", "nextDouble", "{ \n return Double.parseDouble(next()); \n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }", "nextLine", "{ \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }", "String str = \"\";", "str", "\"\"", "try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }", "catch (IOException e) \n { \n e.printStackTrace(); \n }", "IOException e", "{ \n e.printStackTrace(); \n }", "e.printStackTrace()", "e.printStackTrace", "e", "{ \n str = br.readLine(); \n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t\tString s = fs.nextLine();\n\t\tint c=0,max=0;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\t\n\t\t\tif(s.charAt(i)=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tmax = Math.max(max, c);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n\n\t\n\t\n\t\n\t\n\t\n\t\n\tstatic class FastScanner\n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }\n\t\n\t\n\t\n\t\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tFastScanner fs = new FastScanner();\n\t\tString s = fs.nextLine();\n\t\tint c=0,max=0;\n\t\tfor(int i=0;i<s.length();i++)\n\t\t{\n\t\t\t\n\t\t\tif(s.charAt(i)=='R')\n\t\t\t{\n\t\t\t\tc++;\n\t\t\t\tmax = Math.max(max, c);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tc=0;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(max);\n\n\t}\n\n\t\n\t\n\t\n\t\n\t\n\t\n\tstatic class FastScanner\n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastScanner() \n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next() \n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine(); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }\n\t\n\t\n\t\n\t\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) { FastScanner fs = new FastScanner(); String s = fs.nextLine(); int c=0,max=0; for(int i=0;i<s.length();i++) { if(s.charAt(i)=='R') { c++; max = Math.max(max, c); } else { c=0; } } System.out.println(max); } static class FastScanner { BufferedReader br; StringTokenizer st; public FastScanner() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } }
[ 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, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 0, 13, 17, 14, 2, 13, 17, 30, 14, 2, 18, 13, 2, 13, 17, 17, 30, 40, 13, 14, 13, 30, 4, 18, 18, 13, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 91, 8 ], [ 91, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 28 ], [ 28, 29 ], [ 28, 30 ], [ 11, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 31, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 44, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 54, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 63, 65 ], [ 60, 66 ], [ 59, 67 ], [ 67, 68 ], [ 68, 69 ], [ 11, 70 ], [ 70, 71 ], [ 70, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 73, 78 ], [ 78, 79 ], [ 78, 80 ], [ 70, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 9, 88 ], [ 88, 89 ], [ 0, 90 ], [ 90, 91 ], [ 90, 92 ] ]
[ "import java.util.*;\nimport java.io.*;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n char[] s = n.toCharArray();\n int calc = 0;\n boolean rain = false;\n for(int i=0;i<3;i++){\n if (s[i]=='R') {\n rain =true;\n if (i<2) {\n if(s[i+1]=='R'){\n calc++;\n }\n }\n }\n }\n if (rain) {\n System.out.println(calc+1);\n }\n else{\n System.out.println(0);\n }\n\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n char[] s = n.toCharArray();\n int calc = 0;\n boolean rain = false;\n for(int i=0;i<3;i++){\n if (s[i]=='R') {\n rain =true;\n if (i<2) {\n if(s[i+1]=='R'){\n calc++;\n }\n }\n }\n }\n if (rain) {\n System.out.println(calc+1);\n }\n else{\n System.out.println(0);\n }\n\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n char[] s = n.toCharArray();\n int calc = 0;\n boolean rain = false;\n for(int i=0;i<3;i++){\n if (s[i]=='R') {\n rain =true;\n if (i<2) {\n if(s[i+1]=='R'){\n calc++;\n }\n }\n }\n }\n if (rain) {\n System.out.println(calc+1);\n }\n else{\n System.out.println(0);\n }\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n char[] s = n.toCharArray();\n int calc = 0;\n boolean rain = false;\n for(int i=0;i<3;i++){\n if (s[i]=='R') {\n rain =true;\n if (i<2) {\n if(s[i+1]=='R'){\n calc++;\n }\n }\n }\n }\n if (rain) {\n System.out.println(calc+1);\n }\n else{\n System.out.println(0);\n }\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String n = sc.next();", "n", "sc.next()", "sc.next", "sc", "char[] s = n.toCharArray();", "s", "n.toCharArray()", "n.toCharArray", "n", "int calc = 0;", "calc", "0", "boolean rain = false;", "rain", "false", "for(int i=0;i<3;i++){\n if (s[i]=='R') {\n rain =true;\n if (i<2) {\n if(s[i+1]=='R'){\n calc++;\n }\n }\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if (s[i]=='R') {\n rain =true;\n if (i<2) {\n if(s[i+1]=='R'){\n calc++;\n }\n }\n }\n }", "{\n if (s[i]=='R') {\n rain =true;\n if (i<2) {\n if(s[i+1]=='R'){\n calc++;\n }\n }\n }\n }", "if (s[i]=='R') {\n rain =true;\n if (i<2) {\n if(s[i+1]=='R'){\n calc++;\n }\n }\n }", "s[i]=='R'", "s[i]", "s", "i", "'R'", "{\n rain =true;\n if (i<2) {\n if(s[i+1]=='R'){\n calc++;\n }\n }\n }", "rain =true", "rain", "true", "if (i<2) {\n if(s[i+1]=='R'){\n calc++;\n }\n }", "i<2", "i", "2", "{\n if(s[i+1]=='R'){\n calc++;\n }\n }", "if(s[i+1]=='R'){\n calc++;\n }", "s[i+1]=='R'", "s[i+1]", "s", "i+1", "i", "1", "'R'", "{\n calc++;\n }", "calc++", "calc", "if (rain) {\n System.out.println(calc+1);\n }\n else{\n System.out.println(0);\n }", "rain", "{\n System.out.println(calc+1);\n }", "System.out.println(calc+1)", "System.out.println", "System.out", "System", "System.out", "calc+1", "calc", "1", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n char[] s = n.toCharArray();\n int calc = 0;\n boolean rain = false;\n for(int i=0;i<3;i++){\n if (s[i]=='R') {\n rain =true;\n if (i<2) {\n if(s[i+1]=='R'){\n calc++;\n }\n }\n }\n }\n if (rain) {\n System.out.println(calc+1);\n }\n else{\n System.out.println(0);\n }\n\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String n = sc.next();\n char[] s = n.toCharArray();\n int calc = 0;\n boolean rain = false;\n for(int i=0;i<3;i++){\n if (s[i]=='R') {\n rain =true;\n if (i<2) {\n if(s[i+1]=='R'){\n calc++;\n }\n }\n }\n }\n if (rain) {\n System.out.println(calc+1);\n }\n else{\n System.out.println(0);\n }\n\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String n = sc.next(); char[] s = n.toCharArray(); int calc = 0; boolean rain = false; for(int i=0;i<3;i++){ if (s[i]=='R') { rain =true; if (i<2) { if(s[i+1]=='R'){ calc++; } } } } if (rain) { System.out.println(calc+1); } else{ System.out.println(0); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 71, 8 ], [ 71, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 20, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 32, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 49, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 9, 68 ], [ 68, 69 ], [ 0, 70 ], [ 70, 71 ], [ 70, 72 ] ]
[ "import java.math.BigInteger;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tif (n.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t} else if (n.contentEquals(\"SRR\") || n.contentEquals(\"RRS\")) {\n\t\t\tSystem.out.println(2);\n\t\t} else if (n.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1);\n\t\t}\n\t}\n}", "import java.math.BigInteger;", "BigInteger", "java.math", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tif (n.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t} else if (n.contentEquals(\"SRR\") || n.contentEquals(\"RRS\")) {\n\t\t\tSystem.out.println(2);\n\t\t} else if (n.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tif (n.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t} else if (n.contentEquals(\"SRR\") || n.contentEquals(\"RRS\")) {\n\t\t\tSystem.out.println(2);\n\t\t} else if (n.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1);\n\t\t}\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tif (n.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t} else if (n.contentEquals(\"SRR\") || n.contentEquals(\"RRS\")) {\n\t\t\tSystem.out.println(2);\n\t\t} else if (n.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String n = sc.next();", "n", "sc.next()", "sc.next", "sc", "if (n.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t} else if (n.contentEquals(\"SRR\") || n.contentEquals(\"RRS\")) {\n\t\t\tSystem.out.println(2);\n\t\t} else if (n.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1);\n\t\t}", "n.equals(\"RRR\")", "n.equals", "n", "\"RRR\"", "{\n\t\t\tSystem.out.println(3);\n\t\t}", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if (n.contentEquals(\"SRR\") || n.contentEquals(\"RRS\")) {\n\t\t\tSystem.out.println(2);\n\t\t} else if (n.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1);\n\t\t}", "n.contentEquals(\"SRR\") || n.contentEquals(\"RRS\")", "n.contentEquals(\"SRR\")", "n.contentEquals", "n", "\"SRR\"", "n.contentEquals(\"RRS\")", "n.contentEquals", "n", "\"RRS\"", "{\n\t\t\tSystem.out.println(2);\n\t\t}", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if (n.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1);\n\t\t}", "n.equals(\"SSS\")", "n.equals", "n", "\"SSS\"", "{\n\t\t\tSystem.out.println(0);\n\t\t}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "{\n\t\t\tSystem.out.println(1);\n\t\t}", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tif (n.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t} else if (n.contentEquals(\"SRR\") || n.contentEquals(\"RRS\")) {\n\t\t\tSystem.out.println(2);\n\t\t} else if (n.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString n = sc.next();\n\t\tif (n.equals(\"RRR\")) {\n\t\t\tSystem.out.println(3);\n\t\t} else if (n.contentEquals(\"SRR\") || n.contentEquals(\"RRS\")) {\n\t\t\tSystem.out.println(2);\n\t\t} else if (n.equals(\"SSS\")) {\n\t\t\tSystem.out.println(0);\n\t\t} else {\n\t\t\tSystem.out.println(1);\n\t\t}\n\t}\n}", "Main" ]
import java.math.BigInteger; import java.util.Scanner; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); String n = sc.next(); if (n.equals("RRR")) { System.out.println(3); } else if (n.contentEquals("SRR") || n.contentEquals("RRS")) { System.out.println(2); } else if (n.equals("SSS")) { System.out.println(0); } else { System.out.println(1); } } }
[ 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, 18, 13, 13, 41, 13, 18, 13, 13, 41, 13, 20, 41, 13, 20, 41, 13, 20, 4, 18, 13, 17, 13, 13, 4, 18, 13, 23, 13, 6, 13, 12, 13, 30, 41, 13, 4, 18, 4, 18, 13, 41, 13, 18, 13, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 13, 13, 23, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 40, 17, 30, 37, 20, 14, 2, 13, 13, 30, 0, 13, 17, 38, 5, 13, 30, 37, 20, 30, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 4, 13, 42, 4, 13, 13, 30, 0, 13, 4, 13, 41, 13, 20, 42, 40, 4, 13, 13, 30, 14, 4, 18, 13, 13, 30, 4, 18, 13, 13, 0, 13, 4, 13, 29, 4, 18, 13, 12, 13, 30, 14, 2, 13, 17, 30, 29, 4, 18, 13, 13, 29, 4, 13, 13, 23, 13, 12, 13, 30, 29, 2, 2, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 17, 2, 13, 40, 17, 23, 13, 6, 13, 12, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 287, 23 ], [ 287, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 29, 31 ], [ 26, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 34, 36 ], [ 26, 37 ], [ 37, 38 ], [ 37, 39 ], [ 26, 40 ], [ 40, 41 ], [ 40, 42 ], [ 26, 43 ], [ 43, 44 ], [ 43, 45 ], [ 26, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 46, 50 ], [ 46, 51 ], [ 26, 52 ], [ 52, 53 ], [ 53, 54 ], [ 24, 55 ], [ 55, 56 ], [ 287, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 59, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 61, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 71, 73 ], [ 61, 74 ], [ 74, 75 ], [ 74, 76 ], [ 61, 77 ], [ 77, 78 ], [ 77, 79 ], [ 61, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 85, 86 ], [ 85, 87 ], [ 80, 88 ], [ 88, 89 ], [ 89, 90 ], [ 80, 91 ], [ 92, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 93, 99 ], [ 99, 100 ], [ 100, 101 ], [ 93, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 92, 106 ], [ 106, 107 ], [ 106, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 108, 112 ], [ 61, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 59, 117 ], [ 117, 118 ], [ 59, 119 ], [ 119, 120 ], [ 59, 121 ], [ 121, 122 ], [ 287, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 123, 127 ], [ 127, 128 ], [ 127, 129 ], [ 123, 131 ], [ 131, 132 ], [ 123, 133 ], [ 133, 134 ], [ 123, 135 ], [ 135, 136 ], [ 123, 137 ], [ 137, 138 ], [ 137, 139 ], [ 139, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 140, 144 ], [ 137, 145 ], [ 145, 146 ], [ 123, 147 ], [ 147, 148 ], [ 147, 149 ], [ 149, 150 ], [ 150, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 150, 155 ], [ 155, 156 ], [ 156, 157 ], [ 149, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 158, 162 ], [ 162, 163 ], [ 163, 164 ], [ 163, 165 ], [ 162, 166 ], [ 166, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 170, 171 ], [ 166, 172 ], [ 172, 173 ], [ 173, 174 ], [ 173, 175 ], [ 175, 176 ], [ 176, 177 ], [ 175, 178 ], [ 162, 179 ], [ 179, 180 ], [ 180, 181 ], [ 180, 182 ], [ 179, 183 ], [ 183, 184 ], [ 184, 185 ], [ 185, 186 ], [ 149, 187 ], [ 187, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 123, 192 ], [ 192, 193 ], [ 192, 194 ], [ 194, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 194, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 199, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 194, 208 ], [ 208, 209 ], [ 208, 210 ], [ 194, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 211, 216 ], [ 216, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 218, 221 ], [ 217, 222 ], [ 222, 223 ], [ 223, 224 ], [ 224, 225 ], [ 223, 226 ], [ 216, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 194, 231 ], [ 231, 232 ], [ 232, 233 ], [ 233, 234 ], [ 123, 235 ], [ 235, 236 ], [ 235, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 238, 242 ], [ 242, 243 ], [ 243, 244 ], [ 244, 245 ], [ 245, 246 ], [ 244, 247 ], [ 237, 248 ], [ 248, 249 ], [ 249, 250 ], [ 249, 251 ], [ 235, 252 ], [ 252, 253 ], [ 123, 254 ], [ 254, 255 ], [ 254, 256 ], [ 256, 257 ], [ 257, 258 ], [ 261, 259 ], [ 271, 260 ], [ 268, 261 ], [ 261, 262 ], [ 262, 263 ], [ 262, 264 ], [ 261, 265 ], [ 265, 266 ], [ 265, 267 ], [ 268, 268 ], [ 268, 269 ], [ 268, 270 ], [ 271, 271 ], [ 271, 272 ], [ 271, 273 ], [ 261, 274 ], [ 274, 275 ], [ 274, 276 ], [ 276, 277 ], [ 254, 278 ], [ 278, 279 ], [ 123, 280 ], [ 280, 281 ], [ 280, 282 ], [ 282, 283 ], [ 282, 284 ], [ 284, 285 ], [ 0, 286 ], [ 286, 287 ], [ 286, 288 ] ]
[ "import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.InputMismatchException;\nimport java.io.IOException;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n char[] s = in.nextString().toCharArray();\n final int n = s.length;\n int res = 0;\n int count = 0;\n// boolean prevWasR = true;\n\n for (int i = 0; i < n; ++i) {\n if (s[i] == 'R') {\n ++count;\n } else {\n count = 0;\n// prevWasR = false;\n }\n res = Math.max(count, res);\n }\n out.println(res);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}\n", "import java.io.OutputStream;", "OutputStream", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.InputMismatchException;", "InputMismatchException", "java.util", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n char[] s = in.nextString().toCharArray();\n final int n = s.length;\n int res = 0;\n int count = 0;\n// boolean prevWasR = true;\n\n for (int i = 0; i < n; ++i) {\n if (s[i] == 'R') {\n ++count;\n } else {\n count = 0;\n// prevWasR = false;\n }\n res = Math.max(count, res);\n }\n out.println(res);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "Main", "public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }", "main", "{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }", "InputStream inputStream = System.in;", "inputStream", "System.in", "System", "System.in", "OutputStream outputStream = System.out;", "outputStream", "System.out", "System", "System.out", "InputReader in = new InputReader(inputStream);", "in", "new InputReader(inputStream)", "PrintWriter out = new PrintWriter(outputStream);", "out", "new PrintWriter(outputStream)", "ARainySeason solver = new ARainySeason();", "solver", "new ARainySeason()", "solver.solve(1, in, out)", "solver.solve", "solver", "1", "in", "out", "out.close()", "out.close", "out", "String[] args", "args", "static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n char[] s = in.nextString().toCharArray();\n final int n = s.length;\n int res = 0;\n int count = 0;\n// boolean prevWasR = true;\n\n for (int i = 0; i < n; ++i) {\n if (s[i] == 'R') {\n ++count;\n } else {\n count = 0;\n// prevWasR = false;\n }\n res = Math.max(count, res);\n }\n out.println(res);\n }\n\n }", "ARainySeason", "public void solve(int testNumber, InputReader in, PrintWriter out) {\n char[] s = in.nextString().toCharArray();\n final int n = s.length;\n int res = 0;\n int count = 0;\n// boolean prevWasR = true;\n\n for (int i = 0; i < n; ++i) {\n if (s[i] == 'R') {\n ++count;\n } else {\n count = 0;\n// prevWasR = false;\n }\n res = Math.max(count, res);\n }\n out.println(res);\n }", "solve", "{\n char[] s = in.nextString().toCharArray();\n final int n = s.length;\n int res = 0;\n int count = 0;\n// boolean prevWasR = true;\n\n for (int i = 0; i < n; ++i) {\n if (s[i] == 'R') {\n ++count;\n } else {\n count = 0;\n// prevWasR = false;\n }\n res = Math.max(count, res);\n }\n out.println(res);\n }", "char[] s = in.nextString().toCharArray();", "s", "in.nextString().toCharArray()", "in.nextString().toCharArray", "in.nextString()", "in.nextString", "in", "final int n = s.length;", "n", "s.length", "s", "s.length", "int res = 0;", "res", "0", "int count = 0;", "count", "0", "for (int i = 0; i < n; ++i) {\n if (s[i] == 'R') {\n ++count;\n } else {\n count = 0;\n// prevWasR = false;\n }\n res = Math.max(count, res);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "++i", "++i", "i", "{\n if (s[i] == 'R') {\n ++count;\n } else {\n count = 0;\n// prevWasR = false;\n }\n res = Math.max(count, res);\n }", "{\n if (s[i] == 'R') {\n ++count;\n } else {\n count = 0;\n// prevWasR = false;\n }\n res = Math.max(count, res);\n }", "if (s[i] == 'R') {\n ++count;\n } else {\n count = 0;\n// prevWasR = false;\n }", "s[i] == 'R'", "s[i]", "s", "i", "'R'", "{\n ++count;\n }", "++count", "count", "{\n count = 0;\n// prevWasR = false;\n }", "count = 0", "count", "0", "res = Math.max(count, res)", "res", "Math.max(count, res)", "Math.max", "Math", "count", "res", "out.println(res)", "out.println", "out", "res", "int testNumber", "testNumber", "InputReader in", "in", "PrintWriter out", "out", "static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }", "InputReader", "private InputStream stream;", "stream", "private byte[] buf = new byte[1024];", "buf", "new byte[1024]", "1024", "private int curChar;", "curChar", "private int numChars;", "numChars", "private InputReader.SpaceCharFilter filter;", "filter", "public InputReader(InputStream stream) {\n this.stream = stream;\n }", "InputReader", "{\n this.stream = stream;\n }", "this.stream = stream", "this.stream", "this", "this.stream", "stream", "InputStream stream", "stream", "public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "read", "{\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }", "if (numChars == -1) {\n throw new InputMismatchException();\n }", "numChars == -1", "numChars", "-1", "1", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }", "curChar >= numChars", "curChar", "numChars", "{\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }", "curChar = 0", "curChar", "0", "try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }", "catch (IOException e) {\n throw new InputMismatchException();\n }", "IOException e", "{\n throw new InputMismatchException();\n }", "throw new InputMismatchException();", "new InputMismatchException()", "{\n numChars = stream.read(buf);\n }", "numChars = stream.read(buf)", "numChars", "stream.read(buf)", "stream.read", "stream", "buf", "if (numChars <= 0) {\n return -1;\n }", "numChars <= 0", "numChars", "0", "{\n return -1;\n }", "return -1;", "-1", "1", "return buf[curChar++];", "buf[curChar++]", "buf", "curChar++", "curChar", "public String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }", "nextString", "{\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }", "int c = read();", "c", "read()", "read", "while (isSpaceChar(c)) {\n c = read();\n }", "isSpaceChar(c)", "isSpaceChar", "c", "{\n c = read();\n }", "c = read()", "c", "read()", "read", "StringBuilder res = new StringBuilder();", "res", "new StringBuilder()", "do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));", "!isSpaceChar(c)", "isSpaceChar(c)", "isSpaceChar", "c", "{\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n }", "if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }", "Character.isValidCodePoint(c)", "Character.isValidCodePoint", "Character", "c", "{\n res.appendCodePoint(c);\n }", "res.appendCodePoint(c)", "res.appendCodePoint", "res", "c", "c = read()", "c", "read()", "read", "return res.toString();", "res.toString()", "res.toString", "res", "public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }", "isSpaceChar", "{\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }", "if (filter != null) {\n return filter.isSpaceChar(c);\n }", "filter != null", "filter", "null", "{\n return filter.isSpaceChar(c);\n }", "return filter.isSpaceChar(c);", "filter.isSpaceChar(c)", "filter.isSpaceChar", "filter", "c", "return isWhitespace(c);", "isWhitespace(c)", "isWhitespace", "c", "int c", "c", "public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "isWhitespace", "{\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }", "return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == '\\t'", "c == '\\r'", "c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1", "c == ' '", "c", "' '", "c == '\\n'", "c", "'\\n'", "c == '\\r'", "c", "'\\r'", "c == '\\t'", "c", "'\\t'", "c == -1", "c", "-1", "1", "int c", "c", "public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }", "SpaceCharFilter", "public boolean isSpaceChar(int ch);", "isSpaceChar", "int ch", "ch", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n char[] s = in.nextString().toCharArray();\n final int n = s.length;\n int res = 0;\n int count = 0;\n// boolean prevWasR = true;\n\n for (int i = 0; i < n; ++i) {\n if (s[i] == 'R') {\n ++count;\n } else {\n count = 0;\n// prevWasR = false;\n }\n res = Math.max(count, res);\n }\n out.println(res);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n InputReader in = new InputReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n ARainySeason solver = new ARainySeason();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class ARainySeason {\n public void solve(int testNumber, InputReader in, PrintWriter out) {\n char[] s = in.nextString().toCharArray();\n final int n = s.length;\n int res = 0;\n int count = 0;\n// boolean prevWasR = true;\n\n for (int i = 0; i < n; ++i) {\n if (s[i] == 'R') {\n ++count;\n } else {\n count = 0;\n// prevWasR = false;\n }\n res = Math.max(count, res);\n }\n out.println(res);\n }\n\n }\n\n static class InputReader {\n private InputStream stream;\n private byte[] buf = new byte[1024];\n private int curChar;\n private int numChars;\n private InputReader.SpaceCharFilter filter;\n\n public InputReader(InputStream stream) {\n this.stream = stream;\n }\n\n public int read() {\n if (numChars == -1) {\n throw new InputMismatchException();\n }\n if (curChar >= numChars) {\n curChar = 0;\n try {\n numChars = stream.read(buf);\n } catch (IOException e) {\n throw new InputMismatchException();\n }\n if (numChars <= 0) {\n return -1;\n }\n }\n return buf[curChar++];\n }\n\n public String nextString() {\n int c = read();\n while (isSpaceChar(c)) {\n c = read();\n }\n StringBuilder res = new StringBuilder();\n do {\n if (Character.isValidCodePoint(c)) {\n res.appendCodePoint(c);\n }\n c = read();\n } while (!isSpaceChar(c));\n return res.toString();\n }\n\n public boolean isSpaceChar(int c) {\n if (filter != null) {\n return filter.isSpaceChar(c);\n }\n return isWhitespace(c);\n }\n\n public static boolean isWhitespace(int c) {\n return c == ' ' || c == '\\n' || c == '\\r' || c == '\\t' || c == -1;\n }\n\n public interface SpaceCharFilter {\n public boolean isSpaceChar(int ch);\n\n }\n\n }\n}", "Main" ]
import java.io.OutputStream; import java.io.IOException; import java.io.InputStream; import java.io.PrintWriter; import java.util.InputMismatchException; import java.io.IOException; import java.io.InputStream; /** * Built using CHelper plug-in * Actual solution is at the top */ public class Main { public static void main(String[] args) { InputStream inputStream = System.in; OutputStream outputStream = System.out; InputReader in = new InputReader(inputStream); PrintWriter out = new PrintWriter(outputStream); ARainySeason solver = new ARainySeason(); solver.solve(1, in, out); out.close(); } static class ARainySeason { public void solve(int testNumber, InputReader in, PrintWriter out) { char[] s = in.nextString().toCharArray(); final int n = s.length; int res = 0; int count = 0; // boolean prevWasR = true; for (int i = 0; i < n; ++i) { if (s[i] == 'R') { ++count; } else { count = 0; // prevWasR = false; } res = Math.max(count, res); } out.println(res); } } static class InputReader { private InputStream stream; private byte[] buf = new byte[1024]; private int curChar; private int numChars; private InputReader.SpaceCharFilter filter; public InputReader(InputStream stream) { this.stream = stream; } public int read() { if (numChars == -1) { throw new InputMismatchException(); } if (curChar >= numChars) { curChar = 0; try { numChars = stream.read(buf); } catch (IOException e) { throw new InputMismatchException(); } if (numChars <= 0) { return -1; } } return buf[curChar++]; } public String nextString() { int c = read(); while (isSpaceChar(c)) { c = read(); } StringBuilder res = new StringBuilder(); do { if (Character.isValidCodePoint(c)) { res.appendCodePoint(c); } c = read(); } while (!isSpaceChar(c)); return res.toString(); } public boolean isSpaceChar(int c) { if (filter != null) { return filter.isSpaceChar(c); } return isWhitespace(c); } public static boolean isWhitespace(int c) { return c == ' ' || c == '\n' || c == '\r' || c == '\t' || c == -1; } public interface SpaceCharFilter { public boolean isSpaceChar(int ch); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 20, 41, 13, 17, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 20, 4, 18, 13, 17, 17, 4, 18, 13, 17, 17, 4, 18, 13, 17, 17, 4, 18, 13, 17, 17, 4, 18, 13, 17, 17, 4, 18, 13, 17, 17, 4, 18, 13, 17, 17, 4, 18, 13, 17, 17, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 20, 17, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 13, 23, 13, 12, 13, 30, 14, 2, 13, 13, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 14, 2, 13, 17, 30, 29, 40, 17, 29, 18, 13, 40, 13, 12, 13, 30, 41, 13, 11, 1, 0, 13, 4, 13, 2, 13, 17, 1, 0, 13, 4, 13, 30, 41, 13, 20, 11, 1, 2, 13, 17, 1, 0, 13, 4, 13, 30, 30, 4, 18, 13, 13, 29, 4, 18, 13, 12, 13, 30, 41, 13, 41, 13, 17, 11, 1, 0, 13, 4, 13, 2, 13, 17, 1, 0, 13, 4, 13, 30, 41, 13, 2, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 4, 13, 11, 1, 2, 2, 13, 17, 2, 13, 17, 1, 0, 13, 4, 13, 30, 30, 0, 13, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 29, 8, 13, 40, 13, 13, 12, 13, 30, 41, 13, 41, 13, 17, 11, 1, 0, 13, 4, 13, 2, 13, 17, 1, 0, 13, 4, 13, 30, 41, 13, 2, 13, 17, 14, 2, 2, 13, 17, 2, 13, 17, 30, 0, 13, 4, 13, 11, 1, 2, 2, 13, 17, 2, 13, 17, 1, 0, 13, 4, 13, 30, 30, 0, 13, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 29, 8, 13, 40, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 339, 11 ], [ 339, 12 ], [ 12, 13 ], [ 12, 14 ], [ 339, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 24, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 29, 35 ], [ 35, 36 ], [ 35, 37 ], [ 29, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 38, 42 ], [ 29, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 43, 47 ], [ 29, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 48, 52 ], [ 29, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 53, 57 ], [ 29, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 29, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 29, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 29, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 29, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 17, 85 ], [ 85, 86 ], [ 86, 87 ], [ 17, 88 ], [ 88, 89 ], [ 89, 90 ], [ 15, 91 ], [ 91, 92 ], [ 339, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 95, 97 ], [ 93, 99 ], [ 99, 100 ], [ 93, 101 ], [ 101, 102 ], [ 93, 103 ], [ 103, 104 ], [ 93, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 105, 111 ], [ 111, 112 ], [ 93, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 116, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 127, 128 ], [ 126, 129 ], [ 120, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 134, 135 ], [ 135, 136 ], [ 136, 137 ], [ 115, 138 ], [ 138, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 93, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 145, 148 ], [ 148, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 148, 154 ], [ 154, 155 ], [ 154, 156 ], [ 148, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 160, 161 ], [ 148, 162 ], [ 145, 163 ], [ 163, 164 ], [ 163, 165 ], [ 145, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 168, 170 ], [ 166, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 166, 176 ], [ 177, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 178, 181 ], [ 145, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 93, 186 ], [ 186, 187 ], [ 186, 188 ], [ 188, 189 ], [ 189, 190 ], [ 188, 191 ], [ 191, 192 ], [ 191, 193 ], [ 188, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 198, 199 ], [ 194, 200 ], [ 200, 201 ], [ 200, 202 ], [ 194, 203 ], [ 203, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 194, 208 ], [ 188, 209 ], [ 209, 210 ], [ 209, 211 ], [ 211, 212 ], [ 211, 213 ], [ 188, 214 ], [ 214, 215 ], [ 215, 216 ], [ 216, 217 ], [ 216, 218 ], [ 215, 219 ], [ 219, 220 ], [ 219, 221 ], [ 214, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 225, 226 ], [ 188, 227 ], [ 227, 228 ], [ 227, 229 ], [ 229, 230 ], [ 230, 231 ], [ 230, 232 ], [ 229, 233 ], [ 233, 234 ], [ 233, 235 ], [ 227, 236 ], [ 236, 237 ], [ 237, 238 ], [ 237, 239 ], [ 239, 240 ], [ 227, 241 ], [ 242, 242 ], [ 242, 243 ], [ 243, 244 ], [ 243, 245 ], [ 246, 246 ], [ 246, 247 ], [ 247, 248 ], [ 247, 249 ], [ 246, 250 ], [ 250, 251 ], [ 250, 252 ], [ 246, 253 ], [ 253, 254 ], [ 253, 255 ], [ 188, 256 ], [ 256, 257 ], [ 257, 258 ], [ 257, 259 ], [ 259, 260 ], [ 257, 261 ], [ 93, 262 ], [ 262, 263 ], [ 262, 264 ], [ 264, 265 ], [ 265, 266 ], [ 264, 267 ], [ 267, 268 ], [ 267, 269 ], [ 264, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 272, 274 ], [ 274, 275 ], [ 270, 276 ], [ 276, 277 ], [ 276, 278 ], [ 270, 279 ], [ 279, 280 ], [ 280, 281 ], [ 280, 282 ], [ 282, 283 ], [ 270, 284 ], [ 264, 285 ], [ 285, 286 ], [ 285, 287 ], [ 287, 288 ], [ 287, 289 ], [ 264, 290 ], [ 290, 291 ], [ 291, 292 ], [ 292, 293 ], [ 292, 294 ], [ 291, 295 ], [ 295, 296 ], [ 295, 297 ], [ 290, 298 ], [ 298, 299 ], [ 299, 300 ], [ 299, 301 ], [ 301, 302 ], [ 264, 303 ], [ 303, 304 ], [ 303, 305 ], [ 305, 306 ], [ 306, 307 ], [ 306, 308 ], [ 305, 309 ], [ 309, 310 ], [ 309, 311 ], [ 303, 312 ], [ 312, 313 ], [ 313, 314 ], [ 313, 315 ], [ 315, 316 ], [ 303, 317 ], [ 318, 318 ], [ 318, 319 ], [ 319, 320 ], [ 319, 321 ], [ 322, 322 ], [ 322, 323 ], [ 323, 324 ], [ 323, 325 ], [ 322, 326 ], [ 326, 327 ], [ 326, 328 ], [ 322, 329 ], [ 329, 330 ], [ 329, 331 ], [ 264, 332 ], [ 332, 333 ], [ 333, 334 ], [ 333, 335 ], [ 335, 336 ], [ 333, 337 ], [ 0, 338 ], [ 338, 339 ], [ 338, 340 ] ]
[ "//package com.company;\nimport java.util.*;\nimport java.lang.*;\nimport java.io.*;\n//****Use Integer Wrapper Class for Arrays.sort()****\npublic class Main {\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] Args)throws Exception{\n FastReader scan=new FastReader(System.in);\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n String s=scan.next();\n Map<String,Integer> map=new HashMap<>();\n map.put(\"SSS\",0);\n map.put(\"SSR\",1);\n map.put(\"SRS\",1);\n map.put(\"SRR\",2);\n map.put(\"RSS\",1);\n map.put(\"RSR\",1);\n map.put(\"RRS\",2);\n map.put(\"RRR\",3);\n out.println(map.get(s));\n }\n out.flush();\n out.close();\n }\n static class FastReader {\n\n byte[] buf = new byte[2048];\n int index, total;\n InputStream in;\n\n FastReader(InputStream is) {\n in = is;\n }\n\n int scan() throws IOException {\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }\n\n String next() throws IOException {\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }\n\n int nextInt() throws IOException {\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n long nextLong() throws IOException {\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.*;", "lang.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] Args)throws Exception{\n FastReader scan=new FastReader(System.in);\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n String s=scan.next();\n Map<String,Integer> map=new HashMap<>();\n map.put(\"SSS\",0);\n map.put(\"SSR\",1);\n map.put(\"SRS\",1);\n map.put(\"SRR\",2);\n map.put(\"RSS\",1);\n map.put(\"RSR\",1);\n map.put(\"RRS\",2);\n map.put(\"RRR\",3);\n out.println(map.get(s));\n }\n out.flush();\n out.close();\n }\n static class FastReader {\n\n byte[] buf = new byte[2048];\n int index, total;\n InputStream in;\n\n FastReader(InputStream is) {\n in = is;\n }\n\n int scan() throws IOException {\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }\n\n String next() throws IOException {\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }\n\n int nextInt() throws IOException {\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n long nextLong() throws IOException {\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n }\n}", "Main", "static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));", "out", "new PrintWriter(new OutputStreamWriter(System.out))", "public static void main(String[] Args)throws Exception{\n FastReader scan=new FastReader(System.in);\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n String s=scan.next();\n Map<String,Integer> map=new HashMap<>();\n map.put(\"SSS\",0);\n map.put(\"SSR\",1);\n map.put(\"SRS\",1);\n map.put(\"SRR\",2);\n map.put(\"RSS\",1);\n map.put(\"RSR\",1);\n map.put(\"RRS\",2);\n map.put(\"RRR\",3);\n out.println(map.get(s));\n }\n out.flush();\n out.close();\n }", "main", "{\n FastReader scan=new FastReader(System.in);\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n String s=scan.next();\n Map<String,Integer> map=new HashMap<>();\n map.put(\"SSS\",0);\n map.put(\"SSR\",1);\n map.put(\"SRS\",1);\n map.put(\"SRR\",2);\n map.put(\"RSS\",1);\n map.put(\"RSR\",1);\n map.put(\"RRS\",2);\n map.put(\"RRR\",3);\n out.println(map.get(s));\n }\n out.flush();\n out.close();\n }", "FastReader scan=new FastReader(System.in);", "scan", "new FastReader(System.in)", "int t=1;", "t", "1", "while(t-->0){\n String s=scan.next();\n Map<String,Integer> map=new HashMap<>();\n map.put(\"SSS\",0);\n map.put(\"SSR\",1);\n map.put(\"SRS\",1);\n map.put(\"SRR\",2);\n map.put(\"RSS\",1);\n map.put(\"RSR\",1);\n map.put(\"RRS\",2);\n map.put(\"RRR\",3);\n out.println(map.get(s));\n }", "t-->0", "t--", "t", "0", "{\n String s=scan.next();\n Map<String,Integer> map=new HashMap<>();\n map.put(\"SSS\",0);\n map.put(\"SSR\",1);\n map.put(\"SRS\",1);\n map.put(\"SRR\",2);\n map.put(\"RSS\",1);\n map.put(\"RSR\",1);\n map.put(\"RRS\",2);\n map.put(\"RRR\",3);\n out.println(map.get(s));\n }", "String s=scan.next();", "s", "scan.next()", "scan.next", "scan", "Map<String,Integer> map=new HashMap<>();", "map", "new HashMap<>()", "map.put(\"SSS\",0)", "map.put", "map", "\"SSS\"", "0", "map.put(\"SSR\",1)", "map.put", "map", "\"SSR\"", "1", "map.put(\"SRS\",1)", "map.put", "map", "\"SRS\"", "1", "map.put(\"SRR\",2)", "map.put", "map", "\"SRR\"", "2", "map.put(\"RSS\",1)", "map.put", "map", "\"RSS\"", "1", "map.put(\"RSR\",1)", "map.put", "map", "\"RSR\"", "1", "map.put(\"RRS\",2)", "map.put", "map", "\"RRS\"", "2", "map.put(\"RRR\",3)", "map.put", "map", "\"RRR\"", "3", "out.println(map.get(s))", "out.println", "out", "map.get(s)", "map.get", "map", "s", "out.flush()", "out.flush", "out", "out.close()", "out.close", "out", "String[] Args", "Args", "static class FastReader {\n\n byte[] buf = new byte[2048];\n int index, total;\n InputStream in;\n\n FastReader(InputStream is) {\n in = is;\n }\n\n int scan() throws IOException {\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }\n\n String next() throws IOException {\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }\n\n int nextInt() throws IOException {\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n long nextLong() throws IOException {\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n }", "FastReader", "byte[] buf = new byte[2048];", "buf", "new byte[2048]", "2048", "int index", "index", "total;", "total", "InputStream in;", "in", "FastReader(InputStream is) {\n in = is;\n }", "FastReader", "{\n in = is;\n }", "in = is", "in", "is", "InputStream is", "is", "int scan() throws IOException {\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }", "scan", "{\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }", "if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }", "index >= total", "index", "total", "{\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }", "index = 0", "index", "0", "total = in.read(buf)", "total", "in.read(buf)", "in.read", "in", "buf", "if (total <= 0) {\n return -1;\n }", "total <= 0", "total", "0", "{\n return -1;\n }", "return -1;", "-1", "1", "return buf[index++];", "buf[index++]", "buf", "index++", "index", "String next() throws IOException {\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }", "next", "{\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }", "int c;", "c", "for (c = scan(); c <= 32; c = scan()) ;", "c = scan();", "c = scan()", "c", "scan()", "scan", "c <= 32", "c", "32", "c = scan()", "c = scan()", "c", "scan()", "scan", ";", "StringBuilder sb = new StringBuilder();", "sb", "new StringBuilder()", "for (; c > 32; c = scan()) {\n sb.append((char) c);\n }", ";", "c > 32", "c", "32", "c = scan()", "c = scan()", "c", "scan()", "scan", "{\n sb.append((char) c);\n }", "{\n sb.append((char) c);\n }", "sb.append((char) c)", "sb.append", "sb", "(char) c", "return sb.toString();", "sb.toString()", "sb.toString", "sb", "int nextInt() throws IOException {\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }", "nextInt", "{\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }", "int c", "c", "val = 0;", "val", "0", "for (c = scan(); c <= 32; c = scan()) ;", "c = scan();", "c = scan()", "c", "scan()", "scan", "c <= 32", "c", "32", "c = scan()", "c = scan()", "c", "scan()", "scan", ";", "boolean neg = c == '-';", "neg", "c == '-'", "c", "'-'", "if (c == '-' || c == '+') {\n c = scan();\n }", "c == '-' || c == '+'", "c == '-'", "c", "'-'", "c == '+'", "c", "'+'", "{\n c = scan();\n }", "c = scan()", "c", "scan()", "scan", "for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }", ";", "c >= '0' && c <= '9'", "c >= '0'", "c", "'0'", "c <= '9'", "c", "'9'", "c = scan()", "c = scan()", "c", "scan()", "scan", "{\n val = (val << 3) + (val << 1) + (c & 15);\n }", "{\n val = (val << 3) + (val << 1) + (c & 15);\n }", "val = (val << 3) + (val << 1) + (c & 15)", "val", "(val << 3) + (val << 1) + (c & 15)", "(val << 3) + (val << 1) + (c & 15)", "(val << 3)", "val", "3", "(val << 1)", "val", "1", "(c & 15)", "c", "15", "return neg ? -val : val;", "neg ? -val : val", "neg", "-val", "val", "val", "long nextLong() throws IOException {\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }", "nextLong", "{\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }", "int c;", "c", "long val = 0;", "val", "0", "for (c = scan(); c <= 32; c = scan()) ;", "c = scan();", "c = scan()", "c", "scan()", "scan", "c <= 32", "c", "32", "c = scan()", "c = scan()", "c", "scan()", "scan", ";", "boolean neg = c == '-';", "neg", "c == '-'", "c", "'-'", "if (c == '-' || c == '+') {\n c = scan();\n }", "c == '-' || c == '+'", "c == '-'", "c", "'-'", "c == '+'", "c", "'+'", "{\n c = scan();\n }", "c = scan()", "c", "scan()", "scan", "for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }", ";", "c >= '0' && c <= '9'", "c >= '0'", "c", "'0'", "c <= '9'", "c", "'9'", "c = scan()", "c = scan()", "c", "scan()", "scan", "{\n val = (val << 3) + (val << 1) + (c & 15);\n }", "{\n val = (val << 3) + (val << 1) + (c & 15);\n }", "val = (val << 3) + (val << 1) + (c & 15)", "val", "(val << 3) + (val << 1) + (c & 15)", "(val << 3) + (val << 1) + (c & 15)", "(val << 3)", "val", "3", "(val << 1)", "val", "1", "(c & 15)", "c", "15", "return neg ? -val : val;", "neg ? -val : val", "neg", "-val", "val", "val", "public class Main {\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] Args)throws Exception{\n FastReader scan=new FastReader(System.in);\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n String s=scan.next();\n Map<String,Integer> map=new HashMap<>();\n map.put(\"SSS\",0);\n map.put(\"SSR\",1);\n map.put(\"SRS\",1);\n map.put(\"SRR\",2);\n map.put(\"RSS\",1);\n map.put(\"RSR\",1);\n map.put(\"RRS\",2);\n map.put(\"RRR\",3);\n out.println(map.get(s));\n }\n out.flush();\n out.close();\n }\n static class FastReader {\n\n byte[] buf = new byte[2048];\n int index, total;\n InputStream in;\n\n FastReader(InputStream is) {\n in = is;\n }\n\n int scan() throws IOException {\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }\n\n String next() throws IOException {\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }\n\n int nextInt() throws IOException {\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n long nextLong() throws IOException {\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n }\n}", "public class Main {\n static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out));\n public static void main(String[] Args)throws Exception{\n FastReader scan=new FastReader(System.in);\n int t=1;\n// t=scan.nextInt();\n while(t-->0){\n String s=scan.next();\n Map<String,Integer> map=new HashMap<>();\n map.put(\"SSS\",0);\n map.put(\"SSR\",1);\n map.put(\"SRS\",1);\n map.put(\"SRR\",2);\n map.put(\"RSS\",1);\n map.put(\"RSR\",1);\n map.put(\"RRS\",2);\n map.put(\"RRR\",3);\n out.println(map.get(s));\n }\n out.flush();\n out.close();\n }\n static class FastReader {\n\n byte[] buf = new byte[2048];\n int index, total;\n InputStream in;\n\n FastReader(InputStream is) {\n in = is;\n }\n\n int scan() throws IOException {\n if (index >= total) {\n index = 0;\n total = in.read(buf);\n if (total <= 0) {\n return -1;\n }\n }\n return buf[index++];\n }\n\n String next() throws IOException {\n int c;\n for (c = scan(); c <= 32; c = scan()) ;\n StringBuilder sb = new StringBuilder();\n for (; c > 32; c = scan()) {\n sb.append((char) c);\n }\n return sb.toString();\n }\n\n int nextInt() throws IOException {\n int c, val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n long nextLong() throws IOException {\n int c;\n long val = 0;\n for (c = scan(); c <= 32; c = scan()) ;\n boolean neg = c == '-';\n if (c == '-' || c == '+') {\n c = scan();\n }\n for (; c >= '0' && c <= '9'; c = scan()) {\n val = (val << 3) + (val << 1) + (c & 15);\n }\n return neg ? -val : val;\n }\n }\n}", "Main" ]
//package com.company; import java.util.*; import java.lang.*; import java.io.*; //****Use Integer Wrapper Class for Arrays.sort()**** public class Main { static PrintWriter out=new PrintWriter(new OutputStreamWriter(System.out)); public static void main(String[] Args)throws Exception{ FastReader scan=new FastReader(System.in); int t=1; // t=scan.nextInt(); while(t-->0){ String s=scan.next(); Map<String,Integer> map=new HashMap<>(); map.put("SSS",0); map.put("SSR",1); map.put("SRS",1); map.put("SRR",2); map.put("RSS",1); map.put("RSR",1); map.put("RRS",2); map.put("RRR",3); out.println(map.get(s)); } out.flush(); out.close(); } static class FastReader { byte[] buf = new byte[2048]; int index, total; InputStream in; FastReader(InputStream is) { in = is; } int scan() throws IOException { if (index >= total) { index = 0; total = in.read(buf); if (total <= 0) { return -1; } } return buf[index++]; } String next() throws IOException { int c; for (c = scan(); c <= 32; c = scan()) ; StringBuilder sb = new StringBuilder(); for (; c > 32; c = scan()) { sb.append((char) c); } return sb.toString(); } int nextInt() throws IOException { int c, val = 0; for (c = scan(); c <= 32; c = scan()) ; boolean neg = c == '-'; if (c == '-' || c == '+') { c = scan(); } for (; c >= '0' && c <= '9'; c = scan()) { val = (val << 3) + (val << 1) + (c & 15); } return neg ? -val : val; } long nextLong() throws IOException { int c; long val = 0; for (c = scan(); c <= 32; c = scan()) ; boolean neg = c == '-'; if (c == '-' || c == '+') { c = scan(); } for (; c >= '0' && c <= '9'; c = scan()) { val = (val << 3) + (val << 1) + (c & 15); } return neg ? -val : val; } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 30, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 68, 5 ], [ 68, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 23, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 46, 47 ], [ 38, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 37, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 54, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 6, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String t = scan.next();\n int maxCnt = 0;\n int currentCnt = 0;\n for (int i = 0; i < t.length(); i++){\n if(t.charAt(i) == 'R'){\n currentCnt++;\n }else{\n currentCnt = 0;\n }\n maxCnt = Math.max(maxCnt, currentCnt);\n }\n System.out.println(maxCnt);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String t = scan.next();\n int maxCnt = 0;\n int currentCnt = 0;\n for (int i = 0; i < t.length(); i++){\n if(t.charAt(i) == 'R'){\n currentCnt++;\n }else{\n currentCnt = 0;\n }\n maxCnt = Math.max(maxCnt, currentCnt);\n }\n System.out.println(maxCnt);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String t = scan.next();\n int maxCnt = 0;\n int currentCnt = 0;\n for (int i = 0; i < t.length(); i++){\n if(t.charAt(i) == 'R'){\n currentCnt++;\n }else{\n currentCnt = 0;\n }\n maxCnt = Math.max(maxCnt, currentCnt);\n }\n System.out.println(maxCnt);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String t = scan.next();\n int maxCnt = 0;\n int currentCnt = 0;\n for (int i = 0; i < t.length(); i++){\n if(t.charAt(i) == 'R'){\n currentCnt++;\n }else{\n currentCnt = 0;\n }\n maxCnt = Math.max(maxCnt, currentCnt);\n }\n System.out.println(maxCnt);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String t = scan.next();", "t", "scan.next()", "scan.next", "scan", "int maxCnt = 0;", "maxCnt", "0", "int currentCnt = 0;", "currentCnt", "0", "for (int i = 0; i < t.length(); i++){\n if(t.charAt(i) == 'R'){\n currentCnt++;\n }else{\n currentCnt = 0;\n }\n maxCnt = Math.max(maxCnt, currentCnt);\n }", "int i = 0;", "int i = 0;", "i", "0", "i < t.length()", "i", "t.length()", "t.length", "t", "i++", "i++", "i", "{\n if(t.charAt(i) == 'R'){\n currentCnt++;\n }else{\n currentCnt = 0;\n }\n maxCnt = Math.max(maxCnt, currentCnt);\n }", "{\n if(t.charAt(i) == 'R'){\n currentCnt++;\n }else{\n currentCnt = 0;\n }\n maxCnt = Math.max(maxCnt, currentCnt);\n }", "if(t.charAt(i) == 'R'){\n currentCnt++;\n }else{\n currentCnt = 0;\n }", "t.charAt(i) == 'R'", "t.charAt(i)", "t.charAt", "t", "i", "'R'", "{\n currentCnt++;\n }", "currentCnt++", "currentCnt", "{\n currentCnt = 0;\n }", "currentCnt = 0", "currentCnt", "0", "maxCnt = Math.max(maxCnt, currentCnt)", "maxCnt", "Math.max(maxCnt, currentCnt)", "Math.max", "Math", "maxCnt", "currentCnt", "System.out.println(maxCnt)", "System.out.println", "System.out", "System", "System.out", "maxCnt", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String t = scan.next();\n int maxCnt = 0;\n int currentCnt = 0;\n for (int i = 0; i < t.length(); i++){\n if(t.charAt(i) == 'R'){\n currentCnt++;\n }else{\n currentCnt = 0;\n }\n maxCnt = Math.max(maxCnt, currentCnt);\n }\n System.out.println(maxCnt);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String t = scan.next();\n int maxCnt = 0;\n int currentCnt = 0;\n for (int i = 0; i < t.length(); i++){\n if(t.charAt(i) == 'R'){\n currentCnt++;\n }else{\n currentCnt = 0;\n }\n maxCnt = Math.max(maxCnt, currentCnt);\n }\n System.out.println(maxCnt);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String t = scan.next(); int maxCnt = 0; int currentCnt = 0; for (int i = 0; i < t.length(); i++){ if(t.charAt(i) == 'R'){ currentCnt++; }else{ currentCnt = 0; } maxCnt = Math.max(maxCnt, currentCnt); } System.out.println(maxCnt); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 114, 5 ], [ 114, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 22, 27 ], [ 8, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 28, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 8, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 8, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 8, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 61, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 8, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 72, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 84, 87 ], [ 83, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 8, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 95, 98 ], [ 94, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 99, 104 ], [ 114, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 105, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.util.*;\npublic class Main {\n public void solve() {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n if (S.equals(\"SSS\")) System.out.println(0);\n if (S.equals(\"SSR\")) System.out.println(1);\n if (S.equals(\"SRS\")) System.out.println(1);\n if (S.equals(\"RSS\")) System.out.println(1);\n if (S.equals(\"RRS\")) System.out.println(2);\n if (S.equals(\"RSR\")) System.out.println(1);\n if (S.equals(\"SRR\")) System.out.println(2);\n if (S.equals(\"RRR\")) System.out.println(3);\n\n }\n\n public static void main(String[] args) {\n new Main().solve();\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public void solve() {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n if (S.equals(\"SSS\")) System.out.println(0);\n if (S.equals(\"SSR\")) System.out.println(1);\n if (S.equals(\"SRS\")) System.out.println(1);\n if (S.equals(\"RSS\")) System.out.println(1);\n if (S.equals(\"RRS\")) System.out.println(2);\n if (S.equals(\"RSR\")) System.out.println(1);\n if (S.equals(\"SRR\")) System.out.println(2);\n if (S.equals(\"RRR\")) System.out.println(3);\n\n }\n\n public static void main(String[] args) {\n new Main().solve();\n }\n}", "Main", "public void solve() {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n if (S.equals(\"SSS\")) System.out.println(0);\n if (S.equals(\"SSR\")) System.out.println(1);\n if (S.equals(\"SRS\")) System.out.println(1);\n if (S.equals(\"RSS\")) System.out.println(1);\n if (S.equals(\"RRS\")) System.out.println(2);\n if (S.equals(\"RSR\")) System.out.println(1);\n if (S.equals(\"SRR\")) System.out.println(2);\n if (S.equals(\"RRR\")) System.out.println(3);\n\n }", "solve", "{\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n if (S.equals(\"SSS\")) System.out.println(0);\n if (S.equals(\"SSR\")) System.out.println(1);\n if (S.equals(\"SRS\")) System.out.println(1);\n if (S.equals(\"RSS\")) System.out.println(1);\n if (S.equals(\"RRS\")) System.out.println(2);\n if (S.equals(\"RSR\")) System.out.println(1);\n if (S.equals(\"SRR\")) System.out.println(2);\n if (S.equals(\"RRR\")) System.out.println(3);\n\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String S = scan.next();", "S", "scan.next()", "scan.next", "scan", "if (S.equals(\"SSS\")) System.out.println(0);", "S.equals(\"SSS\")", "S.equals", "S", "\"SSS\"", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "if (S.equals(\"SSR\")) System.out.println(1);", "S.equals(\"SSR\")", "S.equals", "S", "\"SSR\"", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if (S.equals(\"SRS\")) System.out.println(1);", "S.equals(\"SRS\")", "S.equals", "S", "\"SRS\"", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if (S.equals(\"RSS\")) System.out.println(1);", "S.equals(\"RSS\")", "S.equals", "S", "\"RSS\"", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if (S.equals(\"RRS\")) System.out.println(2);", "S.equals(\"RRS\")", "S.equals", "S", "\"RRS\"", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if (S.equals(\"RSR\")) System.out.println(1);", "S.equals(\"RSR\")", "S.equals", "S", "\"RSR\"", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if (S.equals(\"SRR\")) System.out.println(2);", "S.equals(\"SRR\")", "S.equals", "S", "\"SRR\"", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if (S.equals(\"RRR\")) System.out.println(3);", "S.equals(\"RRR\")", "S.equals", "S", "\"RRR\"", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "public static void main(String[] args) {\n new Main().solve();\n }", "main", "{\n new Main().solve();\n }", "new Main().solve()", "new Main().solve", "new Main()", "String[] args", "args", "public class Main {\n public void solve() {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n if (S.equals(\"SSS\")) System.out.println(0);\n if (S.equals(\"SSR\")) System.out.println(1);\n if (S.equals(\"SRS\")) System.out.println(1);\n if (S.equals(\"RSS\")) System.out.println(1);\n if (S.equals(\"RRS\")) System.out.println(2);\n if (S.equals(\"RSR\")) System.out.println(1);\n if (S.equals(\"SRR\")) System.out.println(2);\n if (S.equals(\"RRR\")) System.out.println(3);\n\n }\n\n public static void main(String[] args) {\n new Main().solve();\n }\n}", "public class Main {\n public void solve() {\n Scanner scan = new Scanner(System.in);\n String S = scan.next();\n if (S.equals(\"SSS\")) System.out.println(0);\n if (S.equals(\"SSR\")) System.out.println(1);\n if (S.equals(\"SRS\")) System.out.println(1);\n if (S.equals(\"RSS\")) System.out.println(1);\n if (S.equals(\"RRS\")) System.out.println(2);\n if (S.equals(\"RSR\")) System.out.println(1);\n if (S.equals(\"SRR\")) System.out.println(2);\n if (S.equals(\"RRR\")) System.out.println(3);\n\n }\n\n public static void main(String[] args) {\n new Main().solve();\n }\n}", "Main" ]
import java.util.*; public class Main { public void solve() { Scanner scan = new Scanner(System.in); String S = scan.next(); if (S.equals("SSS")) System.out.println(0); if (S.equals("SSR")) System.out.println(1); if (S.equals("SRS")) System.out.println(1); if (S.equals("RSS")) System.out.println(1); if (S.equals("RRS")) System.out.println(2); if (S.equals("RSR")) System.out.println(1); if (S.equals("SRR")) System.out.println(2); if (S.equals("RRR")) System.out.println(3); } public static void main(String[] args) { new Main().solve(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 77, 5 ], [ 77, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 10, 22 ], [ 22, 23 ], [ 22, 24 ], [ 10, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 25, 35 ], [ 35, 36 ], [ 36, 37 ], [ 25, 38 ], [ 39, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 40, 47 ], [ 47, 48 ], [ 48, 49 ], [ 40, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 53, 54 ], [ 54, 55 ], [ 53, 56 ], [ 53, 57 ], [ 50, 58 ], [ 58, 59 ], [ 58, 60 ], [ 10, 61 ], [ 61, 62 ], [ 61, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 63, 67 ], [ 10, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 6, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n int max = 0;\n int count = 0;\n for (int i = 0; i < S.length(); i++) {\n if (S.charAt(i) == 'R') {\n count++;\n } else {\n max = Math.max(max, count);\n count = 0;\n }\n }\n max = Math.max(max, count);\n System.out.println(max);\n }\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n int max = 0;\n int count = 0;\n for (int i = 0; i < S.length(); i++) {\n if (S.charAt(i) == 'R') {\n count++;\n } else {\n max = Math.max(max, count);\n count = 0;\n }\n }\n max = Math.max(max, count);\n System.out.println(max);\n }\n }\n}", "Main", "public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n int max = 0;\n int count = 0;\n for (int i = 0; i < S.length(); i++) {\n if (S.charAt(i) == 'R') {\n count++;\n } else {\n max = Math.max(max, count);\n count = 0;\n }\n }\n max = Math.max(max, count);\n System.out.println(max);\n }\n }", "main", "{\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n int max = 0;\n int count = 0;\n for (int i = 0; i < S.length(); i++) {\n if (S.charAt(i) == 'R') {\n count++;\n } else {\n max = Math.max(max, count);\n count = 0;\n }\n }\n max = Math.max(max, count);\n System.out.println(max);\n }\n }", "try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n int max = 0;\n int count = 0;\n for (int i = 0; i < S.length(); i++) {\n if (S.charAt(i) == 'R') {\n count++;\n } else {\n max = Math.max(max, count);\n count = 0;\n }\n }\n max = Math.max(max, count);\n System.out.println(max);\n }", "{\n String S = sc.next();\n int max = 0;\n int count = 0;\n for (int i = 0; i < S.length(); i++) {\n if (S.charAt(i) == 'R') {\n count++;\n } else {\n max = Math.max(max, count);\n count = 0;\n }\n }\n max = Math.max(max, count);\n System.out.println(max);\n }", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "int max = 0;", "max", "0", "int count = 0;", "count", "0", "for (int i = 0; i < S.length(); i++) {\n if (S.charAt(i) == 'R') {\n count++;\n } else {\n max = Math.max(max, count);\n count = 0;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < S.length()", "i", "S.length()", "S.length", "S", "i++", "i++", "i", "{\n if (S.charAt(i) == 'R') {\n count++;\n } else {\n max = Math.max(max, count);\n count = 0;\n }\n }", "{\n if (S.charAt(i) == 'R') {\n count++;\n } else {\n max = Math.max(max, count);\n count = 0;\n }\n }", "if (S.charAt(i) == 'R') {\n count++;\n } else {\n max = Math.max(max, count);\n count = 0;\n }", "S.charAt(i) == 'R'", "S.charAt(i)", "S.charAt", "S", "i", "'R'", "{\n count++;\n }", "count++", "count", "{\n max = Math.max(max, count);\n count = 0;\n }", "max = Math.max(max, count)", "max", "Math.max(max, count)", "Math.max", "Math", "max", "count", "count = 0", "count", "0", "max = Math.max(max, count)", "max", "Math.max(max, count)", "Math.max", "Math", "max", "count", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n int max = 0;\n int count = 0;\n for (int i = 0; i < S.length(); i++) {\n if (S.charAt(i) == 'R') {\n count++;\n } else {\n max = Math.max(max, count);\n count = 0;\n }\n }\n max = Math.max(max, count);\n System.out.println(max);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n try (Scanner sc = new Scanner(System.in)) {\n String S = sc.next();\n int max = 0;\n int count = 0;\n for (int i = 0; i < S.length(); i++) {\n if (S.charAt(i) == 'R') {\n count++;\n } else {\n max = Math.max(max, count);\n count = 0;\n }\n }\n max = Math.max(max, count);\n System.out.println(max);\n }\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { String S = sc.next(); int max = 0; int count = 0; for (int i = 0; i < S.length(); i++) { if (S.charAt(i) == 'R') { count++; } else { max = Math.max(max, count); count = 0; } } max = Math.max(max, count); System.out.println(max); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 72, 5 ], [ 72, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 18, 23 ], [ 23, 24 ], [ 17, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 17, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 32, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 32, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 53, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 47, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 63, 68 ], [ 6, 69 ], [ 69, 70 ], [ 0, 71 ], [ 71, 72 ], [ 71, 73 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 文字列の入力\n\t\tString s = sc.next();\n\t\t// 出力\n\t\tif(s.indexOf(\"RRR\") != -1){\n\t\t System.out.println(3);\n\t\t}\n\t\telse if(s.indexOf(\"RR\") != -1){\n\t\t System.out.println(2);\n\t\t}\n\t\telse if(s.indexOf(\"R\") != -1){\n\t\t System.out.println(1);\n\t\t}\n\t\telse{\n\t\t System.out.println(0);\n\t\t}\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 文字列の入力\n\t\tString s = sc.next();\n\t\t// 出力\n\t\tif(s.indexOf(\"RRR\") != -1){\n\t\t System.out.println(3);\n\t\t}\n\t\telse if(s.indexOf(\"RR\") != -1){\n\t\t System.out.println(2);\n\t\t}\n\t\telse if(s.indexOf(\"R\") != -1){\n\t\t System.out.println(1);\n\t\t}\n\t\telse{\n\t\t System.out.println(0);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 文字列の入力\n\t\tString s = sc.next();\n\t\t// 出力\n\t\tif(s.indexOf(\"RRR\") != -1){\n\t\t System.out.println(3);\n\t\t}\n\t\telse if(s.indexOf(\"RR\") != -1){\n\t\t System.out.println(2);\n\t\t}\n\t\telse if(s.indexOf(\"R\") != -1){\n\t\t System.out.println(1);\n\t\t}\n\t\telse{\n\t\t System.out.println(0);\n\t\t}\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 文字列の入力\n\t\tString s = sc.next();\n\t\t// 出力\n\t\tif(s.indexOf(\"RRR\") != -1){\n\t\t System.out.println(3);\n\t\t}\n\t\telse if(s.indexOf(\"RR\") != -1){\n\t\t System.out.println(2);\n\t\t}\n\t\telse if(s.indexOf(\"R\") != -1){\n\t\t System.out.println(1);\n\t\t}\n\t\telse{\n\t\t System.out.println(0);\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if(s.indexOf(\"RRR\") != -1){\n\t\t System.out.println(3);\n\t\t}\n\t\telse if(s.indexOf(\"RR\") != -1){\n\t\t System.out.println(2);\n\t\t}\n\t\telse if(s.indexOf(\"R\") != -1){\n\t\t System.out.println(1);\n\t\t}\n\t\telse{\n\t\t System.out.println(0);\n\t\t}", "s.indexOf(\"RRR\") != -1", "s.indexOf(\"RRR\")", "s.indexOf", "s", "\"RRR\"", "-1", "1", "{\n\t\t System.out.println(3);\n\t\t}", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if(s.indexOf(\"RR\") != -1){\n\t\t System.out.println(2);\n\t\t}\n\t\telse if(s.indexOf(\"R\") != -1){\n\t\t System.out.println(1);\n\t\t}\n\t\telse{\n\t\t System.out.println(0);\n\t\t}", "s.indexOf(\"RR\") != -1", "s.indexOf(\"RR\")", "s.indexOf", "s", "\"RR\"", "-1", "1", "{\n\t\t System.out.println(2);\n\t\t}", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(s.indexOf(\"R\") != -1){\n\t\t System.out.println(1);\n\t\t}\n\t\telse{\n\t\t System.out.println(0);\n\t\t}", "s.indexOf(\"R\") != -1", "s.indexOf(\"R\")", "s.indexOf", "s", "\"R\"", "-1", "1", "{\n\t\t System.out.println(1);\n\t\t}", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "{\n\t\t System.out.println(0);\n\t\t}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 文字列の入力\n\t\tString s = sc.next();\n\t\t// 出力\n\t\tif(s.indexOf(\"RRR\") != -1){\n\t\t System.out.println(3);\n\t\t}\n\t\telse if(s.indexOf(\"RR\") != -1){\n\t\t System.out.println(2);\n\t\t}\n\t\telse if(s.indexOf(\"R\") != -1){\n\t\t System.out.println(1);\n\t\t}\n\t\telse{\n\t\t System.out.println(0);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 文字列の入力\n\t\tString s = sc.next();\n\t\t// 出力\n\t\tif(s.indexOf(\"RRR\") != -1){\n\t\t System.out.println(3);\n\t\t}\n\t\telse if(s.indexOf(\"RR\") != -1){\n\t\t System.out.println(2);\n\t\t}\n\t\telse if(s.indexOf(\"R\") != -1){\n\t\t System.out.println(1);\n\t\t}\n\t\telse{\n\t\t System.out.println(0);\n\t\t}\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); // 文字列の入力 String s = sc.next(); // 出力 if(s.indexOf("RRR") != -1){ System.out.println(3); } else if(s.indexOf("RR") != -1){ System.out.println(2); } else if(s.indexOf("R") != -1){ System.out.println(1); } else{ System.out.println(0); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 0, 13, 17, 0, 13, 17, 30, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 30, 0, 13, 17, 14, 2, 4, 18, 13, 17, 17, 30, 14, 2, 4, 18, 13, 17, 17, 30, 0, 13, 17, 30, 0, 13, 17, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 107, 5 ], [ 107, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 21, 26 ], [ 20, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 29, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 28, 42 ], [ 42, 43 ], [ 42, 44 ], [ 28, 45 ], [ 45, 46 ], [ 45, 47 ], [ 20, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 50, 55 ], [ 49, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 59, 62 ], [ 58, 63 ], [ 57, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 57, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 49, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 73, 78 ], [ 72, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 82, 85 ], [ 81, 86 ], [ 80, 87 ], [ 87, 88 ], [ 88, 89 ], [ 88, 90 ], [ 80, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 72, 95 ], [ 95, 96 ], [ 95, 97 ], [ 8, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 6, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n int count = 0;\n if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }\n System.out.println(count);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n int count = 0;\n if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n int count = 0;\n if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }\n System.out.println(count);\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n int count = 0;\n if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }\n System.out.println(count);\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String s = scan.next();", "s", "scan.next()", "scan.next", "scan", "int count = 0;", "count", "0", "if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }", "s.charAt(1) == 'S'", "s.charAt(1)", "s.charAt", "s", "1", "'S'", "{\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }", "if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;", "s.charAt(0) == 'R' || s.charAt(2) == 'R'", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "count = 1", "count", "1", "count = 0", "count", "0", "{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }", "if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "{\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }", "if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n count = 3;\n }", "count = 3", "count", "3", "{\n count = 2;\n }", "count = 2", "count", "2", "if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;", "s.charAt(2) == 'R'", "s.charAt(2)", "s.charAt", "s", "2", "'R'", "{\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }", "if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }", "s.charAt(0) == 'R'", "s.charAt(0)", "s.charAt", "s", "0", "'R'", "{\n count = 3;\n }", "count = 3", "count", "3", "{\n count = 2;\n }", "count = 2", "count", "2", "count = 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String args[]", "args", "public class Main{\n\tpublic static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n int count = 0;\n if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }\n System.out.println(count);\n }\n}", "public class Main{\n\tpublic static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n String s = scan.next();\n\n int count = 0;\n if(s.charAt(1) == 'S'){\n if(s.charAt(0) == 'R' || s.charAt(2) == 'R')\n count = 1;\n else\n count = 0;\n }else{\n if(s.charAt(0) == 'R'){\n if(s.charAt(2) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else if(s.charAt(2) == 'R'){\n if(s.charAt(0) == 'R'){\n count = 3;\n }else{\n count = 2;\n }\n }else\n count = 1;\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String args[]){ Scanner scan = new Scanner(System.in); String s = scan.next(); int count = 0; if(s.charAt(1) == 'S'){ if(s.charAt(0) == 'R' || s.charAt(2) == 'R') count = 1; else count = 0; }else{ if(s.charAt(0) == 'R'){ if(s.charAt(2) == 'R'){ count = 3; }else{ count = 2; } }else if(s.charAt(2) == 'R'){ if(s.charAt(0) == 'R'){ count = 3; }else{ count = 2; } }else count = 1; } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 41, 13, 17, 42, 2, 2, 13, 4, 18, 13, 2, 4, 18, 13, 13, 17, 30, 40, 13, 40, 13, 4, 18, 13, 13, 30, 42, 2, 2, 13, 4, 18, 13, 2, 4, 18, 13, 13, 17, 30, 40, 13, 14, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 4, 18, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 0, 25 ], [ 25, 26 ], [ 25, 27 ], [ 0, 28 ], [ 28, 29 ], [ 28, 30 ], [ 0, 31 ], [ 138, 32 ], [ 138, 33 ], [ 33, 34 ], [ 33, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 35, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 35, 49 ], [ 49, 50 ], [ 49, 51 ], [ 35, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 52, 62 ], [ 63, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 65, 70 ], [ 64, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 76, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 82, 87 ], [ 75, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 91, 92 ], [ 71, 93 ], [ 93, 94 ], [ 94, 95 ], [ 93, 96 ], [ 64, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 102, 103 ], [ 103, 104 ], [ 99, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 106, 109 ], [ 105, 110 ], [ 98, 111 ], [ 111, 112 ], [ 112, 113 ], [ 35, 114 ], [ 114, 115 ], [ 115, 116 ], [ 116, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 119, 124 ], [ 114, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 126, 131 ], [ 131, 132 ], [ 132, 133 ], [ 131, 134 ], [ 33, 135 ], [ 135, 136 ], [ 0, 137 ], [ 137, 138 ], [ 137, 139 ] ]
[ "import java.util.Arrays;\nimport java.util.Collection;\nimport java.util.Collections;\nimport java.util.HashMap;\nimport java.util.HashSet;\nimport java.util.Iterator;\nimport java.util.List;\nimport java.util.Map;\nimport java.util.Scanner;\nimport java.util.Vector;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\n\t\tString s1=ob.next();\n\t\tchar s[]=s1.toCharArray();\n\t\tVector v=new Vector();\n\t\tfor (int i=0; i<s1.length();) {\n\t\t\tif (s1.charAt(i)=='R') {\n\t\t\t\tint count=0;\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='R') {\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tv.add(count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='S') {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (v.isEmpty()) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(Collections.max(v));\n\t\t}\n\t}\n\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.Collection;", "Collection", "java.util", "import java.util.Collections;", "Collections", "java.util", "import java.util.HashMap;", "HashMap", "java.util", "import java.util.HashSet;", "HashSet", "java.util", "import java.util.Iterator;", "Iterator", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Map;", "Map", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.Vector;", "Vector", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\n\t\tString s1=ob.next();\n\t\tchar s[]=s1.toCharArray();\n\t\tVector v=new Vector();\n\t\tfor (int i=0; i<s1.length();) {\n\t\t\tif (s1.charAt(i)=='R') {\n\t\t\t\tint count=0;\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='R') {\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tv.add(count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='S') {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (v.isEmpty()) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(Collections.max(v));\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\n\t\tString s1=ob.next();\n\t\tchar s[]=s1.toCharArray();\n\t\tVector v=new Vector();\n\t\tfor (int i=0; i<s1.length();) {\n\t\t\tif (s1.charAt(i)=='R') {\n\t\t\t\tint count=0;\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='R') {\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tv.add(count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='S') {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (v.isEmpty()) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(Collections.max(v));\n\t\t}\n\t}", "main", "{\n\t\tScanner ob=new Scanner(System.in);\n\n\t\tString s1=ob.next();\n\t\tchar s[]=s1.toCharArray();\n\t\tVector v=new Vector();\n\t\tfor (int i=0; i<s1.length();) {\n\t\t\tif (s1.charAt(i)=='R') {\n\t\t\t\tint count=0;\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='R') {\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tv.add(count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='S') {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (v.isEmpty()) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(Collections.max(v));\n\t\t}\n\t}", "Scanner ob=new Scanner(System.in);", "ob", "new Scanner(System.in)", "String s1=ob.next();", "s1", "ob.next()", "ob.next", "ob", "char s[]=s1.toCharArray();", "s", "s1.toCharArray()", "s1.toCharArray", "s1", "Vector v=new Vector();", "v", "new Vector()", "for (int i=0; i<s1.length();) {\n\t\t\tif (s1.charAt(i)=='R') {\n\t\t\t\tint count=0;\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='R') {\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tv.add(count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='S') {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<s1.length()", "i", "s1.length()", "s1.length", "s1", "{\n\t\t\tif (s1.charAt(i)=='R') {\n\t\t\t\tint count=0;\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='R') {\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tv.add(count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='S') {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "{\n\t\t\tif (s1.charAt(i)=='R') {\n\t\t\t\tint count=0;\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='R') {\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tv.add(count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='S') {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}", "if (s1.charAt(i)=='R') {\n\t\t\t\tint count=0;\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='R') {\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tv.add(count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='S') {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}", "s1.charAt(i)=='R'", "s1.charAt(i)", "s1.charAt", "s1", "i", "'R'", "{\n\t\t\t\tint count=0;\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='R') {\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tv.add(count);\n\t\t\t}", "int count=0;", "count", "0", "while (i<s1.length()&&s1.charAt(i)=='R') {\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}", "i<s1.length()&&s1.charAt(i)=='R'", "i<s1.length()", "i", "s1.length()", "s1.length", "s1", "s1.charAt(i)=='R'", "s1.charAt(i)", "s1.charAt", "s1", "i", "'R'", "{\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}", "i++", "i", "count++", "count", "v.add(count)", "v.add", "v", "count", "{\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='S') {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}", "while (i<s1.length()&&s1.charAt(i)=='S') {\n\t\t\t\t\ti++;\n\t\t\t\t}", "i<s1.length()&&s1.charAt(i)=='S'", "i<s1.length()", "i", "s1.length()", "s1.length", "s1", "s1.charAt(i)=='S'", "s1.charAt(i)", "s1.charAt", "s1", "i", "'S'", "{\n\t\t\t\t\ti++;\n\t\t\t\t}", "i++", "i", "if (v.isEmpty()) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(Collections.max(v));\n\t\t}", "v.isEmpty()", "v.isEmpty", "v", "{\n\t\t\tSystem.out.println(0);\n\t\t}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "{\n\t\t\tSystem.out.println(Collections.max(v));\n\t\t}", "System.out.println(Collections.max(v))", "System.out.println", "System.out", "System", "System.out", "Collections.max(v)", "Collections.max", "Collections", "v", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\n\t\tString s1=ob.next();\n\t\tchar s[]=s1.toCharArray();\n\t\tVector v=new Vector();\n\t\tfor (int i=0; i<s1.length();) {\n\t\t\tif (s1.charAt(i)=='R') {\n\t\t\t\tint count=0;\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='R') {\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tv.add(count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='S') {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (v.isEmpty()) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(Collections.max(v));\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner ob=new Scanner(System.in);\n\n\t\tString s1=ob.next();\n\t\tchar s[]=s1.toCharArray();\n\t\tVector v=new Vector();\n\t\tfor (int i=0; i<s1.length();) {\n\t\t\tif (s1.charAt(i)=='R') {\n\t\t\t\tint count=0;\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='R') {\n\t\t\t\t\ti++;\n\t\t\t\t\tcount++;\n\t\t\t\t}\n\t\t\t\tv.add(count);\n\t\t\t}\n\t\t\telse {\n\t\t\t\twhile (i<s1.length()&&s1.charAt(i)=='S') {\n\t\t\t\t\ti++;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tif (v.isEmpty()) {\n\t\t\tSystem.out.println(0);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(Collections.max(v));\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Arrays; import java.util.Collection; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; import java.util.Iterator; import java.util.List; import java.util.Map; import java.util.Scanner; import java.util.Vector; public class Main { public static void main(String[] args) { Scanner ob=new Scanner(System.in); String s1=ob.next(); char s[]=s1.toCharArray(); Vector v=new Vector(); for (int i=0; i<s1.length();) { if (s1.charAt(i)=='R') { int count=0; while (i<s1.length()&&s1.charAt(i)=='R') { i++; count++; } v.add(count); } else { while (i<s1.length()&&s1.charAt(i)=='S') { i++; } } } if (v.isEmpty()) { System.out.println(0); } else { System.out.println(Collections.max(v)); } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 41, 13, 20, 4, 18, 13, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 13, 14, 2, 18, 13, 13, 17, 30, 40, 13, 0, 13, 17, 14, 2, 2, 18, 13, 13, 17, 13, 30, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 86, 8 ], [ 86, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 29, 30 ], [ 30, 31 ], [ 11, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 32, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 46, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 55, 61 ], [ 61, 62 ], [ 62, 63 ], [ 61, 64 ], [ 64, 65 ], [ 64, 66 ], [ 46, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 69, 73 ], [ 68, 74 ], [ 67, 75 ], [ 75, 76 ], [ 11, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 9, 83 ], [ 83, 84 ], [ 0, 85 ], [ 85, 86 ], [ 85, 87 ] ]
[ "import java.util.*;\nimport java.lang.Math;\npublic class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n boolean flag = false;\n int counter = 0;\n char[] work = new char[S.length()];\n for(int i = 0; i < S.length(); i++){\n work[i] = S.charAt(i);\n if(work[i] == 'R'){\n counter++;\n flag = true;\n }\n if(work[i] == 'S' && flag){\n break;\n }\n }\n System.out.println(counter);\n }\n}", "import java.util.*;", "util.*", "java", "import java.lang.Math;", "Math", "java.lang", "public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n boolean flag = false;\n int counter = 0;\n char[] work = new char[S.length()];\n for(int i = 0; i < S.length(); i++){\n work[i] = S.charAt(i);\n if(work[i] == 'R'){\n counter++;\n flag = true;\n }\n if(work[i] == 'S' && flag){\n break;\n }\n }\n System.out.println(counter);\n }\n}", "Main", "public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n boolean flag = false;\n int counter = 0;\n char[] work = new char[S.length()];\n for(int i = 0; i < S.length(); i++){\n work[i] = S.charAt(i);\n if(work[i] == 'R'){\n counter++;\n flag = true;\n }\n if(work[i] == 'S' && flag){\n break;\n }\n }\n System.out.println(counter);\n }", "main", "{\n // Your code here!\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n boolean flag = false;\n int counter = 0;\n char[] work = new char[S.length()];\n for(int i = 0; i < S.length(); i++){\n work[i] = S.charAt(i);\n if(work[i] == 'R'){\n counter++;\n flag = true;\n }\n if(work[i] == 'S' && flag){\n break;\n }\n }\n System.out.println(counter);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "boolean flag = false;", "flag", "false", "int counter = 0;", "counter", "0", "char[] work = new char[S.length()];", "work", "new char[S.length()]", "S.length()", "S.length", "S", "for(int i = 0; i < S.length(); i++){\n work[i] = S.charAt(i);\n if(work[i] == 'R'){\n counter++;\n flag = true;\n }\n if(work[i] == 'S' && flag){\n break;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < S.length()", "i", "S.length()", "S.length", "S", "i++", "i++", "i", "{\n work[i] = S.charAt(i);\n if(work[i] == 'R'){\n counter++;\n flag = true;\n }\n if(work[i] == 'S' && flag){\n break;\n }\n }", "{\n work[i] = S.charAt(i);\n if(work[i] == 'R'){\n counter++;\n flag = true;\n }\n if(work[i] == 'S' && flag){\n break;\n }\n }", "work[i] = S.charAt(i)", "work[i]", "work", "i", "S.charAt(i)", "S.charAt", "S", "i", "if(work[i] == 'R'){\n counter++;\n flag = true;\n }", "work[i] == 'R'", "work[i]", "work", "i", "'R'", "{\n counter++;\n flag = true;\n }", "counter++", "counter", "flag = true", "flag", "true", "if(work[i] == 'S' && flag){\n break;\n }", "work[i] == 'S' && flag", "work[i] == 'S'", "work[i]", "work", "i", "'S'", "flag", "{\n break;\n }", "break;", "System.out.println(counter)", "System.out.println", "System.out", "System", "System.out", "counter", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n boolean flag = false;\n int counter = 0;\n char[] work = new char[S.length()];\n for(int i = 0; i < S.length(); i++){\n work[i] = S.charAt(i);\n if(work[i] == 'R'){\n counter++;\n flag = true;\n }\n if(work[i] == 'S' && flag){\n break;\n }\n }\n System.out.println(counter);\n }\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n // Your code here!\n Scanner sc = new Scanner(System.in);\n String S = sc.next();\n boolean flag = false;\n int counter = 0;\n char[] work = new char[S.length()];\n for(int i = 0; i < S.length(); i++){\n work[i] = S.charAt(i);\n if(work[i] == 'R'){\n counter++;\n flag = true;\n }\n if(work[i] == 'S' && flag){\n break;\n }\n }\n System.out.println(counter);\n }\n}", "Main" ]
import java.util.*; import java.lang.Math; public class Main { public static void main(String[] args) throws Exception { // Your code here! Scanner sc = new Scanner(System.in); String S = sc.next(); boolean flag = false; int counter = 0; char[] work = new char[S.length()]; for(int i = 0; i < S.length(); i++){ work[i] = S.charAt(i); if(work[i] == 'R'){ counter++; flag = true; } if(work[i] == 'S' && flag){ break; } } System.out.println(counter); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 4, 18, 4, 18, 13, 13, 2, 13, 17, 17, 30, 40, 13, 14, 2, 13, 13, 30, 0, 13, 13, 30, 14, 2, 13, 13, 30, 0, 13, 13, 0, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 82, 5 ], [ 82, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 39, 43 ], [ 43, 44 ], [ 43, 45 ], [ 37, 46 ], [ 36, 47 ], [ 47, 48 ], [ 48, 49 ], [ 47, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 36, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 58, 67 ], [ 67, 68 ], [ 67, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 6, 79 ], [ 79, 80 ], [ 0, 81 ], [ 81, 82 ], [ 81, 83 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n String S = scan.next();\n\n\n int count = 0;\n int max = 0;\n\n for (int i = 0; i < 3; i++) {\n \tif (S.substring(i,i+1).equals(\"R\")) {\n \t\tcount++;\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t} else {\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t\tcount = 0;\n \t}\n }\n\n System.out.println(max);\n\n scan.close();\n\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n String S = scan.next();\n\n\n int count = 0;\n int max = 0;\n\n for (int i = 0; i < 3; i++) {\n \tif (S.substring(i,i+1).equals(\"R\")) {\n \t\tcount++;\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t} else {\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t\tcount = 0;\n \t}\n }\n\n System.out.println(max);\n\n scan.close();\n\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n String S = scan.next();\n\n\n int count = 0;\n int max = 0;\n\n for (int i = 0; i < 3; i++) {\n \tif (S.substring(i,i+1).equals(\"R\")) {\n \t\tcount++;\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t} else {\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t\tcount = 0;\n \t}\n }\n\n System.out.println(max);\n\n scan.close();\n\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n\n String S = scan.next();\n\n\n int count = 0;\n int max = 0;\n\n for (int i = 0; i < 3; i++) {\n \tif (S.substring(i,i+1).equals(\"R\")) {\n \t\tcount++;\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t} else {\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t\tcount = 0;\n \t}\n }\n\n System.out.println(max);\n\n scan.close();\n\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String S = scan.next();", "S", "scan.next()", "scan.next", "scan", "int count = 0;", "count", "0", "int max = 0;", "max", "0", "for (int i = 0; i < 3; i++) {\n \tif (S.substring(i,i+1).equals(\"R\")) {\n \t\tcount++;\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t} else {\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t\tcount = 0;\n \t}\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n \tif (S.substring(i,i+1).equals(\"R\")) {\n \t\tcount++;\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t} else {\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t\tcount = 0;\n \t}\n }", "{\n \tif (S.substring(i,i+1).equals(\"R\")) {\n \t\tcount++;\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t} else {\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t\tcount = 0;\n \t}\n }", "if (S.substring(i,i+1).equals(\"R\")) {\n \t\tcount++;\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t} else {\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t\tcount = 0;\n \t}", "S.substring(i,i+1).equals(\"R\")", "S.substring(i,i+1).equals", "S.substring(i,i+1)", "S.substring", "S", "i", "i+1", "i", "1", "\"R\"", "{\n \t\tcount++;\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t}", "count++", "count", "if (max < count) {\n \t\t\tmax = count;\n \t\t}", "max < count", "max", "count", "{\n \t\t\tmax = count;\n \t\t}", "max = count", "max", "count", "{\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t\tcount = 0;\n \t}", "if (max < count) {\n \t\t\tmax = count;\n \t\t}", "max < count", "max", "count", "{\n \t\t\tmax = count;\n \t\t}", "max = count", "max", "count", "count = 0", "count", "0", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n String S = scan.next();\n\n\n int count = 0;\n int max = 0;\n\n for (int i = 0; i < 3; i++) {\n \tif (S.substring(i,i+1).equals(\"R\")) {\n \t\tcount++;\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t} else {\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t\tcount = 0;\n \t}\n }\n\n System.out.println(max);\n\n scan.close();\n\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n\n String S = scan.next();\n\n\n int count = 0;\n int max = 0;\n\n for (int i = 0; i < 3; i++) {\n \tif (S.substring(i,i+1).equals(\"R\")) {\n \t\tcount++;\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t} else {\n \t\tif (max < count) {\n \t\t\tmax = count;\n \t\t}\n \t\tcount = 0;\n \t}\n }\n\n System.out.println(max);\n\n scan.close();\n\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String S = scan.next(); int count = 0; int max = 0; for (int i = 0; i < 3; i++) { if (S.substring(i,i+1).equals("R")) { count++; if (max < count) { max = count; } } else { if (max < count) { max = count; } count = 0; } } System.out.println(max); scan.close(); } }
[ 7, 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, 0, 13, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 0, 13, 2, 13, 17, 30, 0, 13, 17, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 28, 30 ], [ 8, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 31, 41 ], [ 41, 42 ], [ 42, 43 ], [ 31, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 47, 51 ], [ 46, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 55, 56 ], [ 55, 57 ], [ 46, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 45, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 62, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 8, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 70, 75 ], [ 6, 76 ], [ 76, 77 ] ]
[ "import java.util.*;\n\nclass Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.nextLine();\n char[] arr = s.toCharArray();\n int max;\n int c;\n c = max = 0;\n for (int i = 0; i < arr.length; i++) {\n if (arr[i] == 'R') {\n c = c + 1;\n } else {\n c = 0;\n }\n if (c > max) {\n max = c;\n }\n }\n System.out.println(max);\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.nextLine();\n char[] arr = s.toCharArray();\n int max;\n int c;\n c = max = 0;\n for (int i = 0; i < arr.length; i++) {\n if (arr[i] == 'R') {\n c = c + 1;\n } else {\n c = 0;\n }\n if (c > max) {\n max = c;\n }\n }\n System.out.println(max);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n String s = in.nextLine();\n char[] arr = s.toCharArray();\n int max;\n int c;\n c = max = 0;\n for (int i = 0; i < arr.length; i++) {\n if (arr[i] == 'R') {\n c = c + 1;\n } else {\n c = 0;\n }\n if (c > max) {\n max = c;\n }\n }\n System.out.println(max);\n }", "main", "{\n Scanner in = new Scanner(System.in);\n String s = in.nextLine();\n char[] arr = s.toCharArray();\n int max;\n int c;\n c = max = 0;\n for (int i = 0; i < arr.length; i++) {\n if (arr[i] == 'R') {\n c = c + 1;\n } else {\n c = 0;\n }\n if (c > max) {\n max = c;\n }\n }\n System.out.println(max);\n }", "Scanner in = new Scanner(System.in);", "in", "new Scanner(System.in)", "String s = in.nextLine();", "s", "in.nextLine()", "in.nextLine", "in", "char[] arr = s.toCharArray();", "arr", "s.toCharArray()", "s.toCharArray", "s", "int max;", "max", "int c;", "c", "c = max = 0", "c", "max = 0", "max", "0", "for (int i = 0; i < arr.length; i++) {\n if (arr[i] == 'R') {\n c = c + 1;\n } else {\n c = 0;\n }\n if (c > max) {\n max = c;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n if (arr[i] == 'R') {\n c = c + 1;\n } else {\n c = 0;\n }\n if (c > max) {\n max = c;\n }\n }", "{\n if (arr[i] == 'R') {\n c = c + 1;\n } else {\n c = 0;\n }\n if (c > max) {\n max = c;\n }\n }", "if (arr[i] == 'R') {\n c = c + 1;\n } else {\n c = 0;\n }", "arr[i] == 'R'", "arr[i]", "arr", "i", "'R'", "{\n c = c + 1;\n }", "c = c + 1", "c", "c + 1", "c", "1", "{\n c = 0;\n }", "c = 0", "c", "0", "if (c > max) {\n max = c;\n }", "c > max", "c", "max", "{\n max = c;\n }", "max = c", "max", "c", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner in = new Scanner(System.in); String s = in.nextLine(); char[] arr = s.toCharArray(); int max; int c; c = max = 0; for (int i = 0; i < arr.length; i++) { if (arr[i] == 'R') { c = c + 1; } else { c = 0; } if (c > max) { max = c; } } System.out.println(max); } }
[ 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, 17, 41, 13, 4, 18, 13, 41, 13, 14, 2, 2, 2, 18, 13, 17, 13, 2, 18, 13, 17, 13, 2, 18, 13, 17, 13, 30, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 13, 2, 18, 13, 17, 13, 2, 2, 18, 13, 17, 13, 2, 18, 13, 17, 13, 30, 0, 13, 17, 14, 2, 2, 2, 18, 13, 17, 13, 2, 18, 13, 17, 13, 2, 18, 13, 17, 13, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 0, 13, 20, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 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 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 32, 33 ], [ 33, 34 ], [ 26, 35 ], [ 35, 36 ], [ 35, 37 ], [ 26, 38 ], [ 38, 39 ], [ 38, 40 ], [ 40, 41 ], [ 41, 42 ], [ 26, 43 ], [ 43, 44 ], [ 26, 45 ], [ 45, 46 ], [ 47, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 48, 52 ], [ 47, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 47, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 45, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 45, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 69, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 68, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 80, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 67, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 67, 95 ], [ 95, 96 ], [ 97, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 99, 101 ], [ 98, 102 ], [ 97, 103 ], [ 103, 104 ], [ 104, 105 ], [ 104, 106 ], [ 103, 107 ], [ 97, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 108, 112 ], [ 95, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 95, 117 ], [ 117, 118 ], [ 118, 119 ], [ 118, 120 ], [ 26, 121 ], [ 121, 122 ], [ 122, 123 ], [ 123, 124 ], [ 123, 125 ], [ 121, 126 ], [ 24, 127 ], [ 127, 128 ], [ 22, 129 ], [ 129, 130 ], [ 129, 131 ], [ 131, 132 ], [ 129, 133 ], [ 133, 134 ], [ 129, 135 ], [ 135, 136 ], [ 135, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 135, 141 ], [ 141, 142 ], [ 129, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 143, 149 ], [ 149, 150 ], [ 129, 151 ], [ 151, 152 ], [ 151, 153 ], [ 153, 154 ], [ 154, 155 ], [ 155, 156 ], [ 156, 157 ], [ 156, 158 ], [ 155, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 154, 163 ], [ 163, 164 ], [ 163, 165 ], [ 153, 166 ], [ 166, 167 ], [ 167, 168 ], [ 168, 169 ], [ 129, 170 ], [ 170, 171 ], [ 170, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 174, 177 ], [ 177, 178 ], [ 129, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 182, 183 ], [ 183, 184 ], [ 184, 185 ], [ 183, 186 ], [ 186, 187 ], [ 129, 188 ], [ 188, 189 ], [ 188, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 129, 195 ], [ 195, 196 ], [ 195, 197 ], [ 197, 198 ], [ 198, 199 ], [ 199, 200 ], [ 200, 201 ], [ 199, 202 ], [ 202, 203 ], [ 129, 204 ], [ 204, 205 ], [ 204, 206 ], [ 206, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ] ]
[ "import java.io.BufferedReader;\nimport java.io.FileNotFoundException;\nimport java.io.FileReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\nclass Main{\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n char R = 'R';\n char[] chars = s.toCharArray();\n int count;\n if(chars[0] == R && chars[1] == R && chars[2] == R){\n count =3;\n }\n else if( (chars[0] == R && chars[1] == R) || (chars[1] == R && chars[2] == R)){\n count =2;\n }\n else if( chars[0] == R || chars[1] == R || chars[2] == R){\n count =1;\n }\n else{\n count = 0;\n }\n System.out.println(count);\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader s) throws FileNotFoundException {\n br = new BufferedReader(s);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.FileNotFoundException;", "FileNotFoundException", "java.io", "import java.io.FileReader;", "FileReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStream;", "InputStream", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "class Main{\n public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n char R = 'R';\n char[] chars = s.toCharArray();\n int count;\n if(chars[0] == R && chars[1] == R && chars[2] == R){\n count =3;\n }\n else if( (chars[0] == R && chars[1] == R) || (chars[1] == R && chars[2] == R)){\n count =2;\n }\n else if( chars[0] == R || chars[1] == R || chars[2] == R){\n count =1;\n }\n else{\n count = 0;\n }\n System.out.println(count);\n }\n\n static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader s) throws FileNotFoundException {\n br = new BufferedReader(s);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n char R = 'R';\n char[] chars = s.toCharArray();\n int count;\n if(chars[0] == R && chars[1] == R && chars[2] == R){\n count =3;\n }\n else if( (chars[0] == R && chars[1] == R) || (chars[1] == R && chars[2] == R)){\n count =2;\n }\n else if( chars[0] == R || chars[1] == R || chars[2] == R){\n count =1;\n }\n else{\n count = 0;\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n char R = 'R';\n char[] chars = s.toCharArray();\n int count;\n if(chars[0] == R && chars[1] == R && chars[2] == R){\n count =3;\n }\n else if( (chars[0] == R && chars[1] == R) || (chars[1] == R && chars[2] == R)){\n count =2;\n }\n else if( chars[0] == R || chars[1] == R || chars[2] == R){\n count =1;\n }\n else{\n count = 0;\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "char R = 'R';", "R", "'R'", "char[] chars = s.toCharArray();", "chars", "s.toCharArray()", "s.toCharArray", "s", "int count;", "count", "if(chars[0] == R && chars[1] == R && chars[2] == R){\n count =3;\n }\n else if( (chars[0] == R && chars[1] == R) || (chars[1] == R && chars[2] == R)){\n count =2;\n }\n else if( chars[0] == R || chars[1] == R || chars[2] == R){\n count =1;\n }\n else{\n count = 0;\n }", "chars[0] == R && chars[1] == R && chars[2] == R", "chars[0] == R && chars[1] == R && chars[2] == R", "chars[0] == R", "chars[0]", "chars", "0", "R", "chars[1] == R", "chars[1]", "chars", "1", "R", "chars[2] == R", "chars[2]", "chars", "2", "R", "{\n count =3;\n }", "count =3", "count", "3", "if( (chars[0] == R && chars[1] == R) || (chars[1] == R && chars[2] == R)){\n count =2;\n }\n else if( chars[0] == R || chars[1] == R || chars[2] == R){\n count =1;\n }\n else{\n count = 0;\n }", "(chars[0] == R && chars[1] == R) || (chars[1] == R && chars[2] == R)", "(chars[0] == R && chars[1] == R)", "chars[0] == R", "chars[0]", "chars", "0", "R", "chars[1] == R", "chars[1]", "chars", "1", "R", "(chars[1] == R && chars[2] == R)", "chars[1] == R", "chars[1]", "chars", "1", "R", "chars[2] == R", "chars[2]", "chars", "2", "R", "{\n count =2;\n }", "count =2", "count", "2", "if( chars[0] == R || chars[1] == R || chars[2] == R){\n count =1;\n }\n else{\n count = 0;\n }", "chars[0] == R || chars[1] == R || chars[2] == R", "chars[0] == R || chars[1] == R || chars[2] == R", "chars[0] == R", "chars[0]", "chars", "0", "R", "chars[1] == R", "chars[1]", "chars", "1", "R", "chars[2] == R", "chars[2]", "chars", "2", "R", "{\n count =1;\n }", "count =1", "count", "1", "{\n count = 0;\n }", "count = 0", "count", "0", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "static class Scanner {\n StringTokenizer st;\n BufferedReader br;\n\n public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }\n\n public Scanner(FileReader s) throws FileNotFoundException {\n br = new BufferedReader(s);\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }\n\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n\n public String nextLine() throws IOException {\n return br.readLine();\n }\n\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n\n public boolean ready() throws IOException {\n return br.ready();\n }\n }", "Scanner", "StringTokenizer st;", "st", "BufferedReader br;", "br", "public Scanner(InputStream s) {\n br = new BufferedReader(new InputStreamReader(s));\n }", "Scanner", "{\n br = new BufferedReader(new InputStreamReader(s));\n }", "br = new BufferedReader(new InputStreamReader(s))", "br", "new BufferedReader(new InputStreamReader(s))", "InputStream s", "s", "public Scanner(FileReader s) throws FileNotFoundException {\n br = new BufferedReader(s);\n }", "Scanner", "{\n br = new BufferedReader(s);\n }", "br = new BufferedReader(s)", "br", "new BufferedReader(s)", "FileReader s", "s", "public String next() throws IOException {\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }", "next", "{\n while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());\n return st.nextToken();\n }", "while (st == null || !st.hasMoreTokens())\n st = new StringTokenizer(br.readLine());", "st == null || !st.hasMoreTokens()", "st == null", "st", "null", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public long nextLong() throws IOException {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public String nextLine() throws IOException {\n return br.readLine();\n }", "nextLine", "{\n return br.readLine();\n }", "return br.readLine();", "br.readLine()", "br.readLine", "br", "public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public boolean ready() throws IOException {\n return br.ready();\n }", "ready", "{\n return br.ready();\n }", "return br.ready();", "br.ready()", "br.ready", "br" ]
import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; import java.util.StringTokenizer; class Main{ public static void main(String[] args) throws IOException { Scanner sc = new Scanner(System.in); String s = sc.next(); char R = 'R'; char[] chars = s.toCharArray(); int count; if(chars[0] == R && chars[1] == R && chars[2] == R){ count =3; } else if( (chars[0] == R && chars[1] == R) || (chars[1] == R && chars[2] == R)){ count =2; } else if( chars[0] == R || chars[1] == R || chars[2] == R){ count =1; } else{ count = 0; } System.out.println(count); } static class Scanner { StringTokenizer st; BufferedReader br; public Scanner(InputStream s) { br = new BufferedReader(new InputStreamReader(s)); } public Scanner(FileReader s) throws FileNotFoundException { br = new BufferedReader(s); } public String next() throws IOException { while (st == null || !st.hasMoreTokens()) st = new StringTokenizer(br.readLine()); return st.nextToken(); } public int nextInt() throws IOException { return Integer.parseInt(next()); } public long nextLong() throws IOException { return Long.parseLong(next()); } public String nextLine() throws IOException { return br.readLine(); } public double nextDouble() throws IOException { return Double.parseDouble(next()); } public boolean ready() throws IOException { return br.ready(); } } }
[ 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, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 41, 13, 17, 28, 13, 13, 30, 30, 14, 4, 18, 17, 13, 30, 40, 13, 0, 13, 17, 14, 13, 30, 3, 4, 18, 13, 13, 4, 18, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 77, 14 ], [ 77, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 17, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 17, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 17, 38 ], [ 38, 39 ], [ 38, 40 ], [ 17, 41 ], [ 41, 42 ], [ 41, 43 ], [ 17, 44 ], [ 44, 45 ], [ 44, 46 ], [ 44, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 57, 58 ], [ 57, 59 ], [ 49, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 17, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 17, 68 ], [ 68, 69 ], [ 69, 70 ], [ 17, 71 ], [ 71, 72 ], [ 72, 73 ], [ 15, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n String S = st.nextToken();\n String[] strArray = S.split(\"\");\n\n int result = 0;\n boolean breakFlag = false;\n\n for(String str : strArray) {\n if (\"R\".equals(str)) {\n result++;\n breakFlag = true;\n } else if(breakFlag) {\n break;\n }\n }\n\n pw.println(result);\n br.close();\n pw.close();\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n String S = st.nextToken();\n String[] strArray = S.split(\"\");\n\n int result = 0;\n boolean breakFlag = false;\n\n for(String str : strArray) {\n if (\"R\".equals(str)) {\n result++;\n breakFlag = true;\n } else if(breakFlag) {\n break;\n }\n }\n\n pw.println(result);\n br.close();\n pw.close();\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n String S = st.nextToken();\n String[] strArray = S.split(\"\");\n\n int result = 0;\n boolean breakFlag = false;\n\n for(String str : strArray) {\n if (\"R\".equals(str)) {\n result++;\n breakFlag = true;\n } else if(breakFlag) {\n break;\n }\n }\n\n pw.println(result);\n br.close();\n pw.close();\n }", "main", "{\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n String S = st.nextToken();\n String[] strArray = S.split(\"\");\n\n int result = 0;\n boolean breakFlag = false;\n\n for(String str : strArray) {\n if (\"R\".equals(str)) {\n result++;\n breakFlag = true;\n } else if(breakFlag) {\n break;\n }\n }\n\n pw.println(result);\n br.close();\n pw.close();\n }", "BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));", "br", "new BufferedReader(new java.io.InputStreamReader(System.in))", "PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "StringTokenizer st = new StringTokenizer(br.readLine());", "st", "new StringTokenizer(br.readLine())", "String S = st.nextToken();", "S", "st.nextToken()", "st.nextToken", "st", "String[] strArray = S.split(\"\");", "strArray", "S.split(\"\")", "S.split", "S", "\"\"", "int result = 0;", "result", "0", "boolean breakFlag = false;", "breakFlag", "false", "for(String str : strArray) {\n if (\"R\".equals(str)) {\n result++;\n breakFlag = true;\n } else if(breakFlag) {\n break;\n }\n }", "String str", "strArray", "{\n if (\"R\".equals(str)) {\n result++;\n breakFlag = true;\n } else if(breakFlag) {\n break;\n }\n }", "{\n if (\"R\".equals(str)) {\n result++;\n breakFlag = true;\n } else if(breakFlag) {\n break;\n }\n }", "if (\"R\".equals(str)) {\n result++;\n breakFlag = true;\n } else if(breakFlag) {\n break;\n }", "\"R\".equals(str)", "\"R\".equals", "\"R\"", "str", "{\n result++;\n breakFlag = true;\n }", "result++", "result", "breakFlag = true", "breakFlag", "true", "if(breakFlag) {\n break;\n }", "breakFlag", "{\n break;\n }", "break;", "pw.println(result)", "pw.println", "pw", "result", "br.close()", "br.close", "br", "pw.close()", "pw.close", "pw", "String[] args", "args", "public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n String S = st.nextToken();\n String[] strArray = S.split(\"\");\n\n int result = 0;\n boolean breakFlag = false;\n\n for(String str : strArray) {\n if (\"R\".equals(str)) {\n result++;\n breakFlag = true;\n } else if(breakFlag) {\n break;\n }\n }\n\n pw.println(result);\n br.close();\n pw.close();\n }\n}", "public class Main {\n \n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in));\n PrintWriter pw = new PrintWriter(System.out);\n StringTokenizer st = new StringTokenizer(br.readLine());\n\n String S = st.nextToken();\n String[] strArray = S.split(\"\");\n\n int result = 0;\n boolean breakFlag = false;\n\n for(String str : strArray) {\n if (\"R\".equals(str)) {\n result++;\n breakFlag = true;\n } else if(breakFlag) {\n break;\n }\n }\n\n pw.println(result);\n br.close();\n pw.close();\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new java.io.InputStreamReader(System.in)); PrintWriter pw = new PrintWriter(System.out); StringTokenizer st = new StringTokenizer(br.readLine()); String S = st.nextToken(); String[] strArray = S.split(""); int result = 0; boolean breakFlag = false; for(String str : strArray) { if ("R".equals(str)) { result++; breakFlag = true; } else if(breakFlag) { break; } } pw.println(result); br.close(); pw.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 13, 30, 0, 13, 17, 4, 18, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 23, 25 ], [ 11, 26 ], [ 26, 27 ], [ 26, 28 ], [ 11, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 29, 42 ], [ 43, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 44, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 54, 55 ], [ 54, 56 ], [ 56, 57 ], [ 57, 58 ], [ 56, 59 ], [ 56, 60 ], [ 44, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 11, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 9, 69 ], [ 69, 70 ] ]
[ "import java.util.*;\nimport java.io.*;\nclass Main{\n\tpublic static void main(String[]args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tString str=sc.nextLine();\n\t\tint max = 0;\n\t\tint count = 0;\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tcount++;\n\t\t\t\tmax = Math.max(count, max);\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tout.println(max);\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "class Main{\n\tpublic static void main(String[]args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tString str=sc.nextLine();\n\t\tint max = 0;\n\t\tint count = 0;\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tcount++;\n\t\t\t\tmax = Math.max(count, max);\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tout.println(max);\n\t}\n}", "Main", "public static void main(String[]args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tString str=sc.nextLine();\n\t\tint max = 0;\n\t\tint count = 0;\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tcount++;\n\t\t\t\tmax = Math.max(count, max);\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tout.println(max);\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tPrintWriter out = new PrintWriter(System.out, true);\n\t\tString str=sc.nextLine();\n\t\tint max = 0;\n\t\tint count = 0;\n\t\tfor(int i=0;i<str.length();i++){\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tcount++;\n\t\t\t\tmax = Math.max(count, max);\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}\n\t\tout.println(max);\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "PrintWriter out = new PrintWriter(System.out, true);", "out", "new PrintWriter(System.out, true)", "String str=sc.nextLine();", "str", "sc.nextLine()", "sc.nextLine", "sc", "int max = 0;", "max", "0", "int count = 0;", "count", "0", "for(int i=0;i<str.length();i++){\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tcount++;\n\t\t\t\tmax = Math.max(count, max);\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<str.length()", "i", "str.length()", "str.length", "str", "i++", "i++", "i", "{\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tcount++;\n\t\t\t\tmax = Math.max(count, max);\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(str.charAt(i)=='R'){\n\t\t\t\tcount++;\n\t\t\t\tmax = Math.max(count, max);\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}\n\t\t}", "if(str.charAt(i)=='R'){\n\t\t\t\tcount++;\n\t\t\t\tmax = Math.max(count, max);\n\t\t\t}else{\n\t\t\t\tcount = 0;\n\t\t\t}", "str.charAt(i)=='R'", "str.charAt(i)", "str.charAt", "str", "i", "'R'", "{\n\t\t\t\tcount++;\n\t\t\t\tmax = Math.max(count, max);\n\t\t\t}", "count++", "count", "max = Math.max(count, max)", "max", "Math.max(count, max)", "Math.max", "Math", "count", "max", "{\n\t\t\t\tcount = 0;\n\t\t\t}", "count = 0", "count", "0", "out.println(max)", "out.println", "out", "max", "String[]args", "args" ]
import java.util.*; import java.io.*; class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); PrintWriter out = new PrintWriter(System.out, true); String str=sc.nextLine(); int max = 0; int count = 0; for(int i=0;i<str.length();i++){ if(str.charAt(i)=='R'){ count++; max = Math.max(count, max); }else{ count = 0; } } out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 4, 18, 13, 13, 30, 0, 13, 17, 3, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 65, 5 ], [ 65, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 23, 34 ], [ 35, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 41, 45 ], [ 36, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 46, 53 ], [ 53, 54 ], [ 54, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 6, 62 ], [ 62, 63 ], [ 0, 64 ], [ 64, 65 ], [ 64, 66 ] ]
[ "import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString weather = sc.next();\n\n\t\tint count = 0;\n\t\tString sunny = \"RSR\";\n\n\t\tfor(int i=0; i<3; i++){\n\t\t\tif(weather.equals(sunny)){\n\t\t\t\tcount= 1;\n\t\t\t\tbreak;\n\t\t\t}else if(weather.charAt(i) == 'R'){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString weather = sc.next();\n\n\t\tint count = 0;\n\t\tString sunny = \"RSR\";\n\n\t\tfor(int i=0; i<3; i++){\n\t\t\tif(weather.equals(sunny)){\n\t\t\t\tcount= 1;\n\t\t\t\tbreak;\n\t\t\t}else if(weather.charAt(i) == 'R'){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString weather = sc.next();\n\n\t\tint count = 0;\n\t\tString sunny = \"RSR\";\n\n\t\tfor(int i=0; i<3; i++){\n\t\t\tif(weather.equals(sunny)){\n\t\t\t\tcount= 1;\n\t\t\t\tbreak;\n\t\t\t}else if(weather.charAt(i) == 'R'){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString weather = sc.next();\n\n\t\tint count = 0;\n\t\tString sunny = \"RSR\";\n\n\t\tfor(int i=0; i<3; i++){\n\t\t\tif(weather.equals(sunny)){\n\t\t\t\tcount= 1;\n\t\t\t\tbreak;\n\t\t\t}else if(weather.charAt(i) == 'R'){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String weather = sc.next();", "weather", "sc.next()", "sc.next", "sc", "int count = 0;", "count", "0", "String sunny = \"RSR\";", "sunny", "\"RSR\"", "for(int i=0; i<3; i++){\n\t\t\tif(weather.equals(sunny)){\n\t\t\t\tcount= 1;\n\t\t\t\tbreak;\n\t\t\t}else if(weather.charAt(i) == 'R'){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n\t\t\tif(weather.equals(sunny)){\n\t\t\t\tcount= 1;\n\t\t\t\tbreak;\n\t\t\t}else if(weather.charAt(i) == 'R'){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(weather.equals(sunny)){\n\t\t\t\tcount= 1;\n\t\t\t\tbreak;\n\t\t\t}else if(weather.charAt(i) == 'R'){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}", "if(weather.equals(sunny)){\n\t\t\t\tcount= 1;\n\t\t\t\tbreak;\n\t\t\t}else if(weather.charAt(i) == 'R'){\n\t\t\t\tcount++;\n\t\t\t}", "weather.equals(sunny)", "weather.equals", "weather", "sunny", "{\n\t\t\t\tcount= 1;\n\t\t\t\tbreak;\n\t\t\t}", "count= 1", "count", "1", "break;", "if(weather.charAt(i) == 'R'){\n\t\t\t\tcount++;\n\t\t\t}", "weather.charAt(i) == 'R'", "weather.charAt(i)", "weather.charAt", "weather", "i", "'R'", "{\n\t\t\t\tcount++;\n\t\t\t}", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString weather = sc.next();\n\n\t\tint count = 0;\n\t\tString sunny = \"RSR\";\n\n\t\tfor(int i=0; i<3; i++){\n\t\t\tif(weather.equals(sunny)){\n\t\t\t\tcount= 1;\n\t\t\t\tbreak;\n\t\t\t}else if(weather.charAt(i) == 'R'){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "public class Main {\n public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString weather = sc.next();\n\n\t\tint count = 0;\n\t\tString sunny = \"RSR\";\n\n\t\tfor(int i=0; i<3; i++){\n\t\t\tif(weather.equals(sunny)){\n\t\t\t\tcount= 1;\n\t\t\t\tbreak;\n\t\t\t}else if(weather.charAt(i) == 'R'){\n\t\t\t\tcount++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String weather = sc.next(); int count = 0; String sunny = "RSR"; for(int i=0; i<3; i++){ if(weather.equals(sunny)){ count= 1; break; }else if(weather.charAt(i) == 'R'){ count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 0, 13, 4, 18, 13, 13, 13, 0, 13, 17, 40, 13, 0, 13, 4, 18, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 20, 22 ], [ 18, 23 ], [ 23, 24 ], [ 23, 25 ], [ 18, 26 ], [ 26, 27 ], [ 27, 28 ], [ 18, 29 ], [ 30, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 30, 38 ], [ 38, 39 ], [ 38, 40 ], [ 30, 41 ], [ 41, 42 ], [ 41, 43 ], [ 30, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 44, 49 ], [ 49, 50 ], [ 49, 51 ], [ 44, 52 ], [ 52, 53 ], [ 53, 54 ], [ 44, 55 ], [ 56, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 57, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 66, 70 ], [ 63, 71 ], [ 71, 72 ], [ 71, 73 ], [ 57, 74 ], [ 74, 75 ], [ 30, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 78, 82 ], [ 30, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 9, 89 ], [ 89, 90 ] ]
[ "import java.io.*;\nimport java.util.*;\nclass Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint t = 1;\n\t\t//int t = Integer.parseInt(reader.readLine());\n\t\tfor(int i1 = 0;i1<t;i1++){\n\t\t\tchar[] list = reader.readLine().toCharArray();\n\t\t\tint max = 0;\n\t\t\tint p = 0;\n\t\t\tfor(int i = 0;i<3;i++){\n\t\t\t\t\tif(list[i]=='S'){\n\t\t\t\t\t\tmax = Math.max(max,p);\n\t\t\t\t\t\tp=0;\n\t\t\t\t\t}\n\t\t\t\t\telse p++;\n\t\t\t}\n\t\t\tmax = Math.max(p,max);\n\t\t\tSystem.out.println(\tmax);\n\t\t}\n\t}\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint t = 1;\n\t\t//int t = Integer.parseInt(reader.readLine());\n\t\tfor(int i1 = 0;i1<t;i1++){\n\t\t\tchar[] list = reader.readLine().toCharArray();\n\t\t\tint max = 0;\n\t\t\tint p = 0;\n\t\t\tfor(int i = 0;i<3;i++){\n\t\t\t\t\tif(list[i]=='S'){\n\t\t\t\t\t\tmax = Math.max(max,p);\n\t\t\t\t\t\tp=0;\n\t\t\t\t\t}\n\t\t\t\t\telse p++;\n\t\t\t}\n\t\t\tmax = Math.max(p,max);\n\t\t\tSystem.out.println(\tmax);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint t = 1;\n\t\t//int t = Integer.parseInt(reader.readLine());\n\t\tfor(int i1 = 0;i1<t;i1++){\n\t\t\tchar[] list = reader.readLine().toCharArray();\n\t\t\tint max = 0;\n\t\t\tint p = 0;\n\t\t\tfor(int i = 0;i<3;i++){\n\t\t\t\t\tif(list[i]=='S'){\n\t\t\t\t\t\tmax = Math.max(max,p);\n\t\t\t\t\t\tp=0;\n\t\t\t\t\t}\n\t\t\t\t\telse p++;\n\t\t\t}\n\t\t\tmax = Math.max(p,max);\n\t\t\tSystem.out.println(\tmax);\n\t\t}\n\t}", "main", "{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tint t = 1;\n\t\t//int t = Integer.parseInt(reader.readLine());\n\t\tfor(int i1 = 0;i1<t;i1++){\n\t\t\tchar[] list = reader.readLine().toCharArray();\n\t\t\tint max = 0;\n\t\t\tint p = 0;\n\t\t\tfor(int i = 0;i<3;i++){\n\t\t\t\t\tif(list[i]=='S'){\n\t\t\t\t\t\tmax = Math.max(max,p);\n\t\t\t\t\t\tp=0;\n\t\t\t\t\t}\n\t\t\t\t\telse p++;\n\t\t\t}\n\t\t\tmax = Math.max(p,max);\n\t\t\tSystem.out.println(\tmax);\n\t\t}\n\t}", "BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));", "reader", "new BufferedReader(new InputStreamReader(System.in))", "int t = 1;", "t", "1", "for(int i1 = 0;i1<t;i1++){\n\t\t\tchar[] list = reader.readLine().toCharArray();\n\t\t\tint max = 0;\n\t\t\tint p = 0;\n\t\t\tfor(int i = 0;i<3;i++){\n\t\t\t\t\tif(list[i]=='S'){\n\t\t\t\t\t\tmax = Math.max(max,p);\n\t\t\t\t\t\tp=0;\n\t\t\t\t\t}\n\t\t\t\t\telse p++;\n\t\t\t}\n\t\t\tmax = Math.max(p,max);\n\t\t\tSystem.out.println(\tmax);\n\t\t}", "int i1 = 0;", "int i1 = 0;", "i1", "0", "i1<t", "i1", "t", "i1++", "i1++", "i1", "{\n\t\t\tchar[] list = reader.readLine().toCharArray();\n\t\t\tint max = 0;\n\t\t\tint p = 0;\n\t\t\tfor(int i = 0;i<3;i++){\n\t\t\t\t\tif(list[i]=='S'){\n\t\t\t\t\t\tmax = Math.max(max,p);\n\t\t\t\t\t\tp=0;\n\t\t\t\t\t}\n\t\t\t\t\telse p++;\n\t\t\t}\n\t\t\tmax = Math.max(p,max);\n\t\t\tSystem.out.println(\tmax);\n\t\t}", "{\n\t\t\tchar[] list = reader.readLine().toCharArray();\n\t\t\tint max = 0;\n\t\t\tint p = 0;\n\t\t\tfor(int i = 0;i<3;i++){\n\t\t\t\t\tif(list[i]=='S'){\n\t\t\t\t\t\tmax = Math.max(max,p);\n\t\t\t\t\t\tp=0;\n\t\t\t\t\t}\n\t\t\t\t\telse p++;\n\t\t\t}\n\t\t\tmax = Math.max(p,max);\n\t\t\tSystem.out.println(\tmax);\n\t\t}", "char[] list = reader.readLine().toCharArray();", "list", "reader.readLine().toCharArray()", "reader.readLine().toCharArray", "reader.readLine()", "reader.readLine", "reader", "int max = 0;", "max", "0", "int p = 0;", "p", "0", "for(int i = 0;i<3;i++){\n\t\t\t\t\tif(list[i]=='S'){\n\t\t\t\t\t\tmax = Math.max(max,p);\n\t\t\t\t\t\tp=0;\n\t\t\t\t\t}\n\t\t\t\t\telse p++;\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n\t\t\t\t\tif(list[i]=='S'){\n\t\t\t\t\t\tmax = Math.max(max,p);\n\t\t\t\t\t\tp=0;\n\t\t\t\t\t}\n\t\t\t\t\telse p++;\n\t\t\t}", "{\n\t\t\t\t\tif(list[i]=='S'){\n\t\t\t\t\t\tmax = Math.max(max,p);\n\t\t\t\t\t\tp=0;\n\t\t\t\t\t}\n\t\t\t\t\telse p++;\n\t\t\t}", "if(list[i]=='S'){\n\t\t\t\t\t\tmax = Math.max(max,p);\n\t\t\t\t\t\tp=0;\n\t\t\t\t\t}\n\t\t\t\t\telse p++;", "list[i]=='S'", "list[i]", "list", "i", "'S'", "{\n\t\t\t\t\t\tmax = Math.max(max,p);\n\t\t\t\t\t\tp=0;\n\t\t\t\t\t}", "max = Math.max(max,p)", "max", "Math.max(max,p)", "Math.max", "Math", "max", "p", "p=0", "p", "0", "p++", "p", "max = Math.max(p,max)", "max", "Math.max(p,max)", "Math.max", "Math", "p", "max", "System.out.println(\tmax)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args" ]
import java.io.*; import java.util.*; class Main{ public static void main(String[] args) throws IOException{ BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int t = 1; //int t = Integer.parseInt(reader.readLine()); for(int i1 = 0;i1<t;i1++){ char[] list = reader.readLine().toCharArray(); int max = 0; int p = 0; for(int i = 0;i<3;i++){ if(list[i]=='S'){ max = Math.max(max,p); p=0; } else p++; } max = Math.max(p,max); System.out.println( max); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 4, 18, 13, 28, 13, 13, 30, 30, 14, 4, 18, 17, 13, 30, 14, 13, 30, 40, 13, 30, 0, 13, 17, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 65, 5 ], [ 65, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 8, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 17, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 29, 32 ], [ 33, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 42, 43 ], [ 43, 44 ], [ 40, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 39, 49 ], [ 49, 50 ], [ 49, 51 ], [ 34, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 6, 62 ], [ 62, 63 ], [ 0, 64 ], [ 64, 65 ], [ 64, 66 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int countRain = 0;\n String[] weather = sc.next().split(\"\");\n boolean yesterdayIsRain = false;\n sc.close();\n\n for (String we : weather) {\n if (\"R\".equals(we)) {\n if (yesterdayIsRain) {\n countRain++;\n\n } else {\n countRain = 1;\n }\n yesterdayIsRain = true;\n } else {\n yesterdayIsRain = false;\n }\n }\n System.out.println(countRain);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int countRain = 0;\n String[] weather = sc.next().split(\"\");\n boolean yesterdayIsRain = false;\n sc.close();\n\n for (String we : weather) {\n if (\"R\".equals(we)) {\n if (yesterdayIsRain) {\n countRain++;\n\n } else {\n countRain = 1;\n }\n yesterdayIsRain = true;\n } else {\n yesterdayIsRain = false;\n }\n }\n System.out.println(countRain);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int countRain = 0;\n String[] weather = sc.next().split(\"\");\n boolean yesterdayIsRain = false;\n sc.close();\n\n for (String we : weather) {\n if (\"R\".equals(we)) {\n if (yesterdayIsRain) {\n countRain++;\n\n } else {\n countRain = 1;\n }\n yesterdayIsRain = true;\n } else {\n yesterdayIsRain = false;\n }\n }\n System.out.println(countRain);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int countRain = 0;\n String[] weather = sc.next().split(\"\");\n boolean yesterdayIsRain = false;\n sc.close();\n\n for (String we : weather) {\n if (\"R\".equals(we)) {\n if (yesterdayIsRain) {\n countRain++;\n\n } else {\n countRain = 1;\n }\n yesterdayIsRain = true;\n } else {\n yesterdayIsRain = false;\n }\n }\n System.out.println(countRain);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int countRain = 0;", "countRain", "0", "String[] weather = sc.next().split(\"\");", "weather", "sc.next().split(\"\")", "sc.next().split", "sc.next()", "sc.next", "sc", "\"\"", "boolean yesterdayIsRain = false;", "yesterdayIsRain", "false", "sc.close()", "sc.close", "sc", "for (String we : weather) {\n if (\"R\".equals(we)) {\n if (yesterdayIsRain) {\n countRain++;\n\n } else {\n countRain = 1;\n }\n yesterdayIsRain = true;\n } else {\n yesterdayIsRain = false;\n }\n }", "String we", "weather", "{\n if (\"R\".equals(we)) {\n if (yesterdayIsRain) {\n countRain++;\n\n } else {\n countRain = 1;\n }\n yesterdayIsRain = true;\n } else {\n yesterdayIsRain = false;\n }\n }", "{\n if (\"R\".equals(we)) {\n if (yesterdayIsRain) {\n countRain++;\n\n } else {\n countRain = 1;\n }\n yesterdayIsRain = true;\n } else {\n yesterdayIsRain = false;\n }\n }", "if (\"R\".equals(we)) {\n if (yesterdayIsRain) {\n countRain++;\n\n } else {\n countRain = 1;\n }\n yesterdayIsRain = true;\n } else {\n yesterdayIsRain = false;\n }", "\"R\".equals(we)", "\"R\".equals", "\"R\"", "we", "{\n if (yesterdayIsRain) {\n countRain++;\n\n } else {\n countRain = 1;\n }\n yesterdayIsRain = true;\n }", "if (yesterdayIsRain) {\n countRain++;\n\n } else {\n countRain = 1;\n }", "yesterdayIsRain", "{\n countRain++;\n\n }", "countRain++", "countRain", "{\n countRain = 1;\n }", "countRain = 1", "countRain", "1", "yesterdayIsRain = true", "yesterdayIsRain", "true", "{\n yesterdayIsRain = false;\n }", "yesterdayIsRain = false", "yesterdayIsRain", "false", "System.out.println(countRain)", "System.out.println", "System.out", "System", "System.out", "countRain", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int countRain = 0;\n String[] weather = sc.next().split(\"\");\n boolean yesterdayIsRain = false;\n sc.close();\n\n for (String we : weather) {\n if (\"R\".equals(we)) {\n if (yesterdayIsRain) {\n countRain++;\n\n } else {\n countRain = 1;\n }\n yesterdayIsRain = true;\n } else {\n yesterdayIsRain = false;\n }\n }\n System.out.println(countRain);\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int countRain = 0;\n String[] weather = sc.next().split(\"\");\n boolean yesterdayIsRain = false;\n sc.close();\n\n for (String we : weather) {\n if (\"R\".equals(we)) {\n if (yesterdayIsRain) {\n countRain++;\n\n } else {\n countRain = 1;\n }\n yesterdayIsRain = true;\n } else {\n yesterdayIsRain = false;\n }\n }\n System.out.println(countRain);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int countRain = 0; String[] weather = sc.next().split(""); boolean yesterdayIsRain = false; sc.close(); for (String we : weather) { if ("R".equals(we)) { if (yesterdayIsRain) { countRain++; } else { countRain = 1; } yesterdayIsRain = true; } else { yesterdayIsRain = false; } } System.out.println(countRain); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 40, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 40, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 78, 11 ], [ 78, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 24, 29 ], [ 29, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 23, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 44, 45 ], [ 38, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 38, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 56, 57 ], [ 55, 58 ], [ 54, 59 ], [ 59, 60 ], [ 53, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 64, 66 ], [ 62, 67 ], [ 53, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 12, 75 ], [ 75, 76 ], [ 0, 77 ], [ 77, 78 ], [ 77, 79 ] ]
[ "import java.util.Scanner;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\t\n\t\tif(s.indexOf(\"RRR\") != -1) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(s.indexOf(\"RR\") != -1){\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(s.indexOf(\"R\") != -1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.regex.Matcher;", "Matcher", "java.util.regex", "import java.util.regex.Pattern;", "Pattern", "java.util.regex", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\t\n\t\tif(s.indexOf(\"RRR\") != -1) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(s.indexOf(\"RR\") != -1){\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(s.indexOf(\"R\") != -1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\t\n\t\tif(s.indexOf(\"RRR\") != -1) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(s.indexOf(\"RR\") != -1){\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(s.indexOf(\"R\") != -1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}", "main", "{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\t\n\t\tif(s.indexOf(\"RRR\") != -1) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(s.indexOf(\"RR\") != -1){\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(s.indexOf(\"R\") != -1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if(s.indexOf(\"RRR\") != -1) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(s.indexOf(\"RR\") != -1){\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(s.indexOf(\"R\") != -1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}", "s.indexOf(\"RRR\") != -1", "s.indexOf(\"RRR\")", "s.indexOf", "s", "\"RRR\"", "-1", "1", "{\n\t\t\tSystem.out.println(\"3\");\n\t\t}", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if(s.indexOf(\"RR\") != -1){\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(s.indexOf(\"R\") != -1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}", "s.indexOf(\"RR\") != -1", "s.indexOf(\"RR\")", "s.indexOf", "s", "\"RR\"", "-1", "1", "{\n\t\t\tSystem.out.println(\"2\");\n\t\t}", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if(s.indexOf(\"R\") != -1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}", "s.indexOf(\"R\") != -1", "s.indexOf(\"R\")", "s.indexOf", "s", "\"R\"", "-1", "1", "{\n\t\t\tSystem.out.println(\"1\");\n\t\t}", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "{\n\t\t\tSystem.out.println(\"0\");\n\t\t}", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\t\n\t\tif(s.indexOf(\"RRR\") != -1) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(s.indexOf(\"RR\") != -1){\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(s.indexOf(\"R\") != -1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tString s = sc.next();\n\t\t\n\t\tif(s.indexOf(\"RRR\") != -1) {\n\t\t\tSystem.out.println(\"3\");\n\t\t}else if(s.indexOf(\"RR\") != -1){\n\t\t\tSystem.out.println(\"2\");\n\t\t}else if(s.indexOf(\"R\") != -1) {\n\t\t\tSystem.out.println(\"1\");\n\t\t}else {\n\t\t\tSystem.out.println(\"0\");\n\t\t}\n\t}\n\n}", "Main" ]
import java.util.Scanner; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main { public static void main(String[] args) { // TODO 自動生成されたメソッド・スタブ Scanner sc = new Scanner(System.in); String s = sc.next(); if(s.indexOf("RRR") != -1) { System.out.println("3"); }else if(s.indexOf("RR") != -1){ System.out.println("2"); }else if(s.indexOf("R") != -1) { System.out.println("1"); }else { System.out.println("0"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 56, 5 ], [ 56, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 29, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 38, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 6, 53 ], [ 53, 54 ], [ 0, 55 ], [ 55, 56 ], [ 55, 57 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main(String... args) {\n \tScanner input = new Scanner(System.in);\n \n String str = input.next();\n \n int ans = 0;\n if (str.contains(\"RRR\")) {\n \tans = 3;\n } else if (str.contains(\"RR\")) {\n \tans = 2;\n } else if (str.contains(\"R\")) {\n \tans = 1;\n\t\t}\n \n System.out.println(ans);\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main(String... args) {\n \tScanner input = new Scanner(System.in);\n \n String str = input.next();\n \n int ans = 0;\n if (str.contains(\"RRR\")) {\n \tans = 3;\n } else if (str.contains(\"RR\")) {\n \tans = 2;\n } else if (str.contains(\"R\")) {\n \tans = 1;\n\t\t}\n \n System.out.println(ans);\n\t}\n}", "Main", "public static void main(String... args) {\n \tScanner input = new Scanner(System.in);\n \n String str = input.next();\n \n int ans = 0;\n if (str.contains(\"RRR\")) {\n \tans = 3;\n } else if (str.contains(\"RR\")) {\n \tans = 2;\n } else if (str.contains(\"R\")) {\n \tans = 1;\n\t\t}\n \n System.out.println(ans);\n\t}", "main", "{\n \tScanner input = new Scanner(System.in);\n \n String str = input.next();\n \n int ans = 0;\n if (str.contains(\"RRR\")) {\n \tans = 3;\n } else if (str.contains(\"RR\")) {\n \tans = 2;\n } else if (str.contains(\"R\")) {\n \tans = 1;\n\t\t}\n \n System.out.println(ans);\n\t}", "Scanner input = new Scanner(System.in);", "input", "new Scanner(System.in)", "String str = input.next();", "str", "input.next()", "input.next", "input", "int ans = 0;", "ans", "0", "if (str.contains(\"RRR\")) {\n \tans = 3;\n } else if (str.contains(\"RR\")) {\n \tans = 2;\n } else if (str.contains(\"R\")) {\n \tans = 1;\n\t\t}", "str.contains(\"RRR\")", "str.contains", "str", "\"RRR\"", "{\n \tans = 3;\n }", "ans = 3", "ans", "3", "if (str.contains(\"RR\")) {\n \tans = 2;\n } else if (str.contains(\"R\")) {\n \tans = 1;\n\t\t}", "str.contains(\"RR\")", "str.contains", "str", "\"RR\"", "{\n \tans = 2;\n }", "ans = 2", "ans", "2", "if (str.contains(\"R\")) {\n \tans = 1;\n\t\t}", "str.contains(\"R\")", "str.contains", "str", "\"R\"", "{\n \tans = 1;\n\t\t}", "ans = 1", "ans", "1", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String... args", "args", "public class Main {\n\tpublic static void main(String... args) {\n \tScanner input = new Scanner(System.in);\n \n String str = input.next();\n \n int ans = 0;\n if (str.contains(\"RRR\")) {\n \tans = 3;\n } else if (str.contains(\"RR\")) {\n \tans = 2;\n } else if (str.contains(\"R\")) {\n \tans = 1;\n\t\t}\n \n System.out.println(ans);\n\t}\n}", "public class Main {\n\tpublic static void main(String... args) {\n \tScanner input = new Scanner(System.in);\n \n String str = input.next();\n \n int ans = 0;\n if (str.contains(\"RRR\")) {\n \tans = 3;\n } else if (str.contains(\"RR\")) {\n \tans = 2;\n } else if (str.contains(\"R\")) {\n \tans = 1;\n\t\t}\n \n System.out.println(ans);\n\t}\n}", "Main" ]
import java.util.*; public class Main { public static void main(String... args) { Scanner input = new Scanner(System.in); String str = input.next(); int ans = 0; if (str.contains("RRR")) { ans = 3; } else if (str.contains("RR")) { ans = 2; } else if (str.contains("R")) { ans = 1; } System.out.println(ans); } }
[ 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, 20, 41, 13, 17, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 4, 18, 13, 17, 41, 13, 17, 28, 13, 13, 30, 30, 0, 13, 4, 18, 13, 4, 18, 13, 13, 4, 18, 13, 13, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 17, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 13, 14 ], [ 13, 15 ], [ 0, 16 ], [ 16, 17 ], [ 16, 18 ], [ 0, 19 ], [ 19, 20 ], [ 19, 21 ], [ 0, 22 ], [ 165, 23 ], [ 165, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 26, 30 ], [ 30, 31 ], [ 30, 32 ], [ 26, 33 ], [ 33, 34 ], [ 33, 35 ], [ 26, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 44, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 41, 53 ], [ 53, 54 ], [ 53, 55 ], [ 53, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 60, 61 ], [ 61, 62 ], [ 60, 63 ], [ 63, 64 ], [ 64, 65 ], [ 60, 66 ], [ 41, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 26, 71 ], [ 71, 72 ], [ 72, 73 ], [ 24, 74 ], [ 74, 75 ], [ 165, 76 ], [ 76, 77 ], [ 76, 78 ], [ 78, 79 ], [ 76, 80 ], [ 80, 81 ], [ 76, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 76, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 91, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 101, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 90, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 76, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 76, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 129, 132 ], [ 132, 133 ], [ 76, 134 ], [ 134, 135 ], [ 134, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 139, 140 ], [ 138, 141 ], [ 141, 142 ], [ 76, 143 ], [ 143, 144 ], [ 143, 145 ], [ 145, 146 ], [ 146, 147 ], [ 146, 148 ], [ 145, 149 ], [ 149, 150 ], [ 150, 151 ], [ 150, 152 ], [ 152, 153 ], [ 153, 154 ], [ 154, 155 ], [ 149, 156 ], [ 156, 157 ], [ 157, 158 ], [ 157, 159 ], [ 159, 160 ], [ 160, 161 ], [ 145, 162 ], [ 162, 163 ], [ 0, 164 ], [ 164, 165 ], [ 164, 166 ] ]
[ "import java.io.BufferedReader; \nimport java.io.*;\nimport java.io.InputStreamReader; \nimport java.util.Scanner; \nimport java.util.StringTokenizer; \nimport java.util.*;\nimport java.math.*;\npublic class Main \n{ \n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader()\n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next()\n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine();\n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n public static void main(String args[])\n {\n FastReader sc=new FastReader();\n PrintWriter pw=new PrintWriter(System.out);\n int t=1;//sc.nextInt();\n while(t-->0)\n {\n String s[]=sc.next().split(\"S\");int max=0;\n for(String w:s)\n {\n max=Math.max(w.length(),max);\n }\n pw.println(max);\n }\n pw.close();\n }\n}\n ", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.*;", "io.*", "java", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "import java.util.*;", "util.*", "java", "import java.math.*;", "math.*", "java", "public class Main \n{ \n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader()\n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next()\n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine();\n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n public static void main(String args[])\n {\n FastReader sc=new FastReader();\n PrintWriter pw=new PrintWriter(System.out);\n int t=1;//sc.nextInt();\n while(t-->0)\n {\n String s[]=sc.next().split(\"S\");int max=0;\n for(String w:s)\n {\n max=Math.max(w.length(),max);\n }\n pw.println(max);\n }\n pw.close();\n }\n}", "Main", "public static void main(String args[])\n {\n FastReader sc=new FastReader();\n PrintWriter pw=new PrintWriter(System.out);\n int t=1;//sc.nextInt();\n while(t-->0)\n {\n String s[]=sc.next().split(\"S\");int max=0;\n for(String w:s)\n {\n max=Math.max(w.length(),max);\n }\n pw.println(max);\n }\n pw.close();\n }", "main", "{\n FastReader sc=new FastReader();\n PrintWriter pw=new PrintWriter(System.out);\n int t=1;//sc.nextInt();\n while(t-->0)\n {\n String s[]=sc.next().split(\"S\");int max=0;\n for(String w:s)\n {\n max=Math.max(w.length(),max);\n }\n pw.println(max);\n }\n pw.close();\n }", "FastReader sc=new FastReader();", "sc", "new FastReader()", "PrintWriter pw=new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "int t=1;", "t", "1", "while(t-->0)\n {\n String s[]=sc.next().split(\"S\");int max=0;\n for(String w:s)\n {\n max=Math.max(w.length(),max);\n }\n pw.println(max);\n }", "t-->0", "t--", "t", "0", "{\n String s[]=sc.next().split(\"S\");int max=0;\n for(String w:s)\n {\n max=Math.max(w.length(),max);\n }\n pw.println(max);\n }", "String s[]=sc.next().split(\"S\");", "s", "sc.next().split(\"S\")", "sc.next().split", "sc.next()", "sc.next", "sc", "\"S\"", "int max=0;", "max", "0", "for(String w:s)\n {\n max=Math.max(w.length(),max);\n }", "String w", "s", "{\n max=Math.max(w.length(),max);\n }", "{\n max=Math.max(w.length(),max);\n }", "max=Math.max(w.length(),max)", "max", "Math.max(w.length(),max)", "Math.max", "Math", "w.length()", "w.length", "w", "max", "pw.println(max)", "pw.println", "pw", "max", "pw.close()", "pw.close", "pw", "String args[]", "args", "static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader()\n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next()\n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine();\n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n }", "FastReader", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastReader()\n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }", "FastReader", "{ \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n }", "br = new BufferedReader(new\n InputStreamReader(System.in))", "br", "new BufferedReader(new\n InputStreamReader(System.in))", "String next()\n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }", "next", "{ \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n }", "while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }", "st == null || !st.hasMoreElements()", "st == null", "st", "null", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{ \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n }", "try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }", "catch (IOException e) \n { \n e.printStackTrace(); \n }", "IOException e", "{ \n e.printStackTrace(); \n }", "e.printStackTrace()", "e.printStackTrace", "e", "{ \n st = new StringTokenizer(br.readLine()); \n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() \n { \n return Integer.parseInt(next()); \n }", "nextInt", "{ \n return Integer.parseInt(next()); \n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() \n { \n return Long.parseLong(next()); \n }", "nextLong", "{ \n return Long.parseLong(next()); \n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "double nextDouble() \n { \n return Double.parseDouble(next()); \n }", "nextDouble", "{ \n return Double.parseDouble(next()); \n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine();\n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }", "nextLine", "{ \n String str = \"\"; \n try\n { \n str = br.readLine();\n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n }", "String str = \"\";", "str", "\"\"", "try\n { \n str = br.readLine();\n } \n catch (IOException e) \n { \n e.printStackTrace(); \n }", "catch (IOException e) \n { \n e.printStackTrace(); \n }", "IOException e", "{ \n e.printStackTrace(); \n }", "e.printStackTrace()", "e.printStackTrace", "e", "{ \n str = br.readLine();\n }", "str = br.readLine()", "str", "br.readLine()", "br.readLine", "br", "return str;", "str", "public class Main \n{ \n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader()\n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next()\n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine();\n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n public static void main(String args[])\n {\n FastReader sc=new FastReader();\n PrintWriter pw=new PrintWriter(System.out);\n int t=1;//sc.nextInt();\n while(t-->0)\n {\n String s[]=sc.next().split(\"S\");int max=0;\n for(String w:s)\n {\n max=Math.max(w.length(),max);\n }\n pw.println(max);\n }\n pw.close();\n }\n}", "public class Main \n{ \n static class FastReader \n { \n BufferedReader br; \n StringTokenizer st; \n \n public FastReader()\n { \n br = new BufferedReader(new\n InputStreamReader(System.in)); \n } \n \n String next()\n { \n while (st == null || !st.hasMoreElements()) \n { \n try\n { \n st = new StringTokenizer(br.readLine()); \n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n } \n return st.nextToken(); \n } \n \n int nextInt() \n { \n return Integer.parseInt(next()); \n } \n \n long nextLong() \n { \n return Long.parseLong(next()); \n } \n \n double nextDouble() \n { \n return Double.parseDouble(next()); \n } \n \n String nextLine() \n { \n String str = \"\"; \n try\n { \n str = br.readLine();\n } \n catch (IOException e) \n { \n e.printStackTrace(); \n } \n return str; \n } \n } \n public static void main(String args[])\n {\n FastReader sc=new FastReader();\n PrintWriter pw=new PrintWriter(System.out);\n int t=1;//sc.nextInt();\n while(t-->0)\n {\n String s[]=sc.next().split(\"S\");int max=0;\n for(String w:s)\n {\n max=Math.max(w.length(),max);\n }\n pw.println(max);\n }\n pw.close();\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.*; import java.io.InputStreamReader; import java.util.Scanner; import java.util.StringTokenizer; import java.util.*; import java.math.*; public class Main { static class FastReader { BufferedReader br; StringTokenizer st; public FastReader() { br = new BufferedReader(new InputStreamReader(System.in)); } String next() { while (st == null || !st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } double nextDouble() { return Double.parseDouble(next()); } String nextLine() { String str = ""; try { str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } return str; } } public static void main(String args[]) { FastReader sc=new FastReader(); PrintWriter pw=new PrintWriter(System.out); int t=1;//sc.nextInt(); while(t-->0) { String s[]=sc.next().split("S");int max=0; for(String w:s) { max=Math.max(w.length(),max); } pw.println(max); } pw.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 38, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 0, 13, 4, 18, 13, 13, 13, 14, 2, 4, 18, 13, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 75, 5 ], [ 75, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 10, 11 ], [ 11, 12 ], [ 11, 13 ], [ 10, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 10, 19 ], [ 19, 20 ], [ 19, 21 ], [ 10, 22 ], [ 22, 23 ], [ 22, 24 ], [ 10, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 27, 29 ], [ 25, 30 ], [ 30, 31 ], [ 30, 32 ], [ 25, 33 ], [ 33, 34 ], [ 34, 35 ], [ 25, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 46, 47 ], [ 37, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 50, 54 ], [ 37, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 56, 61 ], [ 55, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 10, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 6, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\tint max = 0;\n\t\t\tint tmp = 0;\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (n.charAt(i) == 'R') {\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\tmax = Math.max(max, tmp);\n\t\t\t\tif (n.charAt(i) == 'S') {\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(max);\n\t\t}\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\tint max = 0;\n\t\t\tint tmp = 0;\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (n.charAt(i) == 'R') {\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\tmax = Math.max(max, tmp);\n\t\t\t\tif (n.charAt(i) == 'S') {\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(max);\n\t\t}\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\tint max = 0;\n\t\t\tint tmp = 0;\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (n.charAt(i) == 'R') {\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\tmax = Math.max(max, tmp);\n\t\t\t\tif (n.charAt(i) == 'S') {\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(max);\n\t\t}\n\t}", "main", "{\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\tint max = 0;\n\t\t\tint tmp = 0;\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (n.charAt(i) == 'R') {\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\tmax = Math.max(max, tmp);\n\t\t\t\tif (n.charAt(i) == 'S') {\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(max);\n\t\t}\n\t}", "try (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\tint max = 0;\n\t\t\tint tmp = 0;\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (n.charAt(i) == 'R') {\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\tmax = Math.max(max, tmp);\n\t\t\t\tif (n.charAt(i) == 'S') {\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(max);\n\t\t}", "{\n\t\t\tString n = sc.next();\n\t\t\tint max = 0;\n\t\t\tint tmp = 0;\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (n.charAt(i) == 'R') {\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\tmax = Math.max(max, tmp);\n\t\t\t\tif (n.charAt(i) == 'S') {\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(max);\n\t\t}", "Scanner sc = new Scanner(System.in)", "Scanner sc = new Scanner(System.in)", "new Scanner(System.in)", "String n = sc.next();", "n", "sc.next()", "sc.next", "sc", "int max = 0;", "max", "0", "int tmp = 0;", "tmp", "0", "for (int i = 0; i < 3; i++) {\n\t\t\t\tif (n.charAt(i) == 'R') {\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\tmax = Math.max(max, tmp);\n\t\t\t\tif (n.charAt(i) == 'S') {\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}\n\t\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n\t\t\t\tif (n.charAt(i) == 'R') {\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\tmax = Math.max(max, tmp);\n\t\t\t\tif (n.charAt(i) == 'S') {\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif (n.charAt(i) == 'R') {\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\tmax = Math.max(max, tmp);\n\t\t\t\tif (n.charAt(i) == 'S') {\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}\n\t\t\t}", "if (n.charAt(i) == 'R') {\n\t\t\t\t\ttmp++;\n\t\t\t\t}", "n.charAt(i) == 'R'", "n.charAt(i)", "n.charAt", "n", "i", "'R'", "{\n\t\t\t\t\ttmp++;\n\t\t\t\t}", "tmp++", "tmp", "max = Math.max(max, tmp)", "max", "Math.max(max, tmp)", "Math.max", "Math", "max", "tmp", "if (n.charAt(i) == 'S') {\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}", "n.charAt(i) == 'S'", "n.charAt(i)", "n.charAt", "n", "i", "'S'", "{\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}", "tmp = 0", "tmp", "0", "System.out.print(max)", "System.out.print", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\tint max = 0;\n\t\t\tint tmp = 0;\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (n.charAt(i) == 'R') {\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\tmax = Math.max(max, tmp);\n\t\t\t\tif (n.charAt(i) == 'S') {\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(max);\n\t\t}\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner sc = new Scanner(System.in)) {\n\t\t\tString n = sc.next();\n\t\t\tint max = 0;\n\t\t\tint tmp = 0;\n\t\t\tfor (int i = 0; i < 3; i++) {\n\t\t\t\tif (n.charAt(i) == 'R') {\n\t\t\t\t\ttmp++;\n\t\t\t\t}\n\t\t\t\tmax = Math.max(max, tmp);\n\t\t\t\tif (n.charAt(i) == 'S') {\n\t\t\t\t\ttmp = 0;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(max);\n\t\t}\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { try (Scanner sc = new Scanner(System.in)) { String n = sc.next(); int max = 0; int tmp = 0; for (int i = 0; i < 3; i++) { if (n.charAt(i) == 'R') { tmp++; } max = Math.max(max, tmp); if (n.charAt(i) == 'S') { tmp = 0; } } System.out.print(max); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 4, 18, 13, 14, 4, 18, 13, 30, 4, 18, 18, 13, 13, 4, 18, 4, 18, 13, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 57, 11 ], [ 57, 12 ], [ 12, 13 ], [ 12, 14 ], [ 57, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 17, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 29, 30 ], [ 30, 31 ], [ 17, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 32, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 37, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 32, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 15, 54 ], [ 54, 55 ], [ 0, 56 ], [ 56, 57 ], [ 56, 58 ] ]
[ "import java.util.*;\nimport java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class Main{\n static final Scanner sc = new Scanner(System.in);\n public static void main(final String[] args){\n final Pattern p = Pattern.compile(\"R+\");\n final Matcher m = p.matcher(sc.next());\n if (m.find()){\n System.out.println(m.group().length());\n }else{\n System.out.println(0);\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.util.regex.Matcher;", "Matcher", "java.util.regex", "import java.util.regex.Pattern;", "Pattern", "java.util.regex", "public class Main{\n static final Scanner sc = new Scanner(System.in);\n public static void main(final String[] args){\n final Pattern p = Pattern.compile(\"R+\");\n final Matcher m = p.matcher(sc.next());\n if (m.find()){\n System.out.println(m.group().length());\n }else{\n System.out.println(0);\n }\n }\n}", "Main", "static final Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public static void main(final String[] args){\n final Pattern p = Pattern.compile(\"R+\");\n final Matcher m = p.matcher(sc.next());\n if (m.find()){\n System.out.println(m.group().length());\n }else{\n System.out.println(0);\n }\n }", "main", "{\n final Pattern p = Pattern.compile(\"R+\");\n final Matcher m = p.matcher(sc.next());\n if (m.find()){\n System.out.println(m.group().length());\n }else{\n System.out.println(0);\n }\n }", "final Pattern p = Pattern.compile(\"R+\");", "p", "Pattern.compile(\"R+\")", "Pattern.compile", "Pattern", "\"R+\"", "final Matcher m = p.matcher(sc.next());", "m", "p.matcher(sc.next())", "p.matcher", "p", "sc.next()", "sc.next", "sc", "if (m.find()){\n System.out.println(m.group().length());\n }else{\n System.out.println(0);\n }", "m.find()", "m.find", "m", "{\n System.out.println(m.group().length());\n }", "System.out.println(m.group().length())", "System.out.println", "System.out", "System", "System.out", "m.group().length()", "m.group().length", "m.group()", "m.group", "m", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "final String[] args", "args", "public class Main{\n static final Scanner sc = new Scanner(System.in);\n public static void main(final String[] args){\n final Pattern p = Pattern.compile(\"R+\");\n final Matcher m = p.matcher(sc.next());\n if (m.find()){\n System.out.println(m.group().length());\n }else{\n System.out.println(0);\n }\n }\n}", "public class Main{\n static final Scanner sc = new Scanner(System.in);\n public static void main(final String[] args){\n final Pattern p = Pattern.compile(\"R+\");\n final Matcher m = p.matcher(sc.next());\n if (m.find()){\n System.out.println(m.group().length());\n }else{\n System.out.println(0);\n }\n }\n}", "Main" ]
import java.util.*; import java.util.regex.Matcher; import java.util.regex.Pattern; public class Main{ static final Scanner sc = new Scanner(System.in); public static void main(final String[] args){ final Pattern p = Pattern.compile("R+"); final Matcher m = p.matcher(sc.next()); if (m.find()){ System.out.println(m.group().length()); }else{ System.out.println(0); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 2, 4, 18, 13, 17, 40, 17, 30, 0, 13, 17, 30, 14, 2, 4, 18, 13, 17, 40, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 67, 5 ], [ 67, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 21, 24 ], [ 20, 25 ], [ 25, 26 ], [ 26, 27 ], [ 26, 28 ], [ 20, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 29, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 48, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 42, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 6, 64 ], [ 64, 65 ], [ 0, 66 ], [ 66, 67 ], [ 66, 68 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[]args){\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n int ans = 0;\n\n if(S.equals(\"RRR\")){\n ans =3;\n }else if(S.indexOf(\"R\") == -1){\n ans = 0;\n }else{\n if(S.indexOf(\"RR\") == -1){\n ans = 1;\n }else{\n ans = 2;\n }\n }\n System.out.println(ans);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[]args){\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n int ans = 0;\n\n if(S.equals(\"RRR\")){\n ans =3;\n }else if(S.indexOf(\"R\") == -1){\n ans = 0;\n }else{\n if(S.indexOf(\"RR\") == -1){\n ans = 1;\n }else{\n ans = 2;\n }\n }\n System.out.println(ans);\n }\n}", "Main", "public static void main(String[]args){\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n int ans = 0;\n\n if(S.equals(\"RRR\")){\n ans =3;\n }else if(S.indexOf(\"R\") == -1){\n ans = 0;\n }else{\n if(S.indexOf(\"RR\") == -1){\n ans = 1;\n }else{\n ans = 2;\n }\n }\n System.out.println(ans);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n int ans = 0;\n\n if(S.equals(\"RRR\")){\n ans =3;\n }else if(S.indexOf(\"R\") == -1){\n ans = 0;\n }else{\n if(S.indexOf(\"RR\") == -1){\n ans = 1;\n }else{\n ans = 2;\n }\n }\n System.out.println(ans);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.nextLine();", "S", "sc.nextLine()", "sc.nextLine", "sc", "int ans = 0;", "ans", "0", "if(S.equals(\"RRR\")){\n ans =3;\n }else if(S.indexOf(\"R\") == -1){\n ans = 0;\n }else{\n if(S.indexOf(\"RR\") == -1){\n ans = 1;\n }else{\n ans = 2;\n }\n }", "S.equals(\"RRR\")", "S.equals", "S", "\"RRR\"", "{\n ans =3;\n }", "ans =3", "ans", "3", "if(S.indexOf(\"R\") == -1){\n ans = 0;\n }else{\n if(S.indexOf(\"RR\") == -1){\n ans = 1;\n }else{\n ans = 2;\n }\n }", "S.indexOf(\"R\") == -1", "S.indexOf(\"R\")", "S.indexOf", "S", "\"R\"", "-1", "1", "{\n ans = 0;\n }", "ans = 0", "ans", "0", "{\n if(S.indexOf(\"RR\") == -1){\n ans = 1;\n }else{\n ans = 2;\n }\n }", "if(S.indexOf(\"RR\") == -1){\n ans = 1;\n }else{\n ans = 2;\n }", "S.indexOf(\"RR\") == -1", "S.indexOf(\"RR\")", "S.indexOf", "S", "\"RR\"", "-1", "1", "{\n ans = 1;\n }", "ans = 1", "ans", "1", "{\n ans = 2;\n }", "ans = 2", "ans", "2", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[]args", "args", "public class Main {\n public static void main(String[]args){\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n int ans = 0;\n\n if(S.equals(\"RRR\")){\n ans =3;\n }else if(S.indexOf(\"R\") == -1){\n ans = 0;\n }else{\n if(S.indexOf(\"RR\") == -1){\n ans = 1;\n }else{\n ans = 2;\n }\n }\n System.out.println(ans);\n }\n}", "public class Main {\n public static void main(String[]args){\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n int ans = 0;\n\n if(S.equals(\"RRR\")){\n ans =3;\n }else if(S.indexOf(\"R\") == -1){\n ans = 0;\n }else{\n if(S.indexOf(\"RR\") == -1){\n ans = 1;\n }else{\n ans = 2;\n }\n }\n System.out.println(ans);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[]args){ Scanner sc = new Scanner(System.in); String S = sc.nextLine(); int ans = 0; if(S.equals("RRR")){ ans =3; }else if(S.indexOf("R") == -1){ ans = 0; }else{ if(S.indexOf("RR") == -1){ ans = 1; }else{ ans = 2; } } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 18, 20, 4, 18, 18, 13, 13, 8, 4, 18, 13, 17, 17, 8, 4, 18, 13, 17, 17, 8, 4, 18, 13, 17, 17, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 41, 5 ], [ 41, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 8, 14 ], [ 14, 15 ], [ 15, 16 ], [ 16, 17 ], [ 16, 18 ], [ 14, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 19, 24 ], [ 19, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 25, 30 ], [ 25, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 32, 35 ], [ 31, 36 ], [ 31, 37 ], [ 6, 38 ], [ 38, 39 ], [ 0, 40 ], [ 40, 41 ], [ 40, 42 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tString s = new Scanner(System.in).next();\n\t\tSystem.out.println(s.equals(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tString s = new Scanner(System.in).next();\n\t\tSystem.out.println(s.equals(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tString s = new Scanner(System.in).next();\n\t\tSystem.out.println(s.equals(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n\t}", "main", "{\n\t\tString s = new Scanner(System.in).next();\n\t\tSystem.out.println(s.equals(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n\t}", "String s = new Scanner(System.in).next();", "s", "new Scanner(System.in).next()", "new Scanner(System.in).next", "new Scanner(System.in)", "System.out.println(s.equals(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0)", "System.out.println", "System.out", "System", "System.out", "s.equals(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0", "s.equals(\"RRR\")", "s.equals", "s", "\"RRR\"", "3", "s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0", "s.contains(\"RR\")", "s.contains", "s", "\"RR\"", "2", "s.contains(\"R\") ? 1 : 0", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "1", "0", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tString s = new Scanner(System.in).next();\n\t\tSystem.out.println(s.equals(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t\tString s = new Scanner(System.in).next();\n\t\tSystem.out.println(s.equals(\"RRR\") ? 3 : s.contains(\"RR\") ? 2 : s.contains(\"R\") ? 1 : 0);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { String s = new Scanner(System.in).next(); System.out.println(s.equals("RRR") ? 3 : s.contains("RR") ? 2 : s.contains("R") ? 1 : 0); } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 23, 13, 12, 13, 30, 14, 4, 18, 13, 30, 29, 4, 18, 13, 0, 13, 20, 29, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 14, 40, 4, 18, 13, 30, 0, 13, 20, 29, 4, 13, 41, 13, 17, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 29, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 252, 8 ], [ 252, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 11, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 11, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 39, 42 ], [ 33, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 44, 47 ], [ 43, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 43, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 11, 58 ], [ 58, 59 ], [ 59, 60 ], [ 9, 61 ], [ 61, 62 ], [ 252, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 63, 67 ], [ 67, 68 ], [ 63, 69 ], [ 69, 70 ], [ 69, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 69, 78 ], [ 78, 79 ], [ 63, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 83, 92 ], [ 92, 93 ], [ 92, 94 ], [ 82, 95 ], [ 95, 96 ], [ 96, 97 ], [ 63, 98 ], [ 98, 99 ], [ 98, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 105, 106 ], [ 63, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 112, 113 ], [ 111, 114 ], [ 114, 115 ], [ 63, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 63, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 128, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 133, 137 ], [ 137, 138 ], [ 138, 139 ], [ 127, 140 ], [ 140, 141 ], [ 140, 142 ], [ 127, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 150, 151 ], [ 151, 152 ], [ 127, 153 ], [ 153, 154 ], [ 63, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 164, 166 ], [ 162, 167 ], [ 167, 168 ], [ 167, 169 ], [ 169, 170 ], [ 169, 171 ], [ 162, 172 ], [ 172, 173 ], [ 173, 174 ], [ 162, 175 ], [ 176, 176 ], [ 176, 177 ], [ 177, 178 ], [ 178, 179 ], [ 178, 180 ], [ 177, 181 ], [ 181, 182 ], [ 157, 183 ], [ 183, 184 ], [ 155, 185 ], [ 185, 186 ], [ 63, 187 ], [ 187, 188 ], [ 187, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 189, 194 ], [ 194, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 194, 199 ], [ 199, 200 ], [ 199, 201 ], [ 201, 202 ], [ 201, 203 ], [ 194, 204 ], [ 204, 205 ], [ 205, 206 ], [ 194, 207 ], [ 208, 208 ], [ 208, 209 ], [ 209, 210 ], [ 210, 211 ], [ 210, 212 ], [ 209, 213 ], [ 213, 214 ], [ 189, 215 ], [ 215, 216 ], [ 187, 217 ], [ 217, 218 ], [ 63, 219 ], [ 219, 220 ], [ 219, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 221, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 228, 230 ], [ 226, 231 ], [ 231, 232 ], [ 231, 233 ], [ 233, 234 ], [ 233, 235 ], [ 226, 236 ], [ 236, 237 ], [ 237, 238 ], [ 226, 239 ], [ 240, 240 ], [ 240, 241 ], [ 241, 242 ], [ 242, 243 ], [ 242, 244 ], [ 241, 245 ], [ 245, 246 ], [ 221, 247 ], [ 247, 248 ], [ 219, 249 ], [ 249, 250 ], [ 0, 251 ], [ 251, 252 ], [ 251, 253 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n FastScanner in = new FastScanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n String s = in.next();\n if (s.contains(\"RRR\")) {\n out.println(3);\n }\n else if (s.contains(\"RR\")) {\n out.println(2);\n }\n else if (s.contains(\"R\")) {\n out.println(1);\n }\n else {\n out.println(0);\n }\n\n out.close();\n\n }\n\n\n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n public FastScanner(InputStream i) {\n br = new BufferedReader(new InputStreamReader(i));\n st = new StringTokenizer(\"\");\n }\n public String next() throws IOException {\n if (st.hasMoreTokens()) {\n return st.nextToken();\n }\n else\n st = new StringTokenizer(br.readLine());\n return next();\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n public String nextLine() throws IOException {\n if (!st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n return nextLine();\n }\n\n String ret = \"\";\n while (st.hasMoreTokens()) {\n ret += st.nextToken();\n }\n return ret;\n }\n public int[] nextIntArr(int size) throws IOException {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n public long[] nextLongArr(int size) throws IOException {\n long[] arr = new long[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n public double[] nextDoubleArr(int size) throws IOException {\n double[] arr = new double[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n public static void main(String[] args) throws IOException {\n FastScanner in = new FastScanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n String s = in.next();\n if (s.contains(\"RRR\")) {\n out.println(3);\n }\n else if (s.contains(\"RR\")) {\n out.println(2);\n }\n else if (s.contains(\"R\")) {\n out.println(1);\n }\n else {\n out.println(0);\n }\n\n out.close();\n\n }\n\n\n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n public FastScanner(InputStream i) {\n br = new BufferedReader(new InputStreamReader(i));\n st = new StringTokenizer(\"\");\n }\n public String next() throws IOException {\n if (st.hasMoreTokens()) {\n return st.nextToken();\n }\n else\n st = new StringTokenizer(br.readLine());\n return next();\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n public String nextLine() throws IOException {\n if (!st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n return nextLine();\n }\n\n String ret = \"\";\n while (st.hasMoreTokens()) {\n ret += st.nextToken();\n }\n return ret;\n }\n public int[] nextIntArr(int size) throws IOException {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n public long[] nextLongArr(int size) throws IOException {\n long[] arr = new long[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n public double[] nextDoubleArr(int size) throws IOException {\n double[] arr = new double[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }\n }\n}", "Main", "public static void main(String[] args) throws IOException {\n FastScanner in = new FastScanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n String s = in.next();\n if (s.contains(\"RRR\")) {\n out.println(3);\n }\n else if (s.contains(\"RR\")) {\n out.println(2);\n }\n else if (s.contains(\"R\")) {\n out.println(1);\n }\n else {\n out.println(0);\n }\n\n out.close();\n\n }", "main", "{\n FastScanner in = new FastScanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n String s = in.next();\n if (s.contains(\"RRR\")) {\n out.println(3);\n }\n else if (s.contains(\"RR\")) {\n out.println(2);\n }\n else if (s.contains(\"R\")) {\n out.println(1);\n }\n else {\n out.println(0);\n }\n\n out.close();\n\n }", "FastScanner in = new FastScanner(System.in);", "in", "new FastScanner(System.in)", "PrintWriter out = new PrintWriter(System.out);", "out", "new PrintWriter(System.out)", "String s = in.next();", "s", "in.next()", "in.next", "in", "if (s.contains(\"RRR\")) {\n out.println(3);\n }\n else if (s.contains(\"RR\")) {\n out.println(2);\n }\n else if (s.contains(\"R\")) {\n out.println(1);\n }\n else {\n out.println(0);\n }", "s.contains(\"RRR\")", "s.contains", "s", "\"RRR\"", "{\n out.println(3);\n }", "out.println(3)", "out.println", "out", "3", "if (s.contains(\"RR\")) {\n out.println(2);\n }\n else if (s.contains(\"R\")) {\n out.println(1);\n }\n else {\n out.println(0);\n }", "s.contains(\"RR\")", "s.contains", "s", "\"RR\"", "{\n out.println(2);\n }", "out.println(2)", "out.println", "out", "2", "if (s.contains(\"R\")) {\n out.println(1);\n }\n else {\n out.println(0);\n }", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "{\n out.println(1);\n }", "out.println(1)", "out.println", "out", "1", "{\n out.println(0);\n }", "out.println(0)", "out.println", "out", "0", "out.close()", "out.close", "out", "String[] args", "args", "static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n public FastScanner(InputStream i) {\n br = new BufferedReader(new InputStreamReader(i));\n st = new StringTokenizer(\"\");\n }\n public String next() throws IOException {\n if (st.hasMoreTokens()) {\n return st.nextToken();\n }\n else\n st = new StringTokenizer(br.readLine());\n return next();\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n public String nextLine() throws IOException {\n if (!st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n return nextLine();\n }\n\n String ret = \"\";\n while (st.hasMoreTokens()) {\n ret += st.nextToken();\n }\n return ret;\n }\n public int[] nextIntArr(int size) throws IOException {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n public long[] nextLongArr(int size) throws IOException {\n long[] arr = new long[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n public double[] nextDoubleArr(int size) throws IOException {\n double[] arr = new double[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }\n }", "FastScanner", "BufferedReader br;", "br", "StringTokenizer st;", "st", "public FastScanner(InputStream i) {\n br = new BufferedReader(new InputStreamReader(i));\n st = new StringTokenizer(\"\");\n }", "FastScanner", "{\n br = new BufferedReader(new InputStreamReader(i));\n st = new StringTokenizer(\"\");\n }", "br = new BufferedReader(new InputStreamReader(i))", "br", "new BufferedReader(new InputStreamReader(i))", "st = new StringTokenizer(\"\")", "st", "new StringTokenizer(\"\")", "InputStream i", "i", "public String next() throws IOException {\n if (st.hasMoreTokens()) {\n return st.nextToken();\n }\n else\n st = new StringTokenizer(br.readLine());\n return next();\n }", "next", "{\n if (st.hasMoreTokens()) {\n return st.nextToken();\n }\n else\n st = new StringTokenizer(br.readLine());\n return next();\n }", "if (st.hasMoreTokens()) {\n return st.nextToken();\n }\n else\n st = new StringTokenizer(br.readLine());", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n return st.nextToken();\n }", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return next();", "next()", "next", "public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }", "nextDouble", "{\n return Double.parseDouble(next());\n }", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "public long nextLong() throws IOException {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public String nextLine() throws IOException {\n if (!st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n return nextLine();\n }\n\n String ret = \"\";\n while (st.hasMoreTokens()) {\n ret += st.nextToken();\n }\n return ret;\n }", "nextLine", "{\n if (!st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n return nextLine();\n }\n\n String ret = \"\";\n while (st.hasMoreTokens()) {\n ret += st.nextToken();\n }\n return ret;\n }", "if (!st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n return nextLine();\n }", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n st = new StringTokenizer(br.readLine());\n return nextLine();\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return nextLine();", "nextLine()", "nextLine", "String ret = \"\";", "ret", "\"\"", "while (st.hasMoreTokens()) {\n ret += st.nextToken();\n }", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "{\n ret += st.nextToken();\n }", "ret += st.nextToken()", "ret", "st.nextToken()", "st.nextToken", "st", "return ret;", "ret", "public int[] nextIntArr(int size) throws IOException {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }", "nextIntArr", "{\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }", "int[] arr = new int[size];", "arr", "new int[size]", "size", "for (int i = 0; i < arr.length; i++) {\n arr[i] = nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n arr[i] = nextInt();\n }", "{\n arr[i] = nextInt();\n }", "arr[i] = nextInt()", "arr[i]", "arr", "i", "nextInt()", "nextInt", "return arr;", "arr", "int size", "size", "public long[] nextLongArr(int size) throws IOException {\n long[] arr = new long[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }", "nextLongArr", "{\n long[] arr = new long[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }", "long[] arr = new long[size];", "arr", "new long[size]", "size", "for (int i = 0; i < arr.length; i++) {\n arr[i] = nextLong();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n arr[i] = nextLong();\n }", "{\n arr[i] = nextLong();\n }", "arr[i] = nextLong()", "arr[i]", "arr", "i", "nextLong()", "nextLong", "return arr;", "arr", "int size", "size", "public double[] nextDoubleArr(int size) throws IOException {\n double[] arr = new double[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }", "nextDoubleArr", "{\n double[] arr = new double[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }", "double[] arr = new double[size];", "arr", "new double[size]", "size", "for (int i = 0; i < arr.length; i++) {\n arr[i] = nextDouble();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < arr.length", "i", "arr.length", "arr", "arr.length", "i++", "i++", "i", "{\n arr[i] = nextDouble();\n }", "{\n arr[i] = nextDouble();\n }", "arr[i] = nextDouble()", "arr[i]", "arr", "i", "nextDouble()", "nextDouble", "return arr;", "arr", "int size", "size", "public class Main {\n public static void main(String[] args) throws IOException {\n FastScanner in = new FastScanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n String s = in.next();\n if (s.contains(\"RRR\")) {\n out.println(3);\n }\n else if (s.contains(\"RR\")) {\n out.println(2);\n }\n else if (s.contains(\"R\")) {\n out.println(1);\n }\n else {\n out.println(0);\n }\n\n out.close();\n\n }\n\n\n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n public FastScanner(InputStream i) {\n br = new BufferedReader(new InputStreamReader(i));\n st = new StringTokenizer(\"\");\n }\n public String next() throws IOException {\n if (st.hasMoreTokens()) {\n return st.nextToken();\n }\n else\n st = new StringTokenizer(br.readLine());\n return next();\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n public String nextLine() throws IOException {\n if (!st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n return nextLine();\n }\n\n String ret = \"\";\n while (st.hasMoreTokens()) {\n ret += st.nextToken();\n }\n return ret;\n }\n public int[] nextIntArr(int size) throws IOException {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n public long[] nextLongArr(int size) throws IOException {\n long[] arr = new long[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n public double[] nextDoubleArr(int size) throws IOException {\n double[] arr = new double[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }\n }\n}", "public class Main {\n public static void main(String[] args) throws IOException {\n FastScanner in = new FastScanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n String s = in.next();\n if (s.contains(\"RRR\")) {\n out.println(3);\n }\n else if (s.contains(\"RR\")) {\n out.println(2);\n }\n else if (s.contains(\"R\")) {\n out.println(1);\n }\n else {\n out.println(0);\n }\n\n out.close();\n\n }\n\n\n static class FastScanner {\n BufferedReader br;\n StringTokenizer st;\n public FastScanner(InputStream i) {\n br = new BufferedReader(new InputStreamReader(i));\n st = new StringTokenizer(\"\");\n }\n public String next() throws IOException {\n if (st.hasMoreTokens()) {\n return st.nextToken();\n }\n else\n st = new StringTokenizer(br.readLine());\n return next();\n }\n public int nextInt() throws IOException {\n return Integer.parseInt(next());\n }\n public double nextDouble() throws IOException {\n return Double.parseDouble(next());\n }\n public long nextLong() throws IOException {\n return Long.parseLong(next());\n }\n public String nextLine() throws IOException {\n if (!st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n return nextLine();\n }\n\n String ret = \"\";\n while (st.hasMoreTokens()) {\n ret += st.nextToken();\n }\n return ret;\n }\n public int[] nextIntArr(int size) throws IOException {\n int[] arr = new int[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextInt();\n }\n return arr;\n }\n public long[] nextLongArr(int size) throws IOException {\n long[] arr = new long[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextLong();\n }\n return arr;\n }\n public double[] nextDoubleArr(int size) throws IOException {\n double[] arr = new double[size];\n for (int i = 0; i < arr.length; i++) {\n arr[i] = nextDouble();\n }\n return arr;\n }\n }\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { public static void main(String[] args) throws IOException { FastScanner in = new FastScanner(System.in); PrintWriter out = new PrintWriter(System.out); String s = in.next(); if (s.contains("RRR")) { out.println(3); } else if (s.contains("RR")) { out.println(2); } else if (s.contains("R")) { out.println(1); } else { out.println(0); } out.close(); } static class FastScanner { BufferedReader br; StringTokenizer st; public FastScanner(InputStream i) { br = new BufferedReader(new InputStreamReader(i)); st = new StringTokenizer(""); } public String next() throws IOException { if (st.hasMoreTokens()) { return st.nextToken(); } else st = new StringTokenizer(br.readLine()); return next(); } public int nextInt() throws IOException { return Integer.parseInt(next()); } public double nextDouble() throws IOException { return Double.parseDouble(next()); } public long nextLong() throws IOException { return Long.parseLong(next()); } public String nextLine() throws IOException { if (!st.hasMoreTokens()) { st = new StringTokenizer(br.readLine()); return nextLine(); } String ret = ""; while (st.hasMoreTokens()) { ret += st.nextToken(); } return ret; } public int[] nextIntArr(int size) throws IOException { int[] arr = new int[size]; for (int i = 0; i < arr.length; i++) { arr[i] = nextInt(); } return arr; } public long[] nextLongArr(int size) throws IOException { long[] arr = new long[size]; for (int i = 0; i < arr.length; i++) { arr[i] = nextLong(); } return arr; } public double[] nextDoubleArr(int size) throws IOException { double[] arr = new double[size]; for (int i = 0; i < arr.length; i++) { arr[i] = nextDouble(); } return arr; } } }
[ 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, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 68, 14 ], [ 68, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 27, 30 ], [ 26, 31 ], [ 31, 32 ], [ 32, 33 ], [ 33, 34 ], [ 33, 35 ], [ 31, 36 ], [ 26, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 38, 41 ], [ 37, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 37, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 48, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 15, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "import java.lang.reflect.Array;\nimport java.util.*;\nimport java.io.*;\nimport java.lang.*;\n\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n \n if (s.contains(\"RRR\"))\n System.out.println(3);\n else if (s.contains(\"RR\"))\n System.out.println(2);\n else if (s.contains(\"R\"))\n System.out.println(1);\n else\n System.out.println(0);\n\n\n }\n}", "import java.lang.reflect.Array;", "Array", "java.lang.reflect", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.lang.*;", "lang.*", "java", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n \n if (s.contains(\"RRR\"))\n System.out.println(3);\n else if (s.contains(\"RR\"))\n System.out.println(2);\n else if (s.contains(\"R\"))\n System.out.println(1);\n else\n System.out.println(0);\n\n\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n \n if (s.contains(\"RRR\"))\n System.out.println(3);\n else if (s.contains(\"RR\"))\n System.out.println(2);\n else if (s.contains(\"R\"))\n System.out.println(1);\n else\n System.out.println(0);\n\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n \n if (s.contains(\"RRR\"))\n System.out.println(3);\n else if (s.contains(\"RR\"))\n System.out.println(2);\n else if (s.contains(\"R\"))\n System.out.println(1);\n else\n System.out.println(0);\n\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if (s.contains(\"RRR\"))\n System.out.println(3);\n else if (s.contains(\"RR\"))\n System.out.println(2);\n else if (s.contains(\"R\"))\n System.out.println(1);\n else\n System.out.println(0);", "s.contains(\"RRR\")", "s.contains", "s", "\"RRR\"", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if (s.contains(\"RR\"))\n System.out.println(2);\n else if (s.contains(\"R\"))\n System.out.println(1);\n else\n System.out.println(0);", "s.contains(\"RR\")", "s.contains", "s", "\"RR\"", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if (s.contains(\"R\"))\n System.out.println(1);\n else\n System.out.println(0);", "s.contains(\"R\")", "s.contains", "s", "\"R\"", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String[] args", "args", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n \n if (s.contains(\"RRR\"))\n System.out.println(3);\n else if (s.contains(\"RR\"))\n System.out.println(2);\n else if (s.contains(\"R\"))\n System.out.println(1);\n else\n System.out.println(0);\n\n\n }\n}", "public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n \n if (s.contains(\"RRR\"))\n System.out.println(3);\n else if (s.contains(\"RR\"))\n System.out.println(2);\n else if (s.contains(\"R\"))\n System.out.println(1);\n else\n System.out.println(0);\n\n\n }\n}", "Main" ]
import java.lang.reflect.Array; import java.util.*; import java.io.*; import java.lang.*; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); if (s.contains("RRR")) System.out.println(3); else if (s.contains("RR")) System.out.println(2); else if (s.contains("R")) System.out.println(1); else System.out.println(0); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 69, 11 ], [ 69, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 24, 27 ], [ 23, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 23, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 41, 46 ], [ 35, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 48, 51 ], [ 47, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 53, 58 ], [ 47, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 12, 66 ], [ 66, 67 ], [ 0, 68 ], [ 68, 69 ], [ 68, 70 ] ]
[ " import java.io.BufferedReader;\n import java.io.IOException;\n import java.io.InputStreamReader;\n\n public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n\n if(line.contains(\"RRR\")){\n System.out.println(\"3\");\n }\n else if(line.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(line.contains(\"R\")){\n System.out.println(1);\n }\n else {\n System.out.println(0);\n }\n }\n }", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n\n if(line.contains(\"RRR\")){\n System.out.println(\"3\");\n }\n else if(line.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(line.contains(\"R\")){\n System.out.println(1);\n }\n else {\n System.out.println(0);\n }\n }\n }", "Main", "public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n\n if(line.contains(\"RRR\")){\n System.out.println(\"3\");\n }\n else if(line.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(line.contains(\"R\")){\n System.out.println(1);\n }\n else {\n System.out.println(0);\n }\n }", "main", "{\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n\n if(line.contains(\"RRR\")){\n System.out.println(\"3\");\n }\n else if(line.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(line.contains(\"R\")){\n System.out.println(1);\n }\n else {\n System.out.println(0);\n }\n }", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "String line = br.readLine();", "line", "br.readLine()", "br.readLine", "br", "if(line.contains(\"RRR\")){\n System.out.println(\"3\");\n }\n else if(line.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(line.contains(\"R\")){\n System.out.println(1);\n }\n else {\n System.out.println(0);\n }", "line.contains(\"RRR\")", "line.contains", "line", "\"RRR\"", "{\n System.out.println(\"3\");\n }", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if(line.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(line.contains(\"R\")){\n System.out.println(1);\n }\n else {\n System.out.println(0);\n }", "line.contains(\"RR\")", "line.contains", "line", "\"RR\"", "{\n System.out.println(\"2\");\n }", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if(line.contains(\"R\")){\n System.out.println(1);\n }\n else {\n System.out.println(0);\n }", "line.contains(\"R\")", "line.contains", "line", "\"R\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n\n if(line.contains(\"RRR\")){\n System.out.println(\"3\");\n }\n else if(line.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(line.contains(\"R\")){\n System.out.println(1);\n }\n else {\n System.out.println(0);\n }\n }\n }", "public class Main {\n\n public static void main(String[] args) throws IOException {\n\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String line = br.readLine();\n\n if(line.contains(\"RRR\")){\n System.out.println(\"3\");\n }\n else if(line.contains(\"RR\")){\n System.out.println(\"2\");\n }\n else if(line.contains(\"R\")){\n System.out.println(1);\n }\n else {\n System.out.println(0);\n }\n }\n }", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String line = br.readLine(); if(line.contains("RRR")){ System.out.println("3"); } else if(line.contains("RR")){ System.out.println("2"); } else if(line.contains("R")){ System.out.println(1); } else { System.out.println(0); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 17, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 29, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 14, 2, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 14, 2, 13, 17, 30, 14, 2, 13, 13, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 13, 29, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 128, 5 ], [ 128, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 8, 35 ], [ 35, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 37, 41 ], [ 41, 42 ], [ 41, 43 ], [ 37, 44 ], [ 44, 45 ], [ 44, 46 ], [ 35, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 48, 53 ], [ 47, 54 ], [ 8, 55 ], [ 55, 56 ], [ 57, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 57, 61 ], [ 61, 62 ], [ 61, 63 ], [ 57, 64 ], [ 64, 65 ], [ 64, 66 ], [ 55, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 55, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 78, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 82, 87 ], [ 78, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 73, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 94, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 99, 103 ], [ 103, 104 ], [ 104, 105 ], [ 105, 106 ], [ 105, 107 ], [ 103, 108 ], [ 99, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 111, 113 ], [ 109, 114 ], [ 94, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 8, 121 ], [ 121, 122 ], [ 122, 123 ], [ 8, 124 ], [ 6, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.util.*;\n\npublic class Main{\n\tstatic public void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str=sc.next();\n\t\tchar ch1=str.charAt(0),ch2=str.charAt(1),ch3=str.charAt(2);\n\t\t\n\t\tif(ch1==ch2&&ch2==ch3&&ch1=='S'){\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\tif(ch1==ch2&&ch2==ch3&&ch1=='R')System.out.println(3);\n\t\telse if(ch1=='R'){\n\t\t\tif(ch1==ch2)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse if(ch3=='R'){\n\t\t\tif(ch2==ch3)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse System.out.println(1);\n\t\tsc.close();\n\t\treturn;\n\t}\n}", "import java.util.*;", "util.*", "java", "public class Main{\n\tstatic public void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str=sc.next();\n\t\tchar ch1=str.charAt(0),ch2=str.charAt(1),ch3=str.charAt(2);\n\t\t\n\t\tif(ch1==ch2&&ch2==ch3&&ch1=='S'){\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\tif(ch1==ch2&&ch2==ch3&&ch1=='R')System.out.println(3);\n\t\telse if(ch1=='R'){\n\t\t\tif(ch1==ch2)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse if(ch3=='R'){\n\t\t\tif(ch2==ch3)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse System.out.println(1);\n\t\tsc.close();\n\t\treturn;\n\t}\n}", "Main", "static public void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str=sc.next();\n\t\tchar ch1=str.charAt(0),ch2=str.charAt(1),ch3=str.charAt(2);\n\t\t\n\t\tif(ch1==ch2&&ch2==ch3&&ch1=='S'){\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\tif(ch1==ch2&&ch2==ch3&&ch1=='R')System.out.println(3);\n\t\telse if(ch1=='R'){\n\t\t\tif(ch1==ch2)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse if(ch3=='R'){\n\t\t\tif(ch2==ch3)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse System.out.println(1);\n\t\tsc.close();\n\t\treturn;\n\t}", "main", "{\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str=sc.next();\n\t\tchar ch1=str.charAt(0),ch2=str.charAt(1),ch3=str.charAt(2);\n\t\t\n\t\tif(ch1==ch2&&ch2==ch3&&ch1=='S'){\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\tif(ch1==ch2&&ch2==ch3&&ch1=='R')System.out.println(3);\n\t\telse if(ch1=='R'){\n\t\t\tif(ch1==ch2)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse if(ch3=='R'){\n\t\t\tif(ch2==ch3)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse System.out.println(1);\n\t\tsc.close();\n\t\treturn;\n\t}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "String str=sc.next();", "str", "sc.next()", "sc.next", "sc", "char ch1=str.charAt(0)", "ch1", "str.charAt(0)", "str.charAt", "str", "0", "ch2=str.charAt(1)", "ch2", "str.charAt(1)", "str.charAt", "str", "1", "ch3=str.charAt(2);", "ch3", "str.charAt(2)", "str.charAt", "str", "2", "if(ch1==ch2&&ch2==ch3&&ch1=='S'){\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}", "ch1==ch2&&ch2==ch3&&ch1=='S'", "ch1==ch2&&ch2==ch3&&ch1=='S'", "ch1==ch2", "ch1", "ch2", "ch2==ch3", "ch2", "ch3", "ch1=='S'", "ch1", "'S'", "{\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "return;", "if(ch1==ch2&&ch2==ch3&&ch1=='R')System.out.println(3);\n\t\telse if(ch1=='R'){\n\t\t\tif(ch1==ch2)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse if(ch3=='R'){\n\t\t\tif(ch2==ch3)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse System.out.println(1);", "ch1==ch2&&ch2==ch3&&ch1=='R'", "ch1==ch2&&ch2==ch3&&ch1=='R'", "ch1==ch2", "ch1", "ch2", "ch2==ch3", "ch2", "ch3", "ch1=='R'", "ch1", "'R'", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if(ch1=='R'){\n\t\t\tif(ch1==ch2)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse if(ch3=='R'){\n\t\t\tif(ch2==ch3)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse System.out.println(1);", "ch1=='R'", "ch1", "'R'", "{\n\t\t\tif(ch1==ch2)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}", "if(ch1==ch2)System.out.println(2);\n\t\t\telse System.out.println(1);", "ch1==ch2", "ch1", "ch2", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(ch3=='R'){\n\t\t\tif(ch2==ch3)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse System.out.println(1);", "ch3=='R'", "ch3", "'R'", "{\n\t\t\tif(ch2==ch3)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}", "if(ch2==ch3)System.out.println(2);\n\t\t\telse System.out.println(1);", "ch2==ch3", "ch2", "ch3", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "sc.close()", "sc.close", "sc", "return;", "String[] args", "args", "public class Main{\n\tstatic public void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str=sc.next();\n\t\tchar ch1=str.charAt(0),ch2=str.charAt(1),ch3=str.charAt(2);\n\t\t\n\t\tif(ch1==ch2&&ch2==ch3&&ch1=='S'){\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\tif(ch1==ch2&&ch2==ch3&&ch1=='R')System.out.println(3);\n\t\telse if(ch1=='R'){\n\t\t\tif(ch1==ch2)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse if(ch3=='R'){\n\t\t\tif(ch2==ch3)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse System.out.println(1);\n\t\tsc.close();\n\t\treturn;\n\t}\n}", "public class Main{\n\tstatic public void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tString str=sc.next();\n\t\tchar ch1=str.charAt(0),ch2=str.charAt(1),ch3=str.charAt(2);\n\t\t\n\t\tif(ch1==ch2&&ch2==ch3&&ch1=='S'){\n\t\t\tSystem.out.println(0);\n\t\t\treturn;\n\t\t}\n\t\tif(ch1==ch2&&ch2==ch3&&ch1=='R')System.out.println(3);\n\t\telse if(ch1=='R'){\n\t\t\tif(ch1==ch2)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse if(ch3=='R'){\n\t\t\tif(ch2==ch3)System.out.println(2);\n\t\t\telse System.out.println(1);\n\t\t}\n\t\telse System.out.println(1);\n\t\tsc.close();\n\t\treturn;\n\t}\n}", "Main" ]
import java.util.*; public class Main{ static public void main(String[] args){ Scanner sc=new Scanner(System.in); String str=sc.next(); char ch1=str.charAt(0),ch2=str.charAt(1),ch3=str.charAt(2); if(ch1==ch2&&ch2==ch3&&ch1=='S'){ System.out.println(0); return; } if(ch1==ch2&&ch2==ch3&&ch1=='R')System.out.println(3); else if(ch1=='R'){ if(ch1==ch2)System.out.println(2); else System.out.println(1); } else if(ch3=='R'){ if(ch2==ch3)System.out.println(2); else System.out.println(1); } else System.out.println(1); sc.close(); return; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 14, 2, 4, 18, 13, 17, 40, 17, 30, 0, 13, 17, 14, 2, 4, 18, 13, 17, 40, 17, 30, 0, 13, 17, 14, 2, 4, 18, 13, 17, 40, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 68, 5 ], [ 68, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 25, 28 ], [ 24, 29 ], [ 29, 30 ], [ 23, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 36, 41 ], [ 41, 42 ], [ 35, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 8, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 53, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 56, 58 ], [ 8, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 6, 65 ], [ 65, 66 ], [ 0, 67 ], [ 67, 68 ], [ 67, 69 ] ]
[ "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\tString record = sc.next();\n\t\tsc.close();\n\n\t\tint result = 0;\n\t\tif(record.indexOf(\"R\") > -1) {\n\t\t\tresult = 1;\n\t\t}\n\n\t\tif(record.indexOf(\"RR\") > -1) {\n\t\t\tresult = 2;\n\t\t}\n\n\t\tif(record.indexOf(\"RRR\") > -1) {\n\t\t\tresult = 3;\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString record = sc.next();\n\t\tsc.close();\n\n\t\tint result = 0;\n\t\tif(record.indexOf(\"R\") > -1) {\n\t\t\tresult = 1;\n\t\t}\n\n\t\tif(record.indexOf(\"RR\") > -1) {\n\t\t\tresult = 2;\n\t\t}\n\n\t\tif(record.indexOf(\"RRR\") > -1) {\n\t\t\tresult = 3;\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}\n\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString record = sc.next();\n\t\tsc.close();\n\n\t\tint result = 0;\n\t\tif(record.indexOf(\"R\") > -1) {\n\t\t\tresult = 1;\n\t\t}\n\n\t\tif(record.indexOf(\"RR\") > -1) {\n\t\t\tresult = 2;\n\t\t}\n\n\t\tif(record.indexOf(\"RRR\") > -1) {\n\t\t\tresult = 3;\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString record = sc.next();\n\t\tsc.close();\n\n\t\tint result = 0;\n\t\tif(record.indexOf(\"R\") > -1) {\n\t\t\tresult = 1;\n\t\t}\n\n\t\tif(record.indexOf(\"RR\") > -1) {\n\t\t\tresult = 2;\n\t\t}\n\n\t\tif(record.indexOf(\"RRR\") > -1) {\n\t\t\tresult = 3;\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String record = sc.next();", "record", "sc.next()", "sc.next", "sc", "sc.close()", "sc.close", "sc", "int result = 0;", "result", "0", "if(record.indexOf(\"R\") > -1) {\n\t\t\tresult = 1;\n\t\t}", "record.indexOf(\"R\") > -1", "record.indexOf(\"R\")", "record.indexOf", "record", "\"R\"", "-1", "1", "{\n\t\t\tresult = 1;\n\t\t}", "result = 1", "result", "1", "if(record.indexOf(\"RR\") > -1) {\n\t\t\tresult = 2;\n\t\t}", "record.indexOf(\"RR\") > -1", "record.indexOf(\"RR\")", "record.indexOf", "record", "\"RR\"", "-1", "1", "{\n\t\t\tresult = 2;\n\t\t}", "result = 2", "result", "2", "if(record.indexOf(\"RRR\") > -1) {\n\t\t\tresult = 3;\n\t\t}", "record.indexOf(\"RRR\") > -1", "record.indexOf(\"RRR\")", "record.indexOf", "record", "\"RRR\"", "-1", "1", "{\n\t\t\tresult = 3;\n\t\t}", "result = 3", "result", "3", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString record = sc.next();\n\t\tsc.close();\n\n\t\tint result = 0;\n\t\tif(record.indexOf(\"R\") > -1) {\n\t\t\tresult = 1;\n\t\t}\n\n\t\tif(record.indexOf(\"RR\") > -1) {\n\t\t\tresult = 2;\n\t\t}\n\n\t\tif(record.indexOf(\"RRR\") > -1) {\n\t\t\tresult = 3;\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tString record = sc.next();\n\t\tsc.close();\n\n\t\tint result = 0;\n\t\tif(record.indexOf(\"R\") > -1) {\n\t\t\tresult = 1;\n\t\t}\n\n\t\tif(record.indexOf(\"RR\") > -1) {\n\t\t\tresult = 2;\n\t\t}\n\n\t\tif(record.indexOf(\"RRR\") > -1) {\n\t\t\tresult = 3;\n\t\t}\n\n\t\tSystem.out.println(result);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); String record = sc.next(); sc.close(); int result = 0; if(record.indexOf("R") > -1) { result = 1; } if(record.indexOf("RR") > -1) { result = 2; } if(record.indexOf("RRR") > -1) { result = 3; } System.out.println(result); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 17, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 30, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 29, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 42, 44 ], [ 40, 45 ], [ 29, 46 ], [ 46, 47 ], [ 49, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 50, 53 ], [ 49, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 48, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 49, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 46, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 69, 71 ], [ 67, 72 ], [ 46, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 6, 80 ], [ 80, 81 ] ]
[ "import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if (s.equals(\"RRR\")) {\n System.out.println(\"3\");\n } else if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(\"2\");\n } else if (s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\") || s.equals(\"RSR\")) {\n System.out.println(\"1\");\n } else {\n System.out.println(\"0\");\n }\n }\n}", "import java.util.*;", "util.*", "java", "class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if (s.equals(\"RRR\")) {\n System.out.println(\"3\");\n } else if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(\"2\");\n } else if (s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\") || s.equals(\"RSR\")) {\n System.out.println(\"1\");\n } else {\n System.out.println(\"0\");\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if (s.equals(\"RRR\")) {\n System.out.println(\"3\");\n } else if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(\"2\");\n } else if (s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\") || s.equals(\"RSR\")) {\n System.out.println(\"1\");\n } else {\n System.out.println(\"0\");\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.next();\n if (s.equals(\"RRR\")) {\n System.out.println(\"3\");\n } else if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(\"2\");\n } else if (s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\") || s.equals(\"RSR\")) {\n System.out.println(\"1\");\n } else {\n System.out.println(\"0\");\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "if (s.equals(\"RRR\")) {\n System.out.println(\"3\");\n } else if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(\"2\");\n } else if (s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\") || s.equals(\"RSR\")) {\n System.out.println(\"1\");\n } else {\n System.out.println(\"0\");\n }", "s.equals(\"RRR\")", "s.equals", "s", "\"RRR\"", "{\n System.out.println(\"3\");\n }", "System.out.println(\"3\")", "System.out.println", "System.out", "System", "System.out", "\"3\"", "if (s.equals(\"RRS\") || s.equals(\"SRR\")) {\n System.out.println(\"2\");\n } else if (s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\") || s.equals(\"RSR\")) {\n System.out.println(\"1\");\n } else {\n System.out.println(\"0\");\n }", "s.equals(\"RRS\") || s.equals(\"SRR\")", "s.equals(\"RRS\")", "s.equals", "s", "\"RRS\"", "s.equals(\"SRR\")", "s.equals", "s", "\"SRR\"", "{\n System.out.println(\"2\");\n }", "System.out.println(\"2\")", "System.out.println", "System.out", "System", "System.out", "\"2\"", "if (s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\") || s.equals(\"RSR\")) {\n System.out.println(\"1\");\n } else {\n System.out.println(\"0\");\n }", "s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\") || s.equals(\"RSR\")", "s.equals(\"SSR\")", "s.equals(\"RSS\") || s.equals(\"SRS\") || s.equals(\"SSR\") || s.equals(\"RSR\")", "s.equals(\"RSS\")", "s.equals", "s", "\"RSS\"", "s.equals(\"SRS\")", "s.equals", "s", "\"SRS\"", "s.equals(\"SSR\")", "s.equals", "s", "\"SSR\"", "s.equals(\"RSR\")", "s.equals", "s", "\"RSR\"", "{\n System.out.println(\"1\");\n }", "System.out.println(\"1\")", "System.out.println", "System.out", "System", "System.out", "\"1\"", "{\n System.out.println(\"0\");\n }", "System.out.println(\"0\")", "System.out.println", "System.out", "System", "System.out", "\"0\"", "String[] args", "args" ]
import java.util.*; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); String s = sc.next(); if (s.equals("RRR")) { System.out.println("3"); } else if (s.equals("RRS") || s.equals("SRR")) { System.out.println("2"); } else if (s.equals("RSS") || s.equals("SRS") || s.equals("SSR") || s.equals("RSR")) { System.out.println("1"); } else { System.out.println("0"); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 14, 2, 2, 4, 18, 13, 17, 17, 2, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 29, 30 ], [ 20, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 35, 38 ], [ 34, 39 ], [ 33, 40 ], [ 40, 41 ], [ 41, 42 ], [ 8, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 44, 51 ], [ 51, 52 ], [ 51, 53 ], [ 43, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 8, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 58, 63 ], [ 6, 64 ], [ 64, 65 ] ]
[ "import java.util.*;\nclass Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int count = 0;\n for(int i=0;i<3;i++){\n if(s.charAt(i)=='R'){\n count++;\n }\n }\n if(s.charAt(1)=='S'&&count==2){\n count = 1;\n }\n System.out.println(count);\n }\n}", "import java.util.*;", "util.*", "java", "class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int count = 0;\n for(int i=0;i<3;i++){\n if(s.charAt(i)=='R'){\n count++;\n }\n }\n if(s.charAt(1)=='S'&&count==2){\n count = 1;\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int count = 0;\n for(int i=0;i<3;i++){\n if(s.charAt(i)=='R'){\n count++;\n }\n }\n if(s.charAt(1)=='S'&&count==2){\n count = 1;\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String s = sc.nextLine();\n int count = 0;\n for(int i=0;i<3;i++){\n if(s.charAt(i)=='R'){\n count++;\n }\n }\n if(s.charAt(1)=='S'&&count==2){\n count = 1;\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "int count = 0;", "count", "0", "for(int i=0;i<3;i++){\n if(s.charAt(i)=='R'){\n count++;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n if(s.charAt(i)=='R'){\n count++;\n }\n }", "{\n if(s.charAt(i)=='R'){\n count++;\n }\n }", "if(s.charAt(i)=='R'){\n count++;\n }", "s.charAt(i)=='R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n count++;\n }", "count++", "count", "if(s.charAt(1)=='S'&&count==2){\n count = 1;\n }", "s.charAt(1)=='S'&&count==2", "s.charAt(1)=='S'", "s.charAt(1)", "s.charAt", "s", "1", "'S'", "count==2", "count", "2", "{\n count = 1;\n }", "count = 1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args" ]
import java.util.*; class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.nextLine(); int count = 0; for(int i=0;i<3;i++){ if(s.charAt(i)=='R'){ count++; } } if(s.charAt(1)=='S'&&count==2){ count = 1; } System.out.println(count); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 14, 2, 2, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 2, 4, 18, 13, 17, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 14, 30 ], [ 30, 31 ], [ 32, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 32, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 32, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 45, 50 ], [ 30, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 52, 57 ], [ 30, 58 ], [ 58, 59 ], [ 60, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 61, 66 ], [ 60, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 67, 72 ], [ 60, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 74, 77 ], [ 73, 78 ], [ 58, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 58, 86 ], [ 86, 87 ], [ 88, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 89, 94 ], [ 88, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 96, 99 ], [ 95, 100 ], [ 88, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 101, 106 ], [ 86, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 108, 113 ], [ 86, 114 ], [ 114, 115 ], [ 116, 116 ], [ 116, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 118, 121 ], [ 117, 122 ], [ 116, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 124, 127 ], [ 123, 128 ], [ 116, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 130, 133 ], [ 129, 134 ], [ 114, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 138, 139 ], [ 138, 140 ], [ 136, 141 ], [ 114, 142 ], [ 142, 143 ], [ 144, 144 ], [ 144, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 146, 149 ], [ 145, 150 ], [ 144, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 152, 155 ], [ 151, 156 ], [ 144, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 157, 162 ], [ 142, 163 ], [ 163, 164 ], [ 164, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 164, 169 ], [ 142, 170 ], [ 170, 171 ], [ 172, 172 ], [ 172, 173 ], [ 173, 174 ], [ 174, 175 ], [ 175, 176 ], [ 174, 177 ], [ 173, 178 ], [ 172, 179 ], [ 179, 180 ], [ 180, 181 ], [ 181, 182 ], [ 180, 183 ], [ 179, 184 ], [ 172, 185 ], [ 185, 186 ], [ 186, 187 ], [ 187, 188 ], [ 186, 189 ], [ 185, 190 ], [ 170, 191 ], [ 191, 192 ], [ 192, 193 ], [ 193, 194 ], [ 194, 195 ], [ 194, 196 ], [ 192, 197 ], [ 170, 198 ], [ 198, 199 ], [ 200, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 203, 204 ], [ 202, 205 ], [ 201, 206 ], [ 200, 207 ], [ 207, 208 ], [ 208, 209 ], [ 209, 210 ], [ 208, 211 ], [ 207, 212 ], [ 200, 213 ], [ 213, 214 ], [ 214, 215 ], [ 215, 216 ], [ 214, 217 ], [ 213, 218 ], [ 198, 219 ], [ 219, 220 ], [ 220, 221 ], [ 221, 222 ], [ 222, 223 ], [ 222, 224 ], [ 220, 225 ], [ 198, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 229, 230 ], [ 229, 231 ], [ 227, 232 ], [ 12, 233 ], [ 233, 234 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.lang.*;\n\n\n\nclass Main\n{\n public static void main(String[] args) {\n\n Scanner s=new Scanner(System.in);\n String a;\n a=s.next();\n int n=a.length();\n\n if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(3);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else\n {\n System.out.print(0);\n }\n\n\n\n\n\n\n\n\n\n\n\n\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.lang.*;", "lang.*", "java", "class Main\n{\n public static void main(String[] args) {\n\n Scanner s=new Scanner(System.in);\n String a;\n a=s.next();\n int n=a.length();\n\n if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(3);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else\n {\n System.out.print(0);\n }\n\n\n\n\n\n\n\n\n\n\n\n\n }\n}", "Main", "public static void main(String[] args) {\n\n Scanner s=new Scanner(System.in);\n String a;\n a=s.next();\n int n=a.length();\n\n if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(3);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else\n {\n System.out.print(0);\n }\n\n\n\n\n\n\n\n\n\n\n\n\n }", "main", "{\n\n Scanner s=new Scanner(System.in);\n String a;\n a=s.next();\n int n=a.length();\n\n if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(3);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else\n {\n System.out.print(0);\n }\n\n\n\n\n\n\n\n\n\n\n\n\n }", "Scanner s=new Scanner(System.in);", "s", "new Scanner(System.in)", "String a;", "a", "a=s.next()", "a", "s.next()", "s.next", "s", "int n=a.length();", "n", "a.length()", "a.length", "a", "if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(3);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else\n {\n System.out.print(0);\n }", "a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='R'", "a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='R'", "a.charAt(0)=='R'", "a.charAt(0)", "a.charAt", "a", "0", "'R'", "a.charAt(1)=='R'", "a.charAt(1)", "a.charAt", "a", "1", "'R'", "a.charAt(2)=='R'", "a.charAt(2)", "a.charAt", "a", "2", "'R'", "{\n System.out.print(3);\n }", "System.out.print(3)", "System.out.print", "System.out", "System", "System.out", "3", "if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else\n {\n System.out.print(0);\n }", "a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='S'", "a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='S'", "a.charAt(0)=='R'", "a.charAt(0)", "a.charAt", "a", "0", "'R'", "a.charAt(1)=='R'", "a.charAt(1)", "a.charAt", "a", "1", "'R'", "a.charAt(2)=='S'", "a.charAt(2)", "a.charAt", "a", "2", "'S'", "{\n System.out.print(2);\n }", "System.out.print(2)", "System.out.print", "System.out", "System", "System.out", "2", "if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else\n {\n System.out.print(0);\n }", "a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='R'", "a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='R'", "a.charAt(0)=='R'", "a.charAt(0)", "a.charAt", "a", "0", "'R'", "a.charAt(1)=='S'", "a.charAt(1)", "a.charAt", "a", "1", "'S'", "a.charAt(2)=='R'", "a.charAt(2)", "a.charAt", "a", "2", "'R'", "{\n System.out.print(1);\n }", "System.out.print(1)", "System.out.print", "System.out", "System", "System.out", "1", "if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='R')\n {\n System.out.print(2);\n }\n else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else\n {\n System.out.print(0);\n }", "a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='R'", "a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='R'", "a.charAt(0)=='S'", "a.charAt(0)", "a.charAt", "a", "0", "'S'", "a.charAt(1)=='R'", "a.charAt(1)", "a.charAt", "a", "1", "'R'", "a.charAt(2)=='R'", "a.charAt(2)", "a.charAt", "a", "2", "'R'", "{\n System.out.print(2);\n }", "System.out.print(2)", "System.out.print", "System.out", "System", "System.out", "2", "if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else\n {\n System.out.print(0);\n }", "a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='S'", "a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='S'", "a.charAt(0)=='R'", "a.charAt(0)", "a.charAt", "a", "0", "'R'", "a.charAt(1)=='S'", "a.charAt(1)", "a.charAt", "a", "1", "'S'", "a.charAt(2)=='S'", "a.charAt(2)", "a.charAt", "a", "2", "'S'", "{\n System.out.print(1);\n }", "System.out.print(1)", "System.out.print", "System.out", "System", "System.out", "1", "if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S')\n {\n System.out.print(1);\n }\n else if(a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else\n {\n System.out.print(0);\n }", "a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S'", "a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S'", "a.charAt(0)=='S'", "a.charAt(0)", "a.charAt", "a", "0", "'S'", "a.charAt(1)=='R'", "a.charAt(1)", "a.charAt", "a", "1", "'R'", "a.charAt(2)=='S'", "a.charAt(2)", "a.charAt", "a", "2", "'S'", "{\n System.out.print(1);\n }", "System.out.print(1)", "System.out.print", "System.out", "System", "System.out", "1", "if(a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R')\n {\n System.out.print(1);\n }\n else\n {\n System.out.print(0);\n }", "a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R'", "a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R'", "a.charAt(0)=='S'", "a.charAt(0)", "a.charAt", "a", "0", "'S'", "a.charAt(1)=='S'", "a.charAt(1)", "a.charAt", "a", "1", "'S'", "a.charAt(2)=='R'", "a.charAt(2)", "a.charAt", "a", "2", "'R'", "{\n System.out.print(1);\n }", "System.out.print(1)", "System.out.print", "System.out", "System", "System.out", "1", "{\n System.out.print(0);\n }", "System.out.print(0)", "System.out.print", "System.out", "System", "System.out", "0", "String[] args", "args" ]
import java.util.*; import java.io.*; import java.lang.*; class Main { public static void main(String[] args) { Scanner s=new Scanner(System.in); String a; a=s.next(); int n=a.length(); if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='R') { System.out.print(3); } else if(a.charAt(0)=='R' && a.charAt(1)=='R' && a.charAt(2)=='S') { System.out.print(2); } else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='R') { System.out.print(1); } else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='R') { System.out.print(2); } else if(a.charAt(0)=='R' && a.charAt(1)=='S' && a.charAt(2)=='S') { System.out.print(1); } else if(a.charAt(0)=='S' && a.charAt(1)=='R' && a.charAt(2)=='S') { System.out.print(1); } else if(a.charAt(0)=='S' && a.charAt(1)=='S' && a.charAt(2)=='R') { System.out.print(1); } else { System.out.print(0); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 4, 18, 13, 17, 41, 13, 4, 18, 13, 20, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 4, 18, 18, 13, 13, 17, 30, 40, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 89, 11 ], [ 89, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 14, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 14, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 28, 31 ], [ 31, 32 ], [ 32, 33 ], [ 31, 34 ], [ 14, 35 ], [ 35, 36 ], [ 35, 37 ], [ 37, 38 ], [ 38, 39 ], [ 37, 40 ], [ 41, 42 ], [ 42, 43 ], [ 14, 44 ], [ 44, 45 ], [ 44, 46 ], [ 14, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 60, 67 ], [ 67, 68 ], [ 68, 69 ], [ 60, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 75, 77 ], [ 70, 78 ], [ 78, 79 ], [ 14, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 80, 85 ], [ 12, 86 ], [ 86, 87 ], [ 0, 88 ], [ 88, 89 ], [ 88, 90 ] ]
[ "import java.util.Arrays;\nimport java.util.List;\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\t//int n=sc.nextInt();\n\t\tint ans = 0;\n\t\tString s = sc.nextLine();\n\t\tList<String> a = Arrays.asList(s.split(\"\"));\n\t\tString[] array = a.toArray(new String[a.size()]);\n\t\tString hikaku = \"R\";\n\t\t\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(array[i].equals(\"R\")){\n\t\t\t\tans++;\n\t\t\t}\n\t\t\telse if(i==1 && ans==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n}", "import java.util.Arrays;", "Arrays", "java.util", "import java.util.List;", "List", "java.util", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t//int n=sc.nextInt();\n\t\tint ans = 0;\n\t\tString s = sc.nextLine();\n\t\tList<String> a = Arrays.asList(s.split(\"\"));\n\t\tString[] array = a.toArray(new String[a.size()]);\n\t\tString hikaku = \"R\";\n\t\t\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(array[i].equals(\"R\")){\n\t\t\t\tans++;\n\t\t\t}\n\t\t\telse if(i==1 && ans==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t//int n=sc.nextInt();\n\t\tint ans = 0;\n\t\tString s = sc.nextLine();\n\t\tList<String> a = Arrays.asList(s.split(\"\"));\n\t\tString[] array = a.toArray(new String[a.size()]);\n\t\tString hikaku = \"R\";\n\t\t\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(array[i].equals(\"R\")){\n\t\t\t\tans++;\n\t\t\t}\n\t\t\telse if(i==1 && ans==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//int n=sc.nextInt();\n\t\tint ans = 0;\n\t\tString s = sc.nextLine();\n\t\tList<String> a = Arrays.asList(s.split(\"\"));\n\t\tString[] array = a.toArray(new String[a.size()]);\n\t\tString hikaku = \"R\";\n\t\t\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(array[i].equals(\"R\")){\n\t\t\t\tans++;\n\t\t\t}\n\t\t\telse if(i==1 && ans==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int ans = 0;", "ans", "0", "String s = sc.nextLine();", "s", "sc.nextLine()", "sc.nextLine", "sc", "List<String> a = Arrays.asList(s.split(\"\"));", "a", "Arrays.asList(s.split(\"\"))", "Arrays.asList", "Arrays", "s.split(\"\")", "s.split", "s", "\"\"", "String[] array = a.toArray(new String[a.size()]);", "array", "a.toArray(new String[a.size()])", "a.toArray", "a", "new String[a.size()]", "a.size()", "a.size", "a", "String hikaku = \"R\";", "hikaku", "\"R\"", "for(int i=0;i<3;i++) {\n\t\t\tif(array[i].equals(\"R\")){\n\t\t\t\tans++;\n\t\t\t}\n\t\t\telse if(i==1 && ans==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<3", "i", "3", "i++", "i++", "i", "{\n\t\t\tif(array[i].equals(\"R\")){\n\t\t\t\tans++;\n\t\t\t}\n\t\t\telse if(i==1 && ans==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(array[i].equals(\"R\")){\n\t\t\t\tans++;\n\t\t\t}\n\t\t\telse if(i==1 && ans==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}", "if(array[i].equals(\"R\")){\n\t\t\t\tans++;\n\t\t\t}\n\t\t\telse if(i==1 && ans==1){\n\t\t\t\tbreak;\n\t\t\t}", "array[i].equals(\"R\")", "array[i].equals", "array[i]", "array", "i", "\"R\"", "{\n\t\t\t\tans++;\n\t\t\t}", "ans++", "ans", "if(i==1 && ans==1){\n\t\t\t\tbreak;\n\t\t\t}", "i==1 && ans==1", "i==1", "i", "1", "ans==1", "ans", "1", "{\n\t\t\t\tbreak;\n\t\t\t}", "break;", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t//int n=sc.nextInt();\n\t\tint ans = 0;\n\t\tString s = sc.nextLine();\n\t\tList<String> a = Arrays.asList(s.split(\"\"));\n\t\tString[] array = a.toArray(new String[a.size()]);\n\t\tString hikaku = \"R\";\n\t\t\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(array[i].equals(\"R\")){\n\t\t\t\tans++;\n\t\t\t}\n\t\t\telse if(i==1 && ans==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t//int n=sc.nextInt();\n\t\tint ans = 0;\n\t\tString s = sc.nextLine();\n\t\tList<String> a = Arrays.asList(s.split(\"\"));\n\t\tString[] array = a.toArray(new String[a.size()]);\n\t\tString hikaku = \"R\";\n\t\t\n\t\tfor(int i=0;i<3;i++) {\n\t\t\tif(array[i].equals(\"R\")){\n\t\t\t\tans++;\n\t\t\t}\n\t\t\telse if(i==1 && ans==1){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(ans);\n\t}\n}", "Main" ]
import java.util.Arrays; import java.util.List; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); //int n=sc.nextInt(); int ans = 0; String s = sc.nextLine(); List<String> a = Arrays.asList(s.split("")); String[] array = a.toArray(new String[a.size()]); String hikaku = "R"; for(int i=0;i<3;i++) { if(array[i].equals("R")){ ans++; } else if(i==1 && ans==1){ break; } } System.out.println(ans); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 35, 13, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 34, 1, 0, 13, 17, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 88, 5 ], [ 88, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 24, 28 ], [ 20, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 31, 35 ], [ 20, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 38, 42 ], [ 20, 43 ], [ 43, 44 ], [ 43, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 20, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 20, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 20, 64 ], [ 64, 65 ], [ 64, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 20, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 8, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 76, 81 ], [ 8, 82 ], [ 82, 83 ], [ 83, 84 ], [ 6, 85 ], [ 85, 86 ], [ 0, 87 ], [ 87, 88 ], [ 87, 89 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str_scan = scan.nextLine();\n\n int ans = 0;\n\n switch (str_scan) {\n case \"RSS\":\n ans=1;\n break;\n case \"SRS\":\n ans=1;\n break;\n case \"RSR\":\n ans=1;\n break;\n case \"SSR\":\n ans=1;\n break;\n case \"SRR\":\n ans=2;\n break;\n case \"RRS\":\n ans=2;\n break;\n case \"RRR\":\n ans=3;\n break;\n default:\n ans=0;\n }\n\n System.out.println(ans);\n scan.close();\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str_scan = scan.nextLine();\n\n int ans = 0;\n\n switch (str_scan) {\n case \"RSS\":\n ans=1;\n break;\n case \"SRS\":\n ans=1;\n break;\n case \"RSR\":\n ans=1;\n break;\n case \"SSR\":\n ans=1;\n break;\n case \"SRR\":\n ans=2;\n break;\n case \"RRS\":\n ans=2;\n break;\n case \"RRR\":\n ans=3;\n break;\n default:\n ans=0;\n }\n\n System.out.println(ans);\n scan.close();\n }\n}", "Main", "public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str_scan = scan.nextLine();\n\n int ans = 0;\n\n switch (str_scan) {\n case \"RSS\":\n ans=1;\n break;\n case \"SRS\":\n ans=1;\n break;\n case \"RSR\":\n ans=1;\n break;\n case \"SSR\":\n ans=1;\n break;\n case \"SRR\":\n ans=2;\n break;\n case \"RRS\":\n ans=2;\n break;\n case \"RRR\":\n ans=3;\n break;\n default:\n ans=0;\n }\n\n System.out.println(ans);\n scan.close();\n }", "main", "{\n Scanner scan = new Scanner(System.in);\n String str_scan = scan.nextLine();\n\n int ans = 0;\n\n switch (str_scan) {\n case \"RSS\":\n ans=1;\n break;\n case \"SRS\":\n ans=1;\n break;\n case \"RSR\":\n ans=1;\n break;\n case \"SSR\":\n ans=1;\n break;\n case \"SRR\":\n ans=2;\n break;\n case \"RRS\":\n ans=2;\n break;\n case \"RRR\":\n ans=3;\n break;\n default:\n ans=0;\n }\n\n System.out.println(ans);\n scan.close();\n }", "Scanner scan = new Scanner(System.in);", "scan", "new Scanner(System.in)", "String str_scan = scan.nextLine();", "str_scan", "scan.nextLine()", "scan.nextLine", "scan", "int ans = 0;", "ans", "0", "switch (str_scan) {\n case \"RSS\":\n ans=1;\n break;\n case \"SRS\":\n ans=1;\n break;\n case \"RSR\":\n ans=1;\n break;\n case \"SSR\":\n ans=1;\n break;\n case \"SRR\":\n ans=2;\n break;\n case \"RRS\":\n ans=2;\n break;\n case \"RRR\":\n ans=3;\n break;\n default:\n ans=0;\n }", "str_scan", "case \"RSS\":", "\"RSS\"", "case \"RSS\":", "ans=1", "ans", "1", "break;", "case \"SRS\":", "\"SRS\"", "case \"SRS\":", "ans=1", "ans", "1", "break;", "case \"RSR\":", "\"RSR\"", "case \"RSR\":", "ans=1", "ans", "1", "break;", "case \"SSR\":", "\"SSR\"", "case \"SSR\":", "ans=1", "ans", "1", "break;", "case \"SRR\":", "\"SRR\"", "case \"SRR\":", "ans=2", "ans", "2", "break;", "case \"RRS\":", "\"RRS\"", "case \"RRS\":", "ans=2", "ans", "2", "break;", "case \"RRR\":", "\"RRR\"", "case \"RRR\":", "ans=3", "ans", "3", "break;", "default:", "default:", "ans=0", "ans", "0", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "scan.close()", "scan.close", "scan", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str_scan = scan.nextLine();\n\n int ans = 0;\n\n switch (str_scan) {\n case \"RSS\":\n ans=1;\n break;\n case \"SRS\":\n ans=1;\n break;\n case \"RSR\":\n ans=1;\n break;\n case \"SSR\":\n ans=1;\n break;\n case \"SRR\":\n ans=2;\n break;\n case \"RRS\":\n ans=2;\n break;\n case \"RRR\":\n ans=3;\n break;\n default:\n ans=0;\n }\n\n System.out.println(ans);\n scan.close();\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String str_scan = scan.nextLine();\n\n int ans = 0;\n\n switch (str_scan) {\n case \"RSS\":\n ans=1;\n break;\n case \"SRS\":\n ans=1;\n break;\n case \"RSR\":\n ans=1;\n break;\n case \"SSR\":\n ans=1;\n break;\n case \"SRR\":\n ans=2;\n break;\n case \"RRS\":\n ans=2;\n break;\n case \"RRR\":\n ans=3;\n break;\n default:\n ans=0;\n }\n\n System.out.println(ans);\n scan.close();\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); String str_scan = scan.nextLine(); int ans = 0; switch (str_scan) { case "RSS": ans=1; break; case "SRS": ans=1; break; case "RSR": ans=1; break; case "SSR": ans=1; break; case "SRR": ans=2; break; case "RRS": ans=2; break; case "RRR": ans=3; break; default: ans=0; } System.out.println(ans); scan.close(); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 17, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 40, 13, 14, 2, 2, 18, 13, 17, 17, 2, 13, 17, 30, 4, 18, 18, 13, 13, 17, 30, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 77, 11 ], [ 77, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 22, 23 ], [ 23, 24 ], [ 14, 25 ], [ 25, 26 ], [ 25, 27 ], [ 14, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 28, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 43, 45 ], [ 42, 46 ], [ 41, 47 ], [ 47, 48 ], [ 48, 49 ], [ 14, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 50, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 63, 65 ], [ 61, 66 ], [ 50, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 70, 71 ], [ 70, 72 ], [ 68, 73 ], [ 12, 74 ], [ 74, 75 ], [ 0, 76 ], [ 76, 77 ], [ 76, 78 ] ]
[ "import java.util.*;\nimport java.io.*;\n// import lib.util.*;\n// import lib.graph.*;\n// import lib.io.*;\n// import lib.math.*;\nimport java.math.BigInteger;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] s = sc.next().toCharArray();\n int res = 0;\n for (int i = 0; i < 3; i++) {\n if (s[i] == 'R') {\n res++;\n }\n }\n if (s[1] != 'R' && res == 2) {\n System.out.println(1);\n } else {\n System.out.println(res);\n }\n }\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.math.BigInteger;", "BigInteger", "java.math", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] s = sc.next().toCharArray();\n int res = 0;\n for (int i = 0; i < 3; i++) {\n if (s[i] == 'R') {\n res++;\n }\n }\n if (s[1] != 'R' && res == 2) {\n System.out.println(1);\n } else {\n System.out.println(res);\n }\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] s = sc.next().toCharArray();\n int res = 0;\n for (int i = 0; i < 3; i++) {\n if (s[i] == 'R') {\n res++;\n }\n }\n if (s[1] != 'R' && res == 2) {\n System.out.println(1);\n } else {\n System.out.println(res);\n }\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n char[] s = sc.next().toCharArray();\n int res = 0;\n for (int i = 0; i < 3; i++) {\n if (s[i] == 'R') {\n res++;\n }\n }\n if (s[1] != 'R' && res == 2) {\n System.out.println(1);\n } else {\n System.out.println(res);\n }\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "char[] s = sc.next().toCharArray();", "s", "sc.next().toCharArray()", "sc.next().toCharArray", "sc.next()", "sc.next", "sc", "int res = 0;", "res", "0", "for (int i = 0; i < 3; i++) {\n if (s[i] == 'R') {\n res++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < 3", "i", "3", "i++", "i++", "i", "{\n if (s[i] == 'R') {\n res++;\n }\n }", "{\n if (s[i] == 'R') {\n res++;\n }\n }", "if (s[i] == 'R') {\n res++;\n }", "s[i] == 'R'", "s[i]", "s", "i", "'R'", "{\n res++;\n }", "res++", "res", "if (s[1] != 'R' && res == 2) {\n System.out.println(1);\n } else {\n System.out.println(res);\n }", "s[1] != 'R' && res == 2", "s[1] != 'R'", "s[1]", "s", "1", "'R'", "res == 2", "res", "2", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "{\n System.out.println(res);\n }", "System.out.println(res)", "System.out.println", "System.out", "System", "System.out", "res", "String[] args", "args", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] s = sc.next().toCharArray();\n int res = 0;\n for (int i = 0; i < 3; i++) {\n if (s[i] == 'R') {\n res++;\n }\n }\n if (s[1] != 'R' && res == 2) {\n System.out.println(1);\n } else {\n System.out.println(res);\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n char[] s = sc.next().toCharArray();\n int res = 0;\n for (int i = 0; i < 3; i++) {\n if (s[i] == 'R') {\n res++;\n }\n }\n if (s[1] != 'R' && res == 2) {\n System.out.println(1);\n } else {\n System.out.println(res);\n }\n }\n}", "Main" ]
import java.util.*; import java.io.*; // import lib.util.*; // import lib.graph.*; // import lib.io.*; // import lib.math.*; import java.math.BigInteger; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); char[] s = sc.next().toCharArray(); int res = 0; for (int i = 0; i < 3; i++) { if (s[i] == 'R') { res++; } } if (s[1] != 'R' && res == 2) { System.out.println(1); } else { System.out.println(res); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 30, 4, 18, 18, 13, 13, 17, 23, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 18, 21 ], [ 17, 22 ], [ 22, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 37, 39 ], [ 35, 40 ], [ 8, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 42, 45 ], [ 41, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 8, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 53, 58 ], [ 58, 59 ], [ 59, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 59, 64 ], [ 8, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 65, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 73, 75 ], [ 71, 76 ], [ 8, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 78, 81 ], [ 77, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 8, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 89, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 8, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 102, 105 ], [ 101, 106 ], [ 106, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 107, 112 ], [ 6, 113 ], [ 113, 114 ] ]
[ "import java.util.*;\nclass Main{\npublic static void main(String[]args){\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n if(s.equals(\"SSS\")){\n System.out.println(0);\n }\n if(s.equals(\"SSR\")){\n System.out.println(1);\n }\n if(s.equals(\"SRS\")){\n System.out.println(1);\n }\n if(s.equals(\"SRR\")){\n System.out.println(2);\n }\n if(s.equals(\"RSS\")){\n System.out.println(1);\n }\n if(s.equals(\"RSR\")){\n System.out.println(1);\n }\n if(s.equals(\"RRS\")){\n System.out.println(2);\n }\n if(s.equals(\"RRR\")){\n System.out.println(3);\n }\n}\n}", "import java.util.*;", "util.*", "java", "class Main{\npublic static void main(String[]args){\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n if(s.equals(\"SSS\")){\n System.out.println(0);\n }\n if(s.equals(\"SSR\")){\n System.out.println(1);\n }\n if(s.equals(\"SRS\")){\n System.out.println(1);\n }\n if(s.equals(\"SRR\")){\n System.out.println(2);\n }\n if(s.equals(\"RSS\")){\n System.out.println(1);\n }\n if(s.equals(\"RSR\")){\n System.out.println(1);\n }\n if(s.equals(\"RRS\")){\n System.out.println(2);\n }\n if(s.equals(\"RRR\")){\n System.out.println(3);\n }\n}\n}", "Main", "public static void main(String[]args){\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n if(s.equals(\"SSS\")){\n System.out.println(0);\n }\n if(s.equals(\"SSR\")){\n System.out.println(1);\n }\n if(s.equals(\"SRS\")){\n System.out.println(1);\n }\n if(s.equals(\"SRR\")){\n System.out.println(2);\n }\n if(s.equals(\"RSS\")){\n System.out.println(1);\n }\n if(s.equals(\"RSR\")){\n System.out.println(1);\n }\n if(s.equals(\"RRS\")){\n System.out.println(2);\n }\n if(s.equals(\"RRR\")){\n System.out.println(3);\n }\n}", "main", "{\n Scanner sc=new Scanner(System.in);\n String s=sc.next();\n if(s.equals(\"SSS\")){\n System.out.println(0);\n }\n if(s.equals(\"SSR\")){\n System.out.println(1);\n }\n if(s.equals(\"SRS\")){\n System.out.println(1);\n }\n if(s.equals(\"SRR\")){\n System.out.println(2);\n }\n if(s.equals(\"RSS\")){\n System.out.println(1);\n }\n if(s.equals(\"RSR\")){\n System.out.println(1);\n }\n if(s.equals(\"RRS\")){\n System.out.println(2);\n }\n if(s.equals(\"RRR\")){\n System.out.println(3);\n }\n}", "Scanner sc=new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s=sc.next();", "s", "sc.next()", "sc.next", "sc", "if(s.equals(\"SSS\")){\n System.out.println(0);\n }", "s.equals(\"SSS\")", "s.equals", "s", "\"SSS\"", "{\n System.out.println(0);\n }", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "if(s.equals(\"SSR\")){\n System.out.println(1);\n }", "s.equals(\"SSR\")", "s.equals", "s", "\"SSR\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(s.equals(\"SRS\")){\n System.out.println(1);\n }", "s.equals(\"SRS\")", "s.equals", "s", "\"SRS\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(s.equals(\"SRR\")){\n System.out.println(2);\n }", "s.equals(\"SRR\")", "s.equals", "s", "\"SRR\"", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(s.equals(\"RSS\")){\n System.out.println(1);\n }", "s.equals(\"RSS\")", "s.equals", "s", "\"RSS\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(s.equals(\"RSR\")){\n System.out.println(1);\n }", "s.equals(\"RSR\")", "s.equals", "s", "\"RSR\"", "{\n System.out.println(1);\n }", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "if(s.equals(\"RRS\")){\n System.out.println(2);\n }", "s.equals(\"RRS\")", "s.equals", "s", "\"RRS\"", "{\n System.out.println(2);\n }", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(s.equals(\"RRR\")){\n System.out.println(3);\n }", "s.equals(\"RRR\")", "s.equals", "s", "\"RRR\"", "{\n System.out.println(3);\n }", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "String[]args", "args" ]
import java.util.*; class Main{ public static void main(String[]args){ Scanner sc=new Scanner(System.in); String s=sc.next(); if(s.equals("SSS")){ System.out.println(0); } if(s.equals("SSR")){ System.out.println(1); } if(s.equals("SRS")){ System.out.println(1); } if(s.equals("SRR")){ System.out.println(2); } if(s.equals("RSS")){ System.out.println(1); } if(s.equals("RSR")){ System.out.println(1); } if(s.equals("RRS")){ System.out.println(2); } if(s.equals("RRR")){ System.out.println(3); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 14, 4, 18, 17, 13, 30, 0, 13, 17, 14, 2, 4, 18, 17, 13, 4, 18, 17, 13, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 64, 5 ], [ 64, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 8, 19 ], [ 19, 20 ], [ 20, 21 ], [ 21, 22 ], [ 20, 23 ], [ 19, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 19, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 28, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 28, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 43, 46 ], [ 42, 47 ], [ 47, 48 ], [ 48, 49 ], [ 48, 50 ], [ 42, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 6, 61 ], [ 61, 62 ], [ 0, 63 ], [ 63, 64 ], [ 63, 65 ] ]
[ "\nimport java.util.Scanner;\n\npublic class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final String S = sc.next();\n \n int n;\n if (\"RRR\".equals(S)) {\n n = 3;\n } else if (\"RRS\".equals(S) || \"SRR\".equals(S)) {\n n = 2;\n } else if (S.contains(\"R\")) {\n n = 1;\n } else {\n n = 0;\n }\n System.out.println(n);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final String S = sc.next();\n \n int n;\n if (\"RRR\".equals(S)) {\n n = 3;\n } else if (\"RRS\".equals(S) || \"SRR\".equals(S)) {\n n = 2;\n } else if (S.contains(\"R\")) {\n n = 1;\n } else {\n n = 0;\n }\n System.out.println(n);\n }\n}", "Main", "public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final String S = sc.next();\n \n int n;\n if (\"RRR\".equals(S)) {\n n = 3;\n } else if (\"RRS\".equals(S) || \"SRR\".equals(S)) {\n n = 2;\n } else if (S.contains(\"R\")) {\n n = 1;\n } else {\n n = 0;\n }\n System.out.println(n);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n \n final String S = sc.next();\n \n int n;\n if (\"RRR\".equals(S)) {\n n = 3;\n } else if (\"RRS\".equals(S) || \"SRR\".equals(S)) {\n n = 2;\n } else if (S.contains(\"R\")) {\n n = 1;\n } else {\n n = 0;\n }\n System.out.println(n);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "final String S = sc.next();", "S", "sc.next()", "sc.next", "sc", "int n;", "n", "if (\"RRR\".equals(S)) {\n n = 3;\n } else if (\"RRS\".equals(S) || \"SRR\".equals(S)) {\n n = 2;\n } else if (S.contains(\"R\")) {\n n = 1;\n } else {\n n = 0;\n }", "\"RRR\".equals(S)", "\"RRR\".equals", "\"RRR\"", "S", "{\n n = 3;\n }", "n = 3", "n", "3", "if (\"RRS\".equals(S) || \"SRR\".equals(S)) {\n n = 2;\n } else if (S.contains(\"R\")) {\n n = 1;\n } else {\n n = 0;\n }", "\"RRS\".equals(S) || \"SRR\".equals(S)", "\"RRS\".equals(S)", "\"RRS\".equals", "\"RRS\"", "S", "\"SRR\".equals(S)", "\"SRR\".equals", "\"SRR\"", "S", "{\n n = 2;\n }", "n = 2", "n", "2", "if (S.contains(\"R\")) {\n n = 1;\n } else {\n n = 0;\n }", "S.contains(\"R\")", "S.contains", "S", "\"R\"", "{\n n = 1;\n }", "n = 1", "n", "1", "{\n n = 0;\n }", "n = 0", "n", "0", "System.out.println(n)", "System.out.println", "System.out", "System", "System.out", "n", "String[] args", "args", "public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final String S = sc.next();\n \n int n;\n if (\"RRR\".equals(S)) {\n n = 3;\n } else if (\"RRS\".equals(S) || \"SRR\".equals(S)) {\n n = 2;\n } else if (S.contains(\"R\")) {\n n = 1;\n } else {\n n = 0;\n }\n System.out.println(n);\n }\n}", "public class Main {\n \n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n \n final String S = sc.next();\n \n int n;\n if (\"RRR\".equals(S)) {\n n = 3;\n } else if (\"RRS\".equals(S) || \"SRR\".equals(S)) {\n n = 2;\n } else if (S.contains(\"R\")) {\n n = 1;\n } else {\n n = 0;\n }\n System.out.println(n);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); final String S = sc.next(); int n; if ("RRR".equals(S)) { n = 3; } else if ("RRS".equals(S) || "SRR".equals(S)) { n = 2; } else if (S.contains("R")) { n = 1; } else { n = 0; } System.out.println(n); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 0, 13, 17, 42, 2, 2, 4, 18, 13, 13, 17, 2, 13, 4, 18, 13, 30, 40, 13, 40, 13, 14, 2, 13, 4, 18, 13, 30, 3, 14, 2, 13, 13, 30, 0, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 92, 5 ], [ 92, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 8, 23 ], [ 23, 24 ], [ 24, 25 ], [ 25, 26 ], [ 25, 27 ], [ 23, 28 ], [ 28, 29 ], [ 28, 30 ], [ 30, 31 ], [ 31, 32 ], [ 23, 33 ], [ 33, 34 ], [ 34, 35 ], [ 23, 36 ], [ 37, 37 ], [ 37, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 40, 43 ], [ 39, 44 ], [ 38, 45 ], [ 45, 46 ], [ 46, 47 ], [ 46, 48 ], [ 45, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 52, 55 ], [ 51, 56 ], [ 50, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 49, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 62, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 70, 71 ], [ 71, 72 ], [ 67, 73 ], [ 73, 74 ], [ 45, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 75, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 8, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 85, 87 ], [ 83, 88 ], [ 6, 89 ], [ 89, 90 ], [ 0, 91 ], [ 91, 92 ], [ 91, 93 ] ]
[ "import java.util.Scanner;\npublic class Main{\n public static void main(String args[])\n {\n Scanner sc= new Scanner(System.in);\n String a = sc.nextLine();\n int max=0,count=0;\n for(int i=0;i<a.length();i++)\n {\n \n if(a.charAt(i)=='R')\n {\n count=0;\n while(a.charAt(i)!='S' && i<a.length())\n {\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }\n if(max<count)\n {\n max=count;\n }\n \n }\n }\n System.out.println(count);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n public static void main(String args[])\n {\n Scanner sc= new Scanner(System.in);\n String a = sc.nextLine();\n int max=0,count=0;\n for(int i=0;i<a.length();i++)\n {\n \n if(a.charAt(i)=='R')\n {\n count=0;\n while(a.charAt(i)!='S' && i<a.length())\n {\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }\n if(max<count)\n {\n max=count;\n }\n \n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main(String args[])\n {\n Scanner sc= new Scanner(System.in);\n String a = sc.nextLine();\n int max=0,count=0;\n for(int i=0;i<a.length();i++)\n {\n \n if(a.charAt(i)=='R')\n {\n count=0;\n while(a.charAt(i)!='S' && i<a.length())\n {\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }\n if(max<count)\n {\n max=count;\n }\n \n }\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc= new Scanner(System.in);\n String a = sc.nextLine();\n int max=0,count=0;\n for(int i=0;i<a.length();i++)\n {\n \n if(a.charAt(i)=='R')\n {\n count=0;\n while(a.charAt(i)!='S' && i<a.length())\n {\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }\n if(max<count)\n {\n max=count;\n }\n \n }\n }\n System.out.println(count);\n }", "Scanner sc= new Scanner(System.in);", "sc", "new Scanner(System.in)", "String a = sc.nextLine();", "a", "sc.nextLine()", "sc.nextLine", "sc", "int max=0", "max", "0", "count=0;", "count", "0", "for(int i=0;i<a.length();i++)\n {\n \n if(a.charAt(i)=='R')\n {\n count=0;\n while(a.charAt(i)!='S' && i<a.length())\n {\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }\n if(max<count)\n {\n max=count;\n }\n \n }\n }", "int i=0;", "int i=0;", "i", "0", "i<a.length()", "i", "a.length()", "a.length", "a", "i++", "i++", "i", "{\n \n if(a.charAt(i)=='R')\n {\n count=0;\n while(a.charAt(i)!='S' && i<a.length())\n {\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }\n if(max<count)\n {\n max=count;\n }\n \n }\n }", "{\n \n if(a.charAt(i)=='R')\n {\n count=0;\n while(a.charAt(i)!='S' && i<a.length())\n {\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }\n if(max<count)\n {\n max=count;\n }\n \n }\n }", "if(a.charAt(i)=='R')\n {\n count=0;\n while(a.charAt(i)!='S' && i<a.length())\n {\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }\n if(max<count)\n {\n max=count;\n }\n \n }", "a.charAt(i)=='R'", "a.charAt(i)", "a.charAt", "a", "i", "'R'", "{\n count=0;\n while(a.charAt(i)!='S' && i<a.length())\n {\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }\n if(max<count)\n {\n max=count;\n }\n \n }", "count=0", "count", "0", "while(a.charAt(i)!='S' && i<a.length())\n {\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }", "a.charAt(i)!='S' && i<a.length()", "a.charAt(i)!='S'", "a.charAt(i)", "a.charAt", "a", "i", "'S'", "i<a.length()", "i", "a.length()", "a.length", "a", "{\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }", "count++", "count", "i++", "i", "if(i==a.length())\n {\n break;\n }", "i==a.length()", "i", "a.length()", "a.length", "a", "{\n break;\n }", "break;", "if(max<count)\n {\n max=count;\n }", "max<count", "max", "count", "{\n max=count;\n }", "max=count", "max", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String args[]", "args", "public class Main{\n public static void main(String args[])\n {\n Scanner sc= new Scanner(System.in);\n String a = sc.nextLine();\n int max=0,count=0;\n for(int i=0;i<a.length();i++)\n {\n \n if(a.charAt(i)=='R')\n {\n count=0;\n while(a.charAt(i)!='S' && i<a.length())\n {\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }\n if(max<count)\n {\n max=count;\n }\n \n }\n }\n System.out.println(count);\n }\n}", "public class Main{\n public static void main(String args[])\n {\n Scanner sc= new Scanner(System.in);\n String a = sc.nextLine();\n int max=0,count=0;\n for(int i=0;i<a.length();i++)\n {\n \n if(a.charAt(i)=='R')\n {\n count=0;\n while(a.charAt(i)!='S' && i<a.length())\n {\n count++;\n \n i++;\n if(i==a.length())\n {\n break;\n }\n \n }\n if(max<count)\n {\n max=count;\n }\n \n }\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String args[]) { Scanner sc= new Scanner(System.in); String a = sc.nextLine(); int max=0,count=0; for(int i=0;i<a.length();i++) { if(a.charAt(i)=='R') { count=0; while(a.charAt(i)!='S' && i<a.length()) { count++; i++; if(i==a.length()) { break; } } if(max<count) { max=count; } } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 41, 13, 17, 42, 2, 13, 18, 13, 13, 30, 14, 4, 18, 18, 13, 13, 17, 30, 40, 13, 14, 2, 13, 13, 30, 0, 13, 13, 30, 0, 13, 17, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 75, 5 ], [ 75, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 8, 23 ], [ 23, 24 ], [ 23, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 29, 31 ], [ 8, 32 ], [ 32, 33 ], [ 32, 34 ], [ 8, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 38, 40 ], [ 35, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 43, 48 ], [ 42, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 52, 53 ], [ 53, 54 ], [ 53, 55 ], [ 52, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 42, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 41, 64 ], [ 64, 65 ], [ 8, 66 ], [ 66, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 66, 71 ], [ 6, 72 ], [ 72, 73 ], [ 0, 74 ], [ 74, 75 ], [ 74, 76 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String data[] = line.split(\"\");\n int count = 0;\n int n = 0;\n int flag = 0;\n int max = 0;\n while(n < data.length){\n if(data[n].equals(\"R\")){\n count++;\n if(max < count){\n max = count;\n }\n }\n else{\n count = 0;\n }\n n++;\n }\n System.out.println(max);\n }\n}\n ", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String data[] = line.split(\"\");\n int count = 0;\n int n = 0;\n int flag = 0;\n int max = 0;\n while(n < data.length){\n if(data[n].equals(\"R\")){\n count++;\n if(max < count){\n max = count;\n }\n }\n else{\n count = 0;\n }\n n++;\n }\n System.out.println(max);\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String data[] = line.split(\"\");\n int count = 0;\n int n = 0;\n int flag = 0;\n int max = 0;\n while(n < data.length){\n if(data[n].equals(\"R\")){\n count++;\n if(max < count){\n max = count;\n }\n }\n else{\n count = 0;\n }\n n++;\n }\n System.out.println(max);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String data[] = line.split(\"\");\n int count = 0;\n int n = 0;\n int flag = 0;\n int max = 0;\n while(n < data.length){\n if(data[n].equals(\"R\")){\n count++;\n if(max < count){\n max = count;\n }\n }\n else{\n count = 0;\n }\n n++;\n }\n System.out.println(max);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String line = sc.nextLine();", "line", "sc.nextLine()", "sc.nextLine", "sc", "String data[] = line.split(\"\");", "data", "line.split(\"\")", "line.split", "line", "\"\"", "int count = 0;", "count", "0", "int n = 0;", "n", "0", "int flag = 0;", "flag", "0", "int max = 0;", "max", "0", "while(n < data.length){\n if(data[n].equals(\"R\")){\n count++;\n if(max < count){\n max = count;\n }\n }\n else{\n count = 0;\n }\n n++;\n }", "n < data.length", "n", "data.length", "data", "data.length", "{\n if(data[n].equals(\"R\")){\n count++;\n if(max < count){\n max = count;\n }\n }\n else{\n count = 0;\n }\n n++;\n }", "if(data[n].equals(\"R\")){\n count++;\n if(max < count){\n max = count;\n }\n }\n else{\n count = 0;\n }", "data[n].equals(\"R\")", "data[n].equals", "data[n]", "data", "n", "\"R\"", "{\n count++;\n if(max < count){\n max = count;\n }\n }", "count++", "count", "if(max < count){\n max = count;\n }", "max < count", "max", "count", "{\n max = count;\n }", "max = count", "max", "count", "{\n count = 0;\n }", "count = 0", "count", "0", "n++", "n", "System.out.println(max)", "System.out.println", "System.out", "System", "System.out", "max", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String data[] = line.split(\"\");\n int count = 0;\n int n = 0;\n int flag = 0;\n int max = 0;\n while(n < data.length){\n if(data[n].equals(\"R\")){\n count++;\n if(max < count){\n max = count;\n }\n }\n else{\n count = 0;\n }\n n++;\n }\n System.out.println(max);\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n String line = sc.nextLine();\n String data[] = line.split(\"\");\n int count = 0;\n int n = 0;\n int flag = 0;\n int max = 0;\n while(n < data.length){\n if(data[n].equals(\"R\")){\n count++;\n if(max < count){\n max = count;\n }\n }\n else{\n count = 0;\n }\n n++;\n }\n System.out.println(max);\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String line = sc.nextLine(); String data[] = line.split(""); int count = 0; int n = 0; int flag = 0; int max = 0; while(n < data.length){ if(data[n].equals("R")){ count++; if(max < count){ max = count; } } else{ count = 0; } n++; } System.out.println(max); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 17, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 14, 4, 18, 13, 17, 4, 18, 18, 13, 13, 17, 4, 18, 18, 13, 13, 17, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 64, 5 ], [ 64, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 18, 19 ], [ 19, 20 ], [ 20, 21 ], [ 19, 22 ], [ 18, 23 ], [ 23, 24 ], [ 24, 25 ], [ 23, 26 ], [ 17, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 27, 32 ], [ 17, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 34, 37 ], [ 33, 38 ], [ 38, 39 ], [ 39, 40 ], [ 40, 41 ], [ 40, 42 ], [ 38, 43 ], [ 33, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 49, 54 ], [ 44, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 6, 61 ], [ 61, 62 ], [ 0, 63 ], [ 63, 64 ], [ 63, 65 ] ]
[ "import java.util.*;\npublic class Main {\n\tpublic static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n if(S.equals(\"RRS\") || S.equals(\"SRR\"))\n System.out.println(2);\n else if(S.equals(\"RRR\"))\n System.out.println(3);\n else if(S.equals(\"SSS\"))\n System.out.println(0);\n else\n System.out.println(1);\n \n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\tpublic static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n if(S.equals(\"RRS\") || S.equals(\"SRR\"))\n System.out.println(2);\n else if(S.equals(\"RRR\"))\n System.out.println(3);\n else if(S.equals(\"SSS\"))\n System.out.println(0);\n else\n System.out.println(1);\n \n }\n}", "Main", "public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n if(S.equals(\"RRS\") || S.equals(\"SRR\"))\n System.out.println(2);\n else if(S.equals(\"RRR\"))\n System.out.println(3);\n else if(S.equals(\"SSS\"))\n System.out.println(0);\n else\n System.out.println(1);\n \n }", "main", "{\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n if(S.equals(\"RRS\") || S.equals(\"SRR\"))\n System.out.println(2);\n else if(S.equals(\"RRR\"))\n System.out.println(3);\n else if(S.equals(\"SSS\"))\n System.out.println(0);\n else\n System.out.println(1);\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String S = sc.nextLine();", "S", "sc.nextLine()", "sc.nextLine", "sc", "if(S.equals(\"RRS\") || S.equals(\"SRR\"))\n System.out.println(2);\n else if(S.equals(\"RRR\"))\n System.out.println(3);\n else if(S.equals(\"SSS\"))\n System.out.println(0);\n else\n System.out.println(1);", "S.equals(\"RRS\") || S.equals(\"SRR\")", "S.equals(\"RRS\")", "S.equals", "S", "\"RRS\"", "S.equals(\"SRR\")", "S.equals", "S", "\"SRR\"", "System.out.println(2)", "System.out.println", "System.out", "System", "System.out", "2", "if(S.equals(\"RRR\"))\n System.out.println(3);\n else if(S.equals(\"SSS\"))\n System.out.println(0);\n else\n System.out.println(1);", "S.equals(\"RRR\")", "S.equals", "S", "\"RRR\"", "System.out.println(3)", "System.out.println", "System.out", "System", "System.out", "3", "if(S.equals(\"SSS\"))\n System.out.println(0);\n else\n System.out.println(1);", "S.equals(\"SSS\")", "S.equals", "S", "\"SSS\"", "System.out.println(0)", "System.out.println", "System.out", "System", "System.out", "0", "System.out.println(1)", "System.out.println", "System.out", "System", "System.out", "1", "String[] args", "args", "public class Main {\n\tpublic static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n if(S.equals(\"RRS\") || S.equals(\"SRR\"))\n System.out.println(2);\n else if(S.equals(\"RRR\"))\n System.out.println(3);\n else if(S.equals(\"SSS\"))\n System.out.println(0);\n else\n System.out.println(1);\n \n }\n}", "public class Main {\n\tpublic static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n String S = sc.nextLine();\n if(S.equals(\"RRS\") || S.equals(\"SRR\"))\n System.out.println(2);\n else if(S.equals(\"RRR\"))\n System.out.println(3);\n else if(S.equals(\"SSS\"))\n System.out.println(0);\n else\n System.out.println(1);\n \n }\n}", "Main" ]
import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); String S = sc.nextLine(); if(S.equals("RRS") || S.equals("SRR")) System.out.println(2); else if(S.equals("RRR")) System.out.println(3); else if(S.equals("SSS")) System.out.println(0); else System.out.println(1); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 4, 18, 13, 1, 40, 13, 30, 30, 14, 2, 4, 18, 13, 13, 17, 30, 40, 13, 14, 2, 2, 13, 17, 2, 13, 17, 30, 4, 18, 13, 13, 14, 2, 13, 17, 30, 14, 2, 4, 18, 13, 17, 17, 30, 4, 18, 13, 17, 30, 4, 18, 13, 17, 4, 18, 13, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 30, 38, 5, 13, 30, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 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 ], [ 175, 14 ], [ 175, 15 ], [ 15, 16 ], [ 15, 17 ], [ 175, 18 ], [ 18, 19 ], [ 18, 20 ], [ 175, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 24, 26 ], [ 26, 27 ], [ 27, 28 ], [ 23, 29 ], [ 29, 30 ], [ 29, 31 ], [ 23, 32 ], [ 32, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 32, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 32, 42 ], [ 42, 43 ], [ 43, 44 ], [ 32, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 49, 52 ], [ 48, 53 ], [ 47, 54 ], [ 54, 55 ], [ 55, 56 ], [ 23, 57 ], [ 57, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 62, 64 ], [ 57, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 57, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 77, 80 ], [ 76, 81 ], [ 75, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 83, 86 ], [ 75, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 88, 91 ], [ 23, 92 ], [ 92, 93 ], [ 93, 94 ], [ 21, 95 ], [ 95, 96 ], [ 175, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 97, 102 ], [ 102, 103 ], [ 102, 104 ], [ 97, 105 ], [ 105, 106 ], [ 105, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 110, 111 ], [ 111, 112 ], [ 108, 113 ], [ 113, 114 ], [ 114, 115 ], [ 115, 116 ], [ 115, 117 ], [ 114, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 107, 122 ], [ 122, 123 ], [ 123, 124 ], [ 124, 125 ], [ 97, 126 ], [ 126, 127 ], [ 126, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 128, 133 ], [ 133, 134 ], [ 134, 135 ], [ 135, 136 ], [ 135, 137 ], [ 133, 138 ], [ 138, 139 ], [ 138, 140 ], [ 133, 141 ], [ 141, 142 ], [ 142, 143 ], [ 133, 144 ], [ 145, 145 ], [ 145, 146 ], [ 146, 147 ], [ 147, 148 ], [ 147, 149 ], [ 146, 150 ], [ 150, 151 ], [ 128, 152 ], [ 152, 153 ], [ 126, 154 ], [ 154, 155 ], [ 97, 156 ], [ 156, 157 ], [ 156, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 161, 162 ], [ 160, 163 ], [ 163, 164 ], [ 97, 165 ], [ 165, 166 ], [ 165, 167 ], [ 167, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 169, 172 ], [ 172, 173 ], [ 0, 174 ], [ 174, 175 ], [ 174, 176 ] ]
[ "import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n static final FS sc = new FS(); // 封装输入类\n static final PrintWriter pw = new PrintWriter(System.out);\n\n public static void main(String[] args) {\n String s = sc.next();\n int res = 0;\n for (int i = 0;i < s.length();i++) {\n if (s.charAt(i) == 'R') {\n res++;\n }\n }\n if (res == 3 || res <= 1) {\n pw.println(res);\n } else if (res == 2) {\n if (s.charAt(1) == 'R') {\n pw.println(2);\n } else {\n pw.println(1);\n }\n }\n pw.flush();\n }\n\n static class FS {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n String next() {\n while(!st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch(Exception ignored) {}\n }\n return st.nextToken();\n }\n int[] nextArray(int n) {\n int[] a = new int[n];\n for(int i = 0;i < n;i++) {\n a[i] = nextInt();\n }\n return a;\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.io.PrintWriter;", "PrintWriter", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n static final FS sc = new FS(); // 封装输入类\n static final PrintWriter pw = new PrintWriter(System.out);\n\n public static void main(String[] args) {\n String s = sc.next();\n int res = 0;\n for (int i = 0;i < s.length();i++) {\n if (s.charAt(i) == 'R') {\n res++;\n }\n }\n if (res == 3 || res <= 1) {\n pw.println(res);\n } else if (res == 2) {\n if (s.charAt(1) == 'R') {\n pw.println(2);\n } else {\n pw.println(1);\n }\n }\n pw.flush();\n }\n\n static class FS {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n String next() {\n while(!st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch(Exception ignored) {}\n }\n return st.nextToken();\n }\n int[] nextArray(int n) {\n int[] a = new int[n];\n for(int i = 0;i < n;i++) {\n a[i] = nextInt();\n }\n return a;\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "Main", "static final FS sc = new FS(); // 封装输入类", "sc", "new FS()", "static final PrintWriter pw = new PrintWriter(System.out);", "pw", "new PrintWriter(System.out)", "public static void main(String[] args) {\n String s = sc.next();\n int res = 0;\n for (int i = 0;i < s.length();i++) {\n if (s.charAt(i) == 'R') {\n res++;\n }\n }\n if (res == 3 || res <= 1) {\n pw.println(res);\n } else if (res == 2) {\n if (s.charAt(1) == 'R') {\n pw.println(2);\n } else {\n pw.println(1);\n }\n }\n pw.flush();\n }", "main", "{\n String s = sc.next();\n int res = 0;\n for (int i = 0;i < s.length();i++) {\n if (s.charAt(i) == 'R') {\n res++;\n }\n }\n if (res == 3 || res <= 1) {\n pw.println(res);\n } else if (res == 2) {\n if (s.charAt(1) == 'R') {\n pw.println(2);\n } else {\n pw.println(1);\n }\n }\n pw.flush();\n }", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int res = 0;", "res", "0", "for (int i = 0;i < s.length();i++) {\n if (s.charAt(i) == 'R') {\n res++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < s.length()", "i", "s.length()", "s.length", "s", "i++", "i++", "i", "{\n if (s.charAt(i) == 'R') {\n res++;\n }\n }", "{\n if (s.charAt(i) == 'R') {\n res++;\n }\n }", "if (s.charAt(i) == 'R') {\n res++;\n }", "s.charAt(i) == 'R'", "s.charAt(i)", "s.charAt", "s", "i", "'R'", "{\n res++;\n }", "res++", "res", "if (res == 3 || res <= 1) {\n pw.println(res);\n } else if (res == 2) {\n if (s.charAt(1) == 'R') {\n pw.println(2);\n } else {\n pw.println(1);\n }\n }", "res == 3 || res <= 1", "res == 3", "res", "3", "res <= 1", "res", "1", "{\n pw.println(res);\n }", "pw.println(res)", "pw.println", "pw", "res", "if (res == 2) {\n if (s.charAt(1) == 'R') {\n pw.println(2);\n } else {\n pw.println(1);\n }\n }", "res == 2", "res", "2", "{\n if (s.charAt(1) == 'R') {\n pw.println(2);\n } else {\n pw.println(1);\n }\n }", "if (s.charAt(1) == 'R') {\n pw.println(2);\n } else {\n pw.println(1);\n }", "s.charAt(1) == 'R'", "s.charAt(1)", "s.charAt", "s", "1", "'R'", "{\n pw.println(2);\n }", "pw.println(2)", "pw.println", "pw", "2", "{\n pw.println(1);\n }", "pw.println(1)", "pw.println", "pw", "1", "pw.flush()", "pw.flush", "pw", "String[] args", "args", "static class FS {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n String next() {\n while(!st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch(Exception ignored) {}\n }\n return st.nextToken();\n }\n int[] nextArray(int n) {\n int[] a = new int[n];\n for(int i = 0;i < n;i++) {\n a[i] = nextInt();\n }\n return a;\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }", "FS", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st = new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "String next() {\n while(!st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch(Exception ignored) {}\n }\n return st.nextToken();\n }", "next", "{\n while(!st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch(Exception ignored) {}\n }\n return st.nextToken();\n }", "while(!st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch(Exception ignored) {}\n }", "!st.hasMoreElements()", "st.hasMoreElements()", "st.hasMoreElements", "st", "{\n try {\n st = new StringTokenizer(br.readLine());\n } catch(Exception ignored) {}\n }", "try {\n st = new StringTokenizer(br.readLine());\n } catch(Exception ignored) {}", "catch(Exception ignored) {}", "Exception ignored", "{}", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int[] nextArray(int n) {\n int[] a = new int[n];\n for(int i = 0;i < n;i++) {\n a[i] = nextInt();\n }\n return a;\n }", "nextArray", "{\n int[] a = new int[n];\n for(int i = 0;i < n;i++) {\n a[i] = nextInt();\n }\n return a;\n }", "int[] a = new int[n];", "a", "new int[n]", "n", "for(int i = 0;i < n;i++) {\n a[i] = nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n a[i] = nextInt();\n }", "{\n a[i] = nextInt();\n }", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public class Main {\n static final FS sc = new FS(); // 封装输入类\n static final PrintWriter pw = new PrintWriter(System.out);\n\n public static void main(String[] args) {\n String s = sc.next();\n int res = 0;\n for (int i = 0;i < s.length();i++) {\n if (s.charAt(i) == 'R') {\n res++;\n }\n }\n if (res == 3 || res <= 1) {\n pw.println(res);\n } else if (res == 2) {\n if (s.charAt(1) == 'R') {\n pw.println(2);\n } else {\n pw.println(1);\n }\n }\n pw.flush();\n }\n\n static class FS {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n String next() {\n while(!st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch(Exception ignored) {}\n }\n return st.nextToken();\n }\n int[] nextArray(int n) {\n int[] a = new int[n];\n for(int i = 0;i < n;i++) {\n a[i] = nextInt();\n }\n return a;\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "public class Main {\n static final FS sc = new FS(); // 封装输入类\n static final PrintWriter pw = new PrintWriter(System.out);\n\n public static void main(String[] args) {\n String s = sc.next();\n int res = 0;\n for (int i = 0;i < s.length();i++) {\n if (s.charAt(i) == 'R') {\n res++;\n }\n }\n if (res == 3 || res <= 1) {\n pw.println(res);\n } else if (res == 2) {\n if (s.charAt(1) == 'R') {\n pw.println(2);\n } else {\n pw.println(1);\n }\n }\n pw.flush();\n }\n\n static class FS {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n String next() {\n while(!st.hasMoreElements()) {\n try {\n st = new StringTokenizer(br.readLine());\n } catch(Exception ignored) {}\n }\n return st.nextToken();\n }\n int[] nextArray(int n) {\n int[] a = new int[n];\n for(int i = 0;i < n;i++) {\n a[i] = nextInt();\n }\n return a;\n }\n int nextInt() {\n return Integer.parseInt(next());\n }\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "Main" ]
import java.io.BufferedReader; import java.io.InputStreamReader; import java.io.PrintWriter; import java.util.StringTokenizer; public class Main { static final FS sc = new FS(); // 封装输入类 static final PrintWriter pw = new PrintWriter(System.out); public static void main(String[] args) { String s = sc.next(); int res = 0; for (int i = 0;i < s.length();i++) { if (s.charAt(i) == 'R') { res++; } } if (res == 3 || res <= 1) { pw.println(res); } else if (res == 2) { if (s.charAt(1) == 'R') { pw.println(2); } else { pw.println(1); } } pw.flush(); } static class FS { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); String next() { while(!st.hasMoreElements()) { try { st = new StringTokenizer(br.readLine()); } catch(Exception ignored) {} } return st.nextToken(); } int[] nextArray(int n) { int[] a = new int[n]; for(int i = 0;i < n;i++) { a[i] = nextInt(); } return a; } int nextInt() { return Integer.parseInt(next()); } long nextLong() { return Long.parseLong(next()); } } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 17, 35, 13, 34, 17, 1, 34, 17, 1, 34, 17, 1, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 34, 17, 1, 0, 13, 17, 3, 34, 17, 1, 0, 13, 17, 3, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 64, 5 ], [ 64, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 22, 24 ], [ 20, 25 ], [ 25, 26 ], [ 25, 27 ], [ 20, 28 ], [ 28, 29 ], [ 28, 30 ], [ 20, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 34, 36 ], [ 33, 37 ], [ 20, 38 ], [ 38, 39 ], [ 38, 40 ], [ 20, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 20, 48 ], [ 48, 49 ], [ 48, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 8, 55 ], [ 55, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 55, 60 ], [ 6, 61 ], [ 61, 62 ], [ 0, 63 ], [ 63, 64 ], [ 63, 65 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n\n int ans = 0;\n\n switch(s){\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n ans = 1;\n break;\n case \"SRR\":\n case \"RRS\":\n ans = 2;\n break;\n case \"RRR\":\n ans = 3;\n break;\n }\n\n System.out.print(ans);\n\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n\n int ans = 0;\n\n switch(s){\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n ans = 1;\n break;\n case \"SRR\":\n case \"RRS\":\n ans = 2;\n break;\n case \"RRR\":\n ans = 3;\n break;\n }\n\n System.out.print(ans);\n\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n\n int ans = 0;\n\n switch(s){\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n ans = 1;\n break;\n case \"SRR\":\n case \"RRS\":\n ans = 2;\n break;\n case \"RRR\":\n ans = 3;\n break;\n }\n\n System.out.print(ans);\n\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n\n int ans = 0;\n\n switch(s){\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n ans = 1;\n break;\n case \"SRR\":\n case \"RRS\":\n ans = 2;\n break;\n case \"RRR\":\n ans = 3;\n break;\n }\n\n System.out.print(ans);\n\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "String s = sc.next();", "s", "sc.next()", "sc.next", "sc", "int ans = 0;", "ans", "0", "switch(s){\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n ans = 1;\n break;\n case \"SRR\":\n case \"RRS\":\n ans = 2;\n break;\n case \"RRR\":\n ans = 3;\n break;\n }", "s", "case \"SSR\":", "\"SSR\"", "case \"SSR\":", "case \"SRS\":", "\"SRS\"", "case \"SRS\":", "case \"RSS\":", "\"RSS\"", "case \"RSS\":", "case \"RSR\":", "\"RSR\"", "case \"RSR\":", "ans = 1", "ans", "1", "break;", "case \"SRR\":", "\"SRR\"", "case \"SRR\":", "case \"RRS\":", "\"RRS\"", "case \"RRS\":", "ans = 2", "ans", "2", "break;", "case \"RRR\":", "\"RRR\"", "case \"RRR\":", "ans = 3", "ans", "3", "break;", "System.out.print(ans)", "System.out.print", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n\n int ans = 0;\n\n switch(s){\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n ans = 1;\n break;\n case \"SRR\":\n case \"RRS\":\n ans = 2;\n break;\n case \"RRR\":\n ans = 3;\n break;\n }\n\n System.out.print(ans);\n\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n String s = sc.next();\n\n int ans = 0;\n\n switch(s){\n case \"SSR\":\n case \"SRS\":\n case \"RSS\":\n case \"RSR\":\n ans = 1;\n break;\n case \"SRR\":\n case \"RRS\":\n ans = 2;\n break;\n case \"RRR\":\n ans = 3;\n break;\n }\n\n System.out.print(ans);\n\n }\n}", "Main" ]
import java.util.*; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); String s = sc.next(); int ans = 0; switch(s){ case "SSR": case "SRS": case "RSS": case "RSR": ans = 1; break; case "SRR": case "RRS": ans = 2; break; case "RRR": ans = 3; break; } System.out.print(ans); } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 4, 18, 20, 41, 13, 4, 18, 13, 17, 17, 41, 13, 4, 18, 13, 17, 17, 41, 13, 4, 18, 13, 17, 17, 41, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 14, 4, 18, 13, 17, 30, 0, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 107, 11 ], [ 107, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 14, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 22, 25 ], [ 22, 26 ], [ 14, 27 ], [ 27, 28 ], [ 27, 29 ], [ 29, 30 ], [ 30, 31 ], [ 29, 32 ], [ 29, 33 ], [ 14, 34 ], [ 34, 35 ], [ 34, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 36, 40 ], [ 14, 41 ], [ 41, 42 ], [ 41, 43 ], [ 14, 44 ], [ 44, 45 ], [ 45, 46 ], [ 46, 47 ], [ 45, 48 ], [ 44, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 55, 56 ], [ 54, 57 ], [ 53, 58 ], [ 58, 59 ], [ 59, 60 ], [ 59, 61 ], [ 58, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 63, 66 ], [ 62, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 44, 71 ], [ 71, 72 ], [ 72, 73 ], [ 73, 74 ], [ 72, 75 ], [ 71, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 81, 82 ], [ 82, 83 ], [ 81, 84 ], [ 80, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 71, 89 ], [ 89, 90 ], [ 90, 91 ], [ 91, 92 ], [ 90, 93 ], [ 89, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 14, 98 ], [ 98, 99 ], [ 99, 100 ], [ 100, 101 ], [ 100, 102 ], [ 98, 103 ], [ 12, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "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\tString input = new BufferedReader(new InputStreamReader(System.in)).readLine();\n\t\tString s1 = input.substring(0,1);\n\t\tString s2 = input.substring(1,2);\n\t\tString s3 = input.substring(2,3);\n\t\tint day = 0;\n\t\t\n\t\tif(s1.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s2.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\t\tday = 3;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\telse if(s2.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t}\t\n\t\t}\n\t\telse if(s3.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t}\n\n\t\tSystem.out.println(day);\n\n\t}\n\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tString input = new BufferedReader(new InputStreamReader(System.in)).readLine();\n\t\tString s1 = input.substring(0,1);\n\t\tString s2 = input.substring(1,2);\n\t\tString s3 = input.substring(2,3);\n\t\tint day = 0;\n\t\t\n\t\tif(s1.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s2.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\t\tday = 3;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\telse if(s2.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t}\t\n\t\t}\n\t\telse if(s3.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t}\n\n\t\tSystem.out.println(day);\n\n\t}\n\n}", "Main", "public static void main(String[] args) throws IOException{\n\t\tString input = new BufferedReader(new InputStreamReader(System.in)).readLine();\n\t\tString s1 = input.substring(0,1);\n\t\tString s2 = input.substring(1,2);\n\t\tString s3 = input.substring(2,3);\n\t\tint day = 0;\n\t\t\n\t\tif(s1.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s2.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\t\tday = 3;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\telse if(s2.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t}\t\n\t\t}\n\t\telse if(s3.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t}\n\n\t\tSystem.out.println(day);\n\n\t}", "main", "{\n\t\tString input = new BufferedReader(new InputStreamReader(System.in)).readLine();\n\t\tString s1 = input.substring(0,1);\n\t\tString s2 = input.substring(1,2);\n\t\tString s3 = input.substring(2,3);\n\t\tint day = 0;\n\t\t\n\t\tif(s1.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s2.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\t\tday = 3;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\telse if(s2.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t}\t\n\t\t}\n\t\telse if(s3.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t}\n\n\t\tSystem.out.println(day);\n\n\t}", "String input = new BufferedReader(new InputStreamReader(System.in)).readLine();", "input", "new BufferedReader(new InputStreamReader(System.in)).readLine()", "new BufferedReader(new InputStreamReader(System.in)).readLine", "new BufferedReader(new InputStreamReader(System.in))", "String s1 = input.substring(0,1);", "s1", "input.substring(0,1)", "input.substring", "input", "0", "1", "String s2 = input.substring(1,2);", "s2", "input.substring(1,2)", "input.substring", "input", "1", "2", "String s3 = input.substring(2,3);", "s3", "input.substring(2,3)", "input.substring", "input", "2", "3", "int day = 0;", "day", "0", "if(s1.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s2.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\t\tday = 3;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\telse if(s2.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t}\t\n\t\t}\n\t\telse if(s3.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t}", "s1.equals(\"R\")", "s1.equals", "s1", "\"R\"", "{\n\t\t\tday = 1;\n\t\t\tif(s2.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\t\tday = 3;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}", "day = 1", "day", "1", "if(s2.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\t\tday = 3;\n\t\t\t\t}\t\n\t\t\t}", "s2.equals(\"R\")", "s2.equals", "s2", "\"R\"", "{\n\t\t\t\tday = 2;\n\t\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\t\tday = 3;\n\t\t\t\t}\t\n\t\t\t}", "day = 2", "day", "2", "if(s3.equals(\"R\")) {\n\t\t\t\t\tday = 3;\n\t\t\t\t}", "s3.equals(\"R\")", "s3.equals", "s3", "\"R\"", "{\n\t\t\t\t\tday = 3;\n\t\t\t\t}", "day = 3", "day", "3", "if(s2.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t}\t\n\t\t}\n\t\telse if(s3.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t}", "s2.equals(\"R\")", "s2.equals", "s2", "\"R\"", "{\n\t\t\tday = 1;\n\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t}\t\n\t\t}", "day = 1", "day", "1", "if(s3.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t}", "s3.equals(\"R\")", "s3.equals", "s3", "\"R\"", "{\n\t\t\t\tday = 2;\n\t\t\t}", "day = 2", "day", "2", "if(s3.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t}", "s3.equals(\"R\")", "s3.equals", "s3", "\"R\"", "{\n\t\t\tday = 1;\n\t\t}", "day = 1", "day", "1", "System.out.println(day)", "System.out.println", "System.out", "System", "System.out", "day", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tString input = new BufferedReader(new InputStreamReader(System.in)).readLine();\n\t\tString s1 = input.substring(0,1);\n\t\tString s2 = input.substring(1,2);\n\t\tString s3 = input.substring(2,3);\n\t\tint day = 0;\n\t\t\n\t\tif(s1.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s2.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\t\tday = 3;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\telse if(s2.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t}\t\n\t\t}\n\t\telse if(s3.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t}\n\n\t\tSystem.out.println(day);\n\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) throws IOException{\n\t\tString input = new BufferedReader(new InputStreamReader(System.in)).readLine();\n\t\tString s1 = input.substring(0,1);\n\t\tString s2 = input.substring(1,2);\n\t\tString s3 = input.substring(2,3);\n\t\tint day = 0;\n\t\t\n\t\tif(s1.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s2.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\t\tday = 3;\n\t\t\t\t}\t\n\t\t\t}\n\t\t}\n\t\telse if(s2.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t\tif(s3.equals(\"R\")) {\n\t\t\t\tday = 2;\n\t\t\t}\t\n\t\t}\n\t\telse if(s3.equals(\"R\")) {\n\t\t\tday = 1;\n\t\t}\n\n\t\tSystem.out.println(day);\n\n\t}\n\n}", "Main" ]
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException{ String input = new BufferedReader(new InputStreamReader(System.in)).readLine(); String s1 = input.substring(0,1); String s2 = input.substring(1,2); String s3 = input.substring(2,3); int day = 0; if(s1.equals("R")) { day = 1; if(s2.equals("R")) { day = 2; if(s3.equals("R")) { day = 3; } } } else if(s2.equals("R")) { day = 1; if(s3.equals("R")) { day = 2; } } else if(s3.equals("R")) { day = 1; } System.out.println(day); } }
[ 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, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 2, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 114, 11 ], [ 114, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 15, 17 ], [ 14, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 14, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 14, 28 ], [ 28, 29 ], [ 28, 30 ], [ 14, 32 ], [ 32, 33 ], [ 32, 34 ], [ 14, 36 ], [ 36, 37 ], [ 37, 38 ], [ 38, 39 ], [ 38, 40 ], [ 36, 41 ], [ 41, 42 ], [ 41, 43 ], [ 36, 44 ], [ 44, 45 ], [ 45, 46 ], [ 36, 47 ], [ 48, 48 ], [ 48, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 54, 55 ], [ 48, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 14, 63 ], [ 63, 64 ], [ 64, 65 ], [ 14, 66 ], [ 66, 67 ], [ 66, 68 ], [ 14, 69 ], [ 69, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 69, 74 ], [ 74, 75 ], [ 74, 76 ], [ 69, 77 ], [ 77, 78 ], [ 78, 79 ], [ 69, 80 ], [ 81, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 84, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 89, 90 ], [ 89, 91 ], [ 84, 92 ], [ 92, 93 ], [ 93, 94 ], [ 93, 95 ], [ 92, 96 ], [ 96, 97 ], [ 96, 98 ], [ 83, 99 ], [ 99, 100 ], [ 99, 101 ], [ 82, 102 ], [ 102, 103 ], [ 103, 104 ], [ 14, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 105, 110 ], [ 12, 111 ], [ 111, 112 ], [ 0, 113 ], [ 113, 114 ], [ 113, 115 ] ]
[ "import java.util.Scanner;\nimport java.util.ArrayList;\nimport java.util.List;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextInt();\n long[] x = new long[n];\n long[] y = new long[n];\n for(int i = 0; i < n; i++){\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n sc.close();\n int count = 0;\n for(int i = 0; i < n; i++){\n if(x[i] * x[i] + y[i] * y[i] <= d * d){\n count++;\n }\n }\n System.out.println(count);\n }\n\n} ", "import java.util.Scanner;", "Scanner", "java.util", "import java.util.ArrayList;", "ArrayList", "java.util", "import java.util.List;", "List", "java.util", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextInt();\n long[] x = new long[n];\n long[] y = new long[n];\n for(int i = 0; i < n; i++){\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n sc.close();\n int count = 0;\n for(int i = 0; i < n; i++){\n if(x[i] * x[i] + y[i] * y[i] <= d * d){\n count++;\n }\n }\n System.out.println(count);\n }\n\n}", "Main", "public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextInt();\n long[] x = new long[n];\n long[] y = new long[n];\n for(int i = 0; i < n; i++){\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n sc.close();\n int count = 0;\n for(int i = 0; i < n; i++){\n if(x[i] * x[i] + y[i] * y[i] <= d * d){\n count++;\n }\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextInt();\n long[] x = new long[n];\n long[] y = new long[n];\n for(int i = 0; i < n; i++){\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n sc.close();\n int count = 0;\n for(int i = 0; i < n; i++){\n if(x[i] * x[i] + y[i] * y[i] <= d * d){\n count++;\n }\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "long d = sc.nextInt();", "d", "sc.nextInt()", "sc.nextInt", "sc", "long[] x = new long[n];", "x", "new long[n]", "n", "long[] y = new long[n];", "y", "new long[n]", "n", "for(int i = 0; i < n; i++){\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }", "{\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }", "x[i] = sc.nextInt()", "x[i]", "x", "i", "sc.nextInt()", "sc.nextInt", "sc", "y[i] = sc.nextInt()", "y[i]", "y", "i", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "int count = 0;", "count", "0", "for(int i = 0; i < n; i++){\n if(x[i] * x[i] + y[i] * y[i] <= d * d){\n count++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if(x[i] * x[i] + y[i] * y[i] <= d * d){\n count++;\n }\n }", "{\n if(x[i] * x[i] + y[i] * y[i] <= d * d){\n count++;\n }\n }", "if(x[i] * x[i] + y[i] * y[i] <= d * d){\n count++;\n }", "x[i] * x[i] + y[i] * y[i] <= d * d", "x[i] * x[i] + y[i] * y[i]", "x[i] * x[i]", "x[i]", "x", "i", "x[i]", "x", "i", "y[i] * y[i]", "y[i]", "y", "i", "y[i]", "y", "i", "d * d", "d", "d", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextInt();\n long[] x = new long[n];\n long[] y = new long[n];\n for(int i = 0; i < n; i++){\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n sc.close();\n int count = 0;\n for(int i = 0; i < n; i++){\n if(x[i] * x[i] + y[i] * y[i] <= d * d){\n count++;\n }\n }\n System.out.println(count);\n }\n\n}", "public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n long d = sc.nextInt();\n long[] x = new long[n];\n long[] y = new long[n];\n for(int i = 0; i < n; i++){\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n sc.close();\n int count = 0;\n for(int i = 0; i < n; i++){\n if(x[i] * x[i] + y[i] * y[i] <= d * d){\n count++;\n }\n }\n System.out.println(count);\n }\n\n}", "Main" ]
import java.util.Scanner; import java.util.ArrayList; import java.util.List; public class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); long d = sc.nextInt(); long[] x = new long[n]; long[] y = new long[n]; for(int i = 0; i < n; i++){ x[i] = sc.nextInt(); y[i] = sc.nextInt(); } sc.close(); int count = 0; for(int i = 0; i < n; i++){ if(x[i] * x[i] + y[i] * y[i] <= d * d){ count++; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 42, 2, 40, 13, 17, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 65, 5 ], [ 65, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 26, 29 ], [ 25, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 30, 36 ], [ 36, 37 ], [ 36, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 50, 52 ], [ 41, 53 ], [ 53, 54 ], [ 54, 55 ], [ 8, 56 ], [ 56, 57 ], [ 57, 58 ], [ 58, 59 ], [ 58, 60 ], [ 56, 61 ], [ 6, 62 ], [ 62, 63 ], [ 0, 64 ], [ 64, 65 ], [ 64, 66 ] ]
[ "import java.util.*;\n\npublic class Main {\n\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong(), d = sc.nextLong(), count = 0;\n while (n-->0){\n long a = sc.nextLong(), b = sc.nextLong();\n if(((a*a)+(b*b)) <= (d*d)){\n count++;\n }\n }\n System.out.println(count);\n }\n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong(), d = sc.nextLong(), count = 0;\n while (n-->0){\n long a = sc.nextLong(), b = sc.nextLong();\n if(((a*a)+(b*b)) <= (d*d)){\n count++;\n }\n }\n System.out.println(count);\n }\n}", "Main", "public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong(), d = sc.nextLong(), count = 0;\n while (n-->0){\n long a = sc.nextLong(), b = sc.nextLong();\n if(((a*a)+(b*b)) <= (d*d)){\n count++;\n }\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong(), d = sc.nextLong(), count = 0;\n while (n-->0){\n long a = sc.nextLong(), b = sc.nextLong();\n if(((a*a)+(b*b)) <= (d*d)){\n count++;\n }\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "long n = sc.nextLong()", "n", "sc.nextLong()", "sc.nextLong", "sc", "d = sc.nextLong()", "d", "sc.nextLong()", "sc.nextLong", "sc", "count = 0;", "count", "0", "while (n-->0){\n long a = sc.nextLong(), b = sc.nextLong();\n if(((a*a)+(b*b)) <= (d*d)){\n count++;\n }\n }", "n-->0", "n--", "n", "0", "{\n long a = sc.nextLong(), b = sc.nextLong();\n if(((a*a)+(b*b)) <= (d*d)){\n count++;\n }\n }", "long a = sc.nextLong()", "a", "sc.nextLong()", "sc.nextLong", "sc", "b = sc.nextLong();", "b", "sc.nextLong()", "sc.nextLong", "sc", "if(((a*a)+(b*b)) <= (d*d)){\n count++;\n }", "((a*a)+(b*b)) <= (d*d)", "((a*a)+(b*b))", "(a*a)", "a", "a", "(b*b)", "b", "b", "(d*d)", "d", "d", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong(), d = sc.nextLong(), count = 0;\n while (n-->0){\n long a = sc.nextLong(), b = sc.nextLong();\n if(((a*a)+(b*b)) <= (d*d)){\n count++;\n }\n }\n System.out.println(count);\n }\n}", "public class Main {\n\n public static void main (String[] args) {\n Scanner sc = new Scanner(System.in);\n long n = sc.nextLong(), d = sc.nextLong(), count = 0;\n while (n-->0){\n long a = sc.nextLong(), b = sc.nextLong();\n if(((a*a)+(b*b)) <= (d*d)){\n count++;\n }\n }\n System.out.println(count);\n }\n}", "Main" ]
import java.util.*; public class Main { public static void main (String[] args) { Scanner sc = new Scanner(System.in); long n = sc.nextLong(), d = sc.nextLong(), count = 0; while (n-->0){ long a = sc.nextLong(), b = sc.nextLong(); if(((a*a)+(b*b)) <= (d*d)){ count++; } } System.out.println(count); } }
[ 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, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 14, 2, 4, 18, 13, 2, 4, 18, 13, 18, 13, 13, 17, 4, 18, 13, 18, 13, 13, 17, 13, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 96, 5 ], [ 96, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 8, 21 ], [ 21, 22 ], [ 21, 23 ], [ 8, 25 ], [ 25, 26 ], [ 25, 27 ], [ 27, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 34, 35 ], [ 35, 36 ], [ 35, 37 ], [ 33, 38 ], [ 38, 39 ], [ 38, 40 ], [ 33, 41 ], [ 41, 42 ], [ 42, 43 ], [ 33, 44 ], [ 45, 45 ], [ 45, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 46, 50 ], [ 50, 51 ], [ 51, 52 ], [ 45, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 58, 59 ], [ 45, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 63, 64 ], [ 62, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 66, 69 ], [ 69, 70 ], [ 69, 71 ], [ 66, 72 ], [ 65, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 76, 77 ], [ 76, 78 ], [ 73, 79 ], [ 61, 80 ], [ 60, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 84, 86 ], [ 8, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 87, 92 ], [ 6, 93 ], [ 93, 94 ], [ 0, 95 ], [ 95, 96 ], [ 95, 97 ] ]
[ "import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] arg){\n \t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n \tdouble[] x = new double[n];\n \tdouble[] y = new double[n];\n \tdouble len = sc.nextInt();\n int count = 0;\n for (int i=0;i<n;i++){\n x[i] = sc.nextDouble();\n y[i] = sc.nextDouble();\n if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){\n count = count+1;\n }\n }\n System.out.println(count);\n \n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main{\n\tpublic static void main(String[] arg){\n \t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n \tdouble[] x = new double[n];\n \tdouble[] y = new double[n];\n \tdouble len = sc.nextInt();\n int count = 0;\n for (int i=0;i<n;i++){\n x[i] = sc.nextDouble();\n y[i] = sc.nextDouble();\n if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){\n count = count+1;\n }\n }\n System.out.println(count);\n \n }\n}", "Main", "public static void main(String[] arg){\n \t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n \tdouble[] x = new double[n];\n \tdouble[] y = new double[n];\n \tdouble len = sc.nextInt();\n int count = 0;\n for (int i=0;i<n;i++){\n x[i] = sc.nextDouble();\n y[i] = sc.nextDouble();\n if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){\n count = count+1;\n }\n }\n System.out.println(count);\n \n }", "main", "{\n \t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n \tdouble[] x = new double[n];\n \tdouble[] y = new double[n];\n \tdouble len = sc.nextInt();\n int count = 0;\n for (int i=0;i<n;i++){\n x[i] = sc.nextDouble();\n y[i] = sc.nextDouble();\n if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){\n count = count+1;\n }\n }\n System.out.println(count);\n \n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "double[] x = new double[n];", "x", "new double[n]", "n", "double[] y = new double[n];", "y", "new double[n]", "n", "double len = sc.nextInt();", "len", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "for (int i=0;i<n;i++){\n x[i] = sc.nextDouble();\n y[i] = sc.nextDouble();\n if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){\n count = count+1;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n x[i] = sc.nextDouble();\n y[i] = sc.nextDouble();\n if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){\n count = count+1;\n }\n }", "{\n x[i] = sc.nextDouble();\n y[i] = sc.nextDouble();\n if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){\n count = count+1;\n }\n }", "x[i] = sc.nextDouble()", "x[i]", "x", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "y[i] = sc.nextDouble()", "y[i]", "y", "i", "sc.nextDouble()", "sc.nextDouble", "sc", "if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){\n count = count+1;\n }", "Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len", "Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))", "Math.sqrt", "Math", "Math.pow(x[i],2)+Math.pow(y[i],2)", "Math.pow(x[i],2)", "Math.pow", "Math", "x[i]", "x", "i", "2", "Math.pow(y[i],2)", "Math.pow", "Math", "y[i]", "y", "i", "2", "len", "{\n count = count+1;\n }", "count = count+1", "count", "count+1", "count", "1", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] arg", "arg", "public class Main{\n\tpublic static void main(String[] arg){\n \t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n \tdouble[] x = new double[n];\n \tdouble[] y = new double[n];\n \tdouble len = sc.nextInt();\n int count = 0;\n for (int i=0;i<n;i++){\n x[i] = sc.nextDouble();\n y[i] = sc.nextDouble();\n if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){\n count = count+1;\n }\n }\n System.out.println(count);\n \n }\n}", "public class Main{\n\tpublic static void main(String[] arg){\n \t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n \tdouble[] x = new double[n];\n \tdouble[] y = new double[n];\n \tdouble len = sc.nextInt();\n int count = 0;\n for (int i=0;i<n;i++){\n x[i] = sc.nextDouble();\n y[i] = sc.nextDouble();\n if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){\n count = count+1;\n }\n }\n System.out.println(count);\n \n }\n}", "Main" ]
import java.util.Scanner; public class Main{ public static void main(String[] arg){ Scanner sc = new Scanner(System.in); int n = sc.nextInt(); double[] x = new double[n]; double[] y = new double[n]; double len = sc.nextInt(); int count = 0; for (int i=0;i<n;i++){ x[i] = sc.nextDouble(); y[i] = sc.nextDouble(); if (Math.sqrt(Math.pow(x[i],2)+Math.pow(y[i],2))<=len){ count = count+1; } } System.out.println(count); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 4, 18, 13, 13, 17, 0, 13, 4, 18, 13, 13, 17, 41, 13, 4, 18, 13, 2, 13, 13, 0, 18, 13, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 110, 5 ], [ 110, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 28, 30 ], [ 26, 31 ], [ 31, 32 ], [ 31, 33 ], [ 26, 34 ], [ 34, 35 ], [ 35, 36 ], [ 26, 37 ], [ 38, 38 ], [ 38, 39 ], [ 39, 40 ], [ 39, 41 ], [ 41, 42 ], [ 42, 43 ], [ 38, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 38, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 51, 54 ], [ 51, 55 ], [ 38, 56 ], [ 56, 57 ], [ 56, 58 ], [ 58, 59 ], [ 59, 60 ], [ 58, 61 ], [ 58, 62 ], [ 38, 63 ], [ 63, 64 ], [ 63, 65 ], [ 65, 66 ], [ 66, 67 ], [ 65, 68 ], [ 68, 69 ], [ 68, 70 ], [ 38, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 8, 76 ], [ 76, 77 ], [ 76, 78 ], [ 8, 79 ], [ 79, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 84 ], [ 84, 85 ], [ 84, 86 ], [ 79, 87 ], [ 87, 88 ], [ 88, 89 ], [ 79, 90 ], [ 91, 91 ], [ 91, 92 ], [ 92, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 93, 97 ], [ 92, 98 ], [ 98, 99 ], [ 99, 100 ], [ 8, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 101, 106 ], [ 6, 107 ], [ 107, 108 ], [ 0, 109 ], [ 109, 110 ], [ 109, 111 ] ]
[ "\nimport java.util.*;\n\n public class Main {\n\n \n public static void main(String[] args) {\n Scanner x= new Scanner(System.in);\n int n = x.nextInt();\n int d = x.nextInt();\n double[]nums = new double[n];\n for(int i = 0 ; i < n;i++){\n double a = x.nextDouble();\n double b = x.nextDouble();\n a = Math.pow(a,2);\n b= Math.pow(b,2);\n double c = Math.sqrt(a+b);\n nums[i] = c;\n }\n int count = 0;\n for(int i = 0 ; i<n;i++){\n if(nums[i] <=d){\n count++;\n }\n }\n System.out.println(count);\n \n }\n \n}", "import java.util.*;", "util.*", "java", "public class Main {\n\n \n public static void main(String[] args) {\n Scanner x= new Scanner(System.in);\n int n = x.nextInt();\n int d = x.nextInt();\n double[]nums = new double[n];\n for(int i = 0 ; i < n;i++){\n double a = x.nextDouble();\n double b = x.nextDouble();\n a = Math.pow(a,2);\n b= Math.pow(b,2);\n double c = Math.sqrt(a+b);\n nums[i] = c;\n }\n int count = 0;\n for(int i = 0 ; i<n;i++){\n if(nums[i] <=d){\n count++;\n }\n }\n System.out.println(count);\n \n }\n \n}", "Main", "public static void main(String[] args) {\n Scanner x= new Scanner(System.in);\n int n = x.nextInt();\n int d = x.nextInt();\n double[]nums = new double[n];\n for(int i = 0 ; i < n;i++){\n double a = x.nextDouble();\n double b = x.nextDouble();\n a = Math.pow(a,2);\n b= Math.pow(b,2);\n double c = Math.sqrt(a+b);\n nums[i] = c;\n }\n int count = 0;\n for(int i = 0 ; i<n;i++){\n if(nums[i] <=d){\n count++;\n }\n }\n System.out.println(count);\n \n }", "main", "{\n Scanner x= new Scanner(System.in);\n int n = x.nextInt();\n int d = x.nextInt();\n double[]nums = new double[n];\n for(int i = 0 ; i < n;i++){\n double a = x.nextDouble();\n double b = x.nextDouble();\n a = Math.pow(a,2);\n b= Math.pow(b,2);\n double c = Math.sqrt(a+b);\n nums[i] = c;\n }\n int count = 0;\n for(int i = 0 ; i<n;i++){\n if(nums[i] <=d){\n count++;\n }\n }\n System.out.println(count);\n \n }", "Scanner x= new Scanner(System.in);", "x", "new Scanner(System.in)", "int n = x.nextInt();", "n", "x.nextInt()", "x.nextInt", "x", "int d = x.nextInt();", "d", "x.nextInt()", "x.nextInt", "x", "double[]nums = new double[n];", "nums", "new double[n]", "n", "for(int i = 0 ; i < n;i++){\n double a = x.nextDouble();\n double b = x.nextDouble();\n a = Math.pow(a,2);\n b= Math.pow(b,2);\n double c = Math.sqrt(a+b);\n nums[i] = c;\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n double a = x.nextDouble();\n double b = x.nextDouble();\n a = Math.pow(a,2);\n b= Math.pow(b,2);\n double c = Math.sqrt(a+b);\n nums[i] = c;\n }", "{\n double a = x.nextDouble();\n double b = x.nextDouble();\n a = Math.pow(a,2);\n b= Math.pow(b,2);\n double c = Math.sqrt(a+b);\n nums[i] = c;\n }", "double a = x.nextDouble();", "a", "x.nextDouble()", "x.nextDouble", "x", "double b = x.nextDouble();", "b", "x.nextDouble()", "x.nextDouble", "x", "a = Math.pow(a,2)", "a", "Math.pow(a,2)", "Math.pow", "Math", "a", "2", "b= Math.pow(b,2)", "b", "Math.pow(b,2)", "Math.pow", "Math", "b", "2", "double c = Math.sqrt(a+b);", "c", "Math.sqrt(a+b)", "Math.sqrt", "Math", "a+b", "a", "b", "nums[i] = c", "nums[i]", "nums", "i", "c", "int count = 0;", "count", "0", "for(int i = 0 ; i<n;i++){\n if(nums[i] <=d){\n count++;\n }\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n if(nums[i] <=d){\n count++;\n }\n }", "{\n if(nums[i] <=d){\n count++;\n }\n }", "if(nums[i] <=d){\n count++;\n }", "nums[i] <=d", "nums[i]", "nums", "i", "d", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public class Main {\n\n \n public static void main(String[] args) {\n Scanner x= new Scanner(System.in);\n int n = x.nextInt();\n int d = x.nextInt();\n double[]nums = new double[n];\n for(int i = 0 ; i < n;i++){\n double a = x.nextDouble();\n double b = x.nextDouble();\n a = Math.pow(a,2);\n b= Math.pow(b,2);\n double c = Math.sqrt(a+b);\n nums[i] = c;\n }\n int count = 0;\n for(int i = 0 ; i<n;i++){\n if(nums[i] <=d){\n count++;\n }\n }\n System.out.println(count);\n \n }\n \n}", "public class Main {\n\n \n public static void main(String[] args) {\n Scanner x= new Scanner(System.in);\n int n = x.nextInt();\n int d = x.nextInt();\n double[]nums = new double[n];\n for(int i = 0 ; i < n;i++){\n double a = x.nextDouble();\n double b = x.nextDouble();\n a = Math.pow(a,2);\n b= Math.pow(b,2);\n double c = Math.sqrt(a+b);\n nums[i] = c;\n }\n int count = 0;\n for(int i = 0 ; i<n;i++){\n if(nums[i] <=d){\n count++;\n }\n }\n System.out.println(count);\n \n }\n \n}", "Main" ]
import java.util.*; public class Main { public static void main(String[] args) { Scanner x= new Scanner(System.in); int n = x.nextInt(); int d = x.nextInt(); double[]nums = new double[n]; for(int i = 0 ; i < n;i++){ double a = x.nextDouble(); double b = x.nextDouble(); a = Math.pow(a,2); b= Math.pow(b,2); double c = Math.sqrt(a+b); nums[i] = c; } int count = 0; for(int i = 0 ; i<n;i++){ if(nums[i] <=d){ count++; } } System.out.println(count); } }
[ 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, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 18, 13, 13, 17, 4, 18, 13, 0, 18, 18, 13, 13, 17, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 4, 13, 18, 18, 13, 13, 17, 18, 18, 13, 13, 17, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 29, 8, 2, 13, 4, 18, 13, 2, 2, 13, 13, 2, 13, 13, 17, 17, 23, 13, 23, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 128, 8 ], [ 128, 9 ], [ 9, 10 ], [ 9, 11 ], [ 11, 12 ], [ 12, 13 ], [ 12, 14 ], [ 11, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 11, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 11, 25 ], [ 25, 26 ], [ 25, 27 ], [ 11, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 45, 46 ], [ 45, 47 ], [ 44, 48 ], [ 43, 49 ], [ 49, 50 ], [ 50, 51 ], [ 42, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 52, 58 ], [ 58, 59 ], [ 59, 60 ], [ 11, 61 ], [ 61, 62 ], [ 61, 63 ], [ 11, 64 ], [ 64, 65 ], [ 65, 66 ], [ 66, 67 ], [ 66, 68 ], [ 64, 69 ], [ 69, 70 ], [ 69, 71 ], [ 64, 72 ], [ 72, 73 ], [ 73, 74 ], [ 64, 75 ], [ 76, 76 ], [ 76, 77 ], [ 77, 78 ], [ 78, 79 ], [ 78, 80 ], [ 80, 81 ], [ 81, 82 ], [ 81, 83 ], [ 80, 84 ], [ 78, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 85, 89 ], [ 78, 90 ], [ 77, 91 ], [ 91, 92 ], [ 92, 93 ], [ 11, 94 ], [ 94, 95 ], [ 95, 96 ], [ 96, 97 ], [ 96, 98 ], [ 94, 99 ], [ 9, 100 ], [ 100, 101 ], [ 128, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 109, 112 ], [ 112, 113 ], [ 113, 114 ], [ 113, 115 ], [ 112, 116 ], [ 116, 117 ], [ 116, 118 ], [ 106, 119 ], [ 106, 120 ], [ 102, 121 ], [ 121, 122 ], [ 102, 123 ], [ 123, 124 ], [ 102, 125 ], [ 125, 126 ], [ 0, 127 ], [ 127, 128 ], [ 127, 129 ] ]
[ "import java.util.Scanner;\nimport java.lang.Math;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int dotNum = sc.nextInt();\n int distance = sc.nextInt();\n int[][] point = new int[dotNum][2]; \n for(int i = 0; i < dotNum; i++){\n point[i][0] = sc.nextInt();\n point[i][1] = sc.nextInt();\n }\n\n int count = 0;\n for(int i = 0; i < dotNum; i++){\n if(isLessThanDistance(point[i][0], point[i][1],distance)){\n count++;\n }\n }\n System.out.println(count);\n }\n\n public static boolean isLessThanDistance(int x, int y,int distance){\n return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "import java.lang.Math;", "Math", "java.lang", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int dotNum = sc.nextInt();\n int distance = sc.nextInt();\n int[][] point = new int[dotNum][2]; \n for(int i = 0; i < dotNum; i++){\n point[i][0] = sc.nextInt();\n point[i][1] = sc.nextInt();\n }\n\n int count = 0;\n for(int i = 0; i < dotNum; i++){\n if(isLessThanDistance(point[i][0], point[i][1],distance)){\n count++;\n }\n }\n System.out.println(count);\n }\n\n public static boolean isLessThanDistance(int x, int y,int distance){\n return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;\n }\n}", "Main", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int dotNum = sc.nextInt();\n int distance = sc.nextInt();\n int[][] point = new int[dotNum][2]; \n for(int i = 0; i < dotNum; i++){\n point[i][0] = sc.nextInt();\n point[i][1] = sc.nextInt();\n }\n\n int count = 0;\n for(int i = 0; i < dotNum; i++){\n if(isLessThanDistance(point[i][0], point[i][1],distance)){\n count++;\n }\n }\n System.out.println(count);\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n\n int dotNum = sc.nextInt();\n int distance = sc.nextInt();\n int[][] point = new int[dotNum][2]; \n for(int i = 0; i < dotNum; i++){\n point[i][0] = sc.nextInt();\n point[i][1] = sc.nextInt();\n }\n\n int count = 0;\n for(int i = 0; i < dotNum; i++){\n if(isLessThanDistance(point[i][0], point[i][1],distance)){\n count++;\n }\n }\n System.out.println(count);\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int dotNum = sc.nextInt();", "dotNum", "sc.nextInt()", "sc.nextInt", "sc", "int distance = sc.nextInt();", "distance", "sc.nextInt()", "sc.nextInt", "sc", "int[][] point = new int[dotNum][2];", "point", "new int[dotNum][2]", "dotNum", "2", "for(int i = 0; i < dotNum; i++){\n point[i][0] = sc.nextInt();\n point[i][1] = sc.nextInt();\n }", "int i = 0;", "int i = 0;", "i", "0", "i < dotNum", "i", "dotNum", "i++", "i++", "i", "{\n point[i][0] = sc.nextInt();\n point[i][1] = sc.nextInt();\n }", "{\n point[i][0] = sc.nextInt();\n point[i][1] = sc.nextInt();\n }", "point[i][0] = sc.nextInt()", "point[i][0]", "point[i]", "point", "i", "0", "sc.nextInt()", "sc.nextInt", "sc", "point[i][1] = sc.nextInt()", "point[i][1]", "point[i]", "point", "i", "1", "sc.nextInt()", "sc.nextInt", "sc", "int count = 0;", "count", "0", "for(int i = 0; i < dotNum; i++){\n if(isLessThanDistance(point[i][0], point[i][1],distance)){\n count++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < dotNum", "i", "dotNum", "i++", "i++", "i", "{\n if(isLessThanDistance(point[i][0], point[i][1],distance)){\n count++;\n }\n }", "{\n if(isLessThanDistance(point[i][0], point[i][1],distance)){\n count++;\n }\n }", "if(isLessThanDistance(point[i][0], point[i][1],distance)){\n count++;\n }", "isLessThanDistance(point[i][0], point[i][1],distance)", "isLessThanDistance", "point[i][0]", "point[i]", "point", "i", "0", "point[i][1]", "point[i]", "point", "i", "1", "distance", "{\n count++;\n }", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String[] args", "args", "public static boolean isLessThanDistance(int x, int y,int distance){\n return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;\n }", "isLessThanDistance", "{\n return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;\n }", "return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;", "distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false", "distance >= Math.sqrt((double)x*x + (double)y*y)", "distance", "Math.sqrt((double)x*x + (double)y*y)", "Math.sqrt", "Math", "(double)x*x + (double)y*y", "(double)x*x", "(double)x", "x", "(double)y*y", "(double)y", "y", "true", "false", "int x", "x", "int y", "y", "int distance", "distance", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int dotNum = sc.nextInt();\n int distance = sc.nextInt();\n int[][] point = new int[dotNum][2]; \n for(int i = 0; i < dotNum; i++){\n point[i][0] = sc.nextInt();\n point[i][1] = sc.nextInt();\n }\n\n int count = 0;\n for(int i = 0; i < dotNum; i++){\n if(isLessThanDistance(point[i][0], point[i][1],distance)){\n count++;\n }\n }\n System.out.println(count);\n }\n\n public static boolean isLessThanDistance(int x, int y,int distance){\n return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;\n }\n}", "public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n\n int dotNum = sc.nextInt();\n int distance = sc.nextInt();\n int[][] point = new int[dotNum][2]; \n for(int i = 0; i < dotNum; i++){\n point[i][0] = sc.nextInt();\n point[i][1] = sc.nextInt();\n }\n\n int count = 0;\n for(int i = 0; i < dotNum; i++){\n if(isLessThanDistance(point[i][0], point[i][1],distance)){\n count++;\n }\n }\n System.out.println(count);\n }\n\n public static boolean isLessThanDistance(int x, int y,int distance){\n return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false;\n }\n}", "Main" ]
import java.util.Scanner; import java.lang.Math; public class Main{ public static void main(String[] args){ Scanner sc = new Scanner(System.in); int dotNum = sc.nextInt(); int distance = sc.nextInt(); int[][] point = new int[dotNum][2]; for(int i = 0; i < dotNum; i++){ point[i][0] = sc.nextInt(); point[i][1] = sc.nextInt(); } int count = 0; for(int i = 0; i < dotNum; i++){ if(isLessThanDistance(point[i][0], point[i][1],distance)){ count++; } } System.out.println(count); } public static boolean isLessThanDistance(int x, int y,int distance){ return distance >= Math.sqrt((double)x*x + (double)y*y) ? true : false; } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 2, 17, 17, 41, 13, 20, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 14, 2, 4, 18, 13, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 41, 13, 20, 42, 2, 2, 13, 17, 17, 30, 4, 18, 13, 17, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 0, 13, 17, 30, 30, 42, 2, 2, 13, 13, 17, 30, 4, 18, 13, 13, 0, 13, 13, 14, 2, 13, 17, 4, 18, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 17, 42, 2, 13, 17, 30, 0, 13, 2, 13, 17, 0, 13, 17, 29, 13, 23, 13, 12, 13, 30, 41, 13, 4, 18, 13, 13, 41, 13, 20, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 17, 9, 41, 13, 13, 41, 13, 2, 13, 13, 4, 18, 13, 13, 14, 2, 13, 13, 30, 9, 4, 18, 13, 2, 13, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 14, 2, 13, 17, 29, 17, 0, 13, 4, 13, 13, 2, 13, 17, 14, 2, 2, 13, 17, 17, 29, 2, 2, 13, 13, 13, 29, 2, 2, 2, 2, 13, 13, 13, 13, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 20, 2, 13, 17, 41, 13, 4, 18, 13, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 30, 11, 1, 41, 13, 2, 13, 13, 2, 13, 13, 1, 0, 13, 13, 30, 30, 0, 18, 13, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 18, 13, 13, 17, 4, 18, 13, 13, 29, 13, 12, 13, 30, 14, 2, 13, 17, 29, 13, 29, 4, 13, 13, 2, 13, 13, 23, 13, 23, 13, 6, 13, 41, 13, 41, 13, 12, 13, 30, 0, 18, 36, 13, 13, 0, 18, 36, 13, 13, 23, 13, 23, 13, 6, 13, 12, 13, 30, 29, 4, 18, 4, 18, 13, 18, 13, 13, 4, 18, 13, 18, 13, 13, 23, 13, 23, 13, 13, 6, 13, 41, 13, 41, 13, 41, 13, 20, 6, 13, 41, 13, 2, 17, 17, 41, 13, 41, 13, 41, 13, 41, 13, 12, 13, 30, 0, 13, 20, 0, 13, 20, 13, 0, 13, 0, 13, 17, 12, 13, 30, 0, 13, 20, 0, 13, 20, 13, 0, 13, 0, 13, 17, 23, 13, 12, 13, 30, 41, 13, 20, 17, 41, 13, 17, 41, 13, 42, 2, 0, 13, 4, 13, 40, 17, 30, 14, 2, 13, 17, 3, 0, 18, 13, 40, 13, 13, 29, 20, 12, 13, 30, 41, 13, 17, 41, 13, 4, 13, 42, 2, 13, 17, 0, 13, 4, 13, 41, 13, 2, 13, 17, 14, 13, 0, 13, 4, 13, 42, 2, 2, 0, 13, 4, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 13, 17, 13, 17, 14, 13, 29, 40, 13, 29, 13, 12, 13, 30, 41, 13, 17, 41, 13, 4, 13, 42, 2, 13, 17, 0, 13, 4, 13, 41, 13, 2, 13, 17, 14, 13, 0, 13, 4, 13, 42, 2, 2, 0, 13, 4, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 13, 17, 13, 17, 14, 13, 29, 40, 13, 29, 13, 12, 13, 30, 41, 13, 17, 41, 13, 17, 41, 13, 4, 13, 42, 2, 13, 17, 0, 13, 4, 13, 41, 13, 2, 13, 17, 14, 13, 0, 13, 4, 13, 42, 2, 2, 0, 13, 4, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 2, 13, 17, 13, 17, 14, 2, 13, 17, 30, 42, 2, 2, 0, 13, 4, 13, 17, 2, 13, 17, 30, 0, 13, 2, 2, 13, 17, 0, 13, 17, 14, 13, 29, 40, 13, 29, 13, 12, 13, 30, 0, 13, 4, 18, 13, 13, 0, 13, 17, 13, 14, 2, 13, 40, 17, 0, 18, 13, 17, 40, 17, 12, 13, 30, 14, 2, 13, 13, 4, 13, 29, 18, 13, 40, 13, 12, 13, 30, 14, 2, 13, 17, 29, 4, 18, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 778, 11 ], [ 778, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 14, 16 ], [ 778, 17 ], [ 17, 18 ], [ 17, 19 ], [ 778, 20 ], [ 20, 21 ], [ 20, 22 ], [ 22, 23 ], [ 23, 24 ], [ 23, 25 ], [ 22, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 22, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 34, 35 ], [ 22, 36 ], [ 36, 37 ], [ 36, 38 ], [ 22, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 62, 63 ], [ 63, 64 ], [ 64, 65 ], [ 65, 66 ], [ 64, 67 ], [ 67, 68 ], [ 68, 69 ], [ 69, 70 ], [ 68, 71 ], [ 68, 72 ], [ 67, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 73, 77 ], [ 63, 78 ], [ 62, 79 ], [ 79, 80 ], [ 22, 81 ], [ 81, 82 ], [ 82, 83 ], [ 83, 84 ], [ 83, 85 ], [ 81, 86 ], [ 20, 87 ], [ 87, 88 ], [ 778, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 95, 96 ], [ 94, 97 ], [ 91, 98 ], [ 98, 99 ], [ 98, 100 ], [ 91, 101 ], [ 101, 102 ], [ 102, 103 ], [ 103, 104 ], [ 103, 105 ], [ 102, 106 ], [ 101, 107 ], [ 107, 108 ], [ 108, 109 ], [ 109, 110 ], [ 108, 111 ], [ 107, 112 ], [ 112, 113 ], [ 112, 114 ], [ 91, 115 ], [ 115, 116 ], [ 116, 117 ], [ 117, 118 ], [ 117, 119 ], [ 115, 120 ], [ 120, 121 ], [ 120, 122 ], [ 115, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 115, 127 ], [ 128, 128 ], [ 128, 129 ], [ 129, 130 ], [ 130, 131 ], [ 131, 132 ], [ 131, 133 ], [ 130, 134 ], [ 129, 135 ], [ 135, 136 ], [ 136, 137 ], [ 137, 138 ], [ 136, 139 ], [ 135, 140 ], [ 140, 141 ], [ 140, 142 ], [ 91, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 147, 150 ], [ 91, 151 ], [ 151, 152 ], [ 89, 153 ], [ 153, 154 ], [ 778, 155 ], [ 155, 156 ], [ 155, 157 ], [ 157, 158 ], [ 158, 159 ], [ 158, 160 ], [ 157, 161 ], [ 161, 162 ], [ 162, 163 ], [ 162, 164 ], [ 161, 165 ], [ 165, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 168, 170 ], [ 165, 171 ], [ 171, 172 ], [ 171, 173 ], [ 157, 174 ], [ 174, 175 ], [ 155, 176 ], [ 176, 177 ], [ 778, 178 ], [ 178, 179 ], [ 178, 180 ], [ 180, 181 ], [ 181, 182 ], [ 181, 183 ], [ 183, 184 ], [ 184, 185 ], [ 183, 186 ], [ 180, 187 ], [ 187, 188 ], [ 187, 189 ], [ 180, 190 ], [ 190, 191 ], [ 191, 192 ], [ 192, 193 ], [ 192, 194 ], [ 190, 195 ], [ 195, 196 ], [ 195, 197 ], [ 190, 198 ], [ 198, 199 ], [ 199, 200 ], [ 190, 201 ], [ 202, 202 ], [ 202, 203 ], [ 203, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 204, 208 ], [ 203, 209 ], [ 202, 210 ], [ 210, 211 ], [ 210, 212 ], [ 202, 213 ], [ 213, 214 ], [ 213, 215 ], [ 215, 216 ], [ 215, 217 ], [ 202, 218 ], [ 218, 219 ], [ 219, 220 ], [ 218, 221 ], [ 202, 222 ], [ 222, 223 ], [ 223, 224 ], [ 223, 225 ], [ 222, 226 ], [ 226, 227 ], [ 202, 228 ], [ 228, 229 ], [ 229, 230 ], [ 228, 231 ], [ 231, 232 ], [ 231, 233 ], [ 180, 234 ], [ 234, 235 ], [ 178, 236 ], [ 236, 237 ], [ 778, 238 ], [ 238, 239 ], [ 238, 240 ], [ 240, 241 ], [ 241, 242 ], [ 240, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 243, 247 ], [ 247, 248 ], [ 240, 249 ], [ 249, 250 ], [ 249, 251 ], [ 251, 252 ], [ 251, 253 ], [ 251, 254 ], [ 254, 255 ], [ 254, 256 ], [ 240, 257 ], [ 257, 258 ], [ 258, 259 ], [ 259, 260 ], [ 259, 261 ], [ 258, 262 ], [ 257, 263 ], [ 263, 264 ], [ 264, 265 ], [ 265, 266 ], [ 265, 267 ], [ 264, 268 ], [ 257, 269 ], [ 269, 270 ], [ 270, 271 ], [ 271, 272 ], [ 272, 273 ], [ 273, 274 ], [ 273, 275 ], [ 272, 276 ], [ 271, 277 ], [ 270, 278 ], [ 238, 279 ], [ 279, 280 ], [ 238, 281 ], [ 281, 282 ], [ 778, 283 ], [ 283, 284 ], [ 283, 285 ], [ 285, 286 ], [ 286, 287 ], [ 286, 288 ], [ 285, 289 ], [ 289, 290 ], [ 289, 291 ], [ 285, 292 ], [ 292, 293 ], [ 292, 294 ], [ 295, 296 ], [ 295, 297 ], [ 285, 298 ], [ 298, 299 ], [ 298, 300 ], [ 300, 301 ], [ 301, 302 ], [ 300, 303 ], [ 285, 304 ], [ 304, 305 ], [ 305, 306 ], [ 306, 307 ], [ 306, 308 ], [ 304, 309 ], [ 309, 310 ], [ 309, 311 ], [ 304, 312 ], [ 312, 313 ], [ 313, 314 ], [ 304, 315 ], [ 316, 316 ], [ 316, 317 ], [ 317, 318 ], [ 318, 319 ], [ 319, 320 ], [ 319, 321 ], [ 318, 322 ], [ 317, 323 ], [ 323, 324 ], [ 324, 325 ], [ 325, 326 ], [ 326, 327 ], [ 326, 328 ], [ 328, 329 ], [ 328, 330 ], [ 324, 331 ], [ 331, 332 ], [ 331, 333 ], [ 324, 334 ], [ 334, 335 ], [ 335, 336 ], [ 335, 337 ], [ 324, 338 ], [ 339, 339 ], [ 339, 340 ], [ 340, 341 ], [ 341, 342 ], [ 341, 343 ], [ 340, 344 ], [ 285, 345 ], [ 345, 346 ], [ 346, 347 ], [ 347, 348 ], [ 347, 349 ], [ 345, 350 ], [ 350, 351 ], [ 350, 352 ], [ 345, 353 ], [ 353, 354 ], [ 354, 355 ], [ 345, 356 ], [ 357, 357 ], [ 357, 358 ], [ 358, 359 ], [ 359, 360 ], [ 360, 361 ], [ 360, 362 ], [ 359, 363 ], [ 358, 364 ], [ 364, 365 ], [ 365, 366 ], [ 364, 367 ], [ 285, 368 ], [ 368, 369 ], [ 778, 370 ], [ 370, 371 ], [ 370, 372 ], [ 372, 373 ], [ 373, 374 ], [ 374, 375 ], [ 374, 376 ], [ 373, 377 ], [ 377, 378 ], [ 372, 379 ], [ 379, 380 ], [ 380, 381 ], [ 380, 382 ], [ 380, 383 ], [ 383, 384 ], [ 383, 385 ], [ 370, 386 ], [ 386, 387 ], [ 370, 388 ], [ 388, 389 ], [ 778, 390 ], [ 390, 391 ], [ 390, 392 ], [ 392, 393 ], [ 390, 394 ], [ 394, 395 ], [ 390, 396 ], [ 396, 397 ], [ 396, 398 ], [ 398, 399 ], [ 399, 400 ], [ 400, 401 ], [ 400, 402 ], [ 399, 403 ], [ 398, 404 ], [ 404, 405 ], [ 405, 406 ], [ 405, 407 ], [ 404, 408 ], [ 396, 409 ], [ 409, 410 ], [ 396, 411 ], [ 411, 412 ], [ 778, 413 ], [ 413, 414 ], [ 413, 415 ], [ 415, 416 ], [ 415, 417 ], [ 417, 418 ], [ 418, 419 ], [ 419, 420 ], [ 420, 421 ], [ 421, 422 ], [ 422, 423 ], [ 421, 424 ], [ 424, 425 ], [ 424, 426 ], [ 419, 427 ], [ 427, 428 ], [ 428, 429 ], [ 427, 430 ], [ 430, 431 ], [ 430, 432 ], [ 415, 433 ], [ 433, 434 ], [ 415, 435 ], [ 435, 436 ], [ 413, 437 ], [ 778, 438 ], [ 438, 439 ], [ 438, 440 ], [ 440, 441 ], [ 438, 442 ], [ 442, 443 ], [ 438, 444 ], [ 444, 445 ], [ 444, 446 ], [ 778, 447 ], [ 447, 448 ], [ 447, 449 ], [ 449, 450 ], [ 449, 451 ], [ 451, 452 ], [ 451, 453 ], [ 447, 454 ], [ 454, 455 ], [ 447, 456 ], [ 456, 457 ], [ 447, 458 ], [ 458, 459 ], [ 447, 460 ], [ 460, 461 ], [ 447, 462 ], [ 462, 463 ], [ 462, 464 ], [ 464, 465 ], [ 465, 466 ], [ 465, 467 ], [ 464, 468 ], [ 468, 469 ], [ 468, 470 ], [ 464, 472 ], [ 472, 473 ], [ 472, 474 ], [ 474, 475 ], [ 474, 476 ], [ 447, 477 ], [ 477, 478 ], [ 477, 479 ], [ 479, 480 ], [ 480, 481 ], [ 480, 482 ], [ 479, 483 ], [ 483, 484 ], [ 483, 485 ], [ 479, 487 ], [ 487, 488 ], [ 487, 489 ], [ 489, 490 ], [ 489, 491 ], [ 477, 492 ], [ 492, 493 ], [ 447, 494 ], [ 494, 495 ], [ 494, 496 ], [ 496, 497 ], [ 497, 498 ], [ 497, 499 ], [ 496, 501 ], [ 501, 502 ], [ 501, 503 ], [ 496, 504 ], [ 504, 505 ], [ 496, 506 ], [ 506, 507 ], [ 507, 508 ], [ 508, 509 ], [ 508, 510 ], [ 510, 511 ], [ 507, 512 ], [ 512, 513 ], [ 506, 514 ], [ 514, 515 ], [ 515, 516 ], [ 516, 517 ], [ 516, 518 ], [ 515, 519 ], [ 514, 520 ], [ 520, 521 ], [ 521, 522 ], [ 521, 523 ], [ 523, 524 ], [ 520, 525 ], [ 496, 526 ], [ 526, 527 ], [ 447, 528 ], [ 528, 529 ], [ 528, 530 ], [ 530, 531 ], [ 531, 532 ], [ 531, 533 ], [ 530, 534 ], [ 534, 535 ], [ 534, 536 ], [ 536, 537 ], [ 530, 538 ], [ 538, 539 ], [ 539, 540 ], [ 539, 541 ], [ 538, 542 ], [ 542, 543 ], [ 542, 544 ], [ 544, 545 ], [ 530, 546 ], [ 546, 547 ], [ 546, 548 ], [ 548, 549 ], [ 548, 550 ], [ 530, 551 ], [ 551, 552 ], [ 551, 553 ], [ 553, 554 ], [ 553, 555 ], [ 555, 556 ], [ 530, 557 ], [ 557, 558 ], [ 558, 559 ], [ 559, 560 ], [ 560, 561 ], [ 560, 562 ], [ 562, 563 ], [ 559, 564 ], [ 558, 565 ], [ 565, 566 ], [ 565, 567 ], [ 557, 568 ], [ 568, 569 ], [ 569, 570 ], [ 569, 571 ], [ 571, 572 ], [ 572, 573 ], [ 573, 574 ], [ 573, 575 ], [ 572, 576 ], [ 571, 577 ], [ 530, 578 ], [ 578, 579 ], [ 578, 580 ], [ 580, 581 ], [ 581, 582 ], [ 530, 583 ], [ 583, 584 ], [ 447, 585 ], [ 585, 586 ], [ 585, 587 ], [ 587, 588 ], [ 588, 589 ], [ 588, 590 ], [ 587, 591 ], [ 591, 592 ], [ 591, 593 ], [ 593, 594 ], [ 587, 595 ], [ 595, 596 ], [ 596, 597 ], [ 596, 598 ], [ 595, 599 ], [ 599, 600 ], [ 599, 601 ], [ 601, 602 ], [ 587, 603 ], [ 603, 604 ], [ 603, 605 ], [ 605, 606 ], [ 605, 607 ], [ 587, 608 ], [ 608, 609 ], [ 608, 610 ], [ 610, 611 ], [ 610, 612 ], [ 612, 613 ], [ 587, 614 ], [ 614, 615 ], [ 615, 616 ], [ 616, 617 ], [ 617, 618 ], [ 617, 619 ], [ 619, 620 ], [ 616, 621 ], [ 615, 622 ], [ 622, 623 ], [ 622, 624 ], [ 614, 625 ], [ 625, 626 ], [ 626, 627 ], [ 626, 628 ], [ 628, 629 ], [ 629, 630 ], [ 630, 631 ], [ 630, 632 ], [ 629, 633 ], [ 628, 634 ], [ 587, 635 ], [ 635, 636 ], [ 635, 637 ], [ 637, 638 ], [ 638, 639 ], [ 587, 640 ], [ 640, 641 ], [ 447, 642 ], [ 642, 643 ], [ 642, 644 ], [ 644, 645 ], [ 645, 646 ], [ 645, 647 ], [ 644, 648 ], [ 648, 649 ], [ 648, 650 ], [ 644, 651 ], [ 651, 652 ], [ 651, 653 ], [ 653, 654 ], [ 644, 655 ], [ 655, 656 ], [ 656, 657 ], [ 656, 658 ], [ 655, 659 ], [ 659, 660 ], [ 659, 661 ], [ 661, 662 ], [ 644, 663 ], [ 663, 664 ], [ 663, 665 ], [ 665, 666 ], [ 665, 667 ], [ 644, 668 ], [ 668, 669 ], [ 668, 670 ], [ 670, 671 ], [ 670, 672 ], [ 672, 673 ], [ 644, 674 ], [ 674, 675 ], [ 675, 676 ], [ 676, 677 ], [ 677, 678 ], [ 677, 679 ], [ 679, 680 ], [ 676, 681 ], [ 675, 682 ], [ 682, 683 ], [ 682, 684 ], [ 674, 685 ], [ 685, 686 ], [ 686, 687 ], [ 686, 688 ], [ 688, 689 ], [ 689, 690 ], [ 690, 691 ], [ 690, 692 ], [ 689, 693 ], [ 688, 694 ], [ 644, 695 ], [ 695, 696 ], [ 696, 697 ], [ 696, 698 ], [ 695, 699 ], [ 699, 700 ], [ 700, 701 ], [ 701, 702 ], [ 702, 703 ], [ 703, 704 ], [ 703, 705 ], [ 705, 706 ], [ 702, 707 ], [ 701, 708 ], [ 708, 709 ], [ 708, 710 ], [ 700, 711 ], [ 711, 712 ], [ 712, 713 ], [ 712, 714 ], [ 714, 715 ], [ 715, 716 ], [ 715, 717 ], [ 714, 718 ], [ 718, 719 ], [ 718, 720 ], [ 644, 721 ], [ 721, 722 ], [ 721, 723 ], [ 723, 724 ], [ 724, 725 ], [ 644, 726 ], [ 726, 727 ], [ 447, 728 ], [ 728, 729 ], [ 728, 730 ], [ 730, 731 ], [ 731, 732 ], [ 731, 733 ], [ 733, 734 ], [ 734, 735 ], [ 733, 736 ], [ 733, 737 ], [ 737, 738 ], [ 737, 739 ], [ 733, 740 ], [ 730, 741 ], [ 741, 742 ], [ 742, 743 ], [ 742, 744 ], [ 744, 745 ], [ 741, 746 ], [ 746, 747 ], [ 747, 748 ], [ 747, 749 ], [ 746, 750 ], [ 750, 751 ], [ 447, 752 ], [ 752, 753 ], [ 752, 754 ], [ 754, 755 ], [ 755, 756 ], [ 756, 757 ], [ 756, 758 ], [ 755, 759 ], [ 759, 760 ], [ 754, 761 ], [ 761, 762 ], [ 762, 763 ], [ 762, 764 ], [ 764, 765 ], [ 447, 766 ], [ 766, 767 ], [ 766, 768 ], [ 768, 769 ], [ 769, 770 ], [ 770, 771 ], [ 770, 772 ], [ 769, 773 ], [ 768, 774 ], [ 774, 775 ], [ 775, 776 ], [ 0, 777 ], [ 777, 778 ], [ 777, 779 ] ]
[ "import java.util.*;\nimport java.io.*;\nimport java.math.*;\npublic class Main{\n\tstatic long mod = (long)(1e9+7);\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static void main(String sp[])throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\t\n\t\tint n = sc.nextInt();\n\t\tlong k = sc.nextLong();\n\t\tint count = 0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tif(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=k)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\t\n\tpublic static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}\n\t\n\tpublic static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> factor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tfor(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}\n\t\n\tpublic static long power(long x, long y) \n\t{ \n\t\tlong temp; \n\t\tif( y == 0) \n\t\t\treturn 1l; \n\t\ttemp = power(x, y/2); \n\t\tif (y%2 == 0) \n\t\t\treturn (temp*temp)%mod; \n\t\telse\n\t\t\treturn ((x*temp)%mod*temp)%mod; \n\t} \n\t\n\tpublic static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}\n\t\n\tpublic static class pair{\n\t\tlong x;\n\t\tint y;\n\t\tpair(long x, int y){\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}\n\t}\n\t\n\tpublic static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\treturn Long.valueOf(o1.x).compareTo(Long.valueOf(o2.x));\n\t\t}\n\t}\n\t\n\t\n\t\n\tstatic class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}\n\t\n\n\tstatic int gcd(int a, int b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }\n\t\n\t\t\n\tstatic class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n\t\t\n\t\t\n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t} \n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "import java.math.*;", "math.*", "java", "public class Main{\n\tstatic long mod = (long)(1e9+7);\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static void main(String sp[])throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\t\n\t\tint n = sc.nextInt();\n\t\tlong k = sc.nextLong();\n\t\tint count = 0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tif(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=k)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\t\n\tpublic static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}\n\t\n\tpublic static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> factor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tfor(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}\n\t\n\tpublic static long power(long x, long y) \n\t{ \n\t\tlong temp; \n\t\tif( y == 0) \n\t\t\treturn 1l; \n\t\ttemp = power(x, y/2); \n\t\tif (y%2 == 0) \n\t\t\treturn (temp*temp)%mod; \n\t\telse\n\t\t\treturn ((x*temp)%mod*temp)%mod; \n\t} \n\t\n\tpublic static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}\n\t\n\tpublic static class pair{\n\t\tlong x;\n\t\tint y;\n\t\tpair(long x, int y){\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}\n\t}\n\t\n\tpublic static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\treturn Long.valueOf(o1.x).compareTo(Long.valueOf(o2.x));\n\t\t}\n\t}\n\t\n\t\n\t\n\tstatic class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}\n\t\n\n\tstatic int gcd(int a, int b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }\n\t\n\t\t\n\tstatic class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n\t\t\n\t\t\n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t} \n}", "Main", "static long mod = (long)(1e9+7);", "mod", "(long)(1e9+7)", "1e9", "7", "public static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));", "out", "new PrintWriter (new BufferedOutputStream(System.out))", "public static void main(String sp[])throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\t\n\t\tint n = sc.nextInt();\n\t\tlong k = sc.nextLong();\n\t\tint count = 0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tif(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=k)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\t\n\t\tint n = sc.nextInt();\n\t\tlong k = sc.nextLong();\n\t\tint count = 0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tif(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=k)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "long k = sc.nextLong();", "k", "sc.nextLong()", "sc.nextLong", "sc", "int count = 0;", "count", "0", "for(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tif(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=k)\n\t\t\t\tcount++;\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tif(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=k)\n\t\t\t\tcount++;\n\t\t}", "{\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tif(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=k)\n\t\t\t\tcount++;\n\t\t}", "long p = sc.nextLong();", "p", "sc.nextLong()", "sc.nextLong", "sc", "long q = sc.nextLong();", "q", "sc.nextLong()", "sc.nextLong", "sc", "if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=k)\n\t\t\t\tcount++;", "Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=k", "Math.sqrt(Math.pow(p,2)+Math.pow(q,2))", "Math.sqrt", "Math", "Math.pow(p,2)+Math.pow(q,2)", "Math.pow(p,2)", "Math.pow", "Math", "p", "2", "Math.pow(q,2)", "Math.pow", "Math", "q", "2", "k", "count++", "count", "System.out.println(count)", "System.out.println", "System.out", "System", "System.out", "count", "String sp[]", "sp", "public static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}", "primefactor", "{\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}", "int sqrt = (int)Math.sqrt(n);", "sqrt", "(int)Math.sqrt(n)", "Math.sqrt", "Math", "n", "ArrayList<Integer> al = new ArrayList<>();", "al", "new ArrayList<>()", "while(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}", "n%2==0", "n%2", "n", "2", "0", "{\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}", "al.add(2)", "al.add", "al", "2", "n/=2", "n", "2", "for(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}", "int i=3;", "int i=3;", "i", "3", "i<=sqrt", "i", "sqrt", "i+=2", "i+=2", "i", "2", "{\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}", "{\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}", "while(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}", "n%i==0", "n%i", "n", "i", "0", "{\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}", "al.add(i)", "al.add", "al", "i", "n/=i", "n", "i", "if(n>2)\n\t\t\tal.add(n);", "n>2", "n", "2", "al.add(n)", "al.add", "al", "n", "return al;", "al", "int n", "n", "public static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}", "sum", "{\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}", "long fg =0 ;", "fg", "0", "while(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}", "val!=0", "val", "0", "{\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}", "fg+=val%10", "fg", "val%10", "val", "10", "val/=10", "val", "10", "return fg;", "fg", "long val", "val", "public static ArrayList<Integer> factor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tfor(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}", "factor", "{\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tfor(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}", "int sqrt = (int)Math.sqrt(n);", "sqrt", "(int)Math.sqrt(n)", "Math.sqrt", "Math", "n", "ArrayList<Integer> al = new ArrayList<>();", "al", "new ArrayList<>()", "for(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<=sqrt", "i", "sqrt", "i++", "i++", "i", "{\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}", "{\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}", "if(n%i!=0)\n\t\t\t\tcontinue;", "n%i!=0", "n%i", "n", "i", "0", "continue;", "int first = i;", "first", "i", "int second = n/i;", "second", "n/i", "n", "i", "al.add(i)", "al.add", "al", "i", "if(first==second){\n\t\t\t\tcontinue;\n\t\t\t}", "first==second", "first", "second", "{\n\t\t\t\tcontinue;\n\t\t\t}", "continue;", "al.add(n/i)", "al.add", "al", "n/i", "n", "i", "return al;", "al", "int n", "n", "public static long power(long x, long y) \n\t{ \n\t\tlong temp; \n\t\tif( y == 0) \n\t\t\treturn 1l; \n\t\ttemp = power(x, y/2); \n\t\tif (y%2 == 0) \n\t\t\treturn (temp*temp)%mod; \n\t\telse\n\t\t\treturn ((x*temp)%mod*temp)%mod; \n\t}", "power", "{ \n\t\tlong temp; \n\t\tif( y == 0) \n\t\t\treturn 1l; \n\t\ttemp = power(x, y/2); \n\t\tif (y%2 == 0) \n\t\t\treturn (temp*temp)%mod; \n\t\telse\n\t\t\treturn ((x*temp)%mod*temp)%mod; \n\t}", "long temp;", "temp", "if( y == 0) \n\t\t\treturn 1l;", "y == 0", "y", "0", "return 1l;", "1l", "temp = power(x, y/2)", "temp", "power(x, y/2)", "power", "x", "y/2", "y", "2", "if (y%2 == 0) \n\t\t\treturn (temp*temp)%mod; \n\t\telse\n\t\t\treturn ((x*temp)%mod*temp)%mod;", "y%2 == 0", "y%2", "y", "2", "0", "return (temp*temp)%mod;", "(temp*temp)%mod", "(temp*temp)", "temp", "temp", "mod", "return ((x*temp)%mod*temp)%mod;", "((x*temp)%mod*temp)%mod", "((x*temp)%mod*temp)", "(x*temp)%mod", "(x*temp)", "x", "temp", "mod", "temp", "mod", "long x", "x", "long y", "y", "public static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}", "comp", "{\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}", "ArrayList<Integer> al = new ArrayList<>();", "al", "new ArrayList<>()", "int n = (int)2e5;", "n", "(int)2e5", "boolean arr[] = new boolean[n+1];", "arr", "new boolean[n+1]", "n+1", "n", "1", "int sqrt = (int)Math.sqrt(n);", "sqrt", "(int)Math.sqrt(n)", "Math.sqrt", "Math", "n", "for(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "int i=2;", "int i=2;", "i", "2", "i<=sqrt", "i", "sqrt", "i++", "i++", "i", "{\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "{\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}", "if(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}", "arr[i]==false", "arr[i]", "arr", "i", "false", "{\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}", "for(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}", "int j=i*i;", "int j=i*i;", "j", "i*i", "i", "i", "j<=n", "j", "n", "j+=i", "j+=i", "j", "i", "{\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}", "{\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}", "arr[j]=true", "arr[j]", "arr", "j", "true", "for(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}", "int i=2;", "int i=2;", "i", "2", "i<=n", "i", "n", "i++", "i++", "i", "{\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}", "{\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}", "if(arr[i]==false)\n\t\t\t\t\tal.add(i);", "arr[i]==false", "arr[i]", "arr", "i", "false", "al.add(i)", "al.add", "al", "i", "return al;", "al", "static int gcd(int a, int b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }", "gcd", "{ \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }", "if (b == 0) \n return a;", "b == 0", "b", "0", "return a;", "a", "return gcd(b, a % b);", "gcd(b, a % b)", "gcd", "b", "a % b", "a", "b", "int a", "a", "int b", "b", "public static class pair{\n\t\tlong x;\n\t\tint y;\n\t\tpair(long x, int y){\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}\n\t}", "pair", "long x;", "x", "int y;", "y", "pair(long x, int y){\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}", "pair", "{\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}", "this.x=x", "this.x", "this", "this.x", "x", "this.y=y", "this.y", "this", "this.y", "y", "long x", "x", "int y", "y", "public static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\treturn Long.valueOf(o1.x).compareTo(Long.valueOf(o2.x));\n\t\t}\n\t}", "comp", "public int compare(pair o1, pair o2){\n\t\t\treturn Long.valueOf(o1.x).compareTo(Long.valueOf(o2.x));\n\t\t}", "compare", "{\n\t\t\treturn Long.valueOf(o1.x).compareTo(Long.valueOf(o2.x));\n\t\t}", "return Long.valueOf(o1.x).compareTo(Long.valueOf(o2.x));", "Long.valueOf(o1.x).compareTo(Long.valueOf(o2.x))", "Long.valueOf(o1.x).compareTo", "Long.valueOf(o1.x)", "Long.valueOf", "Long", "o1.x", "o1", "o1.x", "Long.valueOf(o2.x)", "Long.valueOf", "Long", "o2.x", "o2", "o2.x", "pair o1", "o1", "pair o2", "o2", "Comparator", "static class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}", "Node", "int node;", "node", "int d;", "d", "ArrayList<Integer> al = new ArrayList<>();", "al", "new ArrayList<>()", "static class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n\t\t\n\t\t\n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t}", "FastReader", "final private int BUFFER_SIZE = 1 << 16;", "BUFFER_SIZE", "1 << 16", "1", "16", "private DataInputStream din;", "din", "private byte[] buffer;", "buffer", "private int bufferPointer", "bufferPointer", "bytesRead;", "bytesRead", "public FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t}", "FastReader", "{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t}", "din = new DataInputStream(System.in)", "din", "new DataInputStream(System.in)", "buffer = new byte[BUFFER_SIZE]", "buffer", "new byte[BUFFER_SIZE]", "BUFFER_SIZE", "bufferPointer = bytesRead = 0", "bufferPointer", "bytesRead = 0", "bytesRead", "0", "public FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t}", "FastReader", "{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t}", "din = new DataInputStream(new FileInputStream(file_name))", "din", "new DataInputStream(new FileInputStream(file_name))", "buffer = new byte[BUFFER_SIZE]", "buffer", "new byte[BUFFER_SIZE]", "BUFFER_SIZE", "bufferPointer = bytesRead = 0", "bufferPointer", "bytesRead = 0", "bytesRead", "0", "String file_name", "file_name", "public String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t}", "readLine", "{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t}", "byte[] buf = new byte[64];", "buf", "new byte[64]", "64", "int cnt = 0", "cnt", "0", "c;", "c", "while ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t}", "(c = read()) != -1", "(c = read())", "c", "read()", "read", "-1", "1", "{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t}", "if (c == '\\n') \n\t\t\t\t\tbreak;", "c == '\\n'", "c", "'\\n'", "break;", "buf[cnt++] = (byte) c", "buf[cnt++]", "buf", "cnt++", "cnt", "(byte) c", "return new String(buf, 0, cnt);", "new String(buf, 0, cnt)", "public int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}", "nextInt", "{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}", "int ret = 0;", "ret", "0", "byte c = read();", "c", "read()", "read", "while (c <= ' ') \n\t\t\t\tc = read();", "c <= ' '", "c", "' '", "c = read()", "c", "read()", "read", "boolean neg = (c == '-');", "neg", "(c == '-')", "c", "'-'", "if (neg) \n\t\t\t\tc = read();", "neg", "c = read()", "c", "read()", "read", "do\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9');", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t}", "ret = ret * 10 + c - '0'", "ret", "ret * 10 + c - '0'", "ret * 10 + c", "ret * 10", "ret", "10", "c", "'0'", "if (neg) \n\t\t\t\treturn -ret;", "neg", "return -ret;", "-ret", "ret", "return ret;", "ret", "public long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}", "nextLong", "{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}", "long ret = 0;", "ret", "0", "byte c = read();", "c", "read()", "read", "while (c <= ' ') \n\t\t\t\tc = read();", "c <= ' '", "c", "' '", "c = read()", "c", "read()", "read", "boolean neg = (c == '-');", "neg", "(c == '-')", "c", "'-'", "if (neg) \n\t\t\t\tc = read();", "neg", "c = read()", "c", "read()", "read", "do { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9');", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t}", "ret = ret * 10 + c - '0'", "ret", "ret * 10 + c - '0'", "ret * 10 + c", "ret * 10", "ret", "10", "c", "'0'", "if (neg) \n\t\t\t\treturn -ret;", "neg", "return -ret;", "-ret", "ret", "return ret;", "ret", "public double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}", "nextDouble", "{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t}", "double ret = 0", "ret", "0", "div = 1;", "div", "1", "byte c = read();", "c", "read()", "read", "while (c <= ' ') \n\t\t\t\tc = read();", "c <= ' '", "c", "' '", "c = read()", "c", "read()", "read", "boolean neg = (c == '-');", "neg", "(c == '-')", "c", "'-'", "if (neg) \n\t\t\t\tc = read();", "neg", "c = read()", "c", "read()", "read", "do { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9');", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t}", "ret = ret * 10 + c - '0'", "ret", "ret * 10 + c - '0'", "ret * 10 + c", "ret * 10", "ret", "10", "c", "'0'", "if (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t}", "c == '.'", "c", "'.'", "{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t}", "while ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t}", "(c = read()) >= '0' && c <= '9'", "(c = read()) >= '0'", "(c = read())", "c", "read()", "read", "'0'", "c <= '9'", "c", "'9'", "{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t}", "ret += (c - '0') / (div *= 10)", "ret", "(c - '0') / (div *= 10)", "(c - '0')", "c", "'0'", "(div *= 10)", "div", "10", "if (neg) \n\t\t\t\treturn -ret;", "neg", "return -ret;", "-ret", "ret", "return ret;", "ret", "private void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t}", "fillBuffer", "{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t}", "bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE)", "bytesRead", "din.read(buffer, bufferPointer = 0, BUFFER_SIZE)", "din.read", "din", "buffer", "bufferPointer = 0", "bufferPointer", "0", "BUFFER_SIZE", "if (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1;", "bytesRead == -1", "bytesRead", "-1", "1", "buffer[0] = -1", "buffer[0]", "buffer", "0", "-1", "1", "private byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t}", "read", "{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t}", "if (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer();", "bufferPointer == bytesRead", "bufferPointer", "bytesRead", "fillBuffer()", "fillBuffer", "return buffer[bufferPointer++];", "buffer[bufferPointer++]", "buffer", "bufferPointer++", "bufferPointer", "public void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t}", "close", "{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t}", "if (din == null) \n\t\t\t\treturn;", "din == null", "din", "null", "return;", "din.close()", "din.close", "din", "public class Main{\n\tstatic long mod = (long)(1e9+7);\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static void main(String sp[])throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\t\n\t\tint n = sc.nextInt();\n\t\tlong k = sc.nextLong();\n\t\tint count = 0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tif(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=k)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\t\n\tpublic static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}\n\t\n\tpublic static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> factor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tfor(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}\n\t\n\tpublic static long power(long x, long y) \n\t{ \n\t\tlong temp; \n\t\tif( y == 0) \n\t\t\treturn 1l; \n\t\ttemp = power(x, y/2); \n\t\tif (y%2 == 0) \n\t\t\treturn (temp*temp)%mod; \n\t\telse\n\t\t\treturn ((x*temp)%mod*temp)%mod; \n\t} \n\t\n\tpublic static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}\n\t\n\tpublic static class pair{\n\t\tlong x;\n\t\tint y;\n\t\tpair(long x, int y){\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}\n\t}\n\t\n\tpublic static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\treturn Long.valueOf(o1.x).compareTo(Long.valueOf(o2.x));\n\t\t}\n\t}\n\t\n\t\n\t\n\tstatic class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}\n\t\n\n\tstatic int gcd(int a, int b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }\n\t\n\t\t\n\tstatic class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n\t\t\n\t\t\n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t} \n}", "public class Main{\n\tstatic long mod = (long)(1e9+7);\n\tpublic static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out));\n\tpublic static void main(String sp[])throws IOException{\n\t\tScanner sc = new Scanner(System.in);\n\t\t//FastReader sc = new FastReader();\t\n\t\tint n = sc.nextInt();\n\t\tlong k = sc.nextLong();\n\t\tint count = 0;\n\t\tfor(int i=0;i<n;i++){\n\t\t\tlong p = sc.nextLong();\n\t\t\tlong q = sc.nextLong();\n\t\t\tif(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=k)\n\t\t\t\tcount++;\n\t\t}\n\t\tSystem.out.println(count);\n\t}\n\t\n\tpublic static ArrayList<Integer> primefactor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\twhile(n%2==0){\n\t\t\tal.add(2);\n\t\t\tn/=2;\n\t\t}\n\t\tfor(int i=3;i<=sqrt;i+=2){\n\t\t\twhile(n%i==0){\n\t\t\t\tal.add(i);\n\t\t\t\tn/=i;\n\t\t\t}\n\t\t}\n\t\tif(n>2)\n\t\t\tal.add(n);\n\t\treturn al;\n\t}\n\t\n\tpublic static long sum(long val){\n\t\tlong fg =0 ;\n\t\twhile(val!=0){\n\t\t\tfg+=val%10;\n\t\t\tval/=10;\n\t\t}\n\t\treturn fg;\n\t}\n\t\n\t\n\t\n\tpublic static ArrayList<Integer> factor(int n){\n\t\tint sqrt = (int)Math.sqrt(n);\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\tfor(int i=1;i<=sqrt;i++){\n\t\t\tif(n%i!=0)\n\t\t\t\tcontinue;\n\t\t\tint first = i;\n\t\t\tint second = n/i;\n\t\t\tal.add(i);\n\t\t\tif(first==second){\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tal.add(n/i);\n\t\t}\n\t\treturn al;\n\t}\n\t\n\tpublic static long power(long x, long y) \n\t{ \n\t\tlong temp; \n\t\tif( y == 0) \n\t\t\treturn 1l; \n\t\ttemp = power(x, y/2); \n\t\tif (y%2 == 0) \n\t\t\treturn (temp*temp)%mod; \n\t\telse\n\t\t\treturn ((x*temp)%mod*temp)%mod; \n\t} \n\t\n\tpublic static ArrayList<Integer> comp(){\n\t\tArrayList<Integer> al = new ArrayList<>();\n\t\t\tint n = (int)2e5;\n\t\t\tboolean arr[] = new boolean[n+1];\n\t\t\tint sqrt = (int)Math.sqrt(n);\n\t\t\tfor(int i=2;i<=sqrt;i++){\n\t\t\t\tif(arr[i]==false){\n\t\t\t\t\tfor(int j=i*i;j<=n;j+=i){\n\t\t\t\t\t\tarr[j]=true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tfor(int i=2;i<=n;i++){\n\t\t\t\tif(arr[i]==false)\n\t\t\t\t\tal.add(i);\n\t\t\t}\n\t\t\t\n\t\treturn al;\n\t}\n\t\n\tpublic static class pair{\n\t\tlong x;\n\t\tint y;\n\t\tpair(long x, int y){\n\t\t\tthis.x=x;\n\t\t\tthis.y=y;\n\t\t}\n\t}\n\t\n\tpublic static class comp implements Comparator<pair>{\n\t\tpublic int compare(pair o1, pair o2){\n\t\t\treturn Long.valueOf(o1.x).compareTo(Long.valueOf(o2.x));\n\t\t}\n\t}\n\t\n\t\n\t\n\tstatic class Node{\n\t\tint node;\n\t\tint d;\n\t\tArrayList<Integer> al = new ArrayList<>();\t\n\t}\n\t\n\n\tstatic int gcd(int a, int b) \n { \n if (b == 0) \n return a; \n return gcd(b, a % b); \n }\n\t\n\t\t\n\tstatic class FastReader \n\t{ \n\t\tfinal private int BUFFER_SIZE = 1 << 16; \n\t\tprivate DataInputStream din; \n\t\tprivate byte[] buffer; \n\t\tprivate int bufferPointer, bytesRead; \n \n\t\tpublic FastReader() \n\t\t{ \n\t\t\tdin = new DataInputStream(System.in); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic FastReader(String file_name) throws IOException \n\t\t{ \n\t\t\tdin = new DataInputStream(new FileInputStream(file_name)); \n\t\t\tbuffer = new byte[BUFFER_SIZE]; \n\t\t\tbufferPointer = bytesRead = 0; \n\t\t} \n \n\t\tpublic String readLine() throws IOException \n\t\t{ \n\t\t\tbyte[] buf = new byte[64]; // line length \n\t\t\tint cnt = 0, c; \n\t\t\twhile ((c = read()) != -1) \n\t\t\t{ \n\t\t\t\tif (c == '\\n') \n\t\t\t\t\tbreak; \n\t\t\t\tbuf[cnt++] = (byte) c; \n\t\t\t} \n\t\t\treturn new String(buf, 0, cnt); \n\t\t} \n \n\t\tpublic int nextInt() throws IOException \n\t\t{ \n\t\t\tint ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo\n\t\t\t{ \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} while ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic long nextLong() throws IOException \n\t\t{ \n\t\t\tlong ret = 0; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n \n\t\tpublic double nextDouble() throws IOException \n\t\t{ \n\t\t\tdouble ret = 0, div = 1; \n\t\t\tbyte c = read(); \n\t\t\twhile (c <= ' ') \n\t\t\t\tc = read(); \n\t\t\tboolean neg = (c == '-'); \n\t\t\tif (neg) \n\t\t\t\tc = read(); \n \n\t\t\tdo { \n\t\t\t\tret = ret * 10 + c - '0'; \n\t\t\t} \n\t\t\twhile ((c = read()) >= '0' && c <= '9'); \n \n\t\t\tif (c == '.') \n\t\t\t{ \n\t\t\t\twhile ((c = read()) >= '0' && c <= '9') \n\t\t\t\t{ \n\t\t\t\t\tret += (c - '0') / (div *= 10); \n\t\t\t\t} \n\t\t\t} \n \n\t\t\tif (neg) \n\t\t\t\treturn -ret; \n\t\t\treturn ret; \n\t\t} \n\t\t\n\t\t\n \n\t\tprivate void fillBuffer() throws IOException \n\t\t{ \n\t\t\tbytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); \n\t\t\tif (bytesRead == -1) \n\t\t\t\tbuffer[0] = -1; \n\t\t} \n \n\t\tprivate byte read() throws IOException \n\t\t{ \n\t\t\tif (bufferPointer == bytesRead) \n\t\t\t\tfillBuffer(); \n\t\t\treturn buffer[bufferPointer++]; \n\t\t} \n \n\t\tpublic void close() throws IOException \n\t\t{ \n\t\t\tif (din == null) \n\t\t\t\treturn; \n\t\t\tdin.close(); \n\t\t} \n\t} \n}", "Main" ]
import java.util.*; import java.io.*; import java.math.*; public class Main{ static long mod = (long)(1e9+7); public static PrintWriter out = new PrintWriter (new BufferedOutputStream(System.out)); public static void main(String sp[])throws IOException{ Scanner sc = new Scanner(System.in); //FastReader sc = new FastReader(); int n = sc.nextInt(); long k = sc.nextLong(); int count = 0; for(int i=0;i<n;i++){ long p = sc.nextLong(); long q = sc.nextLong(); if(Math.sqrt(Math.pow(p,2)+Math.pow(q,2))<=k) count++; } System.out.println(count); } public static ArrayList<Integer> primefactor(int n){ int sqrt = (int)Math.sqrt(n); ArrayList<Integer> al = new ArrayList<>(); while(n%2==0){ al.add(2); n/=2; } for(int i=3;i<=sqrt;i+=2){ while(n%i==0){ al.add(i); n/=i; } } if(n>2) al.add(n); return al; } public static long sum(long val){ long fg =0 ; while(val!=0){ fg+=val%10; val/=10; } return fg; } public static ArrayList<Integer> factor(int n){ int sqrt = (int)Math.sqrt(n); ArrayList<Integer> al = new ArrayList<>(); for(int i=1;i<=sqrt;i++){ if(n%i!=0) continue; int first = i; int second = n/i; al.add(i); if(first==second){ continue; } al.add(n/i); } return al; } public static long power(long x, long y) { long temp; if( y == 0) return 1l; temp = power(x, y/2); if (y%2 == 0) return (temp*temp)%mod; else return ((x*temp)%mod*temp)%mod; } public static ArrayList<Integer> comp(){ ArrayList<Integer> al = new ArrayList<>(); int n = (int)2e5; boolean arr[] = new boolean[n+1]; int sqrt = (int)Math.sqrt(n); for(int i=2;i<=sqrt;i++){ if(arr[i]==false){ for(int j=i*i;j<=n;j+=i){ arr[j]=true; } } } for(int i=2;i<=n;i++){ if(arr[i]==false) al.add(i); } return al; } public static class pair{ long x; int y; pair(long x, int y){ this.x=x; this.y=y; } } public static class comp implements Comparator<pair>{ public int compare(pair o1, pair o2){ return Long.valueOf(o1.x).compareTo(Long.valueOf(o2.x)); } } static class Node{ int node; int d; ArrayList<Integer> al = new ArrayList<>(); } static int gcd(int a, int b) { if (b == 0) return a; return gcd(b, a % b); } static class FastReader { final private int BUFFER_SIZE = 1 << 16; private DataInputStream din; private byte[] buffer; private int bufferPointer, bytesRead; public FastReader() { din = new DataInputStream(System.in); buffer = new byte[BUFFER_SIZE]; bufferPointer = bytesRead = 0; } public FastReader(String file_name) throws IOException { din = new DataInputStream(new FileInputStream(file_name)); buffer = new byte[BUFFER_SIZE]; bufferPointer = bytesRead = 0; } public String readLine() throws IOException { byte[] buf = new byte[64]; // line length int cnt = 0, c; while ((c = read()) != -1) { if (c == '\n') break; buf[cnt++] = (byte) c; } return new String(buf, 0, cnt); } public int nextInt() throws IOException { int ret = 0; byte c = read(); while (c <= ' ') c = read(); boolean neg = (c == '-'); if (neg) c = read(); do { ret = ret * 10 + c - '0'; } while ((c = read()) >= '0' && c <= '9'); if (neg) return -ret; return ret; } public long nextLong() throws IOException { long ret = 0; byte c = read(); while (c <= ' ') c = read(); boolean neg = (c == '-'); if (neg) c = read(); do { ret = ret * 10 + c - '0'; } while ((c = read()) >= '0' && c <= '9'); if (neg) return -ret; return ret; } public double nextDouble() throws IOException { double ret = 0, div = 1; byte c = read(); while (c <= ' ') c = read(); boolean neg = (c == '-'); if (neg) c = read(); do { ret = ret * 10 + c - '0'; } while ((c = read()) >= '0' && c <= '9'); if (c == '.') { while ((c = read()) >= '0' && c <= '9') { ret += (c - '0') / (div *= 10); } } if (neg) return -ret; return ret; } private void fillBuffer() throws IOException { bytesRead = din.read(buffer, bufferPointer = 0, BUFFER_SIZE); if (bytesRead == -1) buffer[0] = -1; } private byte read() throws IOException { if (bufferPointer == bytesRead) fillBuffer(); return buffer[bufferPointer++]; } public void close() throws IOException { if (din == null) return; din.close(); } } }
[ 7, 15, 13, 17, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 20, 12, 13, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 13, 2, 13, 13, 14, 2, 13, 13, 30, 40, 13, 4, 18, 13, 13, 23, 13, 6, 13, 41, 13, 20, 17, 41, 13, 17, 41, 13, 17, 12, 13, 30, 4, 13, 20, 12, 13, 30, 14, 2, 13, 13, 30, 38, 5, 13, 30, 30, 0, 13, 4, 18, 33, 13, 17, 18, 13, 13, 0, 13, 17, 29, 18, 13, 40, 13, 12, 13, 30, 40, 13, 12, 13, 30, 41, 13, 42, 17, 30, 41, 13, 4, 13, 14, 2, 2, 2, 13, 17, 2, 13, 17, 2, 13, 17, 30, 14, 40, 0, 13, 2, 13, 17, 4, 13, 29, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 17, 42, 17, 30, 41, 13, 2, 4, 13, 17, 14, 2, 2, 13, 17, 2, 17, 13, 3, 0, 13, 2, 2, 17, 13, 13, 29, 8, 13, 40, 13, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 18, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 41, 13, 4, 13, 41, 13, 17, 42, 17, 30, 41, 13, 2, 4, 13, 17, 14, 2, 2, 13, 17, 2, 17, 13, 3, 0, 13, 2, 2, 17, 13, 13, 29, 8, 13, 40, 13, 13, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 284, 11 ], [ 284, 12 ], [ 12, 13 ], [ 12, 14 ], [ 284, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 20, 21 ], [ 21, 22 ], [ 17, 23 ], [ 23, 24 ], [ 23, 25 ], [ 25, 26 ], [ 26, 27 ], [ 17, 28 ], [ 28, 29 ], [ 28, 30 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 17, 34 ], [ 34, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 34, 39 ], [ 39, 40 ], [ 39, 41 ], [ 34, 42 ], [ 42, 43 ], [ 43, 44 ], [ 34, 45 ], [ 46, 46 ], [ 46, 47 ], [ 47, 48 ], [ 47, 49 ], [ 49, 50 ], [ 50, 51 ], [ 46, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 46, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 46, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 66, 70 ], [ 70, 71 ], [ 71, 72 ], [ 17, 73 ], [ 73, 74 ], [ 74, 75 ], [ 73, 76 ], [ 15, 77 ], [ 77, 78 ], [ 284, 79 ], [ 79, 80 ], [ 79, 81 ], [ 81, 82 ], [ 81, 83 ], [ 79, 85 ], [ 85, 86 ], [ 85, 87 ], [ 79, 88 ], [ 88, 89 ], [ 88, 90 ], [ 79, 91 ], [ 91, 92 ], [ 91, 93 ], [ 93, 94 ], [ 94, 95 ], [ 94, 96 ], [ 79, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 100, 101 ], [ 101, 102 ], [ 101, 103 ], [ 100, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 106, 108 ], [ 105, 109 ], [ 109, 110 ], [ 110, 111 ], [ 110, 112 ], [ 112, 113 ], [ 113, 114 ], [ 112, 115 ], [ 112, 116 ], [ 112, 117 ], [ 117, 118 ], [ 117, 119 ], [ 104, 120 ], [ 120, 121 ], [ 120, 122 ], [ 99, 123 ], [ 123, 124 ], [ 124, 125 ], [ 124, 126 ], [ 126, 127 ], [ 79, 128 ], [ 128, 129 ], [ 128, 130 ], [ 130, 131 ], [ 131, 132 ], [ 79, 133 ], [ 133, 134 ], [ 133, 135 ], [ 135, 136 ], [ 136, 137 ], [ 135, 138 ], [ 138, 139 ], [ 138, 140 ], [ 140, 141 ], [ 141, 142 ], [ 141, 143 ], [ 143, 144 ], [ 140, 145 ], [ 145, 146 ], [ 147, 147 ], [ 147, 148 ], [ 148, 149 ], [ 148, 150 ], [ 147, 151 ], [ 151, 152 ], [ 151, 153 ], [ 147, 154 ], [ 154, 155 ], [ 154, 156 ], [ 145, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 160, 161 ], [ 160, 162 ], [ 162, 163 ], [ 162, 164 ], [ 158, 165 ], [ 165, 166 ], [ 157, 167 ], [ 167, 168 ], [ 79, 169 ], [ 169, 170 ], [ 169, 171 ], [ 171, 172 ], [ 172, 173 ], [ 172, 174 ], [ 174, 175 ], [ 171, 176 ], [ 176, 177 ], [ 176, 178 ], [ 171, 179 ], [ 179, 180 ], [ 179, 181 ], [ 181, 182 ], [ 182, 183 ], [ 182, 184 ], [ 184, 185 ], [ 185, 186 ], [ 184, 187 ], [ 181, 188 ], [ 188, 189 ], [ 189, 190 ], [ 190, 191 ], [ 190, 192 ], [ 189, 193 ], [ 193, 194 ], [ 193, 195 ], [ 188, 196 ], [ 181, 197 ], [ 197, 198 ], [ 197, 199 ], [ 199, 200 ], [ 200, 201 ], [ 200, 202 ], [ 199, 203 ], [ 171, 204 ], [ 204, 205 ], [ 205, 206 ], [ 205, 207 ], [ 207, 208 ], [ 205, 209 ], [ 79, 210 ], [ 210, 211 ], [ 210, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 212, 217 ], [ 217, 218 ], [ 218, 219 ], [ 219, 220 ], [ 219, 221 ], [ 217, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 224, 226 ], [ 217, 227 ], [ 227, 228 ], [ 228, 229 ], [ 217, 230 ], [ 230, 231 ], [ 231, 232 ], [ 232, 233 ], [ 232, 234 ], [ 231, 235 ], [ 235, 236 ], [ 212, 237 ], [ 237, 238 ], [ 210, 239 ], [ 239, 240 ], [ 79, 241 ], [ 241, 242 ], [ 241, 243 ], [ 243, 244 ], [ 244, 245 ], [ 244, 246 ], [ 246, 247 ], [ 243, 248 ], [ 248, 249 ], [ 248, 250 ], [ 243, 251 ], [ 251, 252 ], [ 251, 253 ], [ 253, 254 ], [ 254, 255 ], [ 254, 256 ], [ 256, 257 ], [ 257, 258 ], [ 256, 259 ], [ 253, 260 ], [ 260, 261 ], [ 261, 262 ], [ 262, 263 ], [ 262, 264 ], [ 261, 265 ], [ 265, 266 ], [ 265, 267 ], [ 260, 268 ], [ 253, 269 ], [ 269, 270 ], [ 269, 271 ], [ 271, 272 ], [ 272, 273 ], [ 272, 274 ], [ 271, 275 ], [ 243, 276 ], [ 276, 277 ], [ 277, 278 ], [ 277, 279 ], [ 279, 280 ], [ 277, 281 ], [ 79, 282 ], [ 0, 283 ], [ 283, 284 ], [ 283, 285 ] ]
[ "import java.io.*;\nimport java.util.*;\nimport static java.lang.System.out;\n\npublic class Main{\n static MyReader in = new MyReader();\n\n public static void main(String[] args){\n final int N = in.i();\n long D = in.l();\n D *= D;\n int ans = 0;\n for (int i = 0; i < N; i++) {\n long x = in.l();\n long y = in.l();\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }\n out.println(ans);\n }\n\n static class MyReader extends BufferedReader {\n char[] cbuf = new char[1024];\n int head = 0;\n int tail = 0;\n\n MyReader(){\n super(new InputStreamReader(System.in));\n }\n\n char next() {\n if (head == tail) {\n try {\n tail = super.read(cbuf, 0, cbuf.length);\n } catch (IOException e) {}\n head = 0;\n }\n return cbuf[head++];\n }\n\n void back() {\n head--;\n }\n\n boolean minus() {\n boolean minus;\n while (true) {\n char c = next();\n if (c != ' ' && c != '\\n' && c != '\\r') {\n if (!(minus = c == '-')) back();\n return minus;\n }\n }\n }\n\n int i() {\n boolean minus = minus();\n int n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }\n\n int[] ii(final int N) {\n int[] a = new int[N];\n for (int j = 0; j < a.length; j++) a[j] = i();\n return a;\n }\n\n long l() {\n boolean minus = minus();\n long n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }\n }\n}", "import java.io.*;", "io.*", "java", "import java.util.*;", "util.*", "java", "import static java.lang.System.out;", "import static java.lang.System.out;", "import static java.lang.System.out;", "public class Main{\n static MyReader in = new MyReader();\n\n public static void main(String[] args){\n final int N = in.i();\n long D = in.l();\n D *= D;\n int ans = 0;\n for (int i = 0; i < N; i++) {\n long x = in.l();\n long y = in.l();\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }\n out.println(ans);\n }\n\n static class MyReader extends BufferedReader {\n char[] cbuf = new char[1024];\n int head = 0;\n int tail = 0;\n\n MyReader(){\n super(new InputStreamReader(System.in));\n }\n\n char next() {\n if (head == tail) {\n try {\n tail = super.read(cbuf, 0, cbuf.length);\n } catch (IOException e) {}\n head = 0;\n }\n return cbuf[head++];\n }\n\n void back() {\n head--;\n }\n\n boolean minus() {\n boolean minus;\n while (true) {\n char c = next();\n if (c != ' ' && c != '\\n' && c != '\\r') {\n if (!(minus = c == '-')) back();\n return minus;\n }\n }\n }\n\n int i() {\n boolean minus = minus();\n int n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }\n\n int[] ii(final int N) {\n int[] a = new int[N];\n for (int j = 0; j < a.length; j++) a[j] = i();\n return a;\n }\n\n long l() {\n boolean minus = minus();\n long n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }\n }\n}", "Main", "static MyReader in = new MyReader();", "in", "new MyReader()", "public static void main(String[] args){\n final int N = in.i();\n long D = in.l();\n D *= D;\n int ans = 0;\n for (int i = 0; i < N; i++) {\n long x = in.l();\n long y = in.l();\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }\n out.println(ans);\n }", "main", "{\n final int N = in.i();\n long D = in.l();\n D *= D;\n int ans = 0;\n for (int i = 0; i < N; i++) {\n long x = in.l();\n long y = in.l();\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }\n out.println(ans);\n }", "final int N = in.i();", "N", "in.i()", "in.i", "in", "long D = in.l();", "D", "in.l()", "in.l", "in", "D *= D", "D", "D", "int ans = 0;", "ans", "0", "for (int i = 0; i < N; i++) {\n long x = in.l();\n long y = in.l();\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n long x = in.l();\n long y = in.l();\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }", "{\n long x = in.l();\n long y = in.l();\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }", "long x = in.l();", "x", "in.l()", "in.l", "in", "long y = in.l();", "y", "in.l()", "in.l", "in", "long d = x * x + y * y;", "d", "x * x + y * y", "x * x", "x", "x", "y * y", "y", "y", "if (d <= D) {\n ans++;\n }", "d <= D", "d", "D", "{\n ans++;\n }", "ans++", "ans", "out.println(ans)", "out.println", "out", "ans", "String[] args", "args", "static class MyReader extends BufferedReader {\n char[] cbuf = new char[1024];\n int head = 0;\n int tail = 0;\n\n MyReader(){\n super(new InputStreamReader(System.in));\n }\n\n char next() {\n if (head == tail) {\n try {\n tail = super.read(cbuf, 0, cbuf.length);\n } catch (IOException e) {}\n head = 0;\n }\n return cbuf[head++];\n }\n\n void back() {\n head--;\n }\n\n boolean minus() {\n boolean minus;\n while (true) {\n char c = next();\n if (c != ' ' && c != '\\n' && c != '\\r') {\n if (!(minus = c == '-')) back();\n return minus;\n }\n }\n }\n\n int i() {\n boolean minus = minus();\n int n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }\n\n int[] ii(final int N) {\n int[] a = new int[N];\n for (int j = 0; j < a.length; j++) a[j] = i();\n return a;\n }\n\n long l() {\n boolean minus = minus();\n long n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }\n }", "MyReader", "char[] cbuf = new char[1024];", "cbuf", "new char[1024]", "1024", "int head = 0;", "head", "0", "int tail = 0;", "tail", "0", "MyReader(){\n super(new InputStreamReader(System.in));\n }", "MyReader", "{\n super(new InputStreamReader(System.in));\n }", "super(new InputStreamReader(System.in))", "super", "new InputStreamReader(System.in)", "char next() {\n if (head == tail) {\n try {\n tail = super.read(cbuf, 0, cbuf.length);\n } catch (IOException e) {}\n head = 0;\n }\n return cbuf[head++];\n }", "next", "{\n if (head == tail) {\n try {\n tail = super.read(cbuf, 0, cbuf.length);\n } catch (IOException e) {}\n head = 0;\n }\n return cbuf[head++];\n }", "if (head == tail) {\n try {\n tail = super.read(cbuf, 0, cbuf.length);\n } catch (IOException e) {}\n head = 0;\n }", "head == tail", "head", "tail", "{\n try {\n tail = super.read(cbuf, 0, cbuf.length);\n } catch (IOException e) {}\n head = 0;\n }", "try {\n tail = super.read(cbuf, 0, cbuf.length);\n } catch (IOException e) {}", "catch (IOException e) {}", "IOException e", "{}", "{\n tail = super.read(cbuf, 0, cbuf.length);\n }", "tail = super.read(cbuf, 0, cbuf.length)", "tail", "super.read(cbuf, 0, cbuf.length)", "super.read", "super", "cbuf", "0", "cbuf.length", "cbuf", "cbuf.length", "head = 0", "head", "0", "return cbuf[head++];", "cbuf[head++]", "cbuf", "head++", "head", "void back() {\n head--;\n }", "back", "{\n head--;\n }", "head--", "head", "boolean minus() {\n boolean minus;\n while (true) {\n char c = next();\n if (c != ' ' && c != '\\n' && c != '\\r') {\n if (!(minus = c == '-')) back();\n return minus;\n }\n }\n }", "minus", "{\n boolean minus;\n while (true) {\n char c = next();\n if (c != ' ' && c != '\\n' && c != '\\r') {\n if (!(minus = c == '-')) back();\n return minus;\n }\n }\n }", "boolean minus;", "minus", "while (true) {\n char c = next();\n if (c != ' ' && c != '\\n' && c != '\\r') {\n if (!(minus = c == '-')) back();\n return minus;\n }\n }", "true", "{\n char c = next();\n if (c != ' ' && c != '\\n' && c != '\\r') {\n if (!(minus = c == '-')) back();\n return minus;\n }\n }", "char c = next();", "c", "next()", "next", "if (c != ' ' && c != '\\n' && c != '\\r') {\n if (!(minus = c == '-')) back();\n return minus;\n }", "c != ' ' && c != '\\n' && c != '\\r'", "c != ' ' && c != '\\n' && c != '\\r'", "c != ' '", "c", "' '", "c != '\\n'", "c", "'\\n'", "c != '\\r'", "c", "'\\r'", "{\n if (!(minus = c == '-')) back();\n return minus;\n }", "if (!(minus = c == '-')) back();", "!(minus = c == '-')", "(minus = c == '-')", "minus", "c == '-'", "c", "'-'", "back()", "back", "return minus;", "minus", "int i() {\n boolean minus = minus();\n int n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }", "i", "{\n boolean minus = minus();\n int n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }", "boolean minus = minus();", "minus", "minus()", "minus", "int n = 0;", "n", "0", "while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }", "true", "{\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }", "int k = next() - '0';", "k", "next() - '0'", "next()", "next", "'0'", "if (k < 0 || 9 < k) break;", "k < 0 || 9 < k", "k < 0", "k", "0", "9 < k", "9", "k", "break;", "n = 10 * n + k", "n", "10 * n + k", "10 * n", "10", "n", "k", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "int[] ii(final int N) {\n int[] a = new int[N];\n for (int j = 0; j < a.length; j++) a[j] = i();\n return a;\n }", "ii", "{\n int[] a = new int[N];\n for (int j = 0; j < a.length; j++) a[j] = i();\n return a;\n }", "int[] a = new int[N];", "a", "new int[N]", "N", "for (int j = 0; j < a.length; j++) a[j] = i();", "int j = 0;", "int j = 0;", "j", "0", "j < a.length", "j", "a.length", "a", "a.length", "j++", "j++", "j", "a[j] = i();", "a[j] = i()", "a[j]", "a", "j", "i()", "i", "return a;", "a", "final int N", "N", "long l() {\n boolean minus = minus();\n long n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }", "l", "{\n boolean minus = minus();\n long n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }", "boolean minus = minus();", "minus", "minus()", "minus", "long n = 0;", "n", "0", "while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }", "true", "{\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }", "int k = next() - '0';", "k", "next() - '0'", "next()", "next", "'0'", "if (k < 0 || 9 < k) break;", "k < 0 || 9 < k", "k < 0", "k", "0", "9 < k", "9", "k", "break;", "n = 10 * n + k", "n", "10 * n + k", "10 * n", "10", "n", "k", "return minus ? -n : n;", "minus ? -n : n", "minus", "-n", "n", "n", "BufferedReader", "public class Main{\n static MyReader in = new MyReader();\n\n public static void main(String[] args){\n final int N = in.i();\n long D = in.l();\n D *= D;\n int ans = 0;\n for (int i = 0; i < N; i++) {\n long x = in.l();\n long y = in.l();\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }\n out.println(ans);\n }\n\n static class MyReader extends BufferedReader {\n char[] cbuf = new char[1024];\n int head = 0;\n int tail = 0;\n\n MyReader(){\n super(new InputStreamReader(System.in));\n }\n\n char next() {\n if (head == tail) {\n try {\n tail = super.read(cbuf, 0, cbuf.length);\n } catch (IOException e) {}\n head = 0;\n }\n return cbuf[head++];\n }\n\n void back() {\n head--;\n }\n\n boolean minus() {\n boolean minus;\n while (true) {\n char c = next();\n if (c != ' ' && c != '\\n' && c != '\\r') {\n if (!(minus = c == '-')) back();\n return minus;\n }\n }\n }\n\n int i() {\n boolean minus = minus();\n int n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }\n\n int[] ii(final int N) {\n int[] a = new int[N];\n for (int j = 0; j < a.length; j++) a[j] = i();\n return a;\n }\n\n long l() {\n boolean minus = minus();\n long n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }\n }\n}", "public class Main{\n static MyReader in = new MyReader();\n\n public static void main(String[] args){\n final int N = in.i();\n long D = in.l();\n D *= D;\n int ans = 0;\n for (int i = 0; i < N; i++) {\n long x = in.l();\n long y = in.l();\n long d = x * x + y * y;\n if (d <= D) {\n ans++;\n }\n }\n out.println(ans);\n }\n\n static class MyReader extends BufferedReader {\n char[] cbuf = new char[1024];\n int head = 0;\n int tail = 0;\n\n MyReader(){\n super(new InputStreamReader(System.in));\n }\n\n char next() {\n if (head == tail) {\n try {\n tail = super.read(cbuf, 0, cbuf.length);\n } catch (IOException e) {}\n head = 0;\n }\n return cbuf[head++];\n }\n\n void back() {\n head--;\n }\n\n boolean minus() {\n boolean minus;\n while (true) {\n char c = next();\n if (c != ' ' && c != '\\n' && c != '\\r') {\n if (!(minus = c == '-')) back();\n return minus;\n }\n }\n }\n\n int i() {\n boolean minus = minus();\n int n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }\n\n int[] ii(final int N) {\n int[] a = new int[N];\n for (int j = 0; j < a.length; j++) a[j] = i();\n return a;\n }\n\n long l() {\n boolean minus = minus();\n long n = 0;\n while (true) {\n int k = next() - '0';\n if (k < 0 || 9 < k) break;\n n = 10 * n + k;\n }\n return minus ? -n : n;\n }\n }\n}", "Main" ]
import java.io.*; import java.util.*; import static java.lang.System.out; public class Main{ static MyReader in = new MyReader(); public static void main(String[] args){ final int N = in.i(); long D = in.l(); D *= D; int ans = 0; for (int i = 0; i < N; i++) { long x = in.l(); long y = in.l(); long d = x * x + y * y; if (d <= D) { ans++; } } out.println(ans); } static class MyReader extends BufferedReader { char[] cbuf = new char[1024]; int head = 0; int tail = 0; MyReader(){ super(new InputStreamReader(System.in)); } char next() { if (head == tail) { try { tail = super.read(cbuf, 0, cbuf.length); } catch (IOException e) {} head = 0; } return cbuf[head++]; } void back() { head--; } boolean minus() { boolean minus; while (true) { char c = next(); if (c != ' ' && c != '\n' && c != '\r') { if (!(minus = c == '-')) back(); return minus; } } } int i() { boolean minus = minus(); int n = 0; while (true) { int k = next() - '0'; if (k < 0 || 9 < k) break; n = 10 * n + k; } return minus ? -n : n; } int[] ii(final int N) { int[] a = new int[N]; for (int j = 0; j < a.length; j++) a[j] = i(); return a; } long l() { boolean minus = minus(); long n = 0; while (true) { int k = next() - '0'; if (k < 0 || 9 < k) break; n = 10 * n + k; } return minus ? -n : n; } } }
[ 7, 15, 13, 17, 15, 13, 17, 6, 13, 41, 13, 41, 13, 17, 12, 13, 30, 41, 13, 4, 13, 41, 13, 4, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 13, 41, 13, 4, 13, 0, 13, 8, 2, 2, 2, 13, 13, 2, 13, 13, 2, 13, 13, 17, 17, 4, 18, 18, 13, 13, 13, 12, 13, 30, 0, 13, 20, 41, 13, 4, 18, 13, 17, 14, 2, 13, 17, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 41, 13, 17, 42, 13, 30, 4, 13, 38, 5, 13, 30, 37, 20, 30, 4, 18, 13, 17, 14, 2, 4, 18, 13, 17, 30, 4, 18, 13, 4, 18, 18, 13, 13, 17, 30, 0, 13, 17, 23, 13, 12, 13, 30, 42, 2, 2, 13, 17, 40, 4, 18, 13, 30, 38, 5, 13, 30, 37, 20, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 260, 8 ], [ 260, 9 ], [ 9, 10 ], [ 260, 11 ], [ 11, 12 ], [ 11, 13 ], [ 260, 14 ], [ 14, 15 ], [ 14, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 16, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 16, 25 ], [ 25, 26 ], [ 25, 27 ], [ 16, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 30, 32 ], [ 28, 33 ], [ 33, 34 ], [ 33, 35 ], [ 28, 36 ], [ 36, 37 ], [ 37, 38 ], [ 28, 39 ], [ 40, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 43, 44 ], [ 40, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 40, 49 ], [ 49, 50 ], [ 49, 51 ], [ 51, 52 ], [ 52, 53 ], [ 53, 54 ], [ 54, 55 ], [ 54, 56 ], [ 53, 57 ], [ 57, 58 ], [ 57, 59 ], [ 52, 60 ], [ 60, 61 ], [ 60, 62 ], [ 51, 63 ], [ 51, 64 ], [ 16, 65 ], [ 65, 66 ], [ 66, 67 ], [ 67, 68 ], [ 67, 69 ], [ 65, 70 ], [ 260, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 80, 81 ], [ 79, 82 ], [ 73, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 88, 89 ], [ 89, 90 ], [ 89, 91 ], [ 91, 92 ], [ 92, 93 ], [ 88, 94 ], [ 94, 95 ], [ 95, 96 ], [ 95, 97 ], [ 73, 98 ], [ 98, 99 ], [ 98, 100 ], [ 73, 101 ], [ 101, 102 ], [ 101, 103 ], [ 103, 104 ], [ 104, 105 ], [ 103, 106 ], [ 106, 107 ], [ 107, 108 ], [ 107, 109 ], [ 109, 110 ], [ 110, 111 ], [ 106, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 113, 116 ], [ 112, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 118, 122 ], [ 117, 123 ], [ 123, 124 ], [ 124, 125 ], [ 125, 126 ], [ 123, 127 ], [ 127, 128 ], [ 128, 129 ], [ 129, 130 ], [ 129, 131 ], [ 127, 132 ], [ 117, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 71, 137 ], [ 137, 138 ], [ 260, 139 ], [ 139, 140 ], [ 139, 141 ], [ 141, 142 ], [ 142, 143 ], [ 143, 144 ], [ 144, 145 ], [ 144, 146 ], [ 143, 147 ], [ 147, 148 ], [ 148, 149 ], [ 149, 150 ], [ 142, 151 ], [ 151, 152 ], [ 152, 153 ], [ 153, 154 ], [ 153, 155 ], [ 155, 156 ], [ 156, 157 ], [ 152, 158 ], [ 158, 159 ], [ 159, 160 ], [ 159, 161 ], [ 141, 162 ], [ 162, 163 ], [ 163, 164 ], [ 164, 165 ], [ 260, 166 ], [ 166, 167 ], [ 166, 168 ], [ 168, 169 ], [ 169, 170 ], [ 170, 171 ], [ 171, 172 ], [ 170, 173 ], [ 173, 174 ], [ 260, 175 ], [ 175, 176 ], [ 175, 177 ], [ 177, 178 ], [ 178, 179 ], [ 179, 180 ], [ 180, 181 ], [ 179, 182 ], [ 182, 183 ], [ 260, 184 ], [ 184, 185 ], [ 184, 186 ], [ 186, 187 ], [ 187, 188 ], [ 188, 189 ], [ 189, 190 ], [ 188, 191 ], [ 191, 192 ], [ 260, 193 ], [ 193, 194 ], [ 193, 195 ], [ 195, 196 ], [ 196, 197 ], [ 196, 198 ], [ 195, 200 ], [ 200, 201 ], [ 201, 202 ], [ 202, 203 ], [ 202, 204 ], [ 200, 205 ], [ 205, 206 ], [ 205, 207 ], [ 200, 208 ], [ 208, 209 ], [ 209, 210 ], [ 200, 211 ], [ 211, 212 ], [ 212, 213 ], [ 213, 214 ], [ 213, 215 ], [ 212, 216 ], [ 216, 217 ], [ 195, 218 ], [ 218, 219 ], [ 193, 220 ], [ 220, 221 ], [ 260, 222 ], [ 222, 223 ], [ 222, 224 ], [ 224, 225 ], [ 225, 226 ], [ 226, 227 ], [ 227, 228 ], [ 228, 229 ], [ 260, 230 ], [ 230, 231 ], [ 230, 232 ], [ 232, 233 ], [ 233, 234 ], [ 233, 235 ], [ 232, 237 ], [ 237, 238 ], [ 238, 239 ], [ 239, 240 ], [ 239, 241 ], [ 237, 242 ], [ 242, 243 ], [ 242, 244 ], [ 237, 245 ], [ 245, 246 ], [ 246, 247 ], [ 237, 248 ], [ 248, 249 ], [ 249, 250 ], [ 250, 251 ], [ 250, 252 ], [ 249, 253 ], [ 253, 254 ], [ 232, 255 ], [ 255, 256 ], [ 230, 257 ], [ 257, 258 ], [ 0, 259 ], [ 259, 260 ], [ 259, 261 ] ]
[ "import java.util.*;\nimport java.io.*;\n\npublic class Main {\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tlong N = ni();\n\t\tlong D = ni();\n\t\tint result = 0;\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tlong X = ni();\n\t\t\tlong Y = ni();\n\t\t\tresult += (X * X + Y * Y <= D * D) ? 1 : 0;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}", "import java.util.*;", "util.*", "java", "import java.io.*;", "io.*", "java", "public class Main {\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tlong N = ni();\n\t\tlong D = ni();\n\t\tint result = 0;\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tlong X = ni();\n\t\t\tlong Y = ni();\n\t\t\tresult += (X * X + Y * Y <= D * D) ? 1 : 0;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}", "Main", "//Switch input source (stdin/file)\n\tprivate static BufferedReader br;", "br", "//Input read utility\n\tprivate static StringTokenizer tokenizer = null;", "tokenizer", "null", "private static void solve(){\n\t\t//Implement solution here.\n\t\tlong N = ni();\n\t\tlong D = ni();\n\t\tint result = 0;\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tlong X = ni();\n\t\t\tlong Y = ni();\n\t\t\tresult += (X * X + Y * Y <= D * D) ? 1 : 0;\n\t\t}\n\t\tSystem.out.println(result);\n\t}", "solve", "{\n\t\t//Implement solution here.\n\t\tlong N = ni();\n\t\tlong D = ni();\n\t\tint result = 0;\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tlong X = ni();\n\t\t\tlong Y = ni();\n\t\t\tresult += (X * X + Y * Y <= D * D) ? 1 : 0;\n\t\t}\n\t\tSystem.out.println(result);\n\t}", "long N = ni();", "N", "ni()", "ni", "long D = ni();", "D", "ni()", "ni", "int result = 0;", "result", "0", "for(int i = 0; i < N; i++) {\n\t\t\tlong X = ni();\n\t\t\tlong Y = ni();\n\t\t\tresult += (X * X + Y * Y <= D * D) ? 1 : 0;\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < N", "i", "N", "i++", "i++", "i", "{\n\t\t\tlong X = ni();\n\t\t\tlong Y = ni();\n\t\t\tresult += (X * X + Y * Y <= D * D) ? 1 : 0;\n\t\t}", "{\n\t\t\tlong X = ni();\n\t\t\tlong Y = ni();\n\t\t\tresult += (X * X + Y * Y <= D * D) ? 1 : 0;\n\t\t}", "long X = ni();", "X", "ni()", "ni", "long Y = ni();", "Y", "ni()", "ni", "result += (X * X + Y * Y <= D * D) ? 1 : 0", "result", "(X * X + Y * Y <= D * D) ? 1 : 0", "(X * X + Y * Y <= D * D)", "X * X + Y * Y", "X * X", "X", "X", "Y * Y", "Y", "Y", "D * D", "D", "D", "1", "0", "System.out.println(result)", "System.out.println", "System.out", "System", "System.out", "result", "public static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}", "main", "{\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}", "br = new BufferedReader(new InputStreamReader(System.in))", "br", "new BufferedReader(new InputStreamReader(System.in))", "String debugDataPath = System.getenv(\"DD_PATH\");", "debugDataPath", "System.getenv(\"DD_PATH\")", "System.getenv", "System", "\"DD_PATH\"", "if(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}", "debugDataPath != null", "debugDataPath", "null", "{\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}", "try{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "Exception e", "{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}", "br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))", "br", "new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))))", "boolean hasNext = true;", "hasNext", "true", "while(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}", "hasNext", "{\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}", "solve()", "solve", "try{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "Exception e", "{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}", "br.mark(1)", "br.mark", "br", "1", "if(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}", "br.read() > 0", "br.read()", "br.read", "br", "0", "{\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t}", "br.reset()", "br.reset", "br", "System.out.println(\"---\")", "System.out.println", "System.out", "System", "System.out", "\"---\"", "{\n\t\t\t\t\thasNext = false;\n\t\t\t\t}", "hasNext = false", "hasNext", "false", "String[] args", "args", "public static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}", "next", "{\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}", "while (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}", "tokenizer == null || !tokenizer.hasMoreTokens()", "tokenizer == null", "tokenizer", "null", "!tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens()", "tokenizer.hasMoreTokens", "tokenizer", "{\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}", "try {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "Exception e", "{\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}", "throw new RuntimeException(e);", "new RuntimeException(e)", "{\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t}", "tokenizer = new StringTokenizer(br.readLine())", "tokenizer", "new StringTokenizer(br.readLine())", "return tokenizer.nextToken();", "tokenizer.nextToken()", "tokenizer.nextToken", "tokenizer", "//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}", "ni", "{\n\t\treturn Integer.parseInt(next());\n\t}", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}", "nl", "{\n\t\treturn Long.parseLong(next());\n\t}", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}", "nd", "{\n\t\treturn Double.parseDouble(next());\n\t}", "return Double.parseDouble(next());", "Double.parseDouble(next())", "Double.parseDouble", "Double", "next()", "next", "//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}", "na", "{\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = ni();", "a[i] = ni()", "a[i]", "a", "i", "ni()", "ni", "return a;", "a", "int n", "n", "//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}", "ns", "{\n\t\treturn next().toCharArray();\n\t}", "return next().toCharArray();", "next().toCharArray()", "next().toCharArray", "next()", "next", "//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}", "nal", "{\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}", "long[] a = new long[n];", "a", "new long[n]", "n", "for (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nl();", "a[i] = nl()", "a[i]", "a", "i", "nl()", "nl", "return a;", "a", "int n", "n", "public class Main {\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tlong N = ni();\n\t\tlong D = ni();\n\t\tint result = 0;\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tlong X = ni();\n\t\t\tlong Y = ni();\n\t\t\tresult += (X * X + Y * Y <= D * D) ? 1 : 0;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}", "public class Main {\n\tprivate static void solve(){\n\t\t//Implement solution here.\n\t\tlong N = ni();\n\t\tlong D = ni();\n\t\tint result = 0;\n\t\tfor(int i = 0; i < N; i++) {\n\t\t\tlong X = ni();\n\t\t\tlong Y = ni();\n\t\t\tresult += (X * X + Y * Y <= D * D) ? 1 : 0;\n\t\t}\n\t\tSystem.out.println(result);\n\t}\n\n\n\t//Switch input source (stdin/file)\n\tprivate static BufferedReader br;\n\tpublic static void main(String[] args){\n\t\tbr = new BufferedReader(new InputStreamReader(System.in));\n\t\tString debugDataPath = System.getenv(\"DD_PATH\"); \n\t\tif(debugDataPath != null){\n\t\t\ttry{\n\t\t\t\tbr = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath))));\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\tboolean hasNext = true;\n\t\twhile(hasNext){\n\t\t\tsolve();\t\n\t\t\ttry{\n\t\t\t\tbr.mark(1);\n\t\t\t\tif(br.read() > 0){\n\t\t\t\t\tbr.reset();\t\t\t\n\t\t\t\t\tSystem.out.println(\"---\");\n\t\t\t\t} else {\n\t\t\t\t\thasNext = false;\n\t\t\t\t}\n\t\t\t}catch(Exception e){\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t} \n\t\t}\n\t}\n\n\t//Input read utility\n\tprivate static StringTokenizer tokenizer = null;\n\tpublic static String next() {\n\t\twhile (tokenizer == null || !tokenizer.hasMoreTokens()) {\n\t\t\ttry {\n\t\t\t\ttokenizer = new StringTokenizer(br.readLine());\n\t\t\t} catch (Exception e) {\n\t\t\t\tthrow new RuntimeException(e);\n\t\t\t}\n\t\t}\n\t\treturn tokenizer.nextToken();\n\t}\n\t//Get next single int\n\tprivate static int ni() {\n\t\treturn Integer.parseInt(next());\n\t}\n\t//Get next single long\n\tprivate static long nl() {\n\t\treturn Long.parseLong(next());\n\t}\n\t//Get next single double\n\tprivate static double nd() {\n\t\treturn Double.parseDouble(next());\n\t}\n\t//Get next int array from one line\n\tprivate static int[] na(int n) {\n\t\tint[] a = new int[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = ni();\n\t\treturn a;\n\t}\n\t//Get next char array from one line\n\tprivate static char[] ns() {\n\t\treturn next().toCharArray();\n\t}\n\t//Get next long array from one line\n\tprivate static long[] nal(int n) {\n\t\tlong[] a = new long[n];\n\t\tfor (int i = 0; i < n; i++)\n\t\t\ta[i] = nl();\n\t\treturn a;\n\t}\n}", "Main" ]
import java.util.*; import java.io.*; public class Main { private static void solve(){ //Implement solution here. long N = ni(); long D = ni(); int result = 0; for(int i = 0; i < N; i++) { long X = ni(); long Y = ni(); result += (X * X + Y * Y <= D * D) ? 1 : 0; } System.out.println(result); } //Switch input source (stdin/file) private static BufferedReader br; public static void main(String[] args){ br = new BufferedReader(new InputStreamReader(System.in)); String debugDataPath = System.getenv("DD_PATH"); if(debugDataPath != null){ try{ br = new BufferedReader(new InputStreamReader(new FileInputStream(new File(debugDataPath)))); }catch(Exception e){ throw new RuntimeException(e); } } boolean hasNext = true; while(hasNext){ solve(); try{ br.mark(1); if(br.read() > 0){ br.reset(); System.out.println("---"); } else { hasNext = false; } }catch(Exception e){ throw new RuntimeException(e); } } } //Input read utility private static StringTokenizer tokenizer = null; public static String next() { while (tokenizer == null || !tokenizer.hasMoreTokens()) { try { tokenizer = new StringTokenizer(br.readLine()); } catch (Exception e) { throw new RuntimeException(e); } } return tokenizer.nextToken(); } //Get next single int private static int ni() { return Integer.parseInt(next()); } //Get next single long private static long nl() { return Long.parseLong(next()); } //Get next single double private static double nd() { return Double.parseDouble(next()); } //Get next int array from one line private static int[] na(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = ni(); return a; } //Get next char array from one line private static char[] ns() { return next().toCharArray(); } //Get next long array from one line private static long[] nal(int n) { long[] a = new long[n]; for (int i = 0; i < n; i++) a[i] = nl(); return a; } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 13, 13, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 2, 17, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 107, 5 ], [ 107, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 74, 78 ], [ 78, 79 ], [ 79, 80 ], [ 80, 81 ], [ 80, 82 ], [ 79, 83 ], [ 83, 84 ], [ 83, 85 ], [ 78, 86 ], [ 86, 87 ], [ 87, 88 ], [ 87, 89 ], [ 86, 90 ], [ 90, 91 ], [ 90, 92 ], [ 73, 93 ], [ 93, 94 ], [ 94, 95 ], [ 8, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 101, 102 ], [ 101, 103 ], [ 6, 104 ], [ 104, 105 ], [ 0, 106 ], [ 106, 107 ], [ 106, 108 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong[] x=new long[n];\n\t\tlong[] y=new long[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextLong();\n\t\t\ty[i]=sc.nextLong();\n\t\t}\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif(d*d>=(x[i]*x[i]+y[i]*y[i])){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\"+ans);\n\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong[] x=new long[n];\n\t\tlong[] y=new long[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextLong();\n\t\t\ty[i]=sc.nextLong();\n\t\t}\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif(d*d>=(x[i]*x[i]+y[i]*y[i])){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\"+ans);\n\n\t}\n\n}", "Main", "public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong[] x=new long[n];\n\t\tlong[] y=new long[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextLong();\n\t\t\ty[i]=sc.nextLong();\n\t\t}\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif(d*d>=(x[i]*x[i]+y[i]*y[i])){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\"+ans);\n\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong[] x=new long[n];\n\t\tlong[] y=new long[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextLong();\n\t\t\ty[i]=sc.nextLong();\n\t\t}\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif(d*d>=(x[i]*x[i]+y[i]*y[i])){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\"+ans);\n\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n=sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "long d = sc.nextInt();", "d", "sc.nextInt()", "sc.nextInt", "sc", "long[] x=new long[n];", "x", "new long[n]", "n", "long[] y=new long[n];", "y", "new long[n]", "n", "for(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextLong();\n\t\t\ty[i]=sc.nextLong();\n\t\t}", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n\t\t\tx[i]=sc.nextLong();\n\t\t\ty[i]=sc.nextLong();\n\t\t}", "{\n\t\t\tx[i]=sc.nextLong();\n\t\t\ty[i]=sc.nextLong();\n\t\t}", "x[i]=sc.nextLong()", "x[i]", "x", "i", "sc.nextLong()", "sc.nextLong", "sc", "y[i]=sc.nextLong()", "y[i]", "y", "i", "sc.nextLong()", "sc.nextLong", "sc", "int ans = 0;", "ans", "0", "for (int i = 0; i < n; i++) {\n\t\t\tif(d*d>=(x[i]*x[i]+y[i]*y[i])){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n\t\t\tif(d*d>=(x[i]*x[i]+y[i]*y[i])){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}", "{\n\t\t\tif(d*d>=(x[i]*x[i]+y[i]*y[i])){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}", "if(d*d>=(x[i]*x[i]+y[i]*y[i])){\n\t\t\t\tans++;\n\t\t\t}", "d*d>=(x[i]*x[i]+y[i]*y[i])", "d*d", "d", "d", "(x[i]*x[i]+y[i]*y[i])", "x[i]*x[i]", "x[i]", "x", "i", "x[i]", "x", "i", "y[i]*y[i]", "y[i]", "y", "i", "y[i]", "y", "i", "{\n\t\t\t\tans++;\n\t\t\t}", "ans++", "ans", "System.out.println(\"\"+ans)", "System.out.println", "System.out", "System", "System.out", "\"\"+ans", "\"\"", "ans", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong[] x=new long[n];\n\t\tlong[] y=new long[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextLong();\n\t\t\ty[i]=sc.nextLong();\n\t\t}\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif(d*d>=(x[i]*x[i]+y[i]*y[i])){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\"+ans);\n\n\t}\n\n}", "public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tlong d = sc.nextInt();\n\t\tlong[] x=new long[n];\n\t\tlong[] y=new long[n];\n\t\tfor(int i=0;i<n;i++){\n\t\t\tx[i]=sc.nextLong();\n\t\t\ty[i]=sc.nextLong();\n\t\t}\n\t\tint ans = 0;\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tif(d*d>=(x[i]*x[i]+y[i]*y[i])){\n\t\t\t\tans++;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\"+ans);\n\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args){ Scanner sc = new Scanner(System.in); int n=sc.nextInt(); long d = sc.nextInt(); long[] x=new long[n]; long[] y=new long[n]; for(int i=0;i<n;i++){ x[i]=sc.nextLong(); y[i]=sc.nextLong(); } int ans = 0; for (int i = 0; i < n; i++) { if(d*d>=(x[i]*x[i]+y[i]*y[i])){ ans++; } } System.out.println(""+ans); } }
[ 7, 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, 41, 13, 41, 13, 0, 13, 17, 0, 13, 17, 0, 13, 17, 0, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 2, 4, 18, 13, 13, 17, 4, 18, 13, 13, 17, 14, 2, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 4, 18, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 100, 5 ], [ 100, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 8, 28 ], [ 28, 29 ], [ 8, 30 ], [ 30, 31 ], [ 30, 32 ], [ 8, 33 ], [ 33, 34 ], [ 33, 35 ], [ 8, 36 ], [ 36, 37 ], [ 36, 38 ], [ 8, 39 ], [ 39, 40 ], [ 39, 41 ], [ 8, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 42, 47 ], [ 47, 48 ], [ 47, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 42, 53 ], [ 54, 54 ], [ 54, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 54, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 54, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 67, 70 ], [ 70, 71 ], [ 71, 72 ], [ 72, 73 ], [ 71, 74 ], [ 71, 75 ], [ 70, 76 ], [ 76, 77 ], [ 77, 78 ], [ 76, 79 ], [ 76, 80 ], [ 54, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 8, 88 ], [ 88, 89 ], [ 89, 90 ], [ 90, 91 ], [ 90, 92 ], [ 88, 93 ], [ 8, 94 ], [ 94, 95 ], [ 95, 96 ], [ 6, 97 ], [ 97, 98 ], [ 0, 99 ], [ 99, 100 ], [ 99, 101 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint X,Y,kosu;\n\t\tdouble keisan;\n\t\t\n\t\tX=0;\n\t\tY=0;\n\t\tkeisan=0;\n\t\tkosu=0;\n\t\t\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tX = sc.nextInt();\n\t\t\tY = sc.nextInt();\n\t\t\t\n\t\t\tkeisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));\n\t\t\t\n\t\t\tif(keisan<=D) {\n\t\t\t\tkosu++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(kosu);\n\t\tsc.close();\n\t}\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint X,Y,kosu;\n\t\tdouble keisan;\n\t\t\n\t\tX=0;\n\t\tY=0;\n\t\tkeisan=0;\n\t\tkosu=0;\n\t\t\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tX = sc.nextInt();\n\t\t\tY = sc.nextInt();\n\t\t\t\n\t\t\tkeisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));\n\t\t\t\n\t\t\tif(keisan<=D) {\n\t\t\t\tkosu++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(kosu);\n\t\tsc.close();\n\t}\n\n}", "Main", "public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint X,Y,kosu;\n\t\tdouble keisan;\n\t\t\n\t\tX=0;\n\t\tY=0;\n\t\tkeisan=0;\n\t\tkosu=0;\n\t\t\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tX = sc.nextInt();\n\t\t\tY = sc.nextInt();\n\t\t\t\n\t\t\tkeisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));\n\t\t\t\n\t\t\tif(keisan<=D) {\n\t\t\t\tkosu++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(kosu);\n\t\tsc.close();\n\t}", "main", "{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint X,Y,kosu;\n\t\tdouble keisan;\n\t\t\n\t\tX=0;\n\t\tY=0;\n\t\tkeisan=0;\n\t\tkosu=0;\n\t\t\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tX = sc.nextInt();\n\t\t\tY = sc.nextInt();\n\t\t\t\n\t\t\tkeisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));\n\t\t\t\n\t\t\tif(keisan<=D) {\n\t\t\t\tkosu++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(kosu);\n\t\tsc.close();\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = sc.nextInt();", "N", "sc.nextInt()", "sc.nextInt", "sc", "int D = sc.nextInt();", "D", "sc.nextInt()", "sc.nextInt", "sc", "int X", "X", "Y", "Y", "kosu;", "kosu", "double keisan;", "keisan", "X=0", "X", "0", "Y=0", "Y", "0", "keisan=0", "keisan", "0", "kosu=0", "kosu", "0", "for(int i=1;i<=N;i++) {\n\t\t\tX = sc.nextInt();\n\t\t\tY = sc.nextInt();\n\t\t\t\n\t\t\tkeisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));\n\t\t\t\n\t\t\tif(keisan<=D) {\n\t\t\t\tkosu++;\n\t\t\t}\n\t\t}", "int i=1;", "int i=1;", "i", "1", "i<=N", "i", "N", "i++", "i++", "i", "{\n\t\t\tX = sc.nextInt();\n\t\t\tY = sc.nextInt();\n\t\t\t\n\t\t\tkeisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));\n\t\t\t\n\t\t\tif(keisan<=D) {\n\t\t\t\tkosu++;\n\t\t\t}\n\t\t}", "{\n\t\t\tX = sc.nextInt();\n\t\t\tY = sc.nextInt();\n\t\t\t\n\t\t\tkeisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));\n\t\t\t\n\t\t\tif(keisan<=D) {\n\t\t\t\tkosu++;\n\t\t\t}\n\t\t}", "X = sc.nextInt()", "X", "sc.nextInt()", "sc.nextInt", "sc", "Y = sc.nextInt()", "Y", "sc.nextInt()", "sc.nextInt", "sc", "keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2))", "keisan", "Math.sqrt(Math.pow(X,2)+Math.pow(Y,2))", "Math.sqrt", "Math", "Math.pow(X,2)+Math.pow(Y,2)", "Math.pow(X,2)", "Math.pow", "Math", "X", "2", "Math.pow(Y,2)", "Math.pow", "Math", "Y", "2", "if(keisan<=D) {\n\t\t\t\tkosu++;\n\t\t\t}", "keisan<=D", "keisan", "D", "{\n\t\t\t\tkosu++;\n\t\t\t}", "kosu++", "kosu", "System.out.println(kosu)", "System.out.println", "System.out", "System", "System.out", "kosu", "sc.close()", "sc.close", "sc", "String[] args", "args", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint X,Y,kosu;\n\t\tdouble keisan;\n\t\t\n\t\tX=0;\n\t\tY=0;\n\t\tkeisan=0;\n\t\tkosu=0;\n\t\t\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tX = sc.nextInt();\n\t\t\tY = sc.nextInt();\n\t\t\t\n\t\t\tkeisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));\n\t\t\t\n\t\t\tif(keisan<=D) {\n\t\t\t\tkosu++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(kosu);\n\t\tsc.close();\n\t}\n\n}", "public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tint D = sc.nextInt();\n\t\tint X,Y,kosu;\n\t\tdouble keisan;\n\t\t\n\t\tX=0;\n\t\tY=0;\n\t\tkeisan=0;\n\t\tkosu=0;\n\t\t\n\t\tfor(int i=1;i<=N;i++) {\n\t\t\tX = sc.nextInt();\n\t\t\tY = sc.nextInt();\n\t\t\t\n\t\t\tkeisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2));\n\t\t\t\n\t\t\tif(keisan<=D) {\n\t\t\t\tkosu++;\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println(kosu);\n\t\tsc.close();\n\t}\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); int D = sc.nextInt(); int X,Y,kosu; double keisan; X=0; Y=0; keisan=0; kosu=0; for(int i=1;i<=N;i++) { X = sc.nextInt(); Y = sc.nextInt(); keisan = Math.sqrt(Math.pow(X,2)+Math.pow(Y,2)); if(keisan<=D) { kosu++; } } System.out.println(kosu); sc.close(); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 28, 13, 13, 30, 30, 41, 13, 18, 13, 17, 41, 13, 18, 13, 17, 14, 2, 2, 4, 18, 13, 13, 13, 2, 4, 18, 13, 13, 13, 30, 9, 30, 41, 13, 4, 18, 13, 2, 2, 13, 13, 2, 13, 13, 14, 2, 13, 13, 30, 40, 13, 29, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 0, 18, 18, 13, 13, 17, 13, 0, 18, 18, 13, 13, 17, 13, 41, 13, 4, 18, 13, 13, 13, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 149, 5 ], [ 149, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 12, 15 ], [ 16, 16 ], [ 16, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 19, 21 ], [ 16, 22 ], [ 22, 23 ], [ 22, 24 ], [ 24, 25 ], [ 24, 26 ], [ 16, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 30, 33 ], [ 29, 34 ], [ 28, 35 ], [ 35, 36 ], [ 36, 37 ], [ 37, 38 ], [ 36, 39 ], [ 35, 40 ], [ 27, 41 ], [ 41, 42 ], [ 27, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 46, 47 ], [ 47, 48 ], [ 46, 49 ], [ 49, 50 ], [ 50, 51 ], [ 50, 52 ], [ 49, 53 ], [ 53, 54 ], [ 53, 55 ], [ 43, 56 ], [ 56, 57 ], [ 57, 58 ], [ 57, 59 ], [ 56, 60 ], [ 60, 61 ], [ 61, 62 ], [ 8, 63 ], [ 63, 64 ], [ 6, 65 ], [ 65, 66 ], [ 6, 67 ], [ 67, 68 ], [ 6, 69 ], [ 69, 70 ], [ 149, 71 ], [ 71, 72 ], [ 71, 73 ], [ 73, 74 ], [ 74, 75 ], [ 74, 76 ], [ 73, 77 ], [ 77, 78 ], [ 77, 79 ], [ 73, 80 ], [ 80, 81 ], [ 80, 82 ], [ 82, 83 ], [ 83, 84 ], [ 73, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 88, 89 ], [ 73, 90 ], [ 90, 91 ], [ 90, 92 ], [ 73, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 97, 99 ], [ 95, 100 ], [ 100, 101 ], [ 100, 102 ], [ 95, 103 ], [ 103, 104 ], [ 104, 105 ], [ 95, 106 ], [ 107, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 110, 111 ], [ 111, 112 ], [ 107, 113 ], [ 113, 114 ], [ 113, 115 ], [ 115, 116 ], [ 116, 117 ], [ 107, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 120, 122 ], [ 119, 123 ], [ 118, 124 ], [ 107, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 127, 129 ], [ 126, 130 ], [ 125, 131 ], [ 73, 132 ], [ 132, 133 ], [ 132, 134 ], [ 134, 135 ], [ 135, 136 ], [ 134, 137 ], [ 134, 138 ], [ 134, 139 ], [ 73, 140 ], [ 140, 141 ], [ 141, 142 ], [ 142, 143 ], [ 142, 144 ], [ 140, 145 ], [ 71, 146 ], [ 146, 147 ], [ 0, 148 ], [ 148, 149 ], [ 148, 150 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n public int count(int n, double d, int[][] coords) {\n int count = 0;\n for (int[] coord : coords) {\n double x = coord[0];\n double y = coord[1];\n\n if (Math.abs(x) > d || Math.abs(y) > d) {\n continue;\n } else {\n double dist = Math.sqrt(x * x + y * y);\n if (dist <= d) {\n count++;\n }\n }\n }\n return count;\n }\n\n public static void main(String[] args) throws Exception {\n Main solution = new Main();\n\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int d = scanner.nextInt();\n\n int[][] coords = new int[n][2];\n for (int i = 0; i < n; i++) {\n int x = scanner.nextInt();\n int y = scanner.nextInt();\n coords[i][0] = x;\n coords[i][1] = y;\n }\n\n int answer = solution.count(n, d, coords);\n System.out.println(answer);\n }\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n public int count(int n, double d, int[][] coords) {\n int count = 0;\n for (int[] coord : coords) {\n double x = coord[0];\n double y = coord[1];\n\n if (Math.abs(x) > d || Math.abs(y) > d) {\n continue;\n } else {\n double dist = Math.sqrt(x * x + y * y);\n if (dist <= d) {\n count++;\n }\n }\n }\n return count;\n }\n\n public static void main(String[] args) throws Exception {\n Main solution = new Main();\n\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int d = scanner.nextInt();\n\n int[][] coords = new int[n][2];\n for (int i = 0; i < n; i++) {\n int x = scanner.nextInt();\n int y = scanner.nextInt();\n coords[i][0] = x;\n coords[i][1] = y;\n }\n\n int answer = solution.count(n, d, coords);\n System.out.println(answer);\n }\n}", "Main", "public int count(int n, double d, int[][] coords) {\n int count = 0;\n for (int[] coord : coords) {\n double x = coord[0];\n double y = coord[1];\n\n if (Math.abs(x) > d || Math.abs(y) > d) {\n continue;\n } else {\n double dist = Math.sqrt(x * x + y * y);\n if (dist <= d) {\n count++;\n }\n }\n }\n return count;\n }", "count", "{\n int count = 0;\n for (int[] coord : coords) {\n double x = coord[0];\n double y = coord[1];\n\n if (Math.abs(x) > d || Math.abs(y) > d) {\n continue;\n } else {\n double dist = Math.sqrt(x * x + y * y);\n if (dist <= d) {\n count++;\n }\n }\n }\n return count;\n }", "int count = 0;", "count", "0", "for (int[] coord : coords) {\n double x = coord[0];\n double y = coord[1];\n\n if (Math.abs(x) > d || Math.abs(y) > d) {\n continue;\n } else {\n double dist = Math.sqrt(x * x + y * y);\n if (dist <= d) {\n count++;\n }\n }\n }", "int[] coord", "coords", "{\n double x = coord[0];\n double y = coord[1];\n\n if (Math.abs(x) > d || Math.abs(y) > d) {\n continue;\n } else {\n double dist = Math.sqrt(x * x + y * y);\n if (dist <= d) {\n count++;\n }\n }\n }", "{\n double x = coord[0];\n double y = coord[1];\n\n if (Math.abs(x) > d || Math.abs(y) > d) {\n continue;\n } else {\n double dist = Math.sqrt(x * x + y * y);\n if (dist <= d) {\n count++;\n }\n }\n }", "double x = coord[0];", "x", "coord[0]", "coord", "0", "double y = coord[1];", "y", "coord[1]", "coord", "1", "if (Math.abs(x) > d || Math.abs(y) > d) {\n continue;\n } else {\n double dist = Math.sqrt(x * x + y * y);\n if (dist <= d) {\n count++;\n }\n }", "Math.abs(x) > d || Math.abs(y) > d", "Math.abs(x) > d", "Math.abs(x)", "Math.abs", "Math", "x", "d", "Math.abs(y) > d", "Math.abs(y)", "Math.abs", "Math", "y", "d", "{\n continue;\n }", "continue;", "{\n double dist = Math.sqrt(x * x + y * y);\n if (dist <= d) {\n count++;\n }\n }", "double dist = Math.sqrt(x * x + y * y);", "dist", "Math.sqrt(x * x + y * y)", "Math.sqrt", "Math", "x * x + y * y", "x * x", "x", "x", "y * y", "y", "y", "if (dist <= d) {\n count++;\n }", "dist <= d", "dist", "d", "{\n count++;\n }", "count++", "count", "return count;", "count", "int n", "n", "double d", "d", "int[][] coords", "coords", "public static void main(String[] args) throws Exception {\n Main solution = new Main();\n\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int d = scanner.nextInt();\n\n int[][] coords = new int[n][2];\n for (int i = 0; i < n; i++) {\n int x = scanner.nextInt();\n int y = scanner.nextInt();\n coords[i][0] = x;\n coords[i][1] = y;\n }\n\n int answer = solution.count(n, d, coords);\n System.out.println(answer);\n }", "main", "{\n Main solution = new Main();\n\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int d = scanner.nextInt();\n\n int[][] coords = new int[n][2];\n for (int i = 0; i < n; i++) {\n int x = scanner.nextInt();\n int y = scanner.nextInt();\n coords[i][0] = x;\n coords[i][1] = y;\n }\n\n int answer = solution.count(n, d, coords);\n System.out.println(answer);\n }", "Main solution = new Main();", "solution", "new Main()", "Scanner scanner = new Scanner(System.in);", "scanner", "new Scanner(System.in)", "int n = scanner.nextInt();", "n", "scanner.nextInt()", "scanner.nextInt", "scanner", "int d = scanner.nextInt();", "d", "scanner.nextInt()", "scanner.nextInt", "scanner", "int[][] coords = new int[n][2];", "coords", "new int[n][2]", "n", "2", "for (int i = 0; i < n; i++) {\n int x = scanner.nextInt();\n int y = scanner.nextInt();\n coords[i][0] = x;\n coords[i][1] = y;\n }", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n int x = scanner.nextInt();\n int y = scanner.nextInt();\n coords[i][0] = x;\n coords[i][1] = y;\n }", "{\n int x = scanner.nextInt();\n int y = scanner.nextInt();\n coords[i][0] = x;\n coords[i][1] = y;\n }", "int x = scanner.nextInt();", "x", "scanner.nextInt()", "scanner.nextInt", "scanner", "int y = scanner.nextInt();", "y", "scanner.nextInt()", "scanner.nextInt", "scanner", "coords[i][0] = x", "coords[i][0]", "coords[i]", "coords", "i", "0", "x", "coords[i][1] = y", "coords[i][1]", "coords[i]", "coords", "i", "1", "y", "int answer = solution.count(n, d, coords);", "answer", "solution.count(n, d, coords)", "solution.count", "solution", "n", "d", "coords", "System.out.println(answer)", "System.out.println", "System.out", "System", "System.out", "answer", "String[] args", "args", "public class Main {\n public int count(int n, double d, int[][] coords) {\n int count = 0;\n for (int[] coord : coords) {\n double x = coord[0];\n double y = coord[1];\n\n if (Math.abs(x) > d || Math.abs(y) > d) {\n continue;\n } else {\n double dist = Math.sqrt(x * x + y * y);\n if (dist <= d) {\n count++;\n }\n }\n }\n return count;\n }\n\n public static void main(String[] args) throws Exception {\n Main solution = new Main();\n\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int d = scanner.nextInt();\n\n int[][] coords = new int[n][2];\n for (int i = 0; i < n; i++) {\n int x = scanner.nextInt();\n int y = scanner.nextInt();\n coords[i][0] = x;\n coords[i][1] = y;\n }\n\n int answer = solution.count(n, d, coords);\n System.out.println(answer);\n }\n}", "public class Main {\n public int count(int n, double d, int[][] coords) {\n int count = 0;\n for (int[] coord : coords) {\n double x = coord[0];\n double y = coord[1];\n\n if (Math.abs(x) > d || Math.abs(y) > d) {\n continue;\n } else {\n double dist = Math.sqrt(x * x + y * y);\n if (dist <= d) {\n count++;\n }\n }\n }\n return count;\n }\n\n public static void main(String[] args) throws Exception {\n Main solution = new Main();\n\n Scanner scanner = new Scanner(System.in);\n int n = scanner.nextInt();\n int d = scanner.nextInt();\n\n int[][] coords = new int[n][2];\n for (int i = 0; i < n; i++) {\n int x = scanner.nextInt();\n int y = scanner.nextInt();\n coords[i][0] = x;\n coords[i][1] = y;\n }\n\n int answer = solution.count(n, d, coords);\n System.out.println(answer);\n }\n}", "Main" ]
import java.util.Scanner; public class Main { public int count(int n, double d, int[][] coords) { int count = 0; for (int[] coord : coords) { double x = coord[0]; double y = coord[1]; if (Math.abs(x) > d || Math.abs(y) > d) { continue; } else { double dist = Math.sqrt(x * x + y * y); if (dist <= d) { count++; } } } return count; } public static void main(String[] args) throws Exception { Main solution = new Main(); Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); int d = scanner.nextInt(); int[][] coords = new int[n][2]; for (int i = 0; i < n; i++) { int x = scanner.nextInt(); int y = scanner.nextInt(); coords[i][0] = x; coords[i][1] = y; } int answer = solution.count(n, d, coords); System.out.println(answer); } }
[ 7, 15, 13, 17, 6, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 41, 13, 20, 12, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 2, 13, 13, 11, 1, 0, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 14, 2, 13, 17, 30, 0, 13, 2, 13, 40, 17, 14, 2, 13, 17, 30, 0, 13, 2, 13, 40, 17, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 0, 13, 2, 13, 13, 14, 2, 13, 13, 30, 0, 13, 2, 13, 17, 4, 18, 18, 13, 13, 13, 12, 13, 30, 4, 18, 20, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 132, 5 ], [ 132, 6 ], [ 6, 7 ], [ 132, 8 ], [ 8, 9 ], [ 132, 10 ], [ 10, 11 ], [ 132, 12 ], [ 12, 13 ], [ 132, 14 ], [ 14, 15 ], [ 132, 16 ], [ 16, 17 ], [ 132, 18 ], [ 18, 19 ], [ 132, 20 ], [ 20, 21 ], [ 132, 22 ], [ 22, 23 ], [ 132, 24 ], [ 24, 25 ], [ 132, 26 ], [ 26, 27 ], [ 26, 28 ], [ 132, 29 ], [ 29, 30 ], [ 29, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 34, 35 ], [ 35, 36 ], [ 31, 37 ], [ 37, 38 ], [ 37, 39 ], [ 39, 40 ], [ 40, 41 ], [ 31, 42 ], [ 42, 43 ], [ 42, 44 ], [ 44, 45 ], [ 44, 46 ], [ 31, 47 ], [ 47, 48 ], [ 48, 49 ], [ 49, 50 ], [ 49, 51 ], [ 47, 52 ], [ 52, 53 ], [ 52, 54 ], [ 47, 55 ], [ 55, 56 ], [ 56, 57 ], [ 47, 58 ], [ 59, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 62, 63 ], [ 63, 64 ], [ 59, 65 ], [ 65, 66 ], [ 65, 67 ], [ 67, 68 ], [ 68, 69 ], [ 59, 70 ], [ 70, 71 ], [ 71, 72 ], [ 71, 73 ], [ 70, 74 ], [ 74, 75 ], [ 75, 76 ], [ 75, 77 ], [ 77, 78 ], [ 77, 79 ], [ 79, 80 ], [ 70, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 81, 85 ], [ 85, 86 ], [ 86, 87 ], [ 86, 88 ], [ 88, 89 ], [ 88, 90 ], [ 90, 91 ], [ 59, 92 ], [ 92, 93 ], [ 92, 94 ], [ 94, 95 ], [ 94, 96 ], [ 59, 97 ], [ 97, 98 ], [ 97, 99 ], [ 99, 100 ], [ 99, 101 ], [ 59, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 104, 106 ], [ 59, 107 ], [ 107, 108 ], [ 108, 109 ], [ 108, 110 ], [ 107, 111 ], [ 111, 112 ], [ 112, 113 ], [ 112, 114 ], [ 114, 115 ], [ 114, 116 ], [ 31, 117 ], [ 117, 118 ], [ 118, 119 ], [ 119, 120 ], [ 119, 121 ], [ 117, 122 ], [ 132, 123 ], [ 123, 124 ], [ 123, 125 ], [ 125, 126 ], [ 126, 127 ], [ 127, 128 ], [ 123, 129 ], [ 129, 130 ], [ 0, 131 ], [ 131, 132 ], [ 131, 133 ] ]
[ "import java.util.Scanner;\npublic class Main {\n\t//int ;\n\tlong m,hun,as,kl,o,n,p,k,l;\n\tString op;\n\tScanner sc = new Scanner(System.in);\n\tpublic void solve() {\t\nn=sc.nextInt();\nm=sc.nextInt();\nm=m*m;\nfor(o=0;o<n;o++) {\n\tas=sc.nextInt();\n\tkl=sc.nextInt();\n\tif(kl<0) {\n\t\tkl=kl*-1;\n\t}else if(as<0) {\n\t\tas=as*-1;\n\t}\n\t\n\tk=as*as;\n\tl=kl*kl;\n\thun=k+l;\n\tif(m>=hun) {\n\t\tp=p+1;\n\t}\n}\nSystem.out.println(p);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().solve();\n\t\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\t//int ;\n\tlong m,hun,as,kl,o,n,p,k,l;\n\tString op;\n\tScanner sc = new Scanner(System.in);\n\tpublic void solve() {\t\nn=sc.nextInt();\nm=sc.nextInt();\nm=m*m;\nfor(o=0;o<n;o++) {\n\tas=sc.nextInt();\n\tkl=sc.nextInt();\n\tif(kl<0) {\n\t\tkl=kl*-1;\n\t}else if(as<0) {\n\t\tas=as*-1;\n\t}\n\t\n\tk=as*as;\n\tl=kl*kl;\n\thun=k+l;\n\tif(m>=hun) {\n\t\tp=p+1;\n\t}\n}\nSystem.out.println(p);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().solve();\n\t\n\t}\n}", "Main", "//int ;\n\tlong m", "m", "hun", "hun", "as", "as", "kl", "kl", "o", "o", "n", "n", "p", "p", "k", "k", "l;", "l", "String op;", "op", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "public void solve() {\t\nn=sc.nextInt();\nm=sc.nextInt();\nm=m*m;\nfor(o=0;o<n;o++) {\n\tas=sc.nextInt();\n\tkl=sc.nextInt();\n\tif(kl<0) {\n\t\tkl=kl*-1;\n\t}else if(as<0) {\n\t\tas=as*-1;\n\t}\n\t\n\tk=as*as;\n\tl=kl*kl;\n\thun=k+l;\n\tif(m>=hun) {\n\t\tp=p+1;\n\t}\n}\nSystem.out.println(p);\n\t}", "solve", "{\t\nn=sc.nextInt();\nm=sc.nextInt();\nm=m*m;\nfor(o=0;o<n;o++) {\n\tas=sc.nextInt();\n\tkl=sc.nextInt();\n\tif(kl<0) {\n\t\tkl=kl*-1;\n\t}else if(as<0) {\n\t\tas=as*-1;\n\t}\n\t\n\tk=as*as;\n\tl=kl*kl;\n\thun=k+l;\n\tif(m>=hun) {\n\t\tp=p+1;\n\t}\n}\nSystem.out.println(p);\n\t}", "n=sc.nextInt()", "n", "sc.nextInt()", "sc.nextInt", "sc", "m=sc.nextInt()", "m", "sc.nextInt()", "sc.nextInt", "sc", "m=m*m", "m", "m*m", "m", "m", "for(o=0;o<n;o++) {\n\tas=sc.nextInt();\n\tkl=sc.nextInt();\n\tif(kl<0) {\n\t\tkl=kl*-1;\n\t}else if(as<0) {\n\t\tas=as*-1;\n\t}\n\t\n\tk=as*as;\n\tl=kl*kl;\n\thun=k+l;\n\tif(m>=hun) {\n\t\tp=p+1;\n\t}\n}", "o=0;", "o=0", "o", "0", "o<n", "o", "n", "o++", "o++", "o", "{\n\tas=sc.nextInt();\n\tkl=sc.nextInt();\n\tif(kl<0) {\n\t\tkl=kl*-1;\n\t}else if(as<0) {\n\t\tas=as*-1;\n\t}\n\t\n\tk=as*as;\n\tl=kl*kl;\n\thun=k+l;\n\tif(m>=hun) {\n\t\tp=p+1;\n\t}\n}", "{\n\tas=sc.nextInt();\n\tkl=sc.nextInt();\n\tif(kl<0) {\n\t\tkl=kl*-1;\n\t}else if(as<0) {\n\t\tas=as*-1;\n\t}\n\t\n\tk=as*as;\n\tl=kl*kl;\n\thun=k+l;\n\tif(m>=hun) {\n\t\tp=p+1;\n\t}\n}", "as=sc.nextInt()", "as", "sc.nextInt()", "sc.nextInt", "sc", "kl=sc.nextInt()", "kl", "sc.nextInt()", "sc.nextInt", "sc", "if(kl<0) {\n\t\tkl=kl*-1;\n\t}else if(as<0) {\n\t\tas=as*-1;\n\t}", "kl<0", "kl", "0", "{\n\t\tkl=kl*-1;\n\t}", "kl=kl*-1", "kl", "kl*-1", "kl", "-1", "1", "if(as<0) {\n\t\tas=as*-1;\n\t}", "as<0", "as", "0", "{\n\t\tas=as*-1;\n\t}", "as=as*-1", "as", "as*-1", "as", "-1", "1", "k=as*as", "k", "as*as", "as", "as", "l=kl*kl", "l", "kl*kl", "kl", "kl", "hun=k+l", "hun", "k+l", "k", "l", "if(m>=hun) {\n\t\tp=p+1;\n\t}", "m>=hun", "m", "hun", "{\n\t\tp=p+1;\n\t}", "p=p+1", "p", "p+1", "p", "1", "System.out.println(p)", "System.out.println", "System.out", "System", "System.out", "p", "public static void main(String[] args) {\n\t\tnew Main().solve();\n\t\n\t}", "main", "{\n\t\tnew Main().solve();\n\t\n\t}", "new Main().solve()", "new Main().solve", "new Main()", "String[] args", "args", "public class Main {\n\t//int ;\n\tlong m,hun,as,kl,o,n,p,k,l;\n\tString op;\n\tScanner sc = new Scanner(System.in);\n\tpublic void solve() {\t\nn=sc.nextInt();\nm=sc.nextInt();\nm=m*m;\nfor(o=0;o<n;o++) {\n\tas=sc.nextInt();\n\tkl=sc.nextInt();\n\tif(kl<0) {\n\t\tkl=kl*-1;\n\t}else if(as<0) {\n\t\tas=as*-1;\n\t}\n\t\n\tk=as*as;\n\tl=kl*kl;\n\thun=k+l;\n\tif(m>=hun) {\n\t\tp=p+1;\n\t}\n}\nSystem.out.println(p);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().solve();\n\t\n\t}\n}", "public class Main {\n\t//int ;\n\tlong m,hun,as,kl,o,n,p,k,l;\n\tString op;\n\tScanner sc = new Scanner(System.in);\n\tpublic void solve() {\t\nn=sc.nextInt();\nm=sc.nextInt();\nm=m*m;\nfor(o=0;o<n;o++) {\n\tas=sc.nextInt();\n\tkl=sc.nextInt();\n\tif(kl<0) {\n\t\tkl=kl*-1;\n\t}else if(as<0) {\n\t\tas=as*-1;\n\t}\n\t\n\tk=as*as;\n\tl=kl*kl;\n\thun=k+l;\n\tif(m>=hun) {\n\t\tp=p+1;\n\t}\n}\nSystem.out.println(p);\n\t}\n\tpublic static void main(String[] args) {\n\t\tnew Main().solve();\n\t\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { //int ; long m,hun,as,kl,o,n,p,k,l; String op; Scanner sc = new Scanner(System.in); public void solve() { n=sc.nextInt(); m=sc.nextInt(); m=m*m; for(o=0;o<n;o++) { as=sc.nextInt(); kl=sc.nextInt(); if(kl<0) { kl=kl*-1; }else if(as<0) { as=as*-1; } k=as*as; l=kl*kl; hun=k+l; if(m>=hun) { p=p+1; } } System.out.println(p); } public static void main(String[] args) { new Main().solve(); } }
[ 7, 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, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 41, 13, 4, 18, 13, 2, 2, 13, 13, 2, 13, 13, 14, 2, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 83, 5 ], [ 83, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 8, 24 ], [ 24, 25 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 29 ], [ 29, 30 ], [ 30, 31 ], [ 31, 32 ], [ 31, 33 ], [ 29, 34 ], [ 34, 35 ], [ 34, 36 ], [ 29, 37 ], [ 37, 38 ], [ 38, 39 ], [ 29, 40 ], [ 41, 41 ], [ 41, 42 ], [ 42, 43 ], [ 43, 44 ], [ 41, 45 ], [ 45, 46 ], [ 45, 47 ], [ 47, 48 ], [ 48, 49 ], [ 41, 50 ], [ 50, 51 ], [ 50, 52 ], [ 52, 53 ], [ 53, 54 ], [ 41, 55 ], [ 55, 56 ], [ 55, 57 ], [ 57, 58 ], [ 58, 59 ], [ 57, 60 ], [ 60, 61 ], [ 61, 62 ], [ 61, 63 ], [ 60, 64 ], [ 64, 65 ], [ 64, 66 ], [ 41, 67 ], [ 67, 68 ], [ 68, 69 ], [ 68, 70 ], [ 67, 71 ], [ 71, 72 ], [ 72, 73 ], [ 8, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 76, 78 ], [ 74, 79 ], [ 6, 80 ], [ 80, 81 ], [ 0, 82 ], [ 82, 83 ], [ 82, 84 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\t int d = sc.nextInt();\n\t long x, y;\n\t int c = 0;\n\t for (int i=0; i < n ; i++) {\n sc.nextLine();\n x = sc.nextInt();\n y = sc.nextInt();\n double dxy = Math.sqrt((x*x) + (y*y));\n if (dxy <= d) {\n \tc++;\n }\n }\n\t System.out.println(c);\n\t}\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\t int d = sc.nextInt();\n\t long x, y;\n\t int c = 0;\n\t for (int i=0; i < n ; i++) {\n sc.nextLine();\n x = sc.nextInt();\n y = sc.nextInt();\n double dxy = Math.sqrt((x*x) + (y*y));\n if (dxy <= d) {\n \tc++;\n }\n }\n\t System.out.println(c);\n\t}\n}", "Main", "public static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\t int d = sc.nextInt();\n\t long x, y;\n\t int c = 0;\n\t for (int i=0; i < n ; i++) {\n sc.nextLine();\n x = sc.nextInt();\n y = sc.nextInt();\n double dxy = Math.sqrt((x*x) + (y*y));\n if (dxy <= d) {\n \tc++;\n }\n }\n\t System.out.println(c);\n\t}", "main", "{\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\t int d = sc.nextInt();\n\t long x, y;\n\t int c = 0;\n\t for (int i=0; i < n ; i++) {\n sc.nextLine();\n x = sc.nextInt();\n y = sc.nextInt();\n double dxy = Math.sqrt((x*x) + (y*y));\n if (dxy <= d) {\n \tc++;\n }\n }\n\t System.out.println(c);\n\t}", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int d = sc.nextInt();", "d", "sc.nextInt()", "sc.nextInt", "sc", "long x", "x", "y;", "y", "int c = 0;", "c", "0", "for (int i=0; i < n ; i++) {\n sc.nextLine();\n x = sc.nextInt();\n y = sc.nextInt();\n double dxy = Math.sqrt((x*x) + (y*y));\n if (dxy <= d) {\n \tc++;\n }\n }", "int i=0;", "int i=0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n sc.nextLine();\n x = sc.nextInt();\n y = sc.nextInt();\n double dxy = Math.sqrt((x*x) + (y*y));\n if (dxy <= d) {\n \tc++;\n }\n }", "{\n sc.nextLine();\n x = sc.nextInt();\n y = sc.nextInt();\n double dxy = Math.sqrt((x*x) + (y*y));\n if (dxy <= d) {\n \tc++;\n }\n }", "sc.nextLine()", "sc.nextLine", "sc", "x = sc.nextInt()", "x", "sc.nextInt()", "sc.nextInt", "sc", "y = sc.nextInt()", "y", "sc.nextInt()", "sc.nextInt", "sc", "double dxy = Math.sqrt((x*x) + (y*y));", "dxy", "Math.sqrt((x*x) + (y*y))", "Math.sqrt", "Math", "(x*x) + (y*y)", "(x*x)", "x", "x", "(y*y)", "y", "y", "if (dxy <= d) {\n \tc++;\n }", "dxy <= d", "dxy", "d", "{\n \tc++;\n }", "c++", "c", "System.out.println(c)", "System.out.println", "System.out", "System", "System.out", "c", "String[] args", "args", "public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\t int d = sc.nextInt();\n\t long x, y;\n\t int c = 0;\n\t for (int i=0; i < n ; i++) {\n sc.nextLine();\n x = sc.nextInt();\n y = sc.nextInt();\n double dxy = Math.sqrt((x*x) + (y*y));\n if (dxy <= d) {\n \tc++;\n }\n }\n\t System.out.println(c);\n\t}\n}", "public class Main {\n\tpublic static void main(String[] args) {\n\t Scanner sc = new Scanner(System.in);\n\t int n = sc.nextInt();\n\t int d = sc.nextInt();\n\t long x, y;\n\t int c = 0;\n\t for (int i=0; i < n ; i++) {\n sc.nextLine();\n x = sc.nextInt();\n y = sc.nextInt();\n double dxy = Math.sqrt((x*x) + (y*y));\n if (dxy <= d) {\n \tc++;\n }\n }\n\t System.out.println(c);\n\t}\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int d = sc.nextInt(); long x, y; int c = 0; for (int i=0; i < n ; i++) { sc.nextLine(); x = sc.nextInt(); y = sc.nextInt(); double dxy = Math.sqrt((x*x) + (y*y)); if (dxy <= d) { c++; } } System.out.println(c); } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 2, 13, 13, 40, 13, 29, 13, 23, 13, 23, 13, 23, 13, 23, 13, 12, 13, 30, 41, 13, 20, 41, 13, 17, 41, 13, 17, 41, 13, 20, 17, 41, 13, 20, 17, 42, 4, 18, 13, 30, 0, 13, 4, 18, 13, 0, 13, 4, 18, 13, 0, 13, 20, 13, 0, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 4, 18, 13, 4, 18, 18, 13, 13, 4, 13, 13, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 144, 5 ], [ 144, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 13, 14 ], [ 14, 15 ], [ 14, 16 ], [ 12, 17 ], [ 17, 18 ], [ 17, 19 ], [ 12, 20 ], [ 20, 21 ], [ 21, 22 ], [ 12, 23 ], [ 24, 24 ], [ 24, 25 ], [ 25, 26 ], [ 26, 27 ], [ 27, 28 ], [ 28, 29 ], [ 29, 30 ], [ 29, 31 ], [ 28, 32 ], [ 32, 33 ], [ 32, 34 ], [ 27, 35 ], [ 35, 36 ], [ 36, 37 ], [ 36, 38 ], [ 35, 39 ], [ 39, 40 ], [ 39, 41 ], [ 26, 42 ], [ 42, 43 ], [ 42, 44 ], [ 25, 45 ], [ 45, 46 ], [ 8, 47 ], [ 47, 48 ], [ 6, 49 ], [ 49, 50 ], [ 6, 51 ], [ 51, 52 ], [ 6, 53 ], [ 53, 54 ], [ 6, 55 ], [ 55, 56 ], [ 144, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 60, 62 ], [ 59, 63 ], [ 63, 64 ], [ 63, 65 ], [ 59, 66 ], [ 66, 67 ], [ 66, 68 ], [ 59, 69 ], [ 69, 70 ], [ 69, 71 ], [ 59, 73 ], [ 73, 74 ], [ 73, 75 ], [ 59, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 77, 81 ], [ 81, 82 ], [ 82, 83 ], [ 82, 84 ], [ 84, 85 ], [ 85, 86 ], [ 81, 87 ], [ 87, 88 ], [ 87, 89 ], [ 89, 90 ], [ 90, 91 ], [ 81, 92 ], [ 92, 93 ], [ 92, 94 ], [ 81, 96 ], [ 96, 97 ], [ 96, 98 ], [ 81, 100 ], [ 100, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 100, 105 ], [ 105, 106 ], [ 105, 107 ], [ 100, 108 ], [ 108, 109 ], [ 109, 110 ], [ 100, 111 ], [ 112, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 114, 116 ], [ 113, 117 ], [ 117, 118 ], [ 118, 119 ], [ 112, 120 ], [ 120, 121 ], [ 121, 122 ], [ 121, 123 ], [ 120, 124 ], [ 124, 125 ], [ 125, 126 ], [ 59, 127 ], [ 127, 128 ], [ 128, 129 ], [ 59, 130 ], [ 130, 131 ], [ 131, 132 ], [ 132, 133 ], [ 132, 134 ], [ 130, 135 ], [ 135, 136 ], [ 135, 137 ], [ 135, 138 ], [ 135, 139 ], [ 135, 140 ], [ 57, 141 ], [ 141, 142 ], [ 0, 143 ], [ 143, 144 ], [ 143, 145 ] ]
[ "import java.util.*;\n\npublic class Main{\n public static int calculatePoints(int n,int d,int[] a,int[] b){\n int ret = 0;\n for(int i=0;i<n;i++){\n if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++;\n }\n return ret;\n }\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = 0,D = 0;\n int[] X = new int[1];\n int[] Y = new int[1];\n\n while(sc.hasNext()){\n N = sc.nextInt();\n D = sc.nextInt();\n X = new int[N];\n Y = new int[N];\n for(int i=0;i<N;i++){\n X[i] = sc.nextInt();;\n Y[i] = sc.nextInt();\n }\n }\n sc.close();\n System.out.println(calculatePoints(N,D,X,Y));\n\n /*int N = 12;\n int D = 3;\n int[] X = {1,1,1,1,1,1,2,2,2,3,3,3};\n int[] Y = {1,1,1,1,2,3,1,2,3,1,2,3};\n System.out.println(calculatePoints(N,D,X,Y));*/\n }\n}", "import java.util.*;", "util.*", "java", "public class Main{\n public static int calculatePoints(int n,int d,int[] a,int[] b){\n int ret = 0;\n for(int i=0;i<n;i++){\n if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++;\n }\n return ret;\n }\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = 0,D = 0;\n int[] X = new int[1];\n int[] Y = new int[1];\n\n while(sc.hasNext()){\n N = sc.nextInt();\n D = sc.nextInt();\n X = new int[N];\n Y = new int[N];\n for(int i=0;i<N;i++){\n X[i] = sc.nextInt();;\n Y[i] = sc.nextInt();\n }\n }\n sc.close();\n System.out.println(calculatePoints(N,D,X,Y));\n\n /*int N = 12;\n int D = 3;\n int[] X = {1,1,1,1,1,1,2,2,2,3,3,3};\n int[] Y = {1,1,1,1,2,3,1,2,3,1,2,3};\n System.out.println(calculatePoints(N,D,X,Y));*/\n }\n}", "Main", "public static int calculatePoints(int n,int d,int[] a,int[] b){\n int ret = 0;\n for(int i=0;i<n;i++){\n if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++;\n }\n return ret;\n }", "calculatePoints", "{\n int ret = 0;\n for(int i=0;i<n;i++){\n if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++;\n }\n return ret;\n }", "int ret = 0;", "ret", "0", "for(int i=0;i<n;i++){\n if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "i++", "i++", "i", "{\n if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++;\n }", "{\n if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++;\n }", "if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++;", "(long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d", "(long)a[i]*a[i]+(long)b[i]*b[i]", "(long)a[i]*a[i]", "(long)a[i]", "a", "i", "a[i]", "a", "i", "(long)b[i]*b[i]", "(long)b[i]", "b", "i", "b[i]", "b", "i", "(long)d*d", "(long)d", "d", "ret++", "ret", "return ret;", "ret", "int n", "n", "int d", "d", "int[] a", "a", "int[] b", "b", "public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = 0,D = 0;\n int[] X = new int[1];\n int[] Y = new int[1];\n\n while(sc.hasNext()){\n N = sc.nextInt();\n D = sc.nextInt();\n X = new int[N];\n Y = new int[N];\n for(int i=0;i<N;i++){\n X[i] = sc.nextInt();;\n Y[i] = sc.nextInt();\n }\n }\n sc.close();\n System.out.println(calculatePoints(N,D,X,Y));\n\n /*int N = 12;\n int D = 3;\n int[] X = {1,1,1,1,1,1,2,2,2,3,3,3};\n int[] Y = {1,1,1,1,2,3,1,2,3,1,2,3};\n System.out.println(calculatePoints(N,D,X,Y));*/\n }", "main", "{\n Scanner sc = new Scanner(System.in);\n int N = 0,D = 0;\n int[] X = new int[1];\n int[] Y = new int[1];\n\n while(sc.hasNext()){\n N = sc.nextInt();\n D = sc.nextInt();\n X = new int[N];\n Y = new int[N];\n for(int i=0;i<N;i++){\n X[i] = sc.nextInt();;\n Y[i] = sc.nextInt();\n }\n }\n sc.close();\n System.out.println(calculatePoints(N,D,X,Y));\n\n /*int N = 12;\n int D = 3;\n int[] X = {1,1,1,1,1,1,2,2,2,3,3,3};\n int[] Y = {1,1,1,1,2,3,1,2,3,1,2,3};\n System.out.println(calculatePoints(N,D,X,Y));*/\n }", "Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int N = 0", "N", "0", "D = 0;", "D", "0", "int[] X = new int[1];", "X", "new int[1]", "1", "int[] Y = new int[1];", "Y", "new int[1]", "1", "while(sc.hasNext()){\n N = sc.nextInt();\n D = sc.nextInt();\n X = new int[N];\n Y = new int[N];\n for(int i=0;i<N;i++){\n X[i] = sc.nextInt();;\n Y[i] = sc.nextInt();\n }\n }", "sc.hasNext()", "sc.hasNext", "sc", "{\n N = sc.nextInt();\n D = sc.nextInt();\n X = new int[N];\n Y = new int[N];\n for(int i=0;i<N;i++){\n X[i] = sc.nextInt();;\n Y[i] = sc.nextInt();\n }\n }", "N = sc.nextInt()", "N", "sc.nextInt()", "sc.nextInt", "sc", "D = sc.nextInt()", "D", "sc.nextInt()", "sc.nextInt", "sc", "X = new int[N]", "X", "new int[N]", "N", "Y = new int[N]", "Y", "new int[N]", "N", "for(int i=0;i<N;i++){\n X[i] = sc.nextInt();;\n Y[i] = sc.nextInt();\n }", "int i=0;", "int i=0;", "i", "0", "i<N", "i", "N", "i++", "i++", "i", "{\n X[i] = sc.nextInt();;\n Y[i] = sc.nextInt();\n }", "{\n X[i] = sc.nextInt();;\n Y[i] = sc.nextInt();\n }", "X[i] = sc.nextInt()", "X[i]", "X", "i", "sc.nextInt()", "sc.nextInt", "sc", "Y[i] = sc.nextInt()", "Y[i]", "Y", "i", "sc.nextInt()", "sc.nextInt", "sc", "sc.close()", "sc.close", "sc", "System.out.println(calculatePoints(N,D,X,Y))", "System.out.println", "System.out", "System", "System.out", "calculatePoints(N,D,X,Y)", "calculatePoints", "N", "D", "X", "Y", "String[] args", "args", "public class Main{\n public static int calculatePoints(int n,int d,int[] a,int[] b){\n int ret = 0;\n for(int i=0;i<n;i++){\n if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++;\n }\n return ret;\n }\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = 0,D = 0;\n int[] X = new int[1];\n int[] Y = new int[1];\n\n while(sc.hasNext()){\n N = sc.nextInt();\n D = sc.nextInt();\n X = new int[N];\n Y = new int[N];\n for(int i=0;i<N;i++){\n X[i] = sc.nextInt();;\n Y[i] = sc.nextInt();\n }\n }\n sc.close();\n System.out.println(calculatePoints(N,D,X,Y));\n\n /*int N = 12;\n int D = 3;\n int[] X = {1,1,1,1,1,1,2,2,2,3,3,3};\n int[] Y = {1,1,1,1,2,3,1,2,3,1,2,3};\n System.out.println(calculatePoints(N,D,X,Y));*/\n }\n}", "public class Main{\n public static int calculatePoints(int n,int d,int[] a,int[] b){\n int ret = 0;\n for(int i=0;i<n;i++){\n if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++;\n }\n return ret;\n }\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int N = 0,D = 0;\n int[] X = new int[1];\n int[] Y = new int[1];\n\n while(sc.hasNext()){\n N = sc.nextInt();\n D = sc.nextInt();\n X = new int[N];\n Y = new int[N];\n for(int i=0;i<N;i++){\n X[i] = sc.nextInt();;\n Y[i] = sc.nextInt();\n }\n }\n sc.close();\n System.out.println(calculatePoints(N,D,X,Y));\n\n /*int N = 12;\n int D = 3;\n int[] X = {1,1,1,1,1,1,2,2,2,3,3,3};\n int[] Y = {1,1,1,1,2,3,1,2,3,1,2,3};\n System.out.println(calculatePoints(N,D,X,Y));*/\n }\n}", "Main" ]
import java.util.*; public class Main{ public static int calculatePoints(int n,int d,int[] a,int[] b){ int ret = 0; for(int i=0;i<n;i++){ if((long)a[i]*a[i]+(long)b[i]*b[i]<=(long)d*d) ret++; } return ret; } public static void main(String[] args){ Scanner sc = new Scanner(System.in); int N = 0,D = 0; int[] X = new int[1]; int[] Y = new int[1]; while(sc.hasNext()){ N = sc.nextInt(); D = sc.nextInt(); X = new int[N]; Y = new int[N]; for(int i=0;i<N;i++){ X[i] = sc.nextInt();; Y[i] = sc.nextInt(); } } sc.close(); System.out.println(calculatePoints(N,D,X,Y)); /*int N = 12; int D = 3; int[] X = {1,1,1,1,1,1,2,2,2,3,3,3}; int[] Y = {1,1,1,1,2,3,1,2,3,1,2,3}; System.out.println(calculatePoints(N,D,X,Y));*/ } }
[ 7, 15, 13, 17, 6, 13, 12, 13, 30, 41, 13, 20, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 20, 13, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 0, 18, 13, 13, 4, 18, 13, 0, 18, 13, 13, 4, 18, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 14, 2, 2, 2, 18, 13, 13, 18, 13, 13, 2, 18, 13, 13, 18, 13, 13, 2, 13, 13, 30, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 105, 5 ], [ 105, 6 ], [ 6, 7 ], [ 6, 8 ], [ 8, 9 ], [ 9, 10 ], [ 9, 11 ], [ 8, 12 ], [ 12, 13 ], [ 12, 14 ], [ 14, 15 ], [ 15, 16 ], [ 8, 17 ], [ 17, 18 ], [ 17, 19 ], [ 19, 20 ], [ 20, 21 ], [ 8, 22 ], [ 22, 23 ], [ 22, 24 ], [ 8, 26 ], [ 26, 27 ], [ 26, 28 ], [ 8, 30 ], [ 30, 31 ], [ 31, 32 ], [ 32, 33 ], [ 32, 34 ], [ 30, 35 ], [ 35, 36 ], [ 35, 37 ], [ 30, 38 ], [ 38, 39 ], [ 39, 40 ], [ 30, 41 ], [ 42, 42 ], [ 42, 43 ], [ 43, 44 ], [ 44, 45 ], [ 44, 46 ], [ 43, 47 ], [ 47, 48 ], [ 48, 49 ], [ 42, 50 ], [ 50, 51 ], [ 51, 52 ], [ 51, 53 ], [ 50, 54 ], [ 54, 55 ], [ 55, 56 ], [ 8, 57 ], [ 57, 58 ], [ 57, 59 ], [ 8, 60 ], [ 60, 61 ], [ 61, 62 ], [ 62, 63 ], [ 62, 64 ], [ 60, 65 ], [ 65, 66 ], [ 65, 67 ], [ 60, 68 ], [ 68, 69 ], [ 69, 70 ], [ 60, 71 ], [ 72, 72 ], [ 72, 73 ], [ 73, 74 ], [ 74, 75 ], [ 75, 76 ], [ 76, 77 ], [ 77, 78 ], [ 77, 79 ], [ 76, 80 ], [ 80, 81 ], [ 80, 82 ], [ 75, 83 ], [ 83, 84 ], [ 84, 85 ], [ 84, 86 ], [ 83, 87 ], [ 87, 88 ], [ 87, 89 ], [ 74, 90 ], [ 90, 91 ], [ 90, 92 ], [ 73, 93 ], [ 93, 94 ], [ 94, 95 ], [ 8, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 98, 100 ], [ 96, 101 ], [ 6, 102 ], [ 102, 103 ], [ 0, 104 ], [ 104, 105 ], [ 104, 106 ] ]
[ "import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0 ; i < n ; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n int ans = 0;\n for (int i = 0 ; i < n ; i++) {\n if ((long) x[i] * x[i] + (long) y[i] * y[i] <= (long) d * d) {\n ans ++;\n }\n }\n System.out.println(ans);\n }\n\n}", "import java.util.Scanner;", "Scanner", "java.util", "public class Main {\n\n public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0 ; i < n ; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n int ans = 0;\n for (int i = 0 ; i < n ; i++) {\n if ((long) x[i] * x[i] + (long) y[i] * y[i] <= (long) d * d) {\n ans ++;\n }\n }\n System.out.println(ans);\n }\n\n}", "Main", "public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0 ; i < n ; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n int ans = 0;\n for (int i = 0 ; i < n ; i++) {\n if ((long) x[i] * x[i] + (long) y[i] * y[i] <= (long) d * d) {\n ans ++;\n }\n }\n System.out.println(ans);\n }", "main", "{\n @SuppressWarnings(\"resource\")\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0 ; i < n ; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n int ans = 0;\n for (int i = 0 ; i < n ; i++) {\n if ((long) x[i] * x[i] + (long) y[i] * y[i] <= (long) d * d) {\n ans ++;\n }\n }\n System.out.println(ans);\n }", "@SuppressWarnings(\"resource\")\n Scanner sc = new Scanner(System.in);", "sc", "new Scanner(System.in)", "int n = sc.nextInt();", "n", "sc.nextInt()", "sc.nextInt", "sc", "int d = sc.nextInt();", "d", "sc.nextInt()", "sc.nextInt", "sc", "int[] x = new int[n];", "x", "new int[n]", "n", "int[] y = new int[n];", "y", "new int[n]", "n", "for (int i = 0 ; i < n ; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }", "{\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }", "x[i] = sc.nextInt()", "x[i]", "x", "i", "sc.nextInt()", "sc.nextInt", "sc", "y[i] = sc.nextInt()", "y[i]", "y", "i", "sc.nextInt()", "sc.nextInt", "sc", "int ans = 0;", "ans", "0", "for (int i = 0 ; i < n ; i++) {\n if ((long) x[i] * x[i] + (long) y[i] * y[i] <= (long) d * d) {\n ans ++;\n }\n }", "int i = 0 ;", "int i = 0 ;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "{\n if ((long) x[i] * x[i] + (long) y[i] * y[i] <= (long) d * d) {\n ans ++;\n }\n }", "{\n if ((long) x[i] * x[i] + (long) y[i] * y[i] <= (long) d * d) {\n ans ++;\n }\n }", "if ((long) x[i] * x[i] + (long) y[i] * y[i] <= (long) d * d) {\n ans ++;\n }", "(long) x[i] * x[i] + (long) y[i] * y[i] <= (long) d * d", "(long) x[i] * x[i] + (long) y[i] * y[i]", "(long) x[i] * x[i]", "(long) x[i]", "x", "i", "x[i]", "x", "i", "(long) y[i] * y[i]", "(long) y[i]", "y", "i", "y[i]", "y", "i", "(long) d * d", "(long) d", "d", "{\n ans ++;\n }", "ans ++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "public class Main {\n\n public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0 ; i < n ; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n int ans = 0;\n for (int i = 0 ; i < n ; i++) {\n if ((long) x[i] * x[i] + (long) y[i] * y[i] <= (long) d * d) {\n ans ++;\n }\n }\n System.out.println(ans);\n }\n\n}", "public class Main {\n\n public static void main(String[] args) {\n @SuppressWarnings(\"resource\")\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int d = sc.nextInt();\n int[] x = new int[n];\n int[] y = new int[n];\n for (int i = 0 ; i < n ; i++) {\n x[i] = sc.nextInt();\n y[i] = sc.nextInt();\n }\n int ans = 0;\n for (int i = 0 ; i < n ; i++) {\n if ((long) x[i] * x[i] + (long) y[i] * y[i] <= (long) d * d) {\n ans ++;\n }\n }\n System.out.println(ans);\n }\n\n}", "Main" ]
import java.util.Scanner; public class Main { public static void main(String[] args) { @SuppressWarnings("resource") Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int d = sc.nextInt(); int[] x = new int[n]; int[] y = new int[n]; for (int i = 0 ; i < n ; i++) { x[i] = sc.nextInt(); y[i] = sc.nextInt(); } int ans = 0; for (int i = 0 ; i < n ; i++) { if ((long) x[i] * x[i] + (long) y[i] * y[i] <= (long) d * d) { ans ++; } } System.out.println(ans); } }
[ 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, 41, 13, 2, 13, 13, 41, 13, 17, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 30, 41, 13, 4, 18, 13, 41, 13, 4, 18, 13, 41, 13, 2, 2, 13, 13, 2, 13, 13, 14, 2, 13, 13, 40, 13, 4, 18, 18, 13, 13, 13, 23, 13, 6, 13, 41, 13, 20, 41, 13, 20, 12, 13, 30, 42, 40, 4, 18, 13, 38, 5, 13, 30, 4, 18, 13, 30, 0, 13, 20, 29, 4, 18, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 12, 13, 30, 41, 13, 20, 13, 11, 1, 41, 13, 17, 2, 13, 13, 1, 40, 13, 30, 0, 18, 13, 13, 4, 13, 29, 13, 23, 13, 12, 13, 30, 29, 4, 18, 13, 4, 13, 10, 6, 13 ]
[ [ 0, 1 ], [ 1, 2 ], [ 1, 3 ], [ 0, 4 ], [ 4, 5 ], [ 4, 6 ], [ 0, 7 ], [ 7, 8 ], [ 7, 9 ], [ 0, 10 ], [ 10, 11 ], [ 10, 12 ], [ 0, 13 ], [ 164, 14 ], [ 164, 15 ], [ 15, 16 ], [ 15, 17 ], [ 17, 18 ], [ 18, 19 ], [ 18, 20 ], [ 17, 21 ], [ 21, 22 ], [ 21, 23 ], [ 23, 24 ], [ 24, 25 ], [ 17, 26 ], [ 26, 27 ], [ 26, 28 ], [ 28, 29 ], [ 29, 30 ], [ 17, 31 ], [ 31, 32 ], [ 31, 33 ], [ 33, 34 ], [ 33, 35 ], [ 17, 36 ], [ 36, 37 ], [ 36, 38 ], [ 17, 39 ], [ 39, 40 ], [ 40, 41 ], [ 41, 42 ], [ 41, 43 ], [ 39, 44 ], [ 44, 45 ], [ 44, 46 ], [ 39, 47 ], [ 47, 48 ], [ 48, 49 ], [ 39, 50 ], [ 51, 51 ], [ 51, 52 ], [ 52, 53 ], [ 52, 54 ], [ 54, 55 ], [ 55, 56 ], [ 51, 57 ], [ 57, 58 ], [ 57, 59 ], [ 59, 60 ], [ 60, 61 ], [ 51, 62 ], [ 62, 63 ], [ 62, 64 ], [ 64, 65 ], [ 65, 66 ], [ 65, 67 ], [ 64, 68 ], [ 68, 69 ], [ 68, 70 ], [ 51, 71 ], [ 71, 72 ], [ 72, 73 ], [ 72, 74 ], [ 71, 75 ], [ 75, 76 ], [ 17, 77 ], [ 77, 78 ], [ 78, 79 ], [ 79, 80 ], [ 79, 81 ], [ 77, 82 ], [ 15, 83 ], [ 83, 84 ], [ 164, 85 ], [ 85, 86 ], [ 85, 87 ], [ 87, 88 ], [ 87, 89 ], [ 85, 90 ], [ 90, 91 ], [ 90, 92 ], [ 85, 93 ], [ 93, 94 ], [ 93, 95 ], [ 95, 96 ], [ 96, 97 ], [ 97, 98 ], [ 98, 99 ], [ 99, 100 ], [ 96, 101 ], [ 101, 102 ], [ 102, 103 ], [ 102, 104 ], [ 104, 105 ], [ 105, 106 ], [ 106, 107 ], [ 101, 108 ], [ 108, 109 ], [ 109, 110 ], [ 109, 111 ], [ 95, 112 ], [ 112, 113 ], [ 113, 114 ], [ 114, 115 ], [ 85, 116 ], [ 116, 117 ], [ 116, 118 ], [ 118, 119 ], [ 119, 120 ], [ 120, 121 ], [ 121, 122 ], [ 120, 123 ], [ 123, 124 ], [ 85, 125 ], [ 125, 126 ], [ 125, 127 ], [ 127, 128 ], [ 128, 129 ], [ 128, 130 ], [ 127, 132 ], [ 132, 133 ], [ 133, 134 ], [ 134, 135 ], [ 134, 136 ], [ 132, 137 ], [ 137, 138 ], [ 137, 139 ], [ 132, 140 ], [ 140, 141 ], [ 141, 142 ], [ 132, 143 ], [ 143, 144 ], [ 144, 145 ], [ 145, 146 ], [ 145, 147 ], [ 144, 148 ], [ 148, 149 ], [ 127, 150 ], [ 150, 151 ], [ 125, 152 ], [ 152, 153 ], [ 85, 154 ], [ 154, 155 ], [ 154, 156 ], [ 156, 157 ], [ 157, 158 ], [ 158, 159 ], [ 159, 160 ], [ 158, 161 ], [ 161, 162 ], [ 0, 163 ], [ 163, 164 ], [ 163, 165 ] ]
[ "//package com.atcoder.contest174.b;\n\nimport 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) {\n FastScanner fs = new FastScanner();\n int n = fs.nextInt();\n long d = fs.nextInt();\n long D = d*d;\n long ans = 0;\n for(int i=0; i<n; ++i) {\n long x = fs.nextInt();\n long y = fs.nextInt();\n long dist = x*x + y*y;\n// System.out.println(dist + \" \" + D);\n if(dist <= D) ans++;\n }\n System.out.println(ans);\n }\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "import java.io.BufferedReader;", "BufferedReader", "java.io", "import java.io.IOException;", "IOException", "java.io", "import java.io.InputStreamReader;", "InputStreamReader", "java.io", "import java.util.StringTokenizer;", "StringTokenizer", "java.util", "public class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int n = fs.nextInt();\n long d = fs.nextInt();\n long D = d*d;\n long ans = 0;\n for(int i=0; i<n; ++i) {\n long x = fs.nextInt();\n long y = fs.nextInt();\n long dist = x*x + y*y;\n// System.out.println(dist + \" \" + D);\n if(dist <= D) ans++;\n }\n System.out.println(ans);\n }\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "Main", "public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int n = fs.nextInt();\n long d = fs.nextInt();\n long D = d*d;\n long ans = 0;\n for(int i=0; i<n; ++i) {\n long x = fs.nextInt();\n long y = fs.nextInt();\n long dist = x*x + y*y;\n// System.out.println(dist + \" \" + D);\n if(dist <= D) ans++;\n }\n System.out.println(ans);\n }", "main", "{\n FastScanner fs = new FastScanner();\n int n = fs.nextInt();\n long d = fs.nextInt();\n long D = d*d;\n long ans = 0;\n for(int i=0; i<n; ++i) {\n long x = fs.nextInt();\n long y = fs.nextInt();\n long dist = x*x + y*y;\n// System.out.println(dist + \" \" + D);\n if(dist <= D) ans++;\n }\n System.out.println(ans);\n }", "FastScanner fs = new FastScanner();", "fs", "new FastScanner()", "int n = fs.nextInt();", "n", "fs.nextInt()", "fs.nextInt", "fs", "long d = fs.nextInt();", "d", "fs.nextInt()", "fs.nextInt", "fs", "long D = d*d;", "D", "d*d", "d", "d", "long ans = 0;", "ans", "0", "for(int i=0; i<n; ++i) {\n long x = fs.nextInt();\n long y = fs.nextInt();\n long dist = x*x + y*y;\n// System.out.println(dist + \" \" + D);\n if(dist <= D) ans++;\n }", "int i=0;", "int i=0;", "i", "0", "i<n", "i", "n", "++i", "++i", "i", "{\n long x = fs.nextInt();\n long y = fs.nextInt();\n long dist = x*x + y*y;\n// System.out.println(dist + \" \" + D);\n if(dist <= D) ans++;\n }", "{\n long x = fs.nextInt();\n long y = fs.nextInt();\n long dist = x*x + y*y;\n// System.out.println(dist + \" \" + D);\n if(dist <= D) ans++;\n }", "long x = fs.nextInt();", "x", "fs.nextInt()", "fs.nextInt", "fs", "long y = fs.nextInt();", "y", "fs.nextInt()", "fs.nextInt", "fs", "long dist = x*x + y*y;", "dist", "x*x + y*y", "x*x", "x", "x", "y*y", "y", "y", "if(dist <= D) ans++;", "dist <= D", "dist", "D", "ans++", "ans", "System.out.println(ans)", "System.out.println", "System.out", "System", "System.out", "ans", "String[] args", "args", "static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }", "FastScanner", "BufferedReader br = new BufferedReader(new InputStreamReader(System.in));", "br", "new BufferedReader(new InputStreamReader(System.in))", "StringTokenizer st = new StringTokenizer(\"\");", "st", "new StringTokenizer(\"\")", "String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "next", "{\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }", "while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "!st.hasMoreTokens()", "st.hasMoreTokens()", "st.hasMoreTokens", "st", "try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }", "catch (IOException e) {\n e.printStackTrace();\n }", "IOException e", "{\n e.printStackTrace();\n }", "e.printStackTrace()", "e.printStackTrace", "e", "{\n st = new StringTokenizer(br.readLine());\n }", "st = new StringTokenizer(br.readLine())", "st", "new StringTokenizer(br.readLine())", "return st.nextToken();", "st.nextToken()", "st.nextToken", "st", "int nextInt() {\n return Integer.parseInt(next());\n }", "nextInt", "{\n return Integer.parseInt(next());\n }", "return Integer.parseInt(next());", "Integer.parseInt(next())", "Integer.parseInt", "Integer", "next()", "next", "int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }", "readArray", "{\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }", "int[] a = new int[n];", "a", "new int[n]", "n", "for (int i = 0; i < n; i++) a[i] = nextInt();", "int i = 0;", "int i = 0;", "i", "0", "i < n", "i", "n", "i++", "i++", "i", "a[i] = nextInt();", "a[i] = nextInt()", "a[i]", "a", "i", "nextInt()", "nextInt", "return a;", "a", "int n", "n", "long nextLong() {\n return Long.parseLong(next());\n }", "nextLong", "{\n return Long.parseLong(next());\n }", "return Long.parseLong(next());", "Long.parseLong(next())", "Long.parseLong", "Long", "next()", "next", "public class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int n = fs.nextInt();\n long d = fs.nextInt();\n long D = d*d;\n long ans = 0;\n for(int i=0; i<n; ++i) {\n long x = fs.nextInt();\n long y = fs.nextInt();\n long dist = x*x + y*y;\n// System.out.println(dist + \" \" + D);\n if(dist <= D) ans++;\n }\n System.out.println(ans);\n }\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "public class Main {\n public static void main(String[] args) {\n FastScanner fs = new FastScanner();\n int n = fs.nextInt();\n long d = fs.nextInt();\n long D = d*d;\n long ans = 0;\n for(int i=0; i<n; ++i) {\n long x = fs.nextInt();\n long y = fs.nextInt();\n long dist = x*x + y*y;\n// System.out.println(dist + \" \" + D);\n if(dist <= D) ans++;\n }\n System.out.println(ans);\n }\n\n static class FastScanner {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer st = new StringTokenizer(\"\");\n\n String next() {\n while (!st.hasMoreTokens())\n try {\n st = new StringTokenizer(br.readLine());\n } catch (IOException e) {\n e.printStackTrace();\n }\n return st.nextToken();\n }\n\n int nextInt() {\n return Integer.parseInt(next());\n }\n\n int[] readArray(int n) {\n int[] a = new int[n];\n for (int i = 0; i < n; i++) a[i] = nextInt();\n return a;\n }\n\n long nextLong() {\n return Long.parseLong(next());\n }\n }\n}", "Main" ]
//package com.atcoder.contest174.b; 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) { FastScanner fs = new FastScanner(); int n = fs.nextInt(); long d = fs.nextInt(); long D = d*d; long ans = 0; for(int i=0; i<n; ++i) { long x = fs.nextInt(); long y = fs.nextInt(); long dist = x*x + y*y; // System.out.println(dist + " " + D); if(dist <= D) ans++; } System.out.println(ans); } static class FastScanner { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringTokenizer st = new StringTokenizer(""); String next() { while (!st.hasMoreTokens()) try { st = new StringTokenizer(br.readLine()); } catch (IOException e) { e.printStackTrace(); } return st.nextToken(); } int nextInt() { return Integer.parseInt(next()); } int[] readArray(int n) { int[] a = new int[n]; for (int i = 0; i < n; i++) a[i] = nextInt(); return a; } long nextLong() { return Long.parseLong(next()); } } }