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,
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,
14,
2,
4,
18,
13,
13,
30,
0,
13,
13,
30,
0,
13,
4,
18,
4,
18,
13,
17,
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
],
[
61,
11
],
[
61,
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,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
46,
50
],
[
44,
51
],
[
14,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
12,
58
],
[
58,
59
],
[
0,
60
],
[
60,
61
],
[
60,
62
]
] |
[
"import java.util.*;\nimport javax.lang.model.util.ElementScanner6;\nimport java.lang.Math;\n\npublic class Main {\n\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n // 入力\n int k = sc.nextInt();\n String s = sc.next();\n\n // 処理\n String out = \"\";\n if(s.length() <= k){\n out = s;\n } else {\n out = s.substring(0, k).concat(\"...\");\n }\n\n // 出力\n System.out.println(out);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import javax.lang.model.util.ElementScanner6;",
"ElementScanner6",
"javax.lang.model.util",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main {\n\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n // 入力\n int k = sc.nextInt();\n String s = sc.next();\n\n // 処理\n String out = \"\";\n if(s.length() <= k){\n out = s;\n } else {\n out = s.substring(0, k).concat(\"...\");\n }\n\n // 出力\n System.out.println(out);\n }\n}",
"Main",
"public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n // 入力\n int k = sc.nextInt();\n String s = sc.next();\n\n // 処理\n String out = \"\";\n if(s.length() <= k){\n out = s;\n } else {\n out = s.substring(0, k).concat(\"...\");\n }\n\n // 出力\n System.out.println(out);\n }",
"main",
"{\n final Scanner sc = new Scanner(System.in);\n\n // 入力\n int k = sc.nextInt();\n String s = sc.next();\n\n // 処理\n String out = \"\";\n if(s.length() <= k){\n out = s;\n } else {\n out = s.substring(0, k).concat(\"...\");\n }\n\n // 出力\n System.out.println(out);\n }",
"final Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String out = \"\";",
"out",
"\"\"",
"if(s.length() <= k){\n out = s;\n } else {\n out = s.substring(0, k).concat(\"...\");\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n out = s;\n }",
"out = s",
"out",
"s",
"{\n out = s.substring(0, k).concat(\"...\");\n }",
"out = s.substring(0, k).concat(\"...\")",
"out",
"s.substring(0, k).concat(\"...\")",
"s.substring(0, k).concat",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"System.out.println(out)",
"System.out.println",
"System.out",
"System",
"System.out",
"out",
"final String[] args",
"args",
"public class Main {\n\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n // 入力\n int k = sc.nextInt();\n String s = sc.next();\n\n // 処理\n String out = \"\";\n if(s.length() <= k){\n out = s;\n } else {\n out = s.substring(0, k).concat(\"...\");\n }\n\n // 出力\n System.out.println(out);\n }\n}",
"public class Main {\n\n public static void main(final String[] args) {\n final Scanner sc = new Scanner(System.in);\n\n // 入力\n int k = sc.nextInt();\n String s = sc.next();\n\n // 処理\n String out = \"\";\n if(s.length() <= k){\n out = s;\n } else {\n out = s.substring(0, k).concat(\"...\");\n }\n\n // 出力\n System.out.println(out);\n }\n}",
"Main"
] |
import java.util.*;
import javax.lang.model.util.ElementScanner6;
import java.lang.Math;
public class Main {
public static void main(final String[] args) {
final Scanner sc = new Scanner(System.in);
// 入力
int k = sc.nextInt();
String s = sc.next();
// 処理
String out = "";
if(s.length() <= k){
out = s;
} else {
out = s.substring(0, k).concat("...");
}
// 出力
System.out.println(out);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
29,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
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
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
8,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n sc.close();\n\n if (S.length() <= K) {\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, K) + \"...\");\n }\n\n return;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n sc.close();\n\n if (S.length() <= K) {\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, K) + \"...\");\n }\n\n return;\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n sc.close();\n\n if (S.length() <= K) {\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, K) + \"...\");\n }\n\n return;\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n sc.close();\n\n if (S.length() <= K) {\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, K) + \"...\");\n }\n\n return;\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"if (S.length() <= K) {\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, K) + \"...\");\n }",
"S.length() <= K",
"S.length()",
"S.length",
"S",
"K",
"{\n System.out.println(S);\n }",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n System.out.println(S.substring(0, K) + \"...\");\n }",
"System.out.println(S.substring(0, K) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0, K) + \"...\"",
"S.substring(0, K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"return;",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n sc.close();\n\n if (S.length() <= K) {\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, K) + \"...\");\n }\n\n return;\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n sc.close();\n\n if (S.length() <= K) {\n System.out.println(S);\n } else {\n System.out.println(S.substring(0, K) + \"...\");\n }\n\n return;\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
sc.close();
if (S.length() <= K) {
System.out.println(S);
} else {
System.out.println(S.substring(0, K) + "...");
}
return;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
74,
5
],
[
74,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
38,
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
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
38,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt(); \n String s = sc.next();\n int len = s.length();\n if(len <= k){\n System.out.println(s);\n }else{\n char[] a = s.toCharArray();\n for(int i = 0;i < k;i++){\n System.out.print(a[i]);\n }\n System.out.print(\"...\");\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 int k = sc.nextInt(); \n String s = sc.next();\n int len = s.length();\n if(len <= k){\n System.out.println(s);\n }else{\n char[] a = s.toCharArray();\n for(int i = 0;i < k;i++){\n System.out.print(a[i]);\n }\n System.out.print(\"...\");\n }\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt(); \n String s = sc.next();\n int len = s.length();\n if(len <= k){\n System.out.println(s);\n }else{\n char[] a = s.toCharArray();\n for(int i = 0;i < k;i++){\n System.out.print(a[i]);\n }\n System.out.print(\"...\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt(); \n String s = sc.next();\n int len = s.length();\n if(len <= k){\n System.out.println(s);\n }else{\n char[] a = s.toCharArray();\n for(int i = 0;i < k;i++){\n System.out.print(a[i]);\n }\n System.out.print(\"...\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"int len = s.length();",
"len",
"s.length()",
"s.length",
"s",
"if(len <= k){\n System.out.println(s);\n }else{\n char[] a = s.toCharArray();\n for(int i = 0;i < k;i++){\n System.out.print(a[i]);\n }\n System.out.print(\"...\");\n }",
"len <= k",
"len",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n char[] a = s.toCharArray();\n for(int i = 0;i < k;i++){\n System.out.print(a[i]);\n }\n System.out.print(\"...\");\n }",
"char[] a = s.toCharArray();",
"a",
"s.toCharArray()",
"s.toCharArray",
"s",
"for(int i = 0;i < k;i++){\n System.out.print(a[i]);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n System.out.print(a[i]);\n }",
"{\n System.out.print(a[i]);\n }",
"System.out.print(a[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"a[i]",
"a",
"i",
"System.out.print(\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"...\"",
"String args[]",
"args",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt(); \n String s = sc.next();\n int len = s.length();\n if(len <= k){\n System.out.println(s);\n }else{\n char[] a = s.toCharArray();\n for(int i = 0;i < k;i++){\n System.out.print(a[i]);\n }\n System.out.print(\"...\");\n }\n }\n}",
"public class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt(); \n String s = sc.next();\n int len = s.length();\n if(len <= k){\n System.out.println(s);\n }else{\n char[] a = s.toCharArray();\n for(int i = 0;i < k;i++){\n System.out.print(a[i]);\n }\n System.out.print(\"...\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
int len = s.length();
if(len <= k){
System.out.println(s);
}else{
char[] a = s.toCharArray();
for(int i = 0;i < k;i++){
System.out.print(a[i]);
}
System.out.print("...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
14,
2,
4,
18,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
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
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.Scanner;\n public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n if(S.length()<=K) {\n System.out.println(S);\n } else if(S.length()>K) {\n String T = S.substring(0,K);\n System.out.println(T + \"...\");\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 int K = sc.nextInt();\n String S = sc.next();\n if(S.length()<=K) {\n System.out.println(S);\n } else if(S.length()>K) {\n String T = S.substring(0,K);\n System.out.println(T + \"...\");\n }\n }\n }",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n if(S.length()<=K) {\n System.out.println(S);\n } else if(S.length()>K) {\n String T = S.substring(0,K);\n System.out.println(T + \"...\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n if(S.length()<=K) {\n System.out.println(S);\n } else if(S.length()>K) {\n String T = S.substring(0,K);\n System.out.println(T + \"...\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"if(S.length()<=K) {\n System.out.println(S);\n } else if(S.length()>K) {\n String T = S.substring(0,K);\n System.out.println(T + \"...\");\n }",
"S.length()<=K",
"S.length()",
"S.length",
"S",
"K",
"{\n System.out.println(S);\n }",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"if(S.length()>K) {\n String T = S.substring(0,K);\n System.out.println(T + \"...\");\n }",
"S.length()>K",
"S.length()",
"S.length",
"S",
"K",
"{\n String T = S.substring(0,K);\n System.out.println(T + \"...\");\n }",
"String T = S.substring(0,K);",
"T",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"System.out.println(T + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"T + \"...\"",
"T",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n if(S.length()<=K) {\n System.out.println(S);\n } else if(S.length()>K) {\n String T = S.substring(0,K);\n System.out.println(T + \"...\");\n }\n }\n }",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n if(S.length()<=K) {\n System.out.println(S);\n } else if(S.length()>K) {\n String T = S.substring(0,K);\n System.out.println(T + \"...\");\n }\n }\n }",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
if(S.length()<=K) {
System.out.println(S);
} else if(S.length()>K) {
String T = S.substring(0,K);
System.out.println(T + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
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
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
41,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int len = sc.nextInt();\n String target = sc.next();\n\n if (len >= target.length()) {\n System.out.println(target);\n } else {\n System.out.println(target.substring(0, len) + \"...\");\n }\n\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int len = sc.nextInt();\n String target = sc.next();\n\n if (len >= target.length()) {\n System.out.println(target);\n } else {\n System.out.println(target.substring(0, len) + \"...\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int len = sc.nextInt();\n String target = sc.next();\n\n if (len >= target.length()) {\n System.out.println(target);\n } else {\n System.out.println(target.substring(0, len) + \"...\");\n }\n\n }",
"main",
"{\n\n Scanner sc = new Scanner(System.in);\n int len = sc.nextInt();\n String target = sc.next();\n\n if (len >= target.length()) {\n System.out.println(target);\n } else {\n System.out.println(target.substring(0, len) + \"...\");\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int len = sc.nextInt();",
"len",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String target = sc.next();",
"target",
"sc.next()",
"sc.next",
"sc",
"if (len >= target.length()) {\n System.out.println(target);\n } else {\n System.out.println(target.substring(0, len) + \"...\");\n }",
"len >= target.length()",
"len",
"target.length()",
"target.length",
"target",
"{\n System.out.println(target);\n }",
"System.out.println(target)",
"System.out.println",
"System.out",
"System",
"System.out",
"target",
"{\n System.out.println(target.substring(0, len) + \"...\");\n }",
"System.out.println(target.substring(0, len) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"target.substring(0, len) + \"...\"",
"target.substring(0, len)",
"target.substring",
"target",
"0",
"len",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int len = sc.nextInt();\n String target = sc.next();\n\n if (len >= target.length()) {\n System.out.println(target);\n } else {\n System.out.println(target.substring(0, len) + \"...\");\n }\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner(System.in);\n int len = sc.nextInt();\n String target = sc.next();\n\n if (len >= target.length()) {\n System.out.println(target);\n } else {\n System.out.println(target.substring(0, len) + \"...\");\n }\n\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int len = sc.nextInt();
String target = sc.next();
if (len >= target.length()) {
System.out.println(target);
} else {
System.out.println(target.substring(0, len) + "...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
13,
13,
30,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
62,
8
],
[
62,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
11,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
34,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
50,
54
],
[
49,
55
],
[
11,
56
],
[
56,
57
],
[
57,
58
],
[
9,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.util.*;\nimport java.io.*;\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\tint num = 998244353;\n\n\t\t// TODO Auto-generated method stub\n \t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n \t\tPrintWriter out = new PrintWriter(System.out);\n \t\tint k = Integer.parseInt(bf.readLine());\n \t\tString input = bf.readLine();\n \t\tif (input.length() <= k){\n \t\t\tout.println(input);\n \t\t}\n \t\telse\n \t\t{\n \t\t\t\n \t\t\tout.println(input.substring(0, k) + \"...\");\n \t\t}\n \t\t\t\t\n \t\tout.close();\n \t\t\n \t\t\n \t}\n}\n \t\n \n//StringJoiner sj = new StringJoiner(\" \"); \n//sj.add(strings)\n//sj.toString() gives string of those stuff w spaces or whatever that sequence is\n\n \t\t\n \t\t\n \t\t\n \t\t\n\t\n\n",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\tint num = 998244353;\n\n\t\t// TODO Auto-generated method stub\n \t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n \t\tPrintWriter out = new PrintWriter(System.out);\n \t\tint k = Integer.parseInt(bf.readLine());\n \t\tString input = bf.readLine();\n \t\tif (input.length() <= k){\n \t\t\tout.println(input);\n \t\t}\n \t\telse\n \t\t{\n \t\t\t\n \t\t\tout.println(input.substring(0, k) + \"...\");\n \t\t}\n \t\t\t\t\n \t\tout.close();\n \t\t\n \t\t\n \t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tint num = 998244353;\n\n\t\t// TODO Auto-generated method stub\n \t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n \t\tPrintWriter out = new PrintWriter(System.out);\n \t\tint k = Integer.parseInt(bf.readLine());\n \t\tString input = bf.readLine();\n \t\tif (input.length() <= k){\n \t\t\tout.println(input);\n \t\t}\n \t\telse\n \t\t{\n \t\t\t\n \t\t\tout.println(input.substring(0, k) + \"...\");\n \t\t}\n \t\t\t\t\n \t\tout.close();\n \t\t\n \t\t\n \t}",
"main",
"{\n\t\tint num = 998244353;\n\n\t\t// TODO Auto-generated method stub\n \t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n \t\tPrintWriter out = new PrintWriter(System.out);\n \t\tint k = Integer.parseInt(bf.readLine());\n \t\tString input = bf.readLine();\n \t\tif (input.length() <= k){\n \t\t\tout.println(input);\n \t\t}\n \t\telse\n \t\t{\n \t\t\t\n \t\t\tout.println(input.substring(0, k) + \"...\");\n \t\t}\n \t\t\t\t\n \t\tout.close();\n \t\t\n \t\t\n \t}",
"int num = 998244353;",
"num",
"998244353",
"BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));",
"bf",
"new BufferedReader(new InputStreamReader(System.in))",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"int k = Integer.parseInt(bf.readLine());",
"k",
"Integer.parseInt(bf.readLine())",
"Integer.parseInt",
"Integer",
"bf.readLine()",
"bf.readLine",
"bf",
"String input = bf.readLine();",
"input",
"bf.readLine()",
"bf.readLine",
"bf",
"if (input.length() <= k){\n \t\t\tout.println(input);\n \t\t}\n \t\telse\n \t\t{\n \t\t\t\n \t\t\tout.println(input.substring(0, k) + \"...\");\n \t\t}",
"input.length() <= k",
"input.length()",
"input.length",
"input",
"k",
"{\n \t\t\tout.println(input);\n \t\t}",
"out.println(input)",
"out.println",
"out",
"input",
"{\n \t\t\t\n \t\t\tout.println(input.substring(0, k) + \"...\");\n \t\t}",
"out.println(input.substring(0, k) + \"...\")",
"out.println",
"out",
"input.substring(0, k) + \"...\"",
"input.substring(0, k)",
"input.substring",
"input",
"0",
"k",
"\"...\"",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\tint num = 998244353;\n\n\t\t// TODO Auto-generated method stub\n \t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n \t\tPrintWriter out = new PrintWriter(System.out);\n \t\tint k = Integer.parseInt(bf.readLine());\n \t\tString input = bf.readLine();\n \t\tif (input.length() <= k){\n \t\t\tout.println(input);\n \t\t}\n \t\telse\n \t\t{\n \t\t\t\n \t\t\tout.println(input.substring(0, k) + \"...\");\n \t\t}\n \t\t\t\t\n \t\tout.close();\n \t\t\n \t\t\n \t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\t\tint num = 998244353;\n\n\t\t// TODO Auto-generated method stub\n \t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n \t\tPrintWriter out = new PrintWriter(System.out);\n \t\tint k = Integer.parseInt(bf.readLine());\n \t\tString input = bf.readLine();\n \t\tif (input.length() <= k){\n \t\t\tout.println(input);\n \t\t}\n \t\telse\n \t\t{\n \t\t\t\n \t\t\tout.println(input.substring(0, k) + \"...\");\n \t\t}\n \t\t\t\t\n \t\tout.close();\n \t\t\n \t\t\n \t}\n}",
"Main"
] |
import java.util.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception{
int num = 998244353;
// TODO Auto-generated method stub
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
PrintWriter out = new PrintWriter(System.out);
int k = Integer.parseInt(bf.readLine());
String input = bf.readLine();
if (input.length() <= k){
out.println(input);
}
else
{
out.println(input.substring(0, k) + "...");
}
out.close();
}
}
//StringJoiner sj = new StringJoiner(" ");
//sj.add(strings)
//sj.toString() gives string of those stuff w spaces or whatever that sequence is
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
58,
5
],
[
58,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
49,
53
],
[
48,
54
],
[
6,
55
],
[
55,
56
],
[
0,
57
],
[
57,
58
],
[
57,
59
]
] |
[
"import java.util.Scanner;\n public class Main {\n \n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int k = scanner.nextInt();\n String s = scanner.next();\n \n int a =s.length();\n \n if(a<=k){\n System.out.println(s);\n }\n else if(a>k){\n System.out.println(s.substring(0,k)+\"...\");\n }\n }\n }",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n \n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int k = scanner.nextInt();\n String s = scanner.next();\n \n int a =s.length();\n \n if(a<=k){\n System.out.println(s);\n }\n else if(a>k){\n System.out.println(s.substring(0,k)+\"...\");\n }\n }\n }",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int k = scanner.nextInt();\n String s = scanner.next();\n \n int a =s.length();\n \n if(a<=k){\n System.out.println(s);\n }\n else if(a>k){\n System.out.println(s.substring(0,k)+\"...\");\n }\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int k = scanner.nextInt();\n String s = scanner.next();\n \n int a =s.length();\n \n if(a<=k){\n System.out.println(s);\n }\n else if(a>k){\n System.out.println(s.substring(0,k)+\"...\");\n }\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int k = scanner.nextInt();",
"k",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String s = scanner.next();",
"s",
"scanner.next()",
"scanner.next",
"scanner",
"int a =s.length();",
"a",
"s.length()",
"s.length",
"s",
"if(a<=k){\n System.out.println(s);\n }\n else if(a>k){\n System.out.println(s.substring(0,k)+\"...\");\n }",
"a<=k",
"a",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"if(a>k){\n System.out.println(s.substring(0,k)+\"...\");\n }",
"a>k",
"a",
"k",
"{\n System.out.println(s.substring(0,k)+\"...\");\n }",
"System.out.println(s.substring(0,k)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0,k)+\"...\"",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main {\n \n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int k = scanner.nextInt();\n String s = scanner.next();\n \n int a =s.length();\n \n if(a<=k){\n System.out.println(s);\n }\n else if(a>k){\n System.out.println(s.substring(0,k)+\"...\");\n }\n }\n }",
"public class Main {\n \n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n int k = scanner.nextInt();\n String s = scanner.next();\n \n int a =s.length();\n \n if(a<=k){\n System.out.println(s);\n }\n else if(a>k){\n System.out.println(s.substring(0,k)+\"...\");\n }\n }\n }",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int k = scanner.nextInt();
String s = scanner.next();
int a =s.length();
if(a<=k){
System.out.println(s);
}
else if(a>k){
System.out.println(s.substring(0,k)+"...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
4,
18,
13,
4,
18,
13,
17,
13,
11,
1,
41,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
12,
13,
30,
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
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
25,
26
],
[
14,
27
],
[
27,
28
],
[
28,
29
],
[
12,
30
],
[
30,
31
],
[
107,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
34,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
34,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
48,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
68,
72
],
[
61,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
73,
81
],
[
81,
82
],
[
82,
83
],
[
73,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
61,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
96,
97
],
[
32,
98
],
[
98,
99
],
[
107,
100
],
[
100,
101
],
[
100,
102
],
[
107,
103
],
[
103,
104
],
[
103,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
] |
[
"\nimport java.util.*;\nimport java.io.*;\nimport java.nio.charset.StandardCharsets;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tint K = Integer.parseInt(in.readLine());\n\t\tString S = in.readLine();\n\t\tif (K >= S.length()) {\n\t\t\tSystem.out.println(S);\n\t\t} else {\n\t\t\tStringBuilder strBuilder = new StringBuilder();\n\t\t\tstrBuilder.append(S.substring(0, K));\n\t\t\tfor (int i = 0; i < 3; ++i) {\n\t\t\t\tstrBuilder.append(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(strBuilder.toString());\n\t\t}\n\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.nio.charset.StandardCharsets;",
"StandardCharsets",
"java.nio.charset",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tint K = Integer.parseInt(in.readLine());\n\t\tString S = in.readLine();\n\t\tif (K >= S.length()) {\n\t\t\tSystem.out.println(S);\n\t\t} else {\n\t\t\tStringBuilder strBuilder = new StringBuilder();\n\t\t\tstrBuilder.append(S.substring(0, K));\n\t\t\tfor (int i = 0; i < 3; ++i) {\n\t\t\t\tstrBuilder.append(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(strBuilder.toString());\n\t\t}\n\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}",
"main",
"{\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}",
"InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);",
"reader",
"new InputStreamReader(System.in, StandardCharsets.UTF_8)",
"BufferedReader in = new BufferedReader(reader);",
"in",
"new BufferedReader(reader)",
"Main ins = new Main(in);",
"ins",
"new Main(in)",
"ins.calc()",
"ins.calc",
"ins",
"ins.showResult()",
"ins.showResult",
"ins",
"String[] args",
"args",
"Main(BufferedReader in) throws IOException {\n\t\tint K = Integer.parseInt(in.readLine());\n\t\tString S = in.readLine();\n\t\tif (K >= S.length()) {\n\t\t\tSystem.out.println(S);\n\t\t} else {\n\t\t\tStringBuilder strBuilder = new StringBuilder();\n\t\t\tstrBuilder.append(S.substring(0, K));\n\t\t\tfor (int i = 0; i < 3; ++i) {\n\t\t\t\tstrBuilder.append(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(strBuilder.toString());\n\t\t}\n\n\t}",
"Main",
"{\n\t\tint K = Integer.parseInt(in.readLine());\n\t\tString S = in.readLine();\n\t\tif (K >= S.length()) {\n\t\t\tSystem.out.println(S);\n\t\t} else {\n\t\t\tStringBuilder strBuilder = new StringBuilder();\n\t\t\tstrBuilder.append(S.substring(0, K));\n\t\t\tfor (int i = 0; i < 3; ++i) {\n\t\t\t\tstrBuilder.append(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(strBuilder.toString());\n\t\t}\n\n\t}",
"int K = Integer.parseInt(in.readLine());",
"K",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"String S = in.readLine();",
"S",
"in.readLine()",
"in.readLine",
"in",
"if (K >= S.length()) {\n\t\t\tSystem.out.println(S);\n\t\t} else {\n\t\t\tStringBuilder strBuilder = new StringBuilder();\n\t\t\tstrBuilder.append(S.substring(0, K));\n\t\t\tfor (int i = 0; i < 3; ++i) {\n\t\t\t\tstrBuilder.append(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(strBuilder.toString());\n\t\t}",
"K >= S.length()",
"K",
"S.length()",
"S.length",
"S",
"{\n\t\t\tSystem.out.println(S);\n\t\t}",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n\t\t\tStringBuilder strBuilder = new StringBuilder();\n\t\t\tstrBuilder.append(S.substring(0, K));\n\t\t\tfor (int i = 0; i < 3; ++i) {\n\t\t\t\tstrBuilder.append(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(strBuilder.toString());\n\t\t}",
"StringBuilder strBuilder = new StringBuilder();",
"strBuilder",
"new StringBuilder()",
"strBuilder.append(S.substring(0, K))",
"strBuilder.append",
"strBuilder",
"S.substring(0, K)",
"S.substring",
"S",
"0",
"K",
"for (int i = 0; i < 3; ++i) {\n\t\t\t\tstrBuilder.append(\".\");\n\t\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < 3",
"i",
"3",
"++i",
"++i",
"i",
"{\n\t\t\t\tstrBuilder.append(\".\");\n\t\t\t}",
"{\n\t\t\t\tstrBuilder.append(\".\");\n\t\t\t}",
"strBuilder.append(\".\")",
"strBuilder.append",
"strBuilder",
"\".\"",
"System.out.println(strBuilder.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"strBuilder.toString()",
"strBuilder.toString",
"strBuilder",
"BufferedReader in",
"in",
"void calc() {\n\t}",
"calc",
"{\n\t}",
"void showResult() {\n\t}",
"showResult",
"{\n\t}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tint K = Integer.parseInt(in.readLine());\n\t\tString S = in.readLine();\n\t\tif (K >= S.length()) {\n\t\t\tSystem.out.println(S);\n\t\t} else {\n\t\t\tStringBuilder strBuilder = new StringBuilder();\n\t\t\tstrBuilder.append(S.substring(0, K));\n\t\t\tfor (int i = 0; i < 3; ++i) {\n\t\t\t\tstrBuilder.append(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(strBuilder.toString());\n\t\t}\n\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tInputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);\n\t\tBufferedReader in = new BufferedReader(reader);\n\t\tMain ins = new Main(in);\n\t\tins.calc();\n\t\tins.showResult();\n\t}\n\n\tMain(BufferedReader in) throws IOException {\n\t\tint K = Integer.parseInt(in.readLine());\n\t\tString S = in.readLine();\n\t\tif (K >= S.length()) {\n\t\t\tSystem.out.println(S);\n\t\t} else {\n\t\t\tStringBuilder strBuilder = new StringBuilder();\n\t\t\tstrBuilder.append(S.substring(0, K));\n\t\t\tfor (int i = 0; i < 3; ++i) {\n\t\t\t\tstrBuilder.append(\".\");\n\t\t\t}\n\t\t\tSystem.out.println(strBuilder.toString());\n\t\t}\n\n\t}\n\n\tvoid calc() {\n\t}\n\n\tvoid showResult() {\n\t}\n\n}",
"Main"
] |
import java.util.*;
import java.io.*;
import java.nio.charset.StandardCharsets;
public class Main {
public static void main(String[] args) throws IOException {
InputStreamReader reader = new InputStreamReader(System.in, StandardCharsets.UTF_8);
BufferedReader in = new BufferedReader(reader);
Main ins = new Main(in);
ins.calc();
ins.showResult();
}
Main(BufferedReader in) throws IOException {
int K = Integer.parseInt(in.readLine());
String S = in.readLine();
if (K >= S.length()) {
System.out.println(S);
} else {
StringBuilder strBuilder = new StringBuilder();
strBuilder.append(S.substring(0, K));
for (int i = 0; i < 3; ++i) {
strBuilder.append(".");
}
System.out.println(strBuilder.toString());
}
}
void calc() {
}
void showResult() {
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
42,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
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
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
71,
20
],
[
71,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
27,
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
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
54,
60
],
[
42,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
21,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] |
[
"import java.awt.List;\nimport java.math.BigInteger;\nimport java.util.ArrayList;\nimport java.util.Arrays;\nimport java.util.Collection;\nimport java.util.Scanner;\n\npublic class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext())\n\t\t{\n\t\t\tint a = sc.nextInt();\n\t\t\tString b = sc.next();\n\t\t\tif (a < b.length())\n\t\t\t{\n\t\t\t\tSystem.out.println(b.substring(0,a)+\"...\");\n\t\t\t\t\n\t\t\t} else\n\t\t\t{\n\t\t\t\tSystem.out.println(b);\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"import java.awt.List;",
"List",
"java.awt",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Collection;",
"Collection",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext())\n\t\t{\n\t\t\tint a = sc.nextInt();\n\t\t\tString b = sc.next();\n\t\t\tif (a < b.length())\n\t\t\t{\n\t\t\t\tSystem.out.println(b.substring(0,a)+\"...\");\n\t\t\t\t\n\t\t\t} else\n\t\t\t{\n\t\t\t\tSystem.out.println(b);\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext())\n\t\t{\n\t\t\tint a = sc.nextInt();\n\t\t\tString b = sc.next();\n\t\t\tif (a < b.length())\n\t\t\t{\n\t\t\t\tSystem.out.println(b.substring(0,a)+\"...\");\n\t\t\t\t\n\t\t\t} else\n\t\t\t{\n\t\t\t\tSystem.out.println(b);\n\n\t\t\t}\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext())\n\t\t{\n\t\t\tint a = sc.nextInt();\n\t\t\tString b = sc.next();\n\t\t\tif (a < b.length())\n\t\t\t{\n\t\t\t\tSystem.out.println(b.substring(0,a)+\"...\");\n\t\t\t\t\n\t\t\t} else\n\t\t\t{\n\t\t\t\tSystem.out.println(b);\n\n\t\t\t}\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"while (sc.hasNext())\n\t\t{\n\t\t\tint a = sc.nextInt();\n\t\t\tString b = sc.next();\n\t\t\tif (a < b.length())\n\t\t\t{\n\t\t\t\tSystem.out.println(b.substring(0,a)+\"...\");\n\t\t\t\t\n\t\t\t} else\n\t\t\t{\n\t\t\t\tSystem.out.println(b);\n\n\t\t\t}\n\t\t}",
"sc.hasNext()",
"sc.hasNext",
"sc",
"{\n\t\t\tint a = sc.nextInt();\n\t\t\tString b = sc.next();\n\t\t\tif (a < b.length())\n\t\t\t{\n\t\t\t\tSystem.out.println(b.substring(0,a)+\"...\");\n\t\t\t\t\n\t\t\t} else\n\t\t\t{\n\t\t\t\tSystem.out.println(b);\n\n\t\t\t}\n\t\t}",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String b = sc.next();",
"b",
"sc.next()",
"sc.next",
"sc",
"if (a < b.length())\n\t\t\t{\n\t\t\t\tSystem.out.println(b.substring(0,a)+\"...\");\n\t\t\t\t\n\t\t\t} else\n\t\t\t{\n\t\t\t\tSystem.out.println(b);\n\n\t\t\t}",
"a < b.length()",
"a",
"b.length()",
"b.length",
"b",
"{\n\t\t\t\tSystem.out.println(b.substring(0,a)+\"...\");\n\t\t\t\t\n\t\t\t}",
"System.out.println(b.substring(0,a)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"b.substring(0,a)+\"...\"",
"b.substring(0,a)",
"b.substring",
"b",
"0",
"a",
"\"...\"",
"{\n\t\t\t\tSystem.out.println(b);\n\n\t\t\t}",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"String args[]",
"args",
"public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext())\n\t\t{\n\t\t\tint a = sc.nextInt();\n\t\t\tString b = sc.next();\n\t\t\tif (a < b.length())\n\t\t\t{\n\t\t\t\tSystem.out.println(b.substring(0,a)+\"...\");\n\t\t\t\t\n\t\t\t} else\n\t\t\t{\n\t\t\t\tSystem.out.println(b);\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"public class Main\n{\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\twhile (sc.hasNext())\n\t\t{\n\t\t\tint a = sc.nextInt();\n\t\t\tString b = sc.next();\n\t\t\tif (a < b.length())\n\t\t\t{\n\t\t\t\tSystem.out.println(b.substring(0,a)+\"...\");\n\t\t\t\t\n\t\t\t} else\n\t\t\t{\n\t\t\t\tSystem.out.println(b);\n\n\t\t\t}\n\t\t}\n\n\t}\n\n}",
"Main"
] |
import java.awt.List;
import java.math.BigInteger;
import java.util.ArrayList;
import java.util.Arrays;
import java.util.Collection;
import java.util.Scanner;
public class Main
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
while (sc.hasNext())
{
int a = sc.nextInt();
String b = sc.next();
if (a < b.length())
{
System.out.println(b.substring(0,a)+"...");
} else
{
System.out.println(b);
}
}
}
}
|
[
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,
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,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
13,
13,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
23,
13,
23,
13,
6,
13,
41,
13,
41,
13,
41,
13,
17,
12,
13,
30,
4,
13,
20,
23,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
17,
13,
17,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
38,
5,
13,
30,
4,
18,
13,
37,
20,
30,
41,
13,
4,
18,
13,
14,
2,
13,
17,
29,
17,
0,
13,
20,
41,
13,
4,
18,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
2,
2,
17,
13,
17,
13,
29,
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
],
[
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
],
[
218,
32
],
[
218,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
35,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
35,
46
],
[
46,
47
],
[
46,
48
],
[
35,
49
],
[
49,
50
],
[
49,
51
],
[
35,
52
],
[
52,
53
],
[
52,
54
],
[
35,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
55,
59
],
[
55,
60
],
[
35,
61
],
[
61,
62
],
[
62,
63
],
[
33,
64
],
[
64,
65
],
[
218,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
70,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
70,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
81,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
95,
99
],
[
94,
100
],
[
68,
101
],
[
101,
102
],
[
68,
103
],
[
103,
104
],
[
68,
105
],
[
105,
106
],
[
218,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
107,
111
],
[
111,
112
],
[
107,
113
],
[
113,
114
],
[
113,
115
],
[
107,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
116,
122
],
[
122,
123
],
[
107,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
124,
130
],
[
130,
131
],
[
107,
132
],
[
132,
133
],
[
132,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
142,
144
],
[
140,
145
],
[
146,
146
],
[
146,
147
],
[
146,
148
],
[
146,
149
],
[
134,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
150,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
161,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
163,
167
],
[
167,
168
],
[
160,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
169,
175
],
[
175,
176
],
[
176,
177
],
[
176,
178
],
[
175,
179
],
[
179,
180
],
[
169,
181
],
[
181,
182
],
[
181,
183
],
[
134,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
134,
189
],
[
189,
190
],
[
190,
191
],
[
190,
192
],
[
189,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
196,
197
],
[
196,
198
],
[
194,
199
],
[
201,
200
],
[
200,
201
],
[
201,
202
],
[
201,
203
],
[
200,
204
],
[
201,
205
],
[
134,
206
],
[
206,
207
],
[
107,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
212,
215
],
[
215,
216
],
[
0,
217
],
[
217,
218
],
[
217,
219
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.io.PrintStream;\nimport java.util.StringTokenizer;\nimport java.io.IOException;\nimport java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.InputStream;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author Eric\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.println(s.substring(0, k) + \"...\");\n\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\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.io.PrintStream;",
"PrintStream",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"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 FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.println(s.substring(0, k) + \"...\");\n\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\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",
"FastReader in = new FastReader(inputStream);",
"in",
"new FastReader(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"BTripleDots solver = new BTripleDots();",
"solver",
"new BTripleDots()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BTripleDots {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.println(s.substring(0, k) + \"...\");\n\n }\n\n }",
"BTripleDots",
"public void solve(int testNumber, FastReader in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.println(s.substring(0, k) + \"...\");\n\n }",
"solve",
"{\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.println(s.substring(0, k) + \"...\");\n\n }",
"int k = in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"if (s.length() <= k)\n out.println(s);\n else\n out.println(s.substring(0, k) + \"...\");",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"out.println(s)",
"out.println",
"out",
"s",
"out.println(s.substring(0, k) + \"...\")",
"out.println",
"out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"int testNumber",
"testNumber",
"FastReader in",
"in",
"PrintWriter out",
"out",
"static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }",
"FastReader",
"public BufferedReader br;",
"br",
"public StringTokenizer st;",
"st",
"String context = null;",
"context",
"null",
"public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }",
"FastReader",
"{\n this(new InputStreamReader(in));\n }",
"this(new InputStreamReader(in))",
"this",
"new InputStreamReader(in)",
"InputStream in",
"in",
"public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }",
"FastReader",
"{\n br = new BufferedReader(input);\n }",
"br = new BufferedReader(input)",
"br",
"new BufferedReader(input)",
"InputStreamReader input",
"input",
"public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }",
"next",
"{\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }",
"if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }",
"context != null",
"context",
"null",
"{\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }",
"System.err.print(\"[\" + context + \"] Wait for input ...\")",
"System.err.print",
"System.err",
"System",
"System.err",
"\"[\" + context + \"] Wait for input ...\"",
"\"[\" + context + \"] Wait for input ...\"",
"\"[\"",
"context",
"\"] Wait for input ...\"",
"while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }",
"try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }",
"catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }",
"IOException e",
"{\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"throw new RuntimeException(\"Could not read\");",
"new RuntimeException(\"Could not read\")",
"{\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n }",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"if (s == null)\n return null;",
"s == null",
"s",
"null",
"return null;",
"null",
"st = new StringTokenizer(s)",
"st",
"new StringTokenizer(s)",
"String res = st.nextToken();",
"res",
"st.nextToken()",
"st.nextToken",
"st",
"if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }",
"context != null",
"context",
"null",
"{\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }",
"System.err.println(\"[\" + context + \"] ... received : \" + res)",
"System.err.println",
"System.err",
"System",
"System.err",
"\"[\" + context + \"] ... received : \" + res",
"\"] ... received : \"",
"\"[\" + context + \"] ... received : \" + res",
"\"[\"",
"context",
"\"] ... received : \"",
"res",
"return res;",
"res",
"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 class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.println(s.substring(0, k) + \"...\");\n\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\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 FastReader in = new FastReader(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, FastReader in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n if (s.length() <= k)\n out.println(s);\n else\n out.println(s.substring(0, k) + \"...\");\n\n }\n\n }\n\n static class FastReader {\n public BufferedReader br;\n public StringTokenizer st;\n String context = null;\n\n public FastReader(InputStream in) {\n this(new InputStreamReader(in));\n }\n\n public FastReader(InputStreamReader input) {\n br = new BufferedReader(input);\n }\n\n public String next() {\n if (context != null) {\n System.err.print(\"[\" + context + \"] Wait for input ...\");\n }\n while (st == null || !st.hasMoreElements()) {\n try {\n String s = br.readLine();\n if (s == null)\n return null;\n st = new StringTokenizer(s);\n } catch (IOException e) {\n e.printStackTrace();\n throw new RuntimeException(\"Could not read\");\n }\n }\n String res = st.nextToken();\n if (context != null) {\n System.err.println(\"[\" + context + \"] ... received : \" + res);\n }\n return res;\n }\n\n public int nextInt() {\n return Integer.parseInt(next());\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.io.PrintStream;
import java.util.StringTokenizer;
import java.io.IOException;
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.InputStream;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author Eric
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
FastReader in = new FastReader(inputStream);
PrintWriter out = new PrintWriter(outputStream);
BTripleDots solver = new BTripleDots();
solver.solve(1, in, out);
out.close();
}
static class BTripleDots {
public void solve(int testNumber, FastReader in, PrintWriter out) {
int k = in.nextInt();
String s = in.next();
if (s.length() <= k)
out.println(s);
else
out.println(s.substring(0, k) + "...");
}
}
static class FastReader {
public BufferedReader br;
public StringTokenizer st;
String context = null;
public FastReader(InputStream in) {
this(new InputStreamReader(in));
}
public FastReader(InputStreamReader input) {
br = new BufferedReader(input);
}
public String next() {
if (context != null) {
System.err.print("[" + context + "] Wait for input ...");
}
while (st == null || !st.hasMoreElements()) {
try {
String s = br.readLine();
if (s == null)
return null;
st = new StringTokenizer(s);
} catch (IOException e) {
e.printStackTrace();
throw new RuntimeException("Could not read");
}
}
String res = st.nextToken();
if (context != null) {
System.err.println("[" + context + "] ... received : " + res);
}
return res;
}
public int nextInt() {
return Integer.parseInt(next());
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
30,
4,
18,
13,
2,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
70,
17
],
[
70,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
32,
33
],
[
33,
34
],
[
20,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
50,
56
],
[
40,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
20,
64
],
[
64,
65
],
[
65,
66
],
[
18,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"import java.io.BufferedReader;\nimport java.io.BufferedWriter;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.OutputStreamWriter;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\t\n\t\tint k = Integer.parseInt(br.readLine());\n\t\tString s = br.readLine();\n\t\t\n\t\tif(s.length() > k) {\n\t\t\tbw.write(s.substring(0, k) + \"...\\n\");\n\t\t} else {\n\t\t\tbw.write(s + \"\\n\");\n\t\t}\n\t\t\n\t\tbw.flush();\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.BufferedWriter;",
"BufferedWriter",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.OutputStreamWriter;",
"OutputStreamWriter",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\t\n\t\tint k = Integer.parseInt(br.readLine());\n\t\tString s = br.readLine();\n\t\t\n\t\tif(s.length() > k) {\n\t\t\tbw.write(s.substring(0, k) + \"...\\n\");\n\t\t} else {\n\t\t\tbw.write(s + \"\\n\");\n\t\t}\n\t\t\n\t\tbw.flush();\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\t\n\t\tint k = Integer.parseInt(br.readLine());\n\t\tString s = br.readLine();\n\t\t\n\t\tif(s.length() > k) {\n\t\t\tbw.write(s.substring(0, k) + \"...\\n\");\n\t\t} else {\n\t\t\tbw.write(s + \"\\n\");\n\t\t}\n\t\t\n\t\tbw.flush();\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\t\n\t\tint k = Integer.parseInt(br.readLine());\n\t\tString s = br.readLine();\n\t\t\n\t\tif(s.length() > k) {\n\t\t\tbw.write(s.substring(0, k) + \"...\\n\");\n\t\t} else {\n\t\t\tbw.write(s + \"\\n\");\n\t\t}\n\t\t\n\t\tbw.flush();\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));",
"bw",
"new BufferedWriter(new OutputStreamWriter(System.out))",
"int k = Integer.parseInt(br.readLine());",
"k",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"if(s.length() > k) {\n\t\t\tbw.write(s.substring(0, k) + \"...\\n\");\n\t\t} else {\n\t\t\tbw.write(s + \"\\n\");\n\t\t}",
"s.length() > k",
"s.length()",
"s.length",
"s",
"k",
"{\n\t\t\tbw.write(s.substring(0, k) + \"...\\n\");\n\t\t}",
"bw.write(s.substring(0, k) + \"...\\n\")",
"bw.write",
"bw",
"s.substring(0, k) + \"...\\n\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\\n\"",
"{\n\t\t\tbw.write(s + \"\\n\");\n\t\t}",
"bw.write(s + \"\\n\")",
"bw.write",
"bw",
"s + \"\\n\"",
"s",
"\"\\n\"",
"bw.flush()",
"bw.flush",
"bw",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\t\n\t\tint k = Integer.parseInt(br.readLine());\n\t\tString s = br.readLine();\n\t\t\n\t\tif(s.length() > k) {\n\t\t\tbw.write(s.substring(0, k) + \"...\\n\");\n\t\t} else {\n\t\t\tbw.write(s + \"\\n\");\n\t\t}\n\t\t\n\t\tbw.flush();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tBufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));\n\t\t\n\t\tint k = Integer.parseInt(br.readLine());\n\t\tString s = br.readLine();\n\t\t\n\t\tif(s.length() > k) {\n\t\t\tbw.write(s.substring(0, k) + \"...\\n\");\n\t\t} else {\n\t\t\tbw.write(s + \"\\n\");\n\t\t}\n\t\t\n\t\tbw.flush();\n\t}\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.BufferedWriter;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.OutputStreamWriter;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
BufferedWriter bw = new BufferedWriter(new OutputStreamWriter(System.out));
int k = Integer.parseInt(br.readLine());
String s = br.readLine();
if(s.length() > k) {
bw.write(s.substring(0, k) + "...\n");
} else {
bw.write(s + "\n");
}
bw.flush();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
30,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
48,
52
],
[
47,
53
],
[
6,
54
],
[
54,
55
]
] |
[
"import java.util.*; \nclass Main \n{\npublic static void main(String args[]) \n{\nScanner sc = new Scanner(System.in); \nint n = Integer.parseInt(sc.nextLine()); \nString s = sc.nextLine(); \nint l= s.length(); \nif(l<=n) \n{\nSystem.out.print(s);\n} \nelse \n{ \nSystem.out.print((s.substring(0,n))+\"...\"); \n}\n} \n}",
"import java.util.*;",
"util.*",
"java",
"class Main \n{\npublic static void main(String args[]) \n{\nScanner sc = new Scanner(System.in); \nint n = Integer.parseInt(sc.nextLine()); \nString s = sc.nextLine(); \nint l= s.length(); \nif(l<=n) \n{\nSystem.out.print(s);\n} \nelse \n{ \nSystem.out.print((s.substring(0,n))+\"...\"); \n}\n} \n}",
"Main",
"public static void main(String args[]) \n{\nScanner sc = new Scanner(System.in); \nint n = Integer.parseInt(sc.nextLine()); \nString s = sc.nextLine(); \nint l= s.length(); \nif(l<=n) \n{\nSystem.out.print(s);\n} \nelse \n{ \nSystem.out.print((s.substring(0,n))+\"...\"); \n}\n}",
"main",
"{\nScanner sc = new Scanner(System.in); \nint n = Integer.parseInt(sc.nextLine()); \nString s = sc.nextLine(); \nint l= s.length(); \nif(l<=n) \n{\nSystem.out.print(s);\n} \nelse \n{ \nSystem.out.print((s.substring(0,n))+\"...\"); \n}\n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.nextLine());",
"n",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int l= s.length();",
"l",
"s.length()",
"s.length",
"s",
"if(l<=n) \n{\nSystem.out.print(s);\n} \nelse \n{ \nSystem.out.print((s.substring(0,n))+\"...\"); \n}",
"l<=n",
"l",
"n",
"{\nSystem.out.print(s);\n}",
"System.out.print(s)",
"System.out.print",
"System.out",
"System",
"System.out",
"s",
"{ \nSystem.out.print((s.substring(0,n))+\"...\"); \n}",
"System.out.print((s.substring(0,n))+\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"(s.substring(0,n))+\"...\"",
"(s.substring(0,n))",
"s.substring",
"s",
"0",
"n",
"\"...\"",
"String args[]",
"args"
] |
import java.util.*;
class Main
{
public static void main(String args[])
{
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.nextLine());
String s = sc.nextLine();
int l= s.length();
if(l<=n)
{
System.out.print(s);
}
else
{
System.out.print((s.substring(0,n))+"...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
14,
2,
4,
18,
13,
13,
30,
0,
13,
13,
30,
0,
13,
2,
4,
18,
13,
17,
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
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
12,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
25,
28
],
[
28,
29
],
[
29,
30
],
[
19,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
19,
36
],
[
36,
37
],
[
36,
38
],
[
19,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
52,
58
],
[
19,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
9,
65
],
[
65,
66
]
] |
[
"import java.util.*;\nimport java.math.*;\n \nclass Main{\n public static void main(String[] args) {\n \n try(Scanner sc = new Scanner(System.in)){\n \n int k = Integer.parseInt(sc.next());\n String s = sc.next();\n\n String ans = \"\";\n\n if(s.length() <= k){\n ans = s;\n }else{\n ans = s.substring(0, k) + \"...\";\n }\n\n System.out.println(ans);\n\n }catch(Exception e){\n e.printStackTrace();\n } \n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"class Main{\n public static void main(String[] args) {\n \n try(Scanner sc = new Scanner(System.in)){\n \n int k = Integer.parseInt(sc.next());\n String s = sc.next();\n\n String ans = \"\";\n\n if(s.length() <= k){\n ans = s;\n }else{\n ans = s.substring(0, k) + \"...\";\n }\n\n System.out.println(ans);\n\n }catch(Exception e){\n e.printStackTrace();\n } \n }\n}",
"Main",
"public static void main(String[] args) {\n \n try(Scanner sc = new Scanner(System.in)){\n \n int k = Integer.parseInt(sc.next());\n String s = sc.next();\n\n String ans = \"\";\n\n if(s.length() <= k){\n ans = s;\n }else{\n ans = s.substring(0, k) + \"...\";\n }\n\n System.out.println(ans);\n\n }catch(Exception e){\n e.printStackTrace();\n } \n }",
"main",
"{\n \n try(Scanner sc = new Scanner(System.in)){\n \n int k = Integer.parseInt(sc.next());\n String s = sc.next();\n\n String ans = \"\";\n\n if(s.length() <= k){\n ans = s;\n }else{\n ans = s.substring(0, k) + \"...\";\n }\n\n System.out.println(ans);\n\n }catch(Exception e){\n e.printStackTrace();\n } \n }",
"try(Scanner sc = new Scanner(System.in)){\n \n int k = Integer.parseInt(sc.next());\n String s = sc.next();\n\n String ans = \"\";\n\n if(s.length() <= k){\n ans = s;\n }else{\n ans = s.substring(0, k) + \"...\";\n }\n\n System.out.println(ans);\n\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 \n int k = Integer.parseInt(sc.next());\n String s = sc.next();\n\n String ans = \"\";\n\n if(s.length() <= k){\n ans = s;\n }else{\n ans = s.substring(0, k) + \"...\";\n }\n\n System.out.println(ans);\n\n }",
"Scanner sc = new Scanner(System.in)",
"Scanner sc = new Scanner(System.in)",
"new Scanner(System.in)",
"int k = Integer.parseInt(sc.next());",
"k",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String ans = \"\";",
"ans",
"\"\"",
"if(s.length() <= k){\n ans = s;\n }else{\n ans = s.substring(0, k) + \"...\";\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n ans = s;\n }",
"ans = s",
"ans",
"s",
"{\n ans = s.substring(0, k) + \"...\";\n }",
"ans = s.substring(0, k) + \"...\"",
"ans",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] |
import java.util.*;
import java.math.*;
class Main{
public static void main(String[] args) {
try(Scanner sc = new Scanner(System.in)){
int k = Integer.parseInt(sc.next());
String s = sc.next();
String ans = "";
if(s.length() <= k){
ans = s;
}else{
ans = s.substring(0, k) + "...";
}
System.out.println(ans);
}catch(Exception e){
e.printStackTrace();
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
2,
13,
4,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
46,
5
],
[
46,
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
],
[
21,
22
],
[
22,
23
],
[
10,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
29,
35
],
[
29,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
37,
41
],
[
36,
42
],
[
6,
43
],
[
43,
44
],
[
0,
45
],
[
45,
46
],
[
45,
47
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tString s = scanner.next();\n\t\t\tSystem.out.println((k >= s.length()) ? s : s.substring(0, k) + \"...\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tString s = scanner.next();\n\t\t\tSystem.out.println((k >= s.length()) ? s : s.substring(0, k) + \"...\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tString s = scanner.next();\n\t\t\tSystem.out.println((k >= s.length()) ? s : s.substring(0, k) + \"...\");\n\t\t}\n\t}",
"main",
"{\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tString s = scanner.next();\n\t\t\tSystem.out.println((k >= s.length()) ? s : s.substring(0, k) + \"...\");\n\t\t}\n\t}",
"try (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tString s = scanner.next();\n\t\t\tSystem.out.println((k >= s.length()) ? s : s.substring(0, k) + \"...\");\n\t\t}",
"{\n\t\t\tint k = scanner.nextInt();\n\t\t\tString s = scanner.next();\n\t\t\tSystem.out.println((k >= s.length()) ? s : s.substring(0, k) + \"...\");\n\t\t}",
"Scanner scanner = new Scanner(System.in)",
"Scanner scanner = new Scanner(System.in)",
"new Scanner(System.in)",
"int k = scanner.nextInt();",
"k",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String s = scanner.next();",
"s",
"scanner.next()",
"scanner.next",
"scanner",
"System.out.println((k >= s.length()) ? s : s.substring(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"(k >= s.length()) ? s : s.substring(0, k) + \"...\"",
"(k >= s.length())",
"k",
"s.length()",
"s.length",
"s",
"s",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tString s = scanner.next();\n\t\t\tSystem.out.println((k >= s.length()) ? s : s.substring(0, k) + \"...\");\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner scanner = new Scanner(System.in)) {\n\t\t\tint k = scanner.nextInt();\n\t\t\tString s = scanner.next();\n\t\t\tSystem.out.println((k >= s.length()) ? s : s.substring(0, k) + \"...\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner scanner = new Scanner(System.in)) {
int k = scanner.nextInt();
String s = scanner.next();
System.out.println((k >= s.length()) ? s : s.substring(0, k) + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
29,
30,
41,
13,
2,
4,
18,
13,
17,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
33,
40
],
[
25,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
6,
57
],
[
57,
58
]
] |
[
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t Scanner scn = new Scanner(System.in);\n int k = Integer.parseInt(scn.nextLine());\n String s = scn.nextLine();\n if(s.length() < k+1){\n System.out.println(s);\n return;\n }else{\n String ans = s.substring(0,k) + \"...\";\n System.out.println(ans);\n }\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String[] args){\n\t Scanner scn = new Scanner(System.in);\n int k = Integer.parseInt(scn.nextLine());\n String s = scn.nextLine();\n if(s.length() < k+1){\n System.out.println(s);\n return;\n }else{\n String ans = s.substring(0,k) + \"...\";\n System.out.println(ans);\n }\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t Scanner scn = new Scanner(System.in);\n int k = Integer.parseInt(scn.nextLine());\n String s = scn.nextLine();\n if(s.length() < k+1){\n System.out.println(s);\n return;\n }else{\n String ans = s.substring(0,k) + \"...\";\n System.out.println(ans);\n }\n\t}",
"main",
"{\n\t Scanner scn = new Scanner(System.in);\n int k = Integer.parseInt(scn.nextLine());\n String s = scn.nextLine();\n if(s.length() < k+1){\n System.out.println(s);\n return;\n }else{\n String ans = s.substring(0,k) + \"...\";\n System.out.println(ans);\n }\n\t}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int k = Integer.parseInt(scn.nextLine());",
"k",
"Integer.parseInt(scn.nextLine())",
"Integer.parseInt",
"Integer",
"scn.nextLine()",
"scn.nextLine",
"scn",
"String s = scn.nextLine();",
"s",
"scn.nextLine()",
"scn.nextLine",
"scn",
"if(s.length() < k+1){\n System.out.println(s);\n return;\n }else{\n String ans = s.substring(0,k) + \"...\";\n System.out.println(ans);\n }",
"s.length() < k+1",
"s.length()",
"s.length",
"s",
"k+1",
"k",
"1",
"{\n System.out.println(s);\n return;\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"return;",
"{\n String ans = s.substring(0,k) + \"...\";\n System.out.println(ans);\n }",
"String ans = s.substring(0,k) + \"...\";",
"ans",
"s.substring(0,k) + \"...\"",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args"
] |
import java.util.*;
class Main{
public static void main(String[] args){
Scanner scn = new Scanner(System.in);
int k = Integer.parseInt(scn.nextLine());
String s = scn.nextLine();
if(s.length() < k+1){
System.out.println(s);
return;
}else{
String ans = s.substring(0,k) + "...";
System.out.println(ans);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
30,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
155,
17
],
[
155,
18
],
[
18,
19
],
[
155,
20
],
[
20,
21
],
[
155,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
24,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
24,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
50,
56
],
[
38,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
22,
64
],
[
64,
65
],
[
155,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
66,
70
],
[
70,
71
],
[
66,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
66,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
81,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
91,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
80,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
66,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
66,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
122,
123
],
[
66,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
66,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
139,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
135,
152
],
[
152,
153
],
[
0,
154
],
[
154,
155
],
[
154,
156
]
] |
[
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.lang.reflect.Array;\nimport java.util.*;\n\n\npublic class Main {\n \n \n static FastReader in;\n static StringBuilder out;\n \n public static void main(String[] args) {\n \n in = new FastReader();\n int k=in.nextInt();\n String n=in.nextLine();\n if(n.length()>k){\n System.out.println(n.substring(0,k)+\"...\");\n }else{\n System.out.println(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 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 \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.lang.reflect.Array;",
"Array",
"java.lang.reflect",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n \n \n static FastReader in;\n static StringBuilder out;\n \n public static void main(String[] args) {\n \n in = new FastReader();\n int k=in.nextInt();\n String n=in.nextLine();\n if(n.length()>k){\n System.out.println(n.substring(0,k)+\"...\");\n }else{\n System.out.println(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 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 \n \n}",
"Main",
"static FastReader in;",
"in",
"static StringBuilder out;",
"out",
"public static void main(String[] args) {\n \n in = new FastReader();\n int k=in.nextInt();\n String n=in.nextLine();\n if(n.length()>k){\n System.out.println(n.substring(0,k)+\"...\");\n }else{\n System.out.println(n);\n }\n }",
"main",
"{\n \n in = new FastReader();\n int k=in.nextInt();\n String n=in.nextLine();\n if(n.length()>k){\n System.out.println(n.substring(0,k)+\"...\");\n }else{\n System.out.println(n);\n }\n }",
"in = new FastReader()",
"in",
"new FastReader()",
"int k=in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"String n=in.nextLine();",
"n",
"in.nextLine()",
"in.nextLine",
"in",
"if(n.length()>k){\n System.out.println(n.substring(0,k)+\"...\");\n }else{\n System.out.println(n);\n }",
"n.length()>k",
"n.length()",
"n.length",
"n",
"k",
"{\n System.out.println(n.substring(0,k)+\"...\");\n }",
"System.out.println(n.substring(0,k)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"n.substring(0,k)+\"...\"",
"n.substring(0,k)",
"n.substring",
"n",
"0",
"k",
"\"...\"",
"{\n System.out.println(n);\n }",
"System.out.println(n)",
"System.out.println",
"System.out",
"System",
"System.out",
"n",
"String[] args",
"args",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n \n public FastReader() {\n br = new BufferedReader(new InputStreamReader(System.in));\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))",
"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 \n \n static FastReader in;\n static StringBuilder out;\n \n public static void main(String[] args) {\n \n in = new FastReader();\n int k=in.nextInt();\n String n=in.nextLine();\n if(n.length()>k){\n System.out.println(n.substring(0,k)+\"...\");\n }else{\n System.out.println(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 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 \n \n}",
"public class Main {\n \n \n static FastReader in;\n static StringBuilder out;\n \n public static void main(String[] args) {\n \n in = new FastReader();\n int k=in.nextInt();\n String n=in.nextLine();\n if(n.length()>k){\n System.out.println(n.substring(0,k)+\"...\");\n }else{\n System.out.println(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 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 \n \n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.lang.reflect.Array;
import java.util.*;
public class Main {
static FastReader in;
static StringBuilder out;
public static void main(String[] args) {
in = new FastReader();
int k=in.nextInt();
String n=in.nextLine();
if(n.length()>k){
System.out.println(n.substring(0,k)+"...");
}else{
System.out.println(n);
}
}
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;
}
}
}
|
[
7,
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,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
30,
4,
18,
13,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
95,
17
],
[
95,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
95,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
67,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
76,
82
],
[
66,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
53,
88
],
[
88,
89
],
[
53,
90
],
[
90,
91
],
[
53,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author CompuWare\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int K = in.nextInt();\n String S = in.next();\n\n if (S.length() > K) {\n out.print(S.substring(0, K) + \"...\");\n } else {\n out.print(S);\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.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int K = in.nextInt();\n String S = in.next();\n\n if (S.length() > K) {\n out.print(S.substring(0, K) + \"...\");\n } else {\n out.print(S);\n }\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\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",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"BTripleDots solver = new BTripleDots();",
"solver",
"new BTripleDots()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class BTripleDots {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int K = in.nextInt();\n String S = in.next();\n\n if (S.length() > K) {\n out.print(S.substring(0, K) + \"...\");\n } else {\n out.print(S);\n }\n }\n\n }",
"BTripleDots",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n int K = in.nextInt();\n String S = in.next();\n\n if (S.length() > K) {\n out.print(S.substring(0, K) + \"...\");\n } else {\n out.print(S);\n }\n }",
"solve",
"{\n int K = in.nextInt();\n String S = in.next();\n\n if (S.length() > K) {\n out.print(S.substring(0, K) + \"...\");\n } else {\n out.print(S);\n }\n }",
"int K = in.nextInt();",
"K",
"in.nextInt()",
"in.nextInt",
"in",
"String S = in.next();",
"S",
"in.next()",
"in.next",
"in",
"if (S.length() > K) {\n out.print(S.substring(0, K) + \"...\");\n } else {\n out.print(S);\n }",
"S.length() > K",
"S.length()",
"S.length",
"S",
"K",
"{\n out.print(S.substring(0, K) + \"...\");\n }",
"out.print(S.substring(0, K) + \"...\")",
"out.print",
"out",
"S.substring(0, K) + \"...\"",
"S.substring(0, K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"{\n out.print(S);\n }",
"out.print(S)",
"out.print",
"out",
"S",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int K = in.nextInt();\n String S = in.next();\n\n if (S.length() > K) {\n out.print(S.substring(0, K) + \"...\");\n } else {\n out.print(S);\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 Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n BTripleDots solver = new BTripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class BTripleDots {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int K = in.nextInt();\n String S = in.next();\n\n if (S.length() > K) {\n out.print(S.substring(0, K) + \"...\");\n } else {\n out.print(S);\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.Scanner;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author CompuWare
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
BTripleDots solver = new BTripleDots();
solver.solve(1, in, out);
out.close();
}
static class BTripleDots {
public void solve(int testNumber, Scanner in, PrintWriter out) {
int K = in.nextInt();
String S = in.next();
if (S.length() > K) {
out.print(S.substring(0, K) + "...");
} else {
out.print(S);
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
0,
13,
2,
4,
18,
13,
17,
13,
17,
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
],
[
54,
5
],
[
54,
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
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
31,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
22,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.*;\npublic class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int k = input.nextInt();\n String s = input.next();\n if (k < s.length()){\n s = s.substring(0,k) + \"...\";\n System.out.println(s);\n } else {\n System.out.println(s);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int k = input.nextInt();\n String s = input.next();\n if (k < s.length()){\n s = s.substring(0,k) + \"...\";\n System.out.println(s);\n } else {\n System.out.println(s);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int k = input.nextInt();\n String s = input.next();\n if (k < s.length()){\n s = s.substring(0,k) + \"...\";\n System.out.println(s);\n } else {\n System.out.println(s);\n }\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n int k = input.nextInt();\n String s = input.next();\n if (k < s.length()){\n s = s.substring(0,k) + \"...\";\n System.out.println(s);\n } else {\n System.out.println(s);\n }\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"int k = input.nextInt();",
"k",
"input.nextInt()",
"input.nextInt",
"input",
"String s = input.next();",
"s",
"input.next()",
"input.next",
"input",
"if (k < s.length()){\n s = s.substring(0,k) + \"...\";\n System.out.println(s);\n } else {\n System.out.println(s);\n }",
"k < s.length()",
"k",
"s.length()",
"s.length",
"s",
"{\n s = s.substring(0,k) + \"...\";\n System.out.println(s);\n }",
"s = s.substring(0,k) + \"...\"",
"s",
"s.substring(0,k) + \"...\"",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int k = input.nextInt();\n String s = input.next();\n if (k < s.length()){\n s = s.substring(0,k) + \"...\";\n System.out.println(s);\n } else {\n System.out.println(s);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner input = new Scanner(System.in);\n int k = input.nextInt();\n String s = input.next();\n if (k < s.length()){\n s = s.substring(0,k) + \"...\";\n System.out.println(s);\n } else {\n System.out.println(s);\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner input = new Scanner(System.in);
int k = input.nextInt();
String s = input.next();
if (k < s.length()){
s = s.substring(0,k) + "...";
System.out.println(s);
} else {
System.out.println(s);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
2,
4,
18,
13,
17,
2,
4,
18,
13,
17,
30,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
14,
2,
4,
18,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
43,
47
],
[
36,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
49,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
71,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tString moji=sc.next();\n\t\tString s=moji.toLowerCase();\n\n if(k>=1&&k<=100) {\n\t if(s.length()>=1&&s.length()<=100) {\n\t \t\tif(k>=s.length()) {\n\t \t\t\tSystem.out.println(s);\n\t \t\t}else if(s.length()>=k) {\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}\n\t }\n\n }\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\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tString moji=sc.next();\n\t\tString s=moji.toLowerCase();\n\n if(k>=1&&k<=100) {\n\t if(s.length()>=1&&s.length()<=100) {\n\t \t\tif(k>=s.length()) {\n\t \t\t\tSystem.out.println(s);\n\t \t\t}else if(s.length()>=k) {\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}\n\t }\n\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tString moji=sc.next();\n\t\tString s=moji.toLowerCase();\n\n if(k>=1&&k<=100) {\n\t if(s.length()>=1&&s.length()<=100) {\n\t \t\tif(k>=s.length()) {\n\t \t\t\tSystem.out.println(s);\n\t \t\t}else if(s.length()>=k) {\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}\n\t }\n\n }\n }",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tString moji=sc.next();\n\t\tString s=moji.toLowerCase();\n\n if(k>=1&&k<=100) {\n\t if(s.length()>=1&&s.length()<=100) {\n\t \t\tif(k>=s.length()) {\n\t \t\t\tSystem.out.println(s);\n\t \t\t}else if(s.length()>=k) {\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}\n\t }\n\n }\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k=sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String moji=sc.next();",
"moji",
"sc.next()",
"sc.next",
"sc",
"String s=moji.toLowerCase();",
"s",
"moji.toLowerCase()",
"moji.toLowerCase",
"moji",
"if(k>=1&&k<=100) {\n\t if(s.length()>=1&&s.length()<=100) {\n\t \t\tif(k>=s.length()) {\n\t \t\t\tSystem.out.println(s);\n\t \t\t}else if(s.length()>=k) {\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}\n\t }\n\n }",
"k>=1&&k<=100",
"k>=1",
"k",
"1",
"k<=100",
"k",
"100",
"{\n\t if(s.length()>=1&&s.length()<=100) {\n\t \t\tif(k>=s.length()) {\n\t \t\t\tSystem.out.println(s);\n\t \t\t}else if(s.length()>=k) {\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}\n\t }\n\n }",
"if(s.length()>=1&&s.length()<=100) {\n\t \t\tif(k>=s.length()) {\n\t \t\t\tSystem.out.println(s);\n\t \t\t}else if(s.length()>=k) {\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}\n\t }",
"s.length()>=1&&s.length()<=100",
"s.length()>=1",
"s.length()",
"s.length",
"s",
"1",
"s.length()<=100",
"s.length()",
"s.length",
"s",
"100",
"{\n\t \t\tif(k>=s.length()) {\n\t \t\t\tSystem.out.println(s);\n\t \t\t}else if(s.length()>=k) {\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}\n\t }",
"if(k>=s.length()) {\n\t \t\t\tSystem.out.println(s);\n\t \t\t}else if(s.length()>=k) {\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}",
"k>=s.length()",
"k",
"s.length()",
"s.length",
"s",
"{\n\t \t\t\tSystem.out.println(s);\n\t \t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"if(s.length()>=k) {\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}",
"s.length()>=k",
"s.length()",
"s.length",
"s",
"k",
"{\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}",
"String result=s.substring(0,k);",
"result",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"System.out.println(result+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"result+\"...\"",
"result",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tString moji=sc.next();\n\t\tString s=moji.toLowerCase();\n\n if(k>=1&&k<=100) {\n\t if(s.length()>=1&&s.length()<=100) {\n\t \t\tif(k>=s.length()) {\n\t \t\t\tSystem.out.println(s);\n\t \t\t}else if(s.length()>=k) {\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}\n\t }\n\n }\n }\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=sc.nextInt();\n\t\tString moji=sc.next();\n\t\tString s=moji.toLowerCase();\n\n if(k>=1&&k<=100) {\n\t if(s.length()>=1&&s.length()<=100) {\n\t \t\tif(k>=s.length()) {\n\t \t\t\tSystem.out.println(s);\n\t \t\t}else if(s.length()>=k) {\n\t \t\t\tString result=s.substring(0,k);\n\t \t\t\tSystem.out.println(result+\"...\");\n\t \t\t}\n\t }\n\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc=new Scanner(System.in);
int k=sc.nextInt();
String moji=sc.next();
String s=moji.toLowerCase();
if(k>=1&&k<=100) {
if(s.length()>=1&&s.length()<=100) {
if(k>=s.length()) {
System.out.println(s);
}else if(s.length()>=k) {
String result=s.substring(0,k);
System.out.println(result+"...");
}
}
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
37,
43
],
[
25,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = Integer.valueOf(sc.nextLine());\n\t\tString input = sc.nextLine();\n\t\tif (input.length() > k) {\n\t\t\tSystem.out.println(input.substring(0, k) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(input);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = Integer.valueOf(sc.nextLine());\n\t\tString input = sc.nextLine();\n\t\tif (input.length() > k) {\n\t\t\tSystem.out.println(input.substring(0, k) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(input);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = Integer.valueOf(sc.nextLine());\n\t\tString input = sc.nextLine();\n\t\tif (input.length() > k) {\n\t\t\tSystem.out.println(input.substring(0, k) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(input);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = Integer.valueOf(sc.nextLine());\n\t\tString input = sc.nextLine();\n\t\tif (input.length() > k) {\n\t\t\tSystem.out.println(input.substring(0, k) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(input);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = Integer.valueOf(sc.nextLine());",
"k",
"Integer.valueOf(sc.nextLine())",
"Integer.valueOf",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String input = sc.nextLine();",
"input",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if (input.length() > k) {\n\t\t\tSystem.out.println(input.substring(0, k) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(input);\n\t\t}",
"input.length() > k",
"input.length()",
"input.length",
"input",
"k",
"{\n\t\t\tSystem.out.println(input.substring(0, k) + \"...\");\n\t\t}",
"System.out.println(input.substring(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"input.substring(0, k) + \"...\"",
"input.substring(0, k)",
"input.substring",
"input",
"0",
"k",
"\"...\"",
"{\n\t\t\tSystem.out.println(input);\n\t\t}",
"System.out.println(input)",
"System.out.println",
"System.out",
"System",
"System.out",
"input",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = Integer.valueOf(sc.nextLine());\n\t\tString input = sc.nextLine();\n\t\tif (input.length() > k) {\n\t\t\tSystem.out.println(input.substring(0, k) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(input);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = Integer.valueOf(sc.nextLine());\n\t\tString input = sc.nextLine();\n\t\tif (input.length() > k) {\n\t\t\tSystem.out.println(input.substring(0, k) + \"...\");\n\t\t} else {\n\t\t\tSystem.out.println(input);\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = Integer.valueOf(sc.nextLine());
String input = sc.nextLine();
if (input.length() > k) {
System.out.println(input.substring(0, k) + "...");
} else {
System.out.println(input);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
0,
13,
20,
41,
13,
4,
13,
41,
13,
4,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
88,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
10,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
10,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
41,
47
],
[
8,
48
],
[
48,
49
],
[
88,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
88,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
88,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
74,
75
],
[
75,
76
],
[
88,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
84,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tstatic Scanner scanner;\n\n\tpublic static void main(String[] args) {\n\t scanner = new Scanner(System.in);\n\n\t int K=gi();\n\t String S=gs();\n \n\n\n //System.out.print(c);\n\n if (S.length()<=K) {\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0,K) + \"...\");\n }\n\t}\n\n\t// 文字列として入力を取得\n\tpublic static String gs() {\n\t\treturn scanner.next();\n\t}\n\n\t// intとして入力を取得\n\tpublic static int gi() {\n\t\treturn Integer.parseInt(scanner.next());\n\t}\n\n\t// longとして入力を取得\n\tpublic static long gl() {\n\t\treturn Long.parseLong(scanner.next());\n\t}\n\n\t// doubleとして入力を取得\n\tpublic static double gd() {\n\t\treturn Double.parseDouble(scanner.next());\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tstatic Scanner scanner;\n\n\tpublic static void main(String[] args) {\n\t scanner = new Scanner(System.in);\n\n\t int K=gi();\n\t String S=gs();\n \n\n\n //System.out.print(c);\n\n if (S.length()<=K) {\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0,K) + \"...\");\n }\n\t}\n\n\t// 文字列として入力を取得\n\tpublic static String gs() {\n\t\treturn scanner.next();\n\t}\n\n\t// intとして入力を取得\n\tpublic static int gi() {\n\t\treturn Integer.parseInt(scanner.next());\n\t}\n\n\t// longとして入力を取得\n\tpublic static long gl() {\n\t\treturn Long.parseLong(scanner.next());\n\t}\n\n\t// doubleとして入力を取得\n\tpublic static double gd() {\n\t\treturn Double.parseDouble(scanner.next());\n\t}\n}",
"Main",
"static Scanner scanner;",
"scanner",
"public static void main(String[] args) {\n\t scanner = new Scanner(System.in);\n\n\t int K=gi();\n\t String S=gs();\n \n\n\n //System.out.print(c);\n\n if (S.length()<=K) {\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0,K) + \"...\");\n }\n\t}",
"main",
"{\n\t scanner = new Scanner(System.in);\n\n\t int K=gi();\n\t String S=gs();\n \n\n\n //System.out.print(c);\n\n if (S.length()<=K) {\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0,K) + \"...\");\n }\n\t}",
"scanner = new Scanner(System.in)",
"scanner",
"new Scanner(System.in)",
"int K=gi();",
"K",
"gi()",
"gi",
"String S=gs();",
"S",
"gs()",
"gs",
"if (S.length()<=K) {\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0,K) + \"...\");\n }",
"S.length()<=K",
"S.length()",
"S.length",
"S",
"K",
"{\n \tSystem.out.println(S);\n }",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n \tSystem.out.println(S.substring(0,K) + \"...\");\n }",
"System.out.println(S.substring(0,K) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0,K) + \"...\"",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"String[] args",
"args",
"// 文字列として入力を取得\n\tpublic static String gs() {\n\t\treturn scanner.next();\n\t}",
"gs",
"{\n\t\treturn scanner.next();\n\t}",
"return scanner.next();",
"scanner.next()",
"scanner.next",
"scanner",
"// intとして入力を取得\n\tpublic static int gi() {\n\t\treturn Integer.parseInt(scanner.next());\n\t}",
"gi",
"{\n\t\treturn Integer.parseInt(scanner.next());\n\t}",
"return Integer.parseInt(scanner.next());",
"Integer.parseInt(scanner.next())",
"Integer.parseInt",
"Integer",
"scanner.next()",
"scanner.next",
"scanner",
"// longとして入力を取得\n\tpublic static long gl() {\n\t\treturn Long.parseLong(scanner.next());\n\t}",
"gl",
"{\n\t\treturn Long.parseLong(scanner.next());\n\t}",
"return Long.parseLong(scanner.next());",
"Long.parseLong(scanner.next())",
"Long.parseLong",
"Long",
"scanner.next()",
"scanner.next",
"scanner",
"// doubleとして入力を取得\n\tpublic static double gd() {\n\t\treturn Double.parseDouble(scanner.next());\n\t}",
"gd",
"{\n\t\treturn Double.parseDouble(scanner.next());\n\t}",
"return Double.parseDouble(scanner.next());",
"Double.parseDouble(scanner.next())",
"Double.parseDouble",
"Double",
"scanner.next()",
"scanner.next",
"scanner",
"public class Main {\n\n\tstatic Scanner scanner;\n\n\tpublic static void main(String[] args) {\n\t scanner = new Scanner(System.in);\n\n\t int K=gi();\n\t String S=gs();\n \n\n\n //System.out.print(c);\n\n if (S.length()<=K) {\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0,K) + \"...\");\n }\n\t}\n\n\t// 文字列として入力を取得\n\tpublic static String gs() {\n\t\treturn scanner.next();\n\t}\n\n\t// intとして入力を取得\n\tpublic static int gi() {\n\t\treturn Integer.parseInt(scanner.next());\n\t}\n\n\t// longとして入力を取得\n\tpublic static long gl() {\n\t\treturn Long.parseLong(scanner.next());\n\t}\n\n\t// doubleとして入力を取得\n\tpublic static double gd() {\n\t\treturn Double.parseDouble(scanner.next());\n\t}\n}",
"public class Main {\n\n\tstatic Scanner scanner;\n\n\tpublic static void main(String[] args) {\n\t scanner = new Scanner(System.in);\n\n\t int K=gi();\n\t String S=gs();\n \n\n\n //System.out.print(c);\n\n if (S.length()<=K) {\n \tSystem.out.println(S);\n }else{\n \tSystem.out.println(S.substring(0,K) + \"...\");\n }\n\t}\n\n\t// 文字列として入力を取得\n\tpublic static String gs() {\n\t\treturn scanner.next();\n\t}\n\n\t// intとして入力を取得\n\tpublic static int gi() {\n\t\treturn Integer.parseInt(scanner.next());\n\t}\n\n\t// longとして入力を取得\n\tpublic static long gl() {\n\t\treturn Long.parseLong(scanner.next());\n\t}\n\n\t// doubleとして入力を取得\n\tpublic static double gd() {\n\t\treturn Double.parseDouble(scanner.next());\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static Scanner scanner;
public static void main(String[] args) {
scanner = new Scanner(System.in);
int K=gi();
String S=gs();
//System.out.print(c);
if (S.length()<=K) {
System.out.println(S);
}else{
System.out.println(S.substring(0,K) + "...");
}
}
// 文字列として入力を取得
public static String gs() {
return scanner.next();
}
// intとして入力を取得
public static int gi() {
return Integer.parseInt(scanner.next());
}
// longとして入力を取得
public static long gl() {
return Long.parseLong(scanner.next());
}
// doubleとして入力を取得
public static double gd() {
return Double.parseDouble(scanner.next());
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
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
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
34,
41
],
[
8,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n StringBuilder SS = new StringBuilder(S);\n if (S.length() > K) {\n SS = SS.replace(K,S.length(),\"...\");\n } \n System.out.println(SS);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n StringBuilder SS = new StringBuilder(S);\n if (S.length() > K) {\n SS = SS.replace(K,S.length(),\"...\");\n } \n System.out.println(SS);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n StringBuilder SS = new StringBuilder(S);\n if (S.length() > K) {\n SS = SS.replace(K,S.length(),\"...\");\n } \n System.out.println(SS);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n StringBuilder SS = new StringBuilder(S);\n if (S.length() > K) {\n SS = SS.replace(K,S.length(),\"...\");\n } \n System.out.println(SS);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"StringBuilder SS = new StringBuilder(S);",
"SS",
"new StringBuilder(S)",
"if (S.length() > K) {\n SS = SS.replace(K,S.length(),\"...\");\n }",
"S.length() > K",
"S.length()",
"S.length",
"S",
"K",
"{\n SS = SS.replace(K,S.length(),\"...\");\n }",
"SS = SS.replace(K,S.length(),\"...\")",
"SS",
"SS.replace(K,S.length(),\"...\")",
"SS.replace",
"SS",
"K",
"S.length()",
"S.length",
"S",
"\"...\"",
"System.out.println(SS)",
"System.out.println",
"System.out",
"System",
"System.out",
"SS",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n StringBuilder SS = new StringBuilder(S);\n if (S.length() > K) {\n SS = SS.replace(K,S.length(),\"...\");\n } \n System.out.println(SS);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n StringBuilder SS = new StringBuilder(S);\n if (S.length() > K) {\n SS = SS.replace(K,S.length(),\"...\");\n } \n System.out.println(SS);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
StringBuilder SS = new StringBuilder(S);
if (S.length() > K) {
SS = SS.replace(K,S.length(),"...");
}
System.out.println(SS);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
17,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
155,
14
],
[
155,
15
],
[
15,
16
],
[
15,
17
],
[
155,
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
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
34,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
50,
54
],
[
47,
55
],
[
55,
56
],
[
55,
57
],
[
47,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
18,
64
],
[
64,
65
],
[
155,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
66,
70
],
[
70,
71
],
[
66,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
66,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
81,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
91,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
80,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
66,
106
],
[
106,
107
],
[
106,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
110,
113
],
[
113,
114
],
[
66,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
122,
123
],
[
66,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
128,
131
],
[
131,
132
],
[
66,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
136,
138
],
[
135,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
139,
146
],
[
146,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
135,
152
],
[
152,
153
],
[
0,
154
],
[
154,
155
],
[
154,
156
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.StringTokenizer;\n\npublic class Main {\n int mod = 1000000007;\n\n public static void main(String[] args) throws IOException {\n FastReader sc = new FastReader();\n int k = sc.nextInt();\n String str = sc.next();\n if (str.length() <= k){\n System.out.println(str);\n }else {\n String ans = str.substring(0,k);\n ans+=\"...\";\n System.out.println(ans);\n }\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\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}",
"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 int mod = 1000000007;\n\n public static void main(String[] args) throws IOException {\n FastReader sc = new FastReader();\n int k = sc.nextInt();\n String str = sc.next();\n if (str.length() <= k){\n System.out.println(str);\n }else {\n String ans = str.substring(0,k);\n ans+=\"...\";\n System.out.println(ans);\n }\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\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}",
"Main",
"int mod = 1000000007;",
"mod",
"1000000007",
"public static void main(String[] args) throws IOException {\n FastReader sc = new FastReader();\n int k = sc.nextInt();\n String str = sc.next();\n if (str.length() <= k){\n System.out.println(str);\n }else {\n String ans = str.substring(0,k);\n ans+=\"...\";\n System.out.println(ans);\n }\n\n }",
"main",
"{\n FastReader sc = new FastReader();\n int k = sc.nextInt();\n String str = sc.next();\n if (str.length() <= k){\n System.out.println(str);\n }else {\n String ans = str.substring(0,k);\n ans+=\"...\";\n System.out.println(ans);\n }\n\n }",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if (str.length() <= k){\n System.out.println(str);\n }else {\n String ans = str.substring(0,k);\n ans+=\"...\";\n System.out.println(ans);\n }",
"str.length() <= k",
"str.length()",
"str.length",
"str",
"k",
"{\n System.out.println(str);\n }",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"{\n String ans = str.substring(0,k);\n ans+=\"...\";\n System.out.println(ans);\n }",
"String ans = str.substring(0,k);",
"ans",
"str.substring(0,k)",
"str.substring",
"str",
"0",
"k",
"ans+=\"...\"",
"ans",
"\"...\"",
"System.out.println(ans)",
"System.out.println",
"System.out",
"System",
"System.out",
"ans",
"String[] args",
"args",
"static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\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\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 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 int mod = 1000000007;\n\n public static void main(String[] args) throws IOException {\n FastReader sc = new FastReader();\n int k = sc.nextInt();\n String str = sc.next();\n if (str.length() <= k){\n System.out.println(str);\n }else {\n String ans = str.substring(0,k);\n ans+=\"...\";\n System.out.println(ans);\n }\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\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}",
"public class Main {\n int mod = 1000000007;\n\n public static void main(String[] args) throws IOException {\n FastReader sc = new FastReader();\n int k = sc.nextInt();\n String str = sc.next();\n if (str.length() <= k){\n System.out.println(str);\n }else {\n String ans = str.substring(0,k);\n ans+=\"...\";\n System.out.println(ans);\n }\n\n }\n\n static class FastReader {\n BufferedReader br;\n StringTokenizer st;\n\n public FastReader() {\n br = new BufferedReader(new\n InputStreamReader(System.in));\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}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
public class Main {
int mod = 1000000007;
public static void main(String[] args) throws IOException {
FastReader sc = new FastReader();
int k = sc.nextInt();
String str = sc.next();
if (str.length() <= k){
System.out.println(str);
}else {
String ans = str.substring(0,k);
ans+="...";
System.out.println(ans);
}
}
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;
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
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
],
[
73,
5
],
[
73,
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
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
34,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
28,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] |
[
"import java.util.*;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a = sc.nextLine();\n\t\tint b = Integer.parseInt(a);\n\t\tString s = sc.nextLine();\n\t\tif(s.length()>b) {\n\t\tfor (int i = 0; i < b; i++) {\n\t\t System.out.print(s.charAt(i));\n\t\t}\t\n\t\t\tSystem.out.println(\"...\");\n\t\t}else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a = sc.nextLine();\n\t\tint b = Integer.parseInt(a);\n\t\tString s = sc.nextLine();\n\t\tif(s.length()>b) {\n\t\tfor (int i = 0; i < b; i++) {\n\t\t System.out.print(s.charAt(i));\n\t\t}\t\n\t\t\tSystem.out.println(\"...\");\n\t\t}else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a = sc.nextLine();\n\t\tint b = Integer.parseInt(a);\n\t\tString s = sc.nextLine();\n\t\tif(s.length()>b) {\n\t\tfor (int i = 0; i < b; i++) {\n\t\t System.out.print(s.charAt(i));\n\t\t}\t\n\t\t\tSystem.out.println(\"...\");\n\t\t}else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a = sc.nextLine();\n\t\tint b = Integer.parseInt(a);\n\t\tString s = sc.nextLine();\n\t\tif(s.length()>b) {\n\t\tfor (int i = 0; i < b; i++) {\n\t\t System.out.print(s.charAt(i));\n\t\t}\t\n\t\t\tSystem.out.println(\"...\");\n\t\t}else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String a = sc.nextLine();",
"a",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int b = Integer.parseInt(a);",
"b",
"Integer.parseInt(a)",
"Integer.parseInt",
"Integer",
"a",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(s.length()>b) {\n\t\tfor (int i = 0; i < b; i++) {\n\t\t System.out.print(s.charAt(i));\n\t\t}\t\n\t\t\tSystem.out.println(\"...\");\n\t\t}else {\n\t\t\tSystem.out.println(s);\n\t\t}",
"s.length()>b",
"s.length()",
"s.length",
"s",
"b",
"{\n\t\tfor (int i = 0; i < b; i++) {\n\t\t System.out.print(s.charAt(i));\n\t\t}\t\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"for (int i = 0; i < b; i++) {\n\t\t System.out.print(s.charAt(i));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < b",
"i",
"b",
"i++",
"i++",
"i",
"{\n\t\t System.out.print(s.charAt(i));\n\t\t}",
"{\n\t\t System.out.print(s.charAt(i));\n\t\t}",
"System.out.print(s.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a = sc.nextLine();\n\t\tint b = Integer.parseInt(a);\n\t\tString s = sc.nextLine();\n\t\tif(s.length()>b) {\n\t\tfor (int i = 0; i < b; i++) {\n\t\t System.out.print(s.charAt(i));\n\t\t}\t\n\t\t\tSystem.out.println(\"...\");\n\t\t}else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tString a = sc.nextLine();\n\t\tint b = Integer.parseInt(a);\n\t\tString s = sc.nextLine();\n\t\tif(s.length()>b) {\n\t\tfor (int i = 0; i < b; i++) {\n\t\t System.out.print(s.charAt(i));\n\t\t}\t\n\t\t\tSystem.out.println(\"...\");\n\t\t}else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String a = sc.nextLine();
int b = Integer.parseInt(a);
String s = sc.nextLine();
if(s.length()>b) {
for (int i = 0; i < b; i++) {
System.out.print(s.charAt(i));
}
System.out.println("...");
}else {
System.out.println(s);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
41,
45
],
[
38,
46
],
[
46,
47
],
[
46,
48
],
[
38,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
]
] |
[
"import java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = sc.nextInt();\n String str = sc.next();\n\t //Sの長さを求める\n int len = str.length();\n if(len <= cnt)\n {\n \t System.out.println(str);\n }\n else\n {\n \tString new_str = str.substring(0, cnt);\n new_str += \"...\";\n System.out.println(new_str);\n \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 int cnt = sc.nextInt();\n String str = sc.next();\n\t //Sの長さを求める\n int len = str.length();\n if(len <= cnt)\n {\n \t System.out.println(str);\n }\n else\n {\n \tString new_str = str.substring(0, cnt);\n new_str += \"...\";\n System.out.println(new_str);\n \n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int cnt = sc.nextInt();\n String str = sc.next();\n\t //Sの長さを求める\n int len = str.length();\n if(len <= cnt)\n {\n \t System.out.println(str);\n }\n else\n {\n \tString new_str = str.substring(0, cnt);\n new_str += \"...\";\n System.out.println(new_str);\n \n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int cnt = sc.nextInt();\n String str = sc.next();\n\t //Sの長さを求める\n int len = str.length();\n if(len <= cnt)\n {\n \t System.out.println(str);\n }\n else\n {\n \tString new_str = str.substring(0, cnt);\n new_str += \"...\";\n System.out.println(new_str);\n \n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int cnt = sc.nextInt();",
"cnt",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"int len = str.length();",
"len",
"str.length()",
"str.length",
"str",
"if(len <= cnt)\n {\n \t System.out.println(str);\n }\n else\n {\n \tString new_str = str.substring(0, cnt);\n new_str += \"...\";\n System.out.println(new_str);\n \n }",
"len <= cnt",
"len",
"cnt",
"{\n \t System.out.println(str);\n }",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"{\n \tString new_str = str.substring(0, cnt);\n new_str += \"...\";\n System.out.println(new_str);\n \n }",
"String new_str = str.substring(0, cnt);",
"new_str",
"str.substring(0, cnt)",
"str.substring",
"str",
"0",
"cnt",
"new_str += \"...\"",
"new_str",
"\"...\"",
"System.out.println(new_str)",
"System.out.println",
"System.out",
"System",
"System.out",
"new_str",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int cnt = sc.nextInt();
String str = sc.next();
//Sの長さを求める
int len = str.length();
if(len <= cnt)
{
System.out.println(str);
}
else
{
String new_str = str.substring(0, cnt);
new_str += "...";
System.out.println(new_str);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
0,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
47,
5
],
[
47,
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
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
32,
36
],
[
31,
37
],
[
8,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
6,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
] |
[
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n String str = sc.next();\n if(str.length() > num){\n str = str.substring(0, num) + \"...\";\n }\n System.out.println(str);\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 int num = sc.nextInt();\n String str = sc.next();\n if(str.length() > num){\n str = str.substring(0, num) + \"...\";\n }\n System.out.println(str);\n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n String str = sc.next();\n if(str.length() > num){\n str = str.substring(0, num) + \"...\";\n }\n System.out.println(str);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n String str = sc.next();\n if(str.length() > num){\n str = str.substring(0, num) + \"...\";\n }\n System.out.println(str);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if(str.length() > num){\n str = str.substring(0, num) + \"...\";\n }",
"str.length() > num",
"str.length()",
"str.length",
"str",
"num",
"{\n str = str.substring(0, num) + \"...\";\n }",
"str = str.substring(0, num) + \"...\"",
"str",
"str.substring(0, num) + \"...\"",
"str.substring(0, num)",
"str.substring",
"str",
"0",
"num",
"\"...\"",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n String str = sc.next();\n if(str.length() > num){\n str = str.substring(0, num) + \"...\";\n }\n System.out.println(str);\n }\n}",
"public class Main{\n\tpublic static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n String str = sc.next();\n if(str.length() > num){\n str = str.substring(0, num) + \"...\";\n }\n System.out.println(str);\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
String str = sc.next();
if(str.length() > num){
str = str.substring(0, num) + "...";
}
System.out.println(str);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
8,
2,
13,
4,
18,
13,
13,
2,
4,
18,
13,
17,
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
],
[
53,
8
],
[
53,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
30,
36
],
[
30,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
37,
43
],
[
11,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
9,
50
],
[
50,
51
],
[
0,
52
],
[
52,
53
],
[
52,
54
]
] |
[
"import java.util.*;\nimport java.math.*;\n \npublic class Main { //クラス名はMain\n public static void main(String[] args) {\n //整数の入力\n Scanner sc = new Scanner(System.in);\n Integer K = Integer.parseInt(sc.next());\n String S = sc.next();\n\n String answer = K >= S.length() ? S : S.substring(0,K) + \"...\";\n\n System.out.println(answer);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main { //クラス名はMain\n public static void main(String[] args) {\n //整数の入力\n Scanner sc = new Scanner(System.in);\n Integer K = Integer.parseInt(sc.next());\n String S = sc.next();\n\n String answer = K >= S.length() ? S : S.substring(0,K) + \"...\";\n\n System.out.println(answer);\n }\n}",
"Main",
"public static void main(String[] args) {\n //整数の入力\n Scanner sc = new Scanner(System.in);\n Integer K = Integer.parseInt(sc.next());\n String S = sc.next();\n\n String answer = K >= S.length() ? S : S.substring(0,K) + \"...\";\n\n System.out.println(answer);\n }",
"main",
"{\n //整数の入力\n Scanner sc = new Scanner(System.in);\n Integer K = Integer.parseInt(sc.next());\n String S = sc.next();\n\n String answer = K >= S.length() ? S : S.substring(0,K) + \"...\";\n\n System.out.println(answer);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Integer K = Integer.parseInt(sc.next());",
"K",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"String answer = K >= S.length() ? S : S.substring(0,K) + \"...\";",
"answer",
"K >= S.length() ? S : S.substring(0,K) + \"...\"",
"K >= S.length()",
"K",
"S.length()",
"S.length",
"S",
"S",
"S.substring(0,K) + \"...\"",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"System.out.println(answer)",
"System.out.println",
"System.out",
"System",
"System.out",
"answer",
"String[] args",
"args",
"public class Main { //クラス名はMain\n public static void main(String[] args) {\n //整数の入力\n Scanner sc = new Scanner(System.in);\n Integer K = Integer.parseInt(sc.next());\n String S = sc.next();\n\n String answer = K >= S.length() ? S : S.substring(0,K) + \"...\";\n\n System.out.println(answer);\n }\n}",
"public class Main { //クラス名はMain\n public static void main(String[] args) {\n //整数の入力\n Scanner sc = new Scanner(System.in);\n Integer K = Integer.parseInt(sc.next());\n String S = sc.next();\n\n String answer = K >= S.length() ? S : S.substring(0,K) + \"...\";\n\n System.out.println(answer);\n }\n}",
"Main"
] |
import java.util.*;
import java.math.*;
public class Main { //クラス名はMain
public static void main(String[] args) {
//整数の入力
Scanner sc = new Scanner(System.in);
Integer K = Integer.parseInt(sc.next());
String S = sc.next();
String answer = K >= S.length() ? S : S.substring(0,K) + "...";
System.out.println(answer);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n int l = s.length();\n if (k >= l) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\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 int k = sc.nextInt();\n String s = sc.next();\n int l = s.length();\n if (k >= l) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n int l = s.length();\n if (k >= l) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n int l = s.length();\n if (k >= l) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"int l = s.length();",
"l",
"s.length()",
"s.length",
"s",
"if (k >= l) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }",
"k >= l",
"k",
"l",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println(s.substring(0, k) + \"...\");\n }",
"System.out.println(s.substring(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n int l = s.length();\n if (k >= l) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n int l = s.length();\n if (k >= l) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
int l = s.length();
if (k >= l) {
System.out.println(s);
} else {
System.out.println(s.substring(0, k) + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
14,
2,
4,
18,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
4,
18,
13,
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
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int k = scanner.nextInt();\n String s = scanner.next();\n\n if( s.length() <= k ) {\n System.out.println( s );\n }else if( s.length() > k ) {\n String sk = s.substring( 0 , k );\n System.out.println( sk + \"...\");\n }\n\n\n scanner.close();\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int k = scanner.nextInt();\n String s = scanner.next();\n\n if( s.length() <= k ) {\n System.out.println( s );\n }else if( s.length() > k ) {\n String sk = s.substring( 0 , k );\n System.out.println( sk + \"...\");\n }\n\n\n scanner.close();\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int k = scanner.nextInt();\n String s = scanner.next();\n\n if( s.length() <= k ) {\n System.out.println( s );\n }else if( s.length() > k ) {\n String sk = s.substring( 0 , k );\n System.out.println( sk + \"...\");\n }\n\n\n scanner.close();\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n\n int k = scanner.nextInt();\n String s = scanner.next();\n\n if( s.length() <= k ) {\n System.out.println( s );\n }else if( s.length() > k ) {\n String sk = s.substring( 0 , k );\n System.out.println( sk + \"...\");\n }\n\n\n scanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int k = scanner.nextInt();",
"k",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String s = scanner.next();",
"s",
"scanner.next()",
"scanner.next",
"scanner",
"if( s.length() <= k ) {\n System.out.println( s );\n }else if( s.length() > k ) {\n String sk = s.substring( 0 , k );\n System.out.println( sk + \"...\");\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n System.out.println( s );\n }",
"System.out.println( s )",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"if( s.length() > k ) {\n String sk = s.substring( 0 , k );\n System.out.println( sk + \"...\");\n }",
"s.length() > k",
"s.length()",
"s.length",
"s",
"k",
"{\n String sk = s.substring( 0 , k );\n System.out.println( sk + \"...\");\n }",
"String sk = s.substring( 0 , k );",
"sk",
"s.substring( 0 , k )",
"s.substring",
"s",
"0",
"k",
"System.out.println( sk + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"sk + \"...\"",
"sk",
"\"...\"",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int k = scanner.nextInt();\n String s = scanner.next();\n\n if( s.length() <= k ) {\n System.out.println( s );\n }else if( s.length() > k ) {\n String sk = s.substring( 0 , k );\n System.out.println( sk + \"...\");\n }\n\n\n scanner.close();\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner scanner = new Scanner(System.in);\n\n int k = scanner.nextInt();\n String s = scanner.next();\n\n if( s.length() <= k ) {\n System.out.println( s );\n }else if( s.length() > k ) {\n String sk = s.substring( 0 , k );\n System.out.println( sk + \"...\");\n }\n\n\n scanner.close();\n }\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int k = scanner.nextInt();
String s = scanner.next();
if( s.length() <= k ) {
System.out.println( s );
}else if( s.length() > k ) {
String sk = s.substring( 0 , k );
System.out.println( sk + "...");
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
30,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
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
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
15,
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
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
34,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
54,
58
],
[
53,
59
],
[
12,
60
],
[
60,
61
]
] |
[
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\n\n/* Name of the class has to be \"Main\" only if the class is public. */\nclass Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\ttry {\n\t\t Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\t\t \n\t\t String s=sc.next();\n\t\t if(n>=s.length())\n\t\t { System.out.println(s);}\n\t\t else\n\t\t {\n\t\t System.out.println(s.substring(0,n)+\"...\");\n\t\t }\n\t\t} catch(Exception e) {\n\t\t} finally {\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n\tpublic static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\ttry {\n\t\t Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\t\t \n\t\t String s=sc.next();\n\t\t if(n>=s.length())\n\t\t { System.out.println(s);}\n\t\t else\n\t\t {\n\t\t System.out.println(s.substring(0,n)+\"...\");\n\t\t }\n\t\t} catch(Exception e) {\n\t\t} finally {\n\t\t}\n\t}\n}",
"Main",
"public static void main (String[] args) throws java.lang.Exception\n\t{\n\t\t// your code goes here\n\t\ttry {\n\t\t Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\t\t \n\t\t String s=sc.next();\n\t\t if(n>=s.length())\n\t\t { System.out.println(s);}\n\t\t else\n\t\t {\n\t\t System.out.println(s.substring(0,n)+\"...\");\n\t\t }\n\t\t} catch(Exception e) {\n\t\t} finally {\n\t\t}\n\t}",
"main",
"{\n\t\t// your code goes here\n\t\ttry {\n\t\t Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\t\t \n\t\t String s=sc.next();\n\t\t if(n>=s.length())\n\t\t { System.out.println(s);}\n\t\t else\n\t\t {\n\t\t System.out.println(s.substring(0,n)+\"...\");\n\t\t }\n\t\t} catch(Exception e) {\n\t\t} finally {\n\t\t}\n\t}",
"try {\n\t\t Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\t\t \n\t\t String s=sc.next();\n\t\t if(n>=s.length())\n\t\t { System.out.println(s);}\n\t\t else\n\t\t {\n\t\t System.out.println(s.substring(0,n)+\"...\");\n\t\t }\n\t\t} catch(Exception e) {\n\t\t} finally {\n\t\t}",
"catch(Exception e) {\n\t\t}",
"Exception e",
"{\n\t\t}",
"{\n\t\t}",
"{\n\t\t Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\t\t \n\t\t String s=sc.next();\n\t\t if(n>=s.length())\n\t\t { System.out.println(s);}\n\t\t else\n\t\t {\n\t\t System.out.println(s.substring(0,n)+\"...\");\n\t\t }\n\t\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s=sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(n>=s.length())\n\t\t { System.out.println(s);}\n\t\t else\n\t\t {\n\t\t System.out.println(s.substring(0,n)+\"...\");\n\t\t }",
"n>=s.length()",
"n",
"s.length()",
"s.length",
"s",
"{ System.out.println(s);}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t System.out.println(s.substring(0,n)+\"...\");\n\t\t }",
"System.out.println(s.substring(0,n)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0,n)+\"...\"",
"s.substring(0,n)",
"s.substring",
"s",
"0",
"n",
"\"...\"",
"String[] args",
"args"
] |
import java.util.*;
import java.lang.*;
import java.io.*;
/* Name of the class has to be "Main" only if the class is public. */
class Main
{
public static void main (String[] args) throws java.lang.Exception
{
// your code goes here
try {
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
String s=sc.next();
if(n>=s.length())
{ System.out.println(s);}
else
{
System.out.println(s.substring(0,n)+"...");
}
} catch(Exception e) {
} finally {
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
20,
17,
17,
41,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
2,
13,
17,
14,
4,
18,
17,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
24,
28
],
[
8,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
31,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
36,
40
],
[
40,
41
],
[
40,
42
],
[
8,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
43,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
43,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
58,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
6,
71
],
[
71,
72
]
] |
[
"import java.util.*;\nclass Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n // 99の長さの \"_\" を作る\n\tString repeated = new String(new char[99]).replace(\"\\0\", \"_\");\n\tString v = s + repeated; // s の後ろに \"_\" を99個連結する。\n\tString x = v.substring(k,k+1); // 数値 k + 1番目の文字列を取り出す\n\tif(\"_\".equals(x)){ // k + 1 番目が _ であれば s のまま出力\n\t\tSystem.out.println( s );\n\t}else{\n String r = s.substring(0,k); \n\t\tSystem.out.println( r + \"...\" );\n\t}\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n // 99の長さの \"_\" を作る\n\tString repeated = new String(new char[99]).replace(\"\\0\", \"_\");\n\tString v = s + repeated; // s の後ろに \"_\" を99個連結する。\n\tString x = v.substring(k,k+1); // 数値 k + 1番目の文字列を取り出す\n\tif(\"_\".equals(x)){ // k + 1 番目が _ であれば s のまま出力\n\t\tSystem.out.println( s );\n\t}else{\n String r = s.substring(0,k); \n\t\tSystem.out.println( r + \"...\" );\n\t}\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n // 99の長さの \"_\" を作る\n\tString repeated = new String(new char[99]).replace(\"\\0\", \"_\");\n\tString v = s + repeated; // s の後ろに \"_\" を99個連結する。\n\tString x = v.substring(k,k+1); // 数値 k + 1番目の文字列を取り出す\n\tif(\"_\".equals(x)){ // k + 1 番目が _ であれば s のまま出力\n\t\tSystem.out.println( s );\n\t}else{\n String r = s.substring(0,k); \n\t\tSystem.out.println( r + \"...\" );\n\t}\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n // 99の長さの \"_\" を作る\n\tString repeated = new String(new char[99]).replace(\"\\0\", \"_\");\n\tString v = s + repeated; // s の後ろに \"_\" を99個連結する。\n\tString x = v.substring(k,k+1); // 数値 k + 1番目の文字列を取り出す\n\tif(\"_\".equals(x)){ // k + 1 番目が _ であれば s のまま出力\n\t\tSystem.out.println( s );\n\t}else{\n String r = s.substring(0,k); \n\t\tSystem.out.println( r + \"...\" );\n\t}\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String repeated = new String(new char[99]).replace(\"\\0\", \"_\");",
"repeated",
"new String(new char[99]).replace(\"\\0\", \"_\")",
"new String(new char[99]).replace",
"new String(new char[99])",
"\"\\0\"",
"\"_\"",
"String v = s + repeated;",
"v",
"s + repeated",
"s",
"repeated",
"String x = v.substring(k,k+1);",
"x",
"v.substring(k,k+1)",
"v.substring",
"v",
"k",
"k+1",
"k",
"1",
"if(\"_\".equals(x)){ // k + 1 番目が _ であれば s のまま出力\n\t\tSystem.out.println( s );\n\t}else{\n String r = s.substring(0,k); \n\t\tSystem.out.println( r + \"...\" );\n\t}",
"\"_\".equals(x)",
"\"_\".equals",
"\"_\"",
"x",
"{ // k + 1 番目が _ であれば s のまま出力\n\t\tSystem.out.println( s );\n\t}",
"System.out.println( s )",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n String r = s.substring(0,k); \n\t\tSystem.out.println( r + \"...\" );\n\t}",
"String r = s.substring(0,k);",
"r",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"System.out.println( r + \"...\" )",
"System.out.println",
"System.out",
"System",
"System.out",
"r + \"...\"",
"r",
"\"...\"",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
// 99の長さの "_" を作る
String repeated = new String(new char[99]).replace("\0", "_");
String v = s + repeated; // s の後ろに "_" を99個連結する。
String x = v.substring(k,k+1); // 数値 k + 1番目の文字列を取り出す
if("_".equals(x)){ // k + 1 番目が _ であれば s のまま出力
System.out.println( s );
}else{
String r = s.substring(0,k);
System.out.println( r + "..." );
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
0,
13,
2,
4,
18,
13,
17,
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
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
8,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
50,
54
],
[
49,
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\n public static void main(String []args){\n Scanner sc = new Scanner(System.in);\n int a=0;\n int b=0;\n int c=0;\n int d=0;\n int score=0;\n String x=\"\";\n a=sc.nextInt();\n\n\n x=sc.next();\n\n if(x.length()>a){\n x=x.substring(0,a)+\"...\";\n\n\n }\n System.out.print(x);\n\n\n\n }\n\n}\n\n\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n public static void main(String []args){\n Scanner sc = new Scanner(System.in);\n int a=0;\n int b=0;\n int c=0;\n int d=0;\n int score=0;\n String x=\"\";\n a=sc.nextInt();\n\n\n x=sc.next();\n\n if(x.length()>a){\n x=x.substring(0,a)+\"...\";\n\n\n }\n System.out.print(x);\n\n\n\n }\n\n}",
"Main",
"public static void main(String []args){\n Scanner sc = new Scanner(System.in);\n int a=0;\n int b=0;\n int c=0;\n int d=0;\n int score=0;\n String x=\"\";\n a=sc.nextInt();\n\n\n x=sc.next();\n\n if(x.length()>a){\n x=x.substring(0,a)+\"...\";\n\n\n }\n System.out.print(x);\n\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a=0;\n int b=0;\n int c=0;\n int d=0;\n int score=0;\n String x=\"\";\n a=sc.nextInt();\n\n\n x=sc.next();\n\n if(x.length()>a){\n x=x.substring(0,a)+\"...\";\n\n\n }\n System.out.print(x);\n\n\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a=0;",
"a",
"0",
"int b=0;",
"b",
"0",
"int c=0;",
"c",
"0",
"int d=0;",
"d",
"0",
"int score=0;",
"score",
"0",
"String x=\"\";",
"x",
"\"\"",
"a=sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"x=sc.next()",
"x",
"sc.next()",
"sc.next",
"sc",
"if(x.length()>a){\n x=x.substring(0,a)+\"...\";\n\n\n }",
"x.length()>a",
"x.length()",
"x.length",
"x",
"a",
"{\n x=x.substring(0,a)+\"...\";\n\n\n }",
"x=x.substring(0,a)+\"...\"",
"x",
"x.substring(0,a)+\"...\"",
"x.substring(0,a)",
"x.substring",
"x",
"0",
"a",
"\"...\"",
"System.out.print(x)",
"System.out.print",
"System.out",
"System",
"System.out",
"x",
"String []args",
"args",
"public class Main{\n\n public static void main(String []args){\n Scanner sc = new Scanner(System.in);\n int a=0;\n int b=0;\n int c=0;\n int d=0;\n int score=0;\n String x=\"\";\n a=sc.nextInt();\n\n\n x=sc.next();\n\n if(x.length()>a){\n x=x.substring(0,a)+\"...\";\n\n\n }\n System.out.print(x);\n\n\n\n }\n\n}",
"public class Main{\n\n public static void main(String []args){\n Scanner sc = new Scanner(System.in);\n int a=0;\n int b=0;\n int c=0;\n int d=0;\n int score=0;\n String x=\"\";\n a=sc.nextInt();\n\n\n x=sc.next();\n\n if(x.length()>a){\n x=x.substring(0,a)+\"...\";\n\n\n }\n System.out.print(x);\n\n\n\n }\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String []args){
Scanner sc = new Scanner(System.in);
int a=0;
int b=0;
int c=0;
int d=0;
int score=0;
String x="";
a=sc.nextInt();
x=sc.next();
if(x.length()>a){
x=x.substring(0,a)+"...";
}
System.out.print(x);
}
}
|
[
7,
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,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
13,
13,
29,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
95,
17
],
[
95,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
20,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
28,
30
],
[
20,
31
],
[
31,
32
],
[
31,
33
],
[
20,
34
],
[
34,
35
],
[
34,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
20,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
40,
45
],
[
20,
46
],
[
46,
47
],
[
47,
48
],
[
18,
49
],
[
49,
50
],
[
95,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
55,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
67,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
72,
77
],
[
55,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
82,
86
],
[
81,
87
],
[
53,
88
],
[
88,
89
],
[
53,
90
],
[
90,
91
],
[
53,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\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 Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TripleDots solver = new TripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TripleDots {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n\n if (s.length() <= k) {\n out.append(s);\n return;\n }\n\n out.append(s.substring(0, k) + \"...\");\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.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TripleDots solver = new TripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TripleDots {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n\n if (s.length() <= k) {\n out.append(s);\n return;\n }\n\n out.append(s.substring(0, k) + \"...\");\n\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TripleDots solver = new TripleDots();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TripleDots solver = new TripleDots();\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",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TripleDots solver = new TripleDots();",
"solver",
"new TripleDots()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TripleDots {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n\n if (s.length() <= k) {\n out.append(s);\n return;\n }\n\n out.append(s.substring(0, k) + \"...\");\n\n }\n\n }",
"TripleDots",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n\n if (s.length() <= k) {\n out.append(s);\n return;\n }\n\n out.append(s.substring(0, k) + \"...\");\n\n }",
"solve",
"{\n int k = in.nextInt();\n String s = in.next();\n\n if (s.length() <= k) {\n out.append(s);\n return;\n }\n\n out.append(s.substring(0, k) + \"...\");\n\n }",
"int k = in.nextInt();",
"k",
"in.nextInt()",
"in.nextInt",
"in",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"if (s.length() <= k) {\n out.append(s);\n return;\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n out.append(s);\n return;\n }",
"out.append(s)",
"out.append",
"out",
"s",
"return;",
"out.append(s.substring(0, k) + \"...\")",
"out.append",
"out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TripleDots solver = new TripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TripleDots {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n\n if (s.length() <= k) {\n out.append(s);\n return;\n }\n\n out.append(s.substring(0, k) + \"...\");\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 Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TripleDots solver = new TripleDots();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TripleDots {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n int k = in.nextInt();\n String s = in.next();\n\n if (s.length() <= k) {\n out.append(s);\n return;\n }\n\n out.append(s.substring(0, k) + \"...\");\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.Scanner;
/**
* 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;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TripleDots solver = new TripleDots();
solver.solve(1, in, out);
out.close();
}
static class TripleDots {
public void solve(int testNumber, Scanner in, PrintWriter out) {
int k = in.nextInt();
String s = in.next();
if (s.length() <= k) {
out.append(s);
return;
}
out.append(s.substring(0, k) + "...");
}
}
}
|
[
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,
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,
4,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
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
],
[
95,
5
],
[
95,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
57,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
51,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
6,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scn = new Scanner(System.in);\n\t\tint K = scn.nextInt();\n\t\tString S = scn.next();\n\n\t\tchar[] moji = new char[S.length()];\n\n\t for(int i = 0; i < S.length(); i++){\n\t moji[i] = S.charAt(i);\n\t }\n\t if(S.length()>K) {\n\t \tfor(int i =0; i<K; i++) {\n\t \t\tSystem.out.print(moji[i]);\n\t \t}\n\t \tSystem.out.println(\"...\");\n\t }else {\n\t \tSystem.out.println(S);\n\t }\n\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 scn = new Scanner(System.in);\n\t\tint K = scn.nextInt();\n\t\tString S = scn.next();\n\n\t\tchar[] moji = new char[S.length()];\n\n\t for(int i = 0; i < S.length(); i++){\n\t moji[i] = S.charAt(i);\n\t }\n\t if(S.length()>K) {\n\t \tfor(int i =0; i<K; i++) {\n\t \t\tSystem.out.print(moji[i]);\n\t \t}\n\t \tSystem.out.println(\"...\");\n\t }else {\n\t \tSystem.out.println(S);\n\t }\n\n}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scn = new Scanner(System.in);\n\t\tint K = scn.nextInt();\n\t\tString S = scn.next();\n\n\t\tchar[] moji = new char[S.length()];\n\n\t for(int i = 0; i < S.length(); i++){\n\t moji[i] = S.charAt(i);\n\t }\n\t if(S.length()>K) {\n\t \tfor(int i =0; i<K; i++) {\n\t \t\tSystem.out.print(moji[i]);\n\t \t}\n\t \tSystem.out.println(\"...\");\n\t }else {\n\t \tSystem.out.println(S);\n\t }\n\n}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scn = new Scanner(System.in);\n\t\tint K = scn.nextInt();\n\t\tString S = scn.next();\n\n\t\tchar[] moji = new char[S.length()];\n\n\t for(int i = 0; i < S.length(); i++){\n\t moji[i] = S.charAt(i);\n\t }\n\t if(S.length()>K) {\n\t \tfor(int i =0; i<K; i++) {\n\t \t\tSystem.out.print(moji[i]);\n\t \t}\n\t \tSystem.out.println(\"...\");\n\t }else {\n\t \tSystem.out.println(S);\n\t }\n\n}",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int K = scn.nextInt();",
"K",
"scn.nextInt()",
"scn.nextInt",
"scn",
"String S = scn.next();",
"S",
"scn.next()",
"scn.next",
"scn",
"char[] moji = new char[S.length()];",
"moji",
"new char[S.length()]",
"S.length()",
"S.length",
"S",
"for(int i = 0; i < S.length(); i++){\n\t moji[i] = S.charAt(i);\n\t }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < S.length()",
"i",
"S.length()",
"S.length",
"S",
"i++",
"i++",
"i",
"{\n\t moji[i] = S.charAt(i);\n\t }",
"{\n\t moji[i] = S.charAt(i);\n\t }",
"moji[i] = S.charAt(i)",
"moji[i]",
"moji",
"i",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"if(S.length()>K) {\n\t \tfor(int i =0; i<K; i++) {\n\t \t\tSystem.out.print(moji[i]);\n\t \t}\n\t \tSystem.out.println(\"...\");\n\t }else {\n\t \tSystem.out.println(S);\n\t }",
"S.length()>K",
"S.length()",
"S.length",
"S",
"K",
"{\n\t \tfor(int i =0; i<K; i++) {\n\t \t\tSystem.out.print(moji[i]);\n\t \t}\n\t \tSystem.out.println(\"...\");\n\t }",
"for(int i =0; i<K; i++) {\n\t \t\tSystem.out.print(moji[i]);\n\t \t}",
"int i =0;",
"int i =0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t \t\tSystem.out.print(moji[i]);\n\t \t}",
"{\n\t \t\tSystem.out.print(moji[i]);\n\t \t}",
"System.out.print(moji[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"moji[i]",
"moji",
"i",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"{\n\t \tSystem.out.println(S);\n\t }",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scn = new Scanner(System.in);\n\t\tint K = scn.nextInt();\n\t\tString S = scn.next();\n\n\t\tchar[] moji = new char[S.length()];\n\n\t for(int i = 0; i < S.length(); i++){\n\t moji[i] = S.charAt(i);\n\t }\n\t if(S.length()>K) {\n\t \tfor(int i =0; i<K; i++) {\n\t \t\tSystem.out.print(moji[i]);\n\t \t}\n\t \tSystem.out.println(\"...\");\n\t }else {\n\t \tSystem.out.println(S);\n\t }\n\n}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scn = new Scanner(System.in);\n\t\tint K = scn.nextInt();\n\t\tString S = scn.next();\n\n\t\tchar[] moji = new char[S.length()];\n\n\t for(int i = 0; i < S.length(); i++){\n\t moji[i] = S.charAt(i);\n\t }\n\t if(S.length()>K) {\n\t \tfor(int i =0; i<K; i++) {\n\t \t\tSystem.out.print(moji[i]);\n\t \t}\n\t \tSystem.out.println(\"...\");\n\t }else {\n\t \tSystem.out.println(S);\n\t }\n\n}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scn = new Scanner(System.in);
int K = scn.nextInt();
String S = scn.next();
char[] moji = new char[S.length()];
for(int i = 0; i < S.length(); i++){
moji[i] = S.charAt(i);
}
if(S.length()>K) {
for(int i =0; i<K; i++) {
System.out.print(moji[i]);
}
System.out.println("...");
}else {
System.out.println(S);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
17,
13,
17,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
52,
5
],
[
52,
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
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
22,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
41,
47
],
[
41,
48
],
[
6,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tString s=scan.next();\n\t\t//System.out.println(s.length());\n\t\tif(s.length()<=n) System.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,n)+\"\"+\"...\");\n\t\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tString s=scan.next();\n\t\t//System.out.println(s.length());\n\t\tif(s.length()<=n) System.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,n)+\"\"+\"...\");\n\t\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tString s=scan.next();\n\t\t//System.out.println(s.length());\n\t\tif(s.length()<=n) System.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,n)+\"\"+\"...\");\n\t\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tString s=scan.next();\n\t\t//System.out.println(s.length());\n\t\tif(s.length()<=n) System.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,n)+\"\"+\"...\");\n\t\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n=scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String s=scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"if(s.length()<=n) System.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,n)+\"\"+\"...\");\n\t\t\t}",
"s.length()<=n",
"s.length()",
"s.length",
"s",
"n",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t\tSystem.out.println(s.substring(0,n)+\"\"+\"...\");\n\t\t\t}",
"System.out.println(s.substring(0,n)+\"\"+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0,n)+\"\"+\"...\"",
"s.substring(0,n)+\"\"+\"...\"",
"s.substring(0,n)",
"s.substring",
"s",
"0",
"n",
"\"\"",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tString s=scan.next();\n\t\t//System.out.println(s.length());\n\t\tif(s.length()<=n) System.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,n)+\"\"+\"...\");\n\t\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tString s=scan.next();\n\t\t//System.out.println(s.length());\n\t\tif(s.length()<=n) System.out.println(s);\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0,n)+\"\"+\"...\");\n\t\t\t}\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n=scan.nextInt();
String s=scan.next();
//System.out.println(s.length());
if(s.length()<=n) System.out.println(s);
else {
System.out.println(s.substring(0,n)+""+"...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
0,
13,
13,
30,
0,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
41,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString ans =\"\";\n\t\tScanner scan_1 = new Scanner(System.in);\n\t\tint num = scan_1.nextInt();\n\t\tString str = scan_1.next();\n\n\n\t\tint nagasa = str.length();\n\n\t\tif(nagasa <= num) {\n\t\t\tans = str;\n\t\t}else {\n\t\t\tans = str.substring(0, num)+\"...\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString ans =\"\";\n\t\tScanner scan_1 = new Scanner(System.in);\n\t\tint num = scan_1.nextInt();\n\t\tString str = scan_1.next();\n\n\n\t\tint nagasa = str.length();\n\n\t\tif(nagasa <= num) {\n\t\t\tans = str;\n\t\t}else {\n\t\t\tans = str.substring(0, num)+\"...\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tString ans =\"\";\n\t\tScanner scan_1 = new Scanner(System.in);\n\t\tint num = scan_1.nextInt();\n\t\tString str = scan_1.next();\n\n\n\t\tint nagasa = str.length();\n\n\t\tif(nagasa <= num) {\n\t\t\tans = str;\n\t\t}else {\n\t\t\tans = str.substring(0, num)+\"...\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}",
"main",
"{\n\n\t\tString ans =\"\";\n\t\tScanner scan_1 = new Scanner(System.in);\n\t\tint num = scan_1.nextInt();\n\t\tString str = scan_1.next();\n\n\n\t\tint nagasa = str.length();\n\n\t\tif(nagasa <= num) {\n\t\t\tans = str;\n\t\t}else {\n\t\t\tans = str.substring(0, num)+\"...\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}",
"String ans =\"\";",
"ans",
"\"\"",
"Scanner scan_1 = new Scanner(System.in);",
"scan_1",
"new Scanner(System.in)",
"int num = scan_1.nextInt();",
"num",
"scan_1.nextInt()",
"scan_1.nextInt",
"scan_1",
"String str = scan_1.next();",
"str",
"scan_1.next()",
"scan_1.next",
"scan_1",
"int nagasa = str.length();",
"nagasa",
"str.length()",
"str.length",
"str",
"if(nagasa <= num) {\n\t\t\tans = str;\n\t\t}else {\n\t\t\tans = str.substring(0, num)+\"...\";\n\t\t}",
"nagasa <= num",
"nagasa",
"num",
"{\n\t\t\tans = str;\n\t\t}",
"ans = str",
"ans",
"str",
"{\n\t\t\tans = str.substring(0, num)+\"...\";\n\t\t}",
"ans = str.substring(0, num)+\"...\"",
"ans",
"str.substring(0, num)+\"...\"",
"str.substring(0, num)",
"str.substring",
"str",
"0",
"num",
"\"...\"",
"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\n\t\tString ans =\"\";\n\t\tScanner scan_1 = new Scanner(System.in);\n\t\tint num = scan_1.nextInt();\n\t\tString str = scan_1.next();\n\n\n\t\tint nagasa = str.length();\n\n\t\tif(nagasa <= num) {\n\t\t\tans = str;\n\t\t}else {\n\t\t\tans = str.substring(0, num)+\"...\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tString ans =\"\";\n\t\tScanner scan_1 = new Scanner(System.in);\n\t\tint num = scan_1.nextInt();\n\t\tString str = scan_1.next();\n\n\n\t\tint nagasa = str.length();\n\n\t\tif(nagasa <= num) {\n\t\t\tans = str;\n\t\t}else {\n\t\t\tans = str.substring(0, num)+\"...\";\n\t\t}\n\n\t\tSystem.out.println(ans);\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
String ans ="";
Scanner scan_1 = new Scanner(System.in);
int num = scan_1.nextInt();
String str = scan_1.next();
int nagasa = str.length();
if(nagasa <= num) {
ans = str;
}else {
ans = str.substring(0, num)+"...";
}
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,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
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
],
[
74,
5
],
[
74,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
36,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
32,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] |
[
"import java.util.*;\n \npublic class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint nam = in.nextInt();\n\t\tString s = in.next();\n\t\tint s_len = s.length();\n\t\tchar[] s_chars = s.toCharArray();\n \n if(nam < s_len ){\n for(int i = 0 ; i < nam;i++){\n System.out.print(s_chars[i]);\n }\n System.out.print(\"...\");\n }else{\n System.out.println(s);\n }\n\n \n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint nam = in.nextInt();\n\t\tString s = in.next();\n\t\tint s_len = s.length();\n\t\tchar[] s_chars = s.toCharArray();\n \n if(nam < s_len ){\n for(int i = 0 ; i < nam;i++){\n System.out.print(s_chars[i]);\n }\n System.out.print(\"...\");\n }else{\n System.out.println(s);\n }\n\n \n\t}\n}",
"Main",
"public static void main (String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint nam = in.nextInt();\n\t\tString s = in.next();\n\t\tint s_len = s.length();\n\t\tchar[] s_chars = s.toCharArray();\n \n if(nam < s_len ){\n for(int i = 0 ; i < nam;i++){\n System.out.print(s_chars[i]);\n }\n System.out.print(\"...\");\n }else{\n System.out.println(s);\n }\n\n \n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint nam = in.nextInt();\n\t\tString s = in.next();\n\t\tint s_len = s.length();\n\t\tchar[] s_chars = s.toCharArray();\n \n if(nam < s_len ){\n for(int i = 0 ; i < nam;i++){\n System.out.print(s_chars[i]);\n }\n System.out.print(\"...\");\n }else{\n System.out.println(s);\n }\n\n \n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int nam = in.nextInt();",
"nam",
"in.nextInt()",
"in.nextInt",
"in",
"String s = in.next();",
"s",
"in.next()",
"in.next",
"in",
"int s_len = s.length();",
"s_len",
"s.length()",
"s.length",
"s",
"char[] s_chars = s.toCharArray();",
"s_chars",
"s.toCharArray()",
"s.toCharArray",
"s",
"if(nam < s_len ){\n for(int i = 0 ; i < nam;i++){\n System.out.print(s_chars[i]);\n }\n System.out.print(\"...\");\n }else{\n System.out.println(s);\n }",
"nam < s_len",
"nam",
"s_len",
"{\n for(int i = 0 ; i < nam;i++){\n System.out.print(s_chars[i]);\n }\n System.out.print(\"...\");\n }",
"for(int i = 0 ; i < nam;i++){\n System.out.print(s_chars[i]);\n }",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < nam",
"i",
"nam",
"i++",
"i++",
"i",
"{\n System.out.print(s_chars[i]);\n }",
"{\n System.out.print(s_chars[i]);\n }",
"System.out.print(s_chars[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"s_chars[i]",
"s_chars",
"i",
"System.out.print(\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"...\"",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"public class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint nam = in.nextInt();\n\t\tString s = in.next();\n\t\tint s_len = s.length();\n\t\tchar[] s_chars = s.toCharArray();\n \n if(nam < s_len ){\n for(int i = 0 ; i < nam;i++){\n System.out.print(s_chars[i]);\n }\n System.out.print(\"...\");\n }else{\n System.out.println(s);\n }\n\n \n\t}\n}",
"public class Main {\n\tpublic static void main (String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\t\n\t\tint nam = in.nextInt();\n\t\tString s = in.next();\n\t\tint s_len = s.length();\n\t\tchar[] s_chars = s.toCharArray();\n \n if(nam < s_len ){\n for(int i = 0 ; i < nam;i++){\n System.out.print(s_chars[i]);\n }\n System.out.print(\"...\");\n }else{\n System.out.println(s);\n }\n\n \n\t}\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main (String[] args) {
Scanner in = new Scanner(System.in);
int nam = in.nextInt();
String s = in.next();
int s_len = s.length();
char[] s_chars = s.toCharArray();
if(nam < s_len ){
for(int i = 0 ; i < nam;i++){
System.out.print(s_chars[i]);
}
System.out.print("...");
}else{
System.out.println(s);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
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
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
35,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
42,
50
],
[
50,
51
],
[
51,
52
],
[
42,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
35,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
6,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner n = new Scanner(System.in);\n\n\t\tint K = n.nextInt();\n\t\tString S = n.next();\n\n\t\tif(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\n\t\t}else {\n\t\t\tString[] strArray = S.split(\"\");\n\t\t\t\tfor(int i=0 ; i<K ; i++) {\n\t\t\t\t\tSystem.out.print(strArray[i]);\n\t\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner n = new Scanner(System.in);\n\n\t\tint K = n.nextInt();\n\t\tString S = n.next();\n\n\t\tif(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\n\t\t}else {\n\t\t\tString[] strArray = S.split(\"\");\n\t\t\t\tfor(int i=0 ; i<K ; i++) {\n\t\t\t\t\tSystem.out.print(strArray[i]);\n\t\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner n = new Scanner(System.in);\n\n\t\tint K = n.nextInt();\n\t\tString S = n.next();\n\n\t\tif(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\n\t\t}else {\n\t\t\tString[] strArray = S.split(\"\");\n\t\t\t\tfor(int i=0 ; i<K ; i++) {\n\t\t\t\t\tSystem.out.print(strArray[i]);\n\t\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner n = new Scanner(System.in);\n\n\t\tint K = n.nextInt();\n\t\tString S = n.next();\n\n\t\tif(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\n\t\t}else {\n\t\t\tString[] strArray = S.split(\"\");\n\t\t\t\tfor(int i=0 ; i<K ; i++) {\n\t\t\t\t\tSystem.out.print(strArray[i]);\n\t\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}",
"Scanner n = new Scanner(System.in);",
"n",
"new Scanner(System.in)",
"int K = n.nextInt();",
"K",
"n.nextInt()",
"n.nextInt",
"n",
"String S = n.next();",
"S",
"n.next()",
"n.next",
"n",
"if(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\n\t\t}else {\n\t\t\tString[] strArray = S.split(\"\");\n\t\t\t\tfor(int i=0 ; i<K ; i++) {\n\t\t\t\t\tSystem.out.print(strArray[i]);\n\t\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"S.length() <= K",
"S.length()",
"S.length",
"S",
"K",
"{\n\t\t\tSystem.out.println(S);\n\n\t\t}",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n\t\t\tString[] strArray = S.split(\"\");\n\t\t\t\tfor(int i=0 ; i<K ; i++) {\n\t\t\t\t\tSystem.out.print(strArray[i]);\n\t\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"String[] strArray = S.split(\"\");",
"strArray",
"S.split(\"\")",
"S.split",
"S",
"\"\"",
"for(int i=0 ; i<K ; i++) {\n\t\t\t\t\tSystem.out.print(strArray[i]);\n\t\t\t\t}",
"int i=0 ;",
"int i=0 ;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tSystem.out.print(strArray[i]);\n\t\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(strArray[i]);\n\t\t\t\t}",
"System.out.print(strArray[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"strArray[i]",
"strArray",
"i",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"String args[]",
"args",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner n = new Scanner(System.in);\n\n\t\tint K = n.nextInt();\n\t\tString S = n.next();\n\n\t\tif(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\n\t\t}else {\n\t\t\tString[] strArray = S.split(\"\");\n\t\t\t\tfor(int i=0 ; i<K ; i++) {\n\t\t\t\t\tSystem.out.print(strArray[i]);\n\t\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner n = new Scanner(System.in);\n\n\t\tint K = n.nextInt();\n\t\tString S = n.next();\n\n\t\tif(S.length() <= K) {\n\t\t\tSystem.out.println(S);\n\n\t\t}else {\n\t\t\tString[] strArray = S.split(\"\");\n\t\t\t\tfor(int i=0 ; i<K ; i++) {\n\t\t\t\t\tSystem.out.print(strArray[i]);\n\t\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner n = new Scanner(System.in);
int K = n.nextInt();
String S = n.next();
if(S.length() <= K) {
System.out.println(S);
}else {
String[] strArray = S.split("");
for(int i=0 ; i<K ; i++) {
System.out.print(strArray[i]);
}
System.out.println("...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
4,
18,
13,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
18,
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
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
8,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
44,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
6,
61
],
[
61,
62
],
[
0,
63
],
[
63,
64
],
[
63,
65
]
] |
[
"import java.io.*;\n\n/**\n * Created by Ayushi on 17 May 2020.\n * Problem:\n * Round:\n */\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(br.readLine());\n String s = br.readLine();\n br.close();\n System.out.print(s.substring(0, Math.min(s.length(), k)));\n if (s.length() > k) System.out.println(\"...\");\n else System.out.println();\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(br.readLine());\n String s = br.readLine();\n br.close();\n System.out.print(s.substring(0, Math.min(s.length(), k)));\n if (s.length() > k) System.out.println(\"...\");\n else System.out.println();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(br.readLine());\n String s = br.readLine();\n br.close();\n System.out.print(s.substring(0, Math.min(s.length(), k)));\n if (s.length() > k) System.out.println(\"...\");\n else System.out.println();\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(br.readLine());\n String s = br.readLine();\n br.close();\n System.out.print(s.substring(0, Math.min(s.length(), k)));\n if (s.length() > k) System.out.println(\"...\");\n else System.out.println();\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int k = Integer.parseInt(br.readLine());",
"k",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String s = br.readLine();",
"s",
"br.readLine()",
"br.readLine",
"br",
"br.close()",
"br.close",
"br",
"System.out.print(s.substring(0, Math.min(s.length(), k)))",
"System.out.print",
"System.out",
"System",
"System.out",
"s.substring(0, Math.min(s.length(), k))",
"s.substring",
"s",
"0",
"Math.min(s.length(), k)",
"Math.min",
"Math",
"s.length()",
"s.length",
"s",
"k",
"if (s.length() > k) System.out.println(\"...\");\n else System.out.println();",
"s.length() > k",
"s.length()",
"s.length",
"s",
"k",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(br.readLine());\n String s = br.readLine();\n br.close();\n System.out.print(s.substring(0, Math.min(s.length(), k)));\n if (s.length() > k) System.out.println(\"...\");\n else System.out.println();\n }\n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int k = Integer.parseInt(br.readLine());\n String s = br.readLine();\n br.close();\n System.out.print(s.substring(0, Math.min(s.length(), k)));\n if (s.length() > k) System.out.println(\"...\");\n else System.out.println();\n }\n}",
"Main"
] |
import java.io.*;
/**
* Created by Ayushi on 17 May 2020.
* Problem:
* Round:
*/
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int k = Integer.parseInt(br.readLine());
String s = br.readLine();
br.close();
System.out.print(s.substring(0, Math.min(s.length(), k)));
if (s.length() > k) System.out.println("...");
else System.out.println();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
0,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
13,
18,
13,
13,
4,
18,
18,
13,
13,
2,
13,
17,
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
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
167,
23
],
[
167,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
26,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
26,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
40,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
52,
58
],
[
58,
59
],
[
58,
60
],
[
52,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
61,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
52,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
24,
86
],
[
86,
87
],
[
167,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
88,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
99,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
104,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
98,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
88,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
126,
127
],
[
88,
128
],
[
128,
129
],
[
128,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
130,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
140,
141
],
[
140,
142
],
[
135,
143
],
[
143,
144
],
[
144,
145
],
[
135,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
151,
152
],
[
130,
153
],
[
153,
154
],
[
128,
155
],
[
155,
156
],
[
88,
157
],
[
157,
158
],
[
157,
159
],
[
159,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
164,
165
],
[
0,
166
],
[
166,
167
],
[
166,
168
]
] |
[
"import java.io.*;\nimport java.math.*;\nimport java.security.*;\nimport java.text.*;\nimport java.util.*;\nimport java.util.concurrent.*;\nimport java.util.regex.*;\n\n\npublic class Main {\n\n public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint k = scan.nextInt(); String str = scan.next();\n \tif(str.length() <= k) System.out.println(str);\n \telse {\n \t\tchar [] ch = str.toCharArray();\n \t\tstr = \"\";\n \t\tfor(int i=0; i<k; i++) str += ch[i];\n \t\tSystem.out.println(str + \"...\");\n \t}\n \t\n }\n\n \n static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }\n \n \n}\n",
"import java.io.*;",
"io.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.security.*;",
"security.*",
"java",
"import java.text.*;",
"text.*",
"java",
"import java.util.*;",
"util.*",
"java",
"import java.util.concurrent.*;",
"concurrent.*",
"java.util",
"import java.util.regex.*;",
"regex.*",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint k = scan.nextInt(); String str = scan.next();\n \tif(str.length() <= k) System.out.println(str);\n \telse {\n \t\tchar [] ch = str.toCharArray();\n \t\tstr = \"\";\n \t\tfor(int i=0; i<k; i++) str += ch[i];\n \t\tSystem.out.println(str + \"...\");\n \t}\n \t\n }\n\n \n static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }\n \n \n}",
"Main",
"public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint k = scan.nextInt(); String str = scan.next();\n \tif(str.length() <= k) System.out.println(str);\n \telse {\n \t\tchar [] ch = str.toCharArray();\n \t\tstr = \"\";\n \t\tfor(int i=0; i<k; i++) str += ch[i];\n \t\tSystem.out.println(str + \"...\");\n \t}\n \t\n }",
"main",
"{\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint k = scan.nextInt(); String str = scan.next();\n \tif(str.length() <= k) System.out.println(str);\n \telse {\n \t\tchar [] ch = str.toCharArray();\n \t\tstr = \"\";\n \t\tfor(int i=0; i<k; i++) str += ch[i];\n \t\tSystem.out.println(str + \"...\");\n \t}\n \t\n }",
"FastScanner scan = new FastScanner();",
"scan",
"new FastScanner()",
"int k = scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String str = scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"if(str.length() <= k) System.out.println(str);\n \telse {\n \t\tchar [] ch = str.toCharArray();\n \t\tstr = \"\";\n \t\tfor(int i=0; i<k; i++) str += ch[i];\n \t\tSystem.out.println(str + \"...\");\n \t}",
"str.length() <= k",
"str.length()",
"str.length",
"str",
"k",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"{\n \t\tchar [] ch = str.toCharArray();\n \t\tstr = \"\";\n \t\tfor(int i=0; i<k; i++) str += ch[i];\n \t\tSystem.out.println(str + \"...\");\n \t}",
"char [] ch = str.toCharArray();",
"ch",
"str.toCharArray()",
"str.toCharArray",
"str",
"str = \"\"",
"str",
"\"\"",
"for(int i=0; i<k; i++) str += ch[i];",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"str += ch[i];",
"str += ch[i]",
"str",
"ch[i]",
"ch",
"i",
"System.out.println(str + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"str + \"...\"",
"str",
"\"...\"",
"String[] args",
"args",
"static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\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 \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}",
"next",
"{\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}",
"while(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"try {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}",
"catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}",
"IOException e",
"{\n \t\t\t\te.printStackTrace();\n \t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}",
"nextInt",
"{\n \t\treturn Integer.parseInt(next());\n \t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"int [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}",
"readArray",
"{\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}",
"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 \t\treturn Long.parseLong(next());\n \t}",
"nextLong",
"{\n \t\treturn Long.parseLong(next());\n \t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"public class Main {\n\n public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint k = scan.nextInt(); String str = scan.next();\n \tif(str.length() <= k) System.out.println(str);\n \telse {\n \t\tchar [] ch = str.toCharArray();\n \t\tstr = \"\";\n \t\tfor(int i=0; i<k; i++) str += ch[i];\n \t\tSystem.out.println(str + \"...\");\n \t}\n \t\n }\n\n \n static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }\n \n \n}",
"public class Main {\n\n public static void main(String[] args) {\n \n \tFastScanner scan = new FastScanner();\n \t\n \tint k = scan.nextInt(); String str = scan.next();\n \tif(str.length() <= k) System.out.println(str);\n \telse {\n \t\tchar [] ch = str.toCharArray();\n \t\tstr = \"\";\n \t\tfor(int i=0; i<k; i++) str += ch[i];\n \t\tSystem.out.println(str + \"...\");\n \t}\n \t\n }\n\n \n static class FastScanner{\n \t\n \tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n \tStringTokenizer st = new StringTokenizer(\"\");\n \tString next() {\n \t\twhile(!st.hasMoreTokens())\n \t\t\ttry {\n \t\t\t\tst = new StringTokenizer(br.readLine());\n \t\t\t} catch (IOException e){\n \t\t\t\te.printStackTrace();\n \t\t\t}\n \t\treturn st.nextToken();\n \t}\n \t\n \tint nextInt() {\n \t\treturn Integer.parseInt(next());\n \t}\n \t\n \tint [] readArray(int n) {\n \t\tint [] a = new int[n];\n \t\tfor(int i=0; i<n ; i++) a[i] = nextInt();\n \t\treturn a;\n \t}\n \t\n \tlong nextLong() {\n \t\treturn Long.parseLong(next());\n \t}\n \t\n \t\n }\n \n \n}",
"Main"
] |
import java.io.*;
import java.math.*;
import java.security.*;
import java.text.*;
import java.util.*;
import java.util.concurrent.*;
import java.util.regex.*;
public class Main {
public static void main(String[] args) {
FastScanner scan = new FastScanner();
int k = scan.nextInt(); String str = scan.next();
if(str.length() <= k) System.out.println(str);
else {
char [] ch = str.toCharArray();
str = "";
for(int i=0; i<k; i++) str += ch[i];
System.out.println(str + "...");
}
}
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());
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
4,
18,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
79,
5
],
[
79,
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
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
8,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
36,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
48,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
47,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
6,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String h = sc.nextLine();\n String s = sc.nextLine();\n int k = Integer.parseInt(h);\n int len = String.valueOf( s ).length();\n if (len <= k) {\n System.out.println(s);\n } else {\n for (int i = 0; i < k; i++) {\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }\n \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 h = sc.nextLine();\n String s = sc.nextLine();\n int k = Integer.parseInt(h);\n int len = String.valueOf( s ).length();\n if (len <= k) {\n System.out.println(s);\n } else {\n for (int i = 0; i < k; i++) {\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }\n \n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String h = sc.nextLine();\n String s = sc.nextLine();\n int k = Integer.parseInt(h);\n int len = String.valueOf( s ).length();\n if (len <= k) {\n System.out.println(s);\n } else {\n for (int i = 0; i < k; i++) {\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String h = sc.nextLine();\n String s = sc.nextLine();\n int k = Integer.parseInt(h);\n int len = String.valueOf( s ).length();\n if (len <= k) {\n System.out.println(s);\n } else {\n for (int i = 0; i < k; i++) {\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String h = sc.nextLine();",
"h",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int k = Integer.parseInt(h);",
"k",
"Integer.parseInt(h)",
"Integer.parseInt",
"Integer",
"h",
"int len = String.valueOf( s ).length();",
"len",
"String.valueOf( s ).length()",
"String.valueOf( s ).length",
"String.valueOf( s )",
"String.valueOf",
"String",
"s",
"if (len <= k) {\n System.out.println(s);\n } else {\n for (int i = 0; i < k; i++) {\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }",
"len <= k",
"len",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n for (int i = 0; i < k; i++) {\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }",
"for (int i = 0; i < k; i++) {\n System.out.print(s.charAt(i));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n System.out.print(s.charAt(i));\n }",
"{\n System.out.print(s.charAt(i));\n }",
"System.out.print(s.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"System.out.print(\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String h = sc.nextLine();\n String s = sc.nextLine();\n int k = Integer.parseInt(h);\n int len = String.valueOf( s ).length();\n if (len <= k) {\n System.out.println(s);\n } else {\n for (int i = 0; i < k; i++) {\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }\n \n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n String h = sc.nextLine();\n String s = sc.nextLine();\n int k = Integer.parseInt(h);\n int len = String.valueOf( s ).length();\n if (len <= k) {\n System.out.println(s);\n } else {\n for (int i = 0; i < k; i++) {\n System.out.print(s.charAt(i));\n }\n System.out.print(\"...\");\n }\n \n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
String h = sc.nextLine();
String s = sc.nextLine();
int k = Integer.parseInt(h);
int len = String.valueOf( s ).length();
if (len <= k) {
System.out.println(s);
} else {
for (int i = 0; i < k; i++) {
System.out.print(s.charAt(i));
}
System.out.print("...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
14,
2,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
18,
13,
13,
0,
13,
2,
13,
13,
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
],
[
87,
5
],
[
87,
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
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
45,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
45,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
41,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] |
[
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n in.nextLine();\n String s=in.nextLine();\n int len=s.length();\n char ch[]=s.toCharArray();\n String s1=\"\";\n String ss=\"...\";\n if(len>n){\n for (int i = 0; i <n; i++) {\n s1=s1+ch[i];\n }\n s1=s1+ss;\n System.out.println(s1);\n }else{\n System.out.println(s);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n in.nextLine();\n String s=in.nextLine();\n int len=s.length();\n char ch[]=s.toCharArray();\n String s1=\"\";\n String ss=\"...\";\n if(len>n){\n for (int i = 0; i <n; i++) {\n s1=s1+ch[i];\n }\n s1=s1+ss;\n System.out.println(s1);\n }else{\n System.out.println(s);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n in.nextLine();\n String s=in.nextLine();\n int len=s.length();\n char ch[]=s.toCharArray();\n String s1=\"\";\n String ss=\"...\";\n if(len>n){\n for (int i = 0; i <n; i++) {\n s1=s1+ch[i];\n }\n s1=s1+ss;\n System.out.println(s1);\n }else{\n System.out.println(s);\n }\n }",
"main",
"{\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n in.nextLine();\n String s=in.nextLine();\n int len=s.length();\n char ch[]=s.toCharArray();\n String s1=\"\";\n String ss=\"...\";\n if(len>n){\n for (int i = 0; i <n; i++) {\n s1=s1+ch[i];\n }\n s1=s1+ss;\n System.out.println(s1);\n }else{\n System.out.println(s);\n }\n }",
"Scanner in=new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n=in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"in.nextLine()",
"in.nextLine",
"in",
"String s=in.nextLine();",
"s",
"in.nextLine()",
"in.nextLine",
"in",
"int len=s.length();",
"len",
"s.length()",
"s.length",
"s",
"char ch[]=s.toCharArray();",
"ch",
"s.toCharArray()",
"s.toCharArray",
"s",
"String s1=\"\";",
"s1",
"\"\"",
"String ss=\"...\";",
"ss",
"\"...\"",
"if(len>n){\n for (int i = 0; i <n; i++) {\n s1=s1+ch[i];\n }\n s1=s1+ss;\n System.out.println(s1);\n }else{\n System.out.println(s);\n }",
"len>n",
"len",
"n",
"{\n for (int i = 0; i <n; i++) {\n s1=s1+ch[i];\n }\n s1=s1+ss;\n System.out.println(s1);\n }",
"for (int i = 0; i <n; i++) {\n s1=s1+ch[i];\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i <n",
"i",
"n",
"i++",
"i++",
"i",
"{\n s1=s1+ch[i];\n }",
"{\n s1=s1+ch[i];\n }",
"s1=s1+ch[i]",
"s1",
"s1+ch[i]",
"s1",
"ch[i]",
"ch",
"i",
"s1=s1+ss",
"s1",
"s1+ss",
"s1",
"ss",
"System.out.println(s1)",
"System.out.println",
"System.out",
"System",
"System.out",
"s1",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n in.nextLine();\n String s=in.nextLine();\n int len=s.length();\n char ch[]=s.toCharArray();\n String s1=\"\";\n String ss=\"...\";\n if(len>n){\n for (int i = 0; i <n; i++) {\n s1=s1+ch[i];\n }\n s1=s1+ss;\n System.out.println(s1);\n }else{\n System.out.println(s);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner in=new Scanner(System.in);\n int n=in.nextInt();\n in.nextLine();\n String s=in.nextLine();\n int len=s.length();\n char ch[]=s.toCharArray();\n String s1=\"\";\n String ss=\"...\";\n if(len>n){\n for (int i = 0; i <n; i++) {\n s1=s1+ch[i];\n }\n s1=s1+ss;\n System.out.println(s1);\n }else{\n System.out.println(s);\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in=new Scanner(System.in);
int n=in.nextInt();
in.nextLine();
String s=in.nextLine();
int len=s.length();
char ch[]=s.toCharArray();
String s1="";
String ss="...";
if(len>n){
for (int i = 0; i <n; i++) {
s1=s1+ch[i];
}
s1=s1+ss;
System.out.println(s1);
}else{
System.out.println(s);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
4,
18,
13,
4,
13,
12,
13,
30,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
72,
5
],
[
72,
6
],
[
6,
7
],
[
72,
8
],
[
8,
9
],
[
72,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
72,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
23,
37
],
[
37,
38
],
[
38,
39
],
[
23,
40
],
[
40,
41
],
[
72,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
45,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
65,
69
],
[
64,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }\n \n // 変数一覧\n int k;\n String s;\n\n public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n k = sc.nextInt();\n s = sc.next();\n sc.close();\n\n // 解答処理\n solve();\n }\n \n private void solve() {\n if (s.length() <= k) {\n System.out.println(s); \n } else {\n System.out.println(s.substring(0, k)+\"...\"); \n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }\n \n // 変数一覧\n int k;\n String s;\n\n public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n k = sc.nextInt();\n s = sc.next();\n sc.close();\n\n // 解答処理\n solve();\n }\n \n private void solve() {\n if (s.length() <= k) {\n System.out.println(s); \n } else {\n System.out.println(s.substring(0, k)+\"...\"); \n }\n }\n}",
"Main",
"// 変数一覧\n int k;",
"k",
"String s;",
"s",
"public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }",
"main",
"{\n Main main = new Main();\n main.run();\n }",
"Main main = new Main();",
"main",
"new Main()",
"main.run()",
"main.run",
"main",
"String[] args",
"args",
"public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n k = sc.nextInt();\n s = sc.next();\n sc.close();\n\n // 解答処理\n solve();\n }",
"run",
"{\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n k = sc.nextInt();\n s = sc.next();\n sc.close();\n\n // 解答処理\n solve();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"k = sc.nextInt()",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"s = sc.next()",
"s",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"solve()",
"solve",
"private void solve() {\n if (s.length() <= k) {\n System.out.println(s); \n } else {\n System.out.println(s.substring(0, k)+\"...\"); \n }\n }",
"solve",
"{\n if (s.length() <= k) {\n System.out.println(s); \n } else {\n System.out.println(s.substring(0, k)+\"...\"); \n }\n }",
"if (s.length() <= k) {\n System.out.println(s); \n } else {\n System.out.println(s.substring(0, k)+\"...\"); \n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n System.out.println(s); \n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println(s.substring(0, k)+\"...\"); \n }",
"System.out.println(s.substring(0, k)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, k)+\"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }\n \n // 変数一覧\n int k;\n String s;\n\n public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n k = sc.nextInt();\n s = sc.next();\n sc.close();\n\n // 解答処理\n solve();\n }\n \n private void solve() {\n if (s.length() <= k) {\n System.out.println(s); \n } else {\n System.out.println(s.substring(0, k)+\"...\"); \n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Main main = new Main();\n main.run();\n }\n \n // 変数一覧\n int k;\n String s;\n\n public void run() {\n // 入力情報取得\n Scanner sc = new Scanner(System.in);\n k = sc.nextInt();\n s = sc.next();\n sc.close();\n\n // 解答処理\n solve();\n }\n \n private void solve() {\n if (s.length() <= k) {\n System.out.println(s); \n } else {\n System.out.println(s.substring(0, k)+\"...\"); \n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Main main = new Main();
main.run();
}
// 変数一覧
int k;
String s;
public void run() {
// 入力情報取得
Scanner sc = new Scanner(System.in);
k = sc.nextInt();
s = sc.next();
sc.close();
// 解答処理
solve();
}
private void solve() {
if (s.length() <= k) {
System.out.println(s);
} else {
System.out.println(s.substring(0, k)+"...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
8,
2,
4,
18,
13,
13,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
47,
5
],
[
47,
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
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
27,
33
],
[
27,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
35,
39
],
[
34,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
6,
44
],
[
44,
45
],
[
0,
46
],
[
46,
47
],
[
46,
48
]
] |
[
"import java.util.Scanner;\n\n/**\n * B - ... (Triple Dots)\n * 英小文字からなる文字列 S があります。\n * S の長さが K 以下であれば、S をそのまま出力してください。\n * S の長さが K を上回っているならば、先頭 K 文字だけを切り出し、末尾に ... を付加して出力してください。\n */\npublic class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner( System.in );\n // Sを取得する長さ K\n int k = sc.nextInt();\n // 英小文字からなる文字列 S\n String s = sc.next();\n\n System.out.println( s.length() <= k ? s : s.substring( 0, k) + \"...\" );\n\n sc.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner( System.in );\n // Sを取得する長さ K\n int k = sc.nextInt();\n // 英小文字からなる文字列 S\n String s = sc.next();\n\n System.out.println( s.length() <= k ? s : s.substring( 0, k) + \"...\" );\n\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) {\n\n Scanner sc = new Scanner( System.in );\n // Sを取得する長さ K\n int k = sc.nextInt();\n // 英小文字からなる文字列 S\n String s = sc.next();\n\n System.out.println( s.length() <= k ? s : s.substring( 0, k) + \"...\" );\n\n sc.close();\n }",
"main",
"{\n\n Scanner sc = new Scanner( System.in );\n // Sを取得する長さ K\n int k = sc.nextInt();\n // 英小文字からなる文字列 S\n String s = sc.next();\n\n System.out.println( s.length() <= k ? s : s.substring( 0, k) + \"...\" );\n\n sc.close();\n }",
"Scanner sc = new Scanner( System.in );",
"sc",
"new Scanner( System.in )",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"System.out.println( s.length() <= k ? s : s.substring( 0, k) + \"...\" )",
"System.out.println",
"System.out",
"System",
"System.out",
"s.length() <= k ? s : s.substring( 0, k) + \"...\"",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"s",
"s.substring( 0, k) + \"...\"",
"s.substring( 0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner( System.in );\n // Sを取得する長さ K\n int k = sc.nextInt();\n // 英小文字からなる文字列 S\n String s = sc.next();\n\n System.out.println( s.length() <= k ? s : s.substring( 0, k) + \"...\" );\n\n sc.close();\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n\n Scanner sc = new Scanner( System.in );\n // Sを取得する長さ K\n int k = sc.nextInt();\n // 英小文字からなる文字列 S\n String s = sc.next();\n\n System.out.println( s.length() <= k ? s : s.substring( 0, k) + \"...\" );\n\n sc.close();\n }\n}",
"Main"
] |
import java.util.Scanner;
/**
* B - ... (Triple Dots)
* 英小文字からなる文字列 S があります。
* S の長さが K 以下であれば、S をそのまま出力してください。
* S の長さが K を上回っているならば、先頭 K 文字だけを切り出し、末尾に ... を付加して出力してください。
*/
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner( System.in );
// Sを取得する長さ K
int k = sc.nextInt();
// 英小文字からなる文字列 S
String s = sc.next();
System.out.println( s.length() <= k ? s : s.substring( 0, k) + "..." );
sc.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,
17,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
2,
13,
13,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
2,
13,
17,
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
],
[
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
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
30,
44
],
[
44,
45
],
[
45,
46
],
[
30,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
55,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
] |
[
"import java.util.*;\n// 7\n// nikoandsolstice\npublic class Main {\n public static void main(String args[]) {\n \n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n String s = sc.next();\n String f = \"\";\n int length = s.length();\n \n for(int i = 0;i<t&& i<s.length();i++){\n f+= s.charAt(i); \n }\n \n \n if(length>t){\n System.out.print(f+\"...\");\n }else\n System.out.print(f);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String args[]) {\n \n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n String s = sc.next();\n String f = \"\";\n int length = s.length();\n \n for(int i = 0;i<t&& i<s.length();i++){\n f+= s.charAt(i); \n }\n \n \n if(length>t){\n System.out.print(f+\"...\");\n }else\n System.out.print(f);\n }\n}",
"Main",
"public static void main(String args[]) {\n \n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n String s = sc.next();\n String f = \"\";\n int length = s.length();\n \n for(int i = 0;i<t&& i<s.length();i++){\n f+= s.charAt(i); \n }\n \n \n if(length>t){\n System.out.print(f+\"...\");\n }else\n System.out.print(f);\n }",
"main",
"{\n \n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n String s = sc.next();\n String f = \"\";\n int length = s.length();\n \n for(int i = 0;i<t&& i<s.length();i++){\n f+= s.charAt(i); \n }\n \n \n if(length>t){\n System.out.print(f+\"...\");\n }else\n System.out.print(f);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int t = sc.nextInt();",
"t",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String f = \"\";",
"f",
"\"\"",
"int length = s.length();",
"length",
"s.length()",
"s.length",
"s",
"for(int i = 0;i<t&& i<s.length();i++){\n f+= s.charAt(i); \n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i<t&& i<s.length()",
"i<t",
"i",
"t",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n f+= s.charAt(i); \n }",
"{\n f+= s.charAt(i); \n }",
"f+= s.charAt(i)",
"f",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"if(length>t){\n System.out.print(f+\"...\");\n }else\n System.out.print(f);",
"length>t",
"length",
"t",
"{\n System.out.print(f+\"...\");\n }",
"System.out.print(f+\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"f+\"...\"",
"f",
"\"...\"",
"System.out.print(f)",
"System.out.print",
"System.out",
"System",
"System.out",
"f",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) {\n \n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n String s = sc.next();\n String f = \"\";\n int length = s.length();\n \n for(int i = 0;i<t&& i<s.length();i++){\n f+= s.charAt(i); \n }\n \n \n if(length>t){\n System.out.print(f+\"...\");\n }else\n System.out.print(f);\n }\n}",
"public class Main {\n public static void main(String args[]) {\n \n Scanner sc = new Scanner(System.in);\n int t = sc.nextInt();\n String s = sc.next();\n String f = \"\";\n int length = s.length();\n \n for(int i = 0;i<t&& i<s.length();i++){\n f+= s.charAt(i); \n }\n \n \n if(length>t){\n System.out.print(f+\"...\");\n }else\n System.out.print(f);\n }\n}",
"Main"
] |
import java.util.*;
// 7
// nikoandsolstice
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int t = sc.nextInt();
String s = sc.next();
String f = "";
int length = s.length();
for(int i = 0;i<t&& i<s.length();i++){
f+= s.charAt(i);
}
if(length>t){
System.out.print(f+"...");
}else
System.out.print(f);
}
}
|
[
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,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
14,
2,
4,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
8,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
68,
76
],
[
76,
77
],
[
77,
78
],
[
68,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
67,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] |
[
"//package atcoder;\n \nimport java.util.*;\n \npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\t\tchar s[] = new char[S.length()];\n\t\t\n\t\tfor(int i=0;i<S.length();i++) {\n\t\t\ts = S.toCharArray();\n\t\t\t//System.out.println(s[i]);\n\t\t}\n\t\t\n\t\t\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}\n\t\tif(S.length()>K){\n\t\t\tfor(int j=0;j<K;j++) {\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(s[j]);\n\t\t\t\t\t//System.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}System.out.print(\"...\");\n\t\t}\n\t\t\n\t}\n\t\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\t\tchar s[] = new char[S.length()];\n\t\t\n\t\tfor(int i=0;i<S.length();i++) {\n\t\t\ts = S.toCharArray();\n\t\t\t//System.out.println(s[i]);\n\t\t}\n\t\t\n\t\t\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}\n\t\tif(S.length()>K){\n\t\t\tfor(int j=0;j<K;j++) {\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(s[j]);\n\t\t\t\t\t//System.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}System.out.print(\"...\");\n\t\t}\n\t\t\n\t}\n\t\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\t\tchar s[] = new char[S.length()];\n\t\t\n\t\tfor(int i=0;i<S.length();i++) {\n\t\t\ts = S.toCharArray();\n\t\t\t//System.out.println(s[i]);\n\t\t}\n\t\t\n\t\t\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}\n\t\tif(S.length()>K){\n\t\t\tfor(int j=0;j<K;j++) {\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(s[j]);\n\t\t\t\t\t//System.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}System.out.print(\"...\");\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\t\tchar s[] = new char[S.length()];\n\t\t\n\t\tfor(int i=0;i<S.length();i++) {\n\t\t\ts = S.toCharArray();\n\t\t\t//System.out.println(s[i]);\n\t\t}\n\t\t\n\t\t\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}\n\t\tif(S.length()>K){\n\t\t\tfor(int j=0;j<K;j++) {\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(s[j]);\n\t\t\t\t\t//System.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}System.out.print(\"...\");\n\t\t}\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"char s[] = new char[S.length()];",
"s",
"new char[S.length()]",
"S.length()",
"S.length",
"S",
"for(int i=0;i<S.length();i++) {\n\t\t\ts = S.toCharArray();\n\t\t\t//System.out.println(s[i]);\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\ts = S.toCharArray();\n\t\t\t//System.out.println(s[i]);\n\t\t}",
"{\n\t\t\ts = S.toCharArray();\n\t\t\t//System.out.println(s[i]);\n\t\t}",
"s = S.toCharArray()",
"s",
"S.toCharArray()",
"S.toCharArray",
"S",
"if(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}",
"S.length()<=K",
"S.length()",
"S.length",
"S",
"K",
"{\n\t\t\tSystem.out.println(S);\n\t\t}",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"if(S.length()>K){\n\t\t\tfor(int j=0;j<K;j++) {\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(s[j]);\n\t\t\t\t\t//System.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}System.out.print(\"...\");\n\t\t}",
"S.length()>K",
"S.length()",
"S.length",
"S",
"K",
"{\n\t\t\tfor(int j=0;j<K;j++) {\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(s[j]);\n\t\t\t\t\t//System.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}System.out.print(\"...\");\n\t\t}",
"for(int j=0;j<K;j++) {\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(s[j]);\n\t\t\t\t\t//System.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}",
"int j=0;",
"int j=0;",
"j",
"0",
"j<K",
"j",
"K",
"j++",
"j++",
"j",
"{\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(s[j]);\n\t\t\t\t\t//System.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(s[j]);\n\t\t\t\t\t//System.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\t\tSystem.out.print(s[j]);\n\t\t\t\t\t//System.out.print(\"...\");\n\t\t\t\t}",
"System.out.print(s[j])",
"System.out.print",
"System.out",
"System",
"System.out",
"s[j]",
"s",
"j",
"System.out.print(\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\t\tchar s[] = new char[S.length()];\n\t\t\n\t\tfor(int i=0;i<S.length();i++) {\n\t\t\ts = S.toCharArray();\n\t\t\t//System.out.println(s[i]);\n\t\t}\n\t\t\n\t\t\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}\n\t\tif(S.length()>K){\n\t\t\tfor(int j=0;j<K;j++) {\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(s[j]);\n\t\t\t\t\t//System.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}System.out.print(\"...\");\n\t\t}\n\t\t\n\t}\n\t\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\t\tchar s[] = new char[S.length()];\n\t\t\n\t\tfor(int i=0;i<S.length();i++) {\n\t\t\ts = S.toCharArray();\n\t\t\t//System.out.println(s[i]);\n\t\t}\n\t\t\n\t\t\n\t\tif(S.length()<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}\n\t\tif(S.length()>K){\n\t\t\tfor(int j=0;j<K;j++) {\n\t\t\t\t{\n\t\t\t\t\tSystem.out.print(s[j]);\n\t\t\t\t\t//System.out.print(\"...\");\n\t\t\t\t}\n\t\t\t}System.out.print(\"...\");\n\t\t}\n\t\t\n\t}\n\t\n}",
"Main"
] |
//package atcoder;
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
char s[] = new char[S.length()];
for(int i=0;i<S.length();i++) {
s = S.toCharArray();
//System.out.println(s[i]);
}
if(S.length()<=K) {
System.out.println(S);
}
if(S.length()>K){
for(int j=0;j<K;j++) {
{
System.out.print(s[j]);
//System.out.print("...");
}
}System.out.print("...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
2,
13,
17,
30,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
17,
3,
4,
18,
18,
13,
13,
18,
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
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
51,
63
],
[
44,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint m =scanner.nextInt();\n\t\tString a = scanner.next();\n\t\tint n= a.length();\n\t\t\n\t\tchar[] c = a.toCharArray();\n\t\t\n\t\tfor(int i = 0 ;i<n;i++) {\n\t\t\tif(i>m-1) {\n\t\t\t\tif(n>m) {\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(c[i]);\n\t\t}\t\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint m =scanner.nextInt();\n\t\tString a = scanner.next();\n\t\tint n= a.length();\n\t\t\n\t\tchar[] c = a.toCharArray();\n\t\t\n\t\tfor(int i = 0 ;i<n;i++) {\n\t\t\tif(i>m-1) {\n\t\t\t\tif(n>m) {\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(c[i]);\n\t\t}\t\t\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint m =scanner.nextInt();\n\t\tString a = scanner.next();\n\t\tint n= a.length();\n\t\t\n\t\tchar[] c = a.toCharArray();\n\t\t\n\t\tfor(int i = 0 ;i<n;i++) {\n\t\t\tif(i>m-1) {\n\t\t\t\tif(n>m) {\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(c[i]);\n\t\t}\t\t\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint m =scanner.nextInt();\n\t\tString a = scanner.next();\n\t\tint n= a.length();\n\t\t\n\t\tchar[] c = a.toCharArray();\n\t\t\n\t\tfor(int i = 0 ;i<n;i++) {\n\t\t\tif(i>m-1) {\n\t\t\t\tif(n>m) {\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(c[i]);\n\t\t}\t\t\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int m =scanner.nextInt();",
"m",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String a = scanner.next();",
"a",
"scanner.next()",
"scanner.next",
"scanner",
"int n= a.length();",
"n",
"a.length()",
"a.length",
"a",
"char[] c = a.toCharArray();",
"c",
"a.toCharArray()",
"a.toCharArray",
"a",
"for(int i = 0 ;i<n;i++) {\n\t\t\tif(i>m-1) {\n\t\t\t\tif(n>m) {\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(c[i]);\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(i>m-1) {\n\t\t\t\tif(n>m) {\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(c[i]);\n\t\t}",
"{\n\t\t\tif(i>m-1) {\n\t\t\t\tif(n>m) {\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(c[i]);\n\t\t}",
"if(i>m-1) {\n\t\t\t\tif(n>m) {\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}",
"i>m-1",
"i",
"m-1",
"m",
"1",
"{\n\t\t\t\tif(n>m) {\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}",
"if(n>m) {\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}",
"n>m",
"n",
"m",
"{\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"break;",
"System.out.print(c[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint m =scanner.nextInt();\n\t\tString a = scanner.next();\n\t\tint n= a.length();\n\t\t\n\t\tchar[] c = a.toCharArray();\n\t\t\n\t\tfor(int i = 0 ;i<n;i++) {\n\t\t\tif(i>m-1) {\n\t\t\t\tif(n>m) {\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(c[i]);\n\t\t}\t\t\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\tint m =scanner.nextInt();\n\t\tString a = scanner.next();\n\t\tint n= a.length();\n\t\t\n\t\tchar[] c = a.toCharArray();\n\t\t\n\t\tfor(int i = 0 ;i<n;i++) {\n\t\t\tif(i>m-1) {\n\t\t\t\tif(n>m) {\n\t\t\t\tSystem.out.println(\"...\");\n\t\t\t\t}\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tSystem.out.print(c[i]);\n\t\t}\t\t\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scanner = new Scanner(System.in);
int m =scanner.nextInt();
String a = scanner.next();
int n= a.length();
char[] c = a.toCharArray();
for(int i = 0 ;i<n;i++) {
if(i>m-1) {
if(n>m) {
System.out.println("...");
}
break;
}
System.out.print(c[i]);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
0,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
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
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
31,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
22,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n\t\tString str = sc.next();\n if (num < str.length()){\n str = str.substring(0, num);\n System.out.printf(str + \"...\");\n }\n\t\telse\n {\n System.out.printf(str);\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 int num = sc.nextInt();\n\t\tString str = sc.next();\n if (num < str.length()){\n str = str.substring(0, num);\n System.out.printf(str + \"...\");\n }\n\t\telse\n {\n System.out.printf(str);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n\t\tString str = sc.next();\n if (num < str.length()){\n str = str.substring(0, num);\n System.out.printf(str + \"...\");\n }\n\t\telse\n {\n System.out.printf(str);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n\t\tString str = sc.next();\n if (num < str.length()){\n str = str.substring(0, num);\n System.out.printf(str + \"...\");\n }\n\t\telse\n {\n System.out.printf(str);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if (num < str.length()){\n str = str.substring(0, num);\n System.out.printf(str + \"...\");\n }\n\t\telse\n {\n System.out.printf(str);\n }",
"num < str.length()",
"num",
"str.length()",
"str.length",
"str",
"{\n str = str.substring(0, num);\n System.out.printf(str + \"...\");\n }",
"str = str.substring(0, num)",
"str",
"str.substring(0, num)",
"str.substring",
"str",
"0",
"num",
"System.out.printf(str + \"...\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"str + \"...\"",
"str",
"\"...\"",
"{\n System.out.printf(str);\n }",
"System.out.printf(str)",
"System.out.printf",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n\t\tString str = sc.next();\n if (num < str.length()){\n str = str.substring(0, num);\n System.out.printf(str + \"...\");\n }\n\t\telse\n {\n System.out.printf(str);\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n\t\tString str = sc.next();\n if (num < str.length()){\n str = str.substring(0, num);\n System.out.printf(str + \"...\");\n }\n\t\telse\n {\n System.out.printf(str);\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int num = sc.nextInt();
String str = sc.next();
if (num < str.length()){
str = str.substring(0, num);
System.out.printf(str + "...");
}
else
{
System.out.printf(str);
}
}
}
|
[
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,
4,
18,
13,
42,
2,
13,
17,
30,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
18,
13,
17,
41,
13,
4,
18,
13,
17,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
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
],
[
95,
11
],
[
95,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
14,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
45,
51
],
[
14,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
14,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
14,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
67,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
66,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
86,
90
],
[
85,
91
],
[
12,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
] |
[
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n ArrayList<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }\n\n String arr01[] = mylist.get(0).split(\" \");\n int k = Integer.valueOf(arr01[0]);\n String s = mylist.get(1);\n\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n ArrayList<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }\n\n String arr01[] = mylist.get(0).split(\" \");\n int k = Integer.valueOf(arr01[0]);\n String s = mylist.get(1);\n\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n ArrayList<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }\n\n String arr01[] = mylist.get(0).split(\" \");\n int k = Integer.valueOf(arr01[0]);\n String s = mylist.get(1);\n\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n }",
"main",
"{\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n ArrayList<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }\n\n String arr01[] = mylist.get(0).split(\" \");\n int k = Integer.valueOf(arr01[0]);\n String s = mylist.get(1);\n\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n }",
"InputStreamReader is = new InputStreamReader(System.in);",
"is",
"new InputStreamReader(System.in)",
"BufferedReader reader = new BufferedReader(is);",
"reader",
"new BufferedReader(is)",
"ArrayList<String> mylist = new ArrayList<>();",
"mylist",
"new ArrayList<>()",
"String strinput = reader.readLine();",
"strinput",
"reader.readLine()",
"reader.readLine",
"reader",
"while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }",
"strinput != null",
"strinput",
"null",
"{\n mylist.add(strinput);\n strinput = reader.readLine();\n }",
"mylist.add(strinput)",
"mylist.add",
"mylist",
"strinput",
"strinput = reader.readLine()",
"strinput",
"reader.readLine()",
"reader.readLine",
"reader",
"String arr01[] = mylist.get(0).split(\" \");",
"arr01",
"mylist.get(0).split(\" \")",
"mylist.get(0).split",
"mylist.get(0)",
"mylist.get",
"mylist",
"0",
"\" \"",
"int k = Integer.valueOf(arr01[0]);",
"k",
"Integer.valueOf(arr01[0])",
"Integer.valueOf",
"Integer",
"arr01[0]",
"arr01",
"0",
"String s = mylist.get(1);",
"s",
"mylist.get(1)",
"mylist.get",
"mylist",
"1",
"if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println(s.substring(0, k) + \"...\");\n }",
"System.out.println(s.substring(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n ArrayList<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }\n\n String arr01[] = mylist.get(0).split(\" \");\n int k = Integer.valueOf(arr01[0]);\n String s = mylist.get(1);\n\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n InputStreamReader is = new InputStreamReader(System.in);\n BufferedReader reader = new BufferedReader(is);\n\n ArrayList<String> mylist = new ArrayList<>();\n\n // 標準入力からの値を変数strinputに代入\n String strinput = reader.readLine();\n\n while (strinput != null) {\n mylist.add(strinput);\n strinput = reader.readLine();\n }\n\n String arr01[] = mylist.get(0).split(\" \");\n int k = Integer.valueOf(arr01[0]);\n String s = mylist.get(1);\n\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n }\n\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) throws Exception {
InputStreamReader is = new InputStreamReader(System.in);
BufferedReader reader = new BufferedReader(is);
ArrayList<String> mylist = new ArrayList<>();
// 標準入力からの値を変数strinputに代入
String strinput = reader.readLine();
while (strinput != null) {
mylist.add(strinput);
strinput = reader.readLine();
}
String arr01[] = mylist.get(0).split(" ");
int k = Integer.valueOf(arr01[0]);
String s = mylist.get(1);
if (s.length() <= k) {
System.out.println(s);
} else {
System.out.println(s.substring(0, k) + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
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
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint len = scan.nextInt();\n\t\tscan.nextLine();\n\t\tString topic = scan.nextLine();\n\n\t\tif(topic.length() <= len){\n\t\t\tSystem.out.println(topic);\n\t\t}else{\n\t\t\tSystem.out.println(topic.substring(0, len) + \"...\");\n\t\t}\n\t\tscan.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint len = scan.nextInt();\n\t\tscan.nextLine();\n\t\tString topic = scan.nextLine();\n\n\t\tif(topic.length() <= len){\n\t\t\tSystem.out.println(topic);\n\t\t}else{\n\t\t\tSystem.out.println(topic.substring(0, len) + \"...\");\n\t\t}\n\t\tscan.close();\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint len = scan.nextInt();\n\t\tscan.nextLine();\n\t\tString topic = scan.nextLine();\n\n\t\tif(topic.length() <= len){\n\t\t\tSystem.out.println(topic);\n\t\t}else{\n\t\t\tSystem.out.println(topic.substring(0, len) + \"...\");\n\t\t}\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint len = scan.nextInt();\n\t\tscan.nextLine();\n\t\tString topic = scan.nextLine();\n\n\t\tif(topic.length() <= len){\n\t\t\tSystem.out.println(topic);\n\t\t}else{\n\t\t\tSystem.out.println(topic.substring(0, len) + \"...\");\n\t\t}\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int len = scan.nextInt();",
"len",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String topic = scan.nextLine();",
"topic",
"scan.nextLine()",
"scan.nextLine",
"scan",
"if(topic.length() <= len){\n\t\t\tSystem.out.println(topic);\n\t\t}else{\n\t\t\tSystem.out.println(topic.substring(0, len) + \"...\");\n\t\t}",
"topic.length() <= len",
"topic.length()",
"topic.length",
"topic",
"len",
"{\n\t\t\tSystem.out.println(topic);\n\t\t}",
"System.out.println(topic)",
"System.out.println",
"System.out",
"System",
"System.out",
"topic",
"{\n\t\t\tSystem.out.println(topic.substring(0, len) + \"...\");\n\t\t}",
"System.out.println(topic.substring(0, len) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"topic.substring(0, len) + \"...\"",
"topic.substring(0, len)",
"topic.substring",
"topic",
"0",
"len",
"\"...\"",
"scan.close()",
"scan.close",
"scan",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint len = scan.nextInt();\n\t\tscan.nextLine();\n\t\tString topic = scan.nextLine();\n\n\t\tif(topic.length() <= len){\n\t\t\tSystem.out.println(topic);\n\t\t}else{\n\t\t\tSystem.out.println(topic.substring(0, len) + \"...\");\n\t\t}\n\t\tscan.close();\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint len = scan.nextInt();\n\t\tscan.nextLine();\n\t\tString topic = scan.nextLine();\n\n\t\tif(topic.length() <= len){\n\t\t\tSystem.out.println(topic);\n\t\t}else{\n\t\t\tSystem.out.println(topic.substring(0, len) + \"...\");\n\t\t}\n\t\tscan.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner scan = new Scanner(System.in);
int len = scan.nextInt();
scan.nextLine();
String topic = scan.nextLine();
if(topic.length() <= len){
System.out.println(topic);
}else{
System.out.println(topic.substring(0, len) + "...");
}
scan.close();
}
}
|
[
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,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
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
],
[
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
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
28,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
48,
52
],
[
47,
53
],
[
12,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.*;\nimport java.lang.*;\nimport java.io.*;\npublic class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k = scan.nextInt();\n\t\tString str = scan.next();\n\t\tif(k>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.println(str.substring(0,k)+\"...\");\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k = scan.nextInt();\n\t\tString str = scan.next();\n\t\tif(k>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.println(str.substring(0,k)+\"...\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k = scan.nextInt();\n\t\tString str = scan.next();\n\t\tif(k>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.println(str.substring(0,k)+\"...\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k = scan.nextInt();\n\t\tString str = scan.next();\n\t\tif(k>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.println(str.substring(0,k)+\"...\");\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int k = scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String str = scan.next();",
"str",
"scan.next()",
"scan.next",
"scan",
"if(k>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.println(str.substring(0,k)+\"...\");\n\t\t}",
"k>=str.length()",
"k",
"str.length()",
"str.length",
"str",
"{\n\t\t\tSystem.out.println(str);\n\t\t}",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"{\n\t\t\tSystem.out.println(str.substring(0,k)+\"...\");\n\t\t}",
"System.out.println(str.substring(0,k)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"str.substring(0,k)+\"...\"",
"str.substring(0,k)",
"str.substring",
"str",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k = scan.nextInt();\n\t\tString str = scan.next();\n\t\tif(k>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.println(str.substring(0,k)+\"...\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint k = scan.nextInt();\n\t\tString str = scan.next();\n\t\tif(k>=str.length()) {\n\t\t\tSystem.out.println(str);\n\t\t}\n\t\telse \n\t\t{\n\t\t\tSystem.out.println(str.substring(0,k)+\"...\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.*;
import java.lang.*;
import java.io.*;
public class Main {
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
int k = scan.nextInt();
String str = scan.next();
if(k>=str.length()) {
System.out.println(str);
}
else
{
System.out.println(str.substring(0,k)+"...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
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
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
27,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
40,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\t\tchar[] X = S.toCharArray();\n\t\tif(X.length<=K) {\n\t\t\tSystem.out.println(S);\n\t\t\t\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(X[i]);\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"...\");\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\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\t\tchar[] X = S.toCharArray();\n\t\tif(X.length<=K) {\n\t\t\tSystem.out.println(S);\n\t\t\t\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(X[i]);\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"...\");\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\t\tchar[] X = S.toCharArray();\n\t\tif(X.length<=K) {\n\t\t\tSystem.out.println(S);\n\t\t\t\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(X[i]);\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"...\");\n\t\t}\n\t}",
"main",
"{\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\t\tchar[] X = S.toCharArray();\n\t\tif(X.length<=K) {\n\t\t\tSystem.out.println(S);\n\t\t\t\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(X[i]);\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"...\");\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int K = scan.nextInt();",
"K",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String S = scan.next();",
"S",
"scan.next()",
"scan.next",
"scan",
"char[] X = S.toCharArray();",
"X",
"S.toCharArray()",
"S.toCharArray",
"S",
"if(X.length<=K) {\n\t\t\tSystem.out.println(S);\n\t\t\t\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(X[i]);\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"...\");\n\t\t}",
"X.length<=K",
"X.length",
"X",
"X.length",
"K",
"{\n\t\t\tSystem.out.println(S);\n\t\t\t\n\t\t}",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(X[i]);\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"...\");\n\t\t}",
"for(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(X[i]);\n\t\t\t\t\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(X[i]);\n\t\t\t\t\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(X[i]);\n\t\t\t\t\n\t\t\t}",
"System.out.print(X[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"X[i]",
"X",
"i",
"System.out.print(\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\t\tchar[] X = S.toCharArray();\n\t\tif(X.length<=K) {\n\t\t\tSystem.out.println(S);\n\t\t\t\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(X[i]);\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"...\");\n\t\t}\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint K = scan.nextInt();\n\t\tString S = scan.next();\n\t\tchar[] X = S.toCharArray();\n\t\tif(X.length<=K) {\n\t\t\tSystem.out.println(S);\n\t\t\t\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(X[i]);\n\t\t\t\t\n\t\t\t}\n\t\t\tSystem.out.print(\"...\");\n\t\t}\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int K = scan.nextInt();
String S = scan.next();
char[] X = S.toCharArray();
if(X.length<=K) {
System.out.println(S);
}else {
for(int i=0;i<K;i++) {
System.out.print(X[i]);
}
System.out.print("...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
13,
13,
30,
0,
13,
2,
13,
17,
3,
30,
0,
13,
2,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
76,
5
],
[
76,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
24,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
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
],
[
52,
54
],
[
54,
55
],
[
54,
56
],
[
51,
57
],
[
47,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] |
[
"import java.util.*;\npublic class Main{\n public static void main(String args[]) {\n Scanner obj = new Scanner(System.in); \n int i;\n int n=obj.nextInt();\n String s=obj.next();\n \tString str=\"\";\n \tchar a[]=s.toCharArray();\n for(i=0;i<s.length();i++)\n {\n if(i==n)\n {\n str=str+\"...\";\n break;\n }\n else\n {\n str=str+s.charAt(i);\n }\n }\n System.out.print(str);\n \n}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String args[]) {\n Scanner obj = new Scanner(System.in); \n int i;\n int n=obj.nextInt();\n String s=obj.next();\n \tString str=\"\";\n \tchar a[]=s.toCharArray();\n for(i=0;i<s.length();i++)\n {\n if(i==n)\n {\n str=str+\"...\";\n break;\n }\n else\n {\n str=str+s.charAt(i);\n }\n }\n System.out.print(str);\n \n}\n}",
"Main",
"public static void main(String args[]) {\n Scanner obj = new Scanner(System.in); \n int i;\n int n=obj.nextInt();\n String s=obj.next();\n \tString str=\"\";\n \tchar a[]=s.toCharArray();\n for(i=0;i<s.length();i++)\n {\n if(i==n)\n {\n str=str+\"...\";\n break;\n }\n else\n {\n str=str+s.charAt(i);\n }\n }\n System.out.print(str);\n \n}",
"main",
"{\n Scanner obj = new Scanner(System.in); \n int i;\n int n=obj.nextInt();\n String s=obj.next();\n \tString str=\"\";\n \tchar a[]=s.toCharArray();\n for(i=0;i<s.length();i++)\n {\n if(i==n)\n {\n str=str+\"...\";\n break;\n }\n else\n {\n str=str+s.charAt(i);\n }\n }\n System.out.print(str);\n \n}",
"Scanner obj = new Scanner(System.in);",
"obj",
"new Scanner(System.in)",
"int i;",
"i",
"int n=obj.nextInt();",
"n",
"obj.nextInt()",
"obj.nextInt",
"obj",
"String s=obj.next();",
"s",
"obj.next()",
"obj.next",
"obj",
"String str=\"\";",
"str",
"\"\"",
"char a[]=s.toCharArray();",
"a",
"s.toCharArray()",
"s.toCharArray",
"s",
"for(i=0;i<s.length();i++)\n {\n if(i==n)\n {\n str=str+\"...\";\n break;\n }\n else\n {\n str=str+s.charAt(i);\n }\n }",
"i=0;",
"i=0",
"i",
"0",
"i<s.length()",
"i",
"s.length()",
"s.length",
"s",
"i++",
"i++",
"i",
"{\n if(i==n)\n {\n str=str+\"...\";\n break;\n }\n else\n {\n str=str+s.charAt(i);\n }\n }",
"{\n if(i==n)\n {\n str=str+\"...\";\n break;\n }\n else\n {\n str=str+s.charAt(i);\n }\n }",
"if(i==n)\n {\n str=str+\"...\";\n break;\n }\n else\n {\n str=str+s.charAt(i);\n }",
"i==n",
"i",
"n",
"{\n str=str+\"...\";\n break;\n }",
"str=str+\"...\"",
"str",
"str+\"...\"",
"str",
"\"...\"",
"break;",
"{\n str=str+s.charAt(i);\n }",
"str=str+s.charAt(i)",
"str",
"str+s.charAt(i)",
"str",
"s.charAt(i)",
"s.charAt",
"s",
"i",
"System.out.print(str)",
"System.out.print",
"System.out",
"System",
"System.out",
"str",
"String args[]",
"args",
"public class Main{\n public static void main(String args[]) {\n Scanner obj = new Scanner(System.in); \n int i;\n int n=obj.nextInt();\n String s=obj.next();\n \tString str=\"\";\n \tchar a[]=s.toCharArray();\n for(i=0;i<s.length();i++)\n {\n if(i==n)\n {\n str=str+\"...\";\n break;\n }\n else\n {\n str=str+s.charAt(i);\n }\n }\n System.out.print(str);\n \n}\n}",
"public class Main{\n public static void main(String args[]) {\n Scanner obj = new Scanner(System.in); \n int i;\n int n=obj.nextInt();\n String s=obj.next();\n \tString str=\"\";\n \tchar a[]=s.toCharArray();\n for(i=0;i<s.length();i++)\n {\n if(i==n)\n {\n str=str+\"...\";\n break;\n }\n else\n {\n str=str+s.charAt(i);\n }\n }\n System.out.print(str);\n \n}\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String args[]) {
Scanner obj = new Scanner(System.in);
int i;
int n=obj.nextInt();
String s=obj.next();
String str="";
char a[]=s.toCharArray();
for(i=0;i<s.length();i++)
{
if(i==n)
{
str=str+"...";
break;
}
else
{
str=str+s.charAt(i);
}
}
System.out.print(str);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
14,
2,
13,
17,
30,
0,
13,
2,
4,
18,
13,
17,
17,
14,
2,
13,
17,
30,
0,
13,
17,
30,
0,
13,
2,
2,
2,
2,
4,
18,
13,
17,
17,
17,
4,
18,
13,
17,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
100,
5
],
[
100,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
8,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
31,
36
],
[
24,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
51,
56
],
[
50,
57
],
[
49,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
48,
62
],
[
8,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
8,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
73,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
91,
95
],
[
90,
96
],
[
6,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String t = sc.nextLine();\n int l = t.length();\n int k;\n if(l == 1){\n k = t.charAt(0) - '0';\n }else if(l == 3){\n k = 100;\n }else{\n k = (t.charAt(0) - '0') * 10 + t.charAt(1) - '0';\n }\n String s = sc.nextLine();\n int n = s.length();\n if(n <= k){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,k) + \"...\");\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 String t = sc.nextLine();\n int l = t.length();\n int k;\n if(l == 1){\n k = t.charAt(0) - '0';\n }else if(l == 3){\n k = 100;\n }else{\n k = (t.charAt(0) - '0') * 10 + t.charAt(1) - '0';\n }\n String s = sc.nextLine();\n int n = s.length();\n if(n <= k){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,k) + \"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String t = sc.nextLine();\n int l = t.length();\n int k;\n if(l == 1){\n k = t.charAt(0) - '0';\n }else if(l == 3){\n k = 100;\n }else{\n k = (t.charAt(0) - '0') * 10 + t.charAt(1) - '0';\n }\n String s = sc.nextLine();\n int n = s.length();\n if(n <= k){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,k) + \"...\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String t = sc.nextLine();\n int l = t.length();\n int k;\n if(l == 1){\n k = t.charAt(0) - '0';\n }else if(l == 3){\n k = 100;\n }else{\n k = (t.charAt(0) - '0') * 10 + t.charAt(1) - '0';\n }\n String s = sc.nextLine();\n int n = s.length();\n if(n <= k){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,k) + \"...\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String t = sc.nextLine();",
"t",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int l = t.length();",
"l",
"t.length()",
"t.length",
"t",
"int k;",
"k",
"if(l == 1){\n k = t.charAt(0) - '0';\n }else if(l == 3){\n k = 100;\n }else{\n k = (t.charAt(0) - '0') * 10 + t.charAt(1) - '0';\n }",
"l == 1",
"l",
"1",
"{\n k = t.charAt(0) - '0';\n }",
"k = t.charAt(0) - '0'",
"k",
"t.charAt(0) - '0'",
"t.charAt(0)",
"t.charAt",
"t",
"0",
"'0'",
"if(l == 3){\n k = 100;\n }else{\n k = (t.charAt(0) - '0') * 10 + t.charAt(1) - '0';\n }",
"l == 3",
"l",
"3",
"{\n k = 100;\n }",
"k = 100",
"k",
"100",
"{\n k = (t.charAt(0) - '0') * 10 + t.charAt(1) - '0';\n }",
"k = (t.charAt(0) - '0') * 10 + t.charAt(1) - '0'",
"k",
"(t.charAt(0) - '0') * 10 + t.charAt(1) - '0'",
"(t.charAt(0) - '0') * 10 + t.charAt(1)",
"(t.charAt(0) - '0') * 10",
"(t.charAt(0) - '0')",
"t.charAt(0)",
"t.charAt",
"t",
"0",
"'0'",
"10",
"t.charAt(1)",
"t.charAt",
"t",
"1",
"'0'",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int n = s.length();",
"n",
"s.length()",
"s.length",
"s",
"if(n <= k){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,k) + \"...\");\n }",
"n <= k",
"n",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println(s.substring(0,k) + \"...\");\n }",
"System.out.println(s.substring(0,k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0,k) + \"...\"",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String t = sc.nextLine();\n int l = t.length();\n int k;\n if(l == 1){\n k = t.charAt(0) - '0';\n }else if(l == 3){\n k = 100;\n }else{\n k = (t.charAt(0) - '0') * 10 + t.charAt(1) - '0';\n }\n String s = sc.nextLine();\n int n = s.length();\n if(n <= k){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,k) + \"...\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String t = sc.nextLine();\n int l = t.length();\n int k;\n if(l == 1){\n k = t.charAt(0) - '0';\n }else if(l == 3){\n k = 100;\n }else{\n k = (t.charAt(0) - '0') * 10 + t.charAt(1) - '0';\n }\n String s = sc.nextLine();\n int n = s.length();\n if(n <= k){\n System.out.println(s);\n }else{\n System.out.println(s.substring(0,k) + \"...\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String t = sc.nextLine();
int l = t.length();
int k;
if(l == 1){
k = t.charAt(0) - '0';
}else if(l == 3){
k = 100;
}else{
k = (t.charAt(0) - '0') * 10 + t.charAt(1) - '0';
}
String s = sc.nextLine();
int n = s.length();
if(n <= k){
System.out.println(s);
}else{
System.out.println(s.substring(0,k) + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
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
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
28,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
48,
52
],
[
47,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n sc.nextLine();\n String s = sc.nextLine();\n sc.close();\n if(s.length() <= k) {\n System.out.println(s);\n }else {\n System.out.println(s.substring(0, k) + \"...\");\n }\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 int k = sc.nextInt();\n sc.nextLine();\n String s = sc.nextLine();\n sc.close();\n if(s.length() <= k) {\n System.out.println(s);\n }else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n sc.nextLine();\n String s = sc.nextLine();\n sc.close();\n if(s.length() <= k) {\n System.out.println(s);\n }else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n sc.nextLine();\n String s = sc.nextLine();\n sc.close();\n if(s.length() <= k) {\n System.out.println(s);\n }else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"sc.close()",
"sc.close",
"sc",
"if(s.length() <= k) {\n System.out.println(s);\n }else {\n System.out.println(s.substring(0, k) + \"...\");\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println(s.substring(0, k) + \"...\");\n }",
"System.out.println(s.substring(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n sc.nextLine();\n String s = sc.nextLine();\n sc.close();\n if(s.length() <= k) {\n System.out.println(s);\n }else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n sc.nextLine();\n String s = sc.nextLine();\n sc.close();\n if(s.length() <= k) {\n System.out.println(s);\n }else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
sc.nextLine();
String s = sc.nextLine();
sc.close();
if(s.length() <= k) {
System.out.println(s);
}else {
System.out.println(s.substring(0, k) + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
49,
5
],
[
49,
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
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
23,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
22,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
40,
44
],
[
39,
45
],
[
6,
46
],
[
46,
47
],
[
0,
48
],
[
48,
49
],
[
48,
50
]
] |
[
"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\tint k = sc.nextInt();\n\t\tString n = sc.next();\n\t\t\n\t\tif(n.length() <= k) System.out.println(n);\n\t\telse System.out.println(n.substring(0, k) + \"...\");\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\tint k = sc.nextInt();\n\t\tString n = sc.next();\n\t\t\n\t\tif(n.length() <= k) System.out.println(n);\n\t\telse System.out.println(n.substring(0, k) + \"...\");\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\tint k = sc.nextInt();\n\t\tString n = sc.next();\n\t\t\n\t\tif(n.length() <= k) System.out.println(n);\n\t\telse System.out.println(n.substring(0, k) + \"...\");\n\t\t\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner sc = new Scanner(System.in);\n\t\tint k = sc.nextInt();\n\t\tString n = sc.next();\n\t\t\n\t\tif(n.length() <= k) System.out.println(n);\n\t\telse System.out.println(n.substring(0, k) + \"...\");\n\t\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String n = sc.next();",
"n",
"sc.next()",
"sc.next",
"sc",
"if(n.length() <= k) System.out.println(n);\n\t\telse System.out.println(n.substring(0, k) + \"...\");",
"n.length() <= k",
"n.length()",
"n.length",
"n",
"k",
"System.out.println(n)",
"System.out.println",
"System.out",
"System",
"System.out",
"n",
"System.out.println(n.substring(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"n.substring(0, k) + \"...\"",
"n.substring(0, k)",
"n.substring",
"n",
"0",
"k",
"\"...\"",
"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\tint k = sc.nextInt();\n\t\tString n = sc.next();\n\t\t\n\t\tif(n.length() <= k) System.out.println(n);\n\t\telse System.out.println(n.substring(0, k) + \"...\");\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\tint k = sc.nextInt();\n\t\tString n = sc.next();\n\t\t\n\t\tif(n.length() <= k) System.out.println(n);\n\t\telse System.out.println(n.substring(0, k) + \"...\");\n\t\t\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String n = sc.next();
if(n.length() <= k) System.out.println(n);
else System.out.println(n.substring(0, k) + "...");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
4,
18,
13,
17,
13,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
55,
5
],
[
55,
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
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
35,
43
],
[
43,
44
],
[
43,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
6,
52
],
[
52,
53
],
[
0,
54
],
[
54,
55
],
[
54,
56
]
] |
[
"import java.util.*;\npublic class Main{\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String str = sc.next();\n if(n >= str.length()){\n System.out.println(str);\n }\n else{\n String s = str.substring(0,n);\n s += \"...\";\n System.out.println(s);\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String str = sc.next();\n if(n >= str.length()){\n System.out.println(str);\n }\n else{\n String s = str.substring(0,n);\n s += \"...\";\n System.out.println(s);\n }\n }\n}",
"Main",
"public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String str = sc.next();\n if(n >= str.length()){\n System.out.println(str);\n }\n else{\n String s = str.substring(0,n);\n s += \"...\";\n System.out.println(s);\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String str = sc.next();\n if(n >= str.length()){\n System.out.println(str);\n }\n else{\n String s = str.substring(0,n);\n s += \"...\";\n System.out.println(s);\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"if(n >= str.length()){\n System.out.println(str);\n }\n else{\n String s = str.substring(0,n);\n s += \"...\";\n System.out.println(s);\n }",
"n >= str.length()",
"n",
"str.length()",
"str.length",
"str",
"{\n System.out.println(str);\n }",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"{\n String s = str.substring(0,n);\n s += \"...\";\n System.out.println(s);\n }",
"String s = str.substring(0,n);",
"s",
"str.substring(0,n)",
"str.substring",
"str",
"0",
"n",
"s += \"...\"",
"s",
"\"...\"",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String [] args",
"args",
"public class Main{\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String str = sc.next();\n if(n >= str.length()){\n System.out.println(str);\n }\n else{\n String s = str.substring(0,n);\n s += \"...\";\n System.out.println(s);\n }\n }\n}",
"public class Main{\n public static void main(String [] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n String str = sc.next();\n if(n >= str.length()){\n System.out.println(str);\n }\n else{\n String s = str.substring(0,n);\n s += \"...\";\n System.out.println(s);\n }\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String [] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
String str = sc.next();
if(n >= str.length()){
System.out.println(str);
}
else{
String s = str.substring(0,n);
s += "...";
System.out.println(s);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
2,
17,
17,
12,
13,
30,
41,
13,
4,
13,
41,
13,
4,
13,
14,
2,
4,
18,
13,
13,
4,
13,
13,
4,
13,
2,
4,
18,
13,
17,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
17,
4,
13,
4,
18,
13,
4,
18,
18,
13,
13,
2,
2,
4,
18,
13,
13,
17,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
4,
18,
13,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
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,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
2,
13,
17,
41,
13,
18,
13,
13,
0,
18,
13,
13,
18,
13,
13,
0,
18,
13,
13,
13,
4,
18,
13,
13,
23,
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,
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
],
[
320,
11
],
[
320,
12
],
[
12,
13
],
[
320,
14
],
[
14,
15
],
[
320,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
18,
20
],
[
320,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
23,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
32,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
44,
48
],
[
43,
49
],
[
320,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
52,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
52,
64
],
[
64,
65
],
[
64,
66
],
[
52,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
67,
72
],
[
72,
73
],
[
52,
74
],
[
74,
75
],
[
75,
76
],
[
52,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
83,
87
],
[
82,
88
],
[
50,
89
],
[
89,
90
],
[
320,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
94,
97
],
[
91,
98
],
[
98,
99
],
[
320,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
103,
106
],
[
100,
107
],
[
107,
108
],
[
320,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
117,
118
],
[
320,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
123,
126
],
[
126,
127
],
[
127,
128
],
[
320,
129
],
[
129,
130
],
[
129,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
136,
137
],
[
137,
138
],
[
320,
139
],
[
139,
140
],
[
139,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
320,
146
],
[
146,
147
],
[
146,
148
],
[
148,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
150,
155
],
[
155,
156
],
[
155,
157
],
[
155,
158
],
[
158,
159
],
[
158,
160
],
[
146,
161
],
[
161,
162
],
[
146,
163
],
[
163,
164
],
[
320,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
168,
169
],
[
169,
170
],
[
170,
171
],
[
170,
172
],
[
169,
173
],
[
169,
174
],
[
174,
175
],
[
174,
176
],
[
174,
177
],
[
177,
178
],
[
177,
179
],
[
165,
180
],
[
180,
181
],
[
165,
182
],
[
182,
183
],
[
320,
184
],
[
184,
185
],
[
184,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
189,
190
],
[
189,
191
],
[
188,
192
],
[
188,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
195,
197
],
[
197,
198
],
[
197,
199
],
[
199,
200
],
[
199,
201
],
[
184,
202
],
[
202,
203
],
[
320,
204
],
[
204,
205
],
[
204,
206
],
[
206,
207
],
[
207,
208
],
[
207,
209
],
[
206,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
212,
214
],
[
214,
215
],
[
214,
216
],
[
210,
217
],
[
217,
218
],
[
217,
219
],
[
210,
220
],
[
220,
221
],
[
221,
222
],
[
210,
223
],
[
224,
224
],
[
224,
225
],
[
225,
226
],
[
225,
227
],
[
227,
228
],
[
228,
229
],
[
227,
230
],
[
230,
231
],
[
230,
232
],
[
224,
233
],
[
233,
234
],
[
233,
235
],
[
235,
236
],
[
235,
237
],
[
224,
238
],
[
238,
239
],
[
239,
240
],
[
239,
241
],
[
238,
242
],
[
242,
243
],
[
242,
244
],
[
224,
245
],
[
245,
246
],
[
246,
247
],
[
246,
248
],
[
245,
249
],
[
206,
250
],
[
250,
251
],
[
251,
252
],
[
250,
253
],
[
204,
254
],
[
254,
255
],
[
204,
256
],
[
256,
257
],
[
320,
258
],
[
258,
259
],
[
258,
260
],
[
260,
261
],
[
258,
262
],
[
262,
263
],
[
258,
264
],
[
264,
265
],
[
264,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
258,
270
],
[
270,
271
],
[
270,
272
],
[
272,
273
],
[
273,
274
],
[
274,
275
],
[
275,
276
],
[
275,
277
],
[
274,
278
],
[
278,
279
],
[
279,
280
],
[
280,
281
],
[
273,
282
],
[
282,
283
],
[
283,
284
],
[
284,
285
],
[
284,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
283,
290
],
[
290,
291
],
[
291,
292
],
[
291,
293
],
[
272,
294
],
[
294,
295
],
[
295,
296
],
[
296,
297
],
[
258,
298
],
[
298,
299
],
[
298,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
300,
304
],
[
304,
305
],
[
305,
306
],
[
305,
307
],
[
307,
308
],
[
308,
309
],
[
309,
310
],
[
304,
311
],
[
311,
312
],
[
312,
313
],
[
312,
314
],
[
314,
315
],
[
315,
316
],
[
300,
317
],
[
317,
318
],
[
0,
319
],
[
319,
320
],
[
319,
321
]
] |
[
"import java.util.*;\nimport java.io.*;\nimport java.math.*;\n \npublic class Main\n{\n public static void process()throws IOException\n {\n int k=ni();\n String s=nln();\n if(s.length()<=k)\n pn(s);\n else\n pn(s.substring(0,k)+\"...\");\n }\n \n \n static FastReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new FastReader();\n \n long s = System.currentTimeMillis();\n int t=1;\n // t=ni();\n while(t-->0)\n process();\n \n out.flush();\n System.err.println(System.currentTimeMillis()-s+\"ms\");\n }\n \n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static int ni()throws IOException{return Integer.parseInt(sc.next());}\n static long nl()throws IOException{return Long.parseLong(sc.next());}\n static double nd()throws IOException{return Double.parseDouble(sc.next());}\n static String nln()throws IOException{return sc.nextLine();}\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 \n static long mod=(long)1e9+7l;\n \n static<T> void r_sort(T arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \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 String next(){ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n } \n \n String nextLine(){ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \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 k=ni();\n String s=nln();\n if(s.length()<=k)\n pn(s);\n else\n pn(s.substring(0,k)+\"...\");\n }\n \n \n static FastReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new FastReader();\n \n long s = System.currentTimeMillis();\n int t=1;\n // t=ni();\n while(t-->0)\n process();\n \n out.flush();\n System.err.println(System.currentTimeMillis()-s+\"ms\");\n }\n \n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static int ni()throws IOException{return Integer.parseInt(sc.next());}\n static long nl()throws IOException{return Long.parseLong(sc.next());}\n static double nd()throws IOException{return Double.parseDouble(sc.next());}\n static String nln()throws IOException{return sc.nextLine();}\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 \n static long mod=(long)1e9+7l;\n \n static<T> void r_sort(T arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \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 String next(){ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n } \n \n String nextLine(){ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \n } \n } \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"Main",
"static FastReader sc;",
"sc",
"static PrintWriter out;",
"out",
"static long mod=(long)1e9+7l;",
"mod",
"(long)1e9+7l",
"(long)1e9",
"7l",
"public static void process()throws IOException\n {\n int k=ni();\n String s=nln();\n if(s.length()<=k)\n pn(s);\n else\n pn(s.substring(0,k)+\"...\");\n }",
"process",
"{\n int k=ni();\n String s=nln();\n if(s.length()<=k)\n pn(s);\n else\n pn(s.substring(0,k)+\"...\");\n }",
"int k=ni();",
"k",
"ni()",
"ni",
"String s=nln();",
"s",
"nln()",
"nln",
"if(s.length()<=k)\n pn(s);\n else\n pn(s.substring(0,k)+\"...\");",
"s.length()<=k",
"s.length()",
"s.length",
"s",
"k",
"pn(s)",
"pn",
"s",
"pn(s.substring(0,k)+\"...\")",
"pn",
"s.substring(0,k)+\"...\"",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new FastReader();\n \n long s = System.currentTimeMillis();\n int t=1;\n // t=ni();\n while(t-->0)\n process();\n \n out.flush();\n System.err.println(System.currentTimeMillis()-s+\"ms\");\n }",
"main",
"{\n out = new PrintWriter(System.out);\n sc=new FastReader();\n \n long s = System.currentTimeMillis();\n int t=1;\n // t=ni();\n while(t-->0)\n process();\n \n out.flush();\n System.err.println(System.currentTimeMillis()-s+\"ms\");\n }",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"sc=new FastReader()",
"sc",
"new FastReader()",
"long s = System.currentTimeMillis();",
"s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"int t=1;",
"t",
"1",
"while(t-->0)\n process();",
"t-->0",
"t--",
"t",
"0",
"process()",
"process",
"out.flush()",
"out.flush",
"out",
"System.err.println(System.currentTimeMillis()-s+\"ms\")",
"System.err.println",
"System.err",
"System",
"System.err",
"System.currentTimeMillis()-s+\"ms\"",
"System.currentTimeMillis()-s",
"System.currentTimeMillis()",
"System.currentTimeMillis",
"System",
"s",
"\"ms\"",
"String[]args",
"args",
"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 int ni()throws IOException{return Integer.parseInt(sc.next());}",
"ni",
"{return Integer.parseInt(sc.next());}",
"return Integer.parseInt(sc.next());",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"static long nl()throws IOException{return Long.parseLong(sc.next());}",
"nl",
"{return Long.parseLong(sc.next());}",
"return Long.parseLong(sc.next());",
"Long.parseLong(sc.next())",
"Long.parseLong",
"Long",
"sc.next()",
"sc.next",
"sc",
"static double nd()throws IOException{return Double.parseDouble(sc.next());}",
"nd",
"{return Double.parseDouble(sc.next());}",
"return Double.parseDouble(sc.next());",
"Double.parseDouble(sc.next())",
"Double.parseDouble",
"Double",
"sc.next()",
"sc.next",
"sc",
"static String nln()throws IOException{return sc.nextLine();}",
"nln",
"{return sc.nextLine();}",
"return sc.nextLine();",
"sc.nextLine()",
"sc.nextLine",
"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<T> void r_sort(T arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }",
"r_sort",
"{\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \n }",
"Random r = new Random();",
"r",
"new Random()",
"for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n }",
"int i = n-1;",
"int i = n-1;",
"i",
"n-1",
"n",
"1",
"i > 0",
"i",
"0",
"i--",
"i--",
"i",
"{ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n }",
"{ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n }",
"int j = r.nextInt(i+1);",
"j",
"r.nextInt(i+1)",
"r.nextInt",
"r",
"i+1",
"i",
"1",
"T temp = arr[i];",
"temp",
"arr[i]",
"arr",
"i",
"arr[i] = arr[j]",
"arr[i]",
"arr",
"i",
"arr[j]",
"arr",
"j",
"arr[j] = temp",
"arr[j]",
"arr",
"j",
"temp",
"Arrays.sort(arr)",
"Arrays.sort",
"Arrays",
"arr",
"T arr[]",
"arr",
"int 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 String next(){ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n } \n \n String nextLine(){ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \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))",
"String next(){ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n }",
"next",
"{ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n }",
"while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n }",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n }",
"try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); }",
"catch (IOException e){ e.printStackTrace(); }",
"IOException e",
"{ e.printStackTrace(); }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ st = new StringTokenizer(br.readLine()); }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"String nextLine(){ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \n }",
"nextLine",
"{ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \n }",
"String str = \"\";",
"str",
"\"\"",
"try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); }",
"catch (IOException e) { e.printStackTrace(); }",
"IOException e",
"{ e.printStackTrace(); }",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{ 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 k=ni();\n String s=nln();\n if(s.length()<=k)\n pn(s);\n else\n pn(s.substring(0,k)+\"...\");\n }\n \n \n static FastReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new FastReader();\n \n long s = System.currentTimeMillis();\n int t=1;\n // t=ni();\n while(t-->0)\n process();\n \n out.flush();\n System.err.println(System.currentTimeMillis()-s+\"ms\");\n }\n \n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static int ni()throws IOException{return Integer.parseInt(sc.next());}\n static long nl()throws IOException{return Long.parseLong(sc.next());}\n static double nd()throws IOException{return Double.parseDouble(sc.next());}\n static String nln()throws IOException{return sc.nextLine();}\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 \n static long mod=(long)1e9+7l;\n \n static<T> void r_sort(T arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \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 String next(){ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n } \n \n String nextLine(){ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \n } \n } \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"public class Main\n{\n public static void process()throws IOException\n {\n int k=ni();\n String s=nln();\n if(s.length()<=k)\n pn(s);\n else\n pn(s.substring(0,k)+\"...\");\n }\n \n \n static FastReader sc;\n static PrintWriter out;\n public static void main(String[]args)throws IOException\n {\n out = new PrintWriter(System.out);\n sc=new FastReader();\n \n long s = System.currentTimeMillis();\n int t=1;\n // t=ni();\n while(t-->0)\n process();\n \n out.flush();\n System.err.println(System.currentTimeMillis()-s+\"ms\");\n }\n \n \n static void pn(Object o){out.println(o);}\n static void p(Object o){out.print(o);}\n static int ni()throws IOException{return Integer.parseInt(sc.next());}\n static long nl()throws IOException{return Long.parseLong(sc.next());}\n static double nd()throws IOException{return Double.parseDouble(sc.next());}\n static String nln()throws IOException{return sc.nextLine();}\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 \n static long mod=(long)1e9+7l;\n \n static<T> void r_sort(T arr[],int n){\n Random r = new Random(); \n for (int i = n-1; i > 0; i--){ \n int j = r.nextInt(i+1); \n \n T temp = arr[i]; \n arr[i] = arr[j]; \n arr[j] = temp; \n } \n Arrays.sort(arr); \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 String next(){ \n while (st == null || !st.hasMoreElements()){ \n try{ st = new StringTokenizer(br.readLine()); } catch (IOException e){ e.printStackTrace(); } \n } \n return st.nextToken(); \n } \n \n String nextLine(){ \n String str = \"\"; \n try{ str = br.readLine(); } catch (IOException e) { e.printStackTrace(); } \n return str; \n } \n } \n/////////////////////////////////////////////////////////////////////////////////////////////////////////////\n}",
"Main"
] |
import java.util.*;
import java.io.*;
import java.math.*;
public class Main
{
public static void process()throws IOException
{
int k=ni();
String s=nln();
if(s.length()<=k)
pn(s);
else
pn(s.substring(0,k)+"...");
}
static FastReader sc;
static PrintWriter out;
public static void main(String[]args)throws IOException
{
out = new PrintWriter(System.out);
sc=new FastReader();
long s = System.currentTimeMillis();
int t=1;
// t=ni();
while(t-->0)
process();
out.flush();
System.err.println(System.currentTimeMillis()-s+"ms");
}
static void pn(Object o){out.println(o);}
static void p(Object o){out.print(o);}
static int ni()throws IOException{return Integer.parseInt(sc.next());}
static long nl()throws IOException{return Long.parseLong(sc.next());}
static double nd()throws IOException{return Double.parseDouble(sc.next());}
static String nln()throws IOException{return sc.nextLine();}
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 long mod=(long)1e9+7l;
static<T> void r_sort(T arr[],int n){
Random r = new Random();
for (int i = n-1; i > 0; i--){
int j = r.nextInt(i+1);
T temp = arr[i];
arr[i] = arr[j];
arr[j] = temp;
}
Arrays.sort(arr);
}
/////////////////////////////////////////////////////////////////////////////////////////////////////////
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();
}
String nextLine(){
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,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
52,
5
],
[
52,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
25,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
43,
47
],
[
42,
48
],
[
6,
49
],
[
49,
50
],
[
0,
51
],
[
51,
52
],
[
51,
53
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = Integer.parseInt(sc.next());\n String S = sc.next();\n if(S.length() <= K)\n System.out.println(S);\n else\n System.out.println(S.substring(0,K) + \"...\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = Integer.parseInt(sc.next());\n String S = sc.next();\n if(S.length() <= K)\n System.out.println(S);\n else\n System.out.println(S.substring(0,K) + \"...\");\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = Integer.parseInt(sc.next());\n String S = sc.next();\n if(S.length() <= K)\n System.out.println(S);\n else\n System.out.println(S.substring(0,K) + \"...\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = Integer.parseInt(sc.next());\n String S = sc.next();\n if(S.length() <= K)\n System.out.println(S);\n else\n System.out.println(S.substring(0,K) + \"...\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = Integer.parseInt(sc.next());",
"K",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"if(S.length() <= K)\n System.out.println(S);\n else\n System.out.println(S.substring(0,K) + \"...\");",
"S.length() <= K",
"S.length()",
"S.length",
"S",
"K",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"System.out.println(S.substring(0,K) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0,K) + \"...\"",
"S.substring(0,K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = Integer.parseInt(sc.next());\n String S = sc.next();\n if(S.length() <= K)\n System.out.println(S);\n else\n System.out.println(S.substring(0,K) + \"...\");\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int K = Integer.parseInt(sc.next());\n String S = sc.next();\n if(S.length() <= K)\n System.out.println(S);\n else\n System.out.println(S.substring(0,K) + \"...\");\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int K = Integer.parseInt(sc.next());
String S = sc.next();
if(S.length() <= K)
System.out.println(S);
else
System.out.println(S.substring(0,K) + "...");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
57,
5
],
[
57,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
45,
49
],
[
44,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tString b = scan.next();\nint n = b.length();\n\n\nif(n <= a) {\n\tSystem.out.println(b);\n}else {\n\tSystem.out.println(b.substring(0,a)+\"...\");\n}\n\n\t\tscan.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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tString b = scan.next();\nint n = b.length();\n\n\nif(n <= a) {\n\tSystem.out.println(b);\n}else {\n\tSystem.out.println(b.substring(0,a)+\"...\");\n}\n\n\t\tscan.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tString b = scan.next();\nint n = b.length();\n\n\nif(n <= a) {\n\tSystem.out.println(b);\n}else {\n\tSystem.out.println(b.substring(0,a)+\"...\");\n}\n\n\t\tscan.close();\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tString b = scan.next();\nint n = b.length();\n\n\nif(n <= a) {\n\tSystem.out.println(b);\n}else {\n\tSystem.out.println(b.substring(0,a)+\"...\");\n}\n\n\t\tscan.close();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String b = scan.next();",
"b",
"scan.next()",
"scan.next",
"scan",
"int n = b.length();",
"n",
"b.length()",
"b.length",
"b",
"if(n <= a) {\n\tSystem.out.println(b);\n}else {\n\tSystem.out.println(b.substring(0,a)+\"...\");\n}",
"n <= a",
"n",
"a",
"{\n\tSystem.out.println(b);\n}",
"System.out.println(b)",
"System.out.println",
"System.out",
"System",
"System.out",
"b",
"{\n\tSystem.out.println(b.substring(0,a)+\"...\");\n}",
"System.out.println(b.substring(0,a)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"b.substring(0,a)+\"...\"",
"b.substring(0,a)",
"b.substring",
"b",
"0",
"a",
"\"...\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tString b = scan.next();\nint n = b.length();\n\n\nif(n <= a) {\n\tSystem.out.println(b);\n}else {\n\tSystem.out.println(b.substring(0,a)+\"...\");\n}\n\n\t\tscan.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint a = scan.nextInt();\n\t\tString b = scan.next();\nint n = b.length();\n\n\nif(n <= a) {\n\tSystem.out.println(b);\n}else {\n\tSystem.out.println(b.substring(0,a)+\"...\");\n}\n\n\t\tscan.close();\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scan = new Scanner(System.in);
int a = scan.nextInt();
String b = scan.next();
int n = b.length();
if(n <= a) {
System.out.println(b);
}else {
System.out.println(b.substring(0,a)+"...");
}
scan.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
14,
2,
4,
18,
13,
13,
30,
0,
13,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
2,
13,
17,
30,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
62,
5
],
[
62,
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
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
36,
40
],
[
33,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
27,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int lim = sc.nextInt();\n String str = sc.next();\n sc.close();\n String result;\n\n if(str.length()>lim) {\n result = str.substring(0,lim);\n System.out.println(result+\"...\");\n } else {\n result = str;\n System.out.println(result);\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 int lim = sc.nextInt();\n String str = sc.next();\n sc.close();\n String result;\n\n if(str.length()>lim) {\n result = str.substring(0,lim);\n System.out.println(result+\"...\");\n } else {\n result = str;\n System.out.println(result);\n }\n\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int lim = sc.nextInt();\n String str = sc.next();\n sc.close();\n String result;\n\n if(str.length()>lim) {\n result = str.substring(0,lim);\n System.out.println(result+\"...\");\n } else {\n result = str;\n System.out.println(result);\n }\n\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int lim = sc.nextInt();\n String str = sc.next();\n sc.close();\n String result;\n\n if(str.length()>lim) {\n result = str.substring(0,lim);\n System.out.println(result+\"...\");\n } else {\n result = str;\n System.out.println(result);\n }\n\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int lim = sc.nextInt();",
"lim",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String str = sc.next();",
"str",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"String result;",
"result",
"if(str.length()>lim) {\n result = str.substring(0,lim);\n System.out.println(result+\"...\");\n } else {\n result = str;\n System.out.println(result);\n }",
"str.length()>lim",
"str.length()",
"str.length",
"str",
"lim",
"{\n result = str.substring(0,lim);\n System.out.println(result+\"...\");\n }",
"result = str.substring(0,lim)",
"result",
"str.substring(0,lim)",
"str.substring",
"str",
"0",
"lim",
"System.out.println(result+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"result+\"...\"",
"result",
"\"...\"",
"{\n result = str;\n System.out.println(result);\n }",
"result = str",
"result",
"str",
"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 sc = new Scanner(System.in);\n int lim = sc.nextInt();\n String str = sc.next();\n sc.close();\n String result;\n\n if(str.length()>lim) {\n result = str.substring(0,lim);\n System.out.println(result+\"...\");\n } else {\n result = str;\n System.out.println(result);\n }\n\n\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int lim = sc.nextInt();\n String str = sc.next();\n sc.close();\n String result;\n\n if(str.length()>lim) {\n result = str.substring(0,lim);\n System.out.println(result+\"...\");\n } else {\n result = str;\n System.out.println(result);\n }\n\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int lim = sc.nextInt();
String str = sc.next();
sc.close();
String result;
if(str.length()>lim) {
result = str.substring(0,lim);
System.out.println(result+"...");
} else {
result = str;
System.out.println(result);
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
4,
18,
20,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
68,
8
],
[
68,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
12,
15
],
[
15,
16
],
[
15,
17
],
[
9,
18
],
[
18,
19
],
[
68,
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
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
36,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
56,
60
],
[
55,
61
],
[
22,
62
],
[
62,
63
],
[
63,
64
],
[
20,
65
],
[
65,
66
],
[
0,
67
],
[
67,
68
],
[
67,
69
]
] |
[
"import java.io.InputStream;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main().execute(System.in);\n\t}\n\n\tpublic void execute(InputStream in) {\n\t\tScanner sc = new Scanner(in);\n\t\t\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\t\n\t\tif (s.length() <= k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}\n\t\tsc.close();\n\t}\n}",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main().execute(System.in);\n\t}\n\n\tpublic void execute(InputStream in) {\n\t\tScanner sc = new Scanner(in);\n\t\t\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\t\n\t\tif (s.length() <= k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tnew Main().execute(System.in);\n\t}",
"main",
"{\n\t\tnew Main().execute(System.in);\n\t}",
"new Main().execute(System.in)",
"new Main().execute",
"new Main()",
"System.in",
"System",
"System.in",
"String[] args",
"args",
"public void execute(InputStream in) {\n\t\tScanner sc = new Scanner(in);\n\t\t\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\t\n\t\tif (s.length() <= k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}\n\t\tsc.close();\n\t}",
"execute",
"{\n\t\tScanner sc = new Scanner(in);\n\t\t\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\t\n\t\tif (s.length() <= k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(in);",
"sc",
"new Scanner(in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if (s.length() <= k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}",
"System.out.println(s.substring(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"sc.close()",
"sc.close",
"sc",
"InputStream in",
"in",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main().execute(System.in);\n\t}\n\n\tpublic void execute(InputStream in) {\n\t\tScanner sc = new Scanner(in);\n\t\t\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\t\n\t\tif (s.length() <= k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tnew Main().execute(System.in);\n\t}\n\n\tpublic void execute(InputStream in) {\n\t\tScanner sc = new Scanner(in);\n\t\t\n\t\tint k = sc.nextInt();\n\t\tString s = sc.next();\n\t\t\n\t\tif (s.length() <= k) {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t\telse {\n\t\t\tSystem.out.println(s.substring(0, k) + \"...\");\n\t\t}\n\t\tsc.close();\n\t}\n}",
"Main"
] |
import java.io.InputStream;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
new Main().execute(System.in);
}
public void execute(InputStream in) {
Scanner sc = new Scanner(in);
int k = sc.nextInt();
String s = sc.next();
if (s.length() <= k) {
System.out.println(s);
}
else {
System.out.println(s.substring(0, k) + "...");
}
sc.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
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
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
33,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
50,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.Scanner;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String K = scan.next();\n int k = Integer.parseInt(K);\n String s = scan.next();\n\n int sLen = s.length();\n\n if (sLen <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\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 String K = scan.next();\n int k = Integer.parseInt(K);\n String s = scan.next();\n\n int sLen = s.length();\n\n if (sLen <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String K = scan.next();\n int k = Integer.parseInt(K);\n String s = scan.next();\n\n int sLen = s.length();\n\n if (sLen <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n String K = scan.next();\n int k = Integer.parseInt(K);\n String s = scan.next();\n\n int sLen = s.length();\n\n if (sLen <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String K = scan.next();",
"K",
"scan.next()",
"scan.next",
"scan",
"int k = Integer.parseInt(K);",
"k",
"Integer.parseInt(K)",
"Integer.parseInt",
"Integer",
"K",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"int sLen = s.length();",
"sLen",
"s.length()",
"s.length",
"s",
"if (sLen <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }",
"sLen <= k",
"sLen",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println(s.substring(0, k) + \"...\");\n }",
"System.out.println(s.substring(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String K = scan.next();\n int k = Integer.parseInt(K);\n String s = scan.next();\n\n int sLen = s.length();\n\n if (sLen <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n String K = scan.next();\n int k = Integer.parseInt(K);\n String s = scan.next();\n\n int sLen = s.length();\n\n if (sLen <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
String K = scan.next();
int k = Integer.parseInt(K);
String s = scan.next();
int sLen = s.length();
if (sLen <= k) {
System.out.println(s);
} else {
System.out.println(s.substring(0, k) + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
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
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
38,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"import java.util.*;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n sc.close();\n\n if (K >= S.length()) {\n System.out.println(S);\n } else {\n for (int i = 0; i < K; i++) {\n System.out.print(S.charAt(i));\n }\n System.out.println(\"...\");\n }\n\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 int K = sc.nextInt();\n String S = sc.next();\n sc.close();\n\n if (K >= S.length()) {\n System.out.println(S);\n } else {\n for (int i = 0; i < K; i++) {\n System.out.print(S.charAt(i));\n }\n System.out.println(\"...\");\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n sc.close();\n\n if (K >= S.length()) {\n System.out.println(S);\n } else {\n for (int i = 0; i < K; i++) {\n System.out.print(S.charAt(i));\n }\n System.out.println(\"...\");\n }\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n sc.close();\n\n if (K >= S.length()) {\n System.out.println(S);\n } else {\n for (int i = 0; i < K; i++) {\n System.out.print(S.charAt(i));\n }\n System.out.println(\"...\");\n }\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"sc.close()",
"sc.close",
"sc",
"if (K >= S.length()) {\n System.out.println(S);\n } else {\n for (int i = 0; i < K; i++) {\n System.out.print(S.charAt(i));\n }\n System.out.println(\"...\");\n }",
"K >= S.length()",
"K",
"S.length()",
"S.length",
"S",
"{\n System.out.println(S);\n }",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n for (int i = 0; i < K; i++) {\n System.out.print(S.charAt(i));\n }\n System.out.println(\"...\");\n }",
"for (int i = 0; i < K; i++) {\n System.out.print(S.charAt(i));\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < K",
"i",
"K",
"i++",
"i++",
"i",
"{\n System.out.print(S.charAt(i));\n }",
"{\n System.out.print(S.charAt(i));\n }",
"System.out.print(S.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n sc.close();\n\n if (K >= S.length()) {\n System.out.println(S);\n } else {\n for (int i = 0; i < K; i++) {\n System.out.print(S.charAt(i));\n }\n System.out.println(\"...\");\n }\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int K = sc.nextInt();\n String S = sc.next();\n sc.close();\n\n if (K >= S.length()) {\n System.out.println(S);\n } else {\n for (int i = 0; i < K; i++) {\n System.out.print(S.charAt(i));\n }\n System.out.println(\"...\");\n }\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
sc.close();
if (K >= S.length()) {
System.out.println(S);
} else {
for (int i = 0; i < K; i++) {
System.out.print(S.charAt(i));
}
System.out.println("...");
}
}
}
|
[
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,
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,
4,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
18,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
18,
13,
13,
17,
3,
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
28,
38
],
[
38,
39
],
[
39,
40
],
[
28,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
58,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
73,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
51,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
98,
108
],
[
108,
109
],
[
109,
110
],
[
98,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
116,
117
],
[
116,
118
],
[
113,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
113,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
129,
134
],
[
134,
135
],
[
135,
136
],
[
135,
137
],
[
134,
138
],
[
128,
139
],
[
8,
140
],
[
140,
141
],
[
141,
142
],
[
6,
143
],
[
143,
144
]
] |
[
"import java.util.*;\nclass Main{\n public static void main(String[]args){\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n String S = scanner.next();\n char[] split_S = new char [S.length()];\n for(int i=0;i<S.length();i++){\n split_S[i] = S.charAt(i);\n }\n if(S.length() <= K){\n for(int i=0;i<S.length();i++){\n if(i != i-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]);\n }\n }\n }\n else{\n for(int i=0;i<S.length();i++){\n if(i != K-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]+\"...\");\n break;\n }\n }\n }\n\n scanner.close();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n public static void main(String[]args){\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n String S = scanner.next();\n char[] split_S = new char [S.length()];\n for(int i=0;i<S.length();i++){\n split_S[i] = S.charAt(i);\n }\n if(S.length() <= K){\n for(int i=0;i<S.length();i++){\n if(i != i-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]);\n }\n }\n }\n else{\n for(int i=0;i<S.length();i++){\n if(i != K-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]+\"...\");\n break;\n }\n }\n }\n\n scanner.close();\n }\n}",
"Main",
"public static void main(String[]args){\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n String S = scanner.next();\n char[] split_S = new char [S.length()];\n for(int i=0;i<S.length();i++){\n split_S[i] = S.charAt(i);\n }\n if(S.length() <= K){\n for(int i=0;i<S.length();i++){\n if(i != i-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]);\n }\n }\n }\n else{\n for(int i=0;i<S.length();i++){\n if(i != K-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]+\"...\");\n break;\n }\n }\n }\n\n scanner.close();\n }",
"main",
"{\n Scanner scanner = new Scanner(System.in);\n int K = scanner.nextInt();\n String S = scanner.next();\n char[] split_S = new char [S.length()];\n for(int i=0;i<S.length();i++){\n split_S[i] = S.charAt(i);\n }\n if(S.length() <= K){\n for(int i=0;i<S.length();i++){\n if(i != i-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]);\n }\n }\n }\n else{\n for(int i=0;i<S.length();i++){\n if(i != K-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]+\"...\");\n break;\n }\n }\n }\n\n scanner.close();\n }",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int K = scanner.nextInt();",
"K",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"String S = scanner.next();",
"S",
"scanner.next()",
"scanner.next",
"scanner",
"char[] split_S = new char [S.length()];",
"split_S",
"new char [S.length()]",
"S.length()",
"S.length",
"S",
"for(int i=0;i<S.length();i++){\n split_S[i] = S.charAt(i);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<S.length()",
"i",
"S.length()",
"S.length",
"S",
"i++",
"i++",
"i",
"{\n split_S[i] = S.charAt(i);\n }",
"{\n split_S[i] = S.charAt(i);\n }",
"split_S[i] = S.charAt(i)",
"split_S[i]",
"split_S",
"i",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"if(S.length() <= K){\n for(int i=0;i<S.length();i++){\n if(i != i-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]);\n }\n }\n }\n else{\n for(int i=0;i<S.length();i++){\n if(i != K-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]+\"...\");\n break;\n }\n }\n }",
"S.length() <= K",
"S.length()",
"S.length",
"S",
"K",
"{\n for(int i=0;i<S.length();i++){\n if(i != i-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]);\n }\n }\n }",
"for(int i=0;i<S.length();i++){\n if(i != i-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]);\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<S.length()",
"i",
"S.length()",
"S.length",
"S",
"i++",
"i++",
"i",
"{\n if(i != i-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]);\n }\n }",
"{\n if(i != i-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]);\n }\n }",
"if(i != i-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]);\n }",
"i != i-1",
"i",
"i-1",
"i",
"1",
"{\n System.out.print(split_S[i]);\n }",
"System.out.print(split_S[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"split_S[i]",
"split_S",
"i",
"{\n System.out.println(split_S[i]);\n }",
"System.out.println(split_S[i])",
"System.out.println",
"System.out",
"System",
"System.out",
"split_S[i]",
"split_S",
"i",
"{\n for(int i=0;i<S.length();i++){\n if(i != K-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]+\"...\");\n break;\n }\n }\n }",
"for(int i=0;i<S.length();i++){\n if(i != K-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]+\"...\");\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 if(i != K-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]+\"...\");\n break;\n }\n }",
"{\n if(i != K-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]+\"...\");\n break;\n }\n }",
"if(i != K-1){\n System.out.print(split_S[i]);\n }\n else{\n System.out.println(split_S[i]+\"...\");\n break;\n }",
"i != K-1",
"i",
"K-1",
"K",
"1",
"{\n System.out.print(split_S[i]);\n }",
"System.out.print(split_S[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"split_S[i]",
"split_S",
"i",
"{\n System.out.println(split_S[i]+\"...\");\n break;\n }",
"System.out.println(split_S[i]+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"split_S[i]+\"...\"",
"split_S[i]",
"split_S",
"i",
"\"...\"",
"break;",
"scanner.close()",
"scanner.close",
"scanner",
"String[]args",
"args"
] |
import java.util.*;
class Main{
public static void main(String[]args){
Scanner scanner = new Scanner(System.in);
int K = scanner.nextInt();
String S = scanner.next();
char[] split_S = new char [S.length()];
for(int i=0;i<S.length();i++){
split_S[i] = S.charAt(i);
}
if(S.length() <= K){
for(int i=0;i<S.length();i++){
if(i != i-1){
System.out.print(split_S[i]);
}
else{
System.out.println(split_S[i]);
}
}
}
else{
for(int i=0;i<S.length();i++){
if(i != K-1){
System.out.print(split_S[i]);
}
else{
System.out.println(split_S[i]+"...");
break;
}
}
}
scanner.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
4,
18,
13,
23,
13,
12,
13,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
60,
5
],
[
60,
6
],
[
6,
7
],
[
60,
8
],
[
8,
9
],
[
8,
10
],
[
60,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
60,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
35,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
53,
57
],
[
52,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"import java.util.*;\n\npublic class Main{\n\tint N;\n\tScanner reader = new Scanner(System.in);\n\tpublic static void main(String[]args) {\n\t\t Main p = new Main();\n\t\t p.run();\n\t}\n\n\tpublic void run() {\n\t\tN = reader.nextInt();\n\t\tString s = reader.next();\n\t\tif(s.length()<=N)\n\t\t\tSystem.out.print(s);\n\t\telse\n\t\t\tSystem.out.print(s.substring(0,N)+\"...\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tint N;\n\tScanner reader = new Scanner(System.in);\n\tpublic static void main(String[]args) {\n\t\t Main p = new Main();\n\t\t p.run();\n\t}\n\n\tpublic void run() {\n\t\tN = reader.nextInt();\n\t\tString s = reader.next();\n\t\tif(s.length()<=N)\n\t\t\tSystem.out.print(s);\n\t\telse\n\t\t\tSystem.out.print(s.substring(0,N)+\"...\");\n\t}\n}",
"Main",
"int N;",
"N",
"Scanner reader = new Scanner(System.in);",
"reader",
"new Scanner(System.in)",
"public static void main(String[]args) {\n\t\t Main p = new Main();\n\t\t p.run();\n\t}",
"main",
"{\n\t\t Main p = new Main();\n\t\t p.run();\n\t}",
"Main p = new Main();",
"p",
"new Main()",
"p.run()",
"p.run",
"p",
"String[]args",
"args",
"public void run() {\n\t\tN = reader.nextInt();\n\t\tString s = reader.next();\n\t\tif(s.length()<=N)\n\t\t\tSystem.out.print(s);\n\t\telse\n\t\t\tSystem.out.print(s.substring(0,N)+\"...\");\n\t}",
"run",
"{\n\t\tN = reader.nextInt();\n\t\tString s = reader.next();\n\t\tif(s.length()<=N)\n\t\t\tSystem.out.print(s);\n\t\telse\n\t\t\tSystem.out.print(s.substring(0,N)+\"...\");\n\t}",
"N = reader.nextInt()",
"N",
"reader.nextInt()",
"reader.nextInt",
"reader",
"String s = reader.next();",
"s",
"reader.next()",
"reader.next",
"reader",
"if(s.length()<=N)\n\t\t\tSystem.out.print(s);\n\t\telse\n\t\t\tSystem.out.print(s.substring(0,N)+\"...\");",
"s.length()<=N",
"s.length()",
"s.length",
"s",
"N",
"System.out.print(s)",
"System.out.print",
"System.out",
"System",
"System.out",
"s",
"System.out.print(s.substring(0,N)+\"...\")",
"System.out.print",
"System.out",
"System",
"System.out",
"s.substring(0,N)+\"...\"",
"s.substring(0,N)",
"s.substring",
"s",
"0",
"N",
"\"...\"",
"public class Main{\n\tint N;\n\tScanner reader = new Scanner(System.in);\n\tpublic static void main(String[]args) {\n\t\t Main p = new Main();\n\t\t p.run();\n\t}\n\n\tpublic void run() {\n\t\tN = reader.nextInt();\n\t\tString s = reader.next();\n\t\tif(s.length()<=N)\n\t\t\tSystem.out.print(s);\n\t\telse\n\t\t\tSystem.out.print(s.substring(0,N)+\"...\");\n\t}\n}",
"public class Main{\n\tint N;\n\tScanner reader = new Scanner(System.in);\n\tpublic static void main(String[]args) {\n\t\t Main p = new Main();\n\t\t p.run();\n\t}\n\n\tpublic void run() {\n\t\tN = reader.nextInt();\n\t\tString s = reader.next();\n\t\tif(s.length()<=N)\n\t\t\tSystem.out.print(s);\n\t\telse\n\t\t\tSystem.out.print(s.substring(0,N)+\"...\");\n\t}\n}",
"Main"
] |
import java.util.*;
public class Main{
int N;
Scanner reader = new Scanner(System.in);
public static void main(String[]args) {
Main p = new Main();
p.run();
}
public void run() {
N = reader.nextInt();
String s = reader.next();
if(s.length()<=N)
System.out.print(s);
else
System.out.print(s.substring(0,N)+"...");
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
29,
4,
18,
13,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
13,
41,
13,
4,
18,
13,
4,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
90,
5
],
[
90,
6
],
[
6,
7
],
[
6,
8
],
[
90,
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
],
[
90,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
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
],
[
48,
49
],
[
40,
50
],
[
50,
51
],
[
50,
52
],
[
50,
53
],
[
22,
54
],
[
54,
55
],
[
90,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
59,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
79,
83
],
[
78,
84
],
[
56,
85
],
[
85,
86
],
[
56,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n private static final Scanner SCANNER = new Scanner(System.in);\n\n static int readOneInt() {\n String line = SCANNER.nextLine();\n return Integer.parseInt(line);\n }\n\n public static void main(String[] args) {\n\n// int tc = Integer.parseInt(SCANNER.nextLine());\n int tc = 1;\n for (int i = 0; i < tc; ++i) {\n int k = readOneInt();\n String s = SCANNER.nextLine();\n test(s, k);\n }\n }\n\n private static void test(String s, int k) {\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n }\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n private static final Scanner SCANNER = new Scanner(System.in);\n\n static int readOneInt() {\n String line = SCANNER.nextLine();\n return Integer.parseInt(line);\n }\n\n public static void main(String[] args) {\n\n// int tc = Integer.parseInt(SCANNER.nextLine());\n int tc = 1;\n for (int i = 0; i < tc; ++i) {\n int k = readOneInt();\n String s = SCANNER.nextLine();\n test(s, k);\n }\n }\n\n private static void test(String s, int k) {\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n }\n}",
"Main",
"private static final Scanner SCANNER = new Scanner(System.in);",
"SCANNER",
"new Scanner(System.in)",
"static int readOneInt() {\n String line = SCANNER.nextLine();\n return Integer.parseInt(line);\n }",
"readOneInt",
"{\n String line = SCANNER.nextLine();\n return Integer.parseInt(line);\n }",
"String line = SCANNER.nextLine();",
"line",
"SCANNER.nextLine()",
"SCANNER.nextLine",
"SCANNER",
"return Integer.parseInt(line);",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"public static void main(String[] args) {\n\n// int tc = Integer.parseInt(SCANNER.nextLine());\n int tc = 1;\n for (int i = 0; i < tc; ++i) {\n int k = readOneInt();\n String s = SCANNER.nextLine();\n test(s, k);\n }\n }",
"main",
"{\n\n// int tc = Integer.parseInt(SCANNER.nextLine());\n int tc = 1;\n for (int i = 0; i < tc; ++i) {\n int k = readOneInt();\n String s = SCANNER.nextLine();\n test(s, k);\n }\n }",
"int tc = 1;",
"tc",
"1",
"for (int i = 0; i < tc; ++i) {\n int k = readOneInt();\n String s = SCANNER.nextLine();\n test(s, k);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < tc",
"i",
"tc",
"++i",
"++i",
"i",
"{\n int k = readOneInt();\n String s = SCANNER.nextLine();\n test(s, k);\n }",
"{\n int k = readOneInt();\n String s = SCANNER.nextLine();\n test(s, k);\n }",
"int k = readOneInt();",
"k",
"readOneInt()",
"readOneInt",
"String s = SCANNER.nextLine();",
"s",
"SCANNER.nextLine()",
"SCANNER.nextLine",
"SCANNER",
"test(s, k)",
"test",
"s",
"k",
"String[] args",
"args",
"private static void test(String s, int k) {\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n }",
"test",
"{\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n }",
"if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println(s.substring(0, k) + \"...\");\n }",
"System.out.println(s.substring(0, k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String s",
"s",
"int k",
"k",
"public class Main {\n\n private static final Scanner SCANNER = new Scanner(System.in);\n\n static int readOneInt() {\n String line = SCANNER.nextLine();\n return Integer.parseInt(line);\n }\n\n public static void main(String[] args) {\n\n// int tc = Integer.parseInt(SCANNER.nextLine());\n int tc = 1;\n for (int i = 0; i < tc; ++i) {\n int k = readOneInt();\n String s = SCANNER.nextLine();\n test(s, k);\n }\n }\n\n private static void test(String s, int k) {\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n }\n}",
"public class Main {\n\n private static final Scanner SCANNER = new Scanner(System.in);\n\n static int readOneInt() {\n String line = SCANNER.nextLine();\n return Integer.parseInt(line);\n }\n\n public static void main(String[] args) {\n\n// int tc = Integer.parseInt(SCANNER.nextLine());\n int tc = 1;\n for (int i = 0; i < tc; ++i) {\n int k = readOneInt();\n String s = SCANNER.nextLine();\n test(s, k);\n }\n }\n\n private static void test(String s, int k) {\n if (s.length() <= k) {\n System.out.println(s);\n } else {\n System.out.println(s.substring(0, k) + \"...\");\n }\n\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
private static final Scanner SCANNER = new Scanner(System.in);
static int readOneInt() {
String line = SCANNER.nextLine();
return Integer.parseInt(line);
}
public static void main(String[] args) {
// int tc = Integer.parseInt(SCANNER.nextLine());
int tc = 1;
for (int i = 0; i < tc; ++i) {
int k = readOneInt();
String s = SCANNER.nextLine();
test(s, k);
}
}
private static void test(String s, int k) {
if (s.length() <= k) {
System.out.println(s);
} else {
System.out.println(s.substring(0, k) + "...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
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,
6,
13,
12,
13,
30,
41,
13,
20,
4,
13,
4,
18,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
13,
17
],
[
17,
18
],
[
13,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
13,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
28,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
38,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
27,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
13,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
60,
61
],
[
13,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
13,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
13,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
86,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
82,
99
],
[
99,
100
],
[
0,
101
],
[
156,
102
],
[
156,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
109,
114
],
[
114,
115
],
[
115,
116
],
[
103,
117
],
[
117,
118
],
[
156,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
124,
125
],
[
125,
126
],
[
121,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
127,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
141,
143
],
[
139,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
145,
148
],
[
145,
149
],
[
144,
150
],
[
119,
151
],
[
151,
152
],
[
119,
153
],
[
153,
154
],
[
0,
155
],
[
155,
156
],
[
155,
157
]
] |
[
"\n import java.io.BufferedReader;\n import java.io.IOException;\n import java.io.InputStreamReader;\n import java.util.StringTokenizer;\n\n\n 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\npublic class Main {\n\n public static void main(String[] args) {\n FastReader fastReader = new FastReader();\n filter( fastReader.nextInt(), fastReader.next() );\n\n }\n\n private static void filter(int reach, String s) {\n\n int len = s.length();\n if( len <= reach ){\n System.out.println(s);\n }else{\n System.out.println( s.substring(0, reach ) + \"...\" );\n }\n\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"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 public static void main(String[] args) {\n FastReader fastReader = new FastReader();\n filter( fastReader.nextInt(), fastReader.next() );\n\n }\n\n private static void filter(int reach, String s) {\n\n int len = s.length();\n if( len <= reach ){\n System.out.println(s);\n }else{\n System.out.println( s.substring(0, reach ) + \"...\" );\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n FastReader fastReader = new FastReader();\n filter( fastReader.nextInt(), fastReader.next() );\n\n }",
"main",
"{\n FastReader fastReader = new FastReader();\n filter( fastReader.nextInt(), fastReader.next() );\n\n }",
"FastReader fastReader = new FastReader();",
"fastReader",
"new FastReader()",
"filter( fastReader.nextInt(), fastReader.next() )",
"filter",
"fastReader.nextInt()",
"fastReader.nextInt",
"fastReader",
"fastReader.next()",
"fastReader.next",
"fastReader",
"String[] args",
"args",
"private static void filter(int reach, String s) {\n\n int len = s.length();\n if( len <= reach ){\n System.out.println(s);\n }else{\n System.out.println( s.substring(0, reach ) + \"...\" );\n }\n\n }",
"filter",
"{\n\n int len = s.length();\n if( len <= reach ){\n System.out.println(s);\n }else{\n System.out.println( s.substring(0, reach ) + \"...\" );\n }\n\n }",
"int len = s.length();",
"len",
"s.length()",
"s.length",
"s",
"if( len <= reach ){\n System.out.println(s);\n }else{\n System.out.println( s.substring(0, reach ) + \"...\" );\n }",
"len <= reach",
"len",
"reach",
"{\n System.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n System.out.println( s.substring(0, reach ) + \"...\" );\n }",
"System.out.println( s.substring(0, reach ) + \"...\" )",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0, reach ) + \"...\"",
"s.substring(0, reach )",
"s.substring",
"s",
"0",
"reach",
"\"...\"",
"int reach",
"reach",
"String s",
"s",
"public class Main {\n\n public static void main(String[] args) {\n FastReader fastReader = new FastReader();\n filter( fastReader.nextInt(), fastReader.next() );\n\n }\n\n private static void filter(int reach, String s) {\n\n int len = s.length();\n if( len <= reach ){\n System.out.println(s);\n }else{\n System.out.println( s.substring(0, reach ) + \"...\" );\n }\n\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n FastReader fastReader = new FastReader();\n filter( fastReader.nextInt(), fastReader.next() );\n\n }\n\n private static void filter(int reach, String s) {\n\n int len = s.length();\n if( len <= reach ){\n System.out.println(s);\n }else{\n System.out.println( s.substring(0, reach ) + \"...\" );\n }\n\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.StringTokenizer;
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 class Main {
public static void main(String[] args) {
FastReader fastReader = new FastReader();
filter( fastReader.nextInt(), fastReader.next() );
}
private static void filter(int reach, String s) {
int len = s.length();
if( len <= reach ){
System.out.println(s);
}else{
System.out.println( s.substring(0, reach ) + "..." );
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
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
],
[
60,
11
],
[
60,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
31,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
50,
56
],
[
12,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] |
[
"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\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint K = Integer.parseInt(br.readLine());\n\tString S = br.readLine();\n\n\tif (S.length() <= K) {\n\t System.out.println(S);\n\t} else {\n\t System.out.println(S.substring(0, K) + \"...\");\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\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint K = Integer.parseInt(br.readLine());\n\tString S = br.readLine();\n\n\tif (S.length() <= K) {\n\t System.out.println(S);\n\t} else {\n\t System.out.println(S.substring(0, K) + \"...\");\n\t}\n }\n}",
"Main",
"public static void main(String args[]) throws IOException {\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint K = Integer.parseInt(br.readLine());\n\tString S = br.readLine();\n\n\tif (S.length() <= K) {\n\t System.out.println(S);\n\t} else {\n\t System.out.println(S.substring(0, K) + \"...\");\n\t}\n }",
"main",
"{\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint K = Integer.parseInt(br.readLine());\n\tString S = br.readLine();\n\n\tif (S.length() <= K) {\n\t System.out.println(S);\n\t} else {\n\t System.out.println(S.substring(0, K) + \"...\");\n\t}\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int K = Integer.parseInt(br.readLine());",
"K",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String S = br.readLine();",
"S",
"br.readLine()",
"br.readLine",
"br",
"if (S.length() <= K) {\n\t System.out.println(S);\n\t} else {\n\t System.out.println(S.substring(0, K) + \"...\");\n\t}",
"S.length() <= K",
"S.length()",
"S.length",
"S",
"K",
"{\n\t System.out.println(S);\n\t}",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n\t System.out.println(S.substring(0, K) + \"...\");\n\t}",
"System.out.println(S.substring(0, K) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"S.substring(0, K) + \"...\"",
"S.substring(0, K)",
"S.substring",
"S",
"0",
"K",
"\"...\"",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) throws IOException {\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint K = Integer.parseInt(br.readLine());\n\tString S = br.readLine();\n\n\tif (S.length() <= K) {\n\t System.out.println(S);\n\t} else {\n\t System.out.println(S.substring(0, K) + \"...\");\n\t}\n }\n}",
"public class Main {\n public static void main(String args[]) throws IOException {\n\n\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\tint K = Integer.parseInt(br.readLine());\n\tString S = br.readLine();\n\n\tif (S.length() <= K) {\n\t System.out.println(S);\n\t} else {\n\t System.out.println(S.substring(0, K) + \"...\");\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));
int K = Integer.parseInt(br.readLine());
String S = br.readLine();
if (S.length() <= K) {
System.out.println(S);
} else {
System.out.println(S.substring(0, K) + "...");
}
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
13,
0,
13,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
78,
8
],
[
78,
9
],
[
9,
10
],
[
78,
11
],
[
11,
12
],
[
11,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
22,
23
],
[
23,
24
],
[
13,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
13,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
30,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
50,
54
],
[
49,
55
],
[
11,
56
],
[
56,
57
],
[
0,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
58,
62
],
[
62,
63
],
[
58,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
70,
72
],
[
64,
73
],
[
73,
74
],
[
64,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
]
] |
[
"import java.util.*;\n import java.math.BigInteger;\npublic class Main\n{\n\tstatic int ans[];\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=Integer.parseInt(sc.nextLine());\n\t\tString n=sc.nextLine();\n\t\tif(n.length()<=k){System.out.println(n);}\n\t\telse{System.out.println(n.substring(0,k)+\"...\");}\n\t\t\n\n\t}\n\t\n\t// static int dfs4(int dp[], ArrayList<Pair>arr, int state, int gg[], int i, int x, int cost)\n\n\t// {\n\t// \tif(i==arr.size()){for(int j=0;j<gg.length;j++){if(gg[j]<x){return Integer.MAX_VALUE;}}return cost;}\n\t// \tif(dp[state]!=0){return dp[state];}\n\t// \tint a=dfs4(dp,arr,state,gg,i+1,x,cost);\n\t// \tint aa[]=new int[gg.length];\n\t// \tSystem.arraycopy(gg,0,aa,0,aa.length);\n\t// \tfor(int j=0;j<arr.get(i).b.size();j++)\n\t// \t{\n\t// \t\taa[j]+=arr.get(i).b.get(j);\n\t// \t}\n\t// \t// System.out.println(Arrays.toString(aa));\n\t// \tstate=state+(int)Math.pow(2,i);\n\t// \tint b=dfs4(dp,arr,state,aa,i+1,x,cost+arr.get(i).a);\n\t// \tdp[state]=Math.min(a,b);\n\t// \treturn Math.min(a,b);\n\t// }\n\t// static long get3(double n, int steps)\n\t// {\n\t// \tif(n<1){return Integer.MAX_VALUE;}\n\t// \tif(n==1){return steps;}\n\n\t// \tSystem.out.println(n);\n\t// \treturn get3(n/2.0-1,steps+1);\n\t// }\n\t// static String get(long a, long b)\n\t// {long y=1;\n\t// \twhile(true)\n\t// \t{\n\n\t// \t\tlong z=y-a;\n\t// \t\tlong q=get2(y,z);\n\t// \t\t// System\n\t// \t\tif(q==b){return y+\" \"+z;}\n\t// \t\telse if(q>b){return \"-1\";}\n\t// \t\ty+=1;\n\t// \t}\n\t// \t// return \"-1\";\n\t// }\n\t// static long get2(long y, long z)\n\t// {\n\t// \treturn (long)(Math.pow(y,4)+Math.pow(y,3)*z+Math.pow(y,2)*Math.pow(z,2)+y*Math.pow(z,3)+Math.pow(z,4));\n\t// }\n\t// static void get(ArrayList<ArrayList<Integer>>arr, int i , int p,int val[], int arr1[], int len)\n\t// {\n\t// \tfor(int j=0;j<arr.get(i).size();j++)\n\t// \t{\n\t// \t\tif(ans[arr.get(i).get(j)]==0 && arr.get(i).get(j)!=p){\n\t// \t\tif(val[arr.get(i).get(j)]>arr1[len-1])\n\t// \t\t{\n\t// \t\t\tarr1[len]=val[arr.get(i).get(j)];\n\t// \t\t\tans[arr.get(i).get(j)]=len+1;\n\t// \t\t\tget(arr,arr.get(i).get(j),i,val,arr1,len+1);\n\t\t\t\t\n\t// \t\t}\n\t// \t\telse\n\t// \t\t{\n\t// \t\t\tint index=bin(arr1, val[arr.get(i).get(j)], len-1);\n\t// \t\t\tans[arr.get(i).get(j)]=len;\n\t// \t\t\t// int g=arr1[index];\n\t// \t\t\tarr1[index]=val[arr.get(i).get(j)];\n\t// \t\t\tget(arr,arr.get(i).get(j),i,val,arr1,len);\n\t// \t\t\t// arr1[index]=g;\n\t// \t\t}}\n\n\t// \t}\n\t// }\n\t// static int bin(int arr[], int val, int len)\n\t// {\n\t// \tif(arr[0]>=val){return 0;}\n\t// \tint l=0;\n\t// \tint r=len;\n\t// \twhile (r - l > 1) { \n // int m = l + (r - l) / 2; \n // if (arr[m] >= val) \n // r = m; \n // else\n // l = m; \n // } \n \n // return r; \n\t// \t// return l;\n\t// }\n\t\n\t\n\n}\nclass Pair\n{\n\tint a;\nint b;\n\tPair(int e,int f){\n\t\ta=e;\n\t\tb=f;\n\t\t\n\t}\n}\n\n\n\n\t",
"import java.util.*;",
"util.*",
"java",
"import java.math.BigInteger;",
"BigInteger",
"java.math",
"public class Main\n{\n\tstatic int ans[];\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=Integer.parseInt(sc.nextLine());\n\t\tString n=sc.nextLine();\n\t\tif(n.length()<=k){System.out.println(n);}\n\t\telse{System.out.println(n.substring(0,k)+\"...\");}\n\t\t\n\n\t}\n\t\n\t// static int dfs4(int dp[], ArrayList<Pair>arr, int state, int gg[], int i, int x, int cost)\n\n\t// {\n\t// \tif(i==arr.size()){for(int j=0;j<gg.length;j++){if(gg[j]<x){return Integer.MAX_VALUE;}}return cost;}\n\t// \tif(dp[state]!=0){return dp[state];}\n\t// \tint a=dfs4(dp,arr,state,gg,i+1,x,cost);\n\t// \tint aa[]=new int[gg.length];\n\t// \tSystem.arraycopy(gg,0,aa,0,aa.length);\n\t// \tfor(int j=0;j<arr.get(i).b.size();j++)\n\t// \t{\n\t// \t\taa[j]+=arr.get(i).b.get(j);\n\t// \t}\n\t// \t// System.out.println(Arrays.toString(aa));\n\t// \tstate=state+(int)Math.pow(2,i);\n\t// \tint b=dfs4(dp,arr,state,aa,i+1,x,cost+arr.get(i).a);\n\t// \tdp[state]=Math.min(a,b);\n\t// \treturn Math.min(a,b);\n\t// }\n\t// static long get3(double n, int steps)\n\t// {\n\t// \tif(n<1){return Integer.MAX_VALUE;}\n\t// \tif(n==1){return steps;}\n\n\t// \tSystem.out.println(n);\n\t// \treturn get3(n/2.0-1,steps+1);\n\t// }\n\t// static String get(long a, long b)\n\t// {long y=1;\n\t// \twhile(true)\n\t// \t{\n\n\t// \t\tlong z=y-a;\n\t// \t\tlong q=get2(y,z);\n\t// \t\t// System\n\t// \t\tif(q==b){return y+\" \"+z;}\n\t// \t\telse if(q>b){return \"-1\";}\n\t// \t\ty+=1;\n\t// \t}\n\t// \t// return \"-1\";\n\t// }\n\t// static long get2(long y, long z)\n\t// {\n\t// \treturn (long)(Math.pow(y,4)+Math.pow(y,3)*z+Math.pow(y,2)*Math.pow(z,2)+y*Math.pow(z,3)+Math.pow(z,4));\n\t// }\n\t// static void get(ArrayList<ArrayList<Integer>>arr, int i , int p,int val[], int arr1[], int len)\n\t// {\n\t// \tfor(int j=0;j<arr.get(i).size();j++)\n\t// \t{\n\t// \t\tif(ans[arr.get(i).get(j)]==0 && arr.get(i).get(j)!=p){\n\t// \t\tif(val[arr.get(i).get(j)]>arr1[len-1])\n\t// \t\t{\n\t// \t\t\tarr1[len]=val[arr.get(i).get(j)];\n\t// \t\t\tans[arr.get(i).get(j)]=len+1;\n\t// \t\t\tget(arr,arr.get(i).get(j),i,val,arr1,len+1);\n\t\t\t\t\n\t// \t\t}\n\t// \t\telse\n\t// \t\t{\n\t// \t\t\tint index=bin(arr1, val[arr.get(i).get(j)], len-1);\n\t// \t\t\tans[arr.get(i).get(j)]=len;\n\t// \t\t\t// int g=arr1[index];\n\t// \t\t\tarr1[index]=val[arr.get(i).get(j)];\n\t// \t\t\tget(arr,arr.get(i).get(j),i,val,arr1,len);\n\t// \t\t\t// arr1[index]=g;\n\t// \t\t}}\n\n\t// \t}\n\t// }\n\t// static int bin(int arr[], int val, int len)\n\t// {\n\t// \tif(arr[0]>=val){return 0;}\n\t// \tint l=0;\n\t// \tint r=len;\n\t// \twhile (r - l > 1) { \n // int m = l + (r - l) / 2; \n // if (arr[m] >= val) \n // r = m; \n // else\n // l = m; \n // } \n \n // return r; \n\t// \t// return l;\n\t// }\n\t\n\t\n\n}",
"Main",
"static int ans[];",
"ans",
"public static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=Integer.parseInt(sc.nextLine());\n\t\tString n=sc.nextLine();\n\t\tif(n.length()<=k){System.out.println(n);}\n\t\telse{System.out.println(n.substring(0,k)+\"...\");}\n\t\t\n\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=Integer.parseInt(sc.nextLine());\n\t\tString n=sc.nextLine();\n\t\tif(n.length()<=k){System.out.println(n);}\n\t\telse{System.out.println(n.substring(0,k)+\"...\");}\n\t\t\n\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k=Integer.parseInt(sc.nextLine());",
"k",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String n=sc.nextLine();",
"n",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(n.length()<=k){System.out.println(n);}\n\t\telse{System.out.println(n.substring(0,k)+\"...\");}",
"n.length()<=k",
"n.length()",
"n.length",
"n",
"k",
"{System.out.println(n);}",
"System.out.println(n)",
"System.out.println",
"System.out",
"System",
"System.out",
"n",
"{System.out.println(n.substring(0,k)+\"...\");}",
"System.out.println(n.substring(0,k)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"n.substring(0,k)+\"...\"",
"n.substring(0,k)",
"n.substring",
"n",
"0",
"k",
"\"...\"",
"String args[]",
"args",
"class Pair\n{\n\tint a;\nint b;\n\tPair(int e,int f){\n\t\ta=e;\n\t\tb=f;\n\t\t\n\t}\n}",
"Pair",
"int a;",
"a",
"int b;",
"b",
"Pair(int e,int f){\n\t\ta=e;\n\t\tb=f;\n\t\t\n\t}",
"Pair",
"{\n\t\ta=e;\n\t\tb=f;\n\t\t\n\t}",
"a=e",
"a",
"e",
"b=f",
"b",
"f",
"int e",
"e",
"int f",
"f",
"public class Main\n{\n\tstatic int ans[];\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=Integer.parseInt(sc.nextLine());\n\t\tString n=sc.nextLine();\n\t\tif(n.length()<=k){System.out.println(n);}\n\t\telse{System.out.println(n.substring(0,k)+\"...\");}\n\t\t\n\n\t}\n\t\n\t// static int dfs4(int dp[], ArrayList<Pair>arr, int state, int gg[], int i, int x, int cost)\n\n\t// {\n\t// \tif(i==arr.size()){for(int j=0;j<gg.length;j++){if(gg[j]<x){return Integer.MAX_VALUE;}}return cost;}\n\t// \tif(dp[state]!=0){return dp[state];}\n\t// \tint a=dfs4(dp,arr,state,gg,i+1,x,cost);\n\t// \tint aa[]=new int[gg.length];\n\t// \tSystem.arraycopy(gg,0,aa,0,aa.length);\n\t// \tfor(int j=0;j<arr.get(i).b.size();j++)\n\t// \t{\n\t// \t\taa[j]+=arr.get(i).b.get(j);\n\t// \t}\n\t// \t// System.out.println(Arrays.toString(aa));\n\t// \tstate=state+(int)Math.pow(2,i);\n\t// \tint b=dfs4(dp,arr,state,aa,i+1,x,cost+arr.get(i).a);\n\t// \tdp[state]=Math.min(a,b);\n\t// \treturn Math.min(a,b);\n\t// }\n\t// static long get3(double n, int steps)\n\t// {\n\t// \tif(n<1){return Integer.MAX_VALUE;}\n\t// \tif(n==1){return steps;}\n\n\t// \tSystem.out.println(n);\n\t// \treturn get3(n/2.0-1,steps+1);\n\t// }\n\t// static String get(long a, long b)\n\t// {long y=1;\n\t// \twhile(true)\n\t// \t{\n\n\t// \t\tlong z=y-a;\n\t// \t\tlong q=get2(y,z);\n\t// \t\t// System\n\t// \t\tif(q==b){return y+\" \"+z;}\n\t// \t\telse if(q>b){return \"-1\";}\n\t// \t\ty+=1;\n\t// \t}\n\t// \t// return \"-1\";\n\t// }\n\t// static long get2(long y, long z)\n\t// {\n\t// \treturn (long)(Math.pow(y,4)+Math.pow(y,3)*z+Math.pow(y,2)*Math.pow(z,2)+y*Math.pow(z,3)+Math.pow(z,4));\n\t// }\n\t// static void get(ArrayList<ArrayList<Integer>>arr, int i , int p,int val[], int arr1[], int len)\n\t// {\n\t// \tfor(int j=0;j<arr.get(i).size();j++)\n\t// \t{\n\t// \t\tif(ans[arr.get(i).get(j)]==0 && arr.get(i).get(j)!=p){\n\t// \t\tif(val[arr.get(i).get(j)]>arr1[len-1])\n\t// \t\t{\n\t// \t\t\tarr1[len]=val[arr.get(i).get(j)];\n\t// \t\t\tans[arr.get(i).get(j)]=len+1;\n\t// \t\t\tget(arr,arr.get(i).get(j),i,val,arr1,len+1);\n\t\t\t\t\n\t// \t\t}\n\t// \t\telse\n\t// \t\t{\n\t// \t\t\tint index=bin(arr1, val[arr.get(i).get(j)], len-1);\n\t// \t\t\tans[arr.get(i).get(j)]=len;\n\t// \t\t\t// int g=arr1[index];\n\t// \t\t\tarr1[index]=val[arr.get(i).get(j)];\n\t// \t\t\tget(arr,arr.get(i).get(j),i,val,arr1,len);\n\t// \t\t\t// arr1[index]=g;\n\t// \t\t}}\n\n\t// \t}\n\t// }\n\t// static int bin(int arr[], int val, int len)\n\t// {\n\t// \tif(arr[0]>=val){return 0;}\n\t// \tint l=0;\n\t// \tint r=len;\n\t// \twhile (r - l > 1) { \n // int m = l + (r - l) / 2; \n // if (arr[m] >= val) \n // r = m; \n // else\n // l = m; \n // } \n \n // return r; \n\t// \t// return l;\n\t// }\n\t\n\t\n\n}",
"public class Main\n{\n\tstatic int ans[];\n\tpublic static void main(String args[])\n\t{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint k=Integer.parseInt(sc.nextLine());\n\t\tString n=sc.nextLine();\n\t\tif(n.length()<=k){System.out.println(n);}\n\t\telse{System.out.println(n.substring(0,k)+\"...\");}\n\t\t\n\n\t}\n\t\n\t// static int dfs4(int dp[], ArrayList<Pair>arr, int state, int gg[], int i, int x, int cost)\n\n\t// {\n\t// \tif(i==arr.size()){for(int j=0;j<gg.length;j++){if(gg[j]<x){return Integer.MAX_VALUE;}}return cost;}\n\t// \tif(dp[state]!=0){return dp[state];}\n\t// \tint a=dfs4(dp,arr,state,gg,i+1,x,cost);\n\t// \tint aa[]=new int[gg.length];\n\t// \tSystem.arraycopy(gg,0,aa,0,aa.length);\n\t// \tfor(int j=0;j<arr.get(i).b.size();j++)\n\t// \t{\n\t// \t\taa[j]+=arr.get(i).b.get(j);\n\t// \t}\n\t// \t// System.out.println(Arrays.toString(aa));\n\t// \tstate=state+(int)Math.pow(2,i);\n\t// \tint b=dfs4(dp,arr,state,aa,i+1,x,cost+arr.get(i).a);\n\t// \tdp[state]=Math.min(a,b);\n\t// \treturn Math.min(a,b);\n\t// }\n\t// static long get3(double n, int steps)\n\t// {\n\t// \tif(n<1){return Integer.MAX_VALUE;}\n\t// \tif(n==1){return steps;}\n\n\t// \tSystem.out.println(n);\n\t// \treturn get3(n/2.0-1,steps+1);\n\t// }\n\t// static String get(long a, long b)\n\t// {long y=1;\n\t// \twhile(true)\n\t// \t{\n\n\t// \t\tlong z=y-a;\n\t// \t\tlong q=get2(y,z);\n\t// \t\t// System\n\t// \t\tif(q==b){return y+\" \"+z;}\n\t// \t\telse if(q>b){return \"-1\";}\n\t// \t\ty+=1;\n\t// \t}\n\t// \t// return \"-1\";\n\t// }\n\t// static long get2(long y, long z)\n\t// {\n\t// \treturn (long)(Math.pow(y,4)+Math.pow(y,3)*z+Math.pow(y,2)*Math.pow(z,2)+y*Math.pow(z,3)+Math.pow(z,4));\n\t// }\n\t// static void get(ArrayList<ArrayList<Integer>>arr, int i , int p,int val[], int arr1[], int len)\n\t// {\n\t// \tfor(int j=0;j<arr.get(i).size();j++)\n\t// \t{\n\t// \t\tif(ans[arr.get(i).get(j)]==0 && arr.get(i).get(j)!=p){\n\t// \t\tif(val[arr.get(i).get(j)]>arr1[len-1])\n\t// \t\t{\n\t// \t\t\tarr1[len]=val[arr.get(i).get(j)];\n\t// \t\t\tans[arr.get(i).get(j)]=len+1;\n\t// \t\t\tget(arr,arr.get(i).get(j),i,val,arr1,len+1);\n\t\t\t\t\n\t// \t\t}\n\t// \t\telse\n\t// \t\t{\n\t// \t\t\tint index=bin(arr1, val[arr.get(i).get(j)], len-1);\n\t// \t\t\tans[arr.get(i).get(j)]=len;\n\t// \t\t\t// int g=arr1[index];\n\t// \t\t\tarr1[index]=val[arr.get(i).get(j)];\n\t// \t\t\tget(arr,arr.get(i).get(j),i,val,arr1,len);\n\t// \t\t\t// arr1[index]=g;\n\t// \t\t}}\n\n\t// \t}\n\t// }\n\t// static int bin(int arr[], int val, int len)\n\t// {\n\t// \tif(arr[0]>=val){return 0;}\n\t// \tint l=0;\n\t// \tint r=len;\n\t// \twhile (r - l > 1) { \n // int m = l + (r - l) / 2; \n // if (arr[m] >= val) \n // r = m; \n // else\n // l = m; \n // } \n \n // return r; \n\t// \t// return l;\n\t// }\n\t\n\t\n\n}",
"Main"
] |
import java.util.*;
import java.math.BigInteger;
public class Main
{
static int ans[];
public static void main(String args[])
{
Scanner sc=new Scanner(System.in);
int k=Integer.parseInt(sc.nextLine());
String n=sc.nextLine();
if(n.length()<=k){System.out.println(n);}
else{System.out.println(n.substring(0,k)+"...");}
}
// static int dfs4(int dp[], ArrayList<Pair>arr, int state, int gg[], int i, int x, int cost)
// {
// if(i==arr.size()){for(int j=0;j<gg.length;j++){if(gg[j]<x){return Integer.MAX_VALUE;}}return cost;}
// if(dp[state]!=0){return dp[state];}
// int a=dfs4(dp,arr,state,gg,i+1,x,cost);
// int aa[]=new int[gg.length];
// System.arraycopy(gg,0,aa,0,aa.length);
// for(int j=0;j<arr.get(i).b.size();j++)
// {
// aa[j]+=arr.get(i).b.get(j);
// }
// // System.out.println(Arrays.toString(aa));
// state=state+(int)Math.pow(2,i);
// int b=dfs4(dp,arr,state,aa,i+1,x,cost+arr.get(i).a);
// dp[state]=Math.min(a,b);
// return Math.min(a,b);
// }
// static long get3(double n, int steps)
// {
// if(n<1){return Integer.MAX_VALUE;}
// if(n==1){return steps;}
// System.out.println(n);
// return get3(n/2.0-1,steps+1);
// }
// static String get(long a, long b)
// {long y=1;
// while(true)
// {
// long z=y-a;
// long q=get2(y,z);
// // System
// if(q==b){return y+" "+z;}
// else if(q>b){return "-1";}
// y+=1;
// }
// // return "-1";
// }
// static long get2(long y, long z)
// {
// return (long)(Math.pow(y,4)+Math.pow(y,3)*z+Math.pow(y,2)*Math.pow(z,2)+y*Math.pow(z,3)+Math.pow(z,4));
// }
// static void get(ArrayList<ArrayList<Integer>>arr, int i , int p,int val[], int arr1[], int len)
// {
// for(int j=0;j<arr.get(i).size();j++)
// {
// if(ans[arr.get(i).get(j)]==0 && arr.get(i).get(j)!=p){
// if(val[arr.get(i).get(j)]>arr1[len-1])
// {
// arr1[len]=val[arr.get(i).get(j)];
// ans[arr.get(i).get(j)]=len+1;
// get(arr,arr.get(i).get(j),i,val,arr1,len+1);
// }
// else
// {
// int index=bin(arr1, val[arr.get(i).get(j)], len-1);
// ans[arr.get(i).get(j)]=len;
// // int g=arr1[index];
// arr1[index]=val[arr.get(i).get(j)];
// get(arr,arr.get(i).get(j),i,val,arr1,len);
// // arr1[index]=g;
// }}
// }
// }
// static int bin(int arr[], int val, int len)
// {
// if(arr[0]>=val){return 0;}
// int l=0;
// int r=len;
// while (r - l > 1) {
// int m = l + (r - l) / 2;
// if (arr[m] >= val)
// r = m;
// else
// l = m;
// }
// return r;
// // return l;
// }
}
class Pair
{
int a;
int b;
Pair(int e,int f){
a=e;
b=f;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
18,
13,
13,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
13,
13,
30,
4,
18,
13,
2,
4,
18,
13,
17,
13,
17,
12,
13,
30,
0,
13,
20,
0,
13,
20,
4,
13,
4,
18,
13,
23,
13,
12,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
23,
13,
6,
13,
41,
13,
41,
13,
20,
17,
41,
13,
41,
13,
12,
13,
30,
0,
18,
36,
13,
13,
0,
18,
36,
13,
0,
18,
36,
13,
17,
23,
13,
12,
13,
30,
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,
29,
17,
29,
17,
12,
13,
30,
14,
4,
13,
29,
18,
13,
40,
13,
29,
40,
17,
12,
13,
30,
29,
40,
2,
2,
13,
17,
2,
13,
17,
23,
13,
12,
13,
30,
42,
2,
4,
13,
4,
13,
18,
13,
13,
40,
13,
12,
13,
30,
4,
13,
29,
4,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
20,
41,
13,
4,
13,
42,
40,
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,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
2,
2,
2,
13,
17,
13,
17,
0,
13,
4,
13,
29,
8,
13,
40,
13,
13,
12,
13,
30,
14,
40,
4,
13,
37,
20,
41,
13,
4,
13,
42,
4,
13,
13,
0,
13,
4,
13,
41,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
0,
13,
4,
13,
41,
13,
17,
42,
40,
4,
13,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
37,
20,
0,
13,
2,
2,
2,
13,
17,
13,
17,
0,
13,
4,
13,
29,
8,
13,
40,
13,
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,
12,
13,
30,
41,
13,
20,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
0,
18,
13,
13,
4,
18,
4,
13,
29,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
492,
20
],
[
492,
21
],
[
21,
22
],
[
492,
23
],
[
23,
24
],
[
492,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
27,
29
],
[
492,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
43,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
59,
63
],
[
58,
64
],
[
492,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
67,
74
],
[
74,
75
],
[
67,
76
],
[
76,
77
],
[
77,
78
],
[
65,
79
],
[
79,
80
],
[
492,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
81,
93
],
[
93,
94
],
[
492,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
95,
99
],
[
99,
100
],
[
99,
101
],
[
95,
103
],
[
103,
104
],
[
95,
105
],
[
105,
106
],
[
95,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
110,
114
],
[
109,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
115,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
107,
124
],
[
124,
125
],
[
95,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
129,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
133,
137
],
[
137,
138
],
[
138,
139
],
[
138,
140
],
[
140,
141
],
[
141,
142
],
[
137,
143
],
[
143,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
133,
150
],
[
150,
151
],
[
151,
152
],
[
151,
153
],
[
150,
154
],
[
154,
155
],
[
128,
156
],
[
156,
157
],
[
95,
158
],
[
158,
159
],
[
158,
160
],
[
160,
161
],
[
161,
162
],
[
162,
163
],
[
161,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
167,
168
],
[
161,
169
],
[
169,
170
],
[
170,
171
],
[
95,
172
],
[
172,
173
],
[
172,
174
],
[
174,
175
],
[
175,
176
],
[
176,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
177,
181
],
[
181,
182
],
[
181,
183
],
[
172,
184
],
[
184,
185
],
[
95,
186
],
[
186,
187
],
[
186,
188
],
[
188,
189
],
[
189,
190
],
[
190,
191
],
[
191,
192
],
[
190,
193
],
[
193,
194
],
[
193,
195
],
[
195,
196
],
[
195,
197
],
[
189,
198
],
[
198,
199
],
[
95,
200
],
[
200,
201
],
[
200,
202
],
[
202,
203
],
[
203,
204
],
[
202,
205
],
[
205,
206
],
[
206,
207
],
[
95,
208
],
[
208,
209
],
[
208,
210
],
[
210,
211
],
[
211,
212
],
[
212,
213
],
[
213,
214
],
[
211,
215
],
[
215,
216
],
[
210,
217
],
[
217,
218
],
[
217,
219
],
[
210,
220
],
[
220,
221
],
[
220,
222
],
[
222,
223
],
[
210,
224
],
[
224,
225
],
[
225,
226
],
[
226,
227
],
[
226,
228
],
[
224,
229
],
[
229,
230
],
[
230,
231
],
[
231,
232
],
[
230,
233
],
[
229,
234
],
[
234,
235
],
[
234,
236
],
[
236,
237
],
[
210,
238
],
[
238,
239
],
[
239,
240
],
[
240,
241
],
[
95,
242
],
[
242,
243
],
[
242,
244
],
[
244,
245
],
[
245,
246
],
[
246,
247
],
[
247,
248
],
[
245,
249
],
[
249,
250
],
[
244,
251
],
[
251,
252
],
[
251,
253
],
[
253,
254
],
[
244,
255
],
[
255,
256
],
[
256,
257
],
[
256,
258
],
[
255,
259
],
[
259,
260
],
[
259,
261
],
[
261,
262
],
[
244,
263
],
[
263,
264
],
[
263,
265
],
[
244,
266
],
[
266,
267
],
[
267,
268
],
[
267,
269
],
[
266,
270
],
[
270,
271
],
[
271,
272
],
[
271,
273
],
[
270,
274
],
[
274,
275
],
[
274,
276
],
[
276,
277
],
[
244,
278
],
[
278,
279
],
[
278,
280
],
[
244,
281
],
[
281,
282
],
[
282,
283
],
[
283,
284
],
[
283,
285
],
[
281,
286
],
[
286,
287
],
[
287,
288
],
[
288,
289
],
[
289,
290
],
[
289,
291
],
[
288,
292
],
[
292,
293
],
[
292,
294
],
[
287,
295
],
[
295,
296
],
[
286,
297
],
[
297,
298
],
[
297,
299
],
[
299,
300
],
[
300,
301
],
[
301,
302
],
[
301,
303
],
[
300,
304
],
[
299,
305
],
[
286,
306
],
[
306,
307
],
[
306,
308
],
[
308,
309
],
[
244,
310
],
[
310,
311
],
[
311,
312
],
[
311,
313
],
[
313,
314
],
[
311,
315
],
[
95,
316
],
[
316,
317
],
[
316,
318
],
[
318,
319
],
[
319,
320
],
[
320,
321
],
[
321,
322
],
[
319,
323
],
[
323,
324
],
[
318,
325
],
[
325,
326
],
[
325,
327
],
[
327,
328
],
[
318,
329
],
[
329,
330
],
[
330,
331
],
[
330,
332
],
[
329,
333
],
[
333,
334
],
[
333,
335
],
[
335,
336
],
[
318,
337
],
[
337,
338
],
[
337,
339
],
[
318,
340
],
[
340,
341
],
[
341,
342
],
[
341,
343
],
[
340,
344
],
[
344,
345
],
[
345,
346
],
[
345,
347
],
[
344,
348
],
[
348,
349
],
[
348,
350
],
[
350,
351
],
[
318,
352
],
[
352,
353
],
[
352,
354
],
[
318,
355
],
[
355,
356
],
[
356,
357
],
[
357,
358
],
[
357,
359
],
[
355,
360
],
[
360,
361
],
[
361,
362
],
[
362,
363
],
[
363,
364
],
[
363,
365
],
[
362,
366
],
[
366,
367
],
[
366,
368
],
[
361,
369
],
[
369,
370
],
[
360,
371
],
[
371,
372
],
[
371,
373
],
[
373,
374
],
[
374,
375
],
[
375,
376
],
[
375,
377
],
[
374,
378
],
[
373,
379
],
[
360,
380
],
[
380,
381
],
[
380,
382
],
[
382,
383
],
[
318,
384
],
[
384,
385
],
[
385,
386
],
[
385,
387
],
[
387,
388
],
[
385,
389
],
[
95,
390
],
[
390,
391
],
[
390,
392
],
[
392,
393
],
[
393,
394
],
[
394,
395
],
[
395,
396
],
[
394,
397
],
[
397,
398
],
[
95,
399
],
[
399,
400
],
[
399,
401
],
[
401,
402
],
[
402,
403
],
[
402,
404
],
[
401,
406
],
[
406,
407
],
[
407,
408
],
[
408,
409
],
[
408,
410
],
[
406,
411
],
[
411,
412
],
[
411,
413
],
[
406,
414
],
[
414,
415
],
[
415,
416
],
[
406,
417
],
[
417,
418
],
[
418,
419
],
[
419,
420
],
[
419,
421
],
[
418,
422
],
[
422,
423
],
[
401,
424
],
[
424,
425
],
[
399,
426
],
[
426,
427
],
[
95,
428
],
[
428,
429
],
[
428,
430
],
[
430,
431
],
[
431,
432
],
[
431,
433
],
[
430,
435
],
[
435,
436
],
[
436,
437
],
[
437,
438
],
[
437,
439
],
[
435,
440
],
[
440,
441
],
[
440,
442
],
[
435,
443
],
[
443,
444
],
[
444,
445
],
[
435,
446
],
[
446,
447
],
[
447,
448
],
[
448,
449
],
[
448,
450
],
[
447,
451
],
[
451,
452
],
[
430,
453
],
[
453,
454
],
[
428,
455
],
[
455,
456
],
[
95,
457
],
[
457,
458
],
[
457,
459
],
[
459,
460
],
[
460,
461
],
[
460,
462
],
[
459,
465
],
[
465,
466
],
[
466,
467
],
[
467,
468
],
[
467,
469
],
[
465,
470
],
[
470,
471
],
[
470,
472
],
[
465,
473
],
[
473,
474
],
[
474,
475
],
[
465,
476
],
[
476,
477
],
[
477,
478
],
[
478,
479
],
[
478,
480
],
[
477,
481
],
[
481,
482
],
[
482,
483
],
[
483,
484
],
[
459,
485
],
[
485,
486
],
[
457,
487
],
[
487,
488
],
[
457,
489
],
[
489,
490
],
[
0,
491
],
[
491,
492
],
[
491,
493
]
] |
[
"import java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Arrays;\nimport java.util.InputMismatchException;\nimport java.util.NoSuchElementException;\n\npublic class Main {\n\tstatic PrintWriter out;\n\tstatic InputReader ir;\n\tstatic final long INF = Long.MAX_VALUE;\n\n\tstatic void solve() {\n\t\tint k = ir.nextInt();\n\t\tString s = ir.next();\n\t\tif (s.length() <= k) {\n\t\t\tout.println(s);\n\t\t} else {\n\t\t\tout.println(s.substring(0, k) + \"...\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tir = new InputReader(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}\n\n\tstatic class InputReader {\n\n\t\tprivate InputStream in;\n\t\tprivate byte[] buffer = new byte[1024];\n\t\tprivate int curbuf;\n\t\tprivate int lenbuf;\n\n\t\tpublic InputReader(InputStream in) {\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}\n\n\t\tpublic boolean hasNextByte() {\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tprivate int readByte() {\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\n\t\tprivate boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tprivate void skip() {\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic char[][] nextCharMap(int n, int m) {\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}\n\t}\n\n\tstatic void tr(Object... o) {\n\t\tSystem.err.println(Arrays.deepToString(o));\n\t}\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.Arrays;",
"Arrays",
"java.util",
"import java.util.InputMismatchException;",
"InputMismatchException",
"java.util",
"import java.util.NoSuchElementException;",
"NoSuchElementException",
"java.util",
"public class Main {\n\tstatic PrintWriter out;\n\tstatic InputReader ir;\n\tstatic final long INF = Long.MAX_VALUE;\n\n\tstatic void solve() {\n\t\tint k = ir.nextInt();\n\t\tString s = ir.next();\n\t\tif (s.length() <= k) {\n\t\t\tout.println(s);\n\t\t} else {\n\t\t\tout.println(s.substring(0, k) + \"...\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tir = new InputReader(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}\n\n\tstatic class InputReader {\n\n\t\tprivate InputStream in;\n\t\tprivate byte[] buffer = new byte[1024];\n\t\tprivate int curbuf;\n\t\tprivate int lenbuf;\n\n\t\tpublic InputReader(InputStream in) {\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}\n\n\t\tpublic boolean hasNextByte() {\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tprivate int readByte() {\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\n\t\tprivate boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tprivate void skip() {\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic char[][] nextCharMap(int n, int m) {\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}\n\t}\n\n\tstatic void tr(Object... o) {\n\t\tSystem.err.println(Arrays.deepToString(o));\n\t}\n}",
"Main",
"static PrintWriter out;",
"out",
"static InputReader ir;",
"ir",
"static final long INF = Long.MAX_VALUE;",
"INF",
"Long.MAX_VALUE",
"Long",
"Long.MAX_VALUE",
"static void solve() {\n\t\tint k = ir.nextInt();\n\t\tString s = ir.next();\n\t\tif (s.length() <= k) {\n\t\t\tout.println(s);\n\t\t} else {\n\t\t\tout.println(s.substring(0, k) + \"...\");\n\t\t}\n\t}",
"solve",
"{\n\t\tint k = ir.nextInt();\n\t\tString s = ir.next();\n\t\tif (s.length() <= k) {\n\t\t\tout.println(s);\n\t\t} else {\n\t\t\tout.println(s.substring(0, k) + \"...\");\n\t\t}\n\t}",
"int k = ir.nextInt();",
"k",
"ir.nextInt()",
"ir.nextInt",
"ir",
"String s = ir.next();",
"s",
"ir.next()",
"ir.next",
"ir",
"if (s.length() <= k) {\n\t\t\tout.println(s);\n\t\t} else {\n\t\t\tout.println(s.substring(0, k) + \"...\");\n\t\t}",
"s.length() <= k",
"s.length()",
"s.length",
"s",
"k",
"{\n\t\t\tout.println(s);\n\t\t}",
"out.println(s)",
"out.println",
"out",
"s",
"{\n\t\t\tout.println(s.substring(0, k) + \"...\");\n\t\t}",
"out.println(s.substring(0, k) + \"...\")",
"out.println",
"out",
"s.substring(0, k) + \"...\"",
"s.substring(0, k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"public static void main(String[] args) {\n\t\tir = new InputReader(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}",
"main",
"{\n\t\tir = new InputReader(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}",
"ir = new InputReader(System.in)",
"ir",
"new InputReader(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"solve()",
"solve",
"out.flush()",
"out.flush",
"out",
"String[] args",
"args",
"static void tr(Object... o) {\n\t\tSystem.err.println(Arrays.deepToString(o));\n\t}",
"tr",
"{\n\t\tSystem.err.println(Arrays.deepToString(o));\n\t}",
"System.err.println(Arrays.deepToString(o))",
"System.err.println",
"System.err",
"System",
"System.err",
"Arrays.deepToString(o)",
"Arrays.deepToString",
"Arrays",
"o",
"Object... o",
"o",
"static class InputReader {\n\n\t\tprivate InputStream in;\n\t\tprivate byte[] buffer = new byte[1024];\n\t\tprivate int curbuf;\n\t\tprivate int lenbuf;\n\n\t\tpublic InputReader(InputStream in) {\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}\n\n\t\tpublic boolean hasNextByte() {\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tprivate int readByte() {\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\n\t\tprivate boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tprivate void skip() {\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic char[][] nextCharMap(int n, int m) {\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}\n\t}",
"InputReader",
"private InputStream in;",
"in",
"private byte[] buffer = new byte[1024];",
"buffer",
"new byte[1024]",
"1024",
"private int curbuf;",
"curbuf",
"private int lenbuf;",
"lenbuf",
"public InputReader(InputStream in) {\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}",
"InputReader",
"{\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}",
"this.in = in",
"this.in",
"this",
"this.in",
"in",
"this.curbuf = this.lenbuf = 0",
"this.curbuf",
"this",
"this.curbuf",
"this.lenbuf = 0",
"this.lenbuf",
"this",
"this.lenbuf",
"0",
"InputStream in",
"in",
"public boolean hasNextByte() {\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"hasNextByte",
"{\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}",
"if (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}",
"curbuf >= lenbuf",
"curbuf",
"lenbuf",
"{\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}",
"curbuf = 0",
"curbuf",
"0",
"try {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"IOException e",
"{\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}",
"throw new InputMismatchException();",
"new InputMismatchException()",
"{\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t}",
"lenbuf = in.read(buffer)",
"lenbuf",
"in.read(buffer)",
"in.read",
"in",
"buffer",
"if (lenbuf <= 0)\n\t\t\t\t\treturn false;",
"lenbuf <= 0",
"lenbuf",
"0",
"return false;",
"false",
"return true;",
"true",
"private int readByte() {\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}",
"readByte",
"{\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}",
"if (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;",
"hasNextByte()",
"hasNextByte",
"return buffer[curbuf++];",
"buffer[curbuf++]",
"buffer",
"curbuf++",
"curbuf",
"return -1;",
"-1",
"1",
"private boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}",
"isSpaceChar",
"{\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}",
"return !(c >= 33 && c <= 126);",
"!(c >= 33 && c <= 126)",
"(c >= 33 && c <= 126)",
"c >= 33",
"c",
"33",
"c <= 126",
"c",
"126",
"int c",
"c",
"private void skip() {\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}",
"skip",
"{\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}",
"while (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;",
"hasNextByte() && isSpaceChar(buffer[curbuf])",
"hasNextByte()",
"hasNextByte",
"isSpaceChar(buffer[curbuf])",
"isSpaceChar",
"buffer[curbuf]",
"buffer",
"curbuf",
"curbuf++",
"curbuf",
"public boolean hasNext() {\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}",
"hasNext",
"{\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}",
"skip()",
"skip",
"return hasNextByte();",
"hasNextByte()",
"hasNextByte",
"public String next() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}",
"next",
"{\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}",
"if (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int b = readByte();",
"b",
"readByte()",
"readByte",
"while (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}",
"!isSpaceChar(b)",
"isSpaceChar(b)",
"isSpaceChar",
"b",
"{\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}",
"sb.appendCodePoint(b)",
"sb.appendCodePoint",
"sb",
"b",
"b = readByte()",
"b",
"readByte()",
"readByte",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"public int nextInt() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}",
"nextInt",
"{\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}",
"if (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"int c = readByte();",
"c",
"readByte()",
"readByte",
"while (isSpaceChar(c))\n\t\t\t\tc = readByte();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = readByte()",
"c",
"readByte()",
"readByte",
"boolean minus = false;",
"minus",
"false",
"if (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}",
"minus = true",
"minus",
"true",
"c = readByte()",
"c",
"readByte()",
"readByte",
"int res = 0;",
"res",
"0",
"do {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t}",
"if (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res = res * 10 + c - '0'",
"res",
"res * 10 + c - '0'",
"res * 10 + c",
"res * 10",
"res",
"10",
"c",
"'0'",
"c = readByte()",
"c",
"readByte()",
"readByte",
"return (minus) ? -res : res;",
"(minus) ? -res : res",
"(minus)",
"-res",
"res",
"res",
"public long nextLong() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}",
"nextLong",
"{\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}",
"if (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();",
"!hasNext()",
"hasNext()",
"hasNext",
"throw new NoSuchElementException();",
"new NoSuchElementException()",
"int c = readByte();",
"c",
"readByte()",
"readByte",
"while (isSpaceChar(c))\n\t\t\t\tc = readByte();",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"c = readByte()",
"c",
"readByte()",
"readByte",
"boolean minus = false;",
"minus",
"false",
"if (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}",
"c == '-'",
"c",
"'-'",
"{\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}",
"minus = true",
"minus",
"true",
"c = readByte()",
"c",
"readByte()",
"readByte",
"long res = 0;",
"res",
"0",
"do {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));",
"!isSpaceChar(c)",
"isSpaceChar(c)",
"isSpaceChar",
"c",
"{\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t}",
"if (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();",
"c < '0' || c > '9'",
"c < '0'",
"c",
"'0'",
"c > '9'",
"c",
"'9'",
"throw new InputMismatchException();",
"new InputMismatchException()",
"res = res * 10 + c - '0'",
"res",
"res * 10 + c - '0'",
"res * 10 + c",
"res * 10",
"res",
"10",
"c",
"'0'",
"c = readByte()",
"c",
"readByte()",
"readByte",
"return (minus) ? -res : res;",
"(minus) ? -res : res",
"(minus)",
"-res",
"res",
"res",
"public double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"nextDouble",
"{\n\t\t\treturn Double.parseDouble(next());\n\t\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"public int[] nextIntArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"nextIntArray",
"{\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\ta[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[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}",
"nextLongArray",
"{\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}",
"long[] a = new long[n];",
"a",
"new long[n]",
"n",
"for (int i = 0; i < n; i++)\n\t\t\t\ta[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 char[][] nextCharMap(int n, int m) {\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}",
"nextCharMap",
"{\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}",
"char[][] map = new char[n][m];",
"map",
"new char[n][m]",
"n",
"m",
"for (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"map[i] = next().toCharArray();",
"map[i] = next().toCharArray()",
"map[i]",
"map",
"i",
"next().toCharArray()",
"next().toCharArray",
"next()",
"next",
"return map;",
"map",
"int n",
"n",
"int m",
"m",
"public class Main {\n\tstatic PrintWriter out;\n\tstatic InputReader ir;\n\tstatic final long INF = Long.MAX_VALUE;\n\n\tstatic void solve() {\n\t\tint k = ir.nextInt();\n\t\tString s = ir.next();\n\t\tif (s.length() <= k) {\n\t\t\tout.println(s);\n\t\t} else {\n\t\t\tout.println(s.substring(0, k) + \"...\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tir = new InputReader(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}\n\n\tstatic class InputReader {\n\n\t\tprivate InputStream in;\n\t\tprivate byte[] buffer = new byte[1024];\n\t\tprivate int curbuf;\n\t\tprivate int lenbuf;\n\n\t\tpublic InputReader(InputStream in) {\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}\n\n\t\tpublic boolean hasNextByte() {\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tprivate int readByte() {\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\n\t\tprivate boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tprivate void skip() {\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic char[][] nextCharMap(int n, int m) {\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}\n\t}\n\n\tstatic void tr(Object... o) {\n\t\tSystem.err.println(Arrays.deepToString(o));\n\t}\n}",
"public class Main {\n\tstatic PrintWriter out;\n\tstatic InputReader ir;\n\tstatic final long INF = Long.MAX_VALUE;\n\n\tstatic void solve() {\n\t\tint k = ir.nextInt();\n\t\tString s = ir.next();\n\t\tif (s.length() <= k) {\n\t\t\tout.println(s);\n\t\t} else {\n\t\t\tout.println(s.substring(0, k) + \"...\");\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tir = new InputReader(System.in);\n\t\tout = new PrintWriter(System.out);\n\t\tsolve();\n\t\tout.flush();\n\t}\n\n\tstatic class InputReader {\n\n\t\tprivate InputStream in;\n\t\tprivate byte[] buffer = new byte[1024];\n\t\tprivate int curbuf;\n\t\tprivate int lenbuf;\n\n\t\tpublic InputReader(InputStream in) {\n\t\t\tthis.in = in;\n\t\t\tthis.curbuf = this.lenbuf = 0;\n\t\t}\n\n\t\tpublic boolean hasNextByte() {\n\t\t\tif (curbuf >= lenbuf) {\n\t\t\t\tcurbuf = 0;\n\t\t\t\ttry {\n\t\t\t\t\tlenbuf = in.read(buffer);\n\t\t\t\t} catch (IOException e) {\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\t}\n\t\t\t\tif (lenbuf <= 0)\n\t\t\t\t\treturn false;\n\t\t\t}\n\t\t\treturn true;\n\t\t}\n\n\t\tprivate int readByte() {\n\t\t\tif (hasNextByte())\n\t\t\t\treturn buffer[curbuf++];\n\t\t\telse\n\t\t\t\treturn -1;\n\t\t}\n\n\t\tprivate boolean isSpaceChar(int c) {\n\t\t\treturn !(c >= 33 && c <= 126);\n\t\t}\n\n\t\tprivate void skip() {\n\t\t\twhile (hasNextByte() && isSpaceChar(buffer[curbuf]))\n\t\t\t\tcurbuf++;\n\t\t}\n\n\t\tpublic boolean hasNext() {\n\t\t\tskip();\n\t\t\treturn hasNextByte();\n\t\t}\n\n\t\tpublic String next() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tStringBuilder sb = new StringBuilder();\n\t\t\tint b = readByte();\n\t\t\twhile (!isSpaceChar(b)) {\n\t\t\t\tsb.appendCodePoint(b);\n\t\t\t\tb = readByte();\n\t\t\t}\n\t\t\treturn sb.toString();\n\t\t}\n\n\t\tpublic int nextInt() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tint res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic long nextLong() {\n\t\t\tif (!hasNext())\n\t\t\t\tthrow new NoSuchElementException();\n\t\t\tint c = readByte();\n\t\t\twhile (isSpaceChar(c))\n\t\t\t\tc = readByte();\n\t\t\tboolean minus = false;\n\t\t\tif (c == '-') {\n\t\t\t\tminus = true;\n\t\t\t\tc = readByte();\n\t\t\t}\n\t\t\tlong res = 0;\n\t\t\tdo {\n\t\t\t\tif (c < '0' || c > '9')\n\t\t\t\t\tthrow new InputMismatchException();\n\t\t\t\tres = res * 10 + c - '0';\n\t\t\t\tc = readByte();\n\t\t\t} while (!isSpaceChar(c));\n\t\t\treturn (minus) ? -res : res;\n\t\t}\n\n\t\tpublic double nextDouble() {\n\t\t\treturn Double.parseDouble(next());\n\t\t}\n\n\t\tpublic int[] nextIntArray(int n) {\n\t\t\tint[] a = new int[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextInt();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic long[] nextLongArray(int n) {\n\t\t\tlong[] a = new long[n];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\ta[i] = nextLong();\n\t\t\treturn a;\n\t\t}\n\n\t\tpublic char[][] nextCharMap(int n, int m) {\n\t\t\tchar[][] map = new char[n][m];\n\t\t\tfor (int i = 0; i < n; i++)\n\t\t\t\tmap[i] = next().toCharArray();\n\t\t\treturn map;\n\t\t}\n\t}\n\n\tstatic void tr(Object... o) {\n\t\tSystem.err.println(Arrays.deepToString(o));\n\t}\n}",
"Main"
] |
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Arrays;
import java.util.InputMismatchException;
import java.util.NoSuchElementException;
public class Main {
static PrintWriter out;
static InputReader ir;
static final long INF = Long.MAX_VALUE;
static void solve() {
int k = ir.nextInt();
String s = ir.next();
if (s.length() <= k) {
out.println(s);
} else {
out.println(s.substring(0, k) + "...");
}
}
public static void main(String[] args) {
ir = new InputReader(System.in);
out = new PrintWriter(System.out);
solve();
out.flush();
}
static class InputReader {
private InputStream in;
private byte[] buffer = new byte[1024];
private int curbuf;
private int lenbuf;
public InputReader(InputStream in) {
this.in = in;
this.curbuf = this.lenbuf = 0;
}
public boolean hasNextByte() {
if (curbuf >= lenbuf) {
curbuf = 0;
try {
lenbuf = in.read(buffer);
} catch (IOException e) {
throw new InputMismatchException();
}
if (lenbuf <= 0)
return false;
}
return true;
}
private int readByte() {
if (hasNextByte())
return buffer[curbuf++];
else
return -1;
}
private boolean isSpaceChar(int c) {
return !(c >= 33 && c <= 126);
}
private void skip() {
while (hasNextByte() && isSpaceChar(buffer[curbuf]))
curbuf++;
}
public boolean hasNext() {
skip();
return hasNextByte();
}
public String next() {
if (!hasNext())
throw new NoSuchElementException();
StringBuilder sb = new StringBuilder();
int b = readByte();
while (!isSpaceChar(b)) {
sb.appendCodePoint(b);
b = readByte();
}
return sb.toString();
}
public int nextInt() {
if (!hasNext())
throw new NoSuchElementException();
int c = readByte();
while (isSpaceChar(c))
c = readByte();
boolean minus = false;
if (c == '-') {
minus = true;
c = readByte();
}
int res = 0;
do {
if (c < '0' || c > '9')
throw new InputMismatchException();
res = res * 10 + c - '0';
c = readByte();
} while (!isSpaceChar(c));
return (minus) ? -res : res;
}
public long nextLong() {
if (!hasNext())
throw new NoSuchElementException();
int c = readByte();
while (isSpaceChar(c))
c = readByte();
boolean minus = false;
if (c == '-') {
minus = true;
c = readByte();
}
long res = 0;
do {
if (c < '0' || c > '9')
throw new InputMismatchException();
res = res * 10 + c - '0';
c = readByte();
} while (!isSpaceChar(c));
return (minus) ? -res : res;
}
public double nextDouble() {
return Double.parseDouble(next());
}
public int[] nextIntArray(int n) {
int[] a = new int[n];
for (int i = 0; i < n; i++)
a[i] = nextInt();
return a;
}
public long[] nextLongArray(int n) {
long[] a = new long[n];
for (int i = 0; i < n; i++)
a[i] = nextLong();
return a;
}
public char[][] nextCharMap(int n, int m) {
char[][] map = new char[n][m];
for (int i = 0; i < n; i++)
map[i] = next().toCharArray();
return map;
}
}
static void tr(Object... o) {
System.err.println(Arrays.deepToString(o));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
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
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
27,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
40,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
6,
68
],
[
68,
69
],
[
0,
70
],
[
70,
71
],
[
70,
72
]
] |
[
"import java. util.Scanner;\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k = scan.nextInt();\n\t\tString s = scan.next();\n\n\t\tchar[] c = s.toCharArray();\n\n\t\tif(c.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(c[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\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\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k = scan.nextInt();\n\t\tString s = scan.next();\n\n\t\tchar[] c = s.toCharArray();\n\n\t\tif(c.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(c[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k = scan.nextInt();\n\t\tString s = scan.next();\n\n\t\tchar[] c = s.toCharArray();\n\n\t\tif(c.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(c[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k = scan.nextInt();\n\t\tString s = scan.next();\n\n\t\tchar[] c = s.toCharArray();\n\n\t\tif(c.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(c[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int k = scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"char[] c = s.toCharArray();",
"c",
"s.toCharArray()",
"s.toCharArray",
"s",
"if(c.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(c[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"c.length<=k",
"c.length",
"c",
"c.length",
"k",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(c[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"for(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(c[i]);\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<k",
"i",
"k",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(c[i]);\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(c[i]);\n\t\t\t}",
"System.out.print(c[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"c[i]",
"c",
"i",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k = scan.nextInt();\n\t\tString s = scan.next();\n\n\t\tchar[] c = s.toCharArray();\n\n\t\tif(c.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(c[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k = scan.nextInt();\n\t\tString s = scan.next();\n\n\t\tchar[] c = s.toCharArray();\n\n\t\tif(c.length<=k) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tfor(int i=0;i<k;i++) {\n\t\t\t\tSystem.out.print(c[i]);\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\t}\n\n}",
"Main"
] |
import java. util.Scanner;
public class Main {
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner scan = new Scanner(System.in);
int k = scan.nextInt();
String s = scan.next();
char[] c = s.toCharArray();
if(c.length<=k) {
System.out.println(s);
}else {
for(int i=0;i<k;i++) {
System.out.print(c[i]);
}
System.out.println("...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
2,
17,
13,
17,
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
28,
28
],
[
28,
29
],
[
28,
30
],
[
28,
31
],
[
24,
32
],
[
8,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
6,
39
],
[
39,
40
]
] |
[
"import java.util.*;\nclass Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n String r = s.replaceAll(\"^(.{\"+k+\"}).+$\",\"$1...\");\n System.out.println(r);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n String r = s.replaceAll(\"^(.{\"+k+\"}).+$\",\"$1...\");\n System.out.println(r);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n String r = s.replaceAll(\"^(.{\"+k+\"}).+$\",\"$1...\");\n System.out.println(r);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n String r = s.replaceAll(\"^(.{\"+k+\"}).+$\",\"$1...\");\n System.out.println(r);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"String r = s.replaceAll(\"^(.{\"+k+\"}).+$\",\"$1...\");",
"r",
"s.replaceAll(\"^(.{\"+k+\"}).+$\",\"$1...\")",
"s.replaceAll",
"s",
"\"^(.{\"+k+\"}).+$\"",
"\"^(.{\"+k+\"}).+$\"",
"\"^(.{\"",
"k",
"\"}).+$\"",
"\"$1...\"",
"System.out.println(r)",
"System.out.println",
"System.out",
"System",
"System.out",
"r",
"String[] args",
"args"
] |
import java.util.*;
class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
String r = s.replaceAll("^(.{"+k+"}).+$","$1...");
System.out.println(r);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
0,
13,
17,
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
],
[
73,
5
],
[
73,
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
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
31,
54
],
[
54,
55
],
[
54,
56
],
[
31,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
25,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] |
[
"import java.util.Scanner;\npublic class Main {\n\n public static void main(String[] args) {\n\t Scanner s = new Scanner(System.in);\n\t int k =s.nextInt();\n\t s.nextLine();\n\t String ss = s.nextLine();\n\t if(ss.length()>k) {\n String u = \"\";\n for (int i = 0; i < k; i++) {\n u += ss.charAt(i);\n }\n u += \"...\";\n System.out.println(u);\n }\n\t else{\n System.out.println(ss);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n\t Scanner s = new Scanner(System.in);\n\t int k =s.nextInt();\n\t s.nextLine();\n\t String ss = s.nextLine();\n\t if(ss.length()>k) {\n String u = \"\";\n for (int i = 0; i < k; i++) {\n u += ss.charAt(i);\n }\n u += \"...\";\n System.out.println(u);\n }\n\t else{\n System.out.println(ss);\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n\t Scanner s = new Scanner(System.in);\n\t int k =s.nextInt();\n\t s.nextLine();\n\t String ss = s.nextLine();\n\t if(ss.length()>k) {\n String u = \"\";\n for (int i = 0; i < k; i++) {\n u += ss.charAt(i);\n }\n u += \"...\";\n System.out.println(u);\n }\n\t else{\n System.out.println(ss);\n }\n }",
"main",
"{\n\t Scanner s = new Scanner(System.in);\n\t int k =s.nextInt();\n\t s.nextLine();\n\t String ss = s.nextLine();\n\t if(ss.length()>k) {\n String u = \"\";\n for (int i = 0; i < k; i++) {\n u += ss.charAt(i);\n }\n u += \"...\";\n System.out.println(u);\n }\n\t else{\n System.out.println(ss);\n }\n }",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"int k =s.nextInt();",
"k",
"s.nextInt()",
"s.nextInt",
"s",
"s.nextLine()",
"s.nextLine",
"s",
"String ss = s.nextLine();",
"ss",
"s.nextLine()",
"s.nextLine",
"s",
"if(ss.length()>k) {\n String u = \"\";\n for (int i = 0; i < k; i++) {\n u += ss.charAt(i);\n }\n u += \"...\";\n System.out.println(u);\n }\n\t else{\n System.out.println(ss);\n }",
"ss.length()>k",
"ss.length()",
"ss.length",
"ss",
"k",
"{\n String u = \"\";\n for (int i = 0; i < k; i++) {\n u += ss.charAt(i);\n }\n u += \"...\";\n System.out.println(u);\n }",
"String u = \"\";",
"u",
"\"\"",
"for (int i = 0; i < k; i++) {\n u += ss.charAt(i);\n }",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < k",
"i",
"k",
"i++",
"i++",
"i",
"{\n u += ss.charAt(i);\n }",
"{\n u += ss.charAt(i);\n }",
"u += ss.charAt(i)",
"u",
"ss.charAt(i)",
"ss.charAt",
"ss",
"i",
"u += \"...\"",
"u",
"\"...\"",
"System.out.println(u)",
"System.out.println",
"System.out",
"System",
"System.out",
"u",
"{\n System.out.println(ss);\n }",
"System.out.println(ss)",
"System.out.println",
"System.out",
"System",
"System.out",
"ss",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) {\n\t Scanner s = new Scanner(System.in);\n\t int k =s.nextInt();\n\t s.nextLine();\n\t String ss = s.nextLine();\n\t if(ss.length()>k) {\n String u = \"\";\n for (int i = 0; i < k; i++) {\n u += ss.charAt(i);\n }\n u += \"...\";\n System.out.println(u);\n }\n\t else{\n System.out.println(ss);\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n\t Scanner s = new Scanner(System.in);\n\t int k =s.nextInt();\n\t s.nextLine();\n\t String ss = s.nextLine();\n\t if(ss.length()>k) {\n String u = \"\";\n for (int i = 0; i < k; i++) {\n u += ss.charAt(i);\n }\n u += \"...\";\n System.out.println(u);\n }\n\t else{\n System.out.println(ss);\n }\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
int k =s.nextInt();
s.nextLine();
String ss = s.nextLine();
if(ss.length()>k) {
String u = "";
for (int i = 0; i < k; i++) {
u += ss.charAt(i);
}
u += "...";
System.out.println(u);
}
else{
System.out.println(ss);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
30,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
54,
5
],
[
54,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
38,
42
],
[
37,
43
],
[
25,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
6,
51
],
[
51,
52
],
[
0,
53
],
[
53,
54
],
[
53,
55
]
] |
[
"import java.util.Scanner;\n\n\n\npublic class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i = Integer.parseInt(sc.nextLine());\n\t\tString s = sc.nextLine();\n\t\tif(i < s.length()) {\n\t\t\tSystem.out.println(s.substring(0,i) + \"...\");\n\t\t}else {\n\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i = Integer.parseInt(sc.nextLine());\n\t\tString s = sc.nextLine();\n\t\tif(i < s.length()) {\n\t\t\tSystem.out.println(s.substring(0,i) + \"...\");\n\t\t}else {\n\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i = Integer.parseInt(sc.nextLine());\n\t\tString s = sc.nextLine();\n\t\tif(i < s.length()) {\n\t\t\tSystem.out.println(s.substring(0,i) + \"...\");\n\t\t}else {\n\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i = Integer.parseInt(sc.nextLine());\n\t\tString s = sc.nextLine();\n\t\tif(i < s.length()) {\n\t\t\tSystem.out.println(s.substring(0,i) + \"...\");\n\t\t}else {\n\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int i = Integer.parseInt(sc.nextLine());",
"i",
"Integer.parseInt(sc.nextLine())",
"Integer.parseInt",
"Integer",
"sc.nextLine()",
"sc.nextLine",
"sc",
"String s = sc.nextLine();",
"s",
"sc.nextLine()",
"sc.nextLine",
"sc",
"if(i < s.length()) {\n\t\t\tSystem.out.println(s.substring(0,i) + \"...\");\n\t\t}else {\n\n\t\t\tSystem.out.println(s);\n\t\t}",
"i < s.length()",
"i",
"s.length()",
"s.length",
"s",
"{\n\t\t\tSystem.out.println(s.substring(0,i) + \"...\");\n\t\t}",
"System.out.println(s.substring(0,i) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0,i) + \"...\"",
"s.substring(0,i)",
"s.substring",
"s",
"0",
"i",
"\"...\"",
"{\n\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i = Integer.parseInt(sc.nextLine());\n\t\tString s = sc.nextLine();\n\t\tif(i < s.length()) {\n\t\t\tSystem.out.println(s.substring(0,i) + \"...\");\n\t\t}else {\n\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}\n}",
"public class Main {\n\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint i = Integer.parseInt(sc.nextLine());\n\t\tString s = sc.nextLine();\n\t\tif(i < s.length()) {\n\t\t\tSystem.out.println(s.substring(0,i) + \"...\");\n\t\t}else {\n\n\t\t\tSystem.out.println(s);\n\t\t}\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int i = Integer.parseInt(sc.nextLine());
String s = sc.nextLine();
if(i < s.length()) {
System.out.println(s.substring(0,i) + "...");
}else {
System.out.println(s);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
4,
18,
13,
30,
4,
18,
18,
13,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
51,
5
],
[
51,
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
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
22,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
22,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
42,
46
],
[
41,
47
],
[
6,
48
],
[
48,
49
],
[
0,
50
],
[
50,
51
],
[
50,
52
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k = scan.nextInt();\n\t\tString s = scan.next();\n\n\t\tif(k >= s.length()) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tSystem.out.println(s.substring(0 , k) + \"...\");\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k = scan.nextInt();\n\t\tString s = scan.next();\n\n\t\tif(k >= s.length()) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tSystem.out.println(s.substring(0 , k) + \"...\");\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k = scan.nextInt();\n\t\tString s = scan.next();\n\n\t\tif(k >= s.length()) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tSystem.out.println(s.substring(0 , k) + \"...\");\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k = scan.nextInt();\n\t\tString s = scan.next();\n\n\t\tif(k >= s.length()) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tSystem.out.println(s.substring(0 , k) + \"...\");\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int k = scan.nextInt();",
"k",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String s = scan.next();",
"s",
"scan.next()",
"scan.next",
"scan",
"if(k >= s.length()) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tSystem.out.println(s.substring(0 , k) + \"...\");\n\t\t}",
"k >= s.length()",
"k",
"s.length()",
"s.length",
"s",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"{\n\t\t\tSystem.out.println(s.substring(0 , k) + \"...\");\n\t\t}",
"System.out.println(s.substring(0 , k) + \"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0 , k) + \"...\"",
"s.substring(0 , k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k = scan.nextInt();\n\t\tString s = scan.next();\n\n\t\tif(k >= s.length()) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tSystem.out.println(s.substring(0 , k) + \"...\");\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint k = scan.nextInt();\n\t\tString s = scan.next();\n\n\t\tif(k >= s.length()) {\n\t\t\tSystem.out.println(s);\n\t\t}else {\n\t\t\tSystem.out.println(s.substring(0 , k) + \"...\");\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int k = scan.nextInt();
String s = scan.next();
if(k >= s.length()) {
System.out.println(s);
}else {
System.out.println(s.substring(0 , k) + "...");
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
4,
18,
13,
13,
30,
41,
13,
2,
4,
18,
13,
17,
13,
17,
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
],
[
57,
5
],
[
57,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
35,
39
],
[
34,
40
],
[
31,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
25,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint k = Integer.parseInt(in.nextLine());\n\t\tString s = in.nextLine();\n\t\tif(s.length() > k) {\n\t\t\tString mod_s = s.substring(0,k) + \"...\";\n\t\t\tSystem.out.println(mod_s);\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint k = Integer.parseInt(in.nextLine());\n\t\tString s = in.nextLine();\n\t\tif(s.length() > k) {\n\t\t\tString mod_s = s.substring(0,k) + \"...\";\n\t\t\tSystem.out.println(mod_s);\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint k = Integer.parseInt(in.nextLine());\n\t\tString s = in.nextLine();\n\t\tif(s.length() > k) {\n\t\t\tString mod_s = s.substring(0,k) + \"...\";\n\t\t\tSystem.out.println(mod_s);\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner in = new Scanner(System.in);\n\t\tint k = Integer.parseInt(in.nextLine());\n\t\tString s = in.nextLine();\n\t\tif(s.length() > k) {\n\t\t\tString mod_s = s.substring(0,k) + \"...\";\n\t\t\tSystem.out.println(mod_s);\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int k = Integer.parseInt(in.nextLine());",
"k",
"Integer.parseInt(in.nextLine())",
"Integer.parseInt",
"Integer",
"in.nextLine()",
"in.nextLine",
"in",
"String s = in.nextLine();",
"s",
"in.nextLine()",
"in.nextLine",
"in",
"if(s.length() > k) {\n\t\t\tString mod_s = s.substring(0,k) + \"...\";\n\t\t\tSystem.out.println(mod_s);\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}",
"s.length() > k",
"s.length()",
"s.length",
"s",
"k",
"{\n\t\t\tString mod_s = s.substring(0,k) + \"...\";\n\t\t\tSystem.out.println(mod_s);\n\t\t}",
"String mod_s = s.substring(0,k) + \"...\";",
"mod_s",
"s.substring(0,k) + \"...\"",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"System.out.println(mod_s)",
"System.out.println",
"System.out",
"System",
"System.out",
"mod_s",
"{\n\t\t\tSystem.out.println(s);\n\t\t}",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint k = Integer.parseInt(in.nextLine());\n\t\tString s = in.nextLine();\n\t\tif(s.length() > k) {\n\t\t\tString mod_s = s.substring(0,k) + \"...\";\n\t\t\tSystem.out.println(mod_s);\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner in = new Scanner(System.in);\n\t\tint k = Integer.parseInt(in.nextLine());\n\t\tString s = in.nextLine();\n\t\tif(s.length() > k) {\n\t\t\tString mod_s = s.substring(0,k) + \"...\";\n\t\t\tSystem.out.println(mod_s);\n\t\t} else {\n\t\t\tSystem.out.println(s);\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int k = Integer.parseInt(in.nextLine());
String s = in.nextLine();
if(s.length() > k) {
String mod_s = s.substring(0,k) + "...";
System.out.println(mod_s);
} else {
System.out.println(s);
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
27,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
38,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] |
[
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tint n=S.length();\n\n\t\tif(n<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tint n=S.length();\n\n\t\tif(n<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tint n=S.length();\n\n\t\tif(n<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tint n=S.length();\n\n\t\tif(n<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int K = sc.nextInt();",
"K",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String S = sc.next();",
"S",
"sc.next()",
"sc.next",
"sc",
"int n=S.length();",
"n",
"S.length()",
"S.length",
"S",
"if(n<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"n<=K",
"n",
"K",
"{\n\t\t\tSystem.out.println(S);\n\t\t}",
"System.out.println(S)",
"System.out.println",
"System.out",
"System",
"System.out",
"S",
"{\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}",
"for(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<K",
"i",
"K",
"i++",
"i++",
"i",
"{\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\t}",
"{\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\t}",
"System.out.print(S.charAt(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"S.charAt(i)",
"S.charAt",
"S",
"i",
"System.out.println(\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"...\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tint n=S.length();\n\n\t\tif(n<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint K = sc.nextInt();\n\t\tString S = sc.next();\n\n\t\tint n=S.length();\n\n\t\tif(n<=K) {\n\t\t\tSystem.out.println(S);\n\t\t}else {\n\t\t\tfor(int i=0;i<K;i++) {\n\t\t\t\tSystem.out.print(S.charAt(i));\n\t\t\t}\n\t\t\tSystem.out.println(\"...\");\n\t\t}\n\n\n\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int K = sc.nextInt();
String S = sc.next();
int n=S.length();
if(n<=K) {
System.out.println(S);
}else {
for(int i=0;i<K;i++) {
System.out.print(S.charAt(i));
}
System.out.println("...");
}
}
}
|
[
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,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
13,
14,
2,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
4,
18,
13,
17,
13,
17,
23,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
25,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
51,
55
],
[
50,
56
],
[
9,
57
],
[
57,
58
]
] |
[
"import java.util.Scanner;\nimport java.io.*;\n\nclass Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n \n \n if(s.length()<=k){\n \tSystem.out.println(s);\n }\n else if(s.length()>k){\n \tSystem.out.println(s.substring(0,k)+\"...\");\n }\n \n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.io.*;",
"io.*",
"java",
"class Main{\n public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n \n \n if(s.length()<=k){\n \tSystem.out.println(s);\n }\n else if(s.length()>k){\n \tSystem.out.println(s.substring(0,k)+\"...\");\n }\n \n }\n}",
"Main",
"public static void main(String args[]){\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n \n \n if(s.length()<=k){\n \tSystem.out.println(s);\n }\n else if(s.length()>k){\n \tSystem.out.println(s.substring(0,k)+\"...\");\n }\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int k = sc.nextInt();\n String s = sc.next();\n \n \n if(s.length()<=k){\n \tSystem.out.println(s);\n }\n else if(s.length()>k){\n \tSystem.out.println(s.substring(0,k)+\"...\");\n }\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int k = sc.nextInt();",
"k",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String s = sc.next();",
"s",
"sc.next()",
"sc.next",
"sc",
"if(s.length()<=k){\n \tSystem.out.println(s);\n }\n else if(s.length()>k){\n \tSystem.out.println(s.substring(0,k)+\"...\");\n }",
"s.length()<=k",
"s.length()",
"s.length",
"s",
"k",
"{\n \tSystem.out.println(s);\n }",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"if(s.length()>k){\n \tSystem.out.println(s.substring(0,k)+\"...\");\n }",
"s.length()>k",
"s.length()",
"s.length",
"s",
"k",
"{\n \tSystem.out.println(s.substring(0,k)+\"...\");\n }",
"System.out.println(s.substring(0,k)+\"...\")",
"System.out.println",
"System.out",
"System",
"System.out",
"s.substring(0,k)+\"...\"",
"s.substring(0,k)",
"s.substring",
"s",
"0",
"k",
"\"...\"",
"String args[]",
"args"
] |
import java.util.Scanner;
import java.io.*;
class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int k = sc.nextInt();
String s = sc.next();
if(s.length()<=k){
System.out.println(s);
}
else if(s.length()>k){
System.out.println(s.substring(0,k)+"...");
}
}
}
|
[
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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
4,
18,
20,
20,
13,
4,
18,
13,
20,
41,
13,
4,
18,
4,
18,
20,
20,
13,
41,
13,
4,
18,
4,
18,
13,
13,
14,
2,
4,
18,
13,
20,
17,
30,
0,
13,
4,
18,
20,
13,
41,
13,
14,
2,
4,
18,
13,
20,
17,
30,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
0,
13,
4,
18,
13,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
17,
0,
13,
4,
18,
4,
18,
13,
13,
4,
18,
4,
18,
4,
18,
20,
13,
13,
13,
4,
18,
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
],
[
157,
8
],
[
157,
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
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
39,
45
],
[
37,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
11,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
52,
58
],
[
11,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
68,
73
],
[
67,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
11,
81
],
[
81,
82
],
[
11,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
84,
89
],
[
83,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
90,
97
],
[
97,
98
],
[
97,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
90,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
83,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
109,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
109,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
109,
125
],
[
125,
126
],
[
125,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
129,
132
],
[
127,
133
],
[
133,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
135,
141
],
[
133,
142
],
[
11,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
143,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
152,
153
],
[
9,
154
],
[
154,
155
],
[
0,
156
],
[
156,
157
],
[
156,
158
]
] |
[
"import java.math.BigDecimal;\nimport java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n BigDecimal a = sc.nextBigDecimal();\n BigDecimal b = sc.nextBigDecimal();\n BigDecimal h = sc.nextBigDecimal();\n BigDecimal m = sc.nextBigDecimal();\n\n // 角度を求める\n BigDecimal hangle = new BigDecimal(360).divide(new BigDecimal(12)).multiply(h).add(m.multiply(new BigDecimal(0.5)));\n BigDecimal mangle = new BigDecimal(360).divide(new BigDecimal(60)).multiply(m);\n BigDecimal diffangle = hangle.subtract(mangle).abs();\n if(diffangle.compareTo(new BigDecimal(180)) > 0){\n diffangle = new BigDecimal(360).subtract(diffangle);\n }\n\n BigDecimal cpow;\n if(diffangle.compareTo(new BigDecimal(90)) == 0) {\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow);\n } else {\n BigDecimal cos = new BigDecimal(Math.cos(Math.toRadians(diffangle.doubleValue())));\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow).subtract(new BigDecimal(2).multiply(a).multiply(b).multiply(cos));\n }\n System.out.println(Math.sqrt(cpow.doubleValue()));\n }\n}",
"import java.math.BigDecimal;",
"BigDecimal",
"java.math",
"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 BigDecimal a = sc.nextBigDecimal();\n BigDecimal b = sc.nextBigDecimal();\n BigDecimal h = sc.nextBigDecimal();\n BigDecimal m = sc.nextBigDecimal();\n\n // 角度を求める\n BigDecimal hangle = new BigDecimal(360).divide(new BigDecimal(12)).multiply(h).add(m.multiply(new BigDecimal(0.5)));\n BigDecimal mangle = new BigDecimal(360).divide(new BigDecimal(60)).multiply(m);\n BigDecimal diffangle = hangle.subtract(mangle).abs();\n if(diffangle.compareTo(new BigDecimal(180)) > 0){\n diffangle = new BigDecimal(360).subtract(diffangle);\n }\n\n BigDecimal cpow;\n if(diffangle.compareTo(new BigDecimal(90)) == 0) {\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow);\n } else {\n BigDecimal cos = new BigDecimal(Math.cos(Math.toRadians(diffangle.doubleValue())));\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow).subtract(new BigDecimal(2).multiply(a).multiply(b).multiply(cos));\n }\n System.out.println(Math.sqrt(cpow.doubleValue()));\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n BigDecimal a = sc.nextBigDecimal();\n BigDecimal b = sc.nextBigDecimal();\n BigDecimal h = sc.nextBigDecimal();\n BigDecimal m = sc.nextBigDecimal();\n\n // 角度を求める\n BigDecimal hangle = new BigDecimal(360).divide(new BigDecimal(12)).multiply(h).add(m.multiply(new BigDecimal(0.5)));\n BigDecimal mangle = new BigDecimal(360).divide(new BigDecimal(60)).multiply(m);\n BigDecimal diffangle = hangle.subtract(mangle).abs();\n if(diffangle.compareTo(new BigDecimal(180)) > 0){\n diffangle = new BigDecimal(360).subtract(diffangle);\n }\n\n BigDecimal cpow;\n if(diffangle.compareTo(new BigDecimal(90)) == 0) {\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow);\n } else {\n BigDecimal cos = new BigDecimal(Math.cos(Math.toRadians(diffangle.doubleValue())));\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow).subtract(new BigDecimal(2).multiply(a).multiply(b).multiply(cos));\n }\n System.out.println(Math.sqrt(cpow.doubleValue()));\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n BigDecimal a = sc.nextBigDecimal();\n BigDecimal b = sc.nextBigDecimal();\n BigDecimal h = sc.nextBigDecimal();\n BigDecimal m = sc.nextBigDecimal();\n\n // 角度を求める\n BigDecimal hangle = new BigDecimal(360).divide(new BigDecimal(12)).multiply(h).add(m.multiply(new BigDecimal(0.5)));\n BigDecimal mangle = new BigDecimal(360).divide(new BigDecimal(60)).multiply(m);\n BigDecimal diffangle = hangle.subtract(mangle).abs();\n if(diffangle.compareTo(new BigDecimal(180)) > 0){\n diffangle = new BigDecimal(360).subtract(diffangle);\n }\n\n BigDecimal cpow;\n if(diffangle.compareTo(new BigDecimal(90)) == 0) {\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow);\n } else {\n BigDecimal cos = new BigDecimal(Math.cos(Math.toRadians(diffangle.doubleValue())));\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow).subtract(new BigDecimal(2).multiply(a).multiply(b).multiply(cos));\n }\n System.out.println(Math.sqrt(cpow.doubleValue()));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"BigDecimal a = sc.nextBigDecimal();",
"a",
"sc.nextBigDecimal()",
"sc.nextBigDecimal",
"sc",
"BigDecimal b = sc.nextBigDecimal();",
"b",
"sc.nextBigDecimal()",
"sc.nextBigDecimal",
"sc",
"BigDecimal h = sc.nextBigDecimal();",
"h",
"sc.nextBigDecimal()",
"sc.nextBigDecimal",
"sc",
"BigDecimal m = sc.nextBigDecimal();",
"m",
"sc.nextBigDecimal()",
"sc.nextBigDecimal",
"sc",
"BigDecimal hangle = new BigDecimal(360).divide(new BigDecimal(12)).multiply(h).add(m.multiply(new BigDecimal(0.5)));",
"hangle",
"new BigDecimal(360).divide(new BigDecimal(12)).multiply(h).add(m.multiply(new BigDecimal(0.5)))",
"new BigDecimal(360).divide(new BigDecimal(12)).multiply(h).add",
"new BigDecimal(360).divide(new BigDecimal(12)).multiply(h)",
"new BigDecimal(360).divide(new BigDecimal(12)).multiply",
"new BigDecimal(360).divide(new BigDecimal(12))",
"new BigDecimal(360).divide",
"new BigDecimal(360)",
"new BigDecimal(12)",
"h",
"m.multiply(new BigDecimal(0.5))",
"m.multiply",
"m",
"new BigDecimal(0.5)",
"BigDecimal mangle = new BigDecimal(360).divide(new BigDecimal(60)).multiply(m);",
"mangle",
"new BigDecimal(360).divide(new BigDecimal(60)).multiply(m)",
"new BigDecimal(360).divide(new BigDecimal(60)).multiply",
"new BigDecimal(360).divide(new BigDecimal(60))",
"new BigDecimal(360).divide",
"new BigDecimal(360)",
"new BigDecimal(60)",
"m",
"BigDecimal diffangle = hangle.subtract(mangle).abs();",
"diffangle",
"hangle.subtract(mangle).abs()",
"hangle.subtract(mangle).abs",
"hangle.subtract(mangle)",
"hangle.subtract",
"hangle",
"mangle",
"if(diffangle.compareTo(new BigDecimal(180)) > 0){\n diffangle = new BigDecimal(360).subtract(diffangle);\n }",
"diffangle.compareTo(new BigDecimal(180)) > 0",
"diffangle.compareTo(new BigDecimal(180))",
"diffangle.compareTo",
"diffangle",
"new BigDecimal(180)",
"0",
"{\n diffangle = new BigDecimal(360).subtract(diffangle);\n }",
"diffangle = new BigDecimal(360).subtract(diffangle)",
"diffangle",
"new BigDecimal(360).subtract(diffangle)",
"new BigDecimal(360).subtract",
"new BigDecimal(360)",
"diffangle",
"BigDecimal cpow;",
"cpow",
"if(diffangle.compareTo(new BigDecimal(90)) == 0) {\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow);\n } else {\n BigDecimal cos = new BigDecimal(Math.cos(Math.toRadians(diffangle.doubleValue())));\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow).subtract(new BigDecimal(2).multiply(a).multiply(b).multiply(cos));\n }",
"diffangle.compareTo(new BigDecimal(90)) == 0",
"diffangle.compareTo(new BigDecimal(90))",
"diffangle.compareTo",
"diffangle",
"new BigDecimal(90)",
"0",
"{\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow);\n }",
"BigDecimal apow = a.pow(2);",
"apow",
"a.pow(2)",
"a.pow",
"a",
"2",
"BigDecimal bpow = b.pow(2);",
"bpow",
"b.pow(2)",
"b.pow",
"b",
"2",
"cpow = apow.add(bpow)",
"cpow",
"apow.add(bpow)",
"apow.add",
"apow",
"bpow",
"{\n BigDecimal cos = new BigDecimal(Math.cos(Math.toRadians(diffangle.doubleValue())));\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow).subtract(new BigDecimal(2).multiply(a).multiply(b).multiply(cos));\n }",
"BigDecimal cos = new BigDecimal(Math.cos(Math.toRadians(diffangle.doubleValue())));",
"cos",
"new BigDecimal(Math.cos(Math.toRadians(diffangle.doubleValue())))",
"BigDecimal apow = a.pow(2);",
"apow",
"a.pow(2)",
"a.pow",
"a",
"2",
"BigDecimal bpow = b.pow(2);",
"bpow",
"b.pow(2)",
"b.pow",
"b",
"2",
"cpow = apow.add(bpow).subtract(new BigDecimal(2).multiply(a).multiply(b).multiply(cos))",
"cpow",
"apow.add(bpow).subtract(new BigDecimal(2).multiply(a).multiply(b).multiply(cos))",
"apow.add(bpow).subtract",
"apow.add(bpow)",
"apow.add",
"apow",
"bpow",
"new BigDecimal(2).multiply(a).multiply(b).multiply(cos)",
"new BigDecimal(2).multiply(a).multiply(b).multiply",
"new BigDecimal(2).multiply(a).multiply(b)",
"new BigDecimal(2).multiply(a).multiply",
"new BigDecimal(2).multiply(a)",
"new BigDecimal(2).multiply",
"new BigDecimal(2)",
"a",
"b",
"cos",
"System.out.println(Math.sqrt(cpow.doubleValue()))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(cpow.doubleValue())",
"Math.sqrt",
"Math",
"cpow.doubleValue()",
"cpow.doubleValue",
"cpow",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n BigDecimal a = sc.nextBigDecimal();\n BigDecimal b = sc.nextBigDecimal();\n BigDecimal h = sc.nextBigDecimal();\n BigDecimal m = sc.nextBigDecimal();\n\n // 角度を求める\n BigDecimal hangle = new BigDecimal(360).divide(new BigDecimal(12)).multiply(h).add(m.multiply(new BigDecimal(0.5)));\n BigDecimal mangle = new BigDecimal(360).divide(new BigDecimal(60)).multiply(m);\n BigDecimal diffangle = hangle.subtract(mangle).abs();\n if(diffangle.compareTo(new BigDecimal(180)) > 0){\n diffangle = new BigDecimal(360).subtract(diffangle);\n }\n\n BigDecimal cpow;\n if(diffangle.compareTo(new BigDecimal(90)) == 0) {\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow);\n } else {\n BigDecimal cos = new BigDecimal(Math.cos(Math.toRadians(diffangle.doubleValue())));\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow).subtract(new BigDecimal(2).multiply(a).multiply(b).multiply(cos));\n }\n System.out.println(Math.sqrt(cpow.doubleValue()));\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n BigDecimal a = sc.nextBigDecimal();\n BigDecimal b = sc.nextBigDecimal();\n BigDecimal h = sc.nextBigDecimal();\n BigDecimal m = sc.nextBigDecimal();\n\n // 角度を求める\n BigDecimal hangle = new BigDecimal(360).divide(new BigDecimal(12)).multiply(h).add(m.multiply(new BigDecimal(0.5)));\n BigDecimal mangle = new BigDecimal(360).divide(new BigDecimal(60)).multiply(m);\n BigDecimal diffangle = hangle.subtract(mangle).abs();\n if(diffangle.compareTo(new BigDecimal(180)) > 0){\n diffangle = new BigDecimal(360).subtract(diffangle);\n }\n\n BigDecimal cpow;\n if(diffangle.compareTo(new BigDecimal(90)) == 0) {\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow);\n } else {\n BigDecimal cos = new BigDecimal(Math.cos(Math.toRadians(diffangle.doubleValue())));\n BigDecimal apow = a.pow(2);\n BigDecimal bpow = b.pow(2);\n cpow = apow.add(bpow).subtract(new BigDecimal(2).multiply(a).multiply(b).multiply(cos));\n }\n System.out.println(Math.sqrt(cpow.doubleValue()));\n }\n}",
"Main"
] |
import java.math.BigDecimal;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
BigDecimal a = sc.nextBigDecimal();
BigDecimal b = sc.nextBigDecimal();
BigDecimal h = sc.nextBigDecimal();
BigDecimal m = sc.nextBigDecimal();
// 角度を求める
BigDecimal hangle = new BigDecimal(360).divide(new BigDecimal(12)).multiply(h).add(m.multiply(new BigDecimal(0.5)));
BigDecimal mangle = new BigDecimal(360).divide(new BigDecimal(60)).multiply(m);
BigDecimal diffangle = hangle.subtract(mangle).abs();
if(diffangle.compareTo(new BigDecimal(180)) > 0){
diffangle = new BigDecimal(360).subtract(diffangle);
}
BigDecimal cpow;
if(diffangle.compareTo(new BigDecimal(90)) == 0) {
BigDecimal apow = a.pow(2);
BigDecimal bpow = b.pow(2);
cpow = apow.add(bpow);
} else {
BigDecimal cos = new BigDecimal(Math.cos(Math.toRadians(diffangle.doubleValue())));
BigDecimal apow = a.pow(2);
BigDecimal bpow = b.pow(2);
cpow = apow.add(bpow).subtract(new BigDecimal(2).multiply(a).multiply(b).multiply(cos));
}
System.out.println(Math.sqrt(cpow.doubleValue()));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
4,
18,
13,
2,
2,
13,
17,
2,
2,
13,
17,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
17,
13,
41,
13,
4,
18,
13,
4,
18,
13,
13,
0,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
13,
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
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
33,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
8,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
8,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
85,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
85,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n\n// \tFile file = new File(\"test.txt\");\n// \tScanner sc = new Scanner(file);\n \tScanner sc = new Scanner(System.in);\n \tdouble a = sc.nextDouble();\n \tdouble b = sc.nextDouble();\n \tint H = sc.nextInt();\n \tint M = sc.nextInt();\n \tsc.close();\n \tdouble ans = 0;\n \tdouble X = Math.abs((M * 6) - ((H * 30) + (M * 0.5)));\n \tif(X > 180){\n \t\tX = 360 - X;\n \t}\n \tdouble cos = Math.cos(Math.toRadians(X));\n \tans = a*a + b*b - 2 * a * b * cos;\n \tSystem.out.println(Math.sqrt(ans));\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n// \tFile file = new File(\"test.txt\");\n// \tScanner sc = new Scanner(file);\n \tScanner sc = new Scanner(System.in);\n \tdouble a = sc.nextDouble();\n \tdouble b = sc.nextDouble();\n \tint H = sc.nextInt();\n \tint M = sc.nextInt();\n \tsc.close();\n \tdouble ans = 0;\n \tdouble X = Math.abs((M * 6) - ((H * 30) + (M * 0.5)));\n \tif(X > 180){\n \t\tX = 360 - X;\n \t}\n \tdouble cos = Math.cos(Math.toRadians(X));\n \tans = a*a + b*b - 2 * a * b * cos;\n \tSystem.out.println(Math.sqrt(ans));\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n// \tFile file = new File(\"test.txt\");\n// \tScanner sc = new Scanner(file);\n \tScanner sc = new Scanner(System.in);\n \tdouble a = sc.nextDouble();\n \tdouble b = sc.nextDouble();\n \tint H = sc.nextInt();\n \tint M = sc.nextInt();\n \tsc.close();\n \tdouble ans = 0;\n \tdouble X = Math.abs((M * 6) - ((H * 30) + (M * 0.5)));\n \tif(X > 180){\n \t\tX = 360 - X;\n \t}\n \tdouble cos = Math.cos(Math.toRadians(X));\n \tans = a*a + b*b - 2 * a * b * cos;\n \tSystem.out.println(Math.sqrt(ans));\n }",
"main",
"{\n\n// \tFile file = new File(\"test.txt\");\n// \tScanner sc = new Scanner(file);\n \tScanner sc = new Scanner(System.in);\n \tdouble a = sc.nextDouble();\n \tdouble b = sc.nextDouble();\n \tint H = sc.nextInt();\n \tint M = sc.nextInt();\n \tsc.close();\n \tdouble ans = 0;\n \tdouble X = Math.abs((M * 6) - ((H * 30) + (M * 0.5)));\n \tif(X > 180){\n \t\tX = 360 - X;\n \t}\n \tdouble cos = Math.cos(Math.toRadians(X));\n \tans = a*a + b*b - 2 * a * b * cos;\n \tSystem.out.println(Math.sqrt(ans));\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double a = sc.nextDouble();",
"a",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double b = sc.nextDouble();",
"b",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"int H = sc.nextInt();",
"H",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int M = sc.nextInt();",
"M",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"double ans = 0;",
"ans",
"0",
"double X = Math.abs((M * 6) - ((H * 30) + (M * 0.5)));",
"X",
"Math.abs((M * 6) - ((H * 30) + (M * 0.5)))",
"Math.abs",
"Math",
"(M * 6) - ((H * 30) + (M * 0.5))",
"(M * 6)",
"M",
"6",
"((H * 30) + (M * 0.5))",
"(H * 30)",
"H",
"30",
"(M * 0.5)",
"M",
"0.5",
"if(X > 180){\n \t\tX = 360 - X;\n \t}",
"X > 180",
"X",
"180",
"{\n \t\tX = 360 - X;\n \t}",
"X = 360 - X",
"X",
"360 - X",
"360",
"X",
"double cos = Math.cos(Math.toRadians(X));",
"cos",
"Math.cos(Math.toRadians(X))",
"Math.cos",
"Math",
"Math.toRadians(X)",
"Math.toRadians",
"Math",
"X",
"ans = a*a + b*b - 2 * a * b * cos",
"ans",
"a*a + b*b - 2 * a * b * cos",
"a*a + b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"2 * a * b * cos",
"b",
"2 * a * b * cos",
"2",
"a",
"b",
"cos",
"System.out.println(Math.sqrt(ans))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(ans)",
"Math.sqrt",
"Math",
"ans",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n// \tFile file = new File(\"test.txt\");\n// \tScanner sc = new Scanner(file);\n \tScanner sc = new Scanner(System.in);\n \tdouble a = sc.nextDouble();\n \tdouble b = sc.nextDouble();\n \tint H = sc.nextInt();\n \tint M = sc.nextInt();\n \tsc.close();\n \tdouble ans = 0;\n \tdouble X = Math.abs((M * 6) - ((H * 30) + (M * 0.5)));\n \tif(X > 180){\n \t\tX = 360 - X;\n \t}\n \tdouble cos = Math.cos(Math.toRadians(X));\n \tans = a*a + b*b - 2 * a * b * cos;\n \tSystem.out.println(Math.sqrt(ans));\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n\n// \tFile file = new File(\"test.txt\");\n// \tScanner sc = new Scanner(file);\n \tScanner sc = new Scanner(System.in);\n \tdouble a = sc.nextDouble();\n \tdouble b = sc.nextDouble();\n \tint H = sc.nextInt();\n \tint M = sc.nextInt();\n \tsc.close();\n \tdouble ans = 0;\n \tdouble X = Math.abs((M * 6) - ((H * 30) + (M * 0.5)));\n \tif(X > 180){\n \t\tX = 360 - X;\n \t}\n \tdouble cos = Math.cos(Math.toRadians(X));\n \tans = a*a + b*b - 2 * a * b * cos;\n \tSystem.out.println(Math.sqrt(ans));\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
// File file = new File("test.txt");
// Scanner sc = new Scanner(file);
Scanner sc = new Scanner(System.in);
double a = sc.nextDouble();
double b = sc.nextDouble();
int H = sc.nextInt();
int M = sc.nextInt();
sc.close();
double ans = 0;
double X = Math.abs((M * 6) - ((H * 30) + (M * 0.5)));
if(X > 180){
X = 360 - X;
}
double cos = Math.cos(Math.toRadians(X));
ans = a*a + b*b - 2 * a * b * cos;
System.out.println(Math.sqrt(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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
2,
2,
17,
13,
13,
17,
2,
13,
17,
41,
13,
4,
18,
13,
2,
2,
4,
18,
13,
13,
17,
4,
18,
13,
13,
17,
2,
2,
2,
17,
13,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
34,
42
],
[
42,
43
],
[
42,
44
],
[
8,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
57,
61
],
[
50,
62
],
[
64,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //切り出しする文字列\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n double e = (60 * H + M) * 0.5 - M * 6;\n double r=Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(e)));\n System.out.println(r);\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //切り出しする文字列\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n double e = (60 * H + M) * 0.5 - M * 6;\n double r=Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(e)));\n System.out.println(r);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //切り出しする文字列\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n double e = (60 * H + M) * 0.5 - M * 6;\n double r=Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(e)));\n System.out.println(r);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n //切り出しする文字列\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n double e = (60 * H + M) * 0.5 - M * 6;\n double r=Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(e)));\n System.out.println(r);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int H = sc.nextInt();",
"H",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int M = sc.nextInt();",
"M",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double e = (60 * H + M) * 0.5 - M * 6;",
"e",
"(60 * H + M) * 0.5 - M * 6",
"(60 * H + M) * 0.5",
"(60 * H + M)",
"60 * H",
"60",
"H",
"M",
"0.5",
"M * 6",
"M",
"6",
"double r=Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(e)));",
"r",
"Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(e)))",
"Math.sqrt",
"Math",
"Math.pow(A,2) + Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(e))",
"Math.pow(A,2) + Math.pow(B,2)",
"Math.pow(A,2)",
"Math.pow",
"Math",
"A",
"2",
"Math.pow(B,2)",
"Math.pow",
"Math",
"B",
"2",
"2*A*B*Math.cos(Math.toRadians(e))",
"B",
"2*A*B*Math.cos(Math.toRadians(e))",
"2",
"A",
"B",
"Math.cos(Math.toRadians(e))",
"Math.cos",
"Math",
"Math.toRadians(e)",
"Math.toRadians",
"Math",
"e",
"System.out.println(r)",
"System.out.println",
"System.out",
"System",
"System.out",
"r",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //切り出しする文字列\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n double e = (60 * H + M) * 0.5 - M * 6;\n double r=Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(e)));\n System.out.println(r);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n //切り出しする文字列\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n double e = (60 * H + M) * 0.5 - M * 6;\n double r=Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(e)));\n System.out.println(r);\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//切り出しする文字列
int A = sc.nextInt();
int B = sc.nextInt();
int H = sc.nextInt();
int M = sc.nextInt();
double e = (60 * H + M) * 0.5 - M * 6;
double r=Math.sqrt(Math.pow(A,2) + Math.pow(B,2) - 2*A*B*Math.cos(Math.toRadians(e)));
System.out.println(r);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
2,
13,
17,
17,
41,
13,
4,
18,
13,
2,
2,
2,
17,
13,
17,
2,
2,
17,
13,
17,
41,
13,
4,
18,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
4,
18,
13,
2,
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
8,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
8,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
73,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
77,
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;\n\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tdouble A = s.nextDouble();// 時針の長さ\n double B = s.nextDouble(); //分針の長さ\n double H = s.nextDouble();\n double M = s.nextDouble();\n \n\n double radb = Math.toRadians((M*360)/60);\n double rada = Math.toRadians((360*H/12)+(360*M/720));\n\n /* System.out.println((M*360)/60+\" \"+((360*H/12)+(360*M/720))); //孤度法\n System.out.println(radb+\" \"+rada); //ラジアン */\n\n double ans =\n \t\tMath.sqrt(A*A + B*B - 2*A*B*Math.cos(rada-radb));\n\n System.out.println(ans);\n \n\n\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 s = new Scanner(System.in);\n\t\tdouble A = s.nextDouble();// 時針の長さ\n double B = s.nextDouble(); //分針の長さ\n double H = s.nextDouble();\n double M = s.nextDouble();\n \n\n double radb = Math.toRadians((M*360)/60);\n double rada = Math.toRadians((360*H/12)+(360*M/720));\n\n /* System.out.println((M*360)/60+\" \"+((360*H/12)+(360*M/720))); //孤度法\n System.out.println(radb+\" \"+rada); //ラジアン */\n\n double ans =\n \t\tMath.sqrt(A*A + B*B - 2*A*B*Math.cos(rada-radb));\n\n System.out.println(ans);\n \n\n\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tdouble A = s.nextDouble();// 時針の長さ\n double B = s.nextDouble(); //分針の長さ\n double H = s.nextDouble();\n double M = s.nextDouble();\n \n\n double radb = Math.toRadians((M*360)/60);\n double rada = Math.toRadians((360*H/12)+(360*M/720));\n\n /* System.out.println((M*360)/60+\" \"+((360*H/12)+(360*M/720))); //孤度法\n System.out.println(radb+\" \"+rada); //ラジアン */\n\n double ans =\n \t\tMath.sqrt(A*A + B*B - 2*A*B*Math.cos(rada-radb));\n\n System.out.println(ans);\n \n\n\n\n\t}",
"main",
"{\n\t\tScanner s = new Scanner(System.in);\n\t\tdouble A = s.nextDouble();// 時針の長さ\n double B = s.nextDouble(); //分針の長さ\n double H = s.nextDouble();\n double M = s.nextDouble();\n \n\n double radb = Math.toRadians((M*360)/60);\n double rada = Math.toRadians((360*H/12)+(360*M/720));\n\n /* System.out.println((M*360)/60+\" \"+((360*H/12)+(360*M/720))); //孤度法\n System.out.println(radb+\" \"+rada); //ラジアン */\n\n double ans =\n \t\tMath.sqrt(A*A + B*B - 2*A*B*Math.cos(rada-radb));\n\n System.out.println(ans);\n \n\n\n\n\t}",
"Scanner s = new Scanner(System.in);",
"s",
"new Scanner(System.in)",
"double A = s.nextDouble();",
"A",
"s.nextDouble()",
"s.nextDouble",
"s",
"double B = s.nextDouble();",
"B",
"s.nextDouble()",
"s.nextDouble",
"s",
"double H = s.nextDouble();",
"H",
"s.nextDouble()",
"s.nextDouble",
"s",
"double M = s.nextDouble();",
"M",
"s.nextDouble()",
"s.nextDouble",
"s",
"double radb = Math.toRadians((M*360)/60);",
"radb",
"Math.toRadians((M*360)/60)",
"Math.toRadians",
"Math",
"(M*360)/60",
"(M*360)",
"M",
"360",
"60",
"double rada = Math.toRadians((360*H/12)+(360*M/720));",
"rada",
"Math.toRadians((360*H/12)+(360*M/720))",
"Math.toRadians",
"Math",
"(360*H/12)+(360*M/720)",
"(360*H/12)",
"360*H",
"360",
"H",
"12",
"(360*M/720)",
"360*M",
"360",
"M",
"720",
"double ans =\n \t\tMath.sqrt(A*A + B*B - 2*A*B*Math.cos(rada-radb));",
"ans",
"Math.sqrt(A*A + B*B - 2*A*B*Math.cos(rada-radb))",
"Math.sqrt",
"Math",
"A*A + B*B - 2*A*B*Math.cos(rada-radb)",
"A*A + B*B",
"A*A",
"A",
"A",
"B*B",
"B",
"B",
"2*A*B*Math.cos(rada-radb)",
"B",
"2*A*B*Math.cos(rada-radb)",
"2",
"A",
"B",
"Math.cos(rada-radb)",
"Math.cos",
"Math",
"rada-radb",
"rada",
"radb",
"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\t\tScanner s = new Scanner(System.in);\n\t\tdouble A = s.nextDouble();// 時針の長さ\n double B = s.nextDouble(); //分針の長さ\n double H = s.nextDouble();\n double M = s.nextDouble();\n \n\n double radb = Math.toRadians((M*360)/60);\n double rada = Math.toRadians((360*H/12)+(360*M/720));\n\n /* System.out.println((M*360)/60+\" \"+((360*H/12)+(360*M/720))); //孤度法\n System.out.println(radb+\" \"+rada); //ラジアン */\n\n double ans =\n \t\tMath.sqrt(A*A + B*B - 2*A*B*Math.cos(rada-radb));\n\n System.out.println(ans);\n \n\n\n\n\t}\n\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner s = new Scanner(System.in);\n\t\tdouble A = s.nextDouble();// 時針の長さ\n double B = s.nextDouble(); //分針の長さ\n double H = s.nextDouble();\n double M = s.nextDouble();\n \n\n double radb = Math.toRadians((M*360)/60);\n double rada = Math.toRadians((360*H/12)+(360*M/720));\n\n /* System.out.println((M*360)/60+\" \"+((360*H/12)+(360*M/720))); //孤度法\n System.out.println(radb+\" \"+rada); //ラジアン */\n\n double ans =\n \t\tMath.sqrt(A*A + B*B - 2*A*B*Math.cos(rada-radb));\n\n System.out.println(ans);\n \n\n\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner s = new Scanner(System.in);
double A = s.nextDouble();// 時針の長さ
double B = s.nextDouble(); //分針の長さ
double H = s.nextDouble();
double M = s.nextDouble();
double radb = Math.toRadians((M*360)/60);
double rada = Math.toRadians((360*H/12)+(360*M/720));
/* System.out.println((M*360)/60+" "+((360*H/12)+(360*M/720))); //孤度法
System.out.println(radb+" "+rada); //ラジアン */
double ans =
Math.sqrt(A*A + B*B - 2*A*B*Math.cos(rada-radb));
System.out.println(ans);
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
17,
2,
2,
13,
17,
13,
41,
13,
2,
17,
13,
41,
13,
4,
18,
13,
2,
13,
13,
41,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
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
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
193,
17
],
[
193,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
20,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
20,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
20,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
20,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
20,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
20,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
20,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
71,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
20,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
18,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
104,
108
],
[
108,
109
],
[
104,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
104,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
120,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
119,
128
],
[
128,
129
],
[
129,
130
],
[
130,
131
],
[
130,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
129,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
118,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
104,
144
],
[
144,
145
],
[
144,
146
],
[
146,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
104,
153
],
[
153,
154
],
[
153,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
157,
160
],
[
160,
161
],
[
104,
162
],
[
162,
163
],
[
162,
164
],
[
164,
165
],
[
165,
166
],
[
166,
167
],
[
167,
168
],
[
166,
169
],
[
169,
170
],
[
104,
171
],
[
171,
172
],
[
171,
173
],
[
173,
174
],
[
174,
175
],
[
174,
176
],
[
173,
177
],
[
177,
178
],
[
178,
179
],
[
178,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
177,
184
],
[
184,
185
],
[
185,
186
],
[
185,
187
],
[
187,
188
],
[
188,
189
],
[
173,
190
],
[
190,
191
],
[
0,
192
],
[
192,
193
],
[
192,
194
]
] |
[
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.*;\npublic class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tdouble h = sc.nextDouble();\n\t\tdouble m = sc.nextDouble();\n\t\tdouble hour = 0.5 * (h * 60.0 + m);\n\t\tdouble minutes = 6.0 * m;\n\t\tdouble angle = Math.abs(hour - minutes);\n\n\t\t//System.out.println(Math.cos(angle));\n\t\tdouble ans = (a * a + b * b) - ((2.0 * a * b) * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.printf(\"%.20f\", Math.sqrt(ans));\n\n\n\t}\n}\n\n\n\n\n\nclass FastReader {\n\tBufferedReader br;\n\tStringTokenizer st;\n\n\tpublic FastReader() {\n\t\tbr = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t}\n\n\tString next() {\n\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}\n\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\n\tdouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\n\tString nextLine() {\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tdouble h = sc.nextDouble();\n\t\tdouble m = sc.nextDouble();\n\t\tdouble hour = 0.5 * (h * 60.0 + m);\n\t\tdouble minutes = 6.0 * m;\n\t\tdouble angle = Math.abs(hour - minutes);\n\n\t\t//System.out.println(Math.cos(angle));\n\t\tdouble ans = (a * a + b * b) - ((2.0 * a * b) * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.printf(\"%.20f\", Math.sqrt(ans));\n\n\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tdouble h = sc.nextDouble();\n\t\tdouble m = sc.nextDouble();\n\t\tdouble hour = 0.5 * (h * 60.0 + m);\n\t\tdouble minutes = 6.0 * m;\n\t\tdouble angle = Math.abs(hour - minutes);\n\n\t\t//System.out.println(Math.cos(angle));\n\t\tdouble ans = (a * a + b * b) - ((2.0 * a * b) * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.printf(\"%.20f\", Math.sqrt(ans));\n\n\n\t}",
"main",
"{\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tdouble h = sc.nextDouble();\n\t\tdouble m = sc.nextDouble();\n\t\tdouble hour = 0.5 * (h * 60.0 + m);\n\t\tdouble minutes = 6.0 * m;\n\t\tdouble angle = Math.abs(hour - minutes);\n\n\t\t//System.out.println(Math.cos(angle));\n\t\tdouble ans = (a * a + b * b) - ((2.0 * a * b) * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.printf(\"%.20f\", Math.sqrt(ans));\n\n\n\t}",
"FastReader sc = new FastReader();",
"sc",
"new FastReader()",
"PrintWriter pw = new PrintWriter(System.out);",
"pw",
"new PrintWriter(System.out)",
"double a = sc.nextDouble();",
"a",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double b = sc.nextDouble();",
"b",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double h = sc.nextDouble();",
"h",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double m = sc.nextDouble();",
"m",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double hour = 0.5 * (h * 60.0 + m);",
"hour",
"0.5 * (h * 60.0 + m)",
"0.5",
"(h * 60.0 + m)",
"h * 60.0",
"h",
"60.0",
"m",
"double minutes = 6.0 * m;",
"minutes",
"6.0 * m",
"6.0",
"m",
"double angle = Math.abs(hour - minutes);",
"angle",
"Math.abs(hour - minutes)",
"Math.abs",
"Math",
"hour - minutes",
"hour",
"minutes",
"double ans = (a * a + b * b) - ((2.0 * a * b) * Math.cos(Math.toRadians(angle)));",
"ans",
"(a * a + b * b) - ((2.0 * a * b) * Math.cos(Math.toRadians(angle)))",
"(a * a + b * b)",
"a * a",
"a",
"a",
"b * b",
"b",
"b",
"((2.0 * a * b) * Math.cos(Math.toRadians(angle)))",
"(2.0 * a * b)",
"2.0 * a * b",
"2.0",
"a",
"b",
"Math.cos(Math.toRadians(angle))",
"Math.cos",
"Math",
"Math.toRadians(angle)",
"Math.toRadians",
"Math",
"angle",
"System.out.printf(\"%.20f\", Math.sqrt(ans))",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%.20f\"",
"Math.sqrt(ans)",
"Math.sqrt",
"Math",
"ans",
"String[] args",
"args",
"class FastReader {\n\tBufferedReader br;\n\tStringTokenizer st;\n\n\tpublic FastReader() {\n\t\tbr = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t}\n\n\tString next() {\n\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}\n\n\tint nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}\n\n\tlong nextLong() {\n\t\treturn Long.parseLong(next());\n\t}\n\n\tdouble nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}\n\n\tString nextLine() {\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t}\n}",
"FastReader",
"BufferedReader br;",
"br",
"StringTokenizer st;",
"st",
"public FastReader() {\n\t\tbr = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t}",
"FastReader",
"{\n\t\tbr = new BufferedReader(new\n\t\t InputStreamReader(System.in));\n\t}",
"br = new BufferedReader(new\n\t\t InputStreamReader(System.in))",
"br",
"new BufferedReader(new\n\t\t InputStreamReader(System.in))",
"String next() {\n\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}",
"next",
"{\n\t\twhile (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}\n\t\treturn st.nextToken();\n\t}",
"while (st == null || !st.hasMoreElements()) {\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"st == null || !st.hasMoreElements()",
"st == null",
"st",
"null",
"!st.hasMoreElements()",
"st.hasMoreElements()",
"st.hasMoreElements",
"st",
"{\n\t\t\ttry {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}\n\t\t}",
"try {\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t} catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"catch (IOException e) {\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"IOException e",
"{\n\t\t\t\te.printStackTrace();\n\t\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\t\tst = new StringTokenizer(br.readLine());\n\t\t\t}",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"int nextInt() {\n\t\treturn Integer.parseInt(next());\n\t}",
"nextInt",
"{\n\t\treturn Integer.parseInt(next());\n\t}",
"return Integer.parseInt(next());",
"Integer.parseInt(next())",
"Integer.parseInt",
"Integer",
"next()",
"next",
"long nextLong() {\n\t\treturn Long.parseLong(next());\n\t}",
"nextLong",
"{\n\t\treturn Long.parseLong(next());\n\t}",
"return Long.parseLong(next());",
"Long.parseLong(next())",
"Long.parseLong",
"Long",
"next()",
"next",
"double nextDouble() {\n\t\treturn Double.parseDouble(next());\n\t}",
"nextDouble",
"{\n\t\treturn Double.parseDouble(next());\n\t}",
"return Double.parseDouble(next());",
"Double.parseDouble(next())",
"Double.parseDouble",
"Double",
"next()",
"next",
"String nextLine() {\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t}",
"nextLine",
"{\n\t\tString str = \"\";\n\t\ttry {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t\treturn str;\n\t}",
"String str = \"\";",
"str",
"\"\"",
"try {\n\t\t\tstr = br.readLine();\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tstr = br.readLine();\n\t\t}",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"return str;",
"str",
"public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tdouble h = sc.nextDouble();\n\t\tdouble m = sc.nextDouble();\n\t\tdouble hour = 0.5 * (h * 60.0 + m);\n\t\tdouble minutes = 6.0 * m;\n\t\tdouble angle = Math.abs(hour - minutes);\n\n\t\t//System.out.println(Math.cos(angle));\n\t\tdouble ans = (a * a + b * b) - ((2.0 * a * b) * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.printf(\"%.20f\", Math.sqrt(ans));\n\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)throws IOException {\n\t\tFastReader sc = new FastReader();\n\t\tPrintWriter pw = new PrintWriter(System.out);\n\t\tdouble a = sc.nextDouble();\n\t\tdouble b = sc.nextDouble();\n\t\tdouble h = sc.nextDouble();\n\t\tdouble m = sc.nextDouble();\n\t\tdouble hour = 0.5 * (h * 60.0 + m);\n\t\tdouble minutes = 6.0 * m;\n\t\tdouble angle = Math.abs(hour - minutes);\n\n\t\t//System.out.println(Math.cos(angle));\n\t\tdouble ans = (a * a + b * b) - ((2.0 * a * b) * Math.cos(Math.toRadians(angle)));\n\t\tSystem.out.printf(\"%.20f\", Math.sqrt(ans));\n\n\n\t}\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.*;
public class Main {
public static void main(String[] args)throws IOException {
FastReader sc = new FastReader();
PrintWriter pw = new PrintWriter(System.out);
double a = sc.nextDouble();
double b = sc.nextDouble();
double h = sc.nextDouble();
double m = sc.nextDouble();
double hour = 0.5 * (h * 60.0 + m);
double minutes = 6.0 * m;
double angle = Math.abs(hour - minutes);
//System.out.println(Math.cos(angle));
double ans = (a * a + b * b) - ((2.0 * a * b) * Math.cos(Math.toRadians(angle)));
System.out.printf("%.20f", Math.sqrt(ans));
}
}
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;
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
41,
13,
41,
13,
41,
13,
41,
13,
17,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
17,
41,
13,
20,
17,
42,
2,
13,
17,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
40,
13,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
0,
13,
18,
13,
17,
4,
13,
13,
13,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
0,
13,
2,
2,
2,
17,
13,
2,
17,
13,
2,
17,
13,
0,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
2,
13,
13,
4,
18,
18,
13,
13,
13,
29,
14,
2,
13,
17,
30,
0,
13,
2,
17,
13,
0,
13,
4,
18,
13,
13,
0,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
29,
23,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
196,
8
],
[
196,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
36,
40
],
[
11,
41
],
[
41,
42
],
[
41,
43
],
[
11,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
57,
59
],
[
49,
60
],
[
60,
61
],
[
11,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
11,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
11,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
11,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
11,
82
],
[
82,
83
],
[
82,
84
],
[
82,
85
],
[
82,
86
],
[
82,
87
],
[
11,
88
],
[
88,
89
],
[
89,
90
],
[
9,
91
],
[
91,
92
],
[
196,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
95,
100
],
[
100,
101
],
[
95,
102
],
[
102,
103
],
[
102,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
109,
111
],
[
104,
112
],
[
112,
113
],
[
112,
114
],
[
95,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
95,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
121,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
128,
130
],
[
125,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
125,
137
],
[
121,
138
],
[
138,
139
],
[
139,
140
],
[
139,
141
],
[
138,
142
],
[
142,
143
],
[
143,
144
],
[
143,
145
],
[
145,
146
],
[
145,
147
],
[
95,
148
],
[
148,
149
],
[
148,
150
],
[
150,
151
],
[
151,
152
],
[
150,
153
],
[
95,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
158,
159
],
[
158,
160
],
[
157,
161
],
[
161,
162
],
[
161,
163
],
[
156,
164
],
[
166,
165
],
[
165,
166
],
[
166,
167
],
[
166,
168
],
[
165,
169
],
[
166,
170
],
[
170,
171
],
[
171,
172
],
[
170,
173
],
[
95,
174
],
[
174,
175
],
[
174,
176
],
[
176,
177
],
[
177,
178
],
[
176,
179
],
[
95,
180
],
[
180,
181
],
[
181,
182
],
[
182,
183
],
[
182,
184
],
[
180,
185
],
[
95,
186
],
[
93,
187
],
[
187,
188
],
[
93,
189
],
[
189,
190
],
[
93,
191
],
[
191,
192
],
[
93,
193
],
[
193,
194
],
[
0,
195
],
[
195,
196
],
[
195,
197
]
] |
[
"import java.util.Scanner;\nimport java.util.ArrayList;\n \npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int A,B,H,M;\n int i = 0;\n String an = scan.nextLine();\n String atai[] = an.split(\" \",0);\n int num[] = new int[4];\n while(i < 4){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }\n A = num[0];\n B = num[1];\n H = num[2];\n M = num[3];\n// System.out.println(A+\",\"+B+\",\"+H+\",\"+M);\n check(A,B,H,M);\n scan.close();\n }\n \n public static void check(int a,int b,int h,int m){\n double ang;\n double result,c; \n ang = ((30*h + 0.5*m) - 6*m);\n ang = Math.abs(ang);\n// System.out.println(ang);\n if(ang == 180){\n result = a+b;\n System.out.println(result);\n return;\n }else if(ang > 180){\n ang = 360 -ang;\n// System.out.println(ang);\n }\n ang = Math.toRadians(ang);\n c = a*a + b*b - 2*a*b*Math.cos(ang);\n result = Math.sqrt(c);\n System.out.println(result);\n return;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int A,B,H,M;\n int i = 0;\n String an = scan.nextLine();\n String atai[] = an.split(\" \",0);\n int num[] = new int[4];\n while(i < 4){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }\n A = num[0];\n B = num[1];\n H = num[2];\n M = num[3];\n// System.out.println(A+\",\"+B+\",\"+H+\",\"+M);\n check(A,B,H,M);\n scan.close();\n }\n \n public static void check(int a,int b,int h,int m){\n double ang;\n double result,c; \n ang = ((30*h + 0.5*m) - 6*m);\n ang = Math.abs(ang);\n// System.out.println(ang);\n if(ang == 180){\n result = a+b;\n System.out.println(result);\n return;\n }else if(ang > 180){\n ang = 360 -ang;\n// System.out.println(ang);\n }\n ang = Math.toRadians(ang);\n c = a*a + b*b - 2*a*b*Math.cos(ang);\n result = Math.sqrt(c);\n System.out.println(result);\n return;\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int A,B,H,M;\n int i = 0;\n String an = scan.nextLine();\n String atai[] = an.split(\" \",0);\n int num[] = new int[4];\n while(i < 4){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }\n A = num[0];\n B = num[1];\n H = num[2];\n M = num[3];\n// System.out.println(A+\",\"+B+\",\"+H+\",\"+M);\n check(A,B,H,M);\n scan.close();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int A,B,H,M;\n int i = 0;\n String an = scan.nextLine();\n String atai[] = an.split(\" \",0);\n int num[] = new int[4];\n while(i < 4){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }\n A = num[0];\n B = num[1];\n H = num[2];\n M = num[3];\n// System.out.println(A+\",\"+B+\",\"+H+\",\"+M);\n check(A,B,H,M);\n scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"ArrayList<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"int A",
"A",
"B",
"B",
"H",
"H",
"M;",
"M",
"int i = 0;",
"i",
"0",
"String an = scan.nextLine();",
"an",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String atai[] = an.split(\" \",0);",
"atai",
"an.split(\" \",0)",
"an.split",
"an",
"\" \"",
"0",
"int num[] = new int[4];",
"num",
"new int[4]",
"4",
"while(i < 4){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }",
"i < 4",
"i",
"4",
"{\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }",
"num[i] = Integer.parseInt(atai[i])",
"num[i]",
"num",
"i",
"Integer.parseInt(atai[i])",
"Integer.parseInt",
"Integer",
"atai[i]",
"atai",
"i",
"i++",
"i",
"A = num[0]",
"A",
"num[0]",
"num",
"0",
"B = num[1]",
"B",
"num[1]",
"num",
"1",
"H = num[2]",
"H",
"num[2]",
"num",
"2",
"M = num[3]",
"M",
"num[3]",
"num",
"3",
"check(A,B,H,M)",
"check",
"A",
"B",
"H",
"M",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public static void check(int a,int b,int h,int m){\n double ang;\n double result,c; \n ang = ((30*h + 0.5*m) - 6*m);\n ang = Math.abs(ang);\n// System.out.println(ang);\n if(ang == 180){\n result = a+b;\n System.out.println(result);\n return;\n }else if(ang > 180){\n ang = 360 -ang;\n// System.out.println(ang);\n }\n ang = Math.toRadians(ang);\n c = a*a + b*b - 2*a*b*Math.cos(ang);\n result = Math.sqrt(c);\n System.out.println(result);\n return;\n }",
"check",
"{\n double ang;\n double result,c; \n ang = ((30*h + 0.5*m) - 6*m);\n ang = Math.abs(ang);\n// System.out.println(ang);\n if(ang == 180){\n result = a+b;\n System.out.println(result);\n return;\n }else if(ang > 180){\n ang = 360 -ang;\n// System.out.println(ang);\n }\n ang = Math.toRadians(ang);\n c = a*a + b*b - 2*a*b*Math.cos(ang);\n result = Math.sqrt(c);\n System.out.println(result);\n return;\n }",
"double ang;",
"ang",
"double result",
"result",
"c;",
"c",
"ang = ((30*h + 0.5*m) - 6*m)",
"ang",
"((30*h + 0.5*m) - 6*m)",
"(30*h + 0.5*m)",
"30*h",
"30",
"h",
"0.5*m",
"0.5",
"m",
"6*m",
"6",
"m",
"ang = Math.abs(ang)",
"ang",
"Math.abs(ang)",
"Math.abs",
"Math",
"ang",
"if(ang == 180){\n result = a+b;\n System.out.println(result);\n return;\n }else if(ang > 180){\n ang = 360 -ang;\n// System.out.println(ang);\n }",
"ang == 180",
"ang",
"180",
"{\n result = a+b;\n System.out.println(result);\n return;\n }",
"result = a+b",
"result",
"a+b",
"a",
"b",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"return;",
"if(ang > 180){\n ang = 360 -ang;\n// System.out.println(ang);\n }",
"ang > 180",
"ang",
"180",
"{\n ang = 360 -ang;\n// System.out.println(ang);\n }",
"ang = 360 -ang",
"ang",
"360 -ang",
"360",
"ang",
"ang = Math.toRadians(ang)",
"ang",
"Math.toRadians(ang)",
"Math.toRadians",
"Math",
"ang",
"c = a*a + b*b - 2*a*b*Math.cos(ang)",
"c",
"a*a + b*b - 2*a*b*Math.cos(ang)",
"a*a + b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"2*a*b*Math.cos(ang)",
"b",
"2*a*b*Math.cos(ang)",
"2",
"a",
"b",
"Math.cos(ang)",
"Math.cos",
"Math",
"ang",
"result = Math.sqrt(c)",
"result",
"Math.sqrt(c)",
"Math.sqrt",
"Math",
"c",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"return;",
"int a",
"a",
"int b",
"b",
"int h",
"h",
"int m",
"m",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int A,B,H,M;\n int i = 0;\n String an = scan.nextLine();\n String atai[] = an.split(\" \",0);\n int num[] = new int[4];\n while(i < 4){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }\n A = num[0];\n B = num[1];\n H = num[2];\n M = num[3];\n// System.out.println(A+\",\"+B+\",\"+H+\",\"+M);\n check(A,B,H,M);\n scan.close();\n }\n \n public static void check(int a,int b,int h,int m){\n double ang;\n double result,c; \n ang = ((30*h + 0.5*m) - 6*m);\n ang = Math.abs(ang);\n// System.out.println(ang);\n if(ang == 180){\n result = a+b;\n System.out.println(result);\n return;\n }else if(ang > 180){\n ang = 360 -ang;\n// System.out.println(ang);\n }\n ang = Math.toRadians(ang);\n c = a*a + b*b - 2*a*b*Math.cos(ang);\n result = Math.sqrt(c);\n System.out.println(result);\n return;\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n ArrayList<String> list = new ArrayList<String>();\n int A,B,H,M;\n int i = 0;\n String an = scan.nextLine();\n String atai[] = an.split(\" \",0);\n int num[] = new int[4];\n while(i < 4){\n num[i] = Integer.parseInt(atai[i]);\n i++;\n }\n A = num[0];\n B = num[1];\n H = num[2];\n M = num[3];\n// System.out.println(A+\",\"+B+\",\"+H+\",\"+M);\n check(A,B,H,M);\n scan.close();\n }\n \n public static void check(int a,int b,int h,int m){\n double ang;\n double result,c; \n ang = ((30*h + 0.5*m) - 6*m);\n ang = Math.abs(ang);\n// System.out.println(ang);\n if(ang == 180){\n result = a+b;\n System.out.println(result);\n return;\n }else if(ang > 180){\n ang = 360 -ang;\n// System.out.println(ang);\n }\n ang = Math.toRadians(ang);\n c = a*a + b*b - 2*a*b*Math.cos(ang);\n result = Math.sqrt(c);\n System.out.println(result);\n return;\n }\n}",
"Main"
] |
import java.util.Scanner;
import java.util.ArrayList;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
ArrayList<String> list = new ArrayList<String>();
int A,B,H,M;
int i = 0;
String an = scan.nextLine();
String atai[] = an.split(" ",0);
int num[] = new int[4];
while(i < 4){
num[i] = Integer.parseInt(atai[i]);
i++;
}
A = num[0];
B = num[1];
H = num[2];
M = num[3];
// System.out.println(A+","+B+","+H+","+M);
check(A,B,H,M);
scan.close();
}
public static void check(int a,int b,int h,int m){
double ang;
double result,c;
ang = ((30*h + 0.5*m) - 6*m);
ang = Math.abs(ang);
// System.out.println(ang);
if(ang == 180){
result = a+b;
System.out.println(result);
return;
}else if(ang > 180){
ang = 360 -ang;
// System.out.println(ang);
}
ang = Math.toRadians(ang);
c = a*a + b*b - 2*a*b*Math.cos(ang);
result = Math.sqrt(c);
System.out.println(result);
return;
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
17,
13,
41,
13,
4,
18,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
2,
2,
13,
17,
2,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
8,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
51
],
[
44,
52
],
[
54,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] |
[
"// 提出時に消す\n\n\nimport java.util.Scanner;\n\n// 提出時にMainに変更する\npublic class Main {\n public static void main(String[] args) throws Exception {\n // System.out.println(\"Hello Java\");\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n\n double allmin = h * 60 + m;\n\n // ans^2 = a^2 + b^2 + 2ab * cos(Ans)\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6)))));\n\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) throws Exception {\n // System.out.println(\"Hello Java\");\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n\n double allmin = h * 60 + m;\n\n // ans^2 = a^2 + b^2 + 2ab * cos(Ans)\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6)))));\n\n System.out.println(ans);\n sc.close();\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // System.out.println(\"Hello Java\");\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n\n double allmin = h * 60 + m;\n\n // ans^2 = a^2 + b^2 + 2ab * cos(Ans)\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6)))));\n\n System.out.println(ans);\n sc.close();\n }",
"main",
"{\n // System.out.println(\"Hello Java\");\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n\n double allmin = h * 60 + m;\n\n // ans^2 = a^2 + b^2 + 2ab * cos(Ans)\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6)))));\n\n System.out.println(ans);\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double a = sc.nextDouble();",
"a",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double b = sc.nextDouble();",
"b",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double h = sc.nextDouble();",
"h",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double m = sc.nextDouble();",
"m",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double allmin = h * 60 + m;",
"allmin",
"h * 60 + m",
"h * 60",
"h",
"60",
"m",
"double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6)))));",
"ans",
"Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6)))))",
"Math.sqrt",
"Math",
"a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6))))",
"a * a + b * b",
"a * a",
"a",
"a",
"b * b",
"b",
"b",
"2 * a * b * Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6))))",
"b",
"2 * a * b * Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6))))",
"2",
"a",
"b",
"Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6))))",
"Math.cos",
"Math",
"Math.toRadians(Math.abs((allmin / 2) - (m * 6)))",
"Math.toRadians",
"Math",
"Math.abs((allmin / 2) - (m * 6))",
"Math.abs",
"Math",
"(allmin / 2) - (m * 6)",
"(allmin / 2)",
"allmin",
"2",
"(m * 6)",
"m",
"6",
"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) throws Exception {\n // System.out.println(\"Hello Java\");\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n\n double allmin = h * 60 + m;\n\n // ans^2 = a^2 + b^2 + 2ab * cos(Ans)\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6)))));\n\n System.out.println(ans);\n sc.close();\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n // System.out.println(\"Hello Java\");\n Scanner sc = new Scanner(System.in);\n double a = sc.nextDouble();\n double b = sc.nextDouble();\n double h = sc.nextDouble();\n double m = sc.nextDouble();\n\n double allmin = h * 60 + m;\n\n // ans^2 = a^2 + b^2 + 2ab * cos(Ans)\n double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6)))));\n\n System.out.println(ans);\n sc.close();\n }\n}",
"Main"
] |
// 提出時に消す
import java.util.Scanner;
// 提出時にMainに変更する
public class Main {
public static void main(String[] args) throws Exception {
// System.out.println("Hello Java");
Scanner sc = new Scanner(System.in);
double a = sc.nextDouble();
double b = sc.nextDouble();
double h = sc.nextDouble();
double m = sc.nextDouble();
double allmin = h * 60 + m;
// ans^2 = a^2 + b^2 + 2ab * cos(Ans)
double ans = Math.sqrt(a * a + b * b - 2 * a * b * Math.cos(Math.toRadians(Math.abs((allmin / 2) - (m * 6)))));
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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
4,
18,
13,
4,
18,
13,
2,
2,
13,
17,
2,
13,
17,
41,
13,
2,
13,
4,
18,
13,
4,
18,
13,
2,
2,
13,
17,
2,
13,
17,
41,
13,
2,
13,
4,
18,
13,
4,
18,
13,
2,
13,
17,
41,
13,
2,
13,
4,
18,
13,
4,
18,
13,
2,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
2,
4,
18,
13,
2,
13,
13,
17,
4,
18,
13,
2,
13,
13,
17,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
118,
5
],
[
118,
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
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
46,
48
],
[
8,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
76,
78
],
[
8,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
89,
91
],
[
8,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
98,
99
],
[
97,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
104,
105
],
[
104,
106
],
[
101,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
111,
112
],
[
111,
113
],
[
108,
114
],
[
6,
115
],
[
115,
116
],
[
0,
117
],
[
117,
118
],
[
117,
119
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n \n double H1 = A*Math.sin(Math.toRadians(H*30+M*0.5));\n double H2 = A*Math.cos(Math.toRadians(H*30+M*0.5));\n double M1 = B*Math.sin(Math.toRadians(M*6));\n double M2 = B*Math.cos(Math.toRadians(M*6));\n \n System.out.println(Math.sqrt(Math.pow((H1-M1), 2) + Math.pow((H2-M2), 2)));\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 double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n \n double H1 = A*Math.sin(Math.toRadians(H*30+M*0.5));\n double H2 = A*Math.cos(Math.toRadians(H*30+M*0.5));\n double M1 = B*Math.sin(Math.toRadians(M*6));\n double M2 = B*Math.cos(Math.toRadians(M*6));\n \n System.out.println(Math.sqrt(Math.pow((H1-M1), 2) + Math.pow((H2-M2), 2)));\n \n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n \n double H1 = A*Math.sin(Math.toRadians(H*30+M*0.5));\n double H2 = A*Math.cos(Math.toRadians(H*30+M*0.5));\n double M1 = B*Math.sin(Math.toRadians(M*6));\n double M2 = B*Math.cos(Math.toRadians(M*6));\n \n System.out.println(Math.sqrt(Math.pow((H1-M1), 2) + Math.pow((H2-M2), 2)));\n \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n \n double H1 = A*Math.sin(Math.toRadians(H*30+M*0.5));\n double H2 = A*Math.cos(Math.toRadians(H*30+M*0.5));\n double M1 = B*Math.sin(Math.toRadians(M*6));\n double M2 = B*Math.cos(Math.toRadians(M*6));\n \n System.out.println(Math.sqrt(Math.pow((H1-M1), 2) + Math.pow((H2-M2), 2)));\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double A = sc.nextDouble();",
"A",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double B = sc.nextDouble();",
"B",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double H = sc.nextDouble();",
"H",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double M = sc.nextDouble();",
"M",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double H1 = A*Math.sin(Math.toRadians(H*30+M*0.5));",
"H1",
"A*Math.sin(Math.toRadians(H*30+M*0.5))",
"A",
"Math.sin(Math.toRadians(H*30+M*0.5))",
"Math.sin",
"Math",
"Math.toRadians(H*30+M*0.5)",
"Math.toRadians",
"Math",
"H*30+M*0.5",
"H*30",
"H",
"30",
"M*0.5",
"M",
"0.5",
"double H2 = A*Math.cos(Math.toRadians(H*30+M*0.5));",
"H2",
"A*Math.cos(Math.toRadians(H*30+M*0.5))",
"A",
"Math.cos(Math.toRadians(H*30+M*0.5))",
"Math.cos",
"Math",
"Math.toRadians(H*30+M*0.5)",
"Math.toRadians",
"Math",
"H*30+M*0.5",
"H*30",
"H",
"30",
"M*0.5",
"M",
"0.5",
"double M1 = B*Math.sin(Math.toRadians(M*6));",
"M1",
"B*Math.sin(Math.toRadians(M*6))",
"B",
"Math.sin(Math.toRadians(M*6))",
"Math.sin",
"Math",
"Math.toRadians(M*6)",
"Math.toRadians",
"Math",
"M*6",
"M",
"6",
"double M2 = B*Math.cos(Math.toRadians(M*6));",
"M2",
"B*Math.cos(Math.toRadians(M*6))",
"B",
"Math.cos(Math.toRadians(M*6))",
"Math.cos",
"Math",
"Math.toRadians(M*6)",
"Math.toRadians",
"Math",
"M*6",
"M",
"6",
"System.out.println(Math.sqrt(Math.pow((H1-M1), 2) + Math.pow((H2-M2), 2)))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(Math.pow((H1-M1), 2) + Math.pow((H2-M2), 2))",
"Math.sqrt",
"Math",
"Math.pow((H1-M1), 2) + Math.pow((H2-M2), 2)",
"Math.pow((H1-M1), 2)",
"Math.pow",
"Math",
"(H1-M1)",
"H1",
"M1",
"2",
"Math.pow((H2-M2), 2)",
"Math.pow",
"Math",
"(H2-M2)",
"H2",
"M2",
"2",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n \n double H1 = A*Math.sin(Math.toRadians(H*30+M*0.5));\n double H2 = A*Math.cos(Math.toRadians(H*30+M*0.5));\n double M1 = B*Math.sin(Math.toRadians(M*6));\n double M2 = B*Math.cos(Math.toRadians(M*6));\n \n System.out.println(Math.sqrt(Math.pow((H1-M1), 2) + Math.pow((H2-M2), 2)));\n \n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double A = sc.nextDouble();\n double B = sc.nextDouble();\n double H = sc.nextDouble();\n double M = sc.nextDouble();\n \n double H1 = A*Math.sin(Math.toRadians(H*30+M*0.5));\n double H2 = A*Math.cos(Math.toRadians(H*30+M*0.5));\n double M1 = B*Math.sin(Math.toRadians(M*6));\n double M2 = B*Math.cos(Math.toRadians(M*6));\n \n System.out.println(Math.sqrt(Math.pow((H1-M1), 2) + Math.pow((H2-M2), 2)));\n \n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double A = sc.nextDouble();
double B = sc.nextDouble();
double H = sc.nextDouble();
double M = sc.nextDouble();
double H1 = A*Math.sin(Math.toRadians(H*30+M*0.5));
double H2 = A*Math.cos(Math.toRadians(H*30+M*0.5));
double M1 = B*Math.sin(Math.toRadians(M*6));
double M2 = B*Math.cos(Math.toRadians(M*6));
System.out.println(Math.sqrt(Math.pow((H1-M1), 2) + Math.pow((H2-M2), 2)));
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
17,
41,
13,
2,
2,
13,
17,
2,
13,
17,
41,
13,
4,
18,
13,
2,
13,
13,
41,
13,
2,
2,
13,
17,
17,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
13,
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
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
8,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
8,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
8,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
77,
79
],
[
72,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
80,
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 public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int A=sc.nextInt();\n int B=sc.nextInt();\n int H=sc.nextInt();\n int M=sc.nextInt();\n double x=M*6;\n double y=H*30+M*0.5;\n double t=Math.abs(x-y);\n double rad=t*3.141592653589/180;\n double cos=Math.cos(rad);\n double X=Math.sqrt((A*A)+(B*B)-(2*A*B*cos));\n System.out.println(X);\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 A=sc.nextInt();\n int B=sc.nextInt();\n int H=sc.nextInt();\n int M=sc.nextInt();\n double x=M*6;\n double y=H*30+M*0.5;\n double t=Math.abs(x-y);\n double rad=t*3.141592653589/180;\n double cos=Math.cos(rad);\n double X=Math.sqrt((A*A)+(B*B)-(2*A*B*cos));\n System.out.println(X);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int A=sc.nextInt();\n int B=sc.nextInt();\n int H=sc.nextInt();\n int M=sc.nextInt();\n double x=M*6;\n double y=H*30+M*0.5;\n double t=Math.abs(x-y);\n double rad=t*3.141592653589/180;\n double cos=Math.cos(rad);\n double X=Math.sqrt((A*A)+(B*B)-(2*A*B*cos));\n System.out.println(X);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int A=sc.nextInt();\n int B=sc.nextInt();\n int H=sc.nextInt();\n int M=sc.nextInt();\n double x=M*6;\n double y=H*30+M*0.5;\n double t=Math.abs(x-y);\n double rad=t*3.141592653589/180;\n double cos=Math.cos(rad);\n double X=Math.sqrt((A*A)+(B*B)-(2*A*B*cos));\n System.out.println(X);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int A=sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B=sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int H=sc.nextInt();",
"H",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int M=sc.nextInt();",
"M",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double x=M*6;",
"x",
"M*6",
"M",
"6",
"double y=H*30+M*0.5;",
"y",
"H*30+M*0.5",
"H*30",
"H",
"30",
"M*0.5",
"M",
"0.5",
"double t=Math.abs(x-y);",
"t",
"Math.abs(x-y)",
"Math.abs",
"Math",
"x-y",
"x",
"y",
"double rad=t*3.141592653589/180;",
"rad",
"t*3.141592653589/180",
"t*3.141592653589",
"t",
"3.141592653589",
"180",
"double cos=Math.cos(rad);",
"cos",
"Math.cos(rad)",
"Math.cos",
"Math",
"rad",
"double X=Math.sqrt((A*A)+(B*B)-(2*A*B*cos));",
"X",
"Math.sqrt((A*A)+(B*B)-(2*A*B*cos))",
"Math.sqrt",
"Math",
"(A*A)+(B*B)-(2*A*B*cos)",
"(A*A)+(B*B)",
"(A*A)",
"A",
"A",
"(B*B)",
"B",
"B",
"(2*A*B*cos)",
"B",
"2*A*B*cos",
"2",
"A",
"B",
"cos",
"System.out.println(X)",
"System.out.println",
"System.out",
"System",
"System.out",
"X",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int A=sc.nextInt();\n int B=sc.nextInt();\n int H=sc.nextInt();\n int M=sc.nextInt();\n double x=M*6;\n double y=H*30+M*0.5;\n double t=Math.abs(x-y);\n double rad=t*3.141592653589/180;\n double cos=Math.cos(rad);\n double X=Math.sqrt((A*A)+(B*B)-(2*A*B*cos));\n System.out.println(X);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int A=sc.nextInt();\n int B=sc.nextInt();\n int H=sc.nextInt();\n int M=sc.nextInt();\n double x=M*6;\n double y=H*30+M*0.5;\n double t=Math.abs(x-y);\n double rad=t*3.141592653589/180;\n double cos=Math.cos(rad);\n double X=Math.sqrt((A*A)+(B*B)-(2*A*B*cos));\n System.out.println(X);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int A=sc.nextInt();
int B=sc.nextInt();
int H=sc.nextInt();
int M=sc.nextInt();
double x=M*6;
double y=H*30+M*0.5;
double t=Math.abs(x-y);
double rad=t*3.141592653589/180;
double cos=Math.cos(rad);
double X=Math.sqrt((A*A)+(B*B)-(2*A*B*cos));
System.out.println(X);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
13,
4,
18,
13,
2,
2,
18,
13,
13,
2,
2,
17,
13,
13,
17,
41,
13,
2,
13,
4,
18,
13,
2,
2,
18,
13,
13,
2,
2,
17,
13,
13,
17,
41,
13,
2,
13,
4,
18,
13,
2,
2,
18,
13,
13,
13,
17,
41,
13,
2,
13,
4,
18,
13,
2,
2,
18,
13,
13,
13,
17,
41,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
13,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
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
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
39,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
57,
67
],
[
8,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
8,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
8,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
103,
104
],
[
103,
105
],
[
98,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
110,
111
],
[
110,
112
],
[
8,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
8,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
6,
125
],
[
125,
126
],
[
0,
127
],
[
127,
128
],
[
127,
129
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\t//固定端を原点として,デカルト座標系における各針の先端の座標を計算.\n\t\tdouble Ax = A * Math.sin(Math.PI * ((60 * H) + M) / 360);\n\t\tdouble Ay = A * Math.cos(Math.PI * ((60 * H) + M) / 360);\n\n\t\tdouble Bx = B * Math.sin(Math.PI * M / 30);\n\t\tdouble By = B * Math.cos(Math.PI * M / 30);\n\n\t\tdouble d_square = (Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By);\n\t\tdouble d = Math.sqrt(d_square);\n\n\t\tSystem.out.println(d);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\t//固定端を原点として,デカルト座標系における各針の先端の座標を計算.\n\t\tdouble Ax = A * Math.sin(Math.PI * ((60 * H) + M) / 360);\n\t\tdouble Ay = A * Math.cos(Math.PI * ((60 * H) + M) / 360);\n\n\t\tdouble Bx = B * Math.sin(Math.PI * M / 30);\n\t\tdouble By = B * Math.cos(Math.PI * M / 30);\n\n\t\tdouble d_square = (Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By);\n\t\tdouble d = Math.sqrt(d_square);\n\n\t\tSystem.out.println(d);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\t//固定端を原点として,デカルト座標系における各針の先端の座標を計算.\n\t\tdouble Ax = A * Math.sin(Math.PI * ((60 * H) + M) / 360);\n\t\tdouble Ay = A * Math.cos(Math.PI * ((60 * H) + M) / 360);\n\n\t\tdouble Bx = B * Math.sin(Math.PI * M / 30);\n\t\tdouble By = B * Math.cos(Math.PI * M / 30);\n\n\t\tdouble d_square = (Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By);\n\t\tdouble d = Math.sqrt(d_square);\n\n\t\tSystem.out.println(d);\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\t//固定端を原点として,デカルト座標系における各針の先端の座標を計算.\n\t\tdouble Ax = A * Math.sin(Math.PI * ((60 * H) + M) / 360);\n\t\tdouble Ay = A * Math.cos(Math.PI * ((60 * H) + M) / 360);\n\n\t\tdouble Bx = B * Math.sin(Math.PI * M / 30);\n\t\tdouble By = B * Math.cos(Math.PI * M / 30);\n\n\t\tdouble d_square = (Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By);\n\t\tdouble d = Math.sqrt(d_square);\n\n\t\tSystem.out.println(d);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int A = scan.nextInt();",
"A",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int B = scan.nextInt();",
"B",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int H = scan.nextInt();",
"H",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int M = scan.nextInt();",
"M",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double Ax = A * Math.sin(Math.PI * ((60 * H) + M) / 360);",
"Ax",
"A * Math.sin(Math.PI * ((60 * H) + M) / 360)",
"A",
"Math.sin(Math.PI * ((60 * H) + M) / 360)",
"Math.sin",
"Math",
"Math.PI * ((60 * H) + M) / 360",
"Math.PI * ((60 * H) + M)",
"Math.PI",
"Math",
"Math.PI",
"((60 * H) + M)",
"(60 * H)",
"60",
"H",
"M",
"360",
"double Ay = A * Math.cos(Math.PI * ((60 * H) + M) / 360);",
"Ay",
"A * Math.cos(Math.PI * ((60 * H) + M) / 360)",
"A",
"Math.cos(Math.PI * ((60 * H) + M) / 360)",
"Math.cos",
"Math",
"Math.PI * ((60 * H) + M) / 360",
"Math.PI * ((60 * H) + M)",
"Math.PI",
"Math",
"Math.PI",
"((60 * H) + M)",
"(60 * H)",
"60",
"H",
"M",
"360",
"double Bx = B * Math.sin(Math.PI * M / 30);",
"Bx",
"B * Math.sin(Math.PI * M / 30)",
"B",
"Math.sin(Math.PI * M / 30)",
"Math.sin",
"Math",
"Math.PI * M / 30",
"Math.PI * M",
"Math.PI",
"Math",
"Math.PI",
"M",
"30",
"double By = B * Math.cos(Math.PI * M / 30);",
"By",
"B * Math.cos(Math.PI * M / 30)",
"B",
"Math.cos(Math.PI * M / 30)",
"Math.cos",
"Math",
"Math.PI * M / 30",
"Math.PI * M",
"Math.PI",
"Math",
"Math.PI",
"M",
"30",
"double d_square = (Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By);",
"d_square",
"(Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By)",
"(Ax - Bx) * (Ax - Bx)",
"(Ax - Bx)",
"Ax",
"Bx",
"(Ax - Bx)",
"Ax",
"Bx",
"(Ay - By) * (Ay - By)",
"(Ay - By)",
"Ay",
"By",
"(Ay - By)",
"Ay",
"By",
"double d = Math.sqrt(d_square);",
"d",
"Math.sqrt(d_square)",
"Math.sqrt",
"Math",
"d_square",
"System.out.println(d)",
"System.out.println",
"System.out",
"System",
"System.out",
"d",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\t//固定端を原点として,デカルト座標系における各針の先端の座標を計算.\n\t\tdouble Ax = A * Math.sin(Math.PI * ((60 * H) + M) / 360);\n\t\tdouble Ay = A * Math.cos(Math.PI * ((60 * H) + M) / 360);\n\n\t\tdouble Bx = B * Math.sin(Math.PI * M / 30);\n\t\tdouble By = B * Math.cos(Math.PI * M / 30);\n\n\t\tdouble d_square = (Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By);\n\t\tdouble d = Math.sqrt(d_square);\n\n\t\tSystem.out.println(d);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tint A = scan.nextInt();\n\t\tint B = scan.nextInt();\n\t\tint H = scan.nextInt();\n\t\tint M = scan.nextInt();\n\t\t//固定端を原点として,デカルト座標系における各針の先端の座標を計算.\n\t\tdouble Ax = A * Math.sin(Math.PI * ((60 * H) + M) / 360);\n\t\tdouble Ay = A * Math.cos(Math.PI * ((60 * H) + M) / 360);\n\n\t\tdouble Bx = B * Math.sin(Math.PI * M / 30);\n\t\tdouble By = B * Math.cos(Math.PI * M / 30);\n\n\t\tdouble d_square = (Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By);\n\t\tdouble d = Math.sqrt(d_square);\n\n\t\tSystem.out.println(d);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
int B = scan.nextInt();
int H = scan.nextInt();
int M = scan.nextInt();
//固定端を原点として,デカルト座標系における各針の先端の座標を計算.
double Ax = A * Math.sin(Math.PI * ((60 * H) + M) / 360);
double Ay = A * Math.cos(Math.PI * ((60 * H) + M) / 360);
double Bx = B * Math.sin(Math.PI * M / 30);
double By = B * Math.cos(Math.PI * M / 30);
double d_square = (Ax - Bx) * (Ax - Bx) + (Ay - By) * (Ay - By);
double d = Math.sqrt(d_square);
System.out.println(d);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
17,
17,
17,
41,
13,
2,
17,
17,
41,
13,
2,
2,
17,
17,
13,
41,
13,
2,
13,
4,
18,
13,
4,
18,
13,
2,
2,
2,
13,
13,
17,
13,
41,
13,
2,
13,
4,
18,
13,
4,
18,
13,
2,
2,
2,
13,
13,
17,
13,
41,
13,
2,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
41,
13,
2,
13,
4,
18,
13,
4,
18,
13,
2,
13,
13,
41,
13,
4,
18,
13,
2,
4,
18,
13,
2,
13,
13,
17,
4,
18,
13,
2,
13,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
140,
5
],
[
140,
6
],
[
6,
7
],
[
6,
8
],
[
140,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
11,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
11,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
41,
43
],
[
11,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
11,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
63,
63
],
[
63,
64
],
[
63,
65
],
[
63,
66
],
[
61,
67
],
[
11,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
78,
79
],
[
80,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
78,
84
],
[
11,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
95,
97
],
[
11,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
105,
106
],
[
106,
107
],
[
105,
108
],
[
108,
109
],
[
108,
110
],
[
11,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
114,
115
],
[
113,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
117,
120
],
[
120,
121
],
[
120,
122
],
[
117,
123
],
[
116,
124
],
[
124,
125
],
[
125,
126
],
[
124,
127
],
[
127,
128
],
[
127,
129
],
[
124,
130
],
[
11,
131
],
[
131,
132
],
[
132,
133
],
[
133,
134
],
[
133,
135
],
[
131,
136
],
[
9,
137
],
[
137,
138
],
[
0,
139
],
[
139,
140
],
[
139,
141
]
] |
[
"import java.util.Scanner;\n\npublic class Main {\n\tstatic Scanner src = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint a = src.nextInt();\n\t\tint b = src.nextInt();\n\t\tint h = src.nextInt();\n\t\tint m = src.nextInt();\n\t\tdouble radmH = (360.0/12.0)/60.0; // rad / min\n\t\tdouble radmM = (360/60);\n\n\t\tdouble c = (30.0 / 60.0)*m;\n\t\tdouble hx = a * Math.cos(Math.toRadians(radmH*h*60 + c));// hにおける1分あたりの角速度\n\t\tdouble hy = a * Math.sin(Math.toRadians(radmH*h*60 + c));\n\t\tdouble mx = b * Math.cos(Math.toRadians(radmM*m));\t\t// mにおける1分あたりの角速度\n\t\tdouble my = b * Math.sin(Math.toRadians(radmM*m));\n\t\tdouble dist = Math.sqrt(Math.pow((hx - mx), 2.0) + Math.pow(hy - my, 2.0));\n\t\tSystem.out.println(dist);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic Scanner src = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint a = src.nextInt();\n\t\tint b = src.nextInt();\n\t\tint h = src.nextInt();\n\t\tint m = src.nextInt();\n\t\tdouble radmH = (360.0/12.0)/60.0; // rad / min\n\t\tdouble radmM = (360/60);\n\n\t\tdouble c = (30.0 / 60.0)*m;\n\t\tdouble hx = a * Math.cos(Math.toRadians(radmH*h*60 + c));// hにおける1分あたりの角速度\n\t\tdouble hy = a * Math.sin(Math.toRadians(radmH*h*60 + c));\n\t\tdouble mx = b * Math.cos(Math.toRadians(radmM*m));\t\t// mにおける1分あたりの角速度\n\t\tdouble my = b * Math.sin(Math.toRadians(radmM*m));\n\t\tdouble dist = Math.sqrt(Math.pow((hx - mx), 2.0) + Math.pow(hy - my, 2.0));\n\t\tSystem.out.println(dist);\n\t}\n}",
"Main",
"static Scanner src = new Scanner(System.in);",
"src",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\tint a = src.nextInt();\n\t\tint b = src.nextInt();\n\t\tint h = src.nextInt();\n\t\tint m = src.nextInt();\n\t\tdouble radmH = (360.0/12.0)/60.0; // rad / min\n\t\tdouble radmM = (360/60);\n\n\t\tdouble c = (30.0 / 60.0)*m;\n\t\tdouble hx = a * Math.cos(Math.toRadians(radmH*h*60 + c));// hにおける1分あたりの角速度\n\t\tdouble hy = a * Math.sin(Math.toRadians(radmH*h*60 + c));\n\t\tdouble mx = b * Math.cos(Math.toRadians(radmM*m));\t\t// mにおける1分あたりの角速度\n\t\tdouble my = b * Math.sin(Math.toRadians(radmM*m));\n\t\tdouble dist = Math.sqrt(Math.pow((hx - mx), 2.0) + Math.pow(hy - my, 2.0));\n\t\tSystem.out.println(dist);\n\t}",
"main",
"{\n\t\tint a = src.nextInt();\n\t\tint b = src.nextInt();\n\t\tint h = src.nextInt();\n\t\tint m = src.nextInt();\n\t\tdouble radmH = (360.0/12.0)/60.0; // rad / min\n\t\tdouble radmM = (360/60);\n\n\t\tdouble c = (30.0 / 60.0)*m;\n\t\tdouble hx = a * Math.cos(Math.toRadians(radmH*h*60 + c));// hにおける1分あたりの角速度\n\t\tdouble hy = a * Math.sin(Math.toRadians(radmH*h*60 + c));\n\t\tdouble mx = b * Math.cos(Math.toRadians(radmM*m));\t\t// mにおける1分あたりの角速度\n\t\tdouble my = b * Math.sin(Math.toRadians(radmM*m));\n\t\tdouble dist = Math.sqrt(Math.pow((hx - mx), 2.0) + Math.pow(hy - my, 2.0));\n\t\tSystem.out.println(dist);\n\t}",
"int a = src.nextInt();",
"a",
"src.nextInt()",
"src.nextInt",
"src",
"int b = src.nextInt();",
"b",
"src.nextInt()",
"src.nextInt",
"src",
"int h = src.nextInt();",
"h",
"src.nextInt()",
"src.nextInt",
"src",
"int m = src.nextInt();",
"m",
"src.nextInt()",
"src.nextInt",
"src",
"double radmH = (360.0/12.0)/60.0;",
"radmH",
"(360.0/12.0)/60.0",
"(360.0/12.0)",
"360.0",
"12.0",
"60.0",
"double radmM = (360/60);",
"radmM",
"(360/60)",
"360",
"60",
"double c = (30.0 / 60.0)*m;",
"c",
"(30.0 / 60.0)*m",
"(30.0 / 60.0)",
"30.0",
"60.0",
"m",
"double hx = a * Math.cos(Math.toRadians(radmH*h*60 + c));",
"hx",
"a * Math.cos(Math.toRadians(radmH*h*60 + c))",
"a",
"Math.cos(Math.toRadians(radmH*h*60 + c))",
"Math.cos",
"Math",
"Math.toRadians(radmH*h*60 + c)",
"Math.toRadians",
"Math",
"radmH*h*60 + c",
"radmH*h*60",
"radmH*h*60",
"radmH",
"h",
"60",
"c",
"double hy = a * Math.sin(Math.toRadians(radmH*h*60 + c));",
"hy",
"a * Math.sin(Math.toRadians(radmH*h*60 + c))",
"a",
"Math.sin(Math.toRadians(radmH*h*60 + c))",
"Math.sin",
"Math",
"Math.toRadians(radmH*h*60 + c)",
"Math.toRadians",
"Math",
"radmH*h*60 + c",
"radmH*h*60",
"radmH*h*60",
"radmH",
"h",
"60",
"c",
"double mx = b * Math.cos(Math.toRadians(radmM*m));",
"mx",
"b * Math.cos(Math.toRadians(radmM*m))",
"b",
"Math.cos(Math.toRadians(radmM*m))",
"Math.cos",
"Math",
"Math.toRadians(radmM*m)",
"Math.toRadians",
"Math",
"radmM*m",
"radmM",
"m",
"double my = b * Math.sin(Math.toRadians(radmM*m));",
"my",
"b * Math.sin(Math.toRadians(radmM*m))",
"b",
"Math.sin(Math.toRadians(radmM*m))",
"Math.sin",
"Math",
"Math.toRadians(radmM*m)",
"Math.toRadians",
"Math",
"radmM*m",
"radmM",
"m",
"double dist = Math.sqrt(Math.pow((hx - mx), 2.0) + Math.pow(hy - my, 2.0));",
"dist",
"Math.sqrt(Math.pow((hx - mx), 2.0) + Math.pow(hy - my, 2.0))",
"Math.sqrt",
"Math",
"Math.pow((hx - mx), 2.0) + Math.pow(hy - my, 2.0)",
"Math.pow((hx - mx), 2.0)",
"Math.pow",
"Math",
"(hx - mx)",
"hx",
"mx",
"2.0",
"Math.pow(hy - my, 2.0)",
"Math.pow",
"Math",
"hy - my",
"hy",
"my",
"2.0",
"System.out.println(dist)",
"System.out.println",
"System.out",
"System",
"System.out",
"dist",
"String[] args",
"args",
"public class Main {\n\tstatic Scanner src = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint a = src.nextInt();\n\t\tint b = src.nextInt();\n\t\tint h = src.nextInt();\n\t\tint m = src.nextInt();\n\t\tdouble radmH = (360.0/12.0)/60.0; // rad / min\n\t\tdouble radmM = (360/60);\n\n\t\tdouble c = (30.0 / 60.0)*m;\n\t\tdouble hx = a * Math.cos(Math.toRadians(radmH*h*60 + c));// hにおける1分あたりの角速度\n\t\tdouble hy = a * Math.sin(Math.toRadians(radmH*h*60 + c));\n\t\tdouble mx = b * Math.cos(Math.toRadians(radmM*m));\t\t// mにおける1分あたりの角速度\n\t\tdouble my = b * Math.sin(Math.toRadians(radmM*m));\n\t\tdouble dist = Math.sqrt(Math.pow((hx - mx), 2.0) + Math.pow(hy - my, 2.0));\n\t\tSystem.out.println(dist);\n\t}\n}",
"public class Main {\n\tstatic Scanner src = new Scanner(System.in);\n\tpublic static void main(String[] args) {\n\t\tint a = src.nextInt();\n\t\tint b = src.nextInt();\n\t\tint h = src.nextInt();\n\t\tint m = src.nextInt();\n\t\tdouble radmH = (360.0/12.0)/60.0; // rad / min\n\t\tdouble radmM = (360/60);\n\n\t\tdouble c = (30.0 / 60.0)*m;\n\t\tdouble hx = a * Math.cos(Math.toRadians(radmH*h*60 + c));// hにおける1分あたりの角速度\n\t\tdouble hy = a * Math.sin(Math.toRadians(radmH*h*60 + c));\n\t\tdouble mx = b * Math.cos(Math.toRadians(radmM*m));\t\t// mにおける1分あたりの角速度\n\t\tdouble my = b * Math.sin(Math.toRadians(radmM*m));\n\t\tdouble dist = Math.sqrt(Math.pow((hx - mx), 2.0) + Math.pow(hy - my, 2.0));\n\t\tSystem.out.println(dist);\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
static Scanner src = new Scanner(System.in);
public static void main(String[] args) {
int a = src.nextInt();
int b = src.nextInt();
int h = src.nextInt();
int m = src.nextInt();
double radmH = (360.0/12.0)/60.0; // rad / min
double radmM = (360/60);
double c = (30.0 / 60.0)*m;
double hx = a * Math.cos(Math.toRadians(radmH*h*60 + c));// hにおける1分あたりの角速度
double hy = a * Math.sin(Math.toRadians(radmH*h*60 + c));
double mx = b * Math.cos(Math.toRadians(radmM*m)); // mにおける1分あたりの角速度
double my = b * Math.sin(Math.toRadians(radmM*m));
double dist = Math.sqrt(Math.pow((hx - mx), 2.0) + Math.pow(hy - my, 2.0));
System.out.println(dist);
}
}
|
[
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,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
17,
2,
13,
17,
41,
13,
2,
13,
17,
41,
13,
4,
18,
13,
2,
13,
13,
0,
13,
4,
18,
13,
2,
17,
13,
13,
41,
13,
4,
18,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
4,
18,
13,
17,
13,
23,
13,
23,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
154,
23
],
[
154,
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
],
[
154,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
65,
66
],
[
61,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
61,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
61,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
80,
81
],
[
61,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
88,
90
],
[
61,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
93,
95
],
[
61,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
101,
103
],
[
61,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
109,
110
],
[
109,
111
],
[
106,
112
],
[
61,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
123,
124
],
[
123,
125
],
[
118,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
132,
133
],
[
133,
134
],
[
132,
135
],
[
135,
136
],
[
136,
137
],
[
135,
138
],
[
61,
139
],
[
139,
140
],
[
140,
141
],
[
139,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
142,
146
],
[
59,
147
],
[
147,
148
],
[
59,
149
],
[
149,
150
],
[
59,
151
],
[
151,
152
],
[
0,
153
],
[
153,
154
],
[
153,
155
]
] |
[
"import java.io.OutputStream;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.PrintWriter;\nimport java.util.Map;\nimport java.util.Scanner;\nimport java.util.HashMap;\n\n/**\n * Built using CHelper plug-in\n * Actual solution is at the top\n *\n * @author myob-_-\n */\npublic class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskD solver = new TaskD();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskD {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n double a = in.nextDouble();\n double b = in.nextDouble();\n double H = in.nextDouble();\n double M = in.nextDouble();\n double HH = H*30+ M/2;\n double MM = M*6;\n double ang = Math.abs(HH-MM);\n ang = Math.min(360-ang, ang);\n double result = Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(Math.toRadians(ang))));\n out.println(String.format(\"%.10f\", result));\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.Map;",
"Map",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.HashMap;",
"HashMap",
"java.util",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskD solver = new TaskD();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskD {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n double a = in.nextDouble();\n double b = in.nextDouble();\n double H = in.nextDouble();\n double M = in.nextDouble();\n double HH = H*30+ M/2;\n double MM = M*6;\n double ang = Math.abs(HH-MM);\n ang = Math.min(360-ang, ang);\n double result = Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(Math.toRadians(ang))));\n out.println(String.format(\"%.10f\", result));\n }\n\n }\n}",
"Main",
"public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskD solver = new TaskD();\n solver.solve(1, in, out);\n out.close();\n }",
"main",
"{\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskD solver = new TaskD();\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",
"Scanner in = new Scanner(inputStream);",
"in",
"new Scanner(inputStream)",
"PrintWriter out = new PrintWriter(outputStream);",
"out",
"new PrintWriter(outputStream)",
"TaskD solver = new TaskD();",
"solver",
"new TaskD()",
"solver.solve(1, in, out)",
"solver.solve",
"solver",
"1",
"in",
"out",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class TaskD {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n double a = in.nextDouble();\n double b = in.nextDouble();\n double H = in.nextDouble();\n double M = in.nextDouble();\n double HH = H*30+ M/2;\n double MM = M*6;\n double ang = Math.abs(HH-MM);\n ang = Math.min(360-ang, ang);\n double result = Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(Math.toRadians(ang))));\n out.println(String.format(\"%.10f\", result));\n }\n\n }",
"TaskD",
"public void solve(int testNumber, Scanner in, PrintWriter out) {\n double a = in.nextDouble();\n double b = in.nextDouble();\n double H = in.nextDouble();\n double M = in.nextDouble();\n double HH = H*30+ M/2;\n double MM = M*6;\n double ang = Math.abs(HH-MM);\n ang = Math.min(360-ang, ang);\n double result = Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(Math.toRadians(ang))));\n out.println(String.format(\"%.10f\", result));\n }",
"solve",
"{\n double a = in.nextDouble();\n double b = in.nextDouble();\n double H = in.nextDouble();\n double M = in.nextDouble();\n double HH = H*30+ M/2;\n double MM = M*6;\n double ang = Math.abs(HH-MM);\n ang = Math.min(360-ang, ang);\n double result = Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(Math.toRadians(ang))));\n out.println(String.format(\"%.10f\", result));\n }",
"double a = in.nextDouble();",
"a",
"in.nextDouble()",
"in.nextDouble",
"in",
"double b = in.nextDouble();",
"b",
"in.nextDouble()",
"in.nextDouble",
"in",
"double H = in.nextDouble();",
"H",
"in.nextDouble()",
"in.nextDouble",
"in",
"double M = in.nextDouble();",
"M",
"in.nextDouble()",
"in.nextDouble",
"in",
"double HH = H*30+ M/2;",
"HH",
"H*30+ M/2",
"H*30",
"H",
"30",
"M/2",
"M",
"2",
"double MM = M*6;",
"MM",
"M*6",
"M",
"6",
"double ang = Math.abs(HH-MM);",
"ang",
"Math.abs(HH-MM)",
"Math.abs",
"Math",
"HH-MM",
"HH",
"MM",
"ang = Math.min(360-ang, ang)",
"ang",
"Math.min(360-ang, ang)",
"Math.min",
"Math",
"360-ang",
"360",
"ang",
"ang",
"double result = Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(Math.toRadians(ang))));",
"result",
"Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(Math.toRadians(ang))))",
"Math.sqrt",
"Math",
"(a*a)+(b*b)-(2*a*b*Math.cos(Math.toRadians(ang)))",
"(a*a)+(b*b)",
"(a*a)",
"a",
"a",
"(b*b)",
"b",
"b",
"(2*a*b*Math.cos(Math.toRadians(ang)))",
"b",
"2*a*b*Math.cos(Math.toRadians(ang))",
"2",
"a",
"b",
"Math.cos(Math.toRadians(ang))",
"Math.cos",
"Math",
"Math.toRadians(ang)",
"Math.toRadians",
"Math",
"ang",
"out.println(String.format(\"%.10f\", result))",
"out.println",
"out",
"String.format(\"%.10f\", result)",
"String.format",
"String",
"\"%.10f\"",
"result",
"int testNumber",
"testNumber",
"Scanner in",
"in",
"PrintWriter out",
"out",
"public class Main {\n public static void main(String[] args) {\n InputStream inputStream = System.in;\n OutputStream outputStream = System.out;\n Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskD solver = new TaskD();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskD {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n double a = in.nextDouble();\n double b = in.nextDouble();\n double H = in.nextDouble();\n double M = in.nextDouble();\n double HH = H*30+ M/2;\n double MM = M*6;\n double ang = Math.abs(HH-MM);\n ang = Math.min(360-ang, ang);\n double result = Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(Math.toRadians(ang))));\n out.println(String.format(\"%.10f\", result));\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 Scanner in = new Scanner(inputStream);\n PrintWriter out = new PrintWriter(outputStream);\n TaskD solver = new TaskD();\n solver.solve(1, in, out);\n out.close();\n }\n\n static class TaskD {\n public void solve(int testNumber, Scanner in, PrintWriter out) {\n double a = in.nextDouble();\n double b = in.nextDouble();\n double H = in.nextDouble();\n double M = in.nextDouble();\n double HH = H*30+ M/2;\n double MM = M*6;\n double ang = Math.abs(HH-MM);\n ang = Math.min(360-ang, ang);\n double result = Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(Math.toRadians(ang))));\n out.println(String.format(\"%.10f\", result));\n }\n\n }\n}",
"Main"
] |
import java.io.OutputStream;
import java.io.IOException;
import java.io.InputStream;
import java.io.PrintWriter;
import java.util.Map;
import java.util.Scanner;
import java.util.HashMap;
/**
* Built using CHelper plug-in
* Actual solution is at the top
*
* @author myob-_-
*/
public class Main {
public static void main(String[] args) {
InputStream inputStream = System.in;
OutputStream outputStream = System.out;
Scanner in = new Scanner(inputStream);
PrintWriter out = new PrintWriter(outputStream);
TaskD solver = new TaskD();
solver.solve(1, in, out);
out.close();
}
static class TaskD {
public void solve(int testNumber, Scanner in, PrintWriter out) {
double a = in.nextDouble();
double b = in.nextDouble();
double H = in.nextDouble();
double M = in.nextDouble();
double HH = H*30+ M/2;
double MM = M*6;
double ang = Math.abs(HH-MM);
ang = Math.min(360-ang, ang);
double result = Math.sqrt((a*a)+(b*b)-(2*a*b*Math.cos(Math.toRadians(ang))));
out.println(String.format("%.10f", result));
}
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
17,
0,
13,
2,
2,
13,
17,
2,
13,
17,
41,
13,
17,
0,
13,
2,
13,
17,
41,
13,
17,
0,
13,
2,
13,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
0,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
104,
5
],
[
104,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
8,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
8,
66
],
[
66,
67
],
[
66,
68
],
[
8,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
8,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
85,
87
],
[
80,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
6,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n //進度\n double tan = 0;\n tan = (H * 30) + (M * 0.5);\n double tyo = 0;\n tyo = (M * 6);\n\n // 角度\n double kaku = 0;\n kaku = (tan - tyo);\n\n // ラジアン\n double radi = Math.toRadians(kaku);\n \n // C\n double C = 0;\n C = Math.cos(radi);\n\n // 余弦定理\n C = Math.sqrt(((A*A) + (B*B)) - ((2*A*B)*C));\n System.out.println(C);\n\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 int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n //進度\n double tan = 0;\n tan = (H * 30) + (M * 0.5);\n double tyo = 0;\n tyo = (M * 6);\n\n // 角度\n double kaku = 0;\n kaku = (tan - tyo);\n\n // ラジアン\n double radi = Math.toRadians(kaku);\n \n // C\n double C = 0;\n C = Math.cos(radi);\n\n // 余弦定理\n C = Math.sqrt(((A*A) + (B*B)) - ((2*A*B)*C));\n System.out.println(C);\n\n }\n}",
"Main",
"public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n //進度\n double tan = 0;\n tan = (H * 30) + (M * 0.5);\n double tyo = 0;\n tyo = (M * 6);\n\n // 角度\n double kaku = 0;\n kaku = (tan - tyo);\n\n // ラジアン\n double radi = Math.toRadians(kaku);\n \n // C\n double C = 0;\n C = Math.cos(radi);\n\n // 余弦定理\n C = Math.sqrt(((A*A) + (B*B)) - ((2*A*B)*C));\n System.out.println(C);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n //進度\n double tan = 0;\n tan = (H * 30) + (M * 0.5);\n double tyo = 0;\n tyo = (M * 6);\n\n // 角度\n double kaku = 0;\n kaku = (tan - tyo);\n\n // ラジアン\n double radi = Math.toRadians(kaku);\n \n // C\n double C = 0;\n C = Math.cos(radi);\n\n // 余弦定理\n C = Math.sqrt(((A*A) + (B*B)) - ((2*A*B)*C));\n System.out.println(C);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int H = sc.nextInt();",
"H",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int M = sc.nextInt();",
"M",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double tan = 0;",
"tan",
"0",
"tan = (H * 30) + (M * 0.5)",
"tan",
"(H * 30) + (M * 0.5)",
"(H * 30)",
"H",
"30",
"(M * 0.5)",
"M",
"0.5",
"double tyo = 0;",
"tyo",
"0",
"tyo = (M * 6)",
"tyo",
"(M * 6)",
"M",
"6",
"double kaku = 0;",
"kaku",
"0",
"kaku = (tan - tyo)",
"kaku",
"(tan - tyo)",
"tan",
"tyo",
"double radi = Math.toRadians(kaku);",
"radi",
"Math.toRadians(kaku)",
"Math.toRadians",
"Math",
"kaku",
"double C = 0;",
"C",
"0",
"C = Math.cos(radi)",
"C",
"Math.cos(radi)",
"Math.cos",
"Math",
"radi",
"C = Math.sqrt(((A*A) + (B*B)) - ((2*A*B)*C))",
"C",
"Math.sqrt(((A*A) + (B*B)) - ((2*A*B)*C))",
"Math.sqrt",
"Math",
"((A*A) + (B*B)) - ((2*A*B)*C)",
"((A*A) + (B*B))",
"(A*A)",
"A",
"A",
"(B*B)",
"B",
"B",
"((2*A*B)*C)",
"(2*A*B)",
"2*A*B",
"2",
"A",
"B",
"C",
"System.out.println(C)",
"System.out.println",
"System.out",
"System",
"System.out",
"C",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n //進度\n double tan = 0;\n tan = (H * 30) + (M * 0.5);\n double tyo = 0;\n tyo = (M * 6);\n\n // 角度\n double kaku = 0;\n kaku = (tan - tyo);\n\n // ラジアン\n double radi = Math.toRadians(kaku);\n \n // C\n double C = 0;\n C = Math.cos(radi);\n\n // 余弦定理\n C = Math.sqrt(((A*A) + (B*B)) - ((2*A*B)*C));\n System.out.println(C);\n\n }\n}",
"public class Main {\n public static void main(String[] args ) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n\n //進度\n double tan = 0;\n tan = (H * 30) + (M * 0.5);\n double tyo = 0;\n tyo = (M * 6);\n\n // 角度\n double kaku = 0;\n kaku = (tan - tyo);\n\n // ラジアン\n double radi = Math.toRadians(kaku);\n \n // C\n double C = 0;\n C = Math.cos(radi);\n\n // 余弦定理\n C = Math.sqrt(((A*A) + (B*B)) - ((2*A*B)*C));\n System.out.println(C);\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args ) throws Exception {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int H = sc.nextInt();
int M = sc.nextInt();
//進度
double tan = 0;
tan = (H * 30) + (M * 0.5);
double tyo = 0;
tyo = (M * 6);
// 角度
double kaku = 0;
kaku = (tan - tyo);
// ラジアン
double radi = Math.toRadians(kaku);
// C
double C = 0;
C = Math.cos(radi);
// 余弦定理
C = Math.sqrt(((A*A) + (B*B)) - ((2*A*B)*C));
System.out.println(C);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
17,
13,
2,
2,
17,
13,
17,
41,
13,
2,
2,
17,
13,
17,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
0,
13,
2,
17,
13,
14,
2,
13,
40,
17,
30,
0,
13,
2,
13,
17,
41,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
4,
18,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
114,
5
],
[
114,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
8,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
8,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
62,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
65,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
83,
85
],
[
78,
86
],
[
88,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
8,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
8,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
6,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
] |
[
"import java.util.*;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();//長身\n int b = sc.nextInt();//短針\n int h = sc.nextInt();//時間\n int m = sc.nextInt();//分\n\n double small = 30 * h + 30 * (double)m/60;\n double big = 360 * (double)m/60;\n\n // System.out.println(small);\n // System.out.println(big);\n\n double reg = small - big;\n if(reg>180){\n reg = 360 - reg;\n }else if(reg<-180){\n reg = reg + 360;\n }\n\n\n\n double ans = a*a + b*b - 2 * a * b * Math.cos(Math.toRadians(reg));\n ans = Math.sqrt(ans);\n System.out.println(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 int a = sc.nextInt();//長身\n int b = sc.nextInt();//短針\n int h = sc.nextInt();//時間\n int m = sc.nextInt();//分\n\n double small = 30 * h + 30 * (double)m/60;\n double big = 360 * (double)m/60;\n\n // System.out.println(small);\n // System.out.println(big);\n\n double reg = small - big;\n if(reg>180){\n reg = 360 - reg;\n }else if(reg<-180){\n reg = reg + 360;\n }\n\n\n\n double ans = a*a + b*b - 2 * a * b * Math.cos(Math.toRadians(reg));\n ans = Math.sqrt(ans);\n System.out.println(ans);\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();//長身\n int b = sc.nextInt();//短針\n int h = sc.nextInt();//時間\n int m = sc.nextInt();//分\n\n double small = 30 * h + 30 * (double)m/60;\n double big = 360 * (double)m/60;\n\n // System.out.println(small);\n // System.out.println(big);\n\n double reg = small - big;\n if(reg>180){\n reg = 360 - reg;\n }else if(reg<-180){\n reg = reg + 360;\n }\n\n\n\n double ans = a*a + b*b - 2 * a * b * Math.cos(Math.toRadians(reg));\n ans = Math.sqrt(ans);\n System.out.println(ans);\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();//長身\n int b = sc.nextInt();//短針\n int h = sc.nextInt();//時間\n int m = sc.nextInt();//分\n\n double small = 30 * h + 30 * (double)m/60;\n double big = 360 * (double)m/60;\n\n // System.out.println(small);\n // System.out.println(big);\n\n double reg = small - big;\n if(reg>180){\n reg = 360 - reg;\n }else if(reg<-180){\n reg = reg + 360;\n }\n\n\n\n double ans = a*a + b*b - 2 * a * b * Math.cos(Math.toRadians(reg));\n ans = Math.sqrt(ans);\n System.out.println(ans);\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int h = sc.nextInt();",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double small = 30 * h + 30 * (double)m/60;",
"small",
"30 * h + 30 * (double)m/60",
"30 * h",
"30",
"h",
"30 * (double)m/60",
"30 * (double)m",
"30",
"(double)m",
"60",
"double big = 360 * (double)m/60;",
"big",
"360 * (double)m/60",
"360 * (double)m",
"360",
"(double)m",
"60",
"double reg = small - big;",
"reg",
"small - big",
"small",
"big",
"if(reg>180){\n reg = 360 - reg;\n }else if(reg<-180){\n reg = reg + 360;\n }",
"reg>180",
"reg",
"180",
"{\n reg = 360 - reg;\n }",
"reg = 360 - reg",
"reg",
"360 - reg",
"360",
"reg",
"if(reg<-180){\n reg = reg + 360;\n }",
"reg<-180",
"reg",
"-180",
"180",
"{\n reg = reg + 360;\n }",
"reg = reg + 360",
"reg",
"reg + 360",
"reg",
"360",
"double ans = a*a + b*b - 2 * a * b * Math.cos(Math.toRadians(reg));",
"ans",
"a*a + b*b - 2 * a * b * Math.cos(Math.toRadians(reg))",
"a*a + b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"2 * a * b * Math.cos(Math.toRadians(reg))",
"b",
"2 * a * b * Math.cos(Math.toRadians(reg))",
"2",
"a",
"b",
"Math.cos(Math.toRadians(reg))",
"Math.cos",
"Math",
"Math.toRadians(reg)",
"Math.toRadians",
"Math",
"reg",
"ans = Math.sqrt(ans)",
"ans",
"Math.sqrt(ans)",
"Math.sqrt",
"Math",
"ans",
"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 int a = sc.nextInt();//長身\n int b = sc.nextInt();//短針\n int h = sc.nextInt();//時間\n int m = sc.nextInt();//分\n\n double small = 30 * h + 30 * (double)m/60;\n double big = 360 * (double)m/60;\n\n // System.out.println(small);\n // System.out.println(big);\n\n double reg = small - big;\n if(reg>180){\n reg = 360 - reg;\n }else if(reg<-180){\n reg = reg + 360;\n }\n\n\n\n double ans = a*a + b*b - 2 * a * b * Math.cos(Math.toRadians(reg));\n ans = Math.sqrt(ans);\n System.out.println(ans);\n\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int a = sc.nextInt();//長身\n int b = sc.nextInt();//短針\n int h = sc.nextInt();//時間\n int m = sc.nextInt();//分\n\n double small = 30 * h + 30 * (double)m/60;\n double big = 360 * (double)m/60;\n\n // System.out.println(small);\n // System.out.println(big);\n\n double reg = small - big;\n if(reg>180){\n reg = 360 - reg;\n }else if(reg<-180){\n reg = reg + 360;\n }\n\n\n\n double ans = a*a + b*b - 2 * a * b * Math.cos(Math.toRadians(reg));\n ans = Math.sqrt(ans);\n System.out.println(ans);\n\n }\n}",
"Main"
] |
import java.util.*;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int a = sc.nextInt();//長身
int b = sc.nextInt();//短針
int h = sc.nextInt();//時間
int m = sc.nextInt();//分
double small = 30 * h + 30 * (double)m/60;
double big = 360 * (double)m/60;
// System.out.println(small);
// System.out.println(big);
double reg = small - big;
if(reg>180){
reg = 360 - reg;
}else if(reg<-180){
reg = reg + 360;
}
double ans = a*a + b*b - 2 * a * b * Math.cos(Math.toRadians(reg));
ans = Math.sqrt(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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
2,
2,
17,
18,
13,
13,
2,
13,
2,
13,
17,
17,
2,
2,
2,
17,
18,
13,
13,
13,
17,
41,
13,
4,
18,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
37,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
44,
46
],
[
35,
47
],
[
34,
48
],
[
48,
49
],
[
50,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
48,
56
],
[
8,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
67,
69
],
[
62,
70
],
[
72,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] |
[
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n \n double rad = 2*Math.PI*(H+M/60.0)/12-2*Math.PI*M/60; \n double C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(rad));\n \n System.out.println(C);\n }\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 int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n \n double rad = 2*Math.PI*(H+M/60.0)/12-2*Math.PI*M/60; \n double C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(rad));\n \n System.out.println(C);\n }\n \n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n \n double rad = 2*Math.PI*(H+M/60.0)/12-2*Math.PI*M/60; \n double C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(rad));\n \n System.out.println(C);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n \n double rad = 2*Math.PI*(H+M/60.0)/12-2*Math.PI*M/60; \n double C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(rad));\n \n System.out.println(C);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int H = sc.nextInt();",
"H",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int M = sc.nextInt();",
"M",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double rad = 2*Math.PI*(H+M/60.0)/12-2*Math.PI*M/60;",
"rad",
"2*Math.PI*(H+M/60.0)/12-2*Math.PI*M/60",
"2*Math.PI*(H+M/60.0)/12",
"2*Math.PI*(H+M/60.0)",
"2*Math.PI*(H+M/60.0)",
"2",
"Math.PI",
"Math",
"Math.PI",
"(H+M/60.0)",
"H",
"M/60.0",
"M",
"60.0",
"12",
"2*Math.PI*M/60",
"2*Math.PI*M",
"2*Math.PI*M",
"2",
"Math.PI",
"Math",
"Math.PI",
"M",
"60",
"double C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(rad));",
"C",
"Math.sqrt(A*A+B*B-2*A*B*Math.cos(rad))",
"Math.sqrt",
"Math",
"A*A+B*B-2*A*B*Math.cos(rad)",
"A*A+B*B",
"A*A",
"A",
"A",
"B*B",
"B",
"B",
"2*A*B*Math.cos(rad)",
"B",
"2*A*B*Math.cos(rad)",
"2",
"A",
"B",
"Math.cos(rad)",
"Math.cos",
"Math",
"rad",
"System.out.println(C)",
"System.out.println",
"System.out",
"System",
"System.out",
"C",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n \n double rad = 2*Math.PI*(H+M/60.0)/12-2*Math.PI*M/60; \n double C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(rad));\n \n System.out.println(C);\n }\n \n}",
"public class Main {\n public static void main(String[] args) throws Exception {\n Scanner sc = new Scanner(System.in);\n int A = sc.nextInt();\n int B = sc.nextInt();\n int H = sc.nextInt();\n int M = sc.nextInt();\n \n double rad = 2*Math.PI*(H+M/60.0)/12-2*Math.PI*M/60; \n double C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(rad));\n \n System.out.println(C);\n }\n \n}",
"Main"
] |
import java.util.*;
public class Main {
public static void main(String[] args) throws Exception {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int H = sc.nextInt();
int M = sc.nextInt();
double rad = 2*Math.PI*(H+M/60.0)/12-2*Math.PI*M/60;
double C = Math.sqrt(A*A+B*B-2*A*B*Math.cos(rad));
System.out.println(C);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
17,
2,
13,
17,
41,
13,
2,
13,
17,
41,
13,
2,
13,
13,
14,
2,
4,
18,
13,
2,
13,
13,
17,
30,
0,
13,
2,
17,
13,
30,
0,
13,
40,
17,
41,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
13,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
112,
5
],
[
112,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
53,
56
],
[
56,
57
],
[
56,
58
],
[
52,
59
],
[
51,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
51,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
8,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
8,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
93,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
8,
106
],
[
106,
107
],
[
107,
108
],
[
6,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] |
[
"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\t// 入力\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble hAngle = h * 30.0 + m * 0.5;\n\t\tdouble mAngle = m * 6.0; \n\t\tdouble angle = mAngle - hAngle;\n\t\tif(Math.abs(mAngle - hAngle) > 180 ) {\n\t\t\tangle = 360.0 - angle;\n\t\t}else {\t\t\t\n\t\t\tangle *= -1;\n\t\t}\n\t\tdouble cos = Math.cos(Math.toRadians(angle));\n\t\tdouble result = Math.sqrt(a*a + b*b - (2.0*a*b*cos));\n\t\tSystem.out.println(result);\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 入力\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble hAngle = h * 30.0 + m * 0.5;\n\t\tdouble mAngle = m * 6.0; \n\t\tdouble angle = mAngle - hAngle;\n\t\tif(Math.abs(mAngle - hAngle) > 180 ) {\n\t\t\tangle = 360.0 - angle;\n\t\t}else {\t\t\t\n\t\t\tangle *= -1;\n\t\t}\n\t\tdouble cos = Math.cos(Math.toRadians(angle));\n\t\tdouble result = Math.sqrt(a*a + b*b - (2.0*a*b*cos));\n\t\tSystem.out.println(result);\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 入力\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble hAngle = h * 30.0 + m * 0.5;\n\t\tdouble mAngle = m * 6.0; \n\t\tdouble angle = mAngle - hAngle;\n\t\tif(Math.abs(mAngle - hAngle) > 180 ) {\n\t\t\tangle = 360.0 - angle;\n\t\t}else {\t\t\t\n\t\t\tangle *= -1;\n\t\t}\n\t\tdouble cos = Math.cos(Math.toRadians(angle));\n\t\tdouble result = Math.sqrt(a*a + b*b - (2.0*a*b*cos));\n\t\tSystem.out.println(result);\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 入力\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble hAngle = h * 30.0 + m * 0.5;\n\t\tdouble mAngle = m * 6.0; \n\t\tdouble angle = mAngle - hAngle;\n\t\tif(Math.abs(mAngle - hAngle) > 180 ) {\n\t\t\tangle = 360.0 - angle;\n\t\t}else {\t\t\t\n\t\t\tangle *= -1;\n\t\t}\n\t\tdouble cos = Math.cos(Math.toRadians(angle));\n\t\tdouble result = Math.sqrt(a*a + b*b - (2.0*a*b*cos));\n\t\tSystem.out.println(result);\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int h = sc.nextInt();",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double hAngle = h * 30.0 + m * 0.5;",
"hAngle",
"h * 30.0 + m * 0.5",
"h * 30.0",
"h",
"30.0",
"m * 0.5",
"m",
"0.5",
"double mAngle = m * 6.0;",
"mAngle",
"m * 6.0",
"m",
"6.0",
"double angle = mAngle - hAngle;",
"angle",
"mAngle - hAngle",
"mAngle",
"hAngle",
"if(Math.abs(mAngle - hAngle) > 180 ) {\n\t\t\tangle = 360.0 - angle;\n\t\t}else {\t\t\t\n\t\t\tangle *= -1;\n\t\t}",
"Math.abs(mAngle - hAngle) > 180",
"Math.abs(mAngle - hAngle)",
"Math.abs",
"Math",
"mAngle - hAngle",
"mAngle",
"hAngle",
"180",
"{\n\t\t\tangle = 360.0 - angle;\n\t\t}",
"angle = 360.0 - angle",
"angle",
"360.0 - angle",
"360.0",
"angle",
"{\t\t\t\n\t\t\tangle *= -1;\n\t\t}",
"angle *= -1",
"angle",
"-1",
"1",
"double cos = Math.cos(Math.toRadians(angle));",
"cos",
"Math.cos(Math.toRadians(angle))",
"Math.cos",
"Math",
"Math.toRadians(angle)",
"Math.toRadians",
"Math",
"angle",
"double result = Math.sqrt(a*a + b*b - (2.0*a*b*cos));",
"result",
"Math.sqrt(a*a + b*b - (2.0*a*b*cos))",
"Math.sqrt",
"Math",
"a*a + b*b - (2.0*a*b*cos)",
"a*a + b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"(2.0*a*b*cos)",
"b",
"2.0*a*b*cos",
"2.0",
"a",
"b",
"cos",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 入力\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble hAngle = h * 30.0 + m * 0.5;\n\t\tdouble mAngle = m * 6.0; \n\t\tdouble angle = mAngle - hAngle;\n\t\tif(Math.abs(mAngle - hAngle) > 180 ) {\n\t\t\tangle = 360.0 - angle;\n\t\t}else {\t\t\t\n\t\t\tangle *= -1;\n\t\t}\n\t\tdouble cos = Math.cos(Math.toRadians(angle));\n\t\tdouble result = Math.sqrt(a*a + b*b - (2.0*a*b*cos));\n\t\tSystem.out.println(result);\n\t\tsc.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 入力\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n\t\tdouble hAngle = h * 30.0 + m * 0.5;\n\t\tdouble mAngle = m * 6.0; \n\t\tdouble angle = mAngle - hAngle;\n\t\tif(Math.abs(mAngle - hAngle) > 180 ) {\n\t\t\tangle = 360.0 - angle;\n\t\t}else {\t\t\t\n\t\t\tangle *= -1;\n\t\t}\n\t\tdouble cos = Math.cos(Math.toRadians(angle));\n\t\tdouble result = Math.sqrt(a*a + b*b - (2.0*a*b*cos));\n\t\tSystem.out.println(result);\n\t\tsc.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
// 入力
int a = sc.nextInt();
int b = sc.nextInt();
int h = sc.nextInt();
int m = sc.nextInt();
double hAngle = h * 30.0 + m * 0.5;
double mAngle = m * 6.0;
double angle = mAngle - hAngle;
if(Math.abs(mAngle - hAngle) > 180 ) {
angle = 360.0 - angle;
}else {
angle *= -1;
}
double cos = Math.cos(Math.toRadians(angle));
double result = Math.sqrt(a*a + b*b - (2.0*a*b*cos));
System.out.println(result);
sc.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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
17,
13,
2,
17,
13,
41,
13,
2,
17,
13,
41,
13,
4,
18,
13,
2,
13,
13,
14,
2,
13,
17,
30,
0,
13,
2,
17,
13,
41,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
4,
18,
13,
2,
13,
2,
18,
13,
13,
17,
41,
13,
4,
18,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
38,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
71,
73
],
[
66,
74
],
[
76,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
8,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
8,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
6,
102
],
[
102,
103
]
] |
[
"import java.util.Scanner;\n\nclass Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \t\tint A = sc.nextInt();\n \t\tint B = sc.nextInt();\n \t\tint H = sc.nextInt();\n \t\tint M = sc.nextInt();\n \n \t\tdouble kakudoTansin = 30 * H + 0.5 * M;\n \t\tdouble kakudoTyousin = 6 * M;\n \t\tdouble kakudo = Math.abs(kakudoTansin - kakudoTyousin);\n \t\tif(kakudo > 180){\n \t\tkakudo = 360-kakudo;\n }\n \t\tdouble cnizyou = A * A + B * B - 2 * A * B * Math.cos(kakudo*(Math.PI/180));\n double c = Math.sqrt(cnizyou);\n \t\tSystem.out.println(c);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \t\tint A = sc.nextInt();\n \t\tint B = sc.nextInt();\n \t\tint H = sc.nextInt();\n \t\tint M = sc.nextInt();\n \n \t\tdouble kakudoTansin = 30 * H + 0.5 * M;\n \t\tdouble kakudoTyousin = 6 * M;\n \t\tdouble kakudo = Math.abs(kakudoTansin - kakudoTyousin);\n \t\tif(kakudo > 180){\n \t\tkakudo = 360-kakudo;\n }\n \t\tdouble cnizyou = A * A + B * B - 2 * A * B * Math.cos(kakudo*(Math.PI/180));\n double c = Math.sqrt(cnizyou);\n \t\tSystem.out.println(c);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n \t\tint A = sc.nextInt();\n \t\tint B = sc.nextInt();\n \t\tint H = sc.nextInt();\n \t\tint M = sc.nextInt();\n \n \t\tdouble kakudoTansin = 30 * H + 0.5 * M;\n \t\tdouble kakudoTyousin = 6 * M;\n \t\tdouble kakudo = Math.abs(kakudoTansin - kakudoTyousin);\n \t\tif(kakudo > 180){\n \t\tkakudo = 360-kakudo;\n }\n \t\tdouble cnizyou = A * A + B * B - 2 * A * B * Math.cos(kakudo*(Math.PI/180));\n double c = Math.sqrt(cnizyou);\n \t\tSystem.out.println(c);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n \t\tint A = sc.nextInt();\n \t\tint B = sc.nextInt();\n \t\tint H = sc.nextInt();\n \t\tint M = sc.nextInt();\n \n \t\tdouble kakudoTansin = 30 * H + 0.5 * M;\n \t\tdouble kakudoTyousin = 6 * M;\n \t\tdouble kakudo = Math.abs(kakudoTansin - kakudoTyousin);\n \t\tif(kakudo > 180){\n \t\tkakudo = 360-kakudo;\n }\n \t\tdouble cnizyou = A * A + B * B - 2 * A * B * Math.cos(kakudo*(Math.PI/180));\n double c = Math.sqrt(cnizyou);\n \t\tSystem.out.println(c);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int H = sc.nextInt();",
"H",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int M = sc.nextInt();",
"M",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double kakudoTansin = 30 * H + 0.5 * M;",
"kakudoTansin",
"30 * H + 0.5 * M",
"30 * H",
"30",
"H",
"0.5 * M",
"0.5",
"M",
"double kakudoTyousin = 6 * M;",
"kakudoTyousin",
"6 * M",
"6",
"M",
"double kakudo = Math.abs(kakudoTansin - kakudoTyousin);",
"kakudo",
"Math.abs(kakudoTansin - kakudoTyousin)",
"Math.abs",
"Math",
"kakudoTansin - kakudoTyousin",
"kakudoTansin",
"kakudoTyousin",
"if(kakudo > 180){\n \t\tkakudo = 360-kakudo;\n }",
"kakudo > 180",
"kakudo",
"180",
"{\n \t\tkakudo = 360-kakudo;\n }",
"kakudo = 360-kakudo",
"kakudo",
"360-kakudo",
"360",
"kakudo",
"double cnizyou = A * A + B * B - 2 * A * B * Math.cos(kakudo*(Math.PI/180));",
"cnizyou",
"A * A + B * B - 2 * A * B * Math.cos(kakudo*(Math.PI/180))",
"A * A + B * B",
"A * A",
"A",
"A",
"B * B",
"B",
"B",
"2 * A * B * Math.cos(kakudo*(Math.PI/180))",
"B",
"2 * A * B * Math.cos(kakudo*(Math.PI/180))",
"2",
"A",
"B",
"Math.cos(kakudo*(Math.PI/180))",
"Math.cos",
"Math",
"kakudo*(Math.PI/180)",
"kakudo",
"(Math.PI/180)",
"Math.PI",
"Math",
"Math.PI",
"180",
"double c = Math.sqrt(cnizyou);",
"c",
"Math.sqrt(cnizyou)",
"Math.sqrt",
"Math",
"cnizyou",
"System.out.println(c)",
"System.out.println",
"System.out",
"System",
"System.out",
"c",
"String[] args",
"args"
] |
import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int A = sc.nextInt();
int B = sc.nextInt();
int H = sc.nextInt();
int M = sc.nextInt();
double kakudoTansin = 30 * H + 0.5 * M;
double kakudoTyousin = 6 * M;
double kakudo = Math.abs(kakudoTansin - kakudoTyousin);
if(kakudo > 180){
kakudo = 360-kakudo;
}
double cnizyou = A * A + B * B - 2 * A * B * Math.cos(kakudo*(Math.PI/180));
double c = Math.sqrt(cnizyou);
System.out.println(c);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
41,
13,
2,
2,
2,
2,
13,
17,
13,
17,
2,
17,
17,
41,
13,
2,
2,
13,
17,
17,
41,
13,
0,
13,
4,
18,
13,
2,
13,
13,
0,
13,
4,
18,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
99,
5
],
[
99,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
8,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
36,
44
],
[
44,
45
],
[
44,
46
],
[
8,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
8,
54
],
[
54,
55
],
[
8,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
8,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
69,
77
],
[
79,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] |
[
"import java.util.Scanner;\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double A = sc.nextInt();\n double B = sc.nextInt();\n double H = sc.nextInt();\n double M = sc.nextInt();\n double ans;\n \n double sho = (H * 60 + M) * 360 / ( 12 * 60 );\n double lon = M * 360 / 60;\n double ang;\n \n ang = Math.abs(sho - lon);\n \n ans = Math.sqrt(A * A + B * B \n - 2.0 * A * B * Math.cos(Math.toRadians(ang)));\n \n System.out.print(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 double A = sc.nextInt();\n double B = sc.nextInt();\n double H = sc.nextInt();\n double M = sc.nextInt();\n double ans;\n \n double sho = (H * 60 + M) * 360 / ( 12 * 60 );\n double lon = M * 360 / 60;\n double ang;\n \n ang = Math.abs(sho - lon);\n \n ans = Math.sqrt(A * A + B * B \n - 2.0 * A * B * Math.cos(Math.toRadians(ang)));\n \n System.out.print(ans);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double A = sc.nextInt();\n double B = sc.nextInt();\n double H = sc.nextInt();\n double M = sc.nextInt();\n double ans;\n \n double sho = (H * 60 + M) * 360 / ( 12 * 60 );\n double lon = M * 360 / 60;\n double ang;\n \n ang = Math.abs(sho - lon);\n \n ans = Math.sqrt(A * A + B * B \n - 2.0 * A * B * Math.cos(Math.toRadians(ang)));\n \n System.out.print(ans);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n double A = sc.nextInt();\n double B = sc.nextInt();\n double H = sc.nextInt();\n double M = sc.nextInt();\n double ans;\n \n double sho = (H * 60 + M) * 360 / ( 12 * 60 );\n double lon = M * 360 / 60;\n double ang;\n \n ang = Math.abs(sho - lon);\n \n ans = Math.sqrt(A * A + B * B \n - 2.0 * A * B * Math.cos(Math.toRadians(ang)));\n \n System.out.print(ans);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double A = sc.nextInt();",
"A",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double B = sc.nextInt();",
"B",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double H = sc.nextInt();",
"H",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double M = sc.nextInt();",
"M",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double ans;",
"ans",
"double sho = (H * 60 + M) * 360 / ( 12 * 60 );",
"sho",
"(H * 60 + M) * 360 / ( 12 * 60 )",
"(H * 60 + M) * 360",
"(H * 60 + M)",
"H * 60",
"H",
"60",
"M",
"360",
"( 12 * 60 )",
"12",
"60",
"double lon = M * 360 / 60;",
"lon",
"M * 360 / 60",
"M * 360",
"M",
"360",
"60",
"double ang;",
"ang",
"ang = Math.abs(sho - lon)",
"ang",
"Math.abs(sho - lon)",
"Math.abs",
"Math",
"sho - lon",
"sho",
"lon",
"ans = Math.sqrt(A * A + B * B \n - 2.0 * A * B * Math.cos(Math.toRadians(ang)))",
"ans",
"Math.sqrt(A * A + B * B \n - 2.0 * A * B * Math.cos(Math.toRadians(ang)))",
"Math.sqrt",
"Math",
"A * A + B * B \n - 2.0 * A * B * Math.cos(Math.toRadians(ang))",
"A * A + B * B",
"A * A",
"A",
"A",
"B * B",
"B",
"B",
"2.0 * A * B * Math.cos(Math.toRadians(ang))",
"B",
"2.0 * A * B * Math.cos(Math.toRadians(ang))",
"2.0",
"A",
"B",
"Math.cos(Math.toRadians(ang))",
"Math.cos",
"Math",
"Math.toRadians(ang)",
"Math.toRadians",
"Math",
"ang",
"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 double A = sc.nextInt();\n double B = sc.nextInt();\n double H = sc.nextInt();\n double M = sc.nextInt();\n double ans;\n \n double sho = (H * 60 + M) * 360 / ( 12 * 60 );\n double lon = M * 360 / 60;\n double ang;\n \n ang = Math.abs(sho - lon);\n \n ans = Math.sqrt(A * A + B * B \n - 2.0 * A * B * Math.cos(Math.toRadians(ang)));\n \n System.out.print(ans);\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n double A = sc.nextInt();\n double B = sc.nextInt();\n double H = sc.nextInt();\n double M = sc.nextInt();\n double ans;\n \n double sho = (H * 60 + M) * 360 / ( 12 * 60 );\n double lon = M * 360 / 60;\n double ang;\n \n ang = Math.abs(sho - lon);\n \n ans = Math.sqrt(A * A + B * B \n - 2.0 * A * B * Math.cos(Math.toRadians(ang)));\n \n System.out.print(ans);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
double A = sc.nextInt();
double B = sc.nextInt();
double H = sc.nextInt();
double M = sc.nextInt();
double ans;
double sho = (H * 60 + M) * 360 / ( 12 * 60 );
double lon = M * 360 / 60;
double ang;
ang = Math.abs(sho - lon);
ans = Math.sqrt(A * A + B * B
- 2.0 * A * B * Math.cos(Math.toRadians(ang)));
System.out.print(ans);
}
}
|
[
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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
17,
13,
2,
17,
13,
41,
13,
2,
17,
13,
41,
13,
2,
13,
13,
14,
2,
13,
17,
30,
0,
13,
2,
17,
13,
14,
2,
13,
17,
30,
0,
13,
40,
17,
41,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
4,
18,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] |
[
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
111,
8
],
[
111,
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
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
11,
44
],
[
44,
45
],
[
44,
46
],
[
46,
47
],
[
46,
48
],
[
11,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
11,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
11,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
11,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
75,
83
],
[
85,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
85,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
11,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
11,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
9,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
] |
[
"import java.util.Scanner;\nimport java.util.*;\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n //数字の数を入力\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n //短針が進む角度\n double tanshin = 0.5 *m + 30*h;\n //長針\n double tyoshin = 6 * m;\n //なす角度\n double kakudo = tanshin - tyoshin;\n\n if(kakudo > 180){\n \tkakudo = 360 - kakudo;\n \t}\n if(kakudo < 0){\n \tkakudo *= -1;\n }\n \n \tdouble result2 = a*a + b*b - 2*a*b* Math.cos(Math.toRadians(kakudo));\n \tdouble result = Math.sqrt(result2);\n \tSystem.out.println(result);\n \n } \n \n\t}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n //数字の数を入力\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n //短針が進む角度\n double tanshin = 0.5 *m + 30*h;\n //長針\n double tyoshin = 6 * m;\n //なす角度\n double kakudo = tanshin - tyoshin;\n\n if(kakudo > 180){\n \tkakudo = 360 - kakudo;\n \t}\n if(kakudo < 0){\n \tkakudo *= -1;\n }\n \n \tdouble result2 = a*a + b*b - 2*a*b* Math.cos(Math.toRadians(kakudo));\n \tdouble result = Math.sqrt(result2);\n \tSystem.out.println(result);\n \n } \n \n\t}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n //数字の数を入力\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n //短針が進む角度\n double tanshin = 0.5 *m + 30*h;\n //長針\n double tyoshin = 6 * m;\n //なす角度\n double kakudo = tanshin - tyoshin;\n\n if(kakudo > 180){\n \tkakudo = 360 - kakudo;\n \t}\n if(kakudo < 0){\n \tkakudo *= -1;\n }\n \n \tdouble result2 = a*a + b*b - 2*a*b* Math.cos(Math.toRadians(kakudo));\n \tdouble result = Math.sqrt(result2);\n \tSystem.out.println(result);\n \n }",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n //数字の数を入力\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n //短針が進む角度\n double tanshin = 0.5 *m + 30*h;\n //長針\n double tyoshin = 6 * m;\n //なす角度\n double kakudo = tanshin - tyoshin;\n\n if(kakudo > 180){\n \tkakudo = 360 - kakudo;\n \t}\n if(kakudo < 0){\n \tkakudo *= -1;\n }\n \n \tdouble result2 = a*a + b*b - 2*a*b* Math.cos(Math.toRadians(kakudo));\n \tdouble result = Math.sqrt(result2);\n \tSystem.out.println(result);\n \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int a = sc.nextInt();",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int b = sc.nextInt();",
"b",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int h = sc.nextInt();",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double tanshin = 0.5 *m + 30*h;",
"tanshin",
"0.5 *m + 30*h",
"0.5 *m",
"0.5",
"m",
"30*h",
"30",
"h",
"double tyoshin = 6 * m;",
"tyoshin",
"6 * m",
"6",
"m",
"double kakudo = tanshin - tyoshin;",
"kakudo",
"tanshin - tyoshin",
"tanshin",
"tyoshin",
"if(kakudo > 180){\n \tkakudo = 360 - kakudo;\n \t}",
"kakudo > 180",
"kakudo",
"180",
"{\n \tkakudo = 360 - kakudo;\n \t}",
"kakudo = 360 - kakudo",
"kakudo",
"360 - kakudo",
"360",
"kakudo",
"if(kakudo < 0){\n \tkakudo *= -1;\n }",
"kakudo < 0",
"kakudo",
"0",
"{\n \tkakudo *= -1;\n }",
"kakudo *= -1",
"kakudo",
"-1",
"1",
"double result2 = a*a + b*b - 2*a*b* Math.cos(Math.toRadians(kakudo));",
"result2",
"a*a + b*b - 2*a*b* Math.cos(Math.toRadians(kakudo))",
"a*a + b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"2*a*b* Math.cos(Math.toRadians(kakudo))",
"b",
"2*a*b* Math.cos(Math.toRadians(kakudo))",
"2",
"a",
"b",
"Math.cos(Math.toRadians(kakudo))",
"Math.cos",
"Math",
"Math.toRadians(kakudo)",
"Math.toRadians",
"Math",
"kakudo",
"double result = Math.sqrt(result2);",
"result",
"Math.sqrt(result2)",
"Math.sqrt",
"Math",
"result2",
"System.out.println(result)",
"System.out.println",
"System.out",
"System",
"System.out",
"result",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n //数字の数を入力\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n //短針が進む角度\n double tanshin = 0.5 *m + 30*h;\n //長針\n double tyoshin = 6 * m;\n //なす角度\n double kakudo = tanshin - tyoshin;\n\n if(kakudo > 180){\n \tkakudo = 360 - kakudo;\n \t}\n if(kakudo < 0){\n \tkakudo *= -1;\n }\n \n \tdouble result2 = a*a + b*b - 2*a*b* Math.cos(Math.toRadians(kakudo));\n \tdouble result = Math.sqrt(result2);\n \tSystem.out.println(result);\n \n } \n \n\t}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n //数字の数を入力\n\t\tint a = sc.nextInt();\n\t\tint b = sc.nextInt();\n\t\tint h = sc.nextInt();\n\t\tint m = sc.nextInt();\n //短針が進む角度\n double tanshin = 0.5 *m + 30*h;\n //長針\n double tyoshin = 6 * m;\n //なす角度\n double kakudo = tanshin - tyoshin;\n\n if(kakudo > 180){\n \tkakudo = 360 - kakudo;\n \t}\n if(kakudo < 0){\n \tkakudo *= -1;\n }\n \n \tdouble result2 = a*a + b*b - 2*a*b* Math.cos(Math.toRadians(kakudo));\n \tdouble result = Math.sqrt(result2);\n \tSystem.out.println(result);\n \n } \n \n\t}",
"Main"
] |
import java.util.Scanner;
import java.util.*;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
//数字の数を入力
int a = sc.nextInt();
int b = sc.nextInt();
int h = sc.nextInt();
int m = sc.nextInt();
//短針が進む角度
double tanshin = 0.5 *m + 30*h;
//長針
double tyoshin = 6 * m;
//なす角度
double kakudo = tanshin - tyoshin;
if(kakudo > 180){
kakudo = 360 - kakudo;
}
if(kakudo < 0){
kakudo *= -1;
}
double result2 = a*a + b*b - 2*a*b* Math.cos(Math.toRadians(kakudo));
double result = Math.sqrt(result2);
System.out.println(result);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
2,
2,
13,
2,
13,
17,
17,
41,
13,
2,
13,
17,
41,
13,
4,
18,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
13,
13,
4,
18,
13,
4,
18,
13,
2,
13,
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
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
8,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
34,
40
],
[
8,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
8,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
51,
59
],
[
61,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
71,
72
],
[
71,
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;\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n double h = (H + (double)M/60)*30;\n double m = (double)M*6;\n double ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.toRadians(h-m)));\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 scan = new Scanner(System.in);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n double h = (H + (double)M/60)*30;\n double m = (double)M*6;\n double ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.toRadians(h-m)));\n System.out.println(ans);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n double h = (H + (double)M/60)*30;\n double m = (double)M*6;\n double ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.toRadians(h-m)));\n System.out.println(ans);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n double h = (H + (double)M/60)*30;\n double m = (double)M*6;\n double ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.toRadians(h-m)));\n System.out.println(ans);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int A = scan.nextInt();",
"A",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int B = scan.nextInt();",
"B",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int H = scan.nextInt();",
"H",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int M = scan.nextInt();",
"M",
"scan.nextInt()",
"scan.nextInt",
"scan",
"double h = (H + (double)M/60)*30;",
"h",
"(H + (double)M/60)*30",
"(H + (double)M/60)",
"H",
"(double)M/60",
"(double)M",
"60",
"30",
"double m = (double)M*6;",
"m",
"(double)M*6",
"(double)M",
"6",
"double ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.toRadians(h-m)));",
"ans",
"Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.toRadians(h-m)))",
"Math.sqrt",
"Math",
"A*A + B*B - 2*A*B*Math.cos(Math.toRadians(h-m))",
"A*A + B*B",
"A*A",
"A",
"A",
"B*B",
"B",
"B",
"2*A*B*Math.cos(Math.toRadians(h-m))",
"B",
"2*A*B*Math.cos(Math.toRadians(h-m))",
"2",
"A",
"B",
"Math.cos(Math.toRadians(h-m))",
"Math.cos",
"Math",
"Math.toRadians(h-m)",
"Math.toRadians",
"Math",
"h-m",
"h",
"m",
"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 scan = new Scanner(System.in);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n double h = (H + (double)M/60)*30;\n double m = (double)M*6;\n double ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.toRadians(h-m)));\n System.out.println(ans);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int A = scan.nextInt();\n int B = scan.nextInt();\n int H = scan.nextInt();\n int M = scan.nextInt();\n double h = (H + (double)M/60)*30;\n double m = (double)M*6;\n double ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.toRadians(h-m)));\n System.out.println(ans);\n }\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int A = scan.nextInt();
int B = scan.nextInt();
int H = scan.nextInt();
int M = scan.nextInt();
double h = (H + (double)M/60)*30;
double m = (double)M*6;
double ans = Math.sqrt(A*A + B*B - 2*A*B*Math.cos(Math.toRadians(h-m)));
System.out.println(ans);
}
}
|
[
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,
4,
18,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
2,
2,
17,
13,
2,
17,
13,
0,
13,
2,
13,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
4,
18,
13,
2,
2,
2,
13,
13,
2,
13,
13,
2,
2,
2,
17,
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
],
[
85,
8
],
[
85,
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
],
[
27,
28
],
[
28,
29
],
[
11,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
11,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
44,
46
],
[
11,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
11,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
69,
71
],
[
64,
72
],
[
74,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
9,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
] |
[
"import java.util.*;\nimport java.io.PrintWriter;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tdouble a=sc.nextDouble();\n\t\tdouble b=sc.nextDouble();\n\t\tint h=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tdouble ang=Math.abs(30*h-5.5*m);\n\t\tang=ang*(Math.PI/180);\n\t\tSystem.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(ang)));\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tdouble a=sc.nextDouble();\n\t\tdouble b=sc.nextDouble();\n\t\tint h=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tdouble ang=Math.abs(30*h-5.5*m);\n\t\tang=ang*(Math.PI/180);\n\t\tSystem.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(ang)));\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tdouble a=sc.nextDouble();\n\t\tdouble b=sc.nextDouble();\n\t\tint h=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tdouble ang=Math.abs(30*h-5.5*m);\n\t\tang=ang*(Math.PI/180);\n\t\tSystem.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(ang)));\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tdouble a=sc.nextDouble();\n\t\tdouble b=sc.nextDouble();\n\t\tint h=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tdouble ang=Math.abs(30*h-5.5*m);\n\t\tang=ang*(Math.PI/180);\n\t\tSystem.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(ang)));\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"double a=sc.nextDouble();",
"a",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"double b=sc.nextDouble();",
"b",
"sc.nextDouble()",
"sc.nextDouble",
"sc",
"int h=sc.nextInt();",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int m=sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"double ang=Math.abs(30*h-5.5*m);",
"ang",
"Math.abs(30*h-5.5*m)",
"Math.abs",
"Math",
"30*h-5.5*m",
"30*h",
"30",
"h",
"5.5*m",
"5.5",
"m",
"ang=ang*(Math.PI/180)",
"ang",
"ang*(Math.PI/180)",
"ang",
"(Math.PI/180)",
"Math.PI",
"Math",
"Math.PI",
"180",
"System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(ang)))",
"System.out.println",
"System.out",
"System",
"System.out",
"Math.sqrt(a*a+b*b-2*a*b*Math.cos(ang))",
"Math.sqrt",
"Math",
"a*a+b*b-2*a*b*Math.cos(ang)",
"a*a+b*b",
"a*a",
"a",
"a",
"b*b",
"b",
"b",
"2*a*b*Math.cos(ang)",
"b",
"2*a*b*Math.cos(ang)",
"2",
"a",
"b",
"Math.cos(ang)",
"Math.cos",
"Math",
"ang",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tdouble a=sc.nextDouble();\n\t\tdouble b=sc.nextDouble();\n\t\tint h=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tdouble ang=Math.abs(30*h-5.5*m);\n\t\tang=ang*(Math.PI/180);\n\t\tSystem.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(ang)));\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tdouble a=sc.nextDouble();\n\t\tdouble b=sc.nextDouble();\n\t\tint h=sc.nextInt();\n\t\tint m=sc.nextInt();\n\t\tdouble ang=Math.abs(30*h-5.5*m);\n\t\tang=ang*(Math.PI/180);\n\t\tSystem.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(ang)));\n\t}\n}",
"Main"
] |
import java.util.*;
import java.io.PrintWriter;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
double a=sc.nextDouble();
double b=sc.nextDouble();
int h=sc.nextInt();
int m=sc.nextInt();
double ang=Math.abs(30*h-5.5*m);
ang=ang*(Math.PI/180);
System.out.println(Math.sqrt(a*a+b*b-2*a*b*Math.cos(ang)));
}
}
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.