node_ids
sequencelengths 4
1.4k
| edge_index
sequencelengths 1
2.22k
| text
sequencelengths 4
1.4k
| source
stringlengths 14
427k
|
---|---|---|---|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
17,
41,
13,
20,
17,
41,
13,
20,
0,
13,
4,
18,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
0,
13,
17,
2,
13,
18,
13,
17,
1,
40,
13,
30,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
17,
4,
18,
18,
13,
13,
4,
18,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
11,
16
],
[
16,
17
],
[
16,
18
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
24
],
[
24,
25
],
[
24,
26
],
[
11,
27
],
[
27,
28
],
[
27,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
29,
34
],
[
11,
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
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
55,
57
],
[
11,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
58,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
82,
91
],
[
76,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
104,
113
],
[
97,
114
],
[
114,
115
],
[
114,
116
],
[
11,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
11,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
124,
126
],
[
9,
127
],
[
127,
128
]
] | [
"import java.io.*;\nimport java.util.Arrays;\nclass Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tint i,tmp;\n\t\tint[] n = new int[990];\n\t\tString[] str = new String[990];\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = in.readLine().split(\" \");\n\t\tfor(i=0;i<1;i++){\n\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\tfor(i=3;i<=n[0];i++){\n\t\t\ttmp = i;\n\t\t\tif(tmp%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(tmp!=0){\n\t\t\t\t\tif(tmp%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttmp/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tSystem.out.println();\n\t\tSystem.out.flush();\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Arrays;",
"Arrays",
"java.util",
"class Main{\n\tpublic static void main(String[] args) throws IOException {\n\t\tint i,tmp;\n\t\tint[] n = new int[990];\n\t\tString[] str = new String[990];\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = in.readLine().split(\" \");\n\t\tfor(i=0;i<1;i++){\n\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\tfor(i=3;i<=n[0];i++){\n\t\t\ttmp = i;\n\t\t\tif(tmp%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(tmp!=0){\n\t\t\t\t\tif(tmp%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttmp/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tSystem.out.println();\n\t\tSystem.out.flush();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tint i,tmp;\n\t\tint[] n = new int[990];\n\t\tString[] str = new String[990];\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = in.readLine().split(\" \");\n\t\tfor(i=0;i<1;i++){\n\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\tfor(i=3;i<=n[0];i++){\n\t\t\ttmp = i;\n\t\t\tif(tmp%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(tmp!=0){\n\t\t\t\t\tif(tmp%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttmp/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tSystem.out.println();\n\t\tSystem.out.flush();\n\t}",
"main",
"{\n\t\tint i,tmp;\n\t\tint[] n = new int[990];\n\t\tString[] str = new String[990];\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = in.readLine().split(\" \");\n\t\tfor(i=0;i<1;i++){\n\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t}\n\t\tfor(i=3;i<=n[0];i++){\n\t\t\ttmp = i;\n\t\t\tif(tmp%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(tmp!=0){\n\t\t\t\t\tif(tmp%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttmp/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t} \n\t\tSystem.out.println();\n\t\tSystem.out.flush();\n\t}",
"int i",
"i",
"tmp;",
"tmp",
"int[] n = new int[990];",
"n",
"new int[990]",
"990",
"String[] str = new String[990];",
"str",
"new String[990]",
"990",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"str = in.readLine().split(\" \")",
"str",
"in.readLine().split(\" \")",
"in.readLine().split",
"in.readLine()",
"in.readLine",
"in",
"\" \"",
"for(i=0;i<1;i++){\n\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<1",
"i",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t}",
"{\n\t\t\tn[i] = Integer.parseInt(str[i]);\n\t\t}",
"n[i] = Integer.parseInt(str[i])",
"n[i]",
"n",
"i",
"Integer.parseInt(str[i])",
"Integer.parseInt",
"Integer",
"str[i]",
"str",
"i",
"for(i=3;i<=n[0];i++){\n\t\t\ttmp = i;\n\t\t\tif(tmp%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(tmp!=0){\n\t\t\t\t\tif(tmp%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttmp/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"i=3;",
"i=3",
"i",
"3",
"i<=n[0]",
"i",
"n[0]",
"n",
"0",
"i++",
"i++",
"i",
"{\n\t\t\ttmp = i;\n\t\t\tif(tmp%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(tmp!=0){\n\t\t\t\t\tif(tmp%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttmp/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\ttmp = i;\n\t\t\tif(tmp%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(tmp!=0){\n\t\t\t\t\tif(tmp%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttmp/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"tmp = i",
"tmp",
"i",
"if(tmp%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(tmp!=0){\n\t\t\t\t\tif(tmp%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttmp/=10;\n\t\t\t\t}\n\t\t\t}",
"tmp%3==0",
"tmp%3",
"tmp",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"continue;",
"{\n\t\t\t\twhile(tmp!=0){\n\t\t\t\t\tif(tmp%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttmp/=10;\n\t\t\t\t}\n\t\t\t}",
"while(tmp!=0){\n\t\t\t\t\tif(tmp%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttmp/=10;\n\t\t\t\t}",
"tmp!=0",
"tmp",
"0",
"{\n\t\t\t\t\tif(tmp%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\ttmp/=10;\n\t\t\t\t}",
"if(tmp%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"tmp%10==3",
"tmp%10",
"tmp",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"break;",
"tmp/=10",
"tmp",
"10",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"System.out.flush()",
"System.out.flush",
"System.out",
"System",
"System.out",
"String[] args",
"args"
] | import java.io.*;
import java.util.Arrays;
class Main{
public static void main(String[] args) throws IOException {
int i,tmp;
int[] n = new int[990];
String[] str = new String[990];
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
str = in.readLine().split(" ");
for(i=0;i<1;i++){
n[i] = Integer.parseInt(str[i]);
}
for(i=3;i<=n[0];i++){
tmp = i;
if(tmp%3==0){
System.out.print(" "+i);
continue;
}
else{
while(tmp!=0){
if(tmp%10==3){
System.out.print(" "+i);
break;
}
tmp/=10;
}
}
}
System.out.println();
System.out.flush();
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
11,
1,
41,
13,
17,
41,
13,
4,
18,
13,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
11,
1,
2,
13,
17,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
3,
29,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
93,
5
],
[
93,
6
],
[
6,
7
],
[
6,
8
],
[
93,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
12,
22
],
[
22,
23
],
[
22,
24
],
[
12,
25
],
[
25,
26
],
[
26,
27
],
[
12,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
11,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
9,
48
],
[
48,
49
],
[
93,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
52,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
66,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
52,
88
],
[
88,
89
],
[
50,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] | [
"import java.util.*;\n\npublic class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n for(int i = 1, n = scn.nextInt(); i <= n; i++) {\n if(call(i)) {\n System.out.print(\" \" + i);\n }\n }\n System.out.println();\n }\n \n private static boolean call(int x) {\n boolean rslt = false;\n if(x % 3 == 0) {\n rslt = true;\n }\n for(; x > 0; x /= 10) {\n if(x % 10 == 3) {\n rslt = true;\n break;\n }\n }\n return rslt;\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n for(int i = 1, n = scn.nextInt(); i <= n; i++) {\n if(call(i)) {\n System.out.print(\" \" + i);\n }\n }\n System.out.println();\n }\n \n private static boolean call(int x) {\n boolean rslt = false;\n if(x % 3 == 0) {\n rslt = true;\n }\n for(; x > 0; x /= 10) {\n if(x % 10 == 3) {\n rslt = true;\n break;\n }\n }\n return rslt;\n }\n}",
"Main",
"private static final Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"public static void main(String[] args) {\n for(int i = 1, n = scn.nextInt(); i <= n; i++) {\n if(call(i)) {\n System.out.print(\" \" + i);\n }\n }\n System.out.println();\n }",
"main",
"{\n for(int i = 1, n = scn.nextInt(); i <= n; i++) {\n if(call(i)) {\n System.out.print(\" \" + i);\n }\n }\n System.out.println();\n }",
"for(int i = 1, n = scn.nextInt(); i <= n; i++) {\n if(call(i)) {\n System.out.print(\" \" + i);\n }\n }",
"int i = 1, n = scn.nextInt();",
"int i = 1",
"i",
"1",
"n = scn.nextInt();",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(call(i)) {\n System.out.print(\" \" + i);\n }\n }",
"{\n if(call(i)) {\n System.out.print(\" \" + i);\n }\n }",
"if(call(i)) {\n System.out.print(\" \" + i);\n }",
"call(i)",
"call",
"i",
"{\n System.out.print(\" \" + i);\n }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"private static boolean call(int x) {\n boolean rslt = false;\n if(x % 3 == 0) {\n rslt = true;\n }\n for(; x > 0; x /= 10) {\n if(x % 10 == 3) {\n rslt = true;\n break;\n }\n }\n return rslt;\n }",
"call",
"{\n boolean rslt = false;\n if(x % 3 == 0) {\n rslt = true;\n }\n for(; x > 0; x /= 10) {\n if(x % 10 == 3) {\n rslt = true;\n break;\n }\n }\n return rslt;\n }",
"boolean rslt = false;",
"rslt",
"false",
"if(x % 3 == 0) {\n rslt = true;\n }",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n rslt = true;\n }",
"rslt = true",
"rslt",
"true",
"for(; x > 0; x /= 10) {\n if(x % 10 == 3) {\n rslt = true;\n break;\n }\n }",
";",
"x > 0",
"x",
"0",
"x /= 10",
"x /= 10",
"x",
"10",
"{\n if(x % 10 == 3) {\n rslt = true;\n break;\n }\n }",
"{\n if(x % 10 == 3) {\n rslt = true;\n break;\n }\n }",
"if(x % 10 == 3) {\n rslt = true;\n break;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n rslt = true;\n break;\n }",
"rslt = true",
"rslt",
"true",
"break;",
"return rslt;",
"rslt",
"int x",
"x",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n for(int i = 1, n = scn.nextInt(); i <= n; i++) {\n if(call(i)) {\n System.out.print(\" \" + i);\n }\n }\n System.out.println();\n }\n \n private static boolean call(int x) {\n boolean rslt = false;\n if(x % 3 == 0) {\n rslt = true;\n }\n for(; x > 0; x /= 10) {\n if(x % 10 == 3) {\n rslt = true;\n break;\n }\n }\n return rslt;\n }\n}",
"public class Main {\n private static final Scanner scn = new Scanner(System.in);\n \n public static void main(String[] args) {\n for(int i = 1, n = scn.nextInt(); i <= n; i++) {\n if(call(i)) {\n System.out.print(\" \" + i);\n }\n }\n System.out.println();\n }\n \n private static boolean call(int x) {\n boolean rslt = false;\n if(x % 3 == 0) {\n rslt = true;\n }\n for(; x > 0; x /= 10) {\n if(x % 10 == 3) {\n rslt = true;\n break;\n }\n }\n return rslt;\n }\n}",
"Main"
] | import java.util.*;
public class Main {
private static final Scanner scn = new Scanner(System.in);
public static void main(String[] args) {
for(int i = 1, n = scn.nextInt(); i <= n; i++) {
if(call(i)) {
System.out.print(" " + i);
}
}
System.out.println();
}
private static boolean call(int x) {
boolean rslt = false;
if(x % 3 == 0) {
rslt = true;
}
for(; x > 0; x /= 10) {
if(x % 10 == 3) {
rslt = true;
break;
}
}
return rslt;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
2,
17,
13,
41,
13,
13,
14,
2,
2,
2,
13,
17,
17,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
13,
40,
13,
14,
2,
13,
13,
3,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
65,
5
],
[
65,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
25,
27
],
[
22,
28
],
[
28,
29
],
[
28,
30
],
[
22,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
31,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
43,
49
],
[
22,
50
],
[
50,
51
],
[
22,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n \n Scanner num = new Scanner(System.in);\n int n = num.nextInt();\n int i=1;\n \n while(true){\n \n String three = \"\" + i;\n int x=i;\n if(x%3 == 0 || three.contains(\"3\")){\n System.out.printf(\" %d\",i);\n }\n i++;\n if(i > n) break;\n }\n \n System.out.println();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n \n Scanner num = new Scanner(System.in);\n int n = num.nextInt();\n int i=1;\n \n while(true){\n \n String three = \"\" + i;\n int x=i;\n if(x%3 == 0 || three.contains(\"3\")){\n System.out.printf(\" %d\",i);\n }\n i++;\n if(i > n) break;\n }\n \n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args){\n \n Scanner num = new Scanner(System.in);\n int n = num.nextInt();\n int i=1;\n \n while(true){\n \n String three = \"\" + i;\n int x=i;\n if(x%3 == 0 || three.contains(\"3\")){\n System.out.printf(\" %d\",i);\n }\n i++;\n if(i > n) break;\n }\n \n System.out.println();\n }",
"main",
"{\n \n Scanner num = new Scanner(System.in);\n int n = num.nextInt();\n int i=1;\n \n while(true){\n \n String three = \"\" + i;\n int x=i;\n if(x%3 == 0 || three.contains(\"3\")){\n System.out.printf(\" %d\",i);\n }\n i++;\n if(i > n) break;\n }\n \n System.out.println();\n }",
"Scanner num = new Scanner(System.in);",
"num",
"new Scanner(System.in)",
"int n = num.nextInt();",
"n",
"num.nextInt()",
"num.nextInt",
"num",
"int i=1;",
"i",
"1",
"while(true){\n \n String three = \"\" + i;\n int x=i;\n if(x%3 == 0 || three.contains(\"3\")){\n System.out.printf(\" %d\",i);\n }\n i++;\n if(i > n) break;\n }",
"true",
"{\n \n String three = \"\" + i;\n int x=i;\n if(x%3 == 0 || three.contains(\"3\")){\n System.out.printf(\" %d\",i);\n }\n i++;\n if(i > n) break;\n }",
"String three = \"\" + i;",
"three",
"\"\" + i",
"\"\"",
"i",
"int x=i;",
"x",
"i",
"if(x%3 == 0 || three.contains(\"3\")){\n System.out.printf(\" %d\",i);\n }",
"x%3 == 0 || three.contains(\"3\")",
"x%3 == 0",
"x%3",
"x",
"3",
"0",
"three.contains(\"3\")",
"three.contains",
"three",
"\"3\"",
"{\n System.out.printf(\" %d\",i);\n }",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"i++",
"i",
"if(i > n) break;",
"i > n",
"i",
"n",
"break;",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n \n Scanner num = new Scanner(System.in);\n int n = num.nextInt();\n int i=1;\n \n while(true){\n \n String three = \"\" + i;\n int x=i;\n if(x%3 == 0 || three.contains(\"3\")){\n System.out.printf(\" %d\",i);\n }\n i++;\n if(i > n) break;\n }\n \n System.out.println();\n }\n}",
"public class Main{\n public static void main(String[] args){\n \n Scanner num = new Scanner(System.in);\n int n = num.nextInt();\n int i=1;\n \n while(true){\n \n String three = \"\" + i;\n int x=i;\n if(x%3 == 0 || three.contains(\"3\")){\n System.out.printf(\" %d\",i);\n }\n i++;\n if(i > n) break;\n }\n \n System.out.println();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner num = new Scanner(System.in);
int n = num.nextInt();
int i=1;
while(true){
String three = "" + i;
int x=i;
if(x%3 == 0 || three.contains("3")){
System.out.printf(" %d",i);
}
i++;
if(i > n) break;
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
108,
5
],
[
108,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
35,
38
],
[
33,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
32,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
49,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
64,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
82,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
6,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
] | [
"import java.util.Scanner;\npublic class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int i;\n for(int x = 1; x <= n; x++){\n if(String.valueOf(x).contains(\"3\")){\n System.out.print(\" \" + x);\n }\n else if(x % 3 == 0){\n System.out.print(\" \" + x);\n }\n else if(x % 10 == 3){\n System.out.print(\" \" + x);\n }\n else{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }\n }\n System.out.println();\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 n = scan.nextInt();\n int i;\n for(int x = 1; x <= n; x++){\n if(String.valueOf(x).contains(\"3\")){\n System.out.print(\" \" + x);\n }\n else if(x % 3 == 0){\n System.out.print(\" \" + x);\n }\n else if(x % 10 == 3){\n System.out.print(\" \" + x);\n }\n else{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }\n }\n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int i;\n for(int x = 1; x <= n; x++){\n if(String.valueOf(x).contains(\"3\")){\n System.out.print(\" \" + x);\n }\n else if(x % 3 == 0){\n System.out.print(\" \" + x);\n }\n else if(x % 10 == 3){\n System.out.print(\" \" + x);\n }\n else{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }\n }\n System.out.println();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int i;\n for(int x = 1; x <= n; x++){\n if(String.valueOf(x).contains(\"3\")){\n System.out.print(\" \" + x);\n }\n else if(x % 3 == 0){\n System.out.print(\" \" + x);\n }\n else if(x % 10 == 3){\n System.out.print(\" \" + x);\n }\n else{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }\n }\n System.out.println();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int i;",
"i",
"for(int x = 1; x <= n; x++){\n if(String.valueOf(x).contains(\"3\")){\n System.out.print(\" \" + x);\n }\n else if(x % 3 == 0){\n System.out.print(\" \" + x);\n }\n else if(x % 10 == 3){\n System.out.print(\" \" + x);\n }\n else{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }\n }",
"int x = 1;",
"int x = 1;",
"x",
"1",
"x <= n",
"x",
"n",
"x++",
"x++",
"x",
"{\n if(String.valueOf(x).contains(\"3\")){\n System.out.print(\" \" + x);\n }\n else if(x % 3 == 0){\n System.out.print(\" \" + x);\n }\n else if(x % 10 == 3){\n System.out.print(\" \" + x);\n }\n else{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }\n }",
"{\n if(String.valueOf(x).contains(\"3\")){\n System.out.print(\" \" + x);\n }\n else if(x % 3 == 0){\n System.out.print(\" \" + x);\n }\n else if(x % 10 == 3){\n System.out.print(\" \" + x);\n }\n else{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }\n }",
"if(String.valueOf(x).contains(\"3\")){\n System.out.print(\" \" + x);\n }\n else if(x % 3 == 0){\n System.out.print(\" \" + x);\n }\n else if(x % 10 == 3){\n System.out.print(\" \" + x);\n }\n else{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }",
"String.valueOf(x).contains(\"3\")",
"String.valueOf(x).contains",
"String.valueOf(x)",
"String.valueOf",
"String",
"x",
"\"3\"",
"{\n System.out.print(\" \" + x);\n }",
"System.out.print(\" \" + x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + x",
"\" \"",
"x",
"if(x % 3 == 0){\n System.out.print(\" \" + x);\n }\n else if(x % 10 == 3){\n System.out.print(\" \" + x);\n }\n else{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n System.out.print(\" \" + x);\n }",
"System.out.print(\" \" + x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + x",
"\" \"",
"x",
"if(x % 10 == 3){\n System.out.print(\" \" + x);\n }\n else{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n System.out.print(\" \" + x);\n }",
"System.out.print(\" \" + x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + x",
"\" \"",
"x",
"{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }",
"i = x /10",
"i",
"x /10",
"x",
"10",
"if(i % 10 == 3){\n System.out.print(\" \" + x);\n }",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"{\n System.out.print(\" \" + x);\n }",
"System.out.print(\" \" + x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + x",
"\" \"",
"x",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int i;\n for(int x = 1; x <= n; x++){\n if(String.valueOf(x).contains(\"3\")){\n System.out.print(\" \" + x);\n }\n else if(x % 3 == 0){\n System.out.print(\" \" + x);\n }\n else if(x % 10 == 3){\n System.out.print(\" \" + x);\n }\n else{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }\n }\n System.out.println();\n }\n}",
"public class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n int i;\n for(int x = 1; x <= n; x++){\n if(String.valueOf(x).contains(\"3\")){\n System.out.print(\" \" + x);\n }\n else if(x % 3 == 0){\n System.out.print(\" \" + x);\n }\n else if(x % 10 == 3){\n System.out.print(\" \" + x);\n }\n else{\n i = x /10;\n if(i % 10 == 3){\n System.out.print(\" \" + x);\n }\n }\n }\n System.out.println();\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();
int i;
for(int x = 1; x <= n; x++){
if(String.valueOf(x).contains("3")){
System.out.print(" " + x);
}
else if(x % 3 == 0){
System.out.print(" " + x);
}
else if(x % 10 == 3){
System.out.print(" " + x);
}
else{
i = x /10;
if(i % 10 == 3){
System.out.print(" " + x);
}
}
}
System.out.println();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
2,
13,
17,
17,
2,
4,
18,
13,
17,
40,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
31,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
45,
50
],
[
50,
51
],
[
38,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
8,
66
],
[
66,
67
],
[
67,
68
],
[
6,
69
],
[
69,
70
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n int n;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\t\n\t\tfor(int i = 3; i <= n; i ++){\n\t\t\tString str_i = String.valueOf(i);\n\t\t\tif(i % 3 == 0 || str_i.indexOf(\"3\") != -1){\n\t\t\t\tSystem.out.print(\" \"+i);\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n \tscanner.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n int n;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\t\n\t\tfor(int i = 3; i <= n; i ++){\n\t\t\tString str_i = String.valueOf(i);\n\t\t\tif(i % 3 == 0 || str_i.indexOf(\"3\") != -1){\n\t\t\t\tSystem.out.print(\" \"+i);\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n \tscanner.close();\n }\n}",
"Main",
"public static void main(String[] args){\n int n;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\t\n\t\tfor(int i = 3; i <= n; i ++){\n\t\t\tString str_i = String.valueOf(i);\n\t\t\tif(i % 3 == 0 || str_i.indexOf(\"3\") != -1){\n\t\t\t\tSystem.out.print(\" \"+i);\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n \tscanner.close();\n }",
"main",
"{\n int n;\n\t\tScanner scanner = new Scanner(System.in);\n\t\tn = scanner.nextInt();\n\t\t\n\t\tfor(int i = 3; i <= n; i ++){\n\t\t\tString str_i = String.valueOf(i);\n\t\t\tif(i % 3 == 0 || str_i.indexOf(\"3\") != -1){\n\t\t\t\tSystem.out.print(\" \"+i);\t\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n \tscanner.close();\n }",
"int n;",
"n",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"n = scanner.nextInt()",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(int i = 3; i <= n; i ++){\n\t\t\tString str_i = String.valueOf(i);\n\t\t\tif(i % 3 == 0 || str_i.indexOf(\"3\") != -1){\n\t\t\t\tSystem.out.print(\" \"+i);\t\n\t\t\t}\n\t\t}",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= n",
"i",
"n",
"i ++",
"i ++",
"i",
"{\n\t\t\tString str_i = String.valueOf(i);\n\t\t\tif(i % 3 == 0 || str_i.indexOf(\"3\") != -1){\n\t\t\t\tSystem.out.print(\" \"+i);\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tString str_i = String.valueOf(i);\n\t\t\tif(i % 3 == 0 || str_i.indexOf(\"3\") != -1){\n\t\t\t\tSystem.out.print(\" \"+i);\t\n\t\t\t}\n\t\t}",
"String str_i = String.valueOf(i);",
"str_i",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"if(i % 3 == 0 || str_i.indexOf(\"3\") != -1){\n\t\t\t\tSystem.out.print(\" \"+i);\t\n\t\t\t}",
"i % 3 == 0 || str_i.indexOf(\"3\") != -1",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"str_i.indexOf(\"3\") != -1",
"str_i.indexOf(\"3\")",
"str_i.indexOf",
"str_i",
"\"3\"",
"-1",
"1",
"{\n\t\t\t\tSystem.out.print(\" \"+i);\t\n\t\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"scanner.close()",
"scanner.close",
"scanner",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[] args){
int n;
Scanner scanner = new Scanner(System.in);
n = scanner.nextInt();
for(int i = 3; i <= n; i ++){
String str_i = String.valueOf(i);
if(i % 3 == 0 || str_i.indexOf("3") != -1){
System.out.print(" "+i);
}
}
System.out.println();
scanner.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
14,
2,
4,
18,
4,
18,
13,
13,
17,
40,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
0,
13,
20,
41,
13,
17,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
4,
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
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
15,
23
],
[
23,
24
],
[
24,
25
],
[
15,
26
],
[
27,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
34,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
28,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
49,
55
],
[
48,
56
],
[
56,
57
],
[
47,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
58,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
14,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
12,
77
],
[
77,
78
],
[
12,
79
],
[
79,
80
],
[
0,
81
],
[
127,
82
],
[
127,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
85,
91
],
[
91,
92
],
[
91,
93
],
[
85,
94
],
[
94,
95
],
[
85,
96
],
[
96,
97
],
[
96,
98
],
[
85,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
85,
104
],
[
104,
105
],
[
104,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
85,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
115,
116
],
[
115,
117
],
[
110,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
119,
122
],
[
119,
123
],
[
83,
124
],
[
124,
125
],
[
0,
126
],
[
126,
127
],
[
126,
128
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n/**\n * ???????????????\n *\n * @author B7078\n *\n */\nclass Calcurator {\n\n\tpublic void Cal(int n, String str) { // Cal????????????:3????????°or3???????????´??°????????\\\n\n\t\tfor (int i = 1; i <= n; ++i) {\n\t\t\tif (i % 3 == 0) { // 3??§?????????????????´??°\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t} else if (String.valueOf(i).indexOf(\"3\") != -1) { // ??´??°???\"3\"????????????????????\\\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t/**\n\t\t *\n\t\t */\n\t\tCalcurator cal1;\n\t\tcal1 = new Calcurator();\n\t\t/**\n\t\t * ?????°?????£?¨?\n\t\t */\n\t\tint n = 0;\n\t\tString str;\n\t\t/**\n\t\t * ??´??°n?????\\?????¨??????\n\t\t */\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine();\n\t\tn = Integer.parseInt(str);\n\t\tif (n >= 3 || n <= 10000) {\n\t\t\tcal1.Cal(n, str);\n\t\t}\n\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Calcurator {\n\n\tpublic void Cal(int n, String str) { // Cal????????????:3????????°or3???????????´??°????????\\\n\n\t\tfor (int i = 1; i <= n; ++i) {\n\t\t\tif (i % 3 == 0) { // 3??§?????????????????´??°\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t} else if (String.valueOf(i).indexOf(\"3\") != -1) { // ??´??°???\"3\"????????????????????\\\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"Calcurator",
"public void Cal(int n, String str) { // Cal????????????:3????????°or3???????????´??°????????\\\n\n\t\tfor (int i = 1; i <= n; ++i) {\n\t\t\tif (i % 3 == 0) { // 3??§?????????????????´??°\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t} else if (String.valueOf(i).indexOf(\"3\") != -1) { // ??´??°???\"3\"????????????????????\\\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"Cal",
"{ // Cal????????????:3????????°or3???????????´??°????????\\\n\n\t\tfor (int i = 1; i <= n; ++i) {\n\t\t\tif (i % 3 == 0) { // 3??§?????????????????´??°\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t} else if (String.valueOf(i).indexOf(\"3\") != -1) { // ??´??°???\"3\"????????????????????\\\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"for (int i = 1; i <= n; ++i) {\n\t\t\tif (i % 3 == 0) { // 3??§?????????????????´??°\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t} else if (String.valueOf(i).indexOf(\"3\") != -1) { // ??´??°???\"3\"????????????????????\\\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"++i",
"++i",
"i",
"{\n\t\t\tif (i % 3 == 0) { // 3??§?????????????????´??°\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t} else if (String.valueOf(i).indexOf(\"3\") != -1) { // ??´??°???\"3\"????????????????????\\\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % 3 == 0) { // 3??§?????????????????´??°\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t} else if (String.valueOf(i).indexOf(\"3\") != -1) { // ??´??°???\"3\"????????????????????\\\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}\n\t\t}",
"if (i % 3 == 0) { // 3??§?????????????????´??°\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t} else if (String.valueOf(i).indexOf(\"3\") != -1) { // ??´??°???\"3\"????????????????????\\\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{ // 3??§?????????????????´??°\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(i)",
"System.out.print",
"System.out",
"System",
"System.out",
"i",
"if (String.valueOf(i).indexOf(\"3\") != -1) { // ??´??°???\"3\"????????????????????\\\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}",
"String.valueOf(i).indexOf(\"3\") != -1",
"String.valueOf(i).indexOf(\"3\")",
"String.valueOf(i).indexOf",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"\"3\"",
"-1",
"1",
"{ // ??´??°???\"3\"????????????????????\\\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(i)",
"System.out.print",
"System.out",
"System",
"System.out",
"i",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"int n",
"n",
"String str",
"str",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t/**\n\t\t *\n\t\t */\n\t\tCalcurator cal1;\n\t\tcal1 = new Calcurator();\n\t\t/**\n\t\t * ?????°?????£?¨?\n\t\t */\n\t\tint n = 0;\n\t\tString str;\n\t\t/**\n\t\t * ??´??°n?????\\?????¨??????\n\t\t */\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine();\n\t\tn = Integer.parseInt(str);\n\t\tif (n >= 3 || n <= 10000) {\n\t\t\tcal1.Cal(n, str);\n\t\t}\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t/**\n\t\t *\n\t\t */\n\t\tCalcurator cal1;\n\t\tcal1 = new Calcurator();\n\t\t/**\n\t\t * ?????°?????£?¨?\n\t\t */\n\t\tint n = 0;\n\t\tString str;\n\t\t/**\n\t\t * ??´??°n?????\\?????¨??????\n\t\t */\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine();\n\t\tn = Integer.parseInt(str);\n\t\tif (n >= 3 || n <= 10000) {\n\t\t\tcal1.Cal(n, str);\n\t\t}\n\n\t}",
"main",
"{\n\t\t/**\n\t\t *\n\t\t */\n\t\tCalcurator cal1;\n\t\tcal1 = new Calcurator();\n\t\t/**\n\t\t * ?????°?????£?¨?\n\t\t */\n\t\tint n = 0;\n\t\tString str;\n\t\t/**\n\t\t * ??´??°n?????\\?????¨??????\n\t\t */\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine();\n\t\tn = Integer.parseInt(str);\n\t\tif (n >= 3 || n <= 10000) {\n\t\t\tcal1.Cal(n, str);\n\t\t}\n\n\t}",
"Calcurator cal1;",
"cal1",
"cal1 = new Calcurator()",
"cal1",
"new Calcurator()",
"int n = 0;",
"n",
"0",
"String str;",
"str",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"n = Integer.parseInt(str)",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"if (n >= 3 || n <= 10000) {\n\t\t\tcal1.Cal(n, str);\n\t\t}",
"n >= 3 || n <= 10000",
"n >= 3",
"n",
"3",
"n <= 10000",
"n",
"10000",
"{\n\t\t\tcal1.Cal(n, str);\n\t\t}",
"cal1.Cal(n, str)",
"cal1.Cal",
"cal1",
"n",
"str",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t/**\n\t\t *\n\t\t */\n\t\tCalcurator cal1;\n\t\tcal1 = new Calcurator();\n\t\t/**\n\t\t * ?????°?????£?¨?\n\t\t */\n\t\tint n = 0;\n\t\tString str;\n\t\t/**\n\t\t * ??´??°n?????\\?????¨??????\n\t\t */\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine();\n\t\tn = Integer.parseInt(str);\n\t\tif (n >= 3 || n <= 10000) {\n\t\t\tcal1.Cal(n, str);\n\t\t}\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\t/**\n\t\t *\n\t\t */\n\t\tCalcurator cal1;\n\t\tcal1 = new Calcurator();\n\t\t/**\n\t\t * ?????°?????£?¨?\n\t\t */\n\t\tint n = 0;\n\t\tString str;\n\t\t/**\n\t\t * ??´??°n?????\\?????¨??????\n\t\t */\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tstr = br.readLine();\n\t\tn = Integer.parseInt(str);\n\t\tif (n >= 3 || n <= 10000) {\n\t\t\tcal1.Cal(n, str);\n\t\t}\n\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* ???????????????
*
* @author B7078
*
*/
class Calcurator {
public void Cal(int n, String str) { // Cal????????????:3????????°or3???????????´??°????????\
for (int i = 1; i <= n; ++i) {
if (i % 3 == 0) { // 3??§?????????????????´??°
System.out.print(" ");
System.out.print(i);
} else if (String.valueOf(i).indexOf("3") != -1) { // ??´??°???"3"????????????????????\
System.out.print(" ");
System.out.print(i);
}
}
System.out.println("");
}
}
public class Main {
public static void main(String[] args) throws IOException {
/**
*
*/
Calcurator cal1;
cal1 = new Calcurator();
/**
* ?????°?????£?¨?
*/
int n = 0;
String str;
/**
* ??´??°n?????\?????¨??????
*/
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
str = br.readLine();
n = Integer.parseInt(str);
if (n >= 3 || n <= 10000) {
cal1.Cal(n, str);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
9,
41,
13,
13,
42,
17,
30,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
3,
14,
2,
13,
17,
30,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
91,
5
],
[
91,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
49,
51
],
[
45,
52
],
[
32,
53
],
[
53,
54
],
[
53,
55
],
[
32,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
68,
75
],
[
58,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
6,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n StringBuilder build = new StringBuilder();\n int n = input.nextInt();\n for(int i = 1; i <= n; i++){\n if(i%3 == 0 || i%10 == 3){\n build.append(\" \"+i);\n continue;\n }\n int x = i;\n while(true){\n x /= 10;\n if(x%10 == 3){\n build.append(\" \"+i);\n break;\n }\n if(x <= 3){\n break;\n }\n }\n }\n System.out.println(build);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n StringBuilder build = new StringBuilder();\n int n = input.nextInt();\n for(int i = 1; i <= n; i++){\n if(i%3 == 0 || i%10 == 3){\n build.append(\" \"+i);\n continue;\n }\n int x = i;\n while(true){\n x /= 10;\n if(x%10 == 3){\n build.append(\" \"+i);\n break;\n }\n if(x <= 3){\n break;\n }\n }\n }\n System.out.println(build);\n }\n}",
"Main",
"public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n StringBuilder build = new StringBuilder();\n int n = input.nextInt();\n for(int i = 1; i <= n; i++){\n if(i%3 == 0 || i%10 == 3){\n build.append(\" \"+i);\n continue;\n }\n int x = i;\n while(true){\n x /= 10;\n if(x%10 == 3){\n build.append(\" \"+i);\n break;\n }\n if(x <= 3){\n break;\n }\n }\n }\n System.out.println(build);\n }",
"main",
"{\n Scanner input = new Scanner(System.in);\n StringBuilder build = new StringBuilder();\n int n = input.nextInt();\n for(int i = 1; i <= n; i++){\n if(i%3 == 0 || i%10 == 3){\n build.append(\" \"+i);\n continue;\n }\n int x = i;\n while(true){\n x /= 10;\n if(x%10 == 3){\n build.append(\" \"+i);\n break;\n }\n if(x <= 3){\n break;\n }\n }\n }\n System.out.println(build);\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"StringBuilder build = new StringBuilder();",
"build",
"new StringBuilder()",
"int n = input.nextInt();",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"for(int i = 1; i <= n; i++){\n if(i%3 == 0 || i%10 == 3){\n build.append(\" \"+i);\n continue;\n }\n int x = i;\n while(true){\n x /= 10;\n if(x%10 == 3){\n build.append(\" \"+i);\n break;\n }\n if(x <= 3){\n break;\n }\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i%3 == 0 || i%10 == 3){\n build.append(\" \"+i);\n continue;\n }\n int x = i;\n while(true){\n x /= 10;\n if(x%10 == 3){\n build.append(\" \"+i);\n break;\n }\n if(x <= 3){\n break;\n }\n }\n }",
"{\n if(i%3 == 0 || i%10 == 3){\n build.append(\" \"+i);\n continue;\n }\n int x = i;\n while(true){\n x /= 10;\n if(x%10 == 3){\n build.append(\" \"+i);\n break;\n }\n if(x <= 3){\n break;\n }\n }\n }",
"if(i%3 == 0 || i%10 == 3){\n build.append(\" \"+i);\n continue;\n }",
"i%3 == 0 || i%10 == 3",
"i%3 == 0",
"i%3",
"i",
"3",
"0",
"i%10 == 3",
"i%10",
"i",
"10",
"3",
"{\n build.append(\" \"+i);\n continue;\n }",
"build.append(\" \"+i)",
"build.append",
"build",
"\" \"+i",
"\" \"",
"i",
"continue;",
"int x = i;",
"x",
"i",
"while(true){\n x /= 10;\n if(x%10 == 3){\n build.append(\" \"+i);\n break;\n }\n if(x <= 3){\n break;\n }\n }",
"true",
"{\n x /= 10;\n if(x%10 == 3){\n build.append(\" \"+i);\n break;\n }\n if(x <= 3){\n break;\n }\n }",
"x /= 10",
"x",
"10",
"if(x%10 == 3){\n build.append(\" \"+i);\n break;\n }",
"x%10 == 3",
"x%10",
"x",
"10",
"3",
"{\n build.append(\" \"+i);\n break;\n }",
"build.append(\" \"+i)",
"build.append",
"build",
"\" \"+i",
"\" \"",
"i",
"break;",
"if(x <= 3){\n break;\n }",
"x <= 3",
"x",
"3",
"{\n break;\n }",
"break;",
"System.out.println(build)",
"System.out.println",
"System.out",
"System",
"System.out",
"build",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n StringBuilder build = new StringBuilder();\n int n = input.nextInt();\n for(int i = 1; i <= n; i++){\n if(i%3 == 0 || i%10 == 3){\n build.append(\" \"+i);\n continue;\n }\n int x = i;\n while(true){\n x /= 10;\n if(x%10 == 3){\n build.append(\" \"+i);\n break;\n }\n if(x <= 3){\n break;\n }\n }\n }\n System.out.println(build);\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws Exception {\n Scanner input = new Scanner(System.in);\n StringBuilder build = new StringBuilder();\n int n = input.nextInt();\n for(int i = 1; i <= n; i++){\n if(i%3 == 0 || i%10 == 3){\n build.append(\" \"+i);\n continue;\n }\n int x = i;\n while(true){\n x /= 10;\n if(x%10 == 3){\n build.append(\" \"+i);\n break;\n }\n if(x <= 3){\n break;\n }\n }\n }\n System.out.println(build);\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
Scanner input = new Scanner(System.in);
StringBuilder build = new StringBuilder();
int n = input.nextInt();
for(int i = 1; i <= n; i++){
if(i%3 == 0 || i%10 == 3){
build.append(" "+i);
continue;
}
int x = i;
while(true){
x /= 10;
if(x%10 == 3){
build.append(" "+i);
break;
}
if(x <= 3){
break;
}
}
}
System.out.println(build);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
2,
13,
17,
4,
18,
18,
13,
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
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
24,
29
],
[
29,
30
],
[
29,
31
],
[
24,
32
],
[
32,
33
],
[
33,
34
],
[
24,
35
],
[
36,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
46,
55
],
[
36,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
67,
76
],
[
60,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
11,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
9,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tScanner scan = new Scanner(System.in);\n public static void main(String[] args) {\n\n \t/*Scanner = テキスト入力を扱うためのクラス\n\t\t *キーボードからの入力を受けつける場合は\n\t\t *System.inを使って下記のように記述\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n =scan.nextInt();\n\t\tint x;\n\t\tint i;\n\n\t\t//for文を設置。初期値として3を用意。\n\t\tfor(i=3; i<= n; i++){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。\n\t\t\t}\n\t\t\twhile(x!=0){\n\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}\n\t\t\t\tx = x/10; //これをしないとxがいつまでたっても割られないはず。xの値変更。\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tScanner scan = new Scanner(System.in);\n public static void main(String[] args) {\n\n \t/*Scanner = テキスト入力を扱うためのクラス\n\t\t *キーボードからの入力を受けつける場合は\n\t\t *System.inを使って下記のように記述\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n =scan.nextInt();\n\t\tint x;\n\t\tint i;\n\n\t\t//for文を設置。初期値として3を用意。\n\t\tfor(i=3; i<= n; i++){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。\n\t\t\t}\n\t\t\twhile(x!=0){\n\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}\n\t\t\t\tx = x/10; //これをしないとxがいつまでたっても割られないはず。xの値変更。\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n }\n}",
"Main",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\n \t/*Scanner = テキスト入力を扱うためのクラス\n\t\t *キーボードからの入力を受けつける場合は\n\t\t *System.inを使って下記のように記述\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n =scan.nextInt();\n\t\tint x;\n\t\tint i;\n\n\t\t//for文を設置。初期値として3を用意。\n\t\tfor(i=3; i<= n; i++){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。\n\t\t\t}\n\t\t\twhile(x!=0){\n\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}\n\t\t\t\tx = x/10; //これをしないとxがいつまでたっても割られないはず。xの値変更。\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n }",
"main",
"{\n\n \t/*Scanner = テキスト入力を扱うためのクラス\n\t\t *キーボードからの入力を受けつける場合は\n\t\t *System.inを使って下記のように記述\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n =scan.nextInt();\n\t\tint x;\n\t\tint i;\n\n\t\t//for文を設置。初期値として3を用意。\n\t\tfor(i=3; i<= n; i++){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。\n\t\t\t}\n\t\t\twhile(x!=0){\n\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}\n\t\t\t\tx = x/10; //これをしないとxがいつまでたっても割られないはず。xの値変更。\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n =scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int x;",
"x",
"int i;",
"i",
"for(i=3; i<= n; i++){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。\n\t\t\t}\n\t\t\twhile(x!=0){\n\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}\n\t\t\t\tx = x/10; //これをしないとxがいつまでたっても割られないはず。xの値変更。\n\t\t\t}\n\t\t}",
"i=3;",
"i=3",
"i",
"3",
"i<= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。\n\t\t\t}\n\t\t\twhile(x!=0){\n\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}\n\t\t\t\tx = x/10; //これをしないとxがいつまでたっても割られないはず。xの値変更。\n\t\t\t}\n\t\t}",
"{\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。\n\t\t\t}\n\t\t\twhile(x!=0){\n\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}\n\t\t\t\tx = x/10; //これをしないとxがいつまでたっても割られないはず。xの値変更。\n\t\t\t}\n\t\t}",
"x = i",
"x",
"i",
"if(x%3==0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。\n\t\t\t}",
"x%3==0",
"x%3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"continue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。",
"while(x!=0){\n\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}\n\t\t\t\tx = x/10; //これをしないとxがいつまでたっても割られないはず。xの値変更。\n\t\t\t}",
"x!=0",
"x",
"0",
"{\n\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}\n\t\t\t\tx = x/10; //これをしないとxがいつまでたっても割られないはず。xの値変更。\n\t\t\t}",
"if(x%10==3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}",
"x%10==3",
"x%10",
"x",
"10",
"3",
"{\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"break ; //while文を抜けるため",
"x = x/10",
"x",
"x/10",
"x",
"10",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\tScanner scan = new Scanner(System.in);\n public static void main(String[] args) {\n\n \t/*Scanner = テキスト入力を扱うためのクラス\n\t\t *キーボードからの入力を受けつける場合は\n\t\t *System.inを使って下記のように記述\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n =scan.nextInt();\n\t\tint x;\n\t\tint i;\n\n\t\t//for文を設置。初期値として3を用意。\n\t\tfor(i=3; i<= n; i++){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。\n\t\t\t}\n\t\t\twhile(x!=0){\n\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}\n\t\t\t\tx = x/10; //これをしないとxがいつまでたっても割られないはず。xの値変更。\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n }\n}",
"public class Main {\n\tScanner scan = new Scanner(System.in);\n public static void main(String[] args) {\n\n \t/*Scanner = テキスト入力を扱うためのクラス\n\t\t *キーボードからの入力を受けつける場合は\n\t\t *System.inを使って下記のように記述\n\t\t */\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n =scan.nextInt();\n\t\tint x;\n\t\tint i;\n\n\t\t//for文を設置。初期値として3を用意。\n\t\tfor(i=3; i<= n; i++){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。\n\t\t\t}\n\t\t\twhile(x!=0){\n\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak ; //while文を抜けるため\n\t\t\t\t}\n\t\t\t\tx = x/10; //これをしないとxがいつまでたっても割られないはず。xの値変更。\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
Scanner scan = new Scanner(System.in);
public static void main(String[] args) {
/*Scanner = テキスト入力を扱うためのクラス
*キーボードからの入力を受けつける場合は
*System.inを使って下記のように記述
*/
Scanner scan = new Scanner(System.in);
int n =scan.nextInt();
int x;
int i;
//for文を設置。初期値として3を用意。
for(i=3; i<= n; i++){
x = i;
if(x%3==0){
System.out.print(" " + i);
continue ; //こちらで割り切れたものはwhile文に飛ばす必要はないのでスキップさせる。
}
while(x!=0){
if(x%10==3){
System.out.print(" " + i);
break ; //while文を抜けるため
}
x = x/10; //これをしないとxがいつまでたっても割られないはず。xの値変更。
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
41,
13,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
116,
5
],
[
116,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
35,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
47,
56
],
[
34,
57
],
[
57,
58
],
[
57,
59
],
[
34,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
76,
85
],
[
30,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
87,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
8,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
110,
112
],
[
6,
113
],
[
113,
114
],
[
0,
115
],
[
115,
116
],
[
115,
117
]
] | [
"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\n\t\tfor (int i = 1; i <= n; i++) {\n\n\t\t\tif (n >= 10) {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x > 9) {\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\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\n\t\tfor (int i = 1; i <= n; i++) {\n\n\t\t\tif (n >= 10) {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x > 9) {\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\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\n\t\tfor (int i = 1; i <= n; i++) {\n\n\t\t\tif (n >= 10) {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x > 9) {\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tfor (int i = 1; i <= n; i++) {\n\n\t\t\tif (n >= 10) {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x > 9) {\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 1; i <= n; i++) {\n\n\t\t\tif (n >= 10) {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x > 9) {\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\tif (n >= 10) {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x > 9) {\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"{\n\n\t\t\tif (n >= 10) {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x > 9) {\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"if (n >= 10) {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x > 9) {\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}\n\t\t\t}",
"n >= 10",
"n",
"10",
"{\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x > 9) {\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t}",
"if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"(i % 10 == 3) || (i % 3 == 0)",
"(i % 10 == 3)",
"i % 10",
"i",
"10",
"3",
"(i % 3 == 0)",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"continue;",
"int x = i;",
"x",
"i",
"while (x > 9) {\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"x > 9",
"x",
"9",
"{\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"x = x / 10",
"x",
"x / 10",
"x",
"10",
"if ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"(x % 10 == 3)",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"break;",
"{\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}\n\t\t\t}",
"if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}",
"(i % 10 == 3) || (i % 3 == 0)",
"(i % 10 == 3)",
"i % 10",
"i",
"10",
"3",
"(i % 3 == 0)",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"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\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tfor (int i = 1; i <= n; i++) {\n\n\t\t\tif (n >= 10) {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x > 9) {\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\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\n\t\tfor (int i = 1; i <= n; i++) {\n\n\t\t\tif (n >= 10) {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x > 9) {\n\t\t\t\t\t/*if ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}*/\n\n\t\t\t\t\tx = x / 10;\n\t\t\t\t\tif ((x % 10 == 3) ) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\n\t\t\t} else {\n\t\t\t\tif ((i % 10 == 3) || (i % 3 == 0)) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\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();
for (int i = 1; i <= n; i++) {
if (n >= 10) {
if ((i % 10 == 3) || (i % 3 == 0)) {
System.out.print(" " + i);
continue;
}
int x = i;
while (x > 9) {
/*if ((i % 10 == 3) || (i % 3 == 0)) {
System.out.print(" " + i);
break;
}*/
x = x / 10;
if ((x % 10 == 3) ) {
System.out.print(" " + i);
break;
}
}
} else {
if ((i % 10 == 3) || (i % 3 == 0)) {
System.out.print(" " + i);
}
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
20,
41,
13,
20,
0,
13,
4,
18,
13,
42,
17,
30,
14,
2,
13,
13,
30,
3,
14,
2,
2,
2,
13,
17,
17,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
13,
2,
17,
13,
40,
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
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
27,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
41,
47
],
[
34,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
52,
53
],
[
52,
54
],
[
27,
55
],
[
55,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
6,
63
],
[
63,
64
]
] | [
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String args[]){\n\t\tint num = 3;\n\t\tint x;\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuffer sb = new StringBuffer();\n\t\tx = scan.nextInt();\n\n\t\twhile(true){\n\t\t\tif(x < num){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(num % 3 == 0 || Integer.toString(num).contains(\"3\")){\n\t\t\t\tsb.append(\" \" + num);\n\t\t\t}\n\t\t\tnum++;\n\t\t}\n\t\tSystem.out.println(sb);\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String args[]){\n\t\tint num = 3;\n\t\tint x;\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuffer sb = new StringBuffer();\n\t\tx = scan.nextInt();\n\n\t\twhile(true){\n\t\t\tif(x < num){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(num % 3 == 0 || Integer.toString(num).contains(\"3\")){\n\t\t\t\tsb.append(\" \" + num);\n\t\t\t}\n\t\t\tnum++;\n\t\t}\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main",
"public static void main(String args[]){\n\t\tint num = 3;\n\t\tint x;\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuffer sb = new StringBuffer();\n\t\tx = scan.nextInt();\n\n\t\twhile(true){\n\t\t\tif(x < num){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(num % 3 == 0 || Integer.toString(num).contains(\"3\")){\n\t\t\t\tsb.append(\" \" + num);\n\t\t\t}\n\t\t\tnum++;\n\t\t}\n\t\tSystem.out.println(sb);\n\t}",
"main",
"{\n\t\tint num = 3;\n\t\tint x;\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuffer sb = new StringBuffer();\n\t\tx = scan.nextInt();\n\n\t\twhile(true){\n\t\t\tif(x < num){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(num % 3 == 0 || Integer.toString(num).contains(\"3\")){\n\t\t\t\tsb.append(\" \" + num);\n\t\t\t}\n\t\t\tnum++;\n\t\t}\n\t\tSystem.out.println(sb);\n\t}",
"int num = 3;",
"num",
"3",
"int x;",
"x",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"StringBuffer sb = new StringBuffer();",
"sb",
"new StringBuffer()",
"x = scan.nextInt()",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"while(true){\n\t\t\tif(x < num){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(num % 3 == 0 || Integer.toString(num).contains(\"3\")){\n\t\t\t\tsb.append(\" \" + num);\n\t\t\t}\n\t\t\tnum++;\n\t\t}",
"true",
"{\n\t\t\tif(x < num){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tif(num % 3 == 0 || Integer.toString(num).contains(\"3\")){\n\t\t\t\tsb.append(\" \" + num);\n\t\t\t}\n\t\t\tnum++;\n\t\t}",
"if(x < num){\n\t\t\t\tbreak;\n\t\t\t}",
"x < num",
"x",
"num",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"if(num % 3 == 0 || Integer.toString(num).contains(\"3\")){\n\t\t\t\tsb.append(\" \" + num);\n\t\t\t}",
"num % 3 == 0 || Integer.toString(num).contains(\"3\")",
"num % 3 == 0",
"num % 3",
"num",
"3",
"0",
"Integer.toString(num).contains(\"3\")",
"Integer.toString(num).contains",
"Integer.toString(num)",
"Integer.toString",
"Integer",
"num",
"\"3\"",
"{\n\t\t\t\tsb.append(\" \" + num);\n\t\t\t}",
"sb.append(\" \" + num)",
"sb.append",
"sb",
"\" \" + num",
"\" \"",
"num",
"num++",
"num",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String args[]",
"args"
] | import java.util.*;
class Main{
public static void main(String args[]){
int num = 3;
int x;
Scanner scan = new Scanner(System.in);
StringBuffer sb = new StringBuffer();
x = scan.nextInt();
while(true){
if(x < num){
break;
}
if(num % 3 == 0 || Integer.toString(num).contains("3")){
sb.append(" " + num);
}
num++;
}
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
0,
13,
13,
42,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
3,
14,
2,
13,
17,
30,
3,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
0,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
103,
5
],
[
103,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
35,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
56,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
56,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
50,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
83,
92
],
[
92,
93
],
[
92,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
6,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tint a;\n\t\t\t\tint flag = 0;\n\n\t\t\t\tfor(int i = 1; i <= j; i++) {\n\n\t\t\t\t\tif(i % 3 == 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\ta = i;\n\t\t\t\t\t\twhile(true) {\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(flag == 1) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\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\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tint a;\n\t\t\t\tint flag = 0;\n\n\t\t\t\tfor(int i = 1; i <= j; i++) {\n\n\t\t\t\t\tif(i % 3 == 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\ta = i;\n\t\t\t\t\t\twhile(true) {\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(flag == 1) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tint a;\n\t\t\t\tint flag = 0;\n\n\t\t\t\tfor(int i = 1; i <= j; i++) {\n\n\t\t\t\t\tif(i % 3 == 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\ta = i;\n\t\t\t\t\t\twhile(true) {\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(flag == 1) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tint a;\n\t\t\t\tint flag = 0;\n\n\t\t\t\tfor(int i = 1; i <= j; i++) {\n\n\t\t\t\t\tif(i % 3 == 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\ta = i;\n\t\t\t\t\t\twhile(true) {\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(flag == 1) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int j = sc.nextInt();",
"j",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a;",
"a",
"int flag = 0;",
"flag",
"0",
"for(int i = 1; i <= j; i++) {\n\n\t\t\t\t\tif(i % 3 == 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\ta = i;\n\t\t\t\t\t\twhile(true) {\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(flag == 1) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= j",
"i",
"j",
"i++",
"i++",
"i",
"{\n\n\t\t\t\t\tif(i % 3 == 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\ta = i;\n\t\t\t\t\t\twhile(true) {\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(flag == 1) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\n\t\t\t\t\tif(i % 3 == 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\ta = i;\n\t\t\t\t\t\twhile(true) {\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(flag == 1) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}",
"if(i % 3 == 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\ta = i;\n\t\t\t\t\t\twhile(true) {\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(flag == 1) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\n\t\t\t\t\t\ta = i;\n\t\t\t\t\t\twhile(true) {\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(flag == 1) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}",
"a = i",
"a",
"i",
"while(true) {\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}",
"true",
"{\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}",
"if(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"a % 10 == 3",
"a % 10",
"a",
"10",
"3",
"{\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"flag = 1",
"flag",
"1",
"break;",
"if(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"a < 10",
"a",
"10",
"{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"break;",
"a = a / 10",
"a",
"a / 10",
"a",
"10",
"if(flag == 1) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}",
"flag == 1",
"flag",
"1",
"{\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"flag = 0",
"flag",
"0",
"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\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tint a;\n\t\t\t\tint flag = 0;\n\n\t\t\t\tfor(int i = 1; i <= j; i++) {\n\n\t\t\t\t\tif(i % 3 == 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\ta = i;\n\t\t\t\t\t\twhile(true) {\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(flag == 1) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\n\t\t\t\tint j = sc.nextInt();\n\t\t\t\tint a;\n\t\t\t\tint flag = 0;\n\n\t\t\t\tfor(int i = 1; i <= j; i++) {\n\n\t\t\t\t\tif(i % 3 == 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\ta = i;\n\t\t\t\t\t\twhile(true) {\n\n\t\t\t\t\t\t\tif(a % 10 == 3) {\n\t\t\t\t\t\t\t\tflag = 1;\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\n\t\t\t\t\t\t\tif(a < 10) {\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\ta = a / 10;\n\n\t\t\t\t\t\t}\n\n\t\t\t\t\t\tif(flag == 1) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tflag = 0;\n\t\t\t\t\t\t}\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.println();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int j = sc.nextInt();
int a;
int flag = 0;
for(int i = 1; i <= j; i++) {
if(i % 3 == 0) {
System.out.print(" " + i);
} else {
a = i;
while(true) {
if(a % 10 == 3) {
flag = 1;
break;
}
if(a < 10) {
break;
}
a = a / 10;
}
if(flag == 1) {
System.out.print(" " + i);
flag = 0;
}
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
2,
13,
17,
17,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
13,
13,
30,
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
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
29,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
36,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
29,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] | [
"import java.util.Scanner;\n\n/**\n * Created 2017/06/08.\n */\npublic class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n for(int i = 1; i <= n ; i++){\n String si = String.valueOf(i);\n if(i % 3 == 0 || si.contains(\"3\") ) {\n System.out.print(\" \" + i);\n }\n if(i == n){\n System.out.println(\"\");\n }\n \n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n for(int i = 1; i <= n ; i++){\n String si = String.valueOf(i);\n if(i % 3 == 0 || si.contains(\"3\") ) {\n System.out.print(\" \" + i);\n }\n if(i == n){\n System.out.println(\"\");\n }\n \n }\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n for(int i = 1; i <= n ; i++){\n String si = String.valueOf(i);\n if(i % 3 == 0 || si.contains(\"3\") ) {\n System.out.print(\" \" + i);\n }\n if(i == n){\n System.out.println(\"\");\n }\n \n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n for(int i = 1; i <= n ; i++){\n String si = String.valueOf(i);\n if(i % 3 == 0 || si.contains(\"3\") ) {\n System.out.print(\" \" + i);\n }\n if(i == n){\n System.out.println(\"\");\n }\n \n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 1; i <= n ; i++){\n String si = String.valueOf(i);\n if(i % 3 == 0 || si.contains(\"3\") ) {\n System.out.print(\" \" + i);\n }\n if(i == n){\n System.out.println(\"\");\n }\n \n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n String si = String.valueOf(i);\n if(i % 3 == 0 || si.contains(\"3\") ) {\n System.out.print(\" \" + i);\n }\n if(i == n){\n System.out.println(\"\");\n }\n \n }",
"{\n String si = String.valueOf(i);\n if(i % 3 == 0 || si.contains(\"3\") ) {\n System.out.print(\" \" + i);\n }\n if(i == n){\n System.out.println(\"\");\n }\n \n }",
"String si = String.valueOf(i);",
"si",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"if(i % 3 == 0 || si.contains(\"3\") ) {\n System.out.print(\" \" + i);\n }",
"i % 3 == 0 || si.contains(\"3\")",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"si.contains(\"3\")",
"si.contains",
"si",
"\"3\"",
"{\n System.out.print(\" \" + i);\n }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"if(i == n){\n System.out.println(\"\");\n }",
"i == n",
"i",
"n",
"{\n System.out.println(\"\");\n }",
"System.out.println(\"\")",
"System.out.println",
"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 n = sc.nextInt();\n \n for(int i = 1; i <= n ; i++){\n String si = String.valueOf(i);\n if(i % 3 == 0 || si.contains(\"3\") ) {\n System.out.print(\" \" + i);\n }\n if(i == n){\n System.out.println(\"\");\n }\n \n }\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n \n for(int i = 1; i <= n ; i++){\n String si = String.valueOf(i);\n if(i % 3 == 0 || si.contains(\"3\") ) {\n System.out.print(\" \" + i);\n }\n if(i == n){\n System.out.println(\"\");\n }\n \n }\n }\n}",
"Main"
] | import java.util.Scanner;
/**
* Created 2017/06/08.
*/
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i = 1; i <= n ; i++){
String si = String.valueOf(i);
if(i % 3 == 0 || si.contains("3") ) {
System.out.print(" " + i);
}
if(i == n){
System.out.println("");
}
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
4,
18,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
63,
8
],
[
63,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
40,
46
],
[
33,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
11,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
9,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n int a = scanner.nextInt();\n\n for (int i = 3; i <= a; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\"))\n System.out.print(\" \" + i);\n }\n System.out.println();\n\t}\n}\n",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n int a = scanner.nextInt();\n\n for (int i = 3; i <= a; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\"))\n System.out.print(\" \" + i);\n }\n System.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n int a = scanner.nextInt();\n\n for (int i = 3; i <= a; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\"))\n System.out.print(\" \" + i);\n }\n System.out.println();\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n int a = scanner.nextInt();\n\n for (int i = 3; i <= a; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\"))\n System.out.print(\" \" + i);\n }\n System.out.println();\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int a = scanner.nextInt();",
"a",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i = 3; i <= a; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\"))\n System.out.print(\" \" + i);\n }",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= a",
"i",
"a",
"i++",
"i++",
"i",
"{\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\"))\n System.out.print(\" \" + i);\n }",
"{\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\"))\n System.out.print(\" \" + i);\n }",
"if (i % 3 == 0 || String.valueOf(i).contains(\"3\"))\n System.out.print(\" \" + i);",
"i % 3 == 0 || String.valueOf(i).contains(\"3\")",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"String.valueOf(i).contains(\"3\")",
"String.valueOf(i).contains",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"\"3\"",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"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) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n int a = scanner.nextInt();\n\n for (int i = 3; i <= a; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\"))\n System.out.print(\" \" + i);\n }\n System.out.println();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n int a = scanner.nextInt();\n\n for (int i = 3; i <= a; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\"))\n System.out.print(\" \" + i);\n }\n System.out.println();\n\t}\n}",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
Scanner scanner = new Scanner(System.in);
int a = scanner.nextInt();
for (int i = 3; i <= a; i++) {
if (i % 3 == 0 || String.valueOf(i).contains("3"))
System.out.print(" " + i);
}
System.out.println();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
13,
30,
41,
13,
13,
14,
2,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
42,
2,
17,
13,
30,
14,
2,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
21,
24
],
[
20,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
29,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
56,
65
],
[
49,
66
],
[
66,
67
],
[
66,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
6,
75
],
[
75,
76
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner kb = new Scanner( System.in);\t\n\n\t\tint n = kb.nextInt();\n\t\tint i = 1;\n\t\tdo {\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif( 0 == x%3 ) {\n\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif( 3 == x%10 ) {\n\t\t\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while( 0!=x );\n\t\t\t}\n\t\t\t\n\t\t} while ( ++i <= n );\n\t\t\n\t\tSystem.out.print( \"\\n\" );\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner kb = new Scanner( System.in);\t\n\n\t\tint n = kb.nextInt();\n\t\tint i = 1;\n\t\tdo {\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif( 0 == x%3 ) {\n\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif( 3 == x%10 ) {\n\t\t\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while( 0!=x );\n\t\t\t}\n\t\t\t\n\t\t} while ( ++i <= n );\n\t\t\n\t\tSystem.out.print( \"\\n\" );\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner kb = new Scanner( System.in);\t\n\n\t\tint n = kb.nextInt();\n\t\tint i = 1;\n\t\tdo {\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif( 0 == x%3 ) {\n\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif( 3 == x%10 ) {\n\t\t\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while( 0!=x );\n\t\t\t}\n\t\t\t\n\t\t} while ( ++i <= n );\n\t\t\n\t\tSystem.out.print( \"\\n\" );\n\t}",
"main",
"{\n\t\tScanner kb = new Scanner( System.in);\t\n\n\t\tint n = kb.nextInt();\n\t\tint i = 1;\n\t\tdo {\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif( 0 == x%3 ) {\n\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif( 3 == x%10 ) {\n\t\t\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while( 0!=x );\n\t\t\t}\n\t\t\t\n\t\t} while ( ++i <= n );\n\t\t\n\t\tSystem.out.print( \"\\n\" );\n\t}",
"Scanner kb = new Scanner( System.in);",
"kb",
"new Scanner( System.in)",
"int n = kb.nextInt();",
"n",
"kb.nextInt()",
"kb.nextInt",
"kb",
"int i = 1;",
"i",
"1",
"do {\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif( 0 == x%3 ) {\n\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif( 3 == x%10 ) {\n\t\t\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while( 0!=x );\n\t\t\t}\n\t\t\t\n\t\t} while ( ++i <= n );",
"++i <= n",
"++i",
"i",
"n",
"{\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif( 0 == x%3 ) {\n\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif( 3 == x%10 ) {\n\t\t\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while( 0!=x );\n\t\t\t}\n\t\t\t\n\t\t}",
"int x=i;",
"x",
"i",
"if( 0 == x%3 ) {\n\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif( 3 == x%10 ) {\n\t\t\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while( 0!=x );\n\t\t\t}",
"0 == x%3",
"0",
"x%3",
"x",
"3",
"{\n\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t}",
"System.out.print( \" \"+i )",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"{\n\t\t\t\tdo {\n\t\t\t\t\tif( 3 == x%10 ) {\n\t\t\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while( 0!=x );\n\t\t\t}",
"do {\n\t\t\t\t\tif( 3 == x%10 ) {\n\t\t\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while( 0!=x );",
"0!=x",
"0",
"x",
"{\n\t\t\t\t\tif( 3 == x%10 ) {\n\t\t\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}",
"if( 3 == x%10 ) {\n\t\t\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"3 == x%10",
"3",
"x%10",
"x",
"10",
"{\n\t\t\t\t\t\tSystem.out.print( \" \"+i );\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"System.out.print( \" \"+i )",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"break;",
"x /= 10",
"x",
"10",
"System.out.print( \"\\n\" )",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner kb = new Scanner( System.in);
int n = kb.nextInt();
int i = 1;
do {
int x=i;
if( 0 == x%3 ) {
System.out.print( " "+i );
} else {
do {
if( 3 == x%10 ) {
System.out.print( " "+i );
break;
}
x /= 10;
} while( 0!=x );
}
} while ( ++i <= n );
System.out.print( "\n" );
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
13,
41,
13,
13,
41,
13,
17,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
40,
13,
3,
0,
13,
2,
13,
17,
0,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
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
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
12,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
31,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
43,
51
],
[
51,
52
],
[
52,
53
],
[
43,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
56,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
71,
78
],
[
78,
79
],
[
78,
80
],
[
71,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
88,
89
],
[
88,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
85,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
85,
104
],
[
104,
105
],
[
104,
106
],
[
71,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
107,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
114,
116
],
[
112,
117
],
[
117,
118
],
[
117,
119
],
[
31,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
6,
125
],
[
125,
126
],
[
0,
127
],
[
127,
128
],
[
127,
129
]
] | [
"import java.io.*;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tString line = reader.readLine();\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tfor (int i = 1; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tString line = reader.readLine();\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tfor (int i = 1; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n }\n}",
"Main",
"public static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tString line = reader.readLine();\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tfor (int i = 1; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n }",
"main",
"{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tString line = reader.readLine();\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tfor (int i = 1; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"try{\n\t\t\tString line = reader.readLine();\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tfor (int i = 1; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }",
"catch (IOException e) {\n System.out.println(e);\n }",
"IOException e",
"{\n System.out.println(e);\n }",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"catch (NumberFormatException e) {\n System.out.println(\"error\");\n }",
"NumberFormatException e",
"{\n System.out.println(\"error\");\n }",
"System.out.println(\"error\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"error\"",
"{\n\t\t\tString line = reader.readLine();\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tfor (int i = 1; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"String line = reader.readLine();",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"int n = Integer.parseInt(line);",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"for (int i = 1; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"if (i % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"int x = i;",
"x",
"i",
"int y = i;",
"y",
"i",
"int b = 0;",
"b",
"0",
"while (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}",
"x != 0",
"x",
"0",
"{\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}",
"x = x % 10",
"x",
"x % 10",
"x",
"10",
"if (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"x == 3",
"x",
"3",
"{\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"b++",
"b",
"break;",
"y = y / 10",
"y",
"y / 10",
"y",
"10",
"x = y",
"x",
"y",
"if (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}",
"b > 0",
"b",
"0",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"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\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tString line = reader.readLine();\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tfor (int i = 1; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n }\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\ttry{\n\t\t\tString line = reader.readLine();\n\t\t\tint n = Integer.parseInt(line);\n\t\t\tfor (int i = 1; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tint x = i;\n\t\t\t\t\tint y = i;\n\t\t\t\t\tint b = 0;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tx = x % 10;\n\t\t\t\t\t\tif (x == 3) {\n\t\t\t\t\t\t\tb++;\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ty = y / 10;\n\t\t\t\t\t\tx = y;\n\t\t\t\t\t}\n\t\t\t\t\tif (b > 0) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (IOException e) {\n System.out.println(e);\n } catch (NumberFormatException e) {\n System.out.println(\"error\");\n }\n }\n}",
"Main"
] | import java.io.*;
public class Main {
public static void main(String[] args){
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
try{
String line = reader.readLine();
int n = Integer.parseInt(line);
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
System.out.print(" " + i);
} else {
int x = i;
int y = i;
int b = 0;
while (x != 0) {
x = x % 10;
if (x == 3) {
b++;
break;
}
y = y / 10;
x = y;
}
if (b > 0) {
System.out.print(" " + i);
}
}
}
System.out.println();
} catch (IOException e) {
System.out.println(e);
} catch (NumberFormatException e) {
System.out.println("error");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
30,
11,
1,
41,
13,
13,
2,
13,
17,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
94,
5
],
[
94,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
23,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
41,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
56,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
56,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
76,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
6,
91
],
[
91,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n int a = Integer.parseInt(str);\n\n if(a >= 3){\n for(int loop = 1; loop <= a; loop++){\n if(loop % 3 == 0) System.out.print(\" \" + loop);\n else {\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }\n }\n }\n System.out.println();\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 String str = sc.nextLine();\n int a = Integer.parseInt(str);\n\n if(a >= 3){\n for(int loop = 1; loop <= a; loop++){\n if(loop % 3 == 0) System.out.print(\" \" + loop);\n else {\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }\n }\n }\n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n int a = Integer.parseInt(str);\n\n if(a >= 3){\n for(int loop = 1; loop <= a; loop++){\n if(loop % 3 == 0) System.out.print(\" \" + loop);\n else {\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }\n }\n }\n System.out.println();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n int a = Integer.parseInt(str);\n\n if(a >= 3){\n for(int loop = 1; loop <= a; loop++){\n if(loop % 3 == 0) System.out.print(\" \" + loop);\n else {\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }\n }\n }\n System.out.println();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String str = sc.nextLine();",
"str",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int a = Integer.parseInt(str);",
"a",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"if(a >= 3){\n for(int loop = 1; loop <= a; loop++){\n if(loop % 3 == 0) System.out.print(\" \" + loop);\n else {\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }\n }\n }",
"a >= 3",
"a",
"3",
"{\n for(int loop = 1; loop <= a; loop++){\n if(loop % 3 == 0) System.out.print(\" \" + loop);\n else {\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }\n }\n }",
"for(int loop = 1; loop <= a; loop++){\n if(loop % 3 == 0) System.out.print(\" \" + loop);\n else {\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }\n }",
"int loop = 1;",
"int loop = 1;",
"loop",
"1",
"loop <= a",
"loop",
"a",
"loop++",
"loop++",
"loop",
"{\n if(loop % 3 == 0) System.out.print(\" \" + loop);\n else {\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }\n }",
"{\n if(loop % 3 == 0) System.out.print(\" \" + loop);\n else {\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }\n }",
"if(loop % 3 == 0) System.out.print(\" \" + loop);\n else {\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }",
"loop % 3 == 0",
"loop % 3",
"loop",
"3",
"0",
"System.out.print(\" \" + loop)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + loop",
"\" \"",
"loop",
"{\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }",
"for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }",
"int x = loop;",
"int x = loop;",
"x",
"loop",
"x > 0",
"x",
"0",
"x/=10",
"x/=10",
"x",
"10",
"{\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }",
"{\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }",
"if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n System.out.print(\" \" + loop);\n break;\n }",
"System.out.print(\" \" + loop)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + loop",
"\" \"",
"loop",
"break;",
"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 String str = sc.nextLine();\n int a = Integer.parseInt(str);\n\n if(a >= 3){\n for(int loop = 1; loop <= a; loop++){\n if(loop % 3 == 0) System.out.print(\" \" + loop);\n else {\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }\n }\n }\n System.out.println();\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n String str = sc.nextLine();\n int a = Integer.parseInt(str);\n\n if(a >= 3){\n for(int loop = 1; loop <= a; loop++){\n if(loop % 3 == 0) System.out.print(\" \" + loop);\n else {\n for(int x = loop; x > 0; x/=10){\n if(x % 10 == 3) {\n System.out.print(\" \" + loop);\n break;\n }\n }\n }\n }\n }\n System.out.println();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
String str = sc.nextLine();
int a = Integer.parseInt(str);
if(a >= 3){
for(int loop = 1; loop <= a; loop++){
if(loop % 3 == 0) System.out.print(" " + loop);
else {
for(int x = loop; x > 0; x/=10){
if(x % 10 == 3) {
System.out.print(" " + loop);
break;
}
}
}
}
}
System.out.println();
}
} |
[
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,
20,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
30,
0,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
3,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
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
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
55,
57
],
[
45,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
74,
77
],
[
77,
78
],
[
77,
79
],
[
73,
80
],
[
67,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
14,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
12,
93
],
[
93,
94
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main{\n public static void main(String args[]) throws IOException{\n BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(buf.readLine());\n StringBuilder sb = new StringBuilder();\n\n int num = 0;\n for(int j=3; j<=n; j++){\n if(j%3==0){\n sb.append(\" \"+j);\n } else {\n num = j;\n while(num != 0){\n if(num%10==3){\n sb.append(\" \"+j);\n break;\n } else{\n num = num/10;\n }\n }\n }\n\n }\n System.out.println(sb);\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main{\n public static void main(String args[]) throws IOException{\n BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(buf.readLine());\n StringBuilder sb = new StringBuilder();\n\n int num = 0;\n for(int j=3; j<=n; j++){\n if(j%3==0){\n sb.append(\" \"+j);\n } else {\n num = j;\n while(num != 0){\n if(num%10==3){\n sb.append(\" \"+j);\n break;\n } else{\n num = num/10;\n }\n }\n }\n\n }\n System.out.println(sb);\n }\n}",
"Main",
"public static void main(String args[]) throws IOException{\n BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(buf.readLine());\n StringBuilder sb = new StringBuilder();\n\n int num = 0;\n for(int j=3; j<=n; j++){\n if(j%3==0){\n sb.append(\" \"+j);\n } else {\n num = j;\n while(num != 0){\n if(num%10==3){\n sb.append(\" \"+j);\n break;\n } else{\n num = num/10;\n }\n }\n }\n\n }\n System.out.println(sb);\n }",
"main",
"{\n BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(buf.readLine());\n StringBuilder sb = new StringBuilder();\n\n int num = 0;\n for(int j=3; j<=n; j++){\n if(j%3==0){\n sb.append(\" \"+j);\n } else {\n num = j;\n while(num != 0){\n if(num%10==3){\n sb.append(\" \"+j);\n break;\n } else{\n num = num/10;\n }\n }\n }\n\n }\n System.out.println(sb);\n }",
"BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));",
"buf",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(buf.readLine());",
"n",
"Integer.parseInt(buf.readLine())",
"Integer.parseInt",
"Integer",
"buf.readLine()",
"buf.readLine",
"buf",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int num = 0;",
"num",
"0",
"for(int j=3; j<=n; j++){\n if(j%3==0){\n sb.append(\" \"+j);\n } else {\n num = j;\n while(num != 0){\n if(num%10==3){\n sb.append(\" \"+j);\n break;\n } else{\n num = num/10;\n }\n }\n }\n\n }",
"int j=3;",
"int j=3;",
"j",
"3",
"j<=n",
"j",
"n",
"j++",
"j++",
"j",
"{\n if(j%3==0){\n sb.append(\" \"+j);\n } else {\n num = j;\n while(num != 0){\n if(num%10==3){\n sb.append(\" \"+j);\n break;\n } else{\n num = num/10;\n }\n }\n }\n\n }",
"{\n if(j%3==0){\n sb.append(\" \"+j);\n } else {\n num = j;\n while(num != 0){\n if(num%10==3){\n sb.append(\" \"+j);\n break;\n } else{\n num = num/10;\n }\n }\n }\n\n }",
"if(j%3==0){\n sb.append(\" \"+j);\n } else {\n num = j;\n while(num != 0){\n if(num%10==3){\n sb.append(\" \"+j);\n break;\n } else{\n num = num/10;\n }\n }\n }",
"j%3==0",
"j%3",
"j",
"3",
"0",
"{\n sb.append(\" \"+j);\n }",
"sb.append(\" \"+j)",
"sb.append",
"sb",
"\" \"+j",
"\" \"",
"j",
"{\n num = j;\n while(num != 0){\n if(num%10==3){\n sb.append(\" \"+j);\n break;\n } else{\n num = num/10;\n }\n }\n }",
"num = j",
"num",
"j",
"while(num != 0){\n if(num%10==3){\n sb.append(\" \"+j);\n break;\n } else{\n num = num/10;\n }\n }",
"num != 0",
"num",
"0",
"{\n if(num%10==3){\n sb.append(\" \"+j);\n break;\n } else{\n num = num/10;\n }\n }",
"if(num%10==3){\n sb.append(\" \"+j);\n break;\n } else{\n num = num/10;\n }",
"num%10==3",
"num%10",
"num",
"10",
"3",
"{\n sb.append(\" \"+j);\n break;\n }",
"sb.append(\" \"+j)",
"sb.append",
"sb",
"\" \"+j",
"\" \"",
"j",
"break;",
"{\n num = num/10;\n }",
"num = num/10",
"num",
"num/10",
"num",
"10",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String args[]",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String args[]) throws IOException{
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(buf.readLine());
StringBuilder sb = new StringBuilder();
int num = 0;
for(int j=3; j<=n; j++){
if(j%3==0){
sb.append(" "+j);
} else {
num = j;
while(num != 0){
if(num%10==3){
sb.append(" "+j);
break;
} else{
num = num/10;
}
}
}
}
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
95,
5
],
[
95,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
6,
23
],
[
23,
24
],
[
95,
25
],
[
25,
26
],
[
25,
27
],
[
27,
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
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
44,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
71,
80
],
[
80,
81
],
[
80,
82
],
[
64,
83
],
[
83,
84
],
[
83,
85
],
[
27,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
25,
92
],
[
92,
93
],
[
0,
94
],
[
94,
95
],
[
94,
96
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\n\t\tcall(n);\n\n\t\tsc.close();\n\t}\n\n\tprivate static void call(int n) {\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"\");\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\n\t\tcall(n);\n\n\t\tsc.close();\n\t}\n\n\tprivate static void call(int n) {\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"\");\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\n\t\tcall(n);\n\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\n\t\tcall(n);\n\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"call(n)",
"call",
"n",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"private static void call(int n) {\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"\");\n\t}",
"call",
"{\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"\");\n\t}",
"for (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t}",
"{\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t}",
"int x = i;",
"x",
"i",
"if (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}",
"while (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}",
"x != 0",
"x",
"0",
"{\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}",
"if (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"x = 0",
"x",
"0",
"x /= 10",
"x",
"10",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"int n",
"n",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\n\t\tcall(n);\n\n\t\tsc.close();\n\t}\n\n\tprivate static void call(int n) {\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"\");\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in); \n\n\t\tint n = sc.nextInt();\n\n\t\tcall(n);\n\n\t\tsc.close();\n\t}\n\n\tprivate static void call(int n) {\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\t\t\t\t\t\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(\"\");\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
call(n);
sc.close();
}
private static void call(int n) {
for (int i = 1; i <= n; i++) {
int x = i;
if (x % 3 == 0) {
System.out.print(" " + i);
} else {
while (x != 0) {
if (x % 10 == 3) {
System.out.print(" " + i);
x = 0;
}
x /= 10;
}
}
}
System.out.println("");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
4,
18,
4,
18,
13,
13,
17,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
37,
43
],
[
30,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
6,
57
],
[
57,
58
]
] | [
"import java.util.Scanner;\nclass Main{\n public static void main(String[]args){\n\n Scanner sc= new Scanner(System.in);\n int n= sc.nextInt();\n for(int i=1;i<=n;i++){\n if(i%3==0||Integer.toString(i).contains(\"3\"))\nSystem.out.print(\" \"+i);\n}\nSystem.out.println();\n}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[]args){\n\n Scanner sc= new Scanner(System.in);\n int n= sc.nextInt();\n for(int i=1;i<=n;i++){\n if(i%3==0||Integer.toString(i).contains(\"3\"))\nSystem.out.print(\" \"+i);\n}\nSystem.out.println();\n}\n}",
"Main",
"public static void main(String[]args){\n\n Scanner sc= new Scanner(System.in);\n int n= sc.nextInt();\n for(int i=1;i<=n;i++){\n if(i%3==0||Integer.toString(i).contains(\"3\"))\nSystem.out.print(\" \"+i);\n}\nSystem.out.println();\n}",
"main",
"{\n\n Scanner sc= new Scanner(System.in);\n int n= sc.nextInt();\n for(int i=1;i<=n;i++){\n if(i%3==0||Integer.toString(i).contains(\"3\"))\nSystem.out.print(\" \"+i);\n}\nSystem.out.println();\n}",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n= sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=n;i++){\n if(i%3==0||Integer.toString(i).contains(\"3\"))\nSystem.out.print(\" \"+i);\n}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i%3==0||Integer.toString(i).contains(\"3\"))\nSystem.out.print(\" \"+i);\n}",
"{\n if(i%3==0||Integer.toString(i).contains(\"3\"))\nSystem.out.print(\" \"+i);\n}",
"if(i%3==0||Integer.toString(i).contains(\"3\"))\nSystem.out.print(\" \"+i);",
"i%3==0||Integer.toString(i).contains(\"3\")",
"i%3==0",
"i%3",
"i",
"3",
"0",
"Integer.toString(i).contains(\"3\")",
"Integer.toString(i).contains",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"\"3\"",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[]args",
"args"
] | import java.util.Scanner;
class Main{
public static void main(String[]args){
Scanner sc= new Scanner(System.in);
int n= sc.nextInt();
for(int i=1;i<=n;i++){
if(i%3==0||Integer.toString(i).contains("3"))
System.out.print(" "+i);
}
System.out.println();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
4,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
4,
13,
13,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
29,
0,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
103,
8
],
[
103,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
9,
26
],
[
26,
27
],
[
103,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
50,
59
],
[
43,
60
],
[
60,
61
],
[
60,
62
],
[
30,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
28,
68
],
[
68,
69
],
[
103,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
87,
96
],
[
80,
97
],
[
97,
98
],
[
97,
99
],
[
70,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] | [
"import java.util.Scanner;\nimport java.lang.Math;\npublic class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.next());\n\tcall(n);\n }\n public static void call(int n) {\n\tfor (int i = 1; i <= n; i++) {\n\t if (i % 3 == 0) {\n\t\tSystem.out.print(\" \" + i);\n\t\tcontinue;\n\t }\n\t include3(i);\n\t}\n\tSystem.out.println();\n }\n public static void include3(int i) {\n\tint x = i;\n\twhile (x > 0) {\n\t if (x % 10 == 3) {\n\t\tSystem.out.print(\" \" + i);\n\t\treturn;\n\t }\n\t x /= 10;\n\t}\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.next());\n\tcall(n);\n }\n public static void call(int n) {\n\tfor (int i = 1; i <= n; i++) {\n\t if (i % 3 == 0) {\n\t\tSystem.out.print(\" \" + i);\n\t\tcontinue;\n\t }\n\t include3(i);\n\t}\n\tSystem.out.println();\n }\n public static void include3(int i) {\n\tint x = i;\n\twhile (x > 0) {\n\t if (x % 10 == 3) {\n\t\tSystem.out.print(\" \" + i);\n\t\treturn;\n\t }\n\t x /= 10;\n\t}\n }\n}",
"Main",
"public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.next());\n\tcall(n);\n }",
"main",
"{\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.next());\n\tcall(n);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = Integer.parseInt(scan.next());",
"n",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"call(n)",
"call",
"n",
"String[] args",
"args",
"public static void call(int n) {\n\tfor (int i = 1; i <= n; i++) {\n\t if (i % 3 == 0) {\n\t\tSystem.out.print(\" \" + i);\n\t\tcontinue;\n\t }\n\t include3(i);\n\t}\n\tSystem.out.println();\n }",
"call",
"{\n\tfor (int i = 1; i <= n; i++) {\n\t if (i % 3 == 0) {\n\t\tSystem.out.print(\" \" + i);\n\t\tcontinue;\n\t }\n\t include3(i);\n\t}\n\tSystem.out.println();\n }",
"for (int i = 1; i <= n; i++) {\n\t if (i % 3 == 0) {\n\t\tSystem.out.print(\" \" + i);\n\t\tcontinue;\n\t }\n\t include3(i);\n\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t if (i % 3 == 0) {\n\t\tSystem.out.print(\" \" + i);\n\t\tcontinue;\n\t }\n\t include3(i);\n\t}",
"{\n\t if (i % 3 == 0) {\n\t\tSystem.out.print(\" \" + i);\n\t\tcontinue;\n\t }\n\t include3(i);\n\t}",
"if (i % 3 == 0) {\n\t\tSystem.out.print(\" \" + i);\n\t\tcontinue;\n\t }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\tSystem.out.print(\" \" + i);\n\t\tcontinue;\n\t }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"continue;",
"include3(i)",
"include3",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"int n",
"n",
"public static void include3(int i) {\n\tint x = i;\n\twhile (x > 0) {\n\t if (x % 10 == 3) {\n\t\tSystem.out.print(\" \" + i);\n\t\treturn;\n\t }\n\t x /= 10;\n\t}\n }",
"include3",
"{\n\tint x = i;\n\twhile (x > 0) {\n\t if (x % 10 == 3) {\n\t\tSystem.out.print(\" \" + i);\n\t\treturn;\n\t }\n\t x /= 10;\n\t}\n }",
"int x = i;",
"x",
"i",
"while (x > 0) {\n\t if (x % 10 == 3) {\n\t\tSystem.out.print(\" \" + i);\n\t\treturn;\n\t }\n\t x /= 10;\n\t}",
"x > 0",
"x",
"0",
"{\n\t if (x % 10 == 3) {\n\t\tSystem.out.print(\" \" + i);\n\t\treturn;\n\t }\n\t x /= 10;\n\t}",
"if (x % 10 == 3) {\n\t\tSystem.out.print(\" \" + i);\n\t\treturn;\n\t }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\tSystem.out.print(\" \" + i);\n\t\treturn;\n\t }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"return;",
"x /= 10",
"x",
"10",
"int i",
"i",
"public class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.next());\n\tcall(n);\n }\n public static void call(int n) {\n\tfor (int i = 1; i <= n; i++) {\n\t if (i % 3 == 0) {\n\t\tSystem.out.print(\" \" + i);\n\t\tcontinue;\n\t }\n\t include3(i);\n\t}\n\tSystem.out.println();\n }\n public static void include3(int i) {\n\tint x = i;\n\twhile (x > 0) {\n\t if (x % 10 == 3) {\n\t\tSystem.out.print(\" \" + i);\n\t\treturn;\n\t }\n\t x /= 10;\n\t}\n }\n}",
"public class Main{\n public static void main(String[] args) {\n\tScanner scan = new Scanner(System.in);\n\tint n = Integer.parseInt(scan.next());\n\tcall(n);\n }\n public static void call(int n) {\n\tfor (int i = 1; i <= n; i++) {\n\t if (i % 3 == 0) {\n\t\tSystem.out.print(\" \" + i);\n\t\tcontinue;\n\t }\n\t include3(i);\n\t}\n\tSystem.out.println();\n }\n public static void include3(int i) {\n\tint x = i;\n\twhile (x > 0) {\n\t if (x % 10 == 3) {\n\t\tSystem.out.print(\" \" + i);\n\t\treturn;\n\t }\n\t x /= 10;\n\t}\n }\n}",
"Main"
] | import java.util.Scanner;
import java.lang.Math;
public class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = Integer.parseInt(scan.next());
call(n);
}
public static void call(int n) {
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
System.out.print(" " + i);
continue;
}
include3(i);
}
System.out.println();
}
public static void include3(int i) {
int x = i;
while (x > 0) {
if (x % 10 == 3) {
System.out.print(" " + i);
return;
}
x /= 10;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
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
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
37,
43
],
[
30,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
45,
51
],
[
8,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
6,
57
],
[
57,
58
],
[
0,
59
],
[
59,
60
],
[
59,
61
]
] | [
"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 num = sc.nextInt();\n\t\tfor(int i = 1; i <= num; i++){\n\t\t\tif(i % 3 == 0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\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 num = sc.nextInt();\n\t\tfor(int i = 1; i <= num; i++){\n\t\t\tif(i % 3 == 0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\tfor(int i = 1; i <= num; i++){\n\t\t\tif(i % 3 == 0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\tfor(int i = 1; i <= num; i++){\n\t\t\tif(i % 3 == 0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num = sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 1; i <= num; i++){\n\t\t\tif(i % 3 == 0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % 3 == 0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % 3 == 0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}",
"if(i % 3 == 0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}",
"i % 3 == 0 || Integer.toString(i).contains(\"3\")",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"Integer.toString(i).contains(\"3\")",
"Integer.toString(i).contains",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"\"3\"",
"{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"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\t\tint num = sc.nextInt();\n\t\tfor(int i = 1; i <= num; i++){\n\t\t\tif(i % 3 == 0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\tfor(int i = 1; i <= num; i++){\n\t\t\tif(i % 3 == 0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\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();
for(int i = 1; i <= num; i++){
if(i % 3 == 0 || Integer.toString(i).contains("3")){
System.out.printf(" %d", i);
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
42,
17,
30,
38,
5,
13,
30,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
2,
13,
17,
0,
13,
4,
18,
13,
17,
14,
2,
13,
40,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
17,
29,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
14,
20
],
[
20,
21
],
[
14,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
33,
45
],
[
45,
46
],
[
45,
47
],
[
12,
48
],
[
48,
49
],
[
10,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
56,
58
],
[
52,
59
],
[
59,
60
],
[
59,
61
],
[
52,
62
],
[
62,
63
],
[
62,
64
],
[
52,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
65,
75
],
[
75,
76
],
[
76,
77
],
[
65,
78
],
[
79,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
81,
87
],
[
87,
88
],
[
87,
89
],
[
80,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
90,
99
],
[
99,
100
],
[
99,
101
],
[
80,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
109,
110
],
[
109,
111
],
[
106,
112
],
[
112,
113
],
[
112,
114
],
[
114,
115
],
[
115,
116
],
[
114,
117
],
[
106,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
121,
122
],
[
118,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
129,
130
],
[
129,
131
],
[
123,
132
],
[
132,
133
],
[
132,
134
],
[
79,
135
],
[
135,
136
],
[
135,
137
],
[
52,
138
],
[
138,
139
],
[
139,
140
],
[
140,
141
],
[
140,
142
],
[
138,
143
],
[
52,
144
],
[
144,
145
],
[
50,
146
],
[
146,
147
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n\nclass Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name;\n\t\tint num;\n\n\t\twhile(true){\n\n\t\t\ttry{\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\t\t\t\tnabat(num);\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static int nabat(int a){\n\t\tint p=a;\n\t\tboolean pass=false;\n\t\tString nk=\"\";\n\t\tint kak=0;\n\n\t\tfor(int i=1; i<p+1; i++){\n\t\t\tif(i%3==0 && pass==false){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tpass=true;\n\t\t\t}\n\t\t\telse if(pass== false){\n\t\t\t\tnk=i+\"\";\n\t\t\t\tkak=nk.indexOf(\"3\");\n\t\t\t\tif(kak!=-1){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tpass=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpass=false;\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\treturn 0;\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main{\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name;\n\t\tint num;\n\n\t\twhile(true){\n\n\t\t\ttry{\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\t\t\t\tnabat(num);\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}\n\n\tpublic static int nabat(int a){\n\t\tint p=a;\n\t\tboolean pass=false;\n\t\tString nk=\"\";\n\t\tint kak=0;\n\n\t\tfor(int i=1; i<p+1; i++){\n\t\t\tif(i%3==0 && pass==false){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tpass=true;\n\t\t\t}\n\t\t\telse if(pass== false){\n\t\t\t\tnk=i+\"\";\n\t\t\t\tkak=nk.indexOf(\"3\");\n\t\t\t\tif(kak!=-1){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tpass=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpass=false;\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\treturn 0;\n\t}\n}",
"Main",
"public static void main(String[] args)throws IOException{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name;\n\t\tint num;\n\n\t\twhile(true){\n\n\t\t\ttry{\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\t\t\t\tnabat(num);\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tString name;\n\t\tint num;\n\n\t\twhile(true){\n\n\t\t\ttry{\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\t\t\t\tnabat(num);\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String name;",
"name",
"int num;",
"num",
"while(true){\n\n\t\t\ttry{\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\t\t\t\tnabat(num);\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"true",
"{\n\n\t\t\ttry{\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\t\t\t\tnabat(num);\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}\n\t\t}",
"try{\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\t\t\t\tnabat(num);\n\t\t\t}\n\n\t\t\tcatch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"catch(Exception e){\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"Exception e",
"{\n\t\t\t\tSystem.exit(0);\n\t\t\t}",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n\t\t\t\tname=br.readLine();\n\t\t\t\tnum=Integer.parseInt(name);\n\t\t\t\tnabat(num);\n\t\t\t}",
"name=br.readLine()",
"name",
"br.readLine()",
"br.readLine",
"br",
"num=Integer.parseInt(name)",
"num",
"Integer.parseInt(name)",
"Integer.parseInt",
"Integer",
"name",
"nabat(num)",
"nabat",
"num",
"String[] args",
"args",
"public static int nabat(int a){\n\t\tint p=a;\n\t\tboolean pass=false;\n\t\tString nk=\"\";\n\t\tint kak=0;\n\n\t\tfor(int i=1; i<p+1; i++){\n\t\t\tif(i%3==0 && pass==false){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tpass=true;\n\t\t\t}\n\t\t\telse if(pass== false){\n\t\t\t\tnk=i+\"\";\n\t\t\t\tkak=nk.indexOf(\"3\");\n\t\t\t\tif(kak!=-1){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tpass=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpass=false;\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\treturn 0;\n\t}",
"nabat",
"{\n\t\tint p=a;\n\t\tboolean pass=false;\n\t\tString nk=\"\";\n\t\tint kak=0;\n\n\t\tfor(int i=1; i<p+1; i++){\n\t\t\tif(i%3==0 && pass==false){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tpass=true;\n\t\t\t}\n\t\t\telse if(pass== false){\n\t\t\t\tnk=i+\"\";\n\t\t\t\tkak=nk.indexOf(\"3\");\n\t\t\t\tif(kak!=-1){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tpass=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpass=false;\n\t\t}\n\t\tSystem.out.println(\"\");\n\t\treturn 0;\n\t}",
"int p=a;",
"p",
"a",
"boolean pass=false;",
"pass",
"false",
"String nk=\"\";",
"nk",
"\"\"",
"int kak=0;",
"kak",
"0",
"for(int i=1; i<p+1; i++){\n\t\t\tif(i%3==0 && pass==false){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tpass=true;\n\t\t\t}\n\t\t\telse if(pass== false){\n\t\t\t\tnk=i+\"\";\n\t\t\t\tkak=nk.indexOf(\"3\");\n\t\t\t\tif(kak!=-1){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tpass=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpass=false;\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<p+1",
"i",
"p+1",
"p",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%3==0 && pass==false){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tpass=true;\n\t\t\t}\n\t\t\telse if(pass== false){\n\t\t\t\tnk=i+\"\";\n\t\t\t\tkak=nk.indexOf(\"3\");\n\t\t\t\tif(kak!=-1){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tpass=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpass=false;\n\t\t}",
"{\n\t\t\tif(i%3==0 && pass==false){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tpass=true;\n\t\t\t}\n\t\t\telse if(pass== false){\n\t\t\t\tnk=i+\"\";\n\t\t\t\tkak=nk.indexOf(\"3\");\n\t\t\t\tif(kak!=-1){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tpass=true;\n\t\t\t\t}\n\t\t\t}\n\t\t\tpass=false;\n\t\t}",
"if(i%3==0 && pass==false){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tpass=true;\n\t\t\t}\n\t\t\telse if(pass== false){\n\t\t\t\tnk=i+\"\";\n\t\t\t\tkak=nk.indexOf(\"3\");\n\t\t\t\tif(kak!=-1){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tpass=true;\n\t\t\t\t}\n\t\t\t}",
"i%3==0 && pass==false",
"i%3==0",
"i%3",
"i",
"3",
"0",
"pass==false",
"pass",
"false",
"{\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tpass=true;\n\t\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"pass=true",
"pass",
"true",
"if(pass== false){\n\t\t\t\tnk=i+\"\";\n\t\t\t\tkak=nk.indexOf(\"3\");\n\t\t\t\tif(kak!=-1){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tpass=true;\n\t\t\t\t}\n\t\t\t}",
"pass== false",
"pass",
"false",
"{\n\t\t\t\tnk=i+\"\";\n\t\t\t\tkak=nk.indexOf(\"3\");\n\t\t\t\tif(kak!=-1){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tpass=true;\n\t\t\t\t}\n\t\t\t}",
"nk=i+\"\"",
"nk",
"i+\"\"",
"i",
"\"\"",
"kak=nk.indexOf(\"3\")",
"kak",
"nk.indexOf(\"3\")",
"nk.indexOf",
"nk",
"\"3\"",
"if(kak!=-1){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tpass=true;\n\t\t\t\t}",
"kak!=-1",
"kak",
"-1",
"1",
"{\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tpass=true;\n\t\t\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"pass=true",
"pass",
"true",
"pass=false",
"pass",
"false",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"return 0;",
"0",
"int a",
"a"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main{
public static void main(String[] args)throws IOException{
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
String name;
int num;
while(true){
try{
name=br.readLine();
num=Integer.parseInt(name);
nabat(num);
}
catch(Exception e){
System.exit(0);
}
}
}
public static int nabat(int a){
int p=a;
boolean pass=false;
String nk="";
int kak=0;
for(int i=1; i<p+1; i++){
if(i%3==0 && pass==false){
System.out.print(" "+i);
pass=true;
}
else if(pass== false){
nk=i+"";
kak=nk.indexOf("3");
if(kak!=-1){
System.out.print(" "+i);
pass=true;
}
}
pass=false;
}
System.out.println("");
return 0;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
14,
2,
2,
13,
17,
2,
13,
17,
29,
17,
41,
13,
2,
13,
2,
2,
13,
17,
17,
14,
2,
13,
17,
30,
29,
17,
30,
29,
4,
13,
2,
2,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
29,
17,
30,
14,
2,
4,
13,
13,
17,
30,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
4,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
123,
8
],
[
123,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
17,
19
],
[
12,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
31,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
9,
47
],
[
47,
48
],
[
123,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
52,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
61,
71
],
[
71,
72
],
[
49,
73
],
[
73,
74
],
[
123,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
84,
85
],
[
77,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
86,
94
],
[
94,
95
],
[
95,
96
],
[
86,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
77,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
75,
120
],
[
120,
121
],
[
0,
122
],
[
122,
123
],
[
122,
124
]
] | [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n \n static int check_three2(int num){\n if (num < 10 && num !=3)return 0;\n int temp = num - (num / 10 * 10);\n if (temp == 3){\n return 1;\n }else{\n return check_three2((num-temp)/10);\n }\n }\n \n \n static int check_three(int num){\n if (num % 3 == 0){\n return 1;\n }else{\n if (check_three2(num) == 1){\n return 1;\n }\n return 0;\n }\n } \n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n \n for (int i = 1; i <= N; i++){\n if (check_three(i) == 1){\n System.out.print(\" \" + i);\n }\n }\n System.out.println(\"\");\n \n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n \n static int check_three2(int num){\n if (num < 10 && num !=3)return 0;\n int temp = num - (num / 10 * 10);\n if (temp == 3){\n return 1;\n }else{\n return check_three2((num-temp)/10);\n }\n }\n \n \n static int check_three(int num){\n if (num % 3 == 0){\n return 1;\n }else{\n if (check_three2(num) == 1){\n return 1;\n }\n return 0;\n }\n } \n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n \n for (int i = 1; i <= N; i++){\n if (check_three(i) == 1){\n System.out.print(\" \" + i);\n }\n }\n System.out.println(\"\");\n \n }\n}",
"Main",
"static int check_three2(int num){\n if (num < 10 && num !=3)return 0;\n int temp = num - (num / 10 * 10);\n if (temp == 3){\n return 1;\n }else{\n return check_three2((num-temp)/10);\n }\n }",
"check_three2",
"{\n if (num < 10 && num !=3)return 0;\n int temp = num - (num / 10 * 10);\n if (temp == 3){\n return 1;\n }else{\n return check_three2((num-temp)/10);\n }\n }",
"if (num < 10 && num !=3)return 0;",
"num < 10 && num !=3",
"num < 10",
"num",
"10",
"num !=3",
"num",
"3",
"return 0;",
"0",
"int temp = num - (num / 10 * 10);",
"temp",
"num - (num / 10 * 10)",
"num",
"(num / 10 * 10)",
"num / 10",
"num",
"10",
"10",
"if (temp == 3){\n return 1;\n }else{\n return check_three2((num-temp)/10);\n }",
"temp == 3",
"temp",
"3",
"{\n return 1;\n }",
"return 1;",
"1",
"{\n return check_three2((num-temp)/10);\n }",
"return check_three2((num-temp)/10);",
"check_three2((num-temp)/10)",
"check_three2",
"(num-temp)/10",
"(num-temp)",
"num",
"temp",
"10",
"int num",
"num",
"static int check_three(int num){\n if (num % 3 == 0){\n return 1;\n }else{\n if (check_three2(num) == 1){\n return 1;\n }\n return 0;\n }\n }",
"check_three",
"{\n if (num % 3 == 0){\n return 1;\n }else{\n if (check_three2(num) == 1){\n return 1;\n }\n return 0;\n }\n }",
"if (num % 3 == 0){\n return 1;\n }else{\n if (check_three2(num) == 1){\n return 1;\n }\n return 0;\n }",
"num % 3 == 0",
"num % 3",
"num",
"3",
"0",
"{\n return 1;\n }",
"return 1;",
"1",
"{\n if (check_three2(num) == 1){\n return 1;\n }\n return 0;\n }",
"if (check_three2(num) == 1){\n return 1;\n }",
"check_three2(num) == 1",
"check_three2(num)",
"check_three2",
"num",
"1",
"{\n return 1;\n }",
"return 1;",
"1",
"return 0;",
"0",
"int num",
"num",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n \n for (int i = 1; i <= N; i++){\n if (check_three(i) == 1){\n System.out.print(\" \" + i);\n }\n }\n System.out.println(\"\");\n \n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n \n for (int i = 1; i <= N; i++){\n if (check_three(i) == 1){\n System.out.print(\" \" + i);\n }\n }\n System.out.println(\"\");\n \n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int N = in.nextInt();",
"N",
"in.nextInt()",
"in.nextInt",
"in",
"for (int i = 1; i <= N; i++){\n if (check_three(i) == 1){\n System.out.print(\" \" + i);\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n if (check_three(i) == 1){\n System.out.print(\" \" + i);\n }\n }",
"{\n if (check_three(i) == 1){\n System.out.print(\" \" + i);\n }\n }",
"if (check_three(i) == 1){\n System.out.print(\" \" + i);\n }",
"check_three(i) == 1",
"check_three(i)",
"check_three",
"i",
"1",
"{\n System.out.print(\" \" + i);\n }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String[] args",
"args",
"public class Main {\n \n static int check_three2(int num){\n if (num < 10 && num !=3)return 0;\n int temp = num - (num / 10 * 10);\n if (temp == 3){\n return 1;\n }else{\n return check_three2((num-temp)/10);\n }\n }\n \n \n static int check_three(int num){\n if (num % 3 == 0){\n return 1;\n }else{\n if (check_three2(num) == 1){\n return 1;\n }\n return 0;\n }\n } \n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n \n for (int i = 1; i <= N; i++){\n if (check_three(i) == 1){\n System.out.print(\" \" + i);\n }\n }\n System.out.println(\"\");\n \n }\n}",
"public class Main {\n \n static int check_three2(int num){\n if (num < 10 && num !=3)return 0;\n int temp = num - (num / 10 * 10);\n if (temp == 3){\n return 1;\n }else{\n return check_three2((num-temp)/10);\n }\n }\n \n \n static int check_three(int num){\n if (num % 3 == 0){\n return 1;\n }else{\n if (check_three2(num) == 1){\n return 1;\n }\n return 0;\n }\n } \n\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n int N = in.nextInt();\n \n for (int i = 1; i <= N; i++){\n if (check_three(i) == 1){\n System.out.print(\" \" + i);\n }\n }\n System.out.println(\"\");\n \n }\n}",
"Main"
] | import java.io.*;
import java.util.*;
public class Main {
static int check_three2(int num){
if (num < 10 && num !=3)return 0;
int temp = num - (num / 10 * 10);
if (temp == 3){
return 1;
}else{
return check_three2((num-temp)/10);
}
}
static int check_three(int num){
if (num % 3 == 0){
return 1;
}else{
if (check_three2(num) == 1){
return 1;
}
return 0;
}
}
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int N = in.nextInt();
for (int i = 1; i <= N; i++){
if (check_three(i) == 1){
System.out.print(" " + 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,
13,
41,
13,
17,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
99,
8
],
[
99,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
29,
31
],
[
11,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
48,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
75,
84
],
[
68,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
11,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
9,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\n\t\tint N = Integer.parseInt(line);\n\t\tint x = 0;\n\t\tint i = 0;\n\t\tfor(i = 3; i <= N; i++){\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(x!=0){\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\n\t\tint N = Integer.parseInt(line);\n\t\tint x = 0;\n\t\tint i = 0;\n\t\tfor(i = 3; i <= N; i++){\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(x!=0){\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\n\t\tint N = Integer.parseInt(line);\n\t\tint x = 0;\n\t\tint i = 0;\n\t\tfor(i = 3; i <= N; i++){\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(x!=0){\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}",
"main",
"{\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\n\t\tint N = Integer.parseInt(line);\n\t\tint x = 0;\n\t\tint i = 0;\n\t\tfor(i = 3; i <= N; i++){\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(x!=0){\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"int N = Integer.parseInt(line);",
"N",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"int x = 0;",
"x",
"0",
"int i = 0;",
"i",
"0",
"for(i = 3; i <= N; i++){\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(x!=0){\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }\n\t\t\t}\n\t\t}",
"i = 3;",
"i = 3",
"i",
"3",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(x!=0){\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }\n\t\t\t}\n\t\t}",
"{\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(x!=0){\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }\n\t\t\t}\n\t\t}",
"x = i",
"x",
"i",
"if(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(x!=0){\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }\n\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"{\n\t\t\t\twhile(x!=0){\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }\n\t\t\t}",
"while(x!=0){\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }",
"x!=0",
"x",
"0",
"{\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }",
"if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }",
"x%10==3",
"x%10",
"x",
"10",
"3",
"{\n\t System.out.print(\" \" + i);\n\t break ; \n\t }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"break ;",
"x = x/10",
"x",
"x/10",
"x",
"10",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\n\t\tint N = Integer.parseInt(line);\n\t\tint x = 0;\n\t\tint i = 0;\n\t\tfor(i = 3; i <= N; i++){\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(x!=0){\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine();\n\n\t\tint N = Integer.parseInt(line);\n\t\tint x = 0;\n\t\tint i = 0;\n\t\tfor(i = 3; i <= N; i++){\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(x!=0){\n\t if(x%10==3){\n\t System.out.print(\" \" + i);\n\t break ; \n\t }\n\t x = x/10; \n\t }\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine();
int N = Integer.parseInt(line);
int x = 0;
int i = 0;
for(i = 3; i <= N; i++){
x = i;
if(x % 3 == 0){
System.out.print(" "+i);
}else{
while(x!=0){
if(x%10==3){
System.out.print(" " + i);
break ;
}
x = x/10;
}
}
}
System.out.printf("\n");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
4,
18,
20,
41,
13,
41,
13,
4,
18,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
13,
14,
2,
2,
2,
13,
17,
17,
4,
18,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
79,
8
],
[
79,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
11,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
11,
19
],
[
19,
20
],
[
11,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
11,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
39,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
39,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
52,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
11,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
9,
76
],
[
76,
77
],
[
0,
78
],
[
78,
79
],
[
78,
80
]
] | [
"import java.util.regex.Matcher;\nimport java.util.regex.Pattern;\n\npublic class Main {\n public static void main(String[] args){\n\t int n;\n\t int k = new java.util.Scanner(System.in).nextInt();\n\t String str;\n\t Pattern p = Pattern.compile(\"3\");\n\t\n\t for(n=1;n<=k;n++){\n\t\t str = String.valueOf(n);\n\t\t Matcher m = p.matcher(str);\n\t\t if(n%3==0||m.find()){\n\t\t\t System.out.print(\" \"+n);\n\t\t }\n\t\t\n\t }\n\t System.out.println();\n }\n}",
"import java.util.regex.Matcher;",
"Matcher",
"java.util.regex",
"import java.util.regex.Pattern;",
"Pattern",
"java.util.regex",
"public class Main {\n public static void main(String[] args){\n\t int n;\n\t int k = new java.util.Scanner(System.in).nextInt();\n\t String str;\n\t Pattern p = Pattern.compile(\"3\");\n\t\n\t for(n=1;n<=k;n++){\n\t\t str = String.valueOf(n);\n\t\t Matcher m = p.matcher(str);\n\t\t if(n%3==0||m.find()){\n\t\t\t System.out.print(\" \"+n);\n\t\t }\n\t\t\n\t }\n\t System.out.println();\n }\n}",
"Main",
"public static void main(String[] args){\n\t int n;\n\t int k = new java.util.Scanner(System.in).nextInt();\n\t String str;\n\t Pattern p = Pattern.compile(\"3\");\n\t\n\t for(n=1;n<=k;n++){\n\t\t str = String.valueOf(n);\n\t\t Matcher m = p.matcher(str);\n\t\t if(n%3==0||m.find()){\n\t\t\t System.out.print(\" \"+n);\n\t\t }\n\t\t\n\t }\n\t System.out.println();\n }",
"main",
"{\n\t int n;\n\t int k = new java.util.Scanner(System.in).nextInt();\n\t String str;\n\t Pattern p = Pattern.compile(\"3\");\n\t\n\t for(n=1;n<=k;n++){\n\t\t str = String.valueOf(n);\n\t\t Matcher m = p.matcher(str);\n\t\t if(n%3==0||m.find()){\n\t\t\t System.out.print(\" \"+n);\n\t\t }\n\t\t\n\t }\n\t System.out.println();\n }",
"int n;",
"n",
"int k = new java.util.Scanner(System.in).nextInt();",
"k",
"new java.util.Scanner(System.in).nextInt()",
"new java.util.Scanner(System.in).nextInt",
"new java.util.Scanner(System.in)",
"String str;",
"str",
"Pattern p = Pattern.compile(\"3\");",
"p",
"Pattern.compile(\"3\")",
"Pattern.compile",
"Pattern",
"\"3\"",
"for(n=1;n<=k;n++){\n\t\t str = String.valueOf(n);\n\t\t Matcher m = p.matcher(str);\n\t\t if(n%3==0||m.find()){\n\t\t\t System.out.print(\" \"+n);\n\t\t }\n\t\t\n\t }",
"n=1;",
"n=1",
"n",
"1",
"n<=k",
"n",
"k",
"n++",
"n++",
"n",
"{\n\t\t str = String.valueOf(n);\n\t\t Matcher m = p.matcher(str);\n\t\t if(n%3==0||m.find()){\n\t\t\t System.out.print(\" \"+n);\n\t\t }\n\t\t\n\t }",
"{\n\t\t str = String.valueOf(n);\n\t\t Matcher m = p.matcher(str);\n\t\t if(n%3==0||m.find()){\n\t\t\t System.out.print(\" \"+n);\n\t\t }\n\t\t\n\t }",
"str = String.valueOf(n)",
"str",
"String.valueOf(n)",
"String.valueOf",
"String",
"n",
"Matcher m = p.matcher(str);",
"m",
"p.matcher(str)",
"p.matcher",
"p",
"str",
"if(n%3==0||m.find()){\n\t\t\t System.out.print(\" \"+n);\n\t\t }",
"n%3==0||m.find()",
"n%3==0",
"n%3",
"n",
"3",
"0",
"m.find()",
"m.find",
"m",
"{\n\t\t\t System.out.print(\" \"+n);\n\t\t }",
"System.out.print(\" \"+n)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+n",
"\" \"",
"n",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n\t int n;\n\t int k = new java.util.Scanner(System.in).nextInt();\n\t String str;\n\t Pattern p = Pattern.compile(\"3\");\n\t\n\t for(n=1;n<=k;n++){\n\t\t str = String.valueOf(n);\n\t\t Matcher m = p.matcher(str);\n\t\t if(n%3==0||m.find()){\n\t\t\t System.out.print(\" \"+n);\n\t\t }\n\t\t\n\t }\n\t System.out.println();\n }\n}",
"public class Main {\n public static void main(String[] args){\n\t int n;\n\t int k = new java.util.Scanner(System.in).nextInt();\n\t String str;\n\t Pattern p = Pattern.compile(\"3\");\n\t\n\t for(n=1;n<=k;n++){\n\t\t str = String.valueOf(n);\n\t\t Matcher m = p.matcher(str);\n\t\t if(n%3==0||m.find()){\n\t\t\t System.out.print(\" \"+n);\n\t\t }\n\t\t\n\t }\n\t System.out.println();\n }\n}",
"Main"
] | import java.util.regex.Matcher;
import java.util.regex.Pattern;
public class Main {
public static void main(String[] args){
int n;
int k = new java.util.Scanner(System.in).nextInt();
String str;
Pattern p = Pattern.compile("3");
for(n=1;n<=k;n++){
str = String.valueOf(n);
Matcher m = p.matcher(str);
if(n%3==0||m.find()){
System.out.print(" "+n);
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
42,
2,
13,
13,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
30,
0,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
3,
30,
0,
13,
2,
13,
17,
40,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
82,
5
],
[
82,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
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
],
[
34,
40
],
[
27,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
57,
63
],
[
56,
64
],
[
50,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
68,
69
],
[
68,
70
],
[
26,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
6,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
] | [
"import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint i=1,k;\n\t\twhile(i<=x){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tk=i;\n\t\t\t\twhile(k!=0){\n\t\t\t\t\tif(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\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\t\tint x = sc.nextInt();\n\t\tint i=1,k;\n\t\twhile(i<=x){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tk=i;\n\t\t\t\twhile(k!=0){\n\t\t\t\t\tif(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint i=1,k;\n\t\twhile(i<=x){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tk=i;\n\t\t\t\twhile(k!=0){\n\t\t\t\t\tif(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint i=1,k;\n\t\twhile(i<=x){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tk=i;\n\t\t\t\twhile(k!=0){\n\t\t\t\t\tif(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i=1",
"i",
"1",
"k;",
"k",
"while(i<=x){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tk=i;\n\t\t\t\twhile(k!=0){\n\t\t\t\t\tif(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\ti++;\n\t\t}",
"i<=x",
"i",
"x",
"{\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tk=i;\n\t\t\t\twhile(k!=0){\n\t\t\t\t\tif(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\ti++;\n\t\t}",
"if(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tk=i;\n\t\t\t\twhile(k!=0){\n\t\t\t\t\tif(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"i%3==0",
"i%3",
"i",
"3",
"0",
"{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"{\n\t\t\t\tk=i;\n\t\t\t\twhile(k!=0){\n\t\t\t\t\tif(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"k=i",
"k",
"i",
"while(k!=0){\n\t\t\t\t\tif(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}\n\t\t\t\t}",
"k!=0",
"k",
"0",
"{\n\t\t\t\t\tif(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}",
"k%10==3",
"k%10",
"k",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"break;",
"{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}",
"k=k/10",
"k",
"k/10",
"k",
"10",
"i++",
"i",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint i=1,k;\n\t\twhile(i<=x){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tk=i;\n\t\t\t\twhile(k!=0){\n\t\t\t\t\tif(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint i=1,k;\n\t\twhile(i<=x){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tk=i;\n\t\t\t\twhile(k!=0){\n\t\t\t\t\tif(k%10==3){\n\t\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tk=k/10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\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 x = sc.nextInt();
int i=1,k;
while(i<=x){
if(i%3==0){
System.out.printf(" %d",i);
}else{
k=i;
while(k!=0){
if(k%10==3){
System.out.printf(" %d",i);
break;
}else{
k=k/10;
}
}
}
i++;
}
System.out.printf("\n");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
17,
42,
2,
13,
13,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
30,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
3,
40,
13,
4,
18,
18,
13,
13,
17,
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
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
37,
43
],
[
30,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
51,
57
],
[
44,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
66,
67
],
[
66,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
76,
82
],
[
75,
83
],
[
26,
84
],
[
84,
85
],
[
8,
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\tpublic static void main(String[]args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x,i=1;\n\t\twhile(n >= i){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if(x%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\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\t\tint n = sc.nextInt();\n\t\tint x,i=1;\n\t\twhile(n >= i){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if(x%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"Main",
"public static void main(String[]args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x,i=1;\n\t\twhile(n >= i){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if(x%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x,i=1;\n\t\twhile(n >= i){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if(x%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x",
"x",
"i=1;",
"i",
"1",
"while(n >= i){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if(x%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t}",
"n >= i",
"n",
"i",
"{\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if(x%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t}",
"x = i",
"x",
"i",
"if(x%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if(x%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"x%3==0",
"x%3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"if(x%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"x%10==3",
"x%10",
"x",
"10",
"3",
"{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"{\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"while(x != 0){\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"x != 0",
"x",
"0",
"{\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"x = x/10",
"x",
"x/10",
"x",
"10",
"if(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"x%10==3",
"x%10",
"x",
"10",
"3",
"{\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"break;",
"i++",
"i",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[]args",
"args",
"public class Main{\n\tpublic static void main(String[]args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x,i=1;\n\t\twhile(n >= i){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if(x%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"public class Main{\n\tpublic static void main(String[]args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x,i=1;\n\t\twhile(n >= i){\n\t\t\tx = i;\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if(x%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse{\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tx = x/10;\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\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 n = sc.nextInt();
int x,i=1;
while(n >= i){
x = i;
if(x%3==0){
System.out.printf(" %d",i);
}
else if(x%10==3){
System.out.printf(" %d",i);
}
else{
while(x != 0){
x = x/10;
if(x%10==3){
System.out.printf(" %d",i);
break;
}
}
}
i++;
}
System.out.printf("\n");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
13,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
2,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
30,
0,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
96,
5
],
[
96,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
21,
24
],
[
20,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
38,
40
],
[
26,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
41,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
59,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
73,
82
],
[
67,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
6,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
] | [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args) {\n\tScanner sc= new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint i= 1;\n\t while (++i <= n){\n\t\t if(i % 3 == 0){\n\t\t\t System.out.printf(\" \"+ i);\n\t\t }else if(i % 10 == 3){\n\t\t\t System.out.printf(\" \"+ i); \n\t\t }else{\n\t\t\t int x = i / 10;\n\t\t\t while(x != 0){\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t System.out.printf(\"\\n\"); \n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\tScanner sc= new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint i= 1;\n\t while (++i <= n){\n\t\t if(i % 3 == 0){\n\t\t\t System.out.printf(\" \"+ i);\n\t\t }else if(i % 10 == 3){\n\t\t\t System.out.printf(\" \"+ i); \n\t\t }else{\n\t\t\t int x = i / 10;\n\t\t\t while(x != 0){\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t System.out.printf(\"\\n\"); \n\t}\n}",
"Main",
"public static void main(String[] args) {\n\tScanner sc= new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint i= 1;\n\t while (++i <= n){\n\t\t if(i % 3 == 0){\n\t\t\t System.out.printf(\" \"+ i);\n\t\t }else if(i % 10 == 3){\n\t\t\t System.out.printf(\" \"+ i); \n\t\t }else{\n\t\t\t int x = i / 10;\n\t\t\t while(x != 0){\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t System.out.printf(\"\\n\"); \n\t}",
"main",
"{\n\tScanner sc= new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint i= 1;\n\t while (++i <= n){\n\t\t if(i % 3 == 0){\n\t\t\t System.out.printf(\" \"+ i);\n\t\t }else if(i % 10 == 3){\n\t\t\t System.out.printf(\" \"+ i); \n\t\t }else{\n\t\t\t int x = i / 10;\n\t\t\t while(x != 0){\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t System.out.printf(\"\\n\"); \n\t}",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i= 1;",
"i",
"1",
"while (++i <= n){\n\t\t if(i % 3 == 0){\n\t\t\t System.out.printf(\" \"+ i);\n\t\t }else if(i % 10 == 3){\n\t\t\t System.out.printf(\" \"+ i); \n\t\t }else{\n\t\t\t int x = i / 10;\n\t\t\t while(x != 0){\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }\n\t\t }\n\t }",
"++i <= n",
"++i",
"i",
"n",
"{\n\t\t if(i % 3 == 0){\n\t\t\t System.out.printf(\" \"+ i);\n\t\t }else if(i % 10 == 3){\n\t\t\t System.out.printf(\" \"+ i); \n\t\t }else{\n\t\t\t int x = i / 10;\n\t\t\t while(x != 0){\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }\n\t\t }\n\t }",
"if(i % 3 == 0){\n\t\t\t System.out.printf(\" \"+ i);\n\t\t }else if(i % 10 == 3){\n\t\t\t System.out.printf(\" \"+ i); \n\t\t }else{\n\t\t\t int x = i / 10;\n\t\t\t while(x != 0){\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }\n\t\t }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t System.out.printf(\" \"+ i);\n\t\t }",
"System.out.printf(\" \"+ i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" \"+ i",
"\" \"",
"i",
"if(i % 10 == 3){\n\t\t\t System.out.printf(\" \"+ i); \n\t\t }else{\n\t\t\t int x = i / 10;\n\t\t\t while(x != 0){\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }\n\t\t }",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"{\n\t\t\t System.out.printf(\" \"+ i); \n\t\t }",
"System.out.printf(\" \"+ i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" \"+ i",
"\" \"",
"i",
"{\n\t\t\t int x = i / 10;\n\t\t\t while(x != 0){\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }\n\t\t }",
"int x = i / 10;",
"x",
"i / 10",
"i",
"10",
"while(x != 0){\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }",
"x != 0",
"x",
"0",
"{\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }",
"if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }",
"System.out.printf(\" \"+ i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" \"+ i",
"\" \"",
"i",
"break;",
"{\n\t\t\t\t\t x /= 10;\n\t\t\t }",
"x /= 10",
"x",
"10",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\tScanner sc= new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint i= 1;\n\t while (++i <= n){\n\t\t if(i % 3 == 0){\n\t\t\t System.out.printf(\" \"+ i);\n\t\t }else if(i % 10 == 3){\n\t\t\t System.out.printf(\" \"+ i); \n\t\t }else{\n\t\t\t int x = i / 10;\n\t\t\t while(x != 0){\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t System.out.printf(\"\\n\"); \n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\tScanner sc= new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint i= 1;\n\t while (++i <= n){\n\t\t if(i % 3 == 0){\n\t\t\t System.out.printf(\" \"+ i);\n\t\t }else if(i % 10 == 3){\n\t\t\t System.out.printf(\" \"+ i); \n\t\t }else{\n\t\t\t int x = i / 10;\n\t\t\t while(x != 0){\n\t\t\t\t if(x % 10 == 3){\n\t\t\t\t\t System.out.printf(\" \"+ i);\n\t\t\t\t\t break;\n\t\t\t\t }else{\n\t\t\t\t\t x /= 10;\n\t\t\t }\n\t\t\t }\n\t\t }\n\t }\n\t System.out.printf(\"\\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 n = sc.nextInt();
int i= 1;
while (++i <= n){
if(i % 3 == 0){
System.out.printf(" "+ i);
}else if(i % 10 == 3){
System.out.printf(" "+ i);
}else{
int x = i / 10;
while(x != 0){
if(x % 10 == 3){
System.out.printf(" "+ i);
break;
}else{
x /= 10;
}
}
}
}
System.out.printf("\n");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
4,
18,
4,
18,
13,
13,
17,
30,
0,
13,
2,
17,
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
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
40,
46
],
[
33,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
6,
59
],
[
59,
60
],
[
0,
61
],
[
61,
62
],
[
61,
63
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString nabe = \"\";\n\n\t\tfor(int i = 3; i <= N ; i++){\n\t\t\tif ( i % 3 == 0 || Integer.toString(i).contains(\"3\")) {\n\n\t\t\t\tnabe += (\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(nabe);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString nabe = \"\";\n\n\t\tfor(int i = 3; i <= N ; i++){\n\t\t\tif ( i % 3 == 0 || Integer.toString(i).contains(\"3\")) {\n\n\t\t\t\tnabe += (\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(nabe);\n\t}\n}",
"Main",
"public static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString nabe = \"\";\n\n\t\tfor(int i = 3; i <= N ; i++){\n\t\t\tif ( i % 3 == 0 || Integer.toString(i).contains(\"3\")) {\n\n\t\t\t\tnabe += (\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(nabe);\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString nabe = \"\";\n\n\t\tfor(int i = 3; i <= N ; i++){\n\t\t\tif ( i % 3 == 0 || Integer.toString(i).contains(\"3\")) {\n\n\t\t\t\tnabe += (\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(nabe);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int N = sc.nextInt();",
"N",
"sc.nextInt()",
"sc.nextInt",
"sc",
"String nabe = \"\";",
"nabe",
"\"\"",
"for(int i = 3; i <= N ; i++){\n\t\t\tif ( i % 3 == 0 || Integer.toString(i).contains(\"3\")) {\n\n\t\t\t\tnabe += (\" \" + i);\n\t\t\t}\n\t\t}",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tif ( i % 3 == 0 || Integer.toString(i).contains(\"3\")) {\n\n\t\t\t\tnabe += (\" \" + i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif ( i % 3 == 0 || Integer.toString(i).contains(\"3\")) {\n\n\t\t\t\tnabe += (\" \" + i);\n\t\t\t}\n\t\t}",
"if ( i % 3 == 0 || Integer.toString(i).contains(\"3\")) {\n\n\t\t\t\tnabe += (\" \" + i);\n\t\t\t}",
"i % 3 == 0 || Integer.toString(i).contains(\"3\")",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"Integer.toString(i).contains(\"3\")",
"Integer.toString(i).contains",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"\"3\"",
"{\n\n\t\t\t\tnabe += (\" \" + i);\n\t\t\t}",
"nabe += (\" \" + i)",
"nabe",
"(\" \" + i)",
"\" \"",
"i",
"System.out.println(nabe)",
"System.out.println",
"System.out",
"System",
"System.out",
"nabe",
"String args[]",
"args",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString nabe = \"\";\n\n\t\tfor(int i = 3; i <= N ; i++){\n\t\t\tif ( i % 3 == 0 || Integer.toString(i).contains(\"3\")) {\n\n\t\t\t\tnabe += (\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(nabe);\n\t}\n}",
"public class Main{\n\tpublic static void main(String args[]){\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint N = sc.nextInt();\n\t\tString nabe = \"\";\n\n\t\tfor(int i = 3; i <= N ; i++){\n\t\t\tif ( i % 3 == 0 || Integer.toString(i).contains(\"3\")) {\n\n\t\t\t\tnabe += (\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(nabe);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String args[]){
Scanner sc = new Scanner(System.in);
int N = sc.nextInt();
String nabe = "";
for(int i = 3; i <= N ; i++){
if ( i % 3 == 0 || Integer.toString(i).contains("3")) {
nabe += (" " + i);
}
}
System.out.println(nabe);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
41,
13,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
17,
42,
2,
2,
13,
13,
17,
30,
14,
2,
2,
2,
13,
2,
13,
17,
13,
17,
30,
0,
13,
17,
3,
30,
0,
13,
17,
0,
13,
17,
14,
2,
2,
2,
13,
17,
17,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
92,
5
],
[
92,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
20,
27
],
[
27,
28
],
[
27,
29
],
[
20,
30
],
[
30,
31
],
[
31,
32
],
[
20,
33
],
[
34,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
47,
53
],
[
46,
54
],
[
45,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
45,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
44,
64
],
[
64,
65
],
[
64,
66
],
[
34,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
67,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean inclued3 = false;\n\n\t\tfor (int i = 1, a; i <= n; i++) {\n\t\t\ta = 1;\n\t\t\twhile (i / a >= 1) {\n\t\t\t\tif (i % (a * 10) / a == 3) {\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}\n\t\t\t\ta *= 10;\n\t\t\t}\n\n\t\t\tif (i % 3 == 0 || inclued3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean inclued3 = false;\n\n\t\tfor (int i = 1, a; i <= n; i++) {\n\t\t\ta = 1;\n\t\t\twhile (i / a >= 1) {\n\t\t\t\tif (i % (a * 10) / a == 3) {\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}\n\t\t\t\ta *= 10;\n\t\t\t}\n\n\t\t\tif (i % 3 == 0 || inclued3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean inclued3 = false;\n\n\t\tfor (int i = 1, a; i <= n; i++) {\n\t\t\ta = 1;\n\t\t\twhile (i / a >= 1) {\n\t\t\t\tif (i % (a * 10) / a == 3) {\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}\n\t\t\t\ta *= 10;\n\t\t\t}\n\n\t\t\tif (i % 3 == 0 || inclued3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean inclued3 = false;\n\n\t\tfor (int i = 1, a; i <= n; i++) {\n\t\t\ta = 1;\n\t\t\twhile (i / a >= 1) {\n\t\t\t\tif (i % (a * 10) / a == 3) {\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}\n\t\t\t\ta *= 10;\n\t\t\t}\n\n\t\t\tif (i % 3 == 0 || inclued3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"boolean inclued3 = false;",
"inclued3",
"false",
"for (int i = 1, a; i <= n; i++) {\n\t\t\ta = 1;\n\t\t\twhile (i / a >= 1) {\n\t\t\t\tif (i % (a * 10) / a == 3) {\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}\n\t\t\t\ta *= 10;\n\t\t\t}\n\n\t\t\tif (i % 3 == 0 || inclued3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t}",
"int i = 1, a;",
"int i = 1",
"i",
"1",
"a;",
"a",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta = 1;\n\t\t\twhile (i / a >= 1) {\n\t\t\t\tif (i % (a * 10) / a == 3) {\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}\n\t\t\t\ta *= 10;\n\t\t\t}\n\n\t\t\tif (i % 3 == 0 || inclued3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t}",
"{\n\t\t\ta = 1;\n\t\t\twhile (i / a >= 1) {\n\t\t\t\tif (i % (a * 10) / a == 3) {\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}\n\t\t\t\ta *= 10;\n\t\t\t}\n\n\t\t\tif (i % 3 == 0 || inclued3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t}",
"a = 1",
"a",
"1",
"while (i / a >= 1) {\n\t\t\t\tif (i % (a * 10) / a == 3) {\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}\n\t\t\t\ta *= 10;\n\t\t\t}",
"i / a >= 1",
"i / a",
"i",
"a",
"1",
"{\n\t\t\t\tif (i % (a * 10) / a == 3) {\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}\n\t\t\t\ta *= 10;\n\t\t\t}",
"if (i % (a * 10) / a == 3) {\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}",
"i % (a * 10) / a == 3",
"i % (a * 10) / a",
"i % (a * 10)",
"i",
"(a * 10)",
"a",
"10",
"a",
"3",
"{\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"inclued3 = true",
"inclued3",
"true",
"break;",
"{\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}",
"inclued3 = false",
"inclued3",
"false",
"a *= 10",
"a",
"10",
"if (i % 3 == 0 || inclued3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"i % 3 == 0 || inclued3",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"inclued3",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"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\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean inclued3 = false;\n\n\t\tfor (int i = 1, a; i <= n; i++) {\n\t\t\ta = 1;\n\t\t\twhile (i / a >= 1) {\n\t\t\t\tif (i % (a * 10) / a == 3) {\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}\n\t\t\t\ta *= 10;\n\t\t\t}\n\n\t\t\tif (i % 3 == 0 || inclued3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tboolean inclued3 = false;\n\n\t\tfor (int i = 1, a; i <= n; i++) {\n\t\t\ta = 1;\n\t\t\twhile (i / a >= 1) {\n\t\t\t\tif (i % (a * 10) / a == 3) {\n\t\t\t\t\tinclued3 = true;\n\t\t\t\t\tbreak;\n\t\t\t\t} else {\n\t\t\t\t\tinclued3 = false;\n\t\t\t\t}\n\t\t\t\ta *= 10;\n\t\t\t}\n\n\t\t\tif (i % 3 == 0 || inclued3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
boolean inclued3 = false;
for (int i = 1, a; i <= n; i++) {
a = 1;
while (i / a >= 1) {
if (i % (a * 10) / a == 3) {
inclued3 = true;
break;
} else {
inclued3 = false;
}
a *= 10;
}
if (i % 3 == 0 || inclued3) {
System.out.print(" " + i);
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
30,
41,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
3,
0,
13,
17,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
40,
46
],
[
33,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
63,
69
],
[
62,
70
],
[
55,
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;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\tfor (int i = 3; i <= n; i++) {\n\t\t\tif ((i % 3) == 0) {\n\t\t\t\toutput.append(\" \").append(i);\n\t\t\t} else {\n\t\t\t\tint x = i;\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(output);\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\t\tStringBuilder output = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\tfor (int i = 3; i <= n; i++) {\n\t\t\tif ((i % 3) == 0) {\n\t\t\t\toutput.append(\" \").append(i);\n\t\t\t} else {\n\t\t\t\tint x = i;\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(output);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\tfor (int i = 3; i <= n; i++) {\n\t\t\tif ((i % 3) == 0) {\n\t\t\t\toutput.append(\" \").append(i);\n\t\t\t} else {\n\t\t\t\tint x = i;\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(output);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\tfor (int i = 3; i <= n; i++) {\n\t\t\tif ((i % 3) == 0) {\n\t\t\t\toutput.append(\" \").append(i);\n\t\t\t} else {\n\t\t\t\tint x = i;\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(output);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"StringBuilder output = new StringBuilder();",
"output",
"new StringBuilder()",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for (int i = 3; i <= n; i++) {\n\t\t\tif ((i % 3) == 0) {\n\t\t\t\toutput.append(\" \").append(i);\n\t\t\t} else {\n\t\t\t\tint x = i;\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif ((i % 3) == 0) {\n\t\t\t\toutput.append(\" \").append(i);\n\t\t\t} else {\n\t\t\t\tint x = i;\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tif ((i % 3) == 0) {\n\t\t\t\toutput.append(\" \").append(i);\n\t\t\t} else {\n\t\t\t\tint x = i;\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if ((i % 3) == 0) {\n\t\t\t\toutput.append(\" \").append(i);\n\t\t\t} else {\n\t\t\t\tint x = i;\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}",
"(i % 3) == 0",
"(i % 3)",
"i",
"3",
"0",
"{\n\t\t\t\toutput.append(\" \").append(i);\n\t\t\t}",
"output.append(\" \").append(i)",
"output.append(\" \").append",
"output.append(\" \")",
"output.append",
"output",
"\" \"",
"i",
"{\n\t\t\t\tint x = i;\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}",
"int x = i;",
"x",
"i",
"while (x != 0) {\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}",
"x != 0",
"x",
"0",
"{\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}",
"if ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"(x % 10) == 3",
"(x % 10)",
"x",
"10",
"3",
"{\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"output.append(\" \").append(i)",
"output.append(\" \").append",
"output.append(\" \")",
"output.append",
"output",
"\" \"",
"i",
"break;",
"x /= 10",
"x",
"10",
"System.out.println(output)",
"System.out.println",
"System.out",
"System",
"System.out",
"output",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\tfor (int i = 3; i <= n; i++) {\n\t\t\tif ((i % 3) == 0) {\n\t\t\t\toutput.append(\" \").append(i);\n\t\t\t} else {\n\t\t\t\tint x = i;\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(output);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder output = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\tfor (int i = 3; i <= n; i++) {\n\t\t\tif ((i % 3) == 0) {\n\t\t\t\toutput.append(\" \").append(i);\n\t\t\t} else {\n\t\t\t\tint x = i;\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif ((x % 10) == 3) {\n\t\t\t\t\t\toutput.append(\" \").append(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(output);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
StringBuilder output = new StringBuilder();
int n = scan.nextInt();
for (int i = 3; i <= n; i++) {
if ((i % 3) == 0) {
output.append(" ").append(i);
} else {
int x = i;
while (x != 0) {
if ((x % 10) == 3) {
output.append(" ").append(i);
break;
}
x /= 10;
}
}
}
System.out.println(output);
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
20,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
30,
14,
4,
13,
13,
4,
18,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
29,
17,
30,
14,
2,
2,
13,
17,
17,
29,
17,
29,
4,
13,
2,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
104,
5
],
[
104,
6
],
[
6,
7
],
[
104,
8
],
[
8,
9
],
[
8,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
10,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
10,
19
],
[
19,
20
],
[
19,
21
],
[
10,
22
],
[
22,
23
],
[
23,
24
],
[
10,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
45,
51
],
[
38,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
59,
62
],
[
57,
63
],
[
10,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
70,
71
],
[
8,
72
],
[
72,
73
],
[
104,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
77,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
87,
93
],
[
93,
94
],
[
86,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
98,
100
],
[
74,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tstatic StringBuilder text;\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\ttext = new StringBuilder();\n\t\tscan.close();\n\t\tfor(int i = 1;i <= n;i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}else {\n\t\t\t\tif(process(i))\n\t\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(text.toString());\n\t}\n\tstatic boolean process(int i){\n\t\tif(i % 10 == 3){\n\t\t\treturn true;\n\t\t}else{\n\t\t\tif(i / 10 == 0)\n\t\t\t\treturn false;\n\t\t\treturn process(i / 10);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic StringBuilder text;\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\ttext = new StringBuilder();\n\t\tscan.close();\n\t\tfor(int i = 1;i <= n;i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}else {\n\t\t\t\tif(process(i))\n\t\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(text.toString());\n\t}\n\tstatic boolean process(int i){\n\t\tif(i % 10 == 3){\n\t\t\treturn true;\n\t\t}else{\n\t\t\tif(i / 10 == 0)\n\t\t\t\treturn false;\n\t\t\treturn process(i / 10);\n\t\t}\n\t}\n}",
"Main",
"static StringBuilder text;",
"text",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\ttext = new StringBuilder();\n\t\tscan.close();\n\t\tfor(int i = 1;i <= n;i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}else {\n\t\t\t\tif(process(i))\n\t\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(text.toString());\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\ttext = new StringBuilder();\n\t\tscan.close();\n\t\tfor(int i = 1;i <= n;i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}else {\n\t\t\t\tif(process(i))\n\t\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(text.toString());\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"text = new StringBuilder()",
"text",
"new StringBuilder()",
"scan.close()",
"scan.close",
"scan",
"for(int i = 1;i <= n;i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}else {\n\t\t\t\tif(process(i))\n\t\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % 3 == 0){\n\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}else {\n\t\t\t\tif(process(i))\n\t\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % 3 == 0){\n\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}else {\n\t\t\t\tif(process(i))\n\t\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}\n\t\t}",
"if(i % 3 == 0){\n\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}else {\n\t\t\t\tif(process(i))\n\t\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}",
"text.append(\" \").append(i)",
"text.append(\" \").append",
"text.append(\" \")",
"text.append",
"text",
"\" \"",
"i",
"{\n\t\t\t\tif(process(i))\n\t\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}",
"if(process(i))\n\t\t\t\t\ttext.append(\" \").append(i);",
"process(i)",
"process",
"i",
"text.append(\" \").append(i)",
"text.append(\" \").append",
"text.append(\" \")",
"text.append",
"text",
"\" \"",
"i",
"System.out.println(text.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"text.toString()",
"text.toString",
"text",
"String[] args",
"args",
"static boolean process(int i){\n\t\tif(i % 10 == 3){\n\t\t\treturn true;\n\t\t}else{\n\t\t\tif(i / 10 == 0)\n\t\t\t\treturn false;\n\t\t\treturn process(i / 10);\n\t\t}\n\t}",
"process",
"{\n\t\tif(i % 10 == 3){\n\t\t\treturn true;\n\t\t}else{\n\t\t\tif(i / 10 == 0)\n\t\t\t\treturn false;\n\t\t\treturn process(i / 10);\n\t\t}\n\t}",
"if(i % 10 == 3){\n\t\t\treturn true;\n\t\t}else{\n\t\t\tif(i / 10 == 0)\n\t\t\t\treturn false;\n\t\t\treturn process(i / 10);\n\t\t}",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"{\n\t\t\treturn true;\n\t\t}",
"return true;",
"true",
"{\n\t\t\tif(i / 10 == 0)\n\t\t\t\treturn false;\n\t\t\treturn process(i / 10);\n\t\t}",
"if(i / 10 == 0)\n\t\t\t\treturn false;",
"i / 10 == 0",
"i / 10",
"i",
"10",
"0",
"return false;",
"false",
"return process(i / 10);",
"process(i / 10)",
"process",
"i / 10",
"i",
"10",
"int i",
"i",
"public class Main {\n\tstatic StringBuilder text;\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\ttext = new StringBuilder();\n\t\tscan.close();\n\t\tfor(int i = 1;i <= n;i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}else {\n\t\t\t\tif(process(i))\n\t\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(text.toString());\n\t}\n\tstatic boolean process(int i){\n\t\tif(i % 10 == 3){\n\t\t\treturn true;\n\t\t}else{\n\t\t\tif(i / 10 == 0)\n\t\t\t\treturn false;\n\t\t\treturn process(i / 10);\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic StringBuilder text;\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\ttext = new StringBuilder();\n\t\tscan.close();\n\t\tfor(int i = 1;i <= n;i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}else {\n\t\t\t\tif(process(i))\n\t\t\t\t\ttext.append(\" \").append(i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(text.toString());\n\t}\n\tstatic boolean process(int i){\n\t\tif(i % 10 == 3){\n\t\t\treturn true;\n\t\t}else{\n\t\t\tif(i / 10 == 0)\n\t\t\t\treturn false;\n\t\t\treturn process(i / 10);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
static StringBuilder text;
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
text = new StringBuilder();
scan.close();
for(int i = 1;i <= n;i++){
if(i % 3 == 0){
text.append(" ").append(i);
}else {
if(process(i))
text.append(" ").append(i);
}
}
System.out.println(text.toString());
}
static boolean process(int i){
if(i % 10 == 3){
return true;
}else{
if(i / 10 == 0)
return false;
return process(i / 10);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
17,
4,
18,
18,
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
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
41,
50
],
[
31,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
62,
71
],
[
55,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
6,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint x;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tx = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x != 0);\n\t\t}\n\t\tSystem.out.println();\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 stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint x;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tx = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x != 0);\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint x;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tx = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x != 0);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\t\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint x;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tx = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x != 0);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int x;",
"x",
"for (int i = 1; i <= n; i++) {\n\t\t\tx = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x != 0);\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tx = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x != 0);\n\t\t}",
"{\n\t\t\tx = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x != 0);\n\t\t}",
"x = i",
"x",
"i",
"if (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"continue;",
"do {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x != 0);",
"x != 0",
"x",
"0",
"{\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t}",
"if (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"break;",
"x /= 10",
"x",
"10",
"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\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint x;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tx = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x != 0);\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint x;\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tx = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x != 0);\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int n = stdIn.nextInt();
int x;
for (int i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0) {
System.out.print(" " + i);
continue;
}
do {
if (x % 10 == 3) {
System.out.print(" " + i);
break;
}
x /= 10;
} while(x != 0);
}
System.out.println();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
11,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
47,
49
],
[
35,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
62,
71
],
[
55,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
6,
82
],
[
82,
83
]
] | [
"import java.util.Scanner;\n \nclass Main{\n public static void main(String[] arg){\n int n;\n\n Scanner in = new Scanner(System.in);\n\n n = in.nextInt();\n\n for(int i=1; i<=n; i++){\n int x = i;\n \n if(x%3 == 0){\n System.out.print(\" \" + i);\n }else{\n while(x>0){\n if(x%10 == 3){\n System.out.print(\" \" + i);\n break;\n }\n x = x/10;\n }\n }\n }\n System.out.println();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] arg){\n int n;\n\n Scanner in = new Scanner(System.in);\n\n n = in.nextInt();\n\n for(int i=1; i<=n; i++){\n int x = i;\n \n if(x%3 == 0){\n System.out.print(\" \" + i);\n }else{\n while(x>0){\n if(x%10 == 3){\n System.out.print(\" \" + i);\n break;\n }\n x = x/10;\n }\n }\n }\n System.out.println();\n }\n}",
"Main",
"public static void main(String[] arg){\n int n;\n\n Scanner in = new Scanner(System.in);\n\n n = in.nextInt();\n\n for(int i=1; i<=n; i++){\n int x = i;\n \n if(x%3 == 0){\n System.out.print(\" \" + i);\n }else{\n while(x>0){\n if(x%10 == 3){\n System.out.print(\" \" + i);\n break;\n }\n x = x/10;\n }\n }\n }\n System.out.println();\n }",
"main",
"{\n int n;\n\n Scanner in = new Scanner(System.in);\n\n n = in.nextInt();\n\n for(int i=1; i<=n; i++){\n int x = i;\n \n if(x%3 == 0){\n System.out.print(\" \" + i);\n }else{\n while(x>0){\n if(x%10 == 3){\n System.out.print(\" \" + i);\n break;\n }\n x = x/10;\n }\n }\n }\n System.out.println();\n }",
"int n;",
"n",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"n = in.nextInt()",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"for(int i=1; i<=n; i++){\n int x = i;\n \n if(x%3 == 0){\n System.out.print(\" \" + i);\n }else{\n while(x>0){\n if(x%10 == 3){\n System.out.print(\" \" + i);\n break;\n }\n x = x/10;\n }\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int x = i;\n \n if(x%3 == 0){\n System.out.print(\" \" + i);\n }else{\n while(x>0){\n if(x%10 == 3){\n System.out.print(\" \" + i);\n break;\n }\n x = x/10;\n }\n }\n }",
"{\n int x = i;\n \n if(x%3 == 0){\n System.out.print(\" \" + i);\n }else{\n while(x>0){\n if(x%10 == 3){\n System.out.print(\" \" + i);\n break;\n }\n x = x/10;\n }\n }\n }",
"int x = i;",
"x",
"i",
"if(x%3 == 0){\n System.out.print(\" \" + i);\n }else{\n while(x>0){\n if(x%10 == 3){\n System.out.print(\" \" + i);\n break;\n }\n x = x/10;\n }\n }",
"x%3 == 0",
"x%3",
"x",
"3",
"0",
"{\n System.out.print(\" \" + i);\n }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n while(x>0){\n if(x%10 == 3){\n System.out.print(\" \" + i);\n break;\n }\n x = x/10;\n }\n }",
"while(x>0){\n if(x%10 == 3){\n System.out.print(\" \" + i);\n break;\n }\n x = x/10;\n }",
"x>0",
"x",
"0",
"{\n if(x%10 == 3){\n System.out.print(\" \" + i);\n break;\n }\n x = x/10;\n }",
"if(x%10 == 3){\n System.out.print(\" \" + i);\n break;\n }",
"x%10 == 3",
"x%10",
"x",
"10",
"3",
"{\n System.out.print(\" \" + i);\n break;\n }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"break;",
"x = x/10",
"x",
"x/10",
"x",
"10",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] arg",
"arg"
] | import java.util.Scanner;
class Main{
public static void main(String[] arg){
int n;
Scanner in = new Scanner(System.in);
n = in.nextInt();
for(int i=1; i<=n; i++){
int x = i;
if(x%3 == 0){
System.out.print(" " + i);
}else{
while(x>0){
if(x%10 == 3){
System.out.print(" " + i);
break;
}
x = x/10;
}
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
4,
18,
4,
18,
13,
13,
17,
30,
14,
2,
17,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
4,
18,
18,
13,
13,
13,
4,
18,
18,
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
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
37,
43
],
[
30,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
45,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
6,
70
],
[
70,
71
],
[
0,
72
],
[
72,
73
],
[
72,
74
]
] | [
"\n\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t//??°??????????????°?????????\n\t\tint n = sc.nextInt();\n\t\t//??°?????????\t0?????¨?????????????????? ??\\???????????°????????§??¨????????????\n\t\tfor(int i = 1; i<= n; i++){\n\t\t//?????¶??? 3???????????°??????????????¨??? contains??????????????????????????????????????§?????????????????????String????????´???????????¨??????????????????toString????????´\n\t\t\tif(i % 3 ==0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\t//???????????°??????????????¨?????????????????´?????????\n\t\t\t\tif(0 < i){\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//??????\n\t\tSystem.out.println();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t//??°??????????????°?????????\n\t\tint n = sc.nextInt();\n\t\t//??°?????????\t0?????¨?????????????????? ??\\???????????°????????§??¨????????????\n\t\tfor(int i = 1; i<= n; i++){\n\t\t//?????¶??? 3???????????°??????????????¨??? contains??????????????????????????????????????§?????????????????????String????????´???????????¨??????????????????toString????????´\n\t\t\tif(i % 3 ==0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\t//???????????°??????????????¨?????????????????´?????????\n\t\t\t\tif(0 < i){\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//??????\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t//??°??????????????°?????????\n\t\tint n = sc.nextInt();\n\t\t//??°?????????\t0?????¨?????????????????? ??\\???????????°????????§??¨????????????\n\t\tfor(int i = 1; i<= n; i++){\n\t\t//?????¶??? 3???????????°??????????????¨??? contains??????????????????????????????????????§?????????????????????String????????´???????????¨??????????????????toString????????´\n\t\t\tif(i % 3 ==0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\t//???????????°??????????????¨?????????????????´?????????\n\t\t\t\tif(0 < i){\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//??????\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t//??°??????????????°?????????\n\t\tint n = sc.nextInt();\n\t\t//??°?????????\t0?????¨?????????????????? ??\\???????????°????????§??¨????????????\n\t\tfor(int i = 1; i<= n; i++){\n\t\t//?????¶??? 3???????????°??????????????¨??? contains??????????????????????????????????????§?????????????????????String????????´???????????¨??????????????????toString????????´\n\t\t\tif(i % 3 ==0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\t//???????????°??????????????¨?????????????????´?????????\n\t\t\t\tif(0 < i){\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//??????\n\t\tSystem.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 1; i<= n; i++){\n\t\t//?????¶??? 3???????????°??????????????¨??? contains??????????????????????????????????????§?????????????????????String????????´???????????¨??????????????????toString????????´\n\t\t\tif(i % 3 ==0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\t//???????????°??????????????¨?????????????????´?????????\n\t\t\t\tif(0 < i){\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i<= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t//?????¶??? 3???????????°??????????????¨??? contains??????????????????????????????????????§?????????????????????String????????´???????????¨??????????????????toString????????´\n\t\t\tif(i % 3 ==0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\t//???????????°??????????????¨?????????????????´?????????\n\t\t\t\tif(0 < i){\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t//?????¶??? 3???????????°??????????????¨??? contains??????????????????????????????????????§?????????????????????String????????´???????????¨??????????????????toString????????´\n\t\t\tif(i % 3 ==0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\t//???????????°??????????????¨?????????????????´?????????\n\t\t\t\tif(0 < i){\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if(i % 3 ==0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\t//???????????°??????????????¨?????????????????´?????????\n\t\t\t\tif(0 < i){\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}\n\t\t\t}",
"i % 3 ==0 || Integer.toString(i).contains(\"3\")",
"i % 3 ==0",
"i % 3",
"i",
"3",
"0",
"Integer.toString(i).contains(\"3\")",
"Integer.toString(i).contains",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"\"3\"",
"{\n\t\t\t\t//???????????°??????????????¨?????????????????´?????????\n\t\t\t\tif(0 < i){\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}\n\t\t\t}",
"if(0 < i){\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}",
"0 < i",
"0",
"i",
"{\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}",
"System.out.print(i)",
"System.out.print",
"System.out",
"System",
"System.out",
"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\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t//??°??????????????°?????????\n\t\tint n = sc.nextInt();\n\t\t//??°?????????\t0?????¨?????????????????? ??\\???????????°????????§??¨????????????\n\t\tfor(int i = 1; i<= n; i++){\n\t\t//?????¶??? 3???????????°??????????????¨??? contains??????????????????????????????????????§?????????????????????String????????´???????????¨??????????????????toString????????´\n\t\t\tif(i % 3 ==0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\t//???????????°??????????????¨?????????????????´?????????\n\t\t\t\tif(0 < i){\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//??????\n\t\tSystem.out.println();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\t//????????£?????????????????????\n\t\tScanner sc = new Scanner(System.in);\n\t\t//??°??????????????°?????????\n\t\tint n = sc.nextInt();\n\t\t//??°?????????\t0?????¨?????????????????? ??\\???????????°????????§??¨????????????\n\t\tfor(int i = 1; i<= n; i++){\n\t\t//?????¶??? 3???????????°??????????????¨??? contains??????????????????????????????????????§?????????????????????String????????´???????????¨??????????????????toString????????´\n\t\t\tif(i % 3 ==0 || Integer.toString(i).contains(\"3\")){\n\t\t\t\t//???????????°??????????????¨?????????????????´?????????\n\t\t\t\tif(0 < i){\n\t\t\t\t\t//?????????????¬?\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\t//?????????????¬???????\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\t//??????\n\t\tSystem.out.println();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args){
//????????£?????????????????????
Scanner sc = new Scanner(System.in);
//??°??????????????°?????????
int n = sc.nextInt();
//??°????????? 0?????¨?????????????????? ??\???????????°????????§??¨????????????
for(int i = 1; i<= n; i++){
//?????¶??? 3???????????°??????????????¨??? contains??????????????????????????????????????§?????????????????????String????????´???????????¨??????????????????toString????????´
if(i % 3 ==0 || Integer.toString(i).contains("3")){
//???????????°??????????????¨?????????????????´?????????
if(0 < i){
//?????????????¬?
System.out.print(" " + i);
}else{
//?????????????¬???????
System.out.print(i);
}
}
}
//??????
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
141,
5
],
[
141,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
37,
43
],
[
30,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
51,
57
],
[
44,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
65,
71
],
[
58,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
72,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
85,
91
],
[
72,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
93,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
92,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
105,
111
],
[
92,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
113,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
112,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
125,
130
],
[
125,
131
],
[
8,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
134,
136
],
[
132,
137
],
[
6,
138
],
[
138,
139
],
[
0,
140
],
[
140,
141
],
[
140,
142
]
] | [
"import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[]args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint num=sc.nextInt();\n\t\tfor(int i=3;i<=num;i++){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\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\t\tint num=sc.nextInt();\n\t\tfor(int i=3;i<=num;i++){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}\n}",
"Main",
"public static void main(String[]args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint num=sc.nextInt();\n\t\tfor(int i=3;i<=num;i++){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint num=sc.nextInt();\n\t\tfor(int i=3;i<=num;i++){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int num=sc.nextInt();",
"num",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=3;i<=num;i++){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}",
"int i=3;",
"int i=3;",
"i",
"3",
"i<=num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}",
"if(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"i%3==0",
"i%3",
"i",
"3",
"0",
"{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"if(i%1==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"i%1==3",
"i%1",
"i",
"1",
"3",
"{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"if(i%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"i%10==3",
"i%10",
"i",
"10",
"3",
"{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"i%100>=30&&i%100<=39",
"i%100>=30",
"i%100",
"i",
"100",
"30",
"i%100<=39",
"i%100",
"i",
"100",
"39",
"{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"i%1000>=300&&i%1000<=399",
"i%1000>=300",
"i%1000",
"i",
"1000",
"300",
"i%1000<=399",
"i%1000",
"i",
"1000",
"399",
"{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"i%10000>=3000&&i%10000<=3999",
"i%10000>=3000",
"i%10000",
"i",
"10000",
"3000",
"i%10000<=3999",
"i%10000",
"i",
"10000",
"3999",
"{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"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\t\tint num=sc.nextInt();\n\t\tfor(int i=3;i<=num;i++){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}\n}",
"public class Main{\n\tpublic static void main(String[]args){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint num=sc.nextInt();\n\t\tfor(int i=3;i<=num;i++){\n\t\t\tif(i%3==0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10==3){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%100>=30&&i%100<=39){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%1000>=300&&i%1000<=399){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else if(i%10000>=3000&&i%10000<=3999){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\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 num=sc.nextInt();
for(int i=3;i<=num;i++){
if(i%3==0){
System.out.printf(" %d",i);
}else if(i%1==3){
System.out.printf(" %d",i);
}else if(i%10==3){
System.out.printf(" %d",i);
}else if(i%100>=30&&i%100<=39){
System.out.printf(" %d",i);
}else if(i%1000>=300&&i%1000<=399){
System.out.printf(" %d",i);
}else if(i%10000>=3000&&i%10000<=3999){
System.out.printf(" %d",i);
}
}
System.out.println("");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
4,
13,
13,
13,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
30,
4,
13,
2,
13,
17,
13,
23,
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
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
39,
48
],
[
29,
49
],
[
49,
50
],
[
49,
51
],
[
49,
52
],
[
8,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
6,
58
],
[
58,
59
],
[
96,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
70,
75
],
[
75,
76
],
[
75,
77
],
[
63,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
60,
91
],
[
91,
92
],
[
60,
93
],
[
93,
94
],
[
0,
95
],
[
95,
96
],
[
95,
97
]
] | [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprint3(x, i);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tpublic static void print3(int x, int i) {\n\t\tif (x % 10 == 3) {\n\t\t\tSystem.out.print(\" \" + i);\n\t\t} else if (x / 10 > 0) {\n\t\t\tprint3(x / 10, i);\n\t\t}\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprint3(x, i);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tpublic static void print3(int x, int i) {\n\t\tif (x % 10 == 3) {\n\t\t\tSystem.out.print(\" \" + i);\n\t\t} else if (x / 10 > 0) {\n\t\t\tprint3(x / 10, i);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprint3(x, i);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprint3(x, i);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprint3(x, i);\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprint3(x, i);\n\t\t}",
"{\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprint3(x, i);\n\t\t}",
"int x = i;",
"x",
"i",
"if (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"continue;",
"print3(x, i)",
"print3",
"x",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public static void print3(int x, int i) {\n\t\tif (x % 10 == 3) {\n\t\t\tSystem.out.print(\" \" + i);\n\t\t} else if (x / 10 > 0) {\n\t\t\tprint3(x / 10, i);\n\t\t}\n\t}",
"print3",
"{\n\t\tif (x % 10 == 3) {\n\t\t\tSystem.out.print(\" \" + i);\n\t\t} else if (x / 10 > 0) {\n\t\t\tprint3(x / 10, i);\n\t\t}\n\t}",
"if (x % 10 == 3) {\n\t\t\tSystem.out.print(\" \" + i);\n\t\t} else if (x / 10 > 0) {\n\t\t\tprint3(x / 10, i);\n\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\tSystem.out.print(\" \" + i);\n\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"if (x / 10 > 0) {\n\t\t\tprint3(x / 10, i);\n\t\t}",
"x / 10 > 0",
"x / 10",
"x",
"10",
"0",
"{\n\t\t\tprint3(x / 10, i);\n\t\t}",
"print3(x / 10, i)",
"print3",
"x / 10",
"x",
"10",
"i",
"int x",
"x",
"int i",
"i",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprint3(x, i);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tpublic static void print3(int x, int i) {\n\t\tif (x % 10 == 3) {\n\t\t\tSystem.out.print(\" \" + i);\n\t\t} else if (x / 10 > 0) {\n\t\t\tprint3(x / 10, i);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t@SuppressWarnings(\"resource\")\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tprint3(x, i);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n\tpublic static void print3(int x, int i) {\n\t\tif (x % 10 == 3) {\n\t\t\tSystem.out.print(\" \" + i);\n\t\t} else if (x / 10 > 0) {\n\t\t\tprint3(x / 10, i);\n\t\t}\n\t}\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
@SuppressWarnings("resource")
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 1; i <= n; i++) {
int x = i;
if (x % 3 == 0) {
System.out.print(" " + i);
continue;
}
print3(x, i);
}
System.out.println();
}
public static void print3(int x, int i) {
if (x % 10 == 3) {
System.out.print(" " + i);
} else if (x / 10 > 0) {
print3(x / 10, i);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
94,
5
],
[
94,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
33,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
33,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
75,
84
],
[
8,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
6,
91
],
[
91,
92
],
[
0,
93
],
[
93,
94
],
[
93,
95
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n Scanner r=new Scanner(System.in);\n int t = r.nextInt();\n for (int i = 1;i <= t ;i++ ) {\n int s = i;\n if (s%3==0||s%10==3||s/10==3) {\n System.out.print(\" \"+i);\n }else{\n while(s!=0){\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n }\n System.out.println(\"\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n Scanner r=new Scanner(System.in);\n int t = r.nextInt();\n for (int i = 1;i <= t ;i++ ) {\n int s = i;\n if (s%3==0||s%10==3||s/10==3) {\n System.out.print(\" \"+i);\n }else{\n while(s!=0){\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n }\n System.out.println(\"\");\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner r=new Scanner(System.in);\n int t = r.nextInt();\n for (int i = 1;i <= t ;i++ ) {\n int s = i;\n if (s%3==0||s%10==3||s/10==3) {\n System.out.print(\" \"+i);\n }else{\n while(s!=0){\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n }\n System.out.println(\"\");\n }",
"main",
"{\n Scanner r=new Scanner(System.in);\n int t = r.nextInt();\n for (int i = 1;i <= t ;i++ ) {\n int s = i;\n if (s%3==0||s%10==3||s/10==3) {\n System.out.print(\" \"+i);\n }else{\n while(s!=0){\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n }\n System.out.println(\"\");\n }",
"Scanner r=new Scanner(System.in);",
"r",
"new Scanner(System.in)",
"int t = r.nextInt();",
"t",
"r.nextInt()",
"r.nextInt",
"r",
"for (int i = 1;i <= t ;i++ ) {\n int s = i;\n if (s%3==0||s%10==3||s/10==3) {\n System.out.print(\" \"+i);\n }else{\n while(s!=0){\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= t",
"i",
"t",
"i++",
"i++",
"i",
"{\n int s = i;\n if (s%3==0||s%10==3||s/10==3) {\n System.out.print(\" \"+i);\n }else{\n while(s!=0){\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n }",
"{\n int s = i;\n if (s%3==0||s%10==3||s/10==3) {\n System.out.print(\" \"+i);\n }else{\n while(s!=0){\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n }",
"int s = i;",
"s",
"i",
"if (s%3==0||s%10==3||s/10==3) {\n System.out.print(\" \"+i);\n }else{\n while(s!=0){\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }\n }",
"s%3==0||s%10==3||s/10==3",
"s%3==0||s%10==3||s/10==3",
"s%3==0",
"s%3",
"s",
"3",
"0",
"s%10==3",
"s%10",
"s",
"10",
"3",
"s/10==3",
"s/10",
"s",
"10",
"3",
"{\n System.out.print(\" \"+i);\n }",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"{\n while(s!=0){\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }\n }",
"while(s!=0){\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }",
"s!=0",
"s",
"0",
"{\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }",
"s/=10",
"s",
"10",
"if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }",
"s%10==3",
"s%10",
"s",
"10",
"3",
"{\n System.out.print(\" \"+i);\n break;\n }",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"break;",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args){\n Scanner r=new Scanner(System.in);\n int t = r.nextInt();\n for (int i = 1;i <= t ;i++ ) {\n int s = i;\n if (s%3==0||s%10==3||s/10==3) {\n System.out.print(\" \"+i);\n }else{\n while(s!=0){\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n }\n System.out.println(\"\");\n }\n}",
"public class Main {\n public static void main(String[] args){\n Scanner r=new Scanner(System.in);\n int t = r.nextInt();\n for (int i = 1;i <= t ;i++ ) {\n int s = i;\n if (s%3==0||s%10==3||s/10==3) {\n System.out.print(\" \"+i);\n }else{\n while(s!=0){\n s/=10;\n if (s%10==3) {\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n }\n System.out.println(\"\");\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner r=new Scanner(System.in);
int t = r.nextInt();
for (int i = 1;i <= t ;i++ ) {
int s = i;
if (s%3==0||s%10==3||s/10==3) {
System.out.print(" "+i);
}else{
while(s!=0){
s/=10;
if (s%10==3) {
System.out.print(" "+i);
break;
}
}
}
}
System.out.println("");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
14,
4,
13,
13,
13,
9,
4,
13,
13,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
29,
17,
4,
18,
18,
13,
13,
17,
13,
29,
17,
23,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
29,
0,
13,
17,
14,
2,
13,
17,
4,
13,
13,
13,
23,
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
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
36,
39
],
[
35,
40
],
[
31,
41
],
[
41,
42
],
[
41,
43
],
[
41,
44
],
[
8,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
8,
51
],
[
51,
52
],
[
52,
53
],
[
6,
54
],
[
54,
55
],
[
114,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
58,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
67,
73
],
[
58,
74
],
[
74,
75
],
[
56,
76
],
[
76,
77
],
[
56,
78
],
[
78,
79
],
[
114,
80
],
[
80,
81
],
[
80,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
90,
96
],
[
89,
97
],
[
82,
98
],
[
98,
99
],
[
98,
100
],
[
82,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
101,
105
],
[
105,
106
],
[
105,
107
],
[
105,
108
],
[
80,
109
],
[
109,
110
],
[
80,
111
],
[
111,
112
],
[
0,
113
],
[
113,
114
],
[
113,
115
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x;\n for (int i = 1; i <= n; i++) {\n x = i;\n if (checkNum(x, i)) continue;\n include3(x, i);\n }\n\n System.out.println(\"\");\n\n sc.close();\n }\n\n static boolean checkNum(int x, int i) {\n if ((x % 3) != 0) return false;\n System.out.printf(\" %d\", i);\n return true;\n }\n\n static void include3(int x, int i) {\n if ((x % 10) == 3) {\n System.out.printf(\" %d\", i);\n return;\n }\n\n x /= 10;\n if (x != 0) include3(x, i);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x;\n for (int i = 1; i <= n; i++) {\n x = i;\n if (checkNum(x, i)) continue;\n include3(x, i);\n }\n\n System.out.println(\"\");\n\n sc.close();\n }\n\n static boolean checkNum(int x, int i) {\n if ((x % 3) != 0) return false;\n System.out.printf(\" %d\", i);\n return true;\n }\n\n static void include3(int x, int i) {\n if ((x % 10) == 3) {\n System.out.printf(\" %d\", i);\n return;\n }\n\n x /= 10;\n if (x != 0) include3(x, i);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x;\n for (int i = 1; i <= n; i++) {\n x = i;\n if (checkNum(x, i)) continue;\n include3(x, i);\n }\n\n System.out.println(\"\");\n\n sc.close();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x;\n for (int i = 1; i <= n; i++) {\n x = i;\n if (checkNum(x, i)) continue;\n include3(x, i);\n }\n\n System.out.println(\"\");\n\n sc.close();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x;",
"x",
"for (int i = 1; i <= n; i++) {\n x = i;\n if (checkNum(x, i)) continue;\n include3(x, i);\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n x = i;\n if (checkNum(x, i)) continue;\n include3(x, i);\n }",
"{\n x = i;\n if (checkNum(x, i)) continue;\n include3(x, i);\n }",
"x = i",
"x",
"i",
"if (checkNum(x, i)) continue;",
"checkNum(x, i)",
"checkNum",
"x",
"i",
"continue;",
"include3(x, i)",
"include3",
"x",
"i",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"static boolean checkNum(int x, int i) {\n if ((x % 3) != 0) return false;\n System.out.printf(\" %d\", i);\n return true;\n }",
"checkNum",
"{\n if ((x % 3) != 0) return false;\n System.out.printf(\" %d\", i);\n return true;\n }",
"if ((x % 3) != 0) return false;",
"(x % 3) != 0",
"(x % 3)",
"x",
"3",
"0",
"return false;",
"false",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"return true;",
"true",
"int x",
"x",
"int i",
"i",
"static void include3(int x, int i) {\n if ((x % 10) == 3) {\n System.out.printf(\" %d\", i);\n return;\n }\n\n x /= 10;\n if (x != 0) include3(x, i);\n }",
"include3",
"{\n if ((x % 10) == 3) {\n System.out.printf(\" %d\", i);\n return;\n }\n\n x /= 10;\n if (x != 0) include3(x, i);\n }",
"if ((x % 10) == 3) {\n System.out.printf(\" %d\", i);\n return;\n }",
"(x % 10) == 3",
"(x % 10)",
"x",
"10",
"3",
"{\n System.out.printf(\" %d\", i);\n return;\n }",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"return;",
"x /= 10",
"x",
"10",
"if (x != 0) include3(x, i);",
"x != 0",
"x",
"0",
"include3(x, i)",
"include3",
"x",
"i",
"int x",
"x",
"int i",
"i",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x;\n for (int i = 1; i <= n; i++) {\n x = i;\n if (checkNum(x, i)) continue;\n include3(x, i);\n }\n\n System.out.println(\"\");\n\n sc.close();\n }\n\n static boolean checkNum(int x, int i) {\n if ((x % 3) != 0) return false;\n System.out.printf(\" %d\", i);\n return true;\n }\n\n static void include3(int x, int i) {\n if ((x % 10) == 3) {\n System.out.printf(\" %d\", i);\n return;\n }\n\n x /= 10;\n if (x != 0) include3(x, i);\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n int x;\n for (int i = 1; i <= n; i++) {\n x = i;\n if (checkNum(x, i)) continue;\n include3(x, i);\n }\n\n System.out.println(\"\");\n\n sc.close();\n }\n\n static boolean checkNum(int x, int i) {\n if ((x % 3) != 0) return false;\n System.out.printf(\" %d\", i);\n return true;\n }\n\n static void include3(int x, int i) {\n if ((x % 10) == 3) {\n System.out.printf(\" %d\", i);\n return;\n }\n\n x /= 10;\n if (x != 0) include3(x, i);\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x;
for (int i = 1; i <= n; i++) {
x = i;
if (checkNum(x, i)) continue;
include3(x, i);
}
System.out.println("");
sc.close();
}
static boolean checkNum(int x, int i) {
if ((x % 3) != 0) return false;
System.out.printf(" %d", i);
return true;
}
static void include3(int x, int i) {
if ((x % 10) == 3) {
System.out.printf(" %d", i);
return;
}
x /= 10;
if (x != 0) include3(x, i);
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
6
],
[
6,
7
],
[
86,
8
],
[
8,
9
],
[
86,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
12,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
43,
52
],
[
33,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
64,
73
],
[
57,
74
],
[
74,
75
],
[
74,
76
],
[
12,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
10,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n private static int input_num, x;\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n input_num = stdIn.nextInt();\n for (int i = 1;i <= input_num; i++) {\n x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+ x);\n continue;\n }\n while (x > 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n System.out.println(\"\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n private static int input_num, x;\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n input_num = stdIn.nextInt();\n for (int i = 1;i <= input_num; i++) {\n x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+ x);\n continue;\n }\n while (x > 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n System.out.println(\"\");\n }\n}",
"Main",
"private static int input_num",
"input_num",
"x;",
"x",
"public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n input_num = stdIn.nextInt();\n for (int i = 1;i <= input_num; i++) {\n x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+ x);\n continue;\n }\n while (x > 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n System.out.println(\"\");\n }",
"main",
"{\n Scanner stdIn = new Scanner(System.in);\n input_num = stdIn.nextInt();\n for (int i = 1;i <= input_num; i++) {\n x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+ x);\n continue;\n }\n while (x > 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n System.out.println(\"\");\n }",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"input_num = stdIn.nextInt()",
"input_num",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"for (int i = 1;i <= input_num; i++) {\n x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+ x);\n continue;\n }\n while (x > 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= input_num",
"i",
"input_num",
"i++",
"i++",
"i",
"{\n x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+ x);\n continue;\n }\n while (x > 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }",
"{\n x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+ x);\n continue;\n }\n while (x > 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }",
"x = i",
"x",
"i",
"if (x % 3 == 0) {\n System.out.print(\" \"+ x);\n continue;\n }",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n System.out.print(\" \"+ x);\n continue;\n }",
"System.out.print(\" \"+ x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+ x",
"\" \"",
"x",
"continue;",
"while (x > 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }",
"x > 0",
"x",
"0",
"{\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }",
"if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n System.out.print(\" \"+ i);\n break;\n }",
"System.out.print(\" \"+ i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+ i",
"\" \"",
"i",
"break;",
"x /= 10",
"x",
"10",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String[] args",
"args",
"public class Main {\n private static int input_num, x;\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n input_num = stdIn.nextInt();\n for (int i = 1;i <= input_num; i++) {\n x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+ x);\n continue;\n }\n while (x > 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n System.out.println(\"\");\n }\n}",
"public class Main {\n private static int input_num, x;\n public static void main(String[] args) {\n Scanner stdIn = new Scanner(System.in);\n input_num = stdIn.nextInt();\n for (int i = 1;i <= input_num; i++) {\n x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+ x);\n continue;\n }\n while (x > 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n System.out.println(\"\");\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
private static int input_num, x;
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
input_num = stdIn.nextInt();
for (int i = 1;i <= input_num; i++) {
x = i;
if (x % 3 == 0) {
System.out.print(" "+ x);
continue;
}
while (x > 0) {
if (x % 10 == 3) {
System.out.print(" "+ i);
break;
}
x /= 10;
}
}
System.out.println("");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
13,
14,
2,
2,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
2,
13,
17,
17,
17,
2,
2,
2,
13,
17,
17,
17,
2,
2,
2,
13,
17,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
40,
13,
14,
2,
13,
13,
30,
3,
4,
18,
18,
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
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
30,
28
],
[
48,
29
],
[
41,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
30,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
26,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
22,
71
],
[
71,
72
],
[
22,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
8,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n\tScanner sc= new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint i=1;\n\t\n\twhile(true){\n\t\tint x = i;\n\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n\t\t\tSystem.out.print(\" \"+x);\n\t\t}\n\t\ti++;\n\t\tif(i>n){\n\t\t\tbreak;\n\t\t}}\t\n\tSystem.out.println();\n}}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n\tScanner sc= new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint i=1;\n\t\n\twhile(true){\n\t\tint x = i;\n\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n\t\t\tSystem.out.print(\" \"+x);\n\t\t}\n\t\ti++;\n\t\tif(i>n){\n\t\t\tbreak;\n\t\t}}\t\n\tSystem.out.println();\n}}",
"Main",
"public static void main(String[] args){\n\tScanner sc= new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint i=1;\n\t\n\twhile(true){\n\t\tint x = i;\n\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n\t\t\tSystem.out.print(\" \"+x);\n\t\t}\n\t\ti++;\n\t\tif(i>n){\n\t\t\tbreak;\n\t\t}}\t\n\tSystem.out.println();\n}",
"main",
"{\n\tScanner sc= new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint i=1;\n\t\n\twhile(true){\n\t\tint x = i;\n\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n\t\t\tSystem.out.print(\" \"+x);\n\t\t}\n\t\ti++;\n\t\tif(i>n){\n\t\t\tbreak;\n\t\t}}\t\n\tSystem.out.println();\n}",
"Scanner sc= new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i=1;",
"i",
"1",
"while(true){\n\t\tint x = i;\n\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n\t\t\tSystem.out.print(\" \"+x);\n\t\t}\n\t\ti++;\n\t\tif(i>n){\n\t\t\tbreak;\n\t\t}}",
"true",
"{\n\t\tint x = i;\n\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n\t\t\tSystem.out.print(\" \"+x);\n\t\t}\n\t\ti++;\n\t\tif(i>n){\n\t\t\tbreak;\n\t\t}}",
"int x = i;",
"x",
"i",
"if(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n\t\t\tSystem.out.print(\" \"+x);\n\t\t}",
"x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3",
"(x/100)%10==3",
"(x/10)%10==3",
"x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3",
"x%3==0",
"x%3",
"x",
"3",
"0",
"x%10==3",
"x%10",
"x",
"10",
"3",
"(x/10)%10==3",
"(x/10)%10",
"(x/10)",
"x",
"10",
"10",
"3",
"(x/100)%10==3",
"(x/100)%10",
"(x/100)",
"x",
"100",
"10",
"3",
"(x/1000)%10==3",
"(x/1000)%10",
"(x/1000)",
"x",
"1000",
"10",
"3",
"{\n\t\t\tSystem.out.print(\" \"+x);\n\t\t}",
"System.out.print(\" \"+x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+x",
"\" \"",
"x",
"i++",
"i",
"if(i>n){\n\t\t\tbreak;\n\t\t}",
"i>n",
"i",
"n",
"{\n\t\t\tbreak;\n\t\t}",
"break;",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n\tScanner sc= new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint i=1;\n\t\n\twhile(true){\n\t\tint x = i;\n\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n\t\t\tSystem.out.print(\" \"+x);\n\t\t}\n\t\ti++;\n\t\tif(i>n){\n\t\t\tbreak;\n\t\t}}\t\n\tSystem.out.println();\n}}",
"public class Main{\n public static void main(String[] args){\n\tScanner sc= new Scanner(System.in);\n\tint n = sc.nextInt();\n\tint i=1;\n\t\n\twhile(true){\n\t\tint x = i;\n\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n\t\t\tSystem.out.print(\" \"+x);\n\t\t}\n\t\ti++;\n\t\tif(i>n){\n\t\t\tbreak;\n\t\t}}\t\n\tSystem.out.println();\n}}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc= new Scanner(System.in);
int n = sc.nextInt();
int i=1;
while(true){
int x = i;
if(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){
System.out.print(" "+x);
}
i++;
if(i>n){
break;
}}
System.out.println();
}} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
17,
30,
41,
13,
13,
14,
2,
2,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
2,
13,
17,
17,
17,
2,
2,
2,
13,
17,
17,
17,
2,
2,
2,
13,
17,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
40,
13,
14,
2,
13,
13,
30,
3,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
93,
8
],
[
93,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
36,
34
],
[
54,
35
],
[
47,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
54,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
36,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
61,
67
],
[
32,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
28,
77
],
[
77,
78
],
[
28,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
11,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
9,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] | [
"import java.util.Scanner;\n//import java.lang.Math;\nimport java.util.Random;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tRandom rnd = new Random();\n\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\n\t\twhile(true){\n\t\t\tint x = i;\n\t\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n \tSystem.out.print(\" \"+x);\n \t}\n i++;\n if(i>n){\n break;\n }\n\n\n\t\t}\n\n\t\tSystem.out.println();\t\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Random;",
"Random",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tRandom rnd = new Random();\n\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\n\t\twhile(true){\n\t\t\tint x = i;\n\t\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n \tSystem.out.print(\" \"+x);\n \t}\n i++;\n if(i>n){\n break;\n }\n\n\n\t\t}\n\n\t\tSystem.out.println();\t\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tRandom rnd = new Random();\n\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\n\t\twhile(true){\n\t\t\tint x = i;\n\t\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n \tSystem.out.print(\" \"+x);\n \t}\n i++;\n if(i>n){\n break;\n }\n\n\n\t\t}\n\n\t\tSystem.out.println();\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tRandom rnd = new Random();\n\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\n\t\twhile(true){\n\t\t\tint x = i;\n\t\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n \tSystem.out.print(\" \"+x);\n \t}\n i++;\n if(i>n){\n break;\n }\n\n\n\t\t}\n\n\t\tSystem.out.println();\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Random rnd = new Random();",
"rnd",
"new Random()",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i = 1;",
"i",
"1",
"while(true){\n\t\t\tint x = i;\n\t\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n \tSystem.out.print(\" \"+x);\n \t}\n i++;\n if(i>n){\n break;\n }\n\n\n\t\t}",
"true",
"{\n\t\t\tint x = i;\n\t\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n \tSystem.out.print(\" \"+x);\n \t}\n i++;\n if(i>n){\n break;\n }\n\n\n\t\t}",
"int x = i;",
"x",
"i",
"if(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n \tSystem.out.print(\" \"+x);\n \t}",
"x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3",
"(x/100)%10==3",
"(x/10)%10==3",
"x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3",
"x%3==0",
"x%3",
"x",
"3",
"0",
"x%10==3",
"x%10",
"x",
"10",
"3",
"(x/10)%10==3",
"(x/10)%10",
"(x/10)",
"x",
"10",
"10",
"3",
"(x/100)%10==3",
"(x/100)%10",
"(x/100)",
"x",
"100",
"10",
"3",
"(x/1000)%10==3",
"(x/1000)%10",
"(x/1000)",
"x",
"1000",
"10",
"3",
"{\n \tSystem.out.print(\" \"+x);\n \t}",
"System.out.print(\" \"+x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+x",
"\" \"",
"x",
"i++",
"i",
"if(i>n){\n break;\n }",
"i>n",
"i",
"n",
"{\n break;\n }",
"break;",
"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\t\tRandom rnd = new Random();\n\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\n\t\twhile(true){\n\t\t\tint x = i;\n\t\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n \tSystem.out.print(\" \"+x);\n \t}\n i++;\n if(i>n){\n break;\n }\n\n\n\t\t}\n\n\t\tSystem.out.println();\t\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tRandom rnd = new Random();\n\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\n\t\twhile(true){\n\t\t\tint x = i;\n\t\t\tif(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){\n \tSystem.out.print(\" \"+x);\n \t}\n i++;\n if(i>n){\n break;\n }\n\n\n\t\t}\n\n\t\tSystem.out.println();\t\n\t}\n}",
"Main"
] | import java.util.Scanner;
//import java.lang.Math;
import java.util.Random;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
Random rnd = new Random();
int n = sc.nextInt();
int i = 1;
while(true){
int x = i;
if(x%3==0 || x%10==3 || (x/10)%10==3 || (x/100)%10==3|| (x/1000)%10==3){
System.out.print(" "+x);
}
i++;
if(i>n){
break;
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
13,
13,
3,
41,
13,
4,
18,
13,
13,
14,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
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
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
31,
43
],
[
43,
44
],
[
45,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
45,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
43,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
43,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint i;\n\n\t\tfor(i=1; i<=n; i++){\n\t\t\tif(i > n) break;\n\t\t\tString x = String.valueOf(i);\n\t\t\tif (((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\telse if (x.contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println();\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\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint i;\n\n\t\tfor(i=1; i<=n; i++){\n\t\t\tif(i > n) break;\n\t\t\tString x = String.valueOf(i);\n\t\t\tif (((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\telse if (x.contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint i;\n\n\t\tfor(i=1; i<=n; i++){\n\t\t\tif(i > n) break;\n\t\t\tString x = String.valueOf(i);\n\t\t\tif (((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\telse if (x.contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint i;\n\n\t\tfor(i=1; i<=n; i++){\n\t\t\tif(i > n) break;\n\t\t\tString x = String.valueOf(i);\n\t\t\tif (((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\telse if (x.contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int i;",
"i",
"for(i=1; i<=n; i++){\n\t\t\tif(i > n) break;\n\t\t\tString x = String.valueOf(i);\n\t\t\tif (((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\telse if (x.contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\t\t\n\t\t}",
"i=1;",
"i=1",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(i > n) break;\n\t\t\tString x = String.valueOf(i);\n\t\t\tif (((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\telse if (x.contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\t\t\n\t\t}",
"{\n\t\t\tif(i > n) break;\n\t\t\tString x = String.valueOf(i);\n\t\t\tif (((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\telse if (x.contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\t\t\n\t\t}",
"if(i > n) break;",
"i > n",
"i",
"n",
"break;",
"String x = String.valueOf(i);",
"x",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"if (((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\telse if (x.contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)",
"((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)",
"((i%3) == 0)",
"(i%3)",
"i",
"3",
"0",
"((i%10) == 3)",
"(i%10)",
"i",
"10",
"3",
"((i/10) == 3)",
"(i/10)",
"i",
"10",
"3",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"if (x.contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"x.contains(\"3\")",
"x.contains",
"x",
"\"3\"",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"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\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint i;\n\n\t\tfor(i=1; i<=n; i++){\n\t\t\tif(i > n) break;\n\t\t\tString x = String.valueOf(i);\n\t\t\tif (((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\telse if (x.contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\n\t\tScanner scan = new Scanner(System.in);\n\t\t\n\t\tint n = scan.nextInt();\n\t\tint i;\n\n\t\tfor(i=1; i<=n; i++){\n\t\t\tif(i > n) break;\n\t\t\tString x = String.valueOf(i);\n\t\t\tif (((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\telse if (x.contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t\t\t\n\t\t}\n\t\tSystem.out.println();\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 n = scan.nextInt();
int i;
for(i=1; i<=n; i++){
if(i > n) break;
String x = String.valueOf(i);
if (((i%3) == 0) || ((i%10) == 3) || ((i/10) == 3)) {
System.out.print(" " + i);
}
else if (x.contains("3")) {
System.out.print(" " + i);
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
42,
2,
0,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
100,
8
],
[
100,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
42,
51
],
[
36,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
58,
67
],
[
32,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
81,
90
],
[
11,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
9,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] | [
"import java.io.*;\nimport java.util.Scanner;\npublic class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n for (int i=1;i<=n;i++){\n int x=i;\n if (x%3==0){\n System.out.print(\" \"+i);\n continue;\n }\n else if(x%10==3){\n System.out.print(\" \"+i);\n continue;\n }\n while ((x/=10)!=0){\n if (x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n System.out.print(\"\\n\");\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n for (int i=1;i<=n;i++){\n int x=i;\n if (x%3==0){\n System.out.print(\" \"+i);\n continue;\n }\n else if(x%10==3){\n System.out.print(\" \"+i);\n continue;\n }\n while ((x/=10)!=0){\n if (x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n System.out.print(\"\\n\");\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n for (int i=1;i<=n;i++){\n int x=i;\n if (x%3==0){\n System.out.print(\" \"+i);\n continue;\n }\n else if(x%10==3){\n System.out.print(\" \"+i);\n continue;\n }\n while ((x/=10)!=0){\n if (x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n System.out.print(\"\\n\");\n }",
"main",
"{\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n for (int i=1;i<=n;i++){\n int x=i;\n if (x%3==0){\n System.out.print(\" \"+i);\n continue;\n }\n else if(x%10==3){\n System.out.print(\" \"+i);\n continue;\n }\n while ((x/=10)!=0){\n if (x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n System.out.print(\"\\n\");\n }",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i=1;i<=n;i++){\n int x=i;\n if (x%3==0){\n System.out.print(\" \"+i);\n continue;\n }\n else if(x%10==3){\n System.out.print(\" \"+i);\n continue;\n }\n while ((x/=10)!=0){\n if (x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n int x=i;\n if (x%3==0){\n System.out.print(\" \"+i);\n continue;\n }\n else if(x%10==3){\n System.out.print(\" \"+i);\n continue;\n }\n while ((x/=10)!=0){\n if (x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n }\n }",
"{\n int x=i;\n if (x%3==0){\n System.out.print(\" \"+i);\n continue;\n }\n else if(x%10==3){\n System.out.print(\" \"+i);\n continue;\n }\n while ((x/=10)!=0){\n if (x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n }\n }",
"int x=i;",
"x",
"i",
"if (x%3==0){\n System.out.print(\" \"+i);\n continue;\n }\n else if(x%10==3){\n System.out.print(\" \"+i);\n continue;\n }",
"x%3==0",
"x%3",
"x",
"3",
"0",
"{\n System.out.print(\" \"+i);\n continue;\n }",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"continue;",
"if(x%10==3){\n System.out.print(\" \"+i);\n continue;\n }",
"x%10==3",
"x%10",
"x",
"10",
"3",
"{\n System.out.print(\" \"+i);\n continue;\n }",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"continue;",
"while ((x/=10)!=0){\n if (x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n }",
"(x/=10)!=0",
"(x/=10)",
"x",
"10",
"0",
"{\n if (x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n }",
"if (x%10==3){\n System.out.print(\" \"+i);\n break;\n }",
"x%10==3",
"x%10",
"x",
"10",
"3",
"{\n System.out.print(\" \"+i);\n break;\n }",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"break;",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc=new Scanner(System.in);\n int n=sc.nextInt();\n for (int i=1;i<=n;i++){\n int x=i;\n if (x%3==0){\n System.out.print(\" \"+i);\n continue;\n }\n else if(x%10==3){\n System.out.print(\" \"+i);\n continue;\n }\n while ((x/=10)!=0){\n if (x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n }\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 n=sc.nextInt();\n for (int i=1;i<=n;i++){\n int x=i;\n if (x%3==0){\n System.out.print(\" \"+i);\n continue;\n }\n else if(x%10==3){\n System.out.print(\" \"+i);\n continue;\n }\n while ((x/=10)!=0){\n if (x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n }\n }\n System.out.print(\"\\n\");\n }\n}",
"Main"
] | import java.io.*;
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
for (int i=1;i<=n;i++){
int x=i;
if (x%3==0){
System.out.print(" "+i);
continue;
}
else if(x%10==3){
System.out.print(" "+i);
continue;
}
while ((x/=10)!=0){
if (x%10==3){
System.out.print(" "+i);
break;
}
}
}
System.out.print("\n");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
4,
18,
4,
18,
13,
17,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
3,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
81,
5
],
[
81,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
42,
48
],
[
36,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
61,
67
],
[
60,
68
],
[
53,
69
],
[
69,
70
],
[
69,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"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 n = sc.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i = 1;i <= n;++i){\n int x = i;\n if(x % 3 == 0) sb.append(' ').append(i);\n else while(x > 0) {\n if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }\n x /= 10;\n }\n }\n System.out.println(sb);\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 n = sc.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i = 1;i <= n;++i){\n int x = i;\n if(x % 3 == 0) sb.append(' ').append(i);\n else while(x > 0) {\n if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }\n x /= 10;\n }\n }\n System.out.println(sb);\n }\n\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i = 1;i <= n;++i){\n int x = i;\n if(x % 3 == 0) sb.append(' ').append(i);\n else while(x > 0) {\n if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }\n x /= 10;\n }\n }\n System.out.println(sb);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i = 1;i <= n;++i){\n int x = i;\n if(x % 3 == 0) sb.append(' ').append(i);\n else while(x > 0) {\n if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }\n x /= 10;\n }\n }\n System.out.println(sb);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for(int i = 1;i <= n;++i){\n int x = i;\n if(x % 3 == 0) sb.append(' ').append(i);\n else while(x > 0) {\n if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }\n x /= 10;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"++i",
"++i",
"i",
"{\n int x = i;\n if(x % 3 == 0) sb.append(' ').append(i);\n else while(x > 0) {\n if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }\n x /= 10;\n }\n }",
"{\n int x = i;\n if(x % 3 == 0) sb.append(' ').append(i);\n else while(x > 0) {\n if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }\n x /= 10;\n }\n }",
"int x = i;",
"x",
"i",
"if(x % 3 == 0) sb.append(' ').append(i);\n else while(x > 0) {\n if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }\n x /= 10;\n }",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"sb.append(' ').append(i)",
"sb.append(' ').append",
"sb.append(' ')",
"sb.append",
"sb",
"' '",
"i",
"while(x > 0) {\n if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }\n x /= 10;\n }",
"x > 0",
"x",
"0",
"{\n if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }\n x /= 10;\n }",
"if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n sb.append(' ').append(i);\n break;\n }",
"sb.append(' ').append(i)",
"sb.append(' ').append",
"sb.append(' ')",
"sb.append",
"sb",
"' '",
"i",
"break;",
"x /= 10",
"x",
"10",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i = 1;i <= n;++i){\n int x = i;\n if(x % 3 == 0) sb.append(' ').append(i);\n else while(x > 0) {\n if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }\n x /= 10;\n }\n }\n System.out.println(sb);\n }\n\n}",
"public class Main {\n\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i = 1;i <= n;++i){\n int x = i;\n if(x % 3 == 0) sb.append(' ').append(i);\n else while(x > 0) {\n if (x % 10 == 3){\n sb.append(' ').append(i);\n break;\n }\n x /= 10;\n }\n }\n System.out.println(sb);\n }\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
StringBuilder sb = new StringBuilder();
for(int i = 1;i <= n;++i){
int x = i;
if(x % 3 == 0) sb.append(' ').append(i);
else while(x > 0) {
if (x % 10 == 3){
sb.append(' ').append(i);
break;
}
x /= 10;
}
}
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
4,
18,
13,
13,
9,
41,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
4,
18,
13,
13,
3,
0,
13,
17,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
42,
53
],
[
35,
54
],
[
54,
55
],
[
54,
56
],
[
35,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
69,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
68,
79
],
[
61,
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.io.*;\n\npublic class Main {\n public static void main(String args[]) throws IOException{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n int data = Integer.parseInt(reader.readLine());\n\n for(int i = 1; i <= data; i++){\n if(i % 3 == 0){\n builder.append(\" \").append(Integer.toString(i));\n continue;\n }\n int x = i;\n do{\n if(x % 10 == 3){\n builder.append(\" \").append(Integer.toString(i));\n break;\n }\n x /= 10;\n }while(x != 0);\n }\n\n System.out.println(builder);\n\n }\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n public static void main(String args[]) throws IOException{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n int data = Integer.parseInt(reader.readLine());\n\n for(int i = 1; i <= data; i++){\n if(i % 3 == 0){\n builder.append(\" \").append(Integer.toString(i));\n continue;\n }\n int x = i;\n do{\n if(x % 10 == 3){\n builder.append(\" \").append(Integer.toString(i));\n break;\n }\n x /= 10;\n }while(x != 0);\n }\n\n System.out.println(builder);\n\n }\n}",
"Main",
"public static void main(String args[]) throws IOException{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n int data = Integer.parseInt(reader.readLine());\n\n for(int i = 1; i <= data; i++){\n if(i % 3 == 0){\n builder.append(\" \").append(Integer.toString(i));\n continue;\n }\n int x = i;\n do{\n if(x % 10 == 3){\n builder.append(\" \").append(Integer.toString(i));\n break;\n }\n x /= 10;\n }while(x != 0);\n }\n\n System.out.println(builder);\n\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n int data = Integer.parseInt(reader.readLine());\n\n for(int i = 1; i <= data; i++){\n if(i % 3 == 0){\n builder.append(\" \").append(Integer.toString(i));\n continue;\n }\n int x = i;\n do{\n if(x % 10 == 3){\n builder.append(\" \").append(Integer.toString(i));\n break;\n }\n x /= 10;\n }while(x != 0);\n }\n\n System.out.println(builder);\n\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"int data = Integer.parseInt(reader.readLine());",
"data",
"Integer.parseInt(reader.readLine())",
"Integer.parseInt",
"Integer",
"reader.readLine()",
"reader.readLine",
"reader",
"for(int i = 1; i <= data; i++){\n if(i % 3 == 0){\n builder.append(\" \").append(Integer.toString(i));\n continue;\n }\n int x = i;\n do{\n if(x % 10 == 3){\n builder.append(\" \").append(Integer.toString(i));\n break;\n }\n x /= 10;\n }while(x != 0);\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= data",
"i",
"data",
"i++",
"i++",
"i",
"{\n if(i % 3 == 0){\n builder.append(\" \").append(Integer.toString(i));\n continue;\n }\n int x = i;\n do{\n if(x % 10 == 3){\n builder.append(\" \").append(Integer.toString(i));\n break;\n }\n x /= 10;\n }while(x != 0);\n }",
"{\n if(i % 3 == 0){\n builder.append(\" \").append(Integer.toString(i));\n continue;\n }\n int x = i;\n do{\n if(x % 10 == 3){\n builder.append(\" \").append(Integer.toString(i));\n break;\n }\n x /= 10;\n }while(x != 0);\n }",
"if(i % 3 == 0){\n builder.append(\" \").append(Integer.toString(i));\n continue;\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n builder.append(\" \").append(Integer.toString(i));\n continue;\n }",
"builder.append(\" \").append(Integer.toString(i))",
"builder.append(\" \").append",
"builder.append(\" \")",
"builder.append",
"builder",
"\" \"",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"continue;",
"int x = i;",
"x",
"i",
"do{\n if(x % 10 == 3){\n builder.append(\" \").append(Integer.toString(i));\n break;\n }\n x /= 10;\n }while(x != 0);",
"x != 0",
"x",
"0",
"{\n if(x % 10 == 3){\n builder.append(\" \").append(Integer.toString(i));\n break;\n }\n x /= 10;\n }",
"if(x % 10 == 3){\n builder.append(\" \").append(Integer.toString(i));\n break;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n builder.append(\" \").append(Integer.toString(i));\n break;\n }",
"builder.append(\" \").append(Integer.toString(i))",
"builder.append(\" \").append",
"builder.append(\" \")",
"builder.append",
"builder",
"\" \"",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"break;",
"x /= 10",
"x",
"10",
"System.out.println(builder)",
"System.out.println",
"System.out",
"System",
"System.out",
"builder",
"String args[]",
"args",
"public class Main {\n public static void main(String args[]) throws IOException{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n int data = Integer.parseInt(reader.readLine());\n\n for(int i = 1; i <= data; i++){\n if(i % 3 == 0){\n builder.append(\" \").append(Integer.toString(i));\n continue;\n }\n int x = i;\n do{\n if(x % 10 == 3){\n builder.append(\" \").append(Integer.toString(i));\n break;\n }\n x /= 10;\n }while(x != 0);\n }\n\n System.out.println(builder);\n\n }\n}",
"public class Main {\n public static void main(String args[]) throws IOException{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n int data = Integer.parseInt(reader.readLine());\n\n for(int i = 1; i <= data; i++){\n if(i % 3 == 0){\n builder.append(\" \").append(Integer.toString(i));\n continue;\n }\n int x = i;\n do{\n if(x % 10 == 3){\n builder.append(\" \").append(Integer.toString(i));\n break;\n }\n x /= 10;\n }while(x != 0);\n }\n\n System.out.println(builder);\n\n }\n}",
"Main"
] | import java.io.*;
public class Main {
public static void main(String args[]) throws IOException{
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
StringBuilder builder = new StringBuilder();
int data = Integer.parseInt(reader.readLine());
for(int i = 1; i <= data; i++){
if(i % 3 == 0){
builder.append(" ").append(Integer.toString(i));
continue;
}
int x = i;
do{
if(x % 10 == 3){
builder.append(" ").append(Integer.toString(i));
break;
}
x /= 10;
}while(x != 0);
}
System.out.println(builder);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
41,
13,
42,
17,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
17,
14,
2,
40,
13,
13,
3,
4,
18,
18,
13,
13,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
31,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
58,
67
],
[
51,
68
],
[
68,
69
],
[
68,
70
],
[
27,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
72,
75
],
[
71,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
6,
83
],
[
83,
84
]
] | [
"import java.io.*;\n\nclass Main{\n\t\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader br \n\t\t\t= new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tint i=1;\n\t\tint x;\n\t\twhile(true){\n\t\t\tx = i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t} else {\n\t\t\t\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t\n\t\t\tif(++i > n)break;\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t}\n\t\n}",
"import java.io.*;",
"io.*",
"java",
"class Main{\n\t\n\tpublic static void main(String args[]) throws IOException{\n\t\tBufferedReader br \n\t\t\t= new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tint i=1;\n\t\tint x;\n\t\twhile(true){\n\t\t\tx = i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t} else {\n\t\t\t\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t\n\t\t\tif(++i > n)break;\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t}\n\t\n}",
"Main",
"public static void main(String args[]) throws IOException{\n\t\tBufferedReader br \n\t\t\t= new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tint i=1;\n\t\tint x;\n\t\twhile(true){\n\t\t\tx = i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t} else {\n\t\t\t\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t\n\t\t\tif(++i > n)break;\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t}",
"main",
"{\n\t\tBufferedReader br \n\t\t\t= new BufferedReader(new InputStreamReader(System.in));\n\n\t\tint n = Integer.parseInt(br.readLine());\n\t\t\n\t\tint i=1;\n\t\tint x;\n\t\twhile(true){\n\t\t\tx = i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t} else {\n\t\t\t\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t\n\t\t\tif(++i > n)break;\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t}",
"BufferedReader br \n\t\t\t= new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int i=1;",
"i",
"1",
"int x;",
"x",
"while(true){\n\t\t\tx = i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t} else {\n\t\t\t\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t\n\t\t\tif(++i > n)break;\n\t\t}",
"true",
"{\n\t\t\tx = i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t} else {\n\t\t\t\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t} \n\t\t\t\n\t\t\tif(++i > n)break;\n\t\t}",
"x = i",
"x",
"i",
"if(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t} else {\n\t\t\t\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"x%3==0",
"x%3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"{\n\t\t\t\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"while(x != 0){\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tx/=10;\n\t\t\t\t}",
"x != 0",
"x",
"0",
"{\n\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\tx/=10;\n\t\t\t\t}",
"if(x%10==3){\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"x%10==3",
"x%10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"break;",
"x/=10",
"x",
"10",
"if(++i > n)break;",
"++i > n",
"++i",
"i",
"n",
"break;",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String args[]",
"args"
] | import java.io.*;
class Main{
public static void main(String args[]) throws IOException{
BufferedReader br
= new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
int i=1;
int x;
while(true){
x = i;
if(x%3==0){
System.out.print(" "+i);
} else {
while(x != 0){
if(x%10==3){
System.out.print(" "+i);
break;
}
x/=10;
}
}
if(++i > n)break;
}
System.out.print("\n");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
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
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
26,
28
],
[
19,
29
],
[
29,
30
],
[
30,
31
],
[
19,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
41,
47
],
[
34,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
8,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
6,
62
],
[
62,
63
],
[
0,
64
],
[
64,
65
],
[
64,
66
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n;\n\t\tn = scan.nextInt();\n\t\t\n\t\tfor(int j = 1; j < n + 1; j++) {\n\t\t\tif(j % 3 == 0||Integer.toString(j).contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n;\n\t\tn = scan.nextInt();\n\t\t\n\t\tfor(int j = 1; j < n + 1; j++) {\n\t\t\tif(j % 3 == 0||Integer.toString(j).contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n;\n\t\tn = scan.nextInt();\n\t\t\n\t\tfor(int j = 1; j < n + 1; j++) {\n\t\t\tif(j % 3 == 0||Integer.toString(j).contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n;\n\t\tn = scan.nextInt();\n\t\t\n\t\tfor(int j = 1; j < n + 1; j++) {\n\t\t\tif(j % 3 == 0||Integer.toString(j).contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n;",
"n",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int j = 1; j < n + 1; j++) {\n\t\t\tif(j % 3 == 0||Integer.toString(j).contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + j);\n\t\t\t}\n\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j < n + 1",
"j",
"n + 1",
"n",
"1",
"j++",
"j++",
"j",
"{\n\t\t\tif(j % 3 == 0||Integer.toString(j).contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + j);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(j % 3 == 0||Integer.toString(j).contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + j);\n\t\t\t}\n\t\t}",
"if(j % 3 == 0||Integer.toString(j).contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + j);\n\t\t\t}",
"j % 3 == 0||Integer.toString(j).contains(\"3\")",
"j % 3 == 0",
"j % 3",
"j",
"3",
"0",
"Integer.toString(j).contains(\"3\")",
"Integer.toString(j).contains",
"Integer.toString(j)",
"Integer.toString",
"Integer",
"j",
"\"3\"",
"{\n\t\t\t\tSystem.out.print(\" \" + j);\n\t\t\t}",
"System.out.print(\" \" + j)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + j",
"\" \"",
"j",
"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) throws java.lang.Exception\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n;\n\t\tn = scan.nextInt();\n\t\t\n\t\tfor(int j = 1; j < n + 1; j++) {\n\t\t\tif(j % 3 == 0||Integer.toString(j).contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws java.lang.Exception\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n;\n\t\tn = scan.nextInt();\n\t\t\n\t\tfor(int j = 1; j < n + 1; j++) {\n\t\t\tif(j % 3 == 0||Integer.toString(j).contains(\"3\")) {\n\t\t\t\tSystem.out.print(\" \" + j);\n\t\t\t}\n\t\t}\n\t\t\n\t\tSystem.out.println();\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws java.lang.Exception
{
Scanner scan = new Scanner(System.in);
int n;
n = scan.nextInt();
for(int j = 1; j < n + 1; j++) {
if(j % 3 == 0||Integer.toString(j).contains("3")) {
System.out.print(" " + j);
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
40,
17,
41,
13,
17,
41,
13,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
42,
17,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
42,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
30,
0,
13,
17,
14,
2,
13,
17,
30,
9,
30,
3,
14,
2,
40,
13,
13,
30,
9,
30,
3,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
116,
5
],
[
116,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
16,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
23,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
33,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
33,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
51,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
51,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
70,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
76,
85
],
[
70,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
90,
96
],
[
96,
97
],
[
47,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
99,
102
],
[
98,
103
],
[
103,
104
],
[
98,
105
],
[
105,
106
],
[
33,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
6,
113
],
[
113,
114
],
[
0,
115
],
[
115,
116
],
[
115,
117
]
] | [
"import java.io.*;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint n = -1;\n\t\tint i = 1;\n\t\tint x;\n\t\ttry{\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\t\t\twhile(true){\n\t\t\t\tx = i;\n\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}else{\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(++i <= n){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint n = -1;\n\t\tint i = 1;\n\t\tint x;\n\t\ttry{\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\t\t\twhile(true){\n\t\t\t\tx = i;\n\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}else{\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(++i <= n){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint n = -1;\n\t\tint i = 1;\n\t\tint x;\n\t\ttry{\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\t\t\twhile(true){\n\t\t\t\tx = i;\n\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}else{\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(++i <= n){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}",
"main",
"{\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint n = -1;\n\t\tint i = 1;\n\t\tint x;\n\t\ttry{\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\t\t\twhile(true){\n\t\t\t\tx = i;\n\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}else{\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(++i <= n){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"int n = -1;",
"n",
"-1",
"1",
"int i = 1;",
"i",
"1",
"int x;",
"x",
"try{\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\t\t\twhile(true){\n\t\t\t\tx = i;\n\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}else{\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(++i <= n){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}",
"catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(e);\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"{\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\t\t\twhile(true){\n\t\t\t\tx = i;\n\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}else{\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(++i <= n){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}",
"line = reader.readLine()",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"n = Integer.parseInt(line)",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"while(true){\n\t\t\t\tx = i;\n\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}else{\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(++i <= n){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"true",
"{\n\t\t\t\tx = i;\n\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}else{\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(++i <= n){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"x = i",
"x",
"i",
"if(x % 3 == 0){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}else{\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"{\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"while(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"true",
"{\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"if(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"break;",
"{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"x /= 10",
"x",
"10",
"if(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"x != 0",
"x",
"0",
"{\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}",
"continue;",
"{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"break;",
"if(++i <= n){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"++i <= n",
"++i",
"i",
"n",
"{\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"continue;",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint n = -1;\n\t\tint i = 1;\n\t\tint x;\n\t\ttry{\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\t\t\twhile(true){\n\t\t\t\tx = i;\n\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}else{\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(++i <= n){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line;\n\t\tint n = -1;\n\t\tint i = 1;\n\t\tint x;\n\t\ttry{\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\t\t\twhile(true){\n\t\t\t\tx = i;\n\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}else{\n\t\t\t\t\twhile(true){\n\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x != 0){\n\t\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(++i <= n){\n\t\t\t\t\tcontinue;\n\t\t\t\t}else{\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.print(\"\\n\");\n\t\t}catch(IOException e){\n\t\t\tSystem.out.println(e);\n\t\t}\n\t\t\n\t}\n}",
"Main"
] | import java.io.*;
public class Main{
public static void main(String[] args){
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String line;
int n = -1;
int i = 1;
int x;
try{
line = reader.readLine();
n = Integer.parseInt(line);
while(true){
x = i;
if(x % 3 == 0){
System.out.print(" "+i);
}else{
while(true){
if(x % 10 == 3){
System.out.print(" "+i);
break;
}else{
x /= 10;
if(x != 0){
continue;
}else{
break;
}
}
}
}
if(++i <= n){
continue;
}else{
break;
}
}
System.out.print("\n");
}catch(IOException e){
System.out.println(e);
}
}
} |
[
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,
38,
5,
13,
30,
4,
18,
18,
13,
13,
17,
29,
30,
42,
4,
18,
13,
30,
0,
13,
4,
18,
13,
41,
13,
20,
41,
13,
41,
13,
41,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
11,
1,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
17,
14,
2,
13,
17,
30,
3,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
133,
17
],
[
133,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
24,
26
],
[
20,
27
],
[
27,
28
],
[
20,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
32,
39
],
[
29,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
45,
51
],
[
51,
52
],
[
51,
53
],
[
45,
54
],
[
54,
55
],
[
45,
56
],
[
56,
57
],
[
45,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
45,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
79,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
99,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
111,
112
],
[
111,
113
],
[
105,
114
],
[
98,
115
],
[
115,
116
],
[
115,
117
],
[
98,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
45,
124
],
[
124,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
124,
129
],
[
18,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
] | [
"import java.io.*;\nimport java.lang.*;\nimport java.util.Scanner;\nimport java.util.Arrays;\nimport java.util.ArrayList;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString buf;\n\t\ttry {\n\t\t\twhile(br.ready()){\n\t\t\t\tbuf = br.readLine();\n\t\t\t\tScanner scanner = new Scanner(buf);\n\t\t\t\tint i, x, n = scanner.nextInt();\n\n\t\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"Read error.\");\n\t\t\treturn;\n\t\t}\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString buf;\n\t\ttry {\n\t\t\twhile(br.ready()){\n\t\t\t\tbuf = br.readLine();\n\t\t\t\tScanner scanner = new Scanner(buf);\n\t\t\t\tint i, x, n = scanner.nextInt();\n\n\t\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"Read error.\");\n\t\t\treturn;\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString buf;\n\t\ttry {\n\t\t\twhile(br.ready()){\n\t\t\t\tbuf = br.readLine();\n\t\t\t\tScanner scanner = new Scanner(buf);\n\t\t\t\tint i, x, n = scanner.nextInt();\n\n\t\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"Read error.\");\n\t\t\treturn;\n\t\t}\n\t}",
"main",
"{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString buf;\n\t\ttry {\n\t\t\twhile(br.ready()){\n\t\t\t\tbuf = br.readLine();\n\t\t\t\tScanner scanner = new Scanner(buf);\n\t\t\t\tint i, x, n = scanner.nextInt();\n\n\t\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"Read error.\");\n\t\t\treturn;\n\t\t}\n\t}",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"String buf;",
"buf",
"try {\n\t\t\twhile(br.ready()){\n\t\t\t\tbuf = br.readLine();\n\t\t\t\tScanner scanner = new Scanner(buf);\n\t\t\t\tint i, x, n = scanner.nextInt();\n\n\t\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"Read error.\");\n\t\t\treturn;\n\t\t}",
"catch(IOException e) {\n\t\t\tSystem.out.println(\"Read error.\");\n\t\t\treturn;\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(\"Read error.\");\n\t\t\treturn;\n\t\t}",
"System.out.println(\"Read error.\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"Read error.\"",
"return;",
"{\n\t\t\twhile(br.ready()){\n\t\t\t\tbuf = br.readLine();\n\t\t\t\tScanner scanner = new Scanner(buf);\n\t\t\t\tint i, x, n = scanner.nextInt();\n\n\t\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}",
"while(br.ready()){\n\t\t\t\tbuf = br.readLine();\n\t\t\t\tScanner scanner = new Scanner(buf);\n\t\t\t\tint i, x, n = scanner.nextInt();\n\n\t\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}",
"br.ready()",
"br.ready",
"br",
"{\n\t\t\t\tbuf = br.readLine();\n\t\t\t\tScanner scanner = new Scanner(buf);\n\t\t\t\tint i, x, n = scanner.nextInt();\n\n\t\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}",
"buf = br.readLine()",
"buf",
"br.readLine()",
"br.readLine",
"br",
"Scanner scanner = new Scanner(buf);",
"scanner",
"new Scanner(buf)",
"int i",
"i",
"x",
"x",
"n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for(i = 1; i <= n; i++){\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"i = 1;",
"i = 1",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"x = i",
"x",
"i",
"if(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"for(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
";",
"{\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"{\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"if(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"break;",
"x /= 10",
"x",
"10",
"if(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"x == 0",
"x",
"0",
"{\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"break;",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString buf;\n\t\ttry {\n\t\t\twhile(br.ready()){\n\t\t\t\tbuf = br.readLine();\n\t\t\t\tScanner scanner = new Scanner(buf);\n\t\t\t\tint i, x, n = scanner.nextInt();\n\n\t\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"Read error.\");\n\t\t\treturn;\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\tString buf;\n\t\ttry {\n\t\t\twhile(br.ready()){\n\t\t\t\tbuf = br.readLine();\n\t\t\t\tScanner scanner = new Scanner(buf);\n\t\t\t\tint i, x, n = scanner.nextInt();\n\n\t\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\t\tx = i;\n\t\t\t\t\tif(x % 3 == 0){\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t} else{\n\t\t\t\t\t\tfor(;;){\n\t\t\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tSystem.out.print(\"\\n\");\n\t\t\t}\n\t\t}\n\t\tcatch(IOException e) {\n\t\t\tSystem.out.println(\"Read error.\");\n\t\t\treturn;\n\t\t}\n\t}\n}",
"Main"
] | import java.io.*;
import java.lang.*;
import java.util.Scanner;
import java.util.Arrays;
import java.util.ArrayList;
public class Main {
public static void main(String[] args){
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
String buf;
try {
while(br.ready()){
buf = br.readLine();
Scanner scanner = new Scanner(buf);
int i, x, n = scanner.nextInt();
for(i = 1; i <= n; i++){
x = i;
if(x % 3 == 0){
System.out.print(" " + i);
} else{
for(;;){
if(x % 10 == 3){
System.out.print(" " + i);
break;
}
x /= 10;
if(x == 0){
break;
}
}
}
}
System.out.print("\n");
}
}
catch(IOException e) {
System.out.println("Read error.");
return;
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
13,
30,
4,
18,
13,
17,
4,
18,
13,
13,
29,
4,
18,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
29,
17,
29,
4,
13,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
29,
17,
0,
13,
17,
14,
2,
13,
17,
30,
29,
4,
13,
13,
29,
17,
23,
13,
12,
13,
30,
41,
13,
4,
13,
4,
18,
18,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
38,
30,
14,
2,
13,
17,
30,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
10,
6,
13
] | [
[
0,
1
],
[
135,
2
],
[
135,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
5,
12
],
[
12,
13
],
[
12,
14
],
[
5,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
15,
20
],
[
20,
21
],
[
20,
22
],
[
15,
23
],
[
23,
24
],
[
24,
25
],
[
15,
26
],
[
27,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
32,
37
],
[
37,
38
],
[
38,
39
],
[
37,
40
],
[
5,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
3,
45
],
[
45,
46
],
[
135,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
49,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
47,
63
],
[
63,
64
],
[
135,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
67,
77
],
[
77,
78
],
[
77,
79
],
[
67,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
67,
89
],
[
89,
90
],
[
65,
91
],
[
91,
92
],
[
135,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
95,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
93,
108
],
[
108,
109
],
[
135,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
112,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
118,
122
],
[
122,
123
],
[
123,
124
],
[
124,
125
],
[
116,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
126,
130
],
[
130,
131
],
[
131,
132
],
[
132,
133
],
[
0,
134
],
[
134,
135
],
[
134,
136
]
] | [
"public class Main {\n\n protected static String calc(String input) {\n final int data = Integer.parseInt(input);\n\n StringBuilder sb = new StringBuilder();\n\n for (int i = 1; i <= data; i++) {\n if (check(i)) {\n sb.append(' ');\n sb.append(i);\n }\n }\n\n return sb.toString();\n }\n\n static boolean check(int x) {\n if (x % 3 == 0) {\n return true;\n }\n return check0(x);\n }\n\n static boolean check0(int x) {\n if (x % 10 == 3) {\n return true;\n }\n x /= 10;\n if (x > 0) {\n return check0(x);\n }\n return false;\n }\n\n public static void main(String[] args) {\n final String line = readLine();\n System.out.println(calc(line));\n }\n\n private static String readLine() {\n java.util.Scanner s = null;\n try {\n s = new java.util.Scanner(System.in);\n return s.nextLine();\n } finally {\n if (s != null) {\n s.close();\n }\n }\n }\n}",
"public class Main {\n\n protected static String calc(String input) {\n final int data = Integer.parseInt(input);\n\n StringBuilder sb = new StringBuilder();\n\n for (int i = 1; i <= data; i++) {\n if (check(i)) {\n sb.append(' ');\n sb.append(i);\n }\n }\n\n return sb.toString();\n }\n\n static boolean check(int x) {\n if (x % 3 == 0) {\n return true;\n }\n return check0(x);\n }\n\n static boolean check0(int x) {\n if (x % 10 == 3) {\n return true;\n }\n x /= 10;\n if (x > 0) {\n return check0(x);\n }\n return false;\n }\n\n public static void main(String[] args) {\n final String line = readLine();\n System.out.println(calc(line));\n }\n\n private static String readLine() {\n java.util.Scanner s = null;\n try {\n s = new java.util.Scanner(System.in);\n return s.nextLine();\n } finally {\n if (s != null) {\n s.close();\n }\n }\n }\n}",
"Main",
"protected static String calc(String input) {\n final int data = Integer.parseInt(input);\n\n StringBuilder sb = new StringBuilder();\n\n for (int i = 1; i <= data; i++) {\n if (check(i)) {\n sb.append(' ');\n sb.append(i);\n }\n }\n\n return sb.toString();\n }",
"calc",
"{\n final int data = Integer.parseInt(input);\n\n StringBuilder sb = new StringBuilder();\n\n for (int i = 1; i <= data; i++) {\n if (check(i)) {\n sb.append(' ');\n sb.append(i);\n }\n }\n\n return sb.toString();\n }",
"final int data = Integer.parseInt(input);",
"data",
"Integer.parseInt(input)",
"Integer.parseInt",
"Integer",
"input",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for (int i = 1; i <= data; i++) {\n if (check(i)) {\n sb.append(' ');\n sb.append(i);\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= data",
"i",
"data",
"i++",
"i++",
"i",
"{\n if (check(i)) {\n sb.append(' ');\n sb.append(i);\n }\n }",
"{\n if (check(i)) {\n sb.append(' ');\n sb.append(i);\n }\n }",
"if (check(i)) {\n sb.append(' ');\n sb.append(i);\n }",
"check(i)",
"check",
"i",
"{\n sb.append(' ');\n sb.append(i);\n }",
"sb.append(' ')",
"sb.append",
"sb",
"' '",
"sb.append(i)",
"sb.append",
"sb",
"i",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"String input",
"input",
"static boolean check(int x) {\n if (x % 3 == 0) {\n return true;\n }\n return check0(x);\n }",
"check",
"{\n if (x % 3 == 0) {\n return true;\n }\n return check0(x);\n }",
"if (x % 3 == 0) {\n return true;\n }",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n return true;\n }",
"return true;",
"true",
"return check0(x);",
"check0(x)",
"check0",
"x",
"int x",
"x",
"static boolean check0(int x) {\n if (x % 10 == 3) {\n return true;\n }\n x /= 10;\n if (x > 0) {\n return check0(x);\n }\n return false;\n }",
"check0",
"{\n if (x % 10 == 3) {\n return true;\n }\n x /= 10;\n if (x > 0) {\n return check0(x);\n }\n return false;\n }",
"if (x % 10 == 3) {\n return true;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n return true;\n }",
"return true;",
"true",
"x /= 10",
"x",
"10",
"if (x > 0) {\n return check0(x);\n }",
"x > 0",
"x",
"0",
"{\n return check0(x);\n }",
"return check0(x);",
"check0(x)",
"check0",
"x",
"return false;",
"false",
"int x",
"x",
"public static void main(String[] args) {\n final String line = readLine();\n System.out.println(calc(line));\n }",
"main",
"{\n final String line = readLine();\n System.out.println(calc(line));\n }",
"final String line = readLine();",
"line",
"readLine()",
"readLine",
"System.out.println(calc(line))",
"System.out.println",
"System.out",
"System",
"System.out",
"calc(line)",
"calc",
"line",
"String[] args",
"args",
"private static String readLine() {\n java.util.Scanner s = null;\n try {\n s = new java.util.Scanner(System.in);\n return s.nextLine();\n } finally {\n if (s != null) {\n s.close();\n }\n }\n }",
"readLine",
"{\n java.util.Scanner s = null;\n try {\n s = new java.util.Scanner(System.in);\n return s.nextLine();\n } finally {\n if (s != null) {\n s.close();\n }\n }\n }",
"java.util.Scanner s = null;",
"s",
"null",
"try {\n s = new java.util.Scanner(System.in);\n return s.nextLine();\n } finally {\n if (s != null) {\n s.close();\n }\n }",
"{\n if (s != null) {\n s.close();\n }\n }",
"if (s != null) {\n s.close();\n }",
"s != null",
"s",
"null",
"{\n s.close();\n }",
"s.close()",
"s.close",
"s",
"{\n s = new java.util.Scanner(System.in);\n return s.nextLine();\n }",
"s = new java.util.Scanner(System.in)",
"s",
"new java.util.Scanner(System.in)",
"return s.nextLine();",
"s.nextLine()",
"s.nextLine",
"s",
"public class Main {\n\n protected static String calc(String input) {\n final int data = Integer.parseInt(input);\n\n StringBuilder sb = new StringBuilder();\n\n for (int i = 1; i <= data; i++) {\n if (check(i)) {\n sb.append(' ');\n sb.append(i);\n }\n }\n\n return sb.toString();\n }\n\n static boolean check(int x) {\n if (x % 3 == 0) {\n return true;\n }\n return check0(x);\n }\n\n static boolean check0(int x) {\n if (x % 10 == 3) {\n return true;\n }\n x /= 10;\n if (x > 0) {\n return check0(x);\n }\n return false;\n }\n\n public static void main(String[] args) {\n final String line = readLine();\n System.out.println(calc(line));\n }\n\n private static String readLine() {\n java.util.Scanner s = null;\n try {\n s = new java.util.Scanner(System.in);\n return s.nextLine();\n } finally {\n if (s != null) {\n s.close();\n }\n }\n }\n}",
"public class Main {\n\n protected static String calc(String input) {\n final int data = Integer.parseInt(input);\n\n StringBuilder sb = new StringBuilder();\n\n for (int i = 1; i <= data; i++) {\n if (check(i)) {\n sb.append(' ');\n sb.append(i);\n }\n }\n\n return sb.toString();\n }\n\n static boolean check(int x) {\n if (x % 3 == 0) {\n return true;\n }\n return check0(x);\n }\n\n static boolean check0(int x) {\n if (x % 10 == 3) {\n return true;\n }\n x /= 10;\n if (x > 0) {\n return check0(x);\n }\n return false;\n }\n\n public static void main(String[] args) {\n final String line = readLine();\n System.out.println(calc(line));\n }\n\n private static String readLine() {\n java.util.Scanner s = null;\n try {\n s = new java.util.Scanner(System.in);\n return s.nextLine();\n } finally {\n if (s != null) {\n s.close();\n }\n }\n }\n}",
"Main"
] | public class Main {
protected static String calc(String input) {
final int data = Integer.parseInt(input);
StringBuilder sb = new StringBuilder();
for (int i = 1; i <= data; i++) {
if (check(i)) {
sb.append(' ');
sb.append(i);
}
}
return sb.toString();
}
static boolean check(int x) {
if (x % 3 == 0) {
return true;
}
return check0(x);
}
static boolean check0(int x) {
if (x % 10 == 3) {
return true;
}
x /= 10;
if (x > 0) {
return check0(x);
}
return false;
}
public static void main(String[] args) {
final String line = readLine();
System.out.println(calc(line));
}
private static String readLine() {
java.util.Scanner s = null;
try {
s = new java.util.Scanner(System.in);
return s.nextLine();
} finally {
if (s != null) {
s.close();
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
11,
1,
41,
13,
13,
2,
13,
17,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
17,
4,
18,
18,
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
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
30,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
62,
71
],
[
55,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\n\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \t\n \tint end_val = scan.nextInt();//end\n\n\t\tfor(int cnt = 1; cnt <= end_val; cnt++){//1~end?????§?????°?????????3???????????°?????¨3????????°?????¢???\n\t\t\tif(cnt % 3 == 0){//3???????????°?????§?????????\n\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t}else{\n\t\t\t\tfor(int i = cnt; i > 0;){//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t scan.close();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \t\n \tint end_val = scan.nextInt();//end\n\n\t\tfor(int cnt = 1; cnt <= end_val; cnt++){//1~end?????§?????°?????????3???????????°?????¨3????????°?????¢???\n\t\t\tif(cnt % 3 == 0){//3???????????°?????§?????????\n\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t}else{\n\t\t\t\tfor(int i = cnt; i > 0;){//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t scan.close();\n }\n}",
"Main",
"public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \t\n \tint end_val = scan.nextInt();//end\n\n\t\tfor(int cnt = 1; cnt <= end_val; cnt++){//1~end?????§?????°?????????3???????????°?????¨3????????°?????¢???\n\t\t\tif(cnt % 3 == 0){//3???????????°?????§?????????\n\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t}else{\n\t\t\t\tfor(int i = cnt; i > 0;){//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t scan.close();\n }",
"main",
"{\n \tScanner scan = new Scanner(System.in);\n \t\n \tint end_val = scan.nextInt();//end\n\n\t\tfor(int cnt = 1; cnt <= end_val; cnt++){//1~end?????§?????°?????????3???????????°?????¨3????????°?????¢???\n\t\t\tif(cnt % 3 == 0){//3???????????°?????§?????????\n\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t}else{\n\t\t\t\tfor(int i = cnt; i > 0;){//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t scan.close();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int end_val = scan.nextInt();",
"end_val",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int cnt = 1; cnt <= end_val; cnt++){//1~end?????§?????°?????????3???????????°?????¨3????????°?????¢???\n\t\t\tif(cnt % 3 == 0){//3???????????°?????§?????????\n\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t}else{\n\t\t\t\tfor(int i = cnt; i > 0;){//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int cnt = 1;",
"int cnt = 1;",
"cnt",
"1",
"cnt <= end_val",
"cnt",
"end_val",
"cnt++",
"cnt++",
"cnt",
"{//1~end?????§?????°?????????3???????????°?????¨3????????°?????¢???\n\t\t\tif(cnt % 3 == 0){//3???????????°?????§?????????\n\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t}else{\n\t\t\t\tfor(int i = cnt; i > 0;){//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{//1~end?????§?????°?????????3???????????°?????¨3????????°?????¢???\n\t\t\tif(cnt % 3 == 0){//3???????????°?????§?????????\n\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t}else{\n\t\t\t\tfor(int i = cnt; i > 0;){//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if(cnt % 3 == 0){//3???????????°?????§?????????\n\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t}else{\n\t\t\t\tfor(int i = cnt; i > 0;){//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}\n\t\t\t}",
"cnt % 3 == 0",
"cnt % 3",
"cnt",
"3",
"0",
"{//3???????????°?????§?????????\n\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t}",
"System.out.print(\" \" + cnt)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + cnt",
"\" \"",
"cnt",
"{\n\t\t\t\tfor(int i = cnt; i > 0;){//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}\n\t\t\t}",
"for(int i = cnt; i > 0;){//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}",
"int i = cnt;",
"int i = cnt;",
"i",
"cnt",
"i > 0",
"i",
"0",
"{//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}",
"{//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}",
"if(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"{//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }",
"System.out.print(\" \" + cnt)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + cnt",
"\" \"",
"cnt",
"break;",
"i /= 10",
"i",
"10",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main{\n\n\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \t\n \tint end_val = scan.nextInt();//end\n\n\t\tfor(int cnt = 1; cnt <= end_val; cnt++){//1~end?????§?????°?????????3???????????°?????¨3????????°?????¢???\n\t\t\tif(cnt % 3 == 0){//3???????????°?????§?????????\n\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t}else{\n\t\t\t\tfor(int i = cnt; i > 0;){//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t scan.close();\n }\n}",
"public class Main{\n\n\n public static void main(String[] args){\n \tScanner scan = new Scanner(System.in);\n \t\n \tint end_val = scan.nextInt();//end\n\n\t\tfor(int cnt = 1; cnt <= end_val; cnt++){//1~end?????§?????°?????????3???????????°?????¨3????????°?????¢???\n\t\t\tif(cnt % 3 == 0){//3???????????°?????§?????????\n\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t}else{\n\t\t\t\tfor(int i = cnt; i > 0;){//i????¨??????¨\n\t\t\t\t\tif(i % 10 == 3){//3???????????°?????§?????????????????§??????\n\t\t\t\t\t\t\tSystem.out.print(\" \" + cnt);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t }\n\t\t\t\t\t i /= 10;//??????1????????????\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t scan.close();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int end_val = scan.nextInt();//end
for(int cnt = 1; cnt <= end_val; cnt++){//1~end?????§?????°?????????3???????????°?????¨3????????°?????¢???
if(cnt % 3 == 0){//3???????????°?????§?????????
System.out.print(" " + cnt);
}else{
for(int i = cnt; i > 0;){//i????¨??????¨
if(i % 10 == 3){//3???????????°?????§?????????????????§??????
System.out.print(" " + cnt);
break;
}
i /= 10;//??????1????????????
}
}
}
System.out.println();
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
29,
5
],
[
29,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
6,
26
],
[
26,
27
],
[
0,
28
],
[
28,
29
],
[
28,
30
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int max = sc.nextInt();\n\n main:\n for(int i = 1; i <= max; i++){\n //multiples of 3\n if(i % 3 == 0){\n sb.append(\" \" + i);\n continue main;\n }\n\n int keta = (int)Math.log10(i);\n int tmp = i;\n\n for(int j = keta; j >= 0; j--){\n int zeros = (int)Math.pow(10 , j);\n int kurai = tmp/zeros;\n \n if(kurai == 3){\n sb.append(\" \" + i);\n continue main;\n }\n\n tmp -= zeros*kurai;\n }\n \n }\n\n System.out.println(sb);\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 StringBuilder sb = new StringBuilder();\n int max = sc.nextInt();\n\n main:\n for(int i = 1; i <= max; i++){\n //multiples of 3\n if(i % 3 == 0){\n sb.append(\" \" + i);\n continue main;\n }\n\n int keta = (int)Math.log10(i);\n int tmp = i;\n\n for(int j = keta; j >= 0; j--){\n int zeros = (int)Math.pow(10 , j);\n int kurai = tmp/zeros;\n \n if(kurai == 3){\n sb.append(\" \" + i);\n continue main;\n }\n\n tmp -= zeros*kurai;\n }\n \n }\n\n System.out.println(sb);\n }\n \n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int max = sc.nextInt();\n\n main:\n for(int i = 1; i <= max; i++){\n //multiples of 3\n if(i % 3 == 0){\n sb.append(\" \" + i);\n continue main;\n }\n\n int keta = (int)Math.log10(i);\n int tmp = i;\n\n for(int j = keta; j >= 0; j--){\n int zeros = (int)Math.pow(10 , j);\n int kurai = tmp/zeros;\n \n if(kurai == 3){\n sb.append(\" \" + i);\n continue main;\n }\n\n tmp -= zeros*kurai;\n }\n \n }\n\n System.out.println(sb);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int max = sc.nextInt();\n\n main:\n for(int i = 1; i <= max; i++){\n //multiples of 3\n if(i % 3 == 0){\n sb.append(\" \" + i);\n continue main;\n }\n\n int keta = (int)Math.log10(i);\n int tmp = i;\n\n for(int j = keta; j >= 0; j--){\n int zeros = (int)Math.pow(10 , j);\n int kurai = tmp/zeros;\n \n if(kurai == 3){\n sb.append(\" \" + i);\n continue main;\n }\n\n tmp -= zeros*kurai;\n }\n \n }\n\n System.out.println(sb);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int max = sc.nextInt();",
"max",
"sc.nextInt()",
"sc.nextInt",
"sc",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int max = sc.nextInt();\n\n main:\n for(int i = 1; i <= max; i++){\n //multiples of 3\n if(i % 3 == 0){\n sb.append(\" \" + i);\n continue main;\n }\n\n int keta = (int)Math.log10(i);\n int tmp = i;\n\n for(int j = keta; j >= 0; j--){\n int zeros = (int)Math.pow(10 , j);\n int kurai = tmp/zeros;\n \n if(kurai == 3){\n sb.append(\" \" + i);\n continue main;\n }\n\n tmp -= zeros*kurai;\n }\n \n }\n\n System.out.println(sb);\n }\n \n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int max = sc.nextInt();\n\n main:\n for(int i = 1; i <= max; i++){\n //multiples of 3\n if(i % 3 == 0){\n sb.append(\" \" + i);\n continue main;\n }\n\n int keta = (int)Math.log10(i);\n int tmp = i;\n\n for(int j = keta; j >= 0; j--){\n int zeros = (int)Math.pow(10 , j);\n int kurai = tmp/zeros;\n \n if(kurai == 3){\n sb.append(\" \" + i);\n continue main;\n }\n\n tmp -= zeros*kurai;\n }\n \n }\n\n System.out.println(sb);\n }\n \n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
int max = sc.nextInt();
main:
for(int i = 1; i <= max; i++){
//multiples of 3
if(i % 3 == 0){
sb.append(" " + i);
continue main;
}
int keta = (int)Math.log10(i);
int tmp = i;
for(int j = keta; j >= 0; j--){
int zeros = (int)Math.pow(10 , j);
int kurai = tmp/zeros;
if(kurai == 3){
sb.append(" " + i);
continue main;
}
tmp -= zeros*kurai;
}
}
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
106,
8
],
[
106,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
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
],
[
33,
36
],
[
22,
37
],
[
37,
38
],
[
22,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
39,
47
],
[
47,
48
],
[
48,
49
],
[
39,
50
],
[
51,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
55,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
82,
91
],
[
75,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
22,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
9,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\n\t\ttry{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n String input = buf.readLine();\n//\tString[] strAry = input.split(\" \");\n// int H = Integer.parseInt(strAry[0]);\n// int W = Integer.parseInt(strAry[1]);\n\t\nint max = Integer.parseInt(input);\nint x;\n\nfor(int i =3; i <= max; i++){\n x = i;\n\tif(i%3 == 0){\n\t\tSystem.out.printf(\" \" + i);\n\t}else{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}\n}\nSystem.out.printf(\"\\n\");\n\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }\n }",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\n\t\ttry{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n String input = buf.readLine();\n//\tString[] strAry = input.split(\" \");\n// int H = Integer.parseInt(strAry[0]);\n// int W = Integer.parseInt(strAry[1]);\n\t\nint max = Integer.parseInt(input);\nint x;\n\nfor(int i =3; i <= max; i++){\n x = i;\n\tif(i%3 == 0){\n\t\tSystem.out.printf(\" \" + i);\n\t}else{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}\n}\nSystem.out.printf(\"\\n\");\n\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }\n }",
"Main",
"public static void main(String[] args) throws Exception {\n\t\n\t\ttry{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n String input = buf.readLine();\n//\tString[] strAry = input.split(\" \");\n// int H = Integer.parseInt(strAry[0]);\n// int W = Integer.parseInt(strAry[1]);\n\t\nint max = Integer.parseInt(input);\nint x;\n\nfor(int i =3; i <= max; i++){\n x = i;\n\tif(i%3 == 0){\n\t\tSystem.out.printf(\" \" + i);\n\t}else{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}\n}\nSystem.out.printf(\"\\n\");\n\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }",
"main",
"{\n\t\n\t\ttry{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n String input = buf.readLine();\n//\tString[] strAry = input.split(\" \");\n// int H = Integer.parseInt(strAry[0]);\n// int W = Integer.parseInt(strAry[1]);\n\t\nint max = Integer.parseInt(input);\nint x;\n\nfor(int i =3; i <= max; i++){\n x = i;\n\tif(i%3 == 0){\n\t\tSystem.out.printf(\" \" + i);\n\t}else{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}\n}\nSystem.out.printf(\"\\n\");\n\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }",
"try{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n String input = buf.readLine();\n//\tString[] strAry = input.split(\" \");\n// int H = Integer.parseInt(strAry[0]);\n// int W = Integer.parseInt(strAry[1]);\n\t\nint max = Integer.parseInt(input);\nint x;\n\nfor(int i =3; i <= max; i++){\n x = i;\n\tif(i%3 == 0){\n\t\tSystem.out.printf(\" \" + i);\n\t}else{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}\n}\nSystem.out.printf(\"\\n\");\n\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}",
"catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}",
"Exception e",
"{\n\n\tSystem.out.println(\"????????????\");\n\t\n}",
"System.out.println(\"????????????\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"????????????\"",
"{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n String input = buf.readLine();\n//\tString[] strAry = input.split(\" \");\n// int H = Integer.parseInt(strAry[0]);\n// int W = Integer.parseInt(strAry[1]);\n\t\nint max = Integer.parseInt(input);\nint x;\n\nfor(int i =3; i <= max; i++){\n x = i;\n\tif(i%3 == 0){\n\t\tSystem.out.printf(\" \" + i);\n\t}else{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}\n}\nSystem.out.printf(\"\\n\");\n\n}",
"BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));",
"buf",
"new BufferedReader(new InputStreamReader(System.in))",
"String input = buf.readLine();",
"input",
"buf.readLine()",
"buf.readLine",
"buf",
"int max = Integer.parseInt(input);",
"max",
"Integer.parseInt(input)",
"Integer.parseInt",
"Integer",
"input",
"int x;",
"x",
"for(int i =3; i <= max; i++){\n x = i;\n\tif(i%3 == 0){\n\t\tSystem.out.printf(\" \" + i);\n\t}else{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}\n}",
"int i =3;",
"int i =3;",
"i",
"3",
"i <= max",
"i",
"max",
"i++",
"i++",
"i",
"{\n x = i;\n\tif(i%3 == 0){\n\t\tSystem.out.printf(\" \" + i);\n\t}else{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}\n}",
"{\n x = i;\n\tif(i%3 == 0){\n\t\tSystem.out.printf(\" \" + i);\n\t}else{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}\n}",
"x = i",
"x",
"i",
"if(i%3 == 0){\n\t\tSystem.out.printf(\" \" + i);\n\t}else{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}",
"i%3 == 0",
"i%3",
"i",
"3",
"0",
"{\n\t\tSystem.out.printf(\" \" + i);\n\t}",
"System.out.printf(\" \" + i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}",
"while(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}",
"x > 1",
"x",
"1",
"{\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}",
"if(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}",
"x%10 == 3",
"x%10",
"x",
"10",
"3",
"{\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}",
"System.out.printf(\" \" + i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"break;",
"x = x / 10",
"x",
"x / 10",
"x",
"10",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\n\t\ttry{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n String input = buf.readLine();\n//\tString[] strAry = input.split(\" \");\n// int H = Integer.parseInt(strAry[0]);\n// int W = Integer.parseInt(strAry[1]);\n\t\nint max = Integer.parseInt(input);\nint x;\n\nfor(int i =3; i <= max; i++){\n x = i;\n\tif(i%3 == 0){\n\t\tSystem.out.printf(\" \" + i);\n\t}else{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}\n}\nSystem.out.printf(\"\\n\");\n\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }\n }",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\n\t\ttry{\n\tBufferedReader buf = new BufferedReader(new InputStreamReader(System.in));\n String input = buf.readLine();\n//\tString[] strAry = input.split(\" \");\n// int H = Integer.parseInt(strAry[0]);\n// int W = Integer.parseInt(strAry[1]);\n\t\nint max = Integer.parseInt(input);\nint x;\n\nfor(int i =3; i <= max; i++){\n x = i;\n\tif(i%3 == 0){\n\t\tSystem.out.printf(\" \" + i);\n\t}else{\n\twhile(x > 1){\n\t\tif(x%10 == 3){\n\t\tSystem.out.printf(\" \" + i);\n\t\tbreak;\n\t}\n\t\tx = x / 10;\n\t}\n\t\n\t}\n}\nSystem.out.printf(\"\\n\");\n\n} catch (Exception e) {\n\n\tSystem.out.println(\"????????????\");\n\t\n}\n\t\t }\n }",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
try{
BufferedReader buf = new BufferedReader(new InputStreamReader(System.in));
String input = buf.readLine();
// String[] strAry = input.split(" ");
// int H = Integer.parseInt(strAry[0]);
// int W = Integer.parseInt(strAry[1]);
int max = Integer.parseInt(input);
int x;
for(int i =3; i <= max; i++){
x = i;
if(i%3 == 0){
System.out.printf(" " + i);
}else{
while(x > 1){
if(x%10 == 3){
System.out.printf(" " + i);
break;
}
x = x / 10;
}
}
}
System.out.printf("\n");
} catch (Exception e) {
System.out.println("????????????");
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
3,
30,
0,
13,
2,
13,
17,
29,
13,
23,
13,
23,
13,
12,
13,
30,
41,
13,
41,
13,
17,
41,
13,
41,
13,
20,
0,
13,
4,
18,
13,
42,
2,
13,
13,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
30,
0,
13,
4,
13,
13,
13,
40,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
9,
13
],
[
13,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
15,
19
],
[
14,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
21,
27
],
[
20,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
32,
34
],
[
8,
35
],
[
35,
36
],
[
6,
37
],
[
37,
38
],
[
6,
39
],
[
39,
40
],
[
4,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
46,
48
],
[
43,
49
],
[
49,
50
],
[
43,
51
],
[
51,
52
],
[
51,
53
],
[
43,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
43,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
74,
80
],
[
67,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
84,
87
],
[
63,
88
],
[
88,
89
],
[
43,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
43,
95
],
[
95,
96
],
[
96,
97
],
[
41,
98
],
[
98,
99
]
] | [
"import java.util.Scanner;\n\nclass Main{\n\n/*\tstatic boolean EndChk(int i, int n)\n\t{\n\t\tSystem.out.printf(\" %d\", i++);\n\n\t\treturn ( (i<=n) ? true: false);\n\t}*/\n\n\tstatic int Include3(int x,int i)\n\t{\n\t\twhile(x != 0)\n\t\t{\n\t\t\tif(x%10 == 3)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = x/10;//goto EndChk\n\t\t\t}\n\t\t}\n\n\t\treturn x;\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tint n,i=1,x;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tn = scan.nextInt();\n\n\t\twhile(i <= n)\n\t\t{\n\t\t\tx = i;\n\n\t\t\tif(x%3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = Include3(x,i);//x???10??§?????£????????????3??????????????????0?????????\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\n\t\tSystem.out.println();\n\n\tscan.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n\n/*\tstatic boolean EndChk(int i, int n)\n\t{\n\t\tSystem.out.printf(\" %d\", i++);\n\n\t\treturn ( (i<=n) ? true: false);\n\t}*/\n\n\tstatic int Include3(int x,int i)\n\t{\n\t\twhile(x != 0)\n\t\t{\n\t\t\tif(x%10 == 3)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = x/10;//goto EndChk\n\t\t\t}\n\t\t}\n\n\t\treturn x;\n\t}\n\n\tpublic static void main(String[] args) {\n\n\t\tint n,i=1,x;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tn = scan.nextInt();\n\n\t\twhile(i <= n)\n\t\t{\n\t\t\tx = i;\n\n\t\t\tif(x%3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = Include3(x,i);//x???10??§?????£????????????3??????????????????0?????????\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\n\t\tSystem.out.println();\n\n\tscan.close();\n\t}\n}",
"Main",
"static int Include3(int x,int i)\n\t{\n\t\twhile(x != 0)\n\t\t{\n\t\t\tif(x%10 == 3)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = x/10;//goto EndChk\n\t\t\t}\n\t\t}\n\n\t\treturn x;\n\t}",
"Include3",
"{\n\t\twhile(x != 0)\n\t\t{\n\t\t\tif(x%10 == 3)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = x/10;//goto EndChk\n\t\t\t}\n\t\t}\n\n\t\treturn x;\n\t}",
"while(x != 0)\n\t\t{\n\t\t\tif(x%10 == 3)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = x/10;//goto EndChk\n\t\t\t}\n\t\t}",
"x != 0",
"x",
"0",
"{\n\t\t\tif(x%10 == 3)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = x/10;//goto EndChk\n\t\t\t}\n\t\t}",
"if(x%10 == 3)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = x/10;//goto EndChk\n\t\t\t}",
"x%10 == 3",
"x%10",
"x",
"10",
"3",
"{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"break;",
"{\n\t\t\t\tx = x/10;//goto EndChk\n\t\t\t}",
"x = x/10",
"x",
"x/10",
"x",
"10",
"return x;",
"x",
"int x",
"x",
"int i",
"i",
"public static void main(String[] args) {\n\n\t\tint n,i=1,x;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tn = scan.nextInt();\n\n\t\twhile(i <= n)\n\t\t{\n\t\t\tx = i;\n\n\t\t\tif(x%3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = Include3(x,i);//x???10??§?????£????????????3??????????????????0?????????\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\n\t\tSystem.out.println();\n\n\tscan.close();\n\t}",
"main",
"{\n\n\t\tint n,i=1,x;\n\n\t\tScanner scan = new Scanner(System.in);\n\n\t\tn = scan.nextInt();\n\n\t\twhile(i <= n)\n\t\t{\n\t\t\tx = i;\n\n\t\t\tif(x%3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = Include3(x,i);//x???10??§?????£????????????3??????????????????0?????????\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\n\t\tSystem.out.println();\n\n\tscan.close();\n\t}",
"int n",
"n",
"i=1",
"i",
"1",
"x;",
"x",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"while(i <= n)\n\t\t{\n\t\t\tx = i;\n\n\t\t\tif(x%3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = Include3(x,i);//x???10??§?????£????????????3??????????????????0?????????\n\t\t\t}\n\n\t\t\ti++;\n\t\t}",
"i <= n",
"i",
"n",
"{\n\t\t\tx = i;\n\n\t\t\tif(x%3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = Include3(x,i);//x???10??§?????£????????????3??????????????????0?????????\n\t\t\t}\n\n\t\t\ti++;\n\t\t}",
"x = i",
"x",
"i",
"if(x%3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\telse\n\t\t\t{\n\t\t\t\tx = Include3(x,i);//x???10??§?????£????????????3??????????????????0?????????\n\t\t\t}",
"x%3 == 0",
"x%3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"{\n\t\t\t\tx = Include3(x,i);//x???10??§?????£????????????3??????????????????0?????????\n\t\t\t}",
"x = Include3(x,i)",
"x",
"Include3(x,i)",
"Include3",
"x",
"i",
"i++",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
/* static boolean EndChk(int i, int n)
{
System.out.printf(" %d", i++);
return ( (i<=n) ? true: false);
}*/
static int Include3(int x,int i)
{
while(x != 0)
{
if(x%10 == 3)
{
System.out.printf(" %d", i);
break;
}
else
{
x = x/10;//goto EndChk
}
}
return x;
}
public static void main(String[] args) {
int n,i=1,x;
Scanner scan = new Scanner(System.in);
n = scan.nextInt();
while(i <= n)
{
x = i;
if(x%3 == 0)
{
System.out.printf(" %d", i);
}
else
{
x = Include3(x,i);//x???10??§?????£????????????3??????????????????0?????????
}
i++;
}
System.out.println();
scan.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
30,
41,
13,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
3,
0,
13,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
35,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
33,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
55,
56
],
[
55,
57
],
[
33,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
69,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
72,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
84,
91
],
[
58,
92
],
[
92,
93
],
[
92,
94
],
[
11,
95
],
[
95,
96
],
[
96,
97
],
[
9,
98
],
[
98,
99
]
] | [
"import static java.lang.System.out;\nimport java.util.Scanner;\n\nclass Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n for(int i = 3; i <= n; i++) {\n if (i % 3 == 0 || i % 10 == 3 || i / 10 == 3) {\n out.print(\" \" + i);\n } else {\n int num = i;\n while(i >= 100) {\n i = i / 10;\n if(i % 10 == 3 || i / 10 == 3) { \n out.print(\" \" + num);\n break;\n }\n }\n i = num;\n }\n }\n out.println();\n }\n}",
"import static java.lang.System.out;",
"import static java.lang.System.out;",
"import static java.lang.System.out;",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n for(int i = 3; i <= n; i++) {\n if (i % 3 == 0 || i % 10 == 3 || i / 10 == 3) {\n out.print(\" \" + i);\n } else {\n int num = i;\n while(i >= 100) {\n i = i / 10;\n if(i % 10 == 3 || i / 10 == 3) { \n out.print(\" \" + num);\n break;\n }\n }\n i = num;\n }\n }\n out.println();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n for(int i = 3; i <= n; i++) {\n if (i % 3 == 0 || i % 10 == 3 || i / 10 == 3) {\n out.print(\" \" + i);\n } else {\n int num = i;\n while(i >= 100) {\n i = i / 10;\n if(i % 10 == 3 || i / 10 == 3) { \n out.print(\" \" + num);\n break;\n }\n }\n i = num;\n }\n }\n out.println();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n for(int i = 3; i <= n; i++) {\n if (i % 3 == 0 || i % 10 == 3 || i / 10 == 3) {\n out.print(\" \" + i);\n } else {\n int num = i;\n while(i >= 100) {\n i = i / 10;\n if(i % 10 == 3 || i / 10 == 3) { \n out.print(\" \" + num);\n break;\n }\n }\n i = num;\n }\n }\n out.println();\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 3; i <= n; i++) {\n if (i % 3 == 0 || i % 10 == 3 || i / 10 == 3) {\n out.print(\" \" + i);\n } else {\n int num = i;\n while(i >= 100) {\n i = i / 10;\n if(i % 10 == 3 || i / 10 == 3) { \n out.print(\" \" + num);\n break;\n }\n }\n i = num;\n }\n }",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (i % 3 == 0 || i % 10 == 3 || i / 10 == 3) {\n out.print(\" \" + i);\n } else {\n int num = i;\n while(i >= 100) {\n i = i / 10;\n if(i % 10 == 3 || i / 10 == 3) { \n out.print(\" \" + num);\n break;\n }\n }\n i = num;\n }\n }",
"{\n if (i % 3 == 0 || i % 10 == 3 || i / 10 == 3) {\n out.print(\" \" + i);\n } else {\n int num = i;\n while(i >= 100) {\n i = i / 10;\n if(i % 10 == 3 || i / 10 == 3) { \n out.print(\" \" + num);\n break;\n }\n }\n i = num;\n }\n }",
"if (i % 3 == 0 || i % 10 == 3 || i / 10 == 3) {\n out.print(\" \" + i);\n } else {\n int num = i;\n while(i >= 100) {\n i = i / 10;\n if(i % 10 == 3 || i / 10 == 3) { \n out.print(\" \" + num);\n break;\n }\n }\n i = num;\n }",
"i % 3 == 0 || i % 10 == 3 || i / 10 == 3",
"i % 3 == 0 || i % 10 == 3 || i / 10 == 3",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"i / 10 == 3",
"i / 10",
"i",
"10",
"3",
"{\n out.print(\" \" + i);\n }",
"out.print(\" \" + i)",
"out.print",
"out",
"\" \" + i",
"\" \"",
"i",
"{\n int num = i;\n while(i >= 100) {\n i = i / 10;\n if(i % 10 == 3 || i / 10 == 3) { \n out.print(\" \" + num);\n break;\n }\n }\n i = num;\n }",
"int num = i;",
"num",
"i",
"while(i >= 100) {\n i = i / 10;\n if(i % 10 == 3 || i / 10 == 3) { \n out.print(\" \" + num);\n break;\n }\n }",
"i >= 100",
"i",
"100",
"{\n i = i / 10;\n if(i % 10 == 3 || i / 10 == 3) { \n out.print(\" \" + num);\n break;\n }\n }",
"i = i / 10",
"i",
"i / 10",
"i",
"10",
"if(i % 10 == 3 || i / 10 == 3) { \n out.print(\" \" + num);\n break;\n }",
"i % 10 == 3 || i / 10 == 3",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"i / 10 == 3",
"i / 10",
"i",
"10",
"3",
"{ \n out.print(\" \" + num);\n break;\n }",
"out.print(\" \" + num)",
"out.print",
"out",
"\" \" + num",
"\" \"",
"num",
"break;",
"i = num",
"i",
"num",
"out.println()",
"out.println",
"out",
"String[] args",
"args"
] | import static java.lang.System.out;
import java.util.Scanner;
class Main{
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
for(int i = 3; i <= n; i++) {
if (i % 3 == 0 || i % 10 == 3 || i / 10 == 3) {
out.print(" " + i);
} else {
int num = i;
while(i >= 100) {
i = i / 10;
if(i % 10 == 3 || i / 10 == 3) {
out.print(" " + num);
break;
}
}
i = num;
}
}
out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
2,
13,
17,
17,
4,
13,
13,
4,
18,
4,
18,
13,
13,
4,
18,
13,
2,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
41,
13,
4,
18,
13,
17,
2,
13,
17,
14,
2,
2,
13,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
4,
13,
2,
13,
13,
2,
13,
17,
29,
13,
23,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
14,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
39,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
8,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
6,
67
],
[
67,
68
],
[
4,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
77,
81
],
[
81,
82
],
[
81,
83
],
[
71,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
84,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
101,
106
],
[
106,
107
],
[
106,
108
],
[
71,
109
],
[
109,
110
],
[
69,
111
],
[
111,
112
],
[
69,
113
],
[
113,
114
]
] | [
"import java.io.*;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint N=Integer.parseInt(br.readLine());\n\t\tStringBuilder sb=new StringBuilder();\n\t\tfor(int i=1;i<=N;i++){\n\t\t\tint x=i;\n\t\t\tif(x%3==0||check3(i, Integer.toString(i).length())) sb.append(\" \"+i);\n\t\t}\n\t\tSystem.out.println(sb);\n\t}\n\t\n\tprivate static boolean check3(int n, int k){\n\t\tboolean res=false;\n\t\tint t=(int)Math.pow(10, k-1);\n\t\tif(n/t==3){\n\t\t\tres=true;\n\t\t}else if(k>1){\n\t\t\tres=check3(n%t, k-1);\n\t\t}\n\t\treturn res;\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint N=Integer.parseInt(br.readLine());\n\t\tStringBuilder sb=new StringBuilder();\n\t\tfor(int i=1;i<=N;i++){\n\t\t\tint x=i;\n\t\t\tif(x%3==0||check3(i, Integer.toString(i).length())) sb.append(\" \"+i);\n\t\t}\n\t\tSystem.out.println(sb);\n\t}\n\t\n\tprivate static boolean check3(int n, int k){\n\t\tboolean res=false;\n\t\tint t=(int)Math.pow(10, k-1);\n\t\tif(n/t==3){\n\t\t\tres=true;\n\t\t}else if(k>1){\n\t\t\tres=check3(n%t, k-1);\n\t\t}\n\t\treturn res;\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint N=Integer.parseInt(br.readLine());\n\t\tStringBuilder sb=new StringBuilder();\n\t\tfor(int i=1;i<=N;i++){\n\t\t\tint x=i;\n\t\t\tif(x%3==0||check3(i, Integer.toString(i).length())) sb.append(\" \"+i);\n\t\t}\n\t\tSystem.out.println(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint N=Integer.parseInt(br.readLine());\n\t\tStringBuilder sb=new StringBuilder();\n\t\tfor(int i=1;i<=N;i++){\n\t\t\tint x=i;\n\t\t\tif(x%3==0||check3(i, Integer.toString(i).length())) sb.append(\" \"+i);\n\t\t}\n\t\tSystem.out.println(sb);\n\t}",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int N=Integer.parseInt(br.readLine());",
"N",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"StringBuilder sb=new StringBuilder();",
"sb",
"new StringBuilder()",
"for(int i=1;i<=N;i++){\n\t\t\tint x=i;\n\t\t\tif(x%3==0||check3(i, Integer.toString(i).length())) sb.append(\" \"+i);\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=N",
"i",
"N",
"i++",
"i++",
"i",
"{\n\t\t\tint x=i;\n\t\t\tif(x%3==0||check3(i, Integer.toString(i).length())) sb.append(\" \"+i);\n\t\t}",
"{\n\t\t\tint x=i;\n\t\t\tif(x%3==0||check3(i, Integer.toString(i).length())) sb.append(\" \"+i);\n\t\t}",
"int x=i;",
"x",
"i",
"if(x%3==0||check3(i, Integer.toString(i).length())) sb.append(\" \"+i);",
"x%3==0||check3(i, Integer.toString(i).length())",
"x%3==0",
"x%3",
"x",
"3",
"0",
"check3(i, Integer.toString(i).length())",
"check3",
"i",
"Integer.toString(i).length()",
"Integer.toString(i).length",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"sb.append(\" \"+i)",
"sb.append",
"sb",
"\" \"+i",
"\" \"",
"i",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"private static boolean check3(int n, int k){\n\t\tboolean res=false;\n\t\tint t=(int)Math.pow(10, k-1);\n\t\tif(n/t==3){\n\t\t\tres=true;\n\t\t}else if(k>1){\n\t\t\tres=check3(n%t, k-1);\n\t\t}\n\t\treturn res;\n\t}",
"check3",
"{\n\t\tboolean res=false;\n\t\tint t=(int)Math.pow(10, k-1);\n\t\tif(n/t==3){\n\t\t\tres=true;\n\t\t}else if(k>1){\n\t\t\tres=check3(n%t, k-1);\n\t\t}\n\t\treturn res;\n\t}",
"boolean res=false;",
"res",
"false",
"int t=(int)Math.pow(10, k-1);",
"t",
"(int)Math.pow(10, k-1)",
"Math.pow",
"Math",
"10",
"k-1",
"k",
"1",
"if(n/t==3){\n\t\t\tres=true;\n\t\t}else if(k>1){\n\t\t\tres=check3(n%t, k-1);\n\t\t}",
"n/t==3",
"n/t",
"n",
"t",
"3",
"{\n\t\t\tres=true;\n\t\t}",
"res=true",
"res",
"true",
"if(k>1){\n\t\t\tres=check3(n%t, k-1);\n\t\t}",
"k>1",
"k",
"1",
"{\n\t\t\tres=check3(n%t, k-1);\n\t\t}",
"res=check3(n%t, k-1)",
"res",
"check3(n%t, k-1)",
"check3",
"n%t",
"n",
"t",
"k-1",
"k",
"1",
"return res;",
"res",
"int n",
"n",
"int k",
"k"
] | import java.io.*;
class Main {
public static void main(String[] args) throws Exception {
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int N=Integer.parseInt(br.readLine());
StringBuilder sb=new StringBuilder();
for(int i=1;i<=N;i++){
int x=i;
if(x%3==0||check3(i, Integer.toString(i).length())) sb.append(" "+i);
}
System.out.println(sb);
}
private static boolean check3(int n, int k){
boolean res=false;
int t=(int)Math.pow(10, k-1);
if(n/t==3){
res=true;
}else if(k>1){
res=check3(n%t, k-1);
}
return res;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
13,
42,
2,
13,
17,
30,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
100,
5
],
[
100,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
33,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
48,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
81,
90
],
[
8,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
6,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] | [
"\n\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint num = in.nextInt();\n\t\tint count = 1;\n\n\t\tfor (count = 1; count <= num; count++) {\n\n\t\t\t// 3??§?????????????????°?????¨???\n\t\t\tif (count % 3 == 0) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t\t// ???????????????3?????°?????¨???\n\t\t\t} else if (count % 10 == 3) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t} else {\n\n\t\t\t\tint x = count;\n\n\t\t\t\twhile (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\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 in = new Scanner(System.in);\n\n\t\tint num = in.nextInt();\n\t\tint count = 1;\n\n\t\tfor (count = 1; count <= num; count++) {\n\n\t\t\t// 3??§?????????????????°?????¨???\n\t\t\tif (count % 3 == 0) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t\t// ???????????????3?????°?????¨???\n\t\t\t} else if (count % 10 == 3) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t} else {\n\n\t\t\t\tint x = count;\n\n\t\t\t\twhile (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint num = in.nextInt();\n\t\tint count = 1;\n\n\t\tfor (count = 1; count <= num; count++) {\n\n\t\t\t// 3??§?????????????????°?????¨???\n\t\t\tif (count % 3 == 0) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t\t// ???????????????3?????°?????¨???\n\t\t\t} else if (count % 10 == 3) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t} else {\n\n\t\t\t\tint x = count;\n\n\t\t\t\twhile (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"main",
"{\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint num = in.nextInt();\n\t\tint count = 1;\n\n\t\tfor (count = 1; count <= num; count++) {\n\n\t\t\t// 3??§?????????????????°?????¨???\n\t\t\tif (count % 3 == 0) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t\t// ???????????????3?????°?????¨???\n\t\t\t} else if (count % 10 == 3) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t} else {\n\n\t\t\t\tint x = count;\n\n\t\t\t\twhile (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int num = in.nextInt();",
"num",
"in.nextInt()",
"in.nextInt",
"in",
"int count = 1;",
"count",
"1",
"for (count = 1; count <= num; count++) {\n\n\t\t\t// 3??§?????????????????°?????¨???\n\t\t\tif (count % 3 == 0) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t\t// ???????????????3?????°?????¨???\n\t\t\t} else if (count % 10 == 3) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t} else {\n\n\t\t\t\tint x = count;\n\n\t\t\t\twhile (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"count = 1;",
"count = 1",
"count",
"1",
"count <= num",
"count",
"num",
"count++",
"count++",
"count",
"{\n\n\t\t\t// 3??§?????????????????°?????¨???\n\t\t\tif (count % 3 == 0) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t\t// ???????????????3?????°?????¨???\n\t\t\t} else if (count % 10 == 3) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t} else {\n\n\t\t\t\tint x = count;\n\n\t\t\t\twhile (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\n\t\t\t// 3??§?????????????????°?????¨???\n\t\t\tif (count % 3 == 0) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t\t// ???????????????3?????°?????¨???\n\t\t\t} else if (count % 10 == 3) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t} else {\n\n\t\t\t\tint x = count;\n\n\t\t\t\twhile (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if (count % 3 == 0) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t\t// ???????????????3?????°?????¨???\n\t\t\t} else if (count % 10 == 3) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t} else {\n\n\t\t\t\tint x = count;\n\n\t\t\t\twhile (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"count % 3 == 0",
"count % 3",
"count",
"3",
"0",
"{\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t\t// ???????????????3?????°?????¨???\n\t\t\t}",
"System.out.print(\" \" + count)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + count",
"\" \"",
"count",
"if (count % 10 == 3) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t} else {\n\n\t\t\t\tint x = count;\n\n\t\t\t\twhile (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"count % 10 == 3",
"count % 10",
"count",
"10",
"3",
"{\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t}",
"System.out.print(\" \" + count)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + count",
"\" \"",
"count",
"{\n\n\t\t\t\tint x = count;\n\n\t\t\t\twhile (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int x = count;",
"x",
"count",
"while (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}",
"x > 10",
"x",
"10",
"{\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}",
"x /= 10",
"x",
"10",
"if (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}",
"System.out.print(\" \" + count)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + count",
"\" \"",
"count",
"break;",
"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\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint num = in.nextInt();\n\t\tint count = 1;\n\n\t\tfor (count = 1; count <= num; count++) {\n\n\t\t\t// 3??§?????????????????°?????¨???\n\t\t\tif (count % 3 == 0) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t\t// ???????????????3?????°?????¨???\n\t\t\t} else if (count % 10 == 3) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t} else {\n\n\t\t\t\tint x = count;\n\n\t\t\t\twhile (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint num = in.nextInt();\n\t\tint count = 1;\n\n\t\tfor (count = 1; count <= num; count++) {\n\n\t\t\t// 3??§?????????????????°?????¨???\n\t\t\tif (count % 3 == 0) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t\t// ???????????????3?????°?????¨???\n\t\t\t} else if (count % 10 == 3) {\n\n\t\t\t\tSystem.out.print(\" \" + count);\n\n\t\t\t} else {\n\n\t\t\t\tint x = count;\n\n\t\t\t\twhile (x > 10) {\n\n\t\t\t\t\tx /= 10;\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tSystem.out.print(\" \" + count);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int num = in.nextInt();
int count = 1;
for (count = 1; count <= num; count++) {
// 3??§?????????????????°?????¨???
if (count % 3 == 0) {
System.out.print(" " + count);
// ???????????????3?????°?????¨???
} else if (count % 10 == 3) {
System.out.print(" " + count);
} else {
int x = count;
while (x > 10) {
x /= 10;
if (x % 10 == 3) {
System.out.print(" " + count);
break;
}
}
}
}
System.out.println("");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
3,
0,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
86,
11
],
[
86,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
39,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
67,
73
],
[
66,
74
],
[
59,
75
],
[
75,
76
],
[
75,
77
],
[
14,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
12,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] | [
"import java.io.File;\nimport java.io.IOException;\nimport java.util.*;\n \npublic class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tint x = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tdo{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }while(x != 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"import java.io.File;",
"File",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tint x = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tdo{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }while(x != 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tint x = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tdo{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }while(x != 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tint x = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tdo{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }while(x != 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 1; i <= n; i++){\n\t\t\tint x = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tdo{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }while(x != 0);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint x = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tdo{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }while(x != 0);\n\t\t\t}\n\t\t}",
"{\n\t\t\tint x = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tdo{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }while(x != 0);\n\t\t\t}\n\t\t}",
"int x = i;",
"x",
"i",
"if(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tdo{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }while(x != 0);\n\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\tdo{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }while(x != 0);\n\t\t\t}",
"do{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }while(x != 0);",
"x != 0",
"x",
"0",
"{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }",
"if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n System.out.printf(\" %d\",i);\n break;\n }",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"break;",
"x /= 10",
"x",
"10",
"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) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tint x = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tdo{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }while(x != 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"public class Main {\n \n\tpublic static void main(String[] args) throws IOException {\n\t\t//File file = new File(\"input.txt\");\n\t\t//Scanner sc = new Scanner(file);\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tint x = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tdo{\n if(x % 10 == 3){\n System.out.printf(\" %d\",i);\n break;\n }\n x /= 10;\n }while(x != 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main"
] | import java.io.File;
import java.io.IOException;
import java.util.*;
public class Main {
public static void main(String[] args) throws IOException {
//File file = new File("input.txt");
//Scanner sc = new Scanner(file);
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i = 1; i <= n; i++){
int x = i;
if(x % 3 == 0){
System.out.print(" " + i);
}else{
do{
if(x % 10 == 3){
System.out.printf(" %d",i);
break;
}
x /= 10;
}while(x != 0);
}
}
System.out.println();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
5,
13,
30,
4,
18,
18,
13,
13,
17,
30,
41,
13,
20,
41,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
17,
4,
18,
13,
13,
9,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
17,
4,
18,
13,
13,
3,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
18,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
18,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
44,
45
],
[
37,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
14,
52
],
[
52,
53
],
[
52,
54
],
[
12,
55
],
[
55,
56
],
[
10,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
63,
71
],
[
71,
72
],
[
72,
73
],
[
63,
74
],
[
75,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
89,
89
],
[
89,
90
],
[
89,
91
],
[
89,
92
],
[
92,
93
],
[
93,
94
],
[
92,
95
],
[
85,
96
],
[
75,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
103,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
112,
112
],
[
112,
113
],
[
112,
114
],
[
112,
115
],
[
115,
116
],
[
116,
117
],
[
115,
118
],
[
108,
119
],
[
101,
120
],
[
120,
121
],
[
120,
122
],
[
59,
123
],
[
123,
124
],
[
124,
125
],
[
125,
126
],
[
125,
127
],
[
123,
128
],
[
57,
129
],
[
129,
130
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\n/**\n * Lesson5D goto 文は、C/C++言語などで使うことのできる文で、実行されると無条件に指定されたラベルに処理が飛びます。例えば goto CHECK_NUM; という文が実行されると、プログラムの中で CHECK_NUM: と書かれた行に処理が移ります。この機能を使って、繰り返し処理なども実現することができます。\n\n一方、goto 文は自由度が高すぎ、プログラムの可読性に影響するため、可能な限り使わないことが推奨されています。\n\n次のC++言語のプログラムと同じ動作をするプログラムを作成してください。ただし、goto 文は使わないで実装してみましょう。\nvoid call(int n){\n int i = 1;\n CHECK_NUM:\n int x = i;\n if ( x % 3 == 0 ){\n cout << \" \" << i;\n goto END_CHECK_NUM;\n }\n INCLUDE3:\n if ( x % 10 == 3 ){\n cout << \" \" << i;\n goto END_CHECK_NUM;\n }\n x /= 10;\n if ( x ) goto INCLUDE3;\n END_CHECK_NUM:\n if ( ++i <= n ) goto CHECK_NUM;\n\n cout << endl;\n}\n\n\n\n\n * @author 前島佑介\n * @version 2014/12/1\n */\nclass Main {\n\n\t/**\n\t * プログラムのエントリポイント\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tint intNum = 0;\n\n\t\t//入力値を1つ受け取る\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t//入力値 Stringをint型にキャスト\n\t\t\tintNum = Integer.parseInt(strLine);\n\n\t\t}catch(IOException e) {\n\n\t\t\tSystem.out.println(e);\n\t\t}catch(NumberFormatException e) {\n\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}\n\n\t\t//3倍数と一桁目が3を表示する\n\t\t//問題と同じcallを使う\n\t\tcall(intNum);\n\n\n\t}\n\n\t/**\n\t * 3倍数と一桁目が3を表示する\n\t * @param intNum\n\t */\n\tstatic void call(int n){\n\n\t\tString cout = \"\";\n\n\t\tfor(int i = 3; i <= n; i++) {\n\t\t\tint x =i;\n\n\t\t\tif ( x % 3 == 0 ){\n\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tdo {\n\t\t\t\tif ( x % 10 == 3 ){\n\t\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t}while(x != 0);\n\n\t\t}\n\n\t\tSystem.out.println(cout);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"class Main {\n\n\t/**\n\t * プログラムのエントリポイント\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tint intNum = 0;\n\n\t\t//入力値を1つ受け取る\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t//入力値 Stringをint型にキャスト\n\t\t\tintNum = Integer.parseInt(strLine);\n\n\t\t}catch(IOException e) {\n\n\t\t\tSystem.out.println(e);\n\t\t}catch(NumberFormatException e) {\n\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}\n\n\t\t//3倍数と一桁目が3を表示する\n\t\t//問題と同じcallを使う\n\t\tcall(intNum);\n\n\n\t}\n\n\t/**\n\t * 3倍数と一桁目が3を表示する\n\t * @param intNum\n\t */\n\tstatic void call(int n){\n\n\t\tString cout = \"\";\n\n\t\tfor(int i = 3; i <= n; i++) {\n\t\t\tint x =i;\n\n\t\t\tif ( x % 3 == 0 ){\n\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tdo {\n\t\t\t\tif ( x % 10 == 3 ){\n\t\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t}while(x != 0);\n\n\t\t}\n\n\t\tSystem.out.println(cout);\n\t}\n}",
"Main",
"/**\n\t * プログラムのエントリポイント\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\n\t\tint intNum = 0;\n\n\t\t//入力値を1つ受け取る\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t//入力値 Stringをint型にキャスト\n\t\t\tintNum = Integer.parseInt(strLine);\n\n\t\t}catch(IOException e) {\n\n\t\t\tSystem.out.println(e);\n\t\t}catch(NumberFormatException e) {\n\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}\n\n\t\t//3倍数と一桁目が3を表示する\n\t\t//問題と同じcallを使う\n\t\tcall(intNum);\n\n\n\t}",
"main",
"{\n\n\t\tint intNum = 0;\n\n\t\t//入力値を1つ受け取る\n\t\ttry {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t//入力値 Stringをint型にキャスト\n\t\t\tintNum = Integer.parseInt(strLine);\n\n\t\t}catch(IOException e) {\n\n\t\t\tSystem.out.println(e);\n\t\t}catch(NumberFormatException e) {\n\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}\n\n\t\t//3倍数と一桁目が3を表示する\n\t\t//問題と同じcallを使う\n\t\tcall(intNum);\n\n\n\t}",
"int intNum = 0;",
"intNum",
"0",
"try {\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t//入力値 Stringをint型にキャスト\n\t\t\tintNum = Integer.parseInt(strLine);\n\n\t\t}catch(IOException e) {\n\n\t\t\tSystem.out.println(e);\n\t\t}catch(NumberFormatException e) {\n\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}",
"catch(IOException e) {\n\n\t\t\tSystem.out.println(e);\n\t\t}",
"IOException e",
"{\n\n\t\t\tSystem.out.println(e);\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"catch(NumberFormatException e) {\n\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}",
"NumberFormatException e",
"{\n\n\t\t\tSystem.out.println(\"数値で入力して下さい\");\n\t\t}",
"System.out.println(\"数値で入力して下さい\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"数値で入力して下さい\"",
"{\n\t\t\tBufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));\n\n\t\t\tString strLine = insBR.readLine();\n\n\t\t\t//入力値 Stringをint型にキャスト\n\t\t\tintNum = Integer.parseInt(strLine);\n\n\t\t}",
"BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));",
"insBR",
"new BufferedReader(new InputStreamReader(System.in))",
"String strLine = insBR.readLine();",
"strLine",
"insBR.readLine()",
"insBR.readLine",
"insBR",
"intNum = Integer.parseInt(strLine)",
"intNum",
"Integer.parseInt(strLine)",
"Integer.parseInt",
"Integer",
"strLine",
"call(intNum)",
"call",
"intNum",
"String[] args",
"args",
"/**\n\t * 3倍数と一桁目が3を表示する\n\t * @param intNum\n\t */\n\tstatic void call(int n){\n\n\t\tString cout = \"\";\n\n\t\tfor(int i = 3; i <= n; i++) {\n\t\t\tint x =i;\n\n\t\t\tif ( x % 3 == 0 ){\n\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tdo {\n\t\t\t\tif ( x % 10 == 3 ){\n\t\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t}while(x != 0);\n\n\t\t}\n\n\t\tSystem.out.println(cout);\n\t}",
"call",
"{\n\n\t\tString cout = \"\";\n\n\t\tfor(int i = 3; i <= n; i++) {\n\t\t\tint x =i;\n\n\t\t\tif ( x % 3 == 0 ){\n\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tdo {\n\t\t\t\tif ( x % 10 == 3 ){\n\t\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t}while(x != 0);\n\n\t\t}\n\n\t\tSystem.out.println(cout);\n\t}",
"String cout = \"\";",
"cout",
"\"\"",
"for(int i = 3; i <= n; i++) {\n\t\t\tint x =i;\n\n\t\t\tif ( x % 3 == 0 ){\n\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tdo {\n\t\t\t\tif ( x % 10 == 3 ){\n\t\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t}while(x != 0);\n\n\t\t}",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint x =i;\n\n\t\t\tif ( x % 3 == 0 ){\n\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tdo {\n\t\t\t\tif ( x % 10 == 3 ){\n\t\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t}while(x != 0);\n\n\t\t}",
"{\n\t\t\tint x =i;\n\n\t\t\tif ( x % 3 == 0 ){\n\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tdo {\n\t\t\t\tif ( x % 10 == 3 ){\n\t\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t}while(x != 0);\n\n\t\t}",
"int x =i;",
"x",
"i",
"if ( x % 3 == 0 ){\n\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\tcontinue;\n\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\tcontinue;\n\t\t\t}",
"cout = cout + \" \" + String.valueOf(i)",
"cout",
"cout + \" \" + String.valueOf(i)",
"cout + \" \" + String.valueOf(i)",
"cout",
"\" \"",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"continue;",
"do {\n\t\t\t\tif ( x % 10 == 3 ){\n\t\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t}while(x != 0);",
"x != 0",
"x",
"0",
"{\n\t\t\t\tif ( x % 10 == 3 ){\n\t\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t}",
"if ( x % 10 == 3 ){\n\t\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\tcout = cout + \" \" + String.valueOf(i);\n\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"cout = cout + \" \" + String.valueOf(i)",
"cout",
"cout + \" \" + String.valueOf(i)",
"cout + \" \" + String.valueOf(i)",
"cout",
"\" \"",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"break;",
"x/=10",
"x",
"10",
"System.out.println(cout)",
"System.out.println",
"System.out",
"System",
"System.out",
"cout",
"int n",
"n"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
/**
* Lesson5D goto 文は、C/C++言語などで使うことのできる文で、実行されると無条件に指定されたラベルに処理が飛びます。例えば goto CHECK_NUM; という文が実行されると、プログラムの中で CHECK_NUM: と書かれた行に処理が移ります。この機能を使って、繰り返し処理なども実現することができます。
一方、goto 文は自由度が高すぎ、プログラムの可読性に影響するため、可能な限り使わないことが推奨されています。
次のC++言語のプログラムと同じ動作をするプログラムを作成してください。ただし、goto 文は使わないで実装してみましょう。
void call(int n){
int i = 1;
CHECK_NUM:
int x = i;
if ( x % 3 == 0 ){
cout << " " << i;
goto END_CHECK_NUM;
}
INCLUDE3:
if ( x % 10 == 3 ){
cout << " " << i;
goto END_CHECK_NUM;
}
x /= 10;
if ( x ) goto INCLUDE3;
END_CHECK_NUM:
if ( ++i <= n ) goto CHECK_NUM;
cout << endl;
}
* @author 前島佑介
* @version 2014/12/1
*/
class Main {
/**
* プログラムのエントリポイント
* @param args
*/
public static void main(String[] args) {
int intNum = 0;
//入力値を1つ受け取る
try {
BufferedReader insBR = new BufferedReader(new InputStreamReader(System.in));
String strLine = insBR.readLine();
//入力値 Stringをint型にキャスト
intNum = Integer.parseInt(strLine);
}catch(IOException e) {
System.out.println(e);
}catch(NumberFormatException e) {
System.out.println("数値で入力して下さい");
}
//3倍数と一桁目が3を表示する
//問題と同じcallを使う
call(intNum);
}
/**
* 3倍数と一桁目が3を表示する
* @param intNum
*/
static void call(int n){
String cout = "";
for(int i = 3; i <= n; i++) {
int x =i;
if ( x % 3 == 0 ){
cout = cout + " " + String.valueOf(i);
continue;
}
do {
if ( x % 10 == 3 ){
cout = cout + " " + String.valueOf(i);
break;
}
x/=10;
}while(x != 0);
}
System.out.println(cout);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
37,
20,
4,
18,
18,
13,
13,
4,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
4,
18,
13,
13,
14,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
4,
18,
13,
17,
4,
18,
13,
13,
29,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
111,
5
],
[
111,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
9,
16
],
[
16,
17
],
[
17,
18
],
[
17,
19
],
[
16,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
25,
26
],
[
26,
27
],
[
16,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
16,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
6,
47
],
[
47,
48
],
[
111,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
60,
62
],
[
55,
63
],
[
63,
64
],
[
64,
65
],
[
55,
66
],
[
67,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
68,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
86,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
94,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
51,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
49,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner stdin = new Scanner(System.in)) {\n\t\t\tint n = Integer.parseInt(stdin.next());\n\t\t\tif (n < 3 || n > 10000) {\n\t\t\t\tthrow new RuntimeException(\"Input Range:between 3 and 10000\");\n\t\t\t}\n\t\t\tSystem.out.println(checkNum(n));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tprivate static String checkNum(int n) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner stdin = new Scanner(System.in)) {\n\t\t\tint n = Integer.parseInt(stdin.next());\n\t\t\tif (n < 3 || n > 10000) {\n\t\t\t\tthrow new RuntimeException(\"Input Range:between 3 and 10000\");\n\t\t\t}\n\t\t\tSystem.out.println(checkNum(n));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tprivate static String checkNum(int n) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry (Scanner stdin = new Scanner(System.in)) {\n\t\t\tint n = Integer.parseInt(stdin.next());\n\t\t\tif (n < 3 || n > 10000) {\n\t\t\t\tthrow new RuntimeException(\"Input Range:between 3 and 10000\");\n\t\t\t}\n\t\t\tSystem.out.println(checkNum(n));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\ttry (Scanner stdin = new Scanner(System.in)) {\n\t\t\tint n = Integer.parseInt(stdin.next());\n\t\t\tif (n < 3 || n > 10000) {\n\t\t\t\tthrow new RuntimeException(\"Input Range:between 3 and 10000\");\n\t\t\t}\n\t\t\tSystem.out.println(checkNum(n));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"try (Scanner stdin = new Scanner(System.in)) {\n\t\t\tint n = Integer.parseInt(stdin.next());\n\t\t\tif (n < 3 || n > 10000) {\n\t\t\t\tthrow new RuntimeException(\"Input Range:between 3 and 10000\");\n\t\t\t}\n\t\t\tSystem.out.println(checkNum(n));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}",
"Exception e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tint n = Integer.parseInt(stdin.next());\n\t\t\tif (n < 3 || n > 10000) {\n\t\t\t\tthrow new RuntimeException(\"Input Range:between 3 and 10000\");\n\t\t\t}\n\t\t\tSystem.out.println(checkNum(n));\n\n\t\t}",
"Scanner stdin = new Scanner(System.in)",
"Scanner stdin = new Scanner(System.in)",
"new Scanner(System.in)",
"int n = Integer.parseInt(stdin.next());",
"n",
"Integer.parseInt(stdin.next())",
"Integer.parseInt",
"Integer",
"stdin.next()",
"stdin.next",
"stdin",
"if (n < 3 || n > 10000) {\n\t\t\t\tthrow new RuntimeException(\"Input Range:between 3 and 10000\");\n\t\t\t}",
"n < 3 || n > 10000",
"n < 3",
"n",
"3",
"n > 10000",
"n",
"10000",
"{\n\t\t\t\tthrow new RuntimeException(\"Input Range:between 3 and 10000\");\n\t\t\t}",
"throw new RuntimeException(\"Input Range:between 3 and 10000\");",
"new RuntimeException(\"Input Range:between 3 and 10000\")",
"System.out.println(checkNum(n))",
"System.out.println",
"System.out",
"System",
"System.out",
"checkNum(n)",
"checkNum",
"n",
"String[] args",
"args",
"private static String checkNum(int n) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}",
"checkNum",
"{\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}\n\t\t}",
"if (i % 3 == 0) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}",
"sb.append(' ').append(String.valueOf(i))",
"sb.append(' ').append",
"sb.append(' ')",
"sb.append",
"sb",
"' '",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"if (String.valueOf(i).contains(\"3\")) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}",
"String.valueOf(i).contains(\"3\")",
"String.valueOf(i).contains",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"\"3\"",
"{\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}",
"sb.append(' ').append(String.valueOf(i))",
"sb.append(' ').append",
"sb.append(' ')",
"sb.append",
"sb",
"' '",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"return sb.toString();",
"sb.toString()",
"sb.toString",
"sb",
"int n",
"n",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner stdin = new Scanner(System.in)) {\n\t\t\tint n = Integer.parseInt(stdin.next());\n\t\t\tif (n < 3 || n > 10000) {\n\t\t\t\tthrow new RuntimeException(\"Input Range:between 3 and 10000\");\n\t\t\t}\n\t\t\tSystem.out.println(checkNum(n));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tprivate static String checkNum(int n) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry (Scanner stdin = new Scanner(System.in)) {\n\t\t\tint n = Integer.parseInt(stdin.next());\n\t\t\tif (n < 3 || n > 10000) {\n\t\t\t\tthrow new RuntimeException(\"Input Range:between 3 and 10000\");\n\t\t\t}\n\t\t\tSystem.out.println(checkNum(n));\n\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tprivate static String checkNum(int n) {\n\t\tStringBuilder sb = new StringBuilder();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t\t\tsb.append(' ').append(String.valueOf(i));\n\t\t\t}\n\t\t}\n\t\treturn sb.toString();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
try (Scanner stdin = new Scanner(System.in)) {
int n = Integer.parseInt(stdin.next());
if (n < 3 || n > 10000) {
throw new RuntimeException("Input Range:between 3 and 10000");
}
System.out.println(checkNum(n));
} catch (Exception e) {
e.printStackTrace();
}
}
private static String checkNum(int n) {
StringBuilder sb = new StringBuilder();
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
sb.append(' ').append(String.valueOf(i));
} else if (String.valueOf(i).contains("3")) {
sb.append(' ').append(String.valueOf(i));
}
}
return sb.toString();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
42,
17,
30,
14,
2,
13,
17,
30,
40,
13,
0,
13,
13,
14,
2,
2,
2,
13,
17,
17,
2,
13,
40,
17,
30,
4,
18,
18,
13,
13,
17,
13,
0,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
0,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
40,
17,
30,
0,
13,
17,
14,
2,
2,
13,
17,
13,
30,
3,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
113,
5
],
[
113,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
36,
37
],
[
36,
38
],
[
28,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
39,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
51,
57
],
[
50,
58
],
[
58,
59
],
[
58,
60
],
[
39,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
69,
75
],
[
68,
76
],
[
76,
77
],
[
76,
78
],
[
62,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
83,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
28,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
102,
103
],
[
8,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
6,
110
],
[
110,
111
],
[
0,
112
],
[
112,
113
],
[
112,
114
]
] | [
"import java.util.Scanner;\n\npublic class Main\n{\n public static void main(String[] args)\n {\n int i=1;\n int jud=0;\n int x=0;\n Scanner sc=new Scanner(System.in);\n \n int n=sc.nextInt();\n \n while(true)\n {\n //CHECK_NUM\n if(jud==0)\n {\n i++;\n x=i;\n }\n \n if(x%3==0 && jud!=-1)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n }\n else\n {\n if(x%10==3)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n //goto END_CHECK_NUM\n }\n else\n {\n x/=10;\n if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }\n }\n }\n \n //END_CHECK_NUM\n \n if(i+1>n)\n {\n break;\n }\n //goto CHECK_NUM\n }\n System.out.print(\"\\n\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main\n{\n public static void main(String[] args)\n {\n int i=1;\n int jud=0;\n int x=0;\n Scanner sc=new Scanner(System.in);\n \n int n=sc.nextInt();\n \n while(true)\n {\n //CHECK_NUM\n if(jud==0)\n {\n i++;\n x=i;\n }\n \n if(x%3==0 && jud!=-1)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n }\n else\n {\n if(x%10==3)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n //goto END_CHECK_NUM\n }\n else\n {\n x/=10;\n if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }\n }\n }\n \n //END_CHECK_NUM\n \n if(i+1>n)\n {\n break;\n }\n //goto CHECK_NUM\n }\n System.out.print(\"\\n\");\n }\n}",
"Main",
"public static void main(String[] args)\n {\n int i=1;\n int jud=0;\n int x=0;\n Scanner sc=new Scanner(System.in);\n \n int n=sc.nextInt();\n \n while(true)\n {\n //CHECK_NUM\n if(jud==0)\n {\n i++;\n x=i;\n }\n \n if(x%3==0 && jud!=-1)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n }\n else\n {\n if(x%10==3)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n //goto END_CHECK_NUM\n }\n else\n {\n x/=10;\n if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }\n }\n }\n \n //END_CHECK_NUM\n \n if(i+1>n)\n {\n break;\n }\n //goto CHECK_NUM\n }\n System.out.print(\"\\n\");\n }",
"main",
"{\n int i=1;\n int jud=0;\n int x=0;\n Scanner sc=new Scanner(System.in);\n \n int n=sc.nextInt();\n \n while(true)\n {\n //CHECK_NUM\n if(jud==0)\n {\n i++;\n x=i;\n }\n \n if(x%3==0 && jud!=-1)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n }\n else\n {\n if(x%10==3)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n //goto END_CHECK_NUM\n }\n else\n {\n x/=10;\n if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }\n }\n }\n \n //END_CHECK_NUM\n \n if(i+1>n)\n {\n break;\n }\n //goto CHECK_NUM\n }\n System.out.print(\"\\n\");\n }",
"int i=1;",
"i",
"1",
"int jud=0;",
"jud",
"0",
"int x=0;",
"x",
"0",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(true)\n {\n //CHECK_NUM\n if(jud==0)\n {\n i++;\n x=i;\n }\n \n if(x%3==0 && jud!=-1)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n }\n else\n {\n if(x%10==3)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n //goto END_CHECK_NUM\n }\n else\n {\n x/=10;\n if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }\n }\n }\n \n //END_CHECK_NUM\n \n if(i+1>n)\n {\n break;\n }\n //goto CHECK_NUM\n }",
"true",
"{\n //CHECK_NUM\n if(jud==0)\n {\n i++;\n x=i;\n }\n \n if(x%3==0 && jud!=-1)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n }\n else\n {\n if(x%10==3)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n //goto END_CHECK_NUM\n }\n else\n {\n x/=10;\n if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }\n }\n }\n \n //END_CHECK_NUM\n \n if(i+1>n)\n {\n break;\n }\n //goto CHECK_NUM\n }",
"if(jud==0)\n {\n i++;\n x=i;\n }",
"jud==0",
"jud",
"0",
"{\n i++;\n x=i;\n }",
"i++",
"i",
"x=i",
"x",
"i",
"if(x%3==0 && jud!=-1)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n }\n else\n {\n if(x%10==3)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n //goto END_CHECK_NUM\n }\n else\n {\n x/=10;\n if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }\n }\n }",
"x%3==0 && jud!=-1",
"x%3==0",
"x%3",
"x",
"3",
"0",
"jud!=-1",
"jud",
"-1",
"1",
"{\n System.out.printf(\" %d\",i);\n jud=0;\n }",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"jud=0",
"jud",
"0",
"{\n if(x%10==3)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n //goto END_CHECK_NUM\n }\n else\n {\n x/=10;\n if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }\n }\n }",
"if(x%10==3)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n //goto END_CHECK_NUM\n }\n else\n {\n x/=10;\n if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }\n }",
"x%10==3",
"x%10",
"x",
"10",
"3",
"{\n System.out.printf(\" %d\",i);\n jud=0;\n //goto END_CHECK_NUM\n }",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"jud=0",
"jud",
"0",
"{\n x/=10;\n if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }\n }",
"x/=10",
"x",
"10",
"if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }",
"x!=0",
"x",
"0",
"{\n jud=-1;\n }",
"jud=-1",
"jud",
"-1",
"1",
"{\n jud=0;\n }",
"jud=0",
"jud",
"0",
"if(i+1>n)\n {\n break;\n }",
"i+1>n",
"i+1",
"i",
"1",
"n",
"{\n break;\n }",
"break;",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main\n{\n public static void main(String[] args)\n {\n int i=1;\n int jud=0;\n int x=0;\n Scanner sc=new Scanner(System.in);\n \n int n=sc.nextInt();\n \n while(true)\n {\n //CHECK_NUM\n if(jud==0)\n {\n i++;\n x=i;\n }\n \n if(x%3==0 && jud!=-1)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n }\n else\n {\n if(x%10==3)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n //goto END_CHECK_NUM\n }\n else\n {\n x/=10;\n if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }\n }\n }\n \n //END_CHECK_NUM\n \n if(i+1>n)\n {\n break;\n }\n //goto CHECK_NUM\n }\n System.out.print(\"\\n\");\n }\n}",
"public class Main\n{\n public static void main(String[] args)\n {\n int i=1;\n int jud=0;\n int x=0;\n Scanner sc=new Scanner(System.in);\n \n int n=sc.nextInt();\n \n while(true)\n {\n //CHECK_NUM\n if(jud==0)\n {\n i++;\n x=i;\n }\n \n if(x%3==0 && jud!=-1)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n }\n else\n {\n if(x%10==3)\n {\n System.out.printf(\" %d\",i);\n jud=0;\n //goto END_CHECK_NUM\n }\n else\n {\n x/=10;\n if(x!=0)\n {\n jud=-1;\n } //goto INCLUDE3\n else\n {\n jud=0;\n }\n }\n }\n \n //END_CHECK_NUM\n \n if(i+1>n)\n {\n break;\n }\n //goto CHECK_NUM\n }\n System.out.print(\"\\n\");\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main
{
public static void main(String[] args)
{
int i=1;
int jud=0;
int x=0;
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
while(true)
{
//CHECK_NUM
if(jud==0)
{
i++;
x=i;
}
if(x%3==0 && jud!=-1)
{
System.out.printf(" %d",i);
jud=0;
}
else
{
if(x%10==3)
{
System.out.printf(" %d",i);
jud=0;
//goto END_CHECK_NUM
}
else
{
x/=10;
if(x!=0)
{
jud=-1;
} //goto INCLUDE3
else
{
jud=0;
}
}
}
//END_CHECK_NUM
if(i+1>n)
{
break;
}
//goto CHECK_NUM
}
System.out.print("\n");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
9,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
3,
0,
13,
17,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
10,
11
],
[
11,
12
],
[
11,
13
],
[
9,
14
],
[
14,
15
],
[
14,
16
],
[
9,
17
],
[
17,
18
],
[
18,
19
],
[
9,
20
],
[
21,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
21,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
25,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
32,
38
],
[
31,
39
],
[
21,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
52,
58
],
[
51,
59
],
[
44,
60
],
[
60,
61
],
[
60,
62
],
[
8,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
6,
68
],
[
68,
69
],
[
88,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
76,
78
],
[
72,
79
],
[
79,
80
],
[
80,
81
],
[
79,
82
],
[
82,
83
],
[
83,
84
],
[
70,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tvoid call(int n) {\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x >= 1);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\tpublic static void main(String[] args) {\n\t\tMain m = new Main();\n\t\tScanner scan = new Scanner(System.in);\n\t\tm.call(scan.nextInt());\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tvoid call(int n) {\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x >= 1);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\tpublic static void main(String[] args) {\n\t\tMain m = new Main();\n\t\tScanner scan = new Scanner(System.in);\n\t\tm.call(scan.nextInt());\n\t}\n}",
"Main",
"void call(int n) {\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x >= 1);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"call",
"{\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x >= 1);\n\t\t}\n\t\tSystem.out.println();\n\t}",
"for (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x >= 1);\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x >= 1);\n\t\t}",
"{\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x >= 1);\n\t\t}",
"int x = i;",
"x",
"i",
"if (x % 3 == 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tcontinue;\n\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tcontinue;\n\t\t\t}",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"continue;",
"do {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x >= 1);",
"x >= 1",
"x",
"1",
"{\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t}",
"if (x % 10 == 3) {\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"break;",
"x /= 10",
"x",
"10",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"int n",
"n",
"public static void main(String[] args) {\n\t\tMain m = new Main();\n\t\tScanner scan = new Scanner(System.in);\n\t\tm.call(scan.nextInt());\n\t}",
"main",
"{\n\t\tMain m = new Main();\n\t\tScanner scan = new Scanner(System.in);\n\t\tm.call(scan.nextInt());\n\t}",
"Main m = new Main();",
"m",
"new Main()",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"m.call(scan.nextInt())",
"m.call",
"m",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] args",
"args",
"public class Main {\n\tvoid call(int n) {\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x >= 1);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\tpublic static void main(String[] args) {\n\t\tMain m = new Main();\n\t\tScanner scan = new Scanner(System.in);\n\t\tm.call(scan.nextInt());\n\t}\n}",
"public class Main {\n\tvoid call(int n) {\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tdo {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t} while(x >= 1);\n\t\t}\n\t\tSystem.out.println();\n\t}\n\tpublic static void main(String[] args) {\n\t\tMain m = new Main();\n\t\tScanner scan = new Scanner(System.in);\n\t\tm.call(scan.nextInt());\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
void call(int n) {
for (int i = 1; i <= n; i++) {
int x = i;
if (x % 3 == 0) {
System.out.printf(" %d", i);
continue;
}
do {
if (x % 10 == 3) {
System.out.printf(" %d", i);
break;
}
x /= 10;
} while(x >= 1);
}
System.out.println();
}
public static void main(String[] args) {
Main m = new Main();
Scanner scan = new Scanner(System.in);
m.call(scan.nextInt());
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
4,
13,
17,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
42,
2,
13,
13,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
30,
41,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
3,
0,
13,
2,
13,
17,
40,
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
],
[
106,
11
],
[
106,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
32,
35
],
[
32,
36
],
[
14,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
12,
43
],
[
43,
44
],
[
106,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
56,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
85,
88
],
[
88,
89
],
[
88,
90
],
[
84,
91
],
[
77,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
52,
97
],
[
97,
98
],
[
45,
99
],
[
99,
100
],
[
45,
101
],
[
101,
102
],
[
45,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] | [
"\nimport java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n String line = reader.readLine();\n int x = Integer.parseInt(line);\n\n call(1, x, builder);\n System.out.println(builder);\n }\n\n public static void call(int i, int n, StringBuilder builder) {\n // 3??§?????????????????? ??????\n while (i <= n) {\n int x = i;\n if (x % 3 == 0) {\n builder.append(\" \" + i);\n }\n else {\n // INCLUDE3\n int y = x;\n while (y > 1) {\n if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }\n y = y / 10;\n }\n }\n i++;\n }\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n String line = reader.readLine();\n int x = Integer.parseInt(line);\n\n call(1, x, builder);\n System.out.println(builder);\n }\n\n public static void call(int i, int n, StringBuilder builder) {\n // 3??§?????????????????? ??????\n while (i <= n) {\n int x = i;\n if (x % 3 == 0) {\n builder.append(\" \" + i);\n }\n else {\n // INCLUDE3\n int y = x;\n while (y > 1) {\n if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }\n y = y / 10;\n }\n }\n i++;\n }\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n String line = reader.readLine();\n int x = Integer.parseInt(line);\n\n call(1, x, builder);\n System.out.println(builder);\n }",
"main",
"{\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n String line = reader.readLine();\n int x = Integer.parseInt(line);\n\n call(1, x, builder);\n System.out.println(builder);\n }",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder builder = new StringBuilder();",
"builder",
"new StringBuilder()",
"String line = reader.readLine();",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"int x = Integer.parseInt(line);",
"x",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"call(1, x, builder)",
"call",
"1",
"x",
"builder",
"System.out.println(builder)",
"System.out.println",
"System.out",
"System",
"System.out",
"builder",
"String[] args",
"args",
"public static void call(int i, int n, StringBuilder builder) {\n // 3??§?????????????????? ??????\n while (i <= n) {\n int x = i;\n if (x % 3 == 0) {\n builder.append(\" \" + i);\n }\n else {\n // INCLUDE3\n int y = x;\n while (y > 1) {\n if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }\n y = y / 10;\n }\n }\n i++;\n }\n }",
"call",
"{\n // 3??§?????????????????? ??????\n while (i <= n) {\n int x = i;\n if (x % 3 == 0) {\n builder.append(\" \" + i);\n }\n else {\n // INCLUDE3\n int y = x;\n while (y > 1) {\n if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }\n y = y / 10;\n }\n }\n i++;\n }\n }",
"while (i <= n) {\n int x = i;\n if (x % 3 == 0) {\n builder.append(\" \" + i);\n }\n else {\n // INCLUDE3\n int y = x;\n while (y > 1) {\n if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }\n y = y / 10;\n }\n }\n i++;\n }",
"i <= n",
"i",
"n",
"{\n int x = i;\n if (x % 3 == 0) {\n builder.append(\" \" + i);\n }\n else {\n // INCLUDE3\n int y = x;\n while (y > 1) {\n if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }\n y = y / 10;\n }\n }\n i++;\n }",
"int x = i;",
"x",
"i",
"if (x % 3 == 0) {\n builder.append(\" \" + i);\n }\n else {\n // INCLUDE3\n int y = x;\n while (y > 1) {\n if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }\n y = y / 10;\n }\n }",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n builder.append(\" \" + i);\n }",
"builder.append(\" \" + i)",
"builder.append",
"builder",
"\" \" + i",
"\" \"",
"i",
"{\n // INCLUDE3\n int y = x;\n while (y > 1) {\n if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }\n y = y / 10;\n }\n }",
"int y = x;",
"y",
"x",
"while (y > 1) {\n if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }\n y = y / 10;\n }",
"y > 1",
"y",
"1",
"{\n if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }\n y = y / 10;\n }",
"if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }",
"y % 10 == 3",
"y % 10",
"y",
"10",
"3",
"{\n builder.append(\" \" + i);\n break;\n }",
"builder.append(\" \" + i)",
"builder.append",
"builder",
"\" \" + i",
"\" \"",
"i",
"break;",
"y = y / 10",
"y",
"y / 10",
"y",
"10",
"i++",
"i",
"int i",
"i",
"int n",
"n",
"StringBuilder builder",
"builder",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n String line = reader.readLine();\n int x = Integer.parseInt(line);\n\n call(1, x, builder);\n System.out.println(builder);\n }\n\n public static void call(int i, int n, StringBuilder builder) {\n // 3??§?????????????????? ??????\n while (i <= n) {\n int x = i;\n if (x % 3 == 0) {\n builder.append(\" \" + i);\n }\n else {\n // INCLUDE3\n int y = x;\n while (y > 1) {\n if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }\n y = y / 10;\n }\n }\n i++;\n }\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder builder = new StringBuilder();\n String line = reader.readLine();\n int x = Integer.parseInt(line);\n\n call(1, x, builder);\n System.out.println(builder);\n }\n\n public static void call(int i, int n, StringBuilder builder) {\n // 3??§?????????????????? ??????\n while (i <= n) {\n int x = i;\n if (x % 3 == 0) {\n builder.append(\" \" + i);\n }\n else {\n // INCLUDE3\n int y = x;\n while (y > 1) {\n if (y % 10 == 3) {\n builder.append(\" \" + i);\n break;\n }\n y = y / 10;\n }\n }\n i++;\n }\n }\n}",
"Main"
] |
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
StringBuilder builder = new StringBuilder();
String line = reader.readLine();
int x = Integer.parseInt(line);
call(1, x, builder);
System.out.println(builder);
}
public static void call(int i, int n, StringBuilder builder) {
// 3??§?????????????????? ??????
while (i <= n) {
int x = i;
if (x % 3 == 0) {
builder.append(" " + i);
}
else {
// INCLUDE3
int y = x;
while (y > 1) {
if (y % 10 == 3) {
builder.append(" " + i);
break;
}
y = y / 10;
}
}
i++;
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
4,
18,
4,
18,
13,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
38,
44
],
[
37,
45
],
[
30,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
6,
59
],
[
59,
60
]
] | [
"import java.util.*;\n\nclass Main{\npublic static void main(String[] args){\nScanner sc = new Scanner(System.in);\nint n = sc.nextInt();\nfor(int i=1;i<=n;i++)\n{\n if(i%3==0 || String.valueOf(i).indexOf('3')>=0)\n System.out.print(\" \" + i);\n}\nSystem.out.println();\n}\n}",
"import java.util.*;",
"util.*",
"java",
"class Main{\npublic static void main(String[] args){\nScanner sc = new Scanner(System.in);\nint n = sc.nextInt();\nfor(int i=1;i<=n;i++)\n{\n if(i%3==0 || String.valueOf(i).indexOf('3')>=0)\n System.out.print(\" \" + i);\n}\nSystem.out.println();\n}\n}",
"Main",
"public static void main(String[] args){\nScanner sc = new Scanner(System.in);\nint n = sc.nextInt();\nfor(int i=1;i<=n;i++)\n{\n if(i%3==0 || String.valueOf(i).indexOf('3')>=0)\n System.out.print(\" \" + i);\n}\nSystem.out.println();\n}",
"main",
"{\nScanner sc = new Scanner(System.in);\nint n = sc.nextInt();\nfor(int i=1;i<=n;i++)\n{\n if(i%3==0 || String.valueOf(i).indexOf('3')>=0)\n System.out.print(\" \" + i);\n}\nSystem.out.println();\n}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=n;i++)\n{\n if(i%3==0 || String.valueOf(i).indexOf('3')>=0)\n System.out.print(\" \" + i);\n}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i%3==0 || String.valueOf(i).indexOf('3')>=0)\n System.out.print(\" \" + i);\n}",
"{\n if(i%3==0 || String.valueOf(i).indexOf('3')>=0)\n System.out.print(\" \" + i);\n}",
"if(i%3==0 || String.valueOf(i).indexOf('3')>=0)\n System.out.print(\" \" + i);",
"i%3==0 || String.valueOf(i).indexOf('3')>=0",
"i%3==0",
"i%3",
"i",
"3",
"0",
"String.valueOf(i).indexOf('3')>=0",
"String.valueOf(i).indexOf('3')",
"String.valueOf(i).indexOf",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"'3'",
"0",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args"
] | import java.util.*;
class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i=1;i<=n;i++)
{
if(i%3==0 || String.valueOf(i).indexOf('3')>=0)
System.out.print(" " + i);
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
30,
41,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
3,
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
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
40,
46
],
[
33,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
63,
69
],
[
62,
70
],
[
55,
71
],
[
71,
72
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
6,
80
],
[
80,
81
]
] | [
"import java.util.Scanner;\n \nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n \n int n = sc.nextInt();\n for (int i = 3; i <= n; i++) {\n if (i%3 == 0) {\n sb.append(\" \").append(i);\n } \n else {\n int j = i;\n while (j != 0) {\n if (j%10 == 3) {\n sb.append(\" \").append(i);\n break;\n }\n j /= 10;\n }\n }\n }\n System.out.println(sb);\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n \n int n = sc.nextInt();\n for (int i = 3; i <= n; i++) {\n if (i%3 == 0) {\n sb.append(\" \").append(i);\n } \n else {\n int j = i;\n while (j != 0) {\n if (j%10 == 3) {\n sb.append(\" \").append(i);\n break;\n }\n j /= 10;\n }\n }\n }\n System.out.println(sb);\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n \n int n = sc.nextInt();\n for (int i = 3; i <= n; i++) {\n if (i%3 == 0) {\n sb.append(\" \").append(i);\n } \n else {\n int j = i;\n while (j != 0) {\n if (j%10 == 3) {\n sb.append(\" \").append(i);\n break;\n }\n j /= 10;\n }\n }\n }\n System.out.println(sb);\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n \n int n = sc.nextInt();\n for (int i = 3; i <= n; i++) {\n if (i%3 == 0) {\n sb.append(\" \").append(i);\n } \n else {\n int j = i;\n while (j != 0) {\n if (j%10 == 3) {\n sb.append(\" \").append(i);\n break;\n }\n j /= 10;\n }\n }\n }\n System.out.println(sb);\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 3; i <= n; i++) {\n if (i%3 == 0) {\n sb.append(\" \").append(i);\n } \n else {\n int j = i;\n while (j != 0) {\n if (j%10 == 3) {\n sb.append(\" \").append(i);\n break;\n }\n j /= 10;\n }\n }\n }",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (i%3 == 0) {\n sb.append(\" \").append(i);\n } \n else {\n int j = i;\n while (j != 0) {\n if (j%10 == 3) {\n sb.append(\" \").append(i);\n break;\n }\n j /= 10;\n }\n }\n }",
"{\n if (i%3 == 0) {\n sb.append(\" \").append(i);\n } \n else {\n int j = i;\n while (j != 0) {\n if (j%10 == 3) {\n sb.append(\" \").append(i);\n break;\n }\n j /= 10;\n }\n }\n }",
"if (i%3 == 0) {\n sb.append(\" \").append(i);\n } \n else {\n int j = i;\n while (j != 0) {\n if (j%10 == 3) {\n sb.append(\" \").append(i);\n break;\n }\n j /= 10;\n }\n }",
"i%3 == 0",
"i%3",
"i",
"3",
"0",
"{\n sb.append(\" \").append(i);\n }",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"{\n int j = i;\n while (j != 0) {\n if (j%10 == 3) {\n sb.append(\" \").append(i);\n break;\n }\n j /= 10;\n }\n }",
"int j = i;",
"j",
"i",
"while (j != 0) {\n if (j%10 == 3) {\n sb.append(\" \").append(i);\n break;\n }\n j /= 10;\n }",
"j != 0",
"j",
"0",
"{\n if (j%10 == 3) {\n sb.append(\" \").append(i);\n break;\n }\n j /= 10;\n }",
"if (j%10 == 3) {\n sb.append(\" \").append(i);\n break;\n }",
"j%10 == 3",
"j%10",
"j",
"10",
"3",
"{\n sb.append(\" \").append(i);\n break;\n }",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"break;",
"j /= 10",
"j",
"10",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
int n = sc.nextInt();
for (int i = 3; i <= n; i++) {
if (i%3 == 0) {
sb.append(" ").append(i);
}
else {
int j = i;
while (j != 0) {
if (j%10 == 3) {
sb.append(" ").append(i);
break;
}
j /= 10;
}
}
}
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
4,
18,
4,
18,
13,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
17,
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
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
33,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
50,
56
],
[
49,
57
],
[
48,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
8,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
6,
73
],
[
73,
74
],
[
0,
75
],
[
75,
76
],
[
75,
77
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// fizzbuzz\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tsc.close();\n\n\t\tfor(int i=1; i<=n; i++) {\n\t\t\t// 3または3を含む数字を出力する\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if(String.valueOf(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}\n\n}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// fizzbuzz\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tsc.close();\n\n\t\tfor(int i=1; i<=n; i++) {\n\t\t\t// 3または3を含む数字を出力する\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if(String.valueOf(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\t// fizzbuzz\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tsc.close();\n\n\t\tfor(int i=1; i<=n; i++) {\n\t\t\t// 3または3を含む数字を出力する\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if(String.valueOf(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}",
"main",
"{\n\n\t\t// fizzbuzz\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tsc.close();\n\n\t\tfor(int i=1; i<=n; i++) {\n\t\t\t// 3または3を含む数字を出力する\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if(String.valueOf(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"sc.close()",
"sc.close",
"sc",
"for(int i=1; i<=n; i++) {\n\t\t\t// 3または3を含む数字を出力する\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if(String.valueOf(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t// 3または3を含む数字を出力する\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if(String.valueOf(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}",
"{\n\t\t\t// 3または3を含む数字を出力する\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if(String.valueOf(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}",
"if(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if(String.valueOf(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"if(String.valueOf(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"String.valueOf(i).indexOf(\"3\") >= 0",
"String.valueOf(i).indexOf(\"3\")",
"String.valueOf(i).indexOf",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"\"3\"",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"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\n\t\t// fizzbuzz\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tsc.close();\n\n\t\tfor(int i=1; i<=n; i++) {\n\t\t\t// 3または3を含む数字を出力する\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if(String.valueOf(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\t// fizzbuzz\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tsc.close();\n\n\t\tfor(int i=1; i<=n; i++) {\n\t\t\t// 3または3を含む数字を出力する\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if(String.valueOf(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
// fizzbuzz
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
sc.close();
for(int i=1; i<=n; i++) {
// 3または3を含む数字を出力する
if(i % 3 == 0) {
System.out.print(" " + i);
} else if(String.valueOf(i).indexOf("3") >= 0) {
System.out.print(" " + i);
}
}
System.out.println("");
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
13,
30,
14,
2,
2,
2,
13,
17,
17,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
13,
40,
13,
4,
18,
18,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
26,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
34,
37
],
[
32,
38
],
[
25,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
40,
46
],
[
24,
47
],
[
47,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
6,
54
],
[
54,
55
],
[
0,
56
],
[
56,
57
],
[
56,
58
]
] | [
"import java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint i = 3;\n\t\twhile(i <= n) {\n\t\t\tif(i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint i = 3;\n\t\twhile(i <= n) {\n\t\t\tif(i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint i = 3;\n\t\twhile(i <= n) {\n\t\t\tif(i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint i = 3;\n\t\twhile(i <= n) {\n\t\t\tif(i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i = 3;",
"i",
"3",
"while(i <= n) {\n\t\t\tif(i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\ti++;\n\t\t}",
"i <= n",
"i",
"n",
"{\n\t\t\tif(i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\ti++;\n\t\t}",
"if(i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}",
"i % 3 == 0 || String.valueOf(i).contains(\"3\")",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"String.valueOf(i).contains(\"3\")",
"String.valueOf(i).contains",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"\"3\"",
"{\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"i++",
"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\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint i = 3;\n\t\twhile(i <= n) {\n\t\t\tif(i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tint i = 3;\n\t\twhile(i <= n) {\n\t\t\tif(i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int i = 3;
while(i <= n) {
if(i % 3 == 0 || String.valueOf(i).contains("3")) {
System.out.printf(" %d", i);
}
i++;
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
30,
41,
13,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
91,
5
],
[
91,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
33,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
46,
52
],
[
33,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
61,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
74,
80
],
[
73,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
6,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i=1; i<=n; i++){\n if(i%3==0 || i%10==3 ){\n sb.append(\" \").append(i);\n }\n else {\n int j = i;\n while(j>=10) {\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }\n }\n }\n System.out.println(sb);\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 n = scan.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i=1; i<=n; i++){\n if(i%3==0 || i%10==3 ){\n sb.append(\" \").append(i);\n }\n else {\n int j = i;\n while(j>=10) {\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }\n }\n }\n System.out.println(sb);\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i=1; i<=n; i++){\n if(i%3==0 || i%10==3 ){\n sb.append(\" \").append(i);\n }\n else {\n int j = i;\n while(j>=10) {\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }\n }\n }\n System.out.println(sb);\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i=1; i<=n; i++){\n if(i%3==0 || i%10==3 ){\n sb.append(\" \").append(i);\n }\n else {\n int j = i;\n while(j>=10) {\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }\n }\n }\n System.out.println(sb);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for(int i=1; i<=n; i++){\n if(i%3==0 || i%10==3 ){\n sb.append(\" \").append(i);\n }\n else {\n int j = i;\n while(j>=10) {\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i%3==0 || i%10==3 ){\n sb.append(\" \").append(i);\n }\n else {\n int j = i;\n while(j>=10) {\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }\n }\n }",
"{\n if(i%3==0 || i%10==3 ){\n sb.append(\" \").append(i);\n }\n else {\n int j = i;\n while(j>=10) {\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }\n }\n }",
"if(i%3==0 || i%10==3 ){\n sb.append(\" \").append(i);\n }\n else {\n int j = i;\n while(j>=10) {\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }\n }",
"i%3==0 || i%10==3",
"i%3==0",
"i%3",
"i",
"3",
"0",
"i%10==3",
"i%10",
"i",
"10",
"3",
"{\n sb.append(\" \").append(i);\n }",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"{\n int j = i;\n while(j>=10) {\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }\n }",
"int j = i;",
"j",
"i",
"while(j>=10) {\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }",
"j>=10",
"j",
"10",
"{\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }",
"j = j/10",
"j",
"j/10",
"j",
"10",
"if(j%10==3){sb.append(\" \").append(i);break;}",
"j%10==3",
"j%10",
"j",
"10",
"3",
"{sb.append(\" \").append(i);break;}",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"break;",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i=1; i<=n; i++){\n if(i%3==0 || i%10==3 ){\n sb.append(\" \").append(i);\n }\n else {\n int j = i;\n while(j>=10) {\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }\n }\n }\n System.out.println(sb);\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i=1; i<=n; i++){\n if(i%3==0 || i%10==3 ){\n sb.append(\" \").append(i);\n }\n else {\n int j = i;\n while(j>=10) {\n j = j/10;\n if(j%10==3){sb.append(\" \").append(i);break;} \n }\n }\n }\n System.out.println(sb);\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();
StringBuilder sb = new StringBuilder();
for(int i=1; i<=n; i++){
if(i%3==0 || i%10==3 ){
sb.append(" ").append(i);
}
else {
int j = i;
while(j>=10) {
j = j/10;
if(j%10==3){sb.append(" ").append(i);break;}
}
}
}
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
13,
9,
4,
13,
13,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
29,
17,
30,
29,
17,
23,
13,
12,
13,
30,
41,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
17,
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
],
[
111,
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
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
37,
43
],
[
43,
44
],
[
43,
45
],
[
13,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
11,
51
],
[
51,
52
],
[
111,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
56,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
62,
71
],
[
71,
72
],
[
56,
73
],
[
73,
74
],
[
74,
75
],
[
53,
76
],
[
76,
77
],
[
111,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
89,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
95,
104
],
[
88,
105
],
[
105,
106
],
[
105,
107
],
[
78,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tstatic int n;\n\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n = Integer.parseInt(br.readLine());\n for(int i = 1; i <= n; i++){\n \tif(CHECK_NUM(i)) continue;\n \tINCLUDE_3(i);\n }\n System.out.println();\n\t}\n\n\tpublic static boolean CHECK_NUM(int x){\n\t\tif ( x % 3 == 0 ){\n\t\t\tSystem.out.print(\" \" + x);\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic static void INCLUDE_3(int i){\n\t\tint x = i;\n\t\twhile(x != 0){\n\t\t\tif ( x % 10 == 3 ){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx /= 10;\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tstatic int n;\n\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n = Integer.parseInt(br.readLine());\n for(int i = 1; i <= n; i++){\n \tif(CHECK_NUM(i)) continue;\n \tINCLUDE_3(i);\n }\n System.out.println();\n\t}\n\n\tpublic static boolean CHECK_NUM(int x){\n\t\tif ( x % 3 == 0 ){\n\t\t\tSystem.out.print(\" \" + x);\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic static void INCLUDE_3(int i){\n\t\tint x = i;\n\t\twhile(x != 0){\n\t\t\tif ( x % 10 == 3 ){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx /= 10;\n\t\t}\n\t}\n}",
"Main",
"static int n;",
"n",
"public static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n = Integer.parseInt(br.readLine());\n for(int i = 1; i <= n; i++){\n \tif(CHECK_NUM(i)) continue;\n \tINCLUDE_3(i);\n }\n System.out.println();\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n = Integer.parseInt(br.readLine());\n for(int i = 1; i <= n; i++){\n \tif(CHECK_NUM(i)) continue;\n \tINCLUDE_3(i);\n }\n System.out.println();\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"n = Integer.parseInt(br.readLine())",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 1; i <= n; i++){\n \tif(CHECK_NUM(i)) continue;\n \tINCLUDE_3(i);\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tif(CHECK_NUM(i)) continue;\n \tINCLUDE_3(i);\n }",
"{\n \tif(CHECK_NUM(i)) continue;\n \tINCLUDE_3(i);\n }",
"if(CHECK_NUM(i)) continue;",
"CHECK_NUM(i)",
"CHECK_NUM",
"i",
"continue;",
"INCLUDE_3(i)",
"INCLUDE_3",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public static boolean CHECK_NUM(int x){\n\t\tif ( x % 3 == 0 ){\n\t\t\tSystem.out.print(\" \" + x);\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}",
"CHECK_NUM",
"{\n\t\tif ( x % 3 == 0 ){\n\t\t\tSystem.out.print(\" \" + x);\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}",
"if ( x % 3 == 0 ){\n\t\t\tSystem.out.print(\" \" + x);\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\tSystem.out.print(\" \" + x);\n\t\t\treturn true;\n\t\t}",
"System.out.print(\" \" + x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + x",
"\" \"",
"x",
"return true;",
"true",
"{\n\t\t\treturn false;\n\t\t}",
"return false;",
"false",
"int x",
"x",
"public static void INCLUDE_3(int i){\n\t\tint x = i;\n\t\twhile(x != 0){\n\t\t\tif ( x % 10 == 3 ){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx /= 10;\n\t\t}\n\t}",
"INCLUDE_3",
"{\n\t\tint x = i;\n\t\twhile(x != 0){\n\t\t\tif ( x % 10 == 3 ){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx /= 10;\n\t\t}\n\t}",
"int x = i;",
"x",
"i",
"while(x != 0){\n\t\t\tif ( x % 10 == 3 ){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx /= 10;\n\t\t}",
"x != 0",
"x",
"0",
"{\n\t\t\tif ( x % 10 == 3 ){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx /= 10;\n\t\t}",
"if ( x % 10 == 3 ){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tbreak;\n\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"break;",
"x /= 10",
"x",
"10",
"int i",
"i",
"public class Main {\n\tstatic int n;\n\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n = Integer.parseInt(br.readLine());\n for(int i = 1; i <= n; i++){\n \tif(CHECK_NUM(i)) continue;\n \tINCLUDE_3(i);\n }\n System.out.println();\n\t}\n\n\tpublic static boolean CHECK_NUM(int x){\n\t\tif ( x % 3 == 0 ){\n\t\t\tSystem.out.print(\" \" + x);\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic static void INCLUDE_3(int i){\n\t\tint x = i;\n\t\twhile(x != 0){\n\t\t\tif ( x % 10 == 3 ){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx /= 10;\n\t\t}\n\t}\n}",
"public class Main {\n\tstatic int n;\n\n\tpublic static void main(String[] args) throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n n = Integer.parseInt(br.readLine());\n for(int i = 1; i <= n; i++){\n \tif(CHECK_NUM(i)) continue;\n \tINCLUDE_3(i);\n }\n System.out.println();\n\t}\n\n\tpublic static boolean CHECK_NUM(int x){\n\t\tif ( x % 3 == 0 ){\n\t\t\tSystem.out.print(\" \" + x);\n\t\t\treturn true;\n\t\t}else{\n\t\t\treturn false;\n\t\t}\n\t}\n\n\tpublic static void INCLUDE_3(int i){\n\t\tint x = i;\n\t\twhile(x != 0){\n\t\t\tif ( x % 10 == 3 ){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\tx /= 10;\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
static int n;
public static void main(String[] args) throws Exception{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
n = Integer.parseInt(br.readLine());
for(int i = 1; i <= n; i++){
if(CHECK_NUM(i)) continue;
INCLUDE_3(i);
}
System.out.println();
}
public static boolean CHECK_NUM(int x){
if ( x % 3 == 0 ){
System.out.print(" " + x);
return true;
}else{
return false;
}
}
public static void INCLUDE_3(int i){
int x = i;
while(x != 0){
if ( x % 10 == 3 ){
System.out.print(" " + i);
break;
}
x /= 10;
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
38,
5,
13,
30,
4,
18,
13,
5,
13,
30,
4,
18,
13,
30,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
17,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
30,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
124,
11
],
[
124,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
21,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
21,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
37,
38
],
[
38,
39
],
[
14,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
14,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
46,
57
],
[
58,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
61,
63
],
[
58,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
64,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
64,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
95,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
99,
103
],
[
98,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
112,
114
],
[
104,
115
],
[
14,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
12,
121
],
[
121,
122
],
[
0,
123
],
[
123,
124
],
[
123,
125
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tint n = Integer.parseInt(x);\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint num = i + 1;\n\t\t\tif (((num % 3) == 0) || ((num % 10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t} else {\n\t\t\t\twhile (num != 0) {\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tint n = Integer.parseInt(x);\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint num = i + 1;\n\t\t\tif (((num % 3) == 0) || ((num % 10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t} else {\n\t\t\t\twhile (num != 0) {\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tint n = Integer.parseInt(x);\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint num = i + 1;\n\t\t\tif (((num % 3) == 0) || ((num % 10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t} else {\n\t\t\t\twhile (num != 0) {\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tint n = Integer.parseInt(x);\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint num = i + 1;\n\t\t\tif (((num % 3) == 0) || ((num % 10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t} else {\n\t\t\t\twhile (num != 0) {\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"String x = \"\";",
"x",
"\"\"",
"try {\n\t\t\tx = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"NumberFormatException e",
"{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tx = in.readLine();\n\t\t}",
"x = in.readLine()",
"x",
"in.readLine()",
"in.readLine",
"in",
"int n = Integer.parseInt(x);",
"n",
"Integer.parseInt(x)",
"Integer.parseInt",
"Integer",
"x",
"for (int i = 0; i < n; i++) {\n\t\t\tint num = i + 1;\n\t\t\tif (((num % 3) == 0) || ((num % 10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t} else {\n\t\t\t\twhile (num != 0) {\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint num = i + 1;\n\t\t\tif (((num % 3) == 0) || ((num % 10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t} else {\n\t\t\t\twhile (num != 0) {\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tint num = i + 1;\n\t\t\tif (((num % 3) == 0) || ((num % 10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t} else {\n\t\t\t\twhile (num != 0) {\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int num = i + 1;",
"num",
"i + 1",
"i",
"1",
"if (((num % 3) == 0) || ((num % 10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t} else {\n\t\t\t\twhile (num != 0) {\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"((num % 3) == 0) || ((num % 10) == 3)",
"((num % 3) == 0)",
"(num % 3)",
"num",
"3",
"0",
"((num % 10) == 3)",
"(num % 10)",
"num",
"10",
"3",
"{\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t}",
"System.out.print(\" \" + (i + 1))",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + (i + 1)",
"\" \"",
"(i + 1)",
"i",
"1",
"{\n\t\t\t\twhile (num != 0) {\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"while (num != 0) {\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"num != 0",
"num",
"0",
"{\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"num = num / 10",
"num",
"num / 10",
"num",
"10",
"if ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"(num % 10) == 3",
"(num % 10)",
"num",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"System.out.print(\" \" + (i + 1))",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + (i + 1)",
"\" \"",
"(i + 1)",
"i",
"1",
"break;",
"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\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tint n = Integer.parseInt(x);\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint num = i + 1;\n\t\t\tif (((num % 3) == 0) || ((num % 10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t} else {\n\t\t\t\twhile (num != 0) {\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n \n\t\tString x = \"\";\n\t\ttry {\n\t\t\tx = in.readLine();\n\t\t} catch (NumberFormatException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t} catch (IOException e) {\n\t\t\t// TODO Auto-generated catch block\n\t\t\te.printStackTrace();\n\t\t}\n\n\t\tint n = Integer.parseInt(x);\n\t\t\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tint num = i + 1;\n\t\t\tif (((num % 3) == 0) || ((num % 10) == 3)) {\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t} else {\n\t\t\t\twhile (num != 0) {\n\t\t\t\t\tnum = num / 10;\n\t\t\t\t\tif ((num % 10) == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
String x = "";
try {
x = in.readLine();
} catch (NumberFormatException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
int n = Integer.parseInt(x);
for (int i = 0; i < n; i++) {
int num = i + 1;
if (((num % 3) == 0) || ((num % 10) == 3)) {
System.out.print(" " + (i + 1));
} else {
while (num != 0) {
num = num / 10;
if ((num % 10) == 3) {
System.out.print(" " + (i + 1));
break;
}
}
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
13,
17,
2,
13,
17,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
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
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
35,
32
],
[
64,
33
],
[
53,
34
],
[
46,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
50,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
64,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
35,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
75,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
30,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
86,
91
],
[
91,
92
],
[
91,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] | [
"import java.util.Scanner;\npublic class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n for(int i = 1; i <= n; i++){\n if(i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999) System.out.print(\" \" + i);\n }\n System.out.println();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n for(int i = 1; i <= n; i++){\n if(i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999) System.out.print(\" \" + i);\n }\n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n for(int i = 1; i <= n; i++){\n if(i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999) System.out.print(\" \" + i);\n }\n System.out.println();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n for(int i = 1; i <= n; i++){\n if(i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999) System.out.print(\" \" + i);\n }\n System.out.println();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 1; i <= n; i++){\n if(i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999) System.out.print(\" \" + i);\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999) System.out.print(\" \" + i);\n }",
"{\n if(i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999) System.out.print(\" \" + i);\n }",
"if(i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999) System.out.print(\" \" + i);",
"i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999",
"i % 1000 >= 300 && i % 1000 <= 399",
"i % 100 >= 30 && i % 100 <= 39",
"i >= 30 && i < 40",
"i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"i >= 30 && i < 40",
"i >= 30",
"i",
"30",
"i < 40",
"i",
"40",
"i % 100 >= 30 && i % 100 <= 39",
"i % 100 >= 30",
"i % 100",
"i",
"100",
"30",
"i % 100 <= 39",
"i % 100",
"i",
"100",
"39",
"i % 1000 >= 300 && i % 1000 <= 399",
"i % 1000 >= 300",
"i % 1000",
"i",
"1000",
"300",
"i % 1000 <= 399",
"i % 1000",
"i",
"1000",
"399",
"i % 10000 >= 3000 && i % 10000 <= 3999",
"i % 10000 >= 3000",
"i % 10000",
"i",
"10000",
"3000",
"i % 10000 <= 3999",
"i % 10000",
"i",
"10000",
"3999",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"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\n int n = sc.nextInt();\n\n for(int i = 1; i <= n; i++){\n if(i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999) System.out.print(\" \" + i);\n }\n System.out.println();\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n\n int n = sc.nextInt();\n\n for(int i = 1; i <= n; i++){\n if(i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999) System.out.print(\" \" + i);\n }\n System.out.println();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i = 1; i <= n; i++){
if(i % 3 == 0 || i % 10 == 3 || i >= 30 && i < 40 || i % 100 >= 30 && i % 100 <= 39 || i % 1000 >= 300 && i % 1000 <= 399 || i % 10000 >= 3000 && i % 10000 <= 3999) System.out.print(" " + i);
}
System.out.println();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
9,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
9,
42,
2,
0,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
13,
13,
3,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
103,
8
],
[
103,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
45,
54
],
[
35,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
61,
70
],
[
35,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
78,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
84,
93
],
[
11,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
9,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tString blank = \" \";\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x %3 == 0) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (x %10 == 3) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile ((x/= 10) != 0) {\n\t\t\t\tif (x %10 == 3) {\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tString blank = \" \";\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x %3 == 0) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (x %10 == 3) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile ((x/= 10) != 0) {\n\t\t\t\tif (x %10 == 3) {\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\n\t\tString blank = \" \";\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x %3 == 0) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (x %10 == 3) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile ((x/= 10) != 0) {\n\t\t\t\tif (x %10 == 3) {\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"main",
"{\n\n\t\tString blank = \" \";\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x %3 == 0) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (x %10 == 3) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile ((x/= 10) != 0) {\n\t\t\t\tif (x %10 == 3) {\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"String blank = \" \";",
"blank",
"\" \"",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x %3 == 0) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (x %10 == 3) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile ((x/= 10) != 0) {\n\t\t\t\tif (x %10 == 3) {\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tint x = i;\n\t\t\tif (x %3 == 0) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (x %10 == 3) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile ((x/= 10) != 0) {\n\t\t\t\tif (x %10 == 3) {\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tint x = i;\n\t\t\tif (x %3 == 0) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (x %10 == 3) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile ((x/= 10) != 0) {\n\t\t\t\tif (x %10 == 3) {\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int x = i;",
"x",
"i",
"if (x %3 == 0) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}",
"x %3 == 0",
"x %3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}",
"System.out.print(blank + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"blank + i",
"blank",
"i",
"continue;",
"if (x %10 == 3) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}",
"x %10 == 3",
"x %10",
"x",
"10",
"3",
"{\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}",
"System.out.print(blank + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"blank + i",
"blank",
"i",
"continue;",
"while ((x/= 10) != 0) {\n\t\t\t\tif (x %10 == 3) {\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"(x/= 10) != 0",
"(x/= 10)",
"x",
"10",
"0",
"{\n\t\t\t\tif (x %10 == 3) {\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if (x %10 == 3) {\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"x %10 == 3",
"x %10",
"x",
"10",
"3",
"{\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"System.out.print(blank + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"blank + i",
"blank",
"i",
"break;",
"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) throws IOException {\n\n\t\tString blank = \" \";\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x %3 == 0) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (x %10 == 3) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile ((x/= 10) != 0) {\n\t\t\t\tif (x %10 == 3) {\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\n\t\tString blank = \" \";\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x %3 == 0) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif (x %10 == 3) {\n\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\twhile ((x/= 10) != 0) {\n\t\t\t\tif (x %10 == 3) {\n\t\t\t\t\tSystem.out.print(blank + i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws IOException {
String blank = " ";
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 1; i <= n; i++) {
int x = i;
if (x %3 == 0) {
System.out.print(blank + i);
continue;
}
if (x %10 == 3) {
System.out.print(blank + i);
continue;
}
while ((x/= 10) != 0) {
if (x %10 == 3) {
System.out.print(blank + i);
break;
}
}
}
System.out.println("");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
30,
0,
13,
2,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
3,
0,
13,
17,
4,
18,
18,
13,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
112,
8
],
[
112,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
16,
21
],
[
12,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
22,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
34,
35
],
[
35,
36
],
[
22,
37
],
[
37,
38
],
[
37,
39
],
[
22,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
45,
47
],
[
40,
48
],
[
48,
49
],
[
49,
50
],
[
40,
51
],
[
52,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
53,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
53,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
93,
95
],
[
89,
96
],
[
82,
97
],
[
97,
98
],
[
97,
99
],
[
22,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
22,
106
],
[
106,
107
],
[
107,
108
],
[
9,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\tStringBuilder s=new StringBuilder(); \n\t\t\tint val = Integer.parseInt(br.readLine());\n\t\t\tint x = 0;\n\n\t\t\tfor (int i = 1; i <= val; i++) {\n\t\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(s);\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\tStringBuilder s=new StringBuilder(); \n\t\t\tint val = Integer.parseInt(br.readLine());\n\t\t\tint x = 0;\n\n\t\t\tfor (int i = 1; i <= val; i++) {\n\t\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(s);\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\tStringBuilder s=new StringBuilder(); \n\t\t\tint val = Integer.parseInt(br.readLine());\n\t\t\tint x = 0;\n\n\t\t\tfor (int i = 1; i <= val; i++) {\n\t\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(s);\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}",
"main",
"{\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\tStringBuilder s=new StringBuilder(); \n\t\t\tint val = Integer.parseInt(br.readLine());\n\t\t\tint x = 0;\n\n\t\t\tfor (int i = 1; i <= val; i++) {\n\t\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(s);\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}",
"try {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\tStringBuilder s=new StringBuilder(); \n\t\t\tint val = Integer.parseInt(br.readLine());\n\t\t\tint x = 0;\n\n\t\t\tfor (int i = 1; i <= val; i++) {\n\t\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(s);\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}",
"catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}",
"Exception e",
"{\n\t\t\tSystem.err.println(e);\n\t\t}",
"System.err.println(e)",
"System.err.println",
"System.err",
"System",
"System.err",
"e",
"{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\tStringBuilder s=new StringBuilder(); \n\t\t\tint val = Integer.parseInt(br.readLine());\n\t\t\tint x = 0;\n\n\t\t\tfor (int i = 1; i <= val; i++) {\n\t\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(s);\n\t\t\tbr.close();\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));",
"br",
"new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in))",
"StringBuilder s=new StringBuilder();",
"s",
"new StringBuilder()",
"int val = Integer.parseInt(br.readLine());",
"val",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"int x = 0;",
"x",
"0",
"for (int i = 1; i <= val; i++) {\n\t\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= val",
"i",
"val",
"i++",
"i++",
"i",
"{\n\t\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}",
"i % 3 == 0 || i % 10 == 3",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"{\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t}",
"s.append(\" \" + i)",
"s.append",
"s",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}",
"x = i / 10",
"x",
"i / 10",
"i",
"10",
"while (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}",
"x != 0",
"x",
"0",
"{\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}",
"if (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"s.append(\" \" + i)",
"s.append",
"s",
"\" \" + i",
"\" \"",
"i",
"break;",
"x /= 10",
"x",
"10",
"System.out.println(s)",
"System.out.println",
"System.out",
"System",
"System.out",
"s",
"br.close()",
"br.close",
"br",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\tStringBuilder s=new StringBuilder(); \n\t\t\tint val = Integer.parseInt(br.readLine());\n\t\t\tint x = 0;\n\n\t\t\tfor (int i = 1; i <= val; i++) {\n\t\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(s);\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(\n\t\t\t\t\tSystem.in));\n\t\t\tStringBuilder s=new StringBuilder(); \n\t\t\tint val = Integer.parseInt(br.readLine());\n\t\t\tint x = 0;\n\n\t\t\tfor (int i = 1; i <= val; i++) {\n\t\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t} else {\n\t\t\t\t\tx = i / 10;\n\t\t\t\t\twhile (x != 0) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\ts.append(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(s);\n\t\t\tbr.close();\n\t\t} catch (Exception e) {\n\t\t\tSystem.err.println(e);\n\t\t}\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(
System.in));
StringBuilder s=new StringBuilder();
int val = Integer.parseInt(br.readLine());
int x = 0;
for (int i = 1; i <= val; i++) {
if (i % 3 == 0 || i % 10 == 3) {
s.append(" " + i);
} else {
x = i / 10;
while (x != 0) {
if (x % 10 == 3) {
s.append(" " + i);
break;
}
x /= 10;
}
}
}
System.out.println(s);
br.close();
} catch (Exception e) {
System.err.println(e);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
17,
30,
41,
13,
20,
41,
13,
20,
11,
1,
41,
13,
4,
18,
13,
2,
13,
17,
1,
0,
13,
4,
18,
13,
30,
30,
4,
18,
13,
13,
4,
18,
13,
41,
13,
4,
18,
13,
4,
18,
13,
17,
0,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
14,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
13,
2,
17,
13,
4,
18,
18,
13,
13,
4,
18,
13,
4,
18,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
19,
20
],
[
19,
21
],
[
0,
22
],
[
169,
23
],
[
169,
24
],
[
24,
25
],
[
169,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
33,
38
],
[
38,
39
],
[
39,
40
],
[
32,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
49,
50
],
[
50,
51
],
[
32,
52
],
[
52,
53
],
[
53,
54
],
[
52,
55
],
[
29,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
60,
62
],
[
56,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
68,
69
],
[
63,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
63,
79
],
[
80,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
56,
85
],
[
85,
86
],
[
86,
87
],
[
56,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
56,
97
],
[
97,
98
],
[
97,
99
],
[
56,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
100,
108
],
[
108,
109
],
[
109,
110
],
[
100,
111
],
[
112,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
113,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
120,
123
],
[
123,
124
],
[
123,
125
],
[
113,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
128,
130
],
[
127,
131
],
[
126,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
133,
136
],
[
136,
137
],
[
136,
138
],
[
126,
139
],
[
139,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
143,
144
],
[
142,
145
],
[
140,
146
],
[
139,
147
],
[
147,
148
],
[
148,
149
],
[
149,
150
],
[
148,
151
],
[
151,
152
],
[
151,
153
],
[
56,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
156,
158
],
[
154,
159
],
[
159,
160
],
[
160,
161
],
[
56,
162
],
[
162,
163
],
[
163,
164
],
[
162,
165
],
[
26,
166
],
[
166,
167
],
[
0,
168
],
[
168,
169
],
[
168,
170
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\nimport java.util.List;\nimport java.util.ArrayList;\nimport java.util.Collections;\nimport java.util.Comparator;\n\n// void call(int n){\n// int i = 1;\n// CHECK_NUM:\n// int x = i;\n// if ( x % 3 == 0 ){\n// cout << \" \" << i;\n// goto END_CHECK_NUM;\n// }\n// INCLUDE3:\n// if ( x % 10 == 3 ){\n// cout << \" \" << i;\n// goto END_CHECK_NUM;\n// }\n// x /= 10;\n// if ( x ) goto INCLUDE3;\n// END_CHECK_NUM:\n// if ( ++i <= n ) goto CHECK_NUM;\n//\n// cout << endl;\n// }\n\npublic class Main{\n\n static StringBuilder sb;\n\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\t //lines.add(\"60\");\n\t br.close();\n\n\t Integer n = Integer.parseInt(lines.get(0));\n\t sb = new StringBuilder();\n\n\t for (int i = 1; i <= n; i++) {\n\t\tif (i%3==0) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}\n\t }\n\t System.out.println(sb.toString());\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.List;",
"List",
"java.util",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Collections;",
"Collections",
"java.util",
"import java.util.Comparator;",
"Comparator",
"java.util",
"public class Main{\n\n static StringBuilder sb;\n\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\t //lines.add(\"60\");\n\t br.close();\n\n\t Integer n = Integer.parseInt(lines.get(0));\n\t sb = new StringBuilder();\n\n\t for (int i = 1; i <= n; i++) {\n\t\tif (i%3==0) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}\n\t }\n\t System.out.println(sb.toString());\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}",
"Main",
"static StringBuilder sb;",
"sb",
"public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\t //lines.add(\"60\");\n\t br.close();\n\n\t Integer n = Integer.parseInt(lines.get(0));\n\t sb = new StringBuilder();\n\n\t for (int i = 1; i <= n; i++) {\n\t\tif (i%3==0) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}\n\t }\n\t System.out.println(sb.toString());\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }",
"main",
"{\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\t //lines.add(\"60\");\n\t br.close();\n\n\t Integer n = Integer.parseInt(lines.get(0));\n\t sb = new StringBuilder();\n\n\t for (int i = 1; i <= n; i++) {\n\t\tif (i%3==0) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}\n\t }\n\t System.out.println(sb.toString());\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }",
"try {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\t //lines.add(\"60\");\n\t br.close();\n\n\t Integer n = Integer.parseInt(lines.get(0));\n\t sb = new StringBuilder();\n\n\t for (int i = 1; i <= n; i++) {\n\t\tif (i%3==0) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}\n\t }\n\t System.out.println(sb.toString());\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}",
"catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}",
"Exception e",
"{\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}",
"System.out.println(e.getMessage())",
"System.out.println",
"System.out",
"System",
"System.out",
"e.getMessage()",
"e.getMessage",
"e",
"System.out.println(Arrays.toString(e.getStackTrace()))",
"System.out.println",
"System.out",
"System",
"System.out",
"Arrays.toString(e.getStackTrace())",
"Arrays.toString",
"Arrays",
"e.getStackTrace()",
"e.getStackTrace",
"e",
"System.exit(0)",
"System.exit",
"System",
"0",
"{\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\t //lines.add(\"60\");\n\t br.close();\n\n\t Integer n = Integer.parseInt(lines.get(0));\n\t sb = new StringBuilder();\n\n\t for (int i = 1; i <= n; i++) {\n\t\tif (i%3==0) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}\n\t }\n\t System.out.println(sb.toString());\n\t System.exit(0);\n\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"List<String> lines = new ArrayList<String>();",
"lines",
"new ArrayList<String>()",
"for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }",
"String line = br.readLine();",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"line != null",
"line",
"null",
"line = br.readLine()",
"line = br.readLine()",
"line",
"br.readLine()",
"br.readLine",
"br",
"{\n\t\tlines.add(line);\n\t }",
"{\n\t\tlines.add(line);\n\t }",
"lines.add(line)",
"lines.add",
"lines",
"line",
"br.close()",
"br.close",
"br",
"Integer n = Integer.parseInt(lines.get(0));",
"n",
"Integer.parseInt(lines.get(0))",
"Integer.parseInt",
"Integer",
"lines.get(0)",
"lines.get",
"lines",
"0",
"sb = new StringBuilder()",
"sb",
"new StringBuilder()",
"for (int i = 1; i <= n; i++) {\n\t\tif (i%3==0) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}\n\t }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\tif (i%3==0) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}\n\t }",
"{\n\t\tif (i%3==0) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}\n\t }",
"if (i%3==0) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}",
"i%3==0",
"i%3",
"i",
"3",
"0",
"{\n\t\t sb.append(\" \" + i);\n\t\t}",
"sb.append(\" \" + i)",
"sb.append",
"sb",
"\" \" + i",
"\" \"",
"i",
"if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}",
"i%10==3",
"i%10",
"i",
"10",
"3",
"{\n\t\t sb.append(\" \" + i);\n\t\t}",
"sb.append(\" \" + i)",
"sb.append",
"sb",
"\" \" + i",
"\" \"",
"i",
"if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}",
"String.valueOf(i).contains(\"3\")",
"String.valueOf(i).contains",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"\"3\"",
"{\n\t\t sb.append(\" \" + i);\n\t\t}",
"sb.append(\" \" + i)",
"sb.append",
"sb",
"\" \" + i",
"\" \"",
"i",
"System.out.println(sb.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"public class Main{\n\n static StringBuilder sb;\n\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\t //lines.add(\"60\");\n\t br.close();\n\n\t Integer n = Integer.parseInt(lines.get(0));\n\t sb = new StringBuilder();\n\n\t for (int i = 1; i <= n; i++) {\n\t\tif (i%3==0) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}\n\t }\n\t System.out.println(sb.toString());\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}",
"public class Main{\n\n static StringBuilder sb;\n\n public static void main(String[] args) {\n\ttry {\n\t BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t List<String> lines = new ArrayList<String>();\n\n\t for (String line = br.readLine(); line != null; line = br.readLine()) {\n\t\tlines.add(line);\n\t }\n\t //lines.add(\"60\");\n\t br.close();\n\n\t Integer n = Integer.parseInt(lines.get(0));\n\t sb = new StringBuilder();\n\n\t for (int i = 1; i <= n; i++) {\n\t\tif (i%3==0) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (i%10==3) {\n\t\t sb.append(\" \" + i);\n\t\t} else if (String.valueOf(i).contains(\"3\")) {\n\t\t sb.append(\" \" + i);\n\t\t}\n\t }\n\t System.out.println(sb.toString());\n\t System.exit(0);\n\n\t} catch (Exception e) {\n\t System.out.println(e.getMessage());\n\t System.out.println(Arrays.toString(e.getStackTrace()));\n\t System.exit(0);\n\t}\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.Arrays;
import java.util.List;
import java.util.ArrayList;
import java.util.Collections;
import java.util.Comparator;
// void call(int n){
// int i = 1;
// CHECK_NUM:
// int x = i;
// if ( x % 3 == 0 ){
// cout << " " << i;
// goto END_CHECK_NUM;
// }
// INCLUDE3:
// if ( x % 10 == 3 ){
// cout << " " << i;
// goto END_CHECK_NUM;
// }
// x /= 10;
// if ( x ) goto INCLUDE3;
// END_CHECK_NUM:
// if ( ++i <= n ) goto CHECK_NUM;
//
// cout << endl;
// }
public class Main{
static StringBuilder sb;
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
List<String> lines = new ArrayList<String>();
for (String line = br.readLine(); line != null; line = br.readLine()) {
lines.add(line);
}
//lines.add("60");
br.close();
Integer n = Integer.parseInt(lines.get(0));
sb = new StringBuilder();
for (int i = 1; i <= n; i++) {
if (i%3==0) {
sb.append(" " + i);
} else if (i%10==3) {
sb.append(" " + i);
} else if (String.valueOf(i).contains("3")) {
sb.append(" " + i);
}
}
System.out.println(sb.toString());
System.exit(0);
} catch (Exception e) {
System.out.println(e.getMessage());
System.out.println(Arrays.toString(e.getStackTrace()));
System.exit(0);
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
13,
23,
13,
12,
13,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
18,
19
],
[
17,
20
],
[
6,
21
],
[
21,
22
],
[
70,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
40,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
46,
52
],
[
39,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
54,
60
],
[
25,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
23,
67
],
[
67,
68
],
[
0,
69
],
[
69,
70
],
[
69,
71
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n int n = stdin.nextInt();\n Main.call(n);\n }\n\n private static void call(int n) {\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n System.out.printf(\" %d\", i);\n }\n }\n System.out.println(\"\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n int n = stdin.nextInt();\n Main.call(n);\n }\n\n private static void call(int n) {\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n System.out.printf(\" %d\", i);\n }\n }\n System.out.println(\"\");\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n int n = stdin.nextInt();\n Main.call(n);\n }",
"main",
"{\n Scanner stdin = new Scanner(System.in);\n int n = stdin.nextInt();\n Main.call(n);\n }",
"Scanner stdin = new Scanner(System.in);",
"stdin",
"new Scanner(System.in)",
"int n = stdin.nextInt();",
"n",
"stdin.nextInt()",
"stdin.nextInt",
"stdin",
"Main.call(n)",
"Main.call",
"Main",
"n",
"String[] args",
"args",
"private static void call(int n) {\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n System.out.printf(\" %d\", i);\n }\n }\n System.out.println(\"\");\n }",
"call",
"{\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n System.out.printf(\" %d\", i);\n }\n }\n System.out.println(\"\");\n }",
"for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n System.out.printf(\" %d\", i);\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n System.out.printf(\" %d\", i);\n }\n }",
"{\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n System.out.printf(\" %d\", i);\n }\n }",
"if (i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n System.out.printf(\" %d\", i);\n }",
"i % 3 == 0 || String.valueOf(i).contains(\"3\")",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"String.valueOf(i).contains(\"3\")",
"String.valueOf(i).contains",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"\"3\"",
"{\n System.out.printf(\" %d\", i);\n }",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"int n",
"n",
"public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n int n = stdin.nextInt();\n Main.call(n);\n }\n\n private static void call(int n) {\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n System.out.printf(\" %d\", i);\n }\n }\n System.out.println(\"\");\n }\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner stdin = new Scanner(System.in);\n int n = stdin.nextInt();\n Main.call(n);\n }\n\n private static void call(int n) {\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n System.out.printf(\" %d\", i);\n }\n }\n System.out.println(\"\");\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdin = new Scanner(System.in);
int n = stdin.nextInt();
Main.call(n);
}
private static void call(int n) {
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || String.valueOf(i).contains("3")) {
System.out.printf(" %d", i);
}
}
System.out.println("");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
13,
17,
30,
0,
13,
13,
42,
2,
13,
17,
30,
0,
13,
17,
14,
2,
2,
13,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
19,
24
],
[
24,
25
],
[
24,
26
],
[
19,
27
],
[
27,
28
],
[
28,
29
],
[
19,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
32,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
32,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
65,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
69,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
79,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint tmp;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if (i >= 30) {\n\t\t\t\ttmp = i;\n\t\t\t\twhile (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\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 n = sc.nextInt();\n\t\tint tmp;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if (i >= 30) {\n\t\t\t\ttmp = i;\n\t\t\t\twhile (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint tmp;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if (i >= 30) {\n\t\t\t\ttmp = i;\n\t\t\t\twhile (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tint n = sc.nextInt();\n\t\tint tmp;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if (i >= 30) {\n\t\t\t\ttmp = i;\n\t\t\t\twhile (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int tmp;",
"tmp",
"for (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if (i >= 30) {\n\t\t\t\ttmp = i;\n\t\t\t\twhile (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if (i >= 30) {\n\t\t\t\ttmp = i;\n\t\t\t\twhile (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if (i >= 30) {\n\t\t\t\ttmp = i;\n\t\t\t\twhile (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}",
"if (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if (i >= 30) {\n\t\t\t\ttmp = i;\n\t\t\t\twhile (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"i % 3 == 0 || i % 10 == 3",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"if (i >= 30) {\n\t\t\t\ttmp = i;\n\t\t\t\twhile (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"i >= 30",
"i",
"30",
"{\n\t\t\t\ttmp = i;\n\t\t\t\twhile (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}",
"tmp = i",
"tmp",
"i",
"while (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"tmp >= 30",
"tmp",
"30",
"{\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"tmp /= 10",
"tmp",
"10",
"if (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"tmp == 3 || tmp % 10 == 3",
"tmp == 3",
"tmp",
"3",
"tmp % 10 == 3",
"tmp % 10",
"tmp",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"break;",
"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 n = sc.nextInt();\n\t\tint tmp;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if (i >= 30) {\n\t\t\t\ttmp = i;\n\t\t\t\twhile (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\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 n = sc.nextInt();\n\t\tint tmp;\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0 || i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if (i >= 30) {\n\t\t\t\ttmp = i;\n\t\t\t\twhile (tmp >= 30) {\n\t\t\t\t\ttmp /= 10;\n\n\t\t\t\t\tif (tmp == 3 || tmp % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int tmp;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 10 == 3) {
System.out.print(" " + i);
} else if (i >= 30) {
tmp = i;
while (tmp >= 30) {
tmp /= 10;
if (tmp == 3 || tmp % 10 == 3) {
System.out.print(" " + i);
break;
}
}
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
4,
18,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
63,
8
],
[
63,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
32,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
11,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
9,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\npublic class Main {\n\t\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfinal int n = sc.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tif(i % 3 == 0 || (i + \"\").contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfinal int n = sc.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tif(i % 3 == 0 || (i + \"\").contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfinal int n = sc.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tif(i % 3 == 0 || (i + \"\").contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfinal int n = sc.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tif(i % 3 == 0 || (i + \"\").contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"final int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 1; i <= n; i++){\n\t\t\tif(i % 3 == 0 || (i + \"\").contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % 3 == 0 || (i + \"\").contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % 3 == 0 || (i + \"\").contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}",
"if(i % 3 == 0 || (i + \"\").contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"i % 3 == 0 || (i + \"\").contains(\"3\")",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"(i + \"\").contains(\"3\")",
"(i + \"\").contains",
"(i + \"\")",
"i",
"\"\"",
"\"3\"",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String args[]",
"args",
"public class Main {\n\t\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfinal int n = sc.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tif(i % 3 == 0 || (i + \"\").contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"public class Main {\n\t\n\t\n\tpublic static void main(String args[]) {\n\t\tScanner sc = new Scanner(System.in);\n\n\t\tfinal int n = sc.nextInt();\n\t\t\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tif(i % 3 == 0 || (i + \"\").contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"Main"
] | import java.util.Arrays;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
final int n = sc.nextInt();
for(int i = 1; i <= n; i++){
if(i % 3 == 0 || (i + "").contains("3")){
System.out.print(" " + i);
}
}
System.out.println();
}
} |
[
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,
20,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
30,
0,
13,
4,
18,
13,
13,
14,
4,
18,
13,
17,
30,
4,
18,
13,
2,
17,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
100,
11
],
[
100,
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
],
[
14,
29
],
[
29,
30
],
[
14,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
31,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
31,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
54,
55
],
[
54,
56
],
[
44,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
64,
67
],
[
67,
68
],
[
67,
69
],
[
57,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
70,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
86,
88
],
[
14,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
95,
96
],
[
12,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint inputData = Integer.parseInt(in.readLine());\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\n\t\tfor (int i = 1; i <= inputData; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else {\n\t\t\t\tstr = Integer.toString(i);\n\t\t\t\tif (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}\n\t\t\t\t// char[] ch = str.toCharArray();\n\t\t\t\t// for (int j = 0; j < ch.length; j++) {\n\t\t\t\t// if (ch[j] == '3') {\n\t\t\t\t// sb.append(\" \" + i);\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint inputData = Integer.parseInt(in.readLine());\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\n\t\tfor (int i = 1; i <= inputData; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else {\n\t\t\t\tstr = Integer.toString(i);\n\t\t\t\tif (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}\n\t\t\t\t// char[] ch = str.toCharArray();\n\t\t\t\t// for (int j = 0; j < ch.length; j++) {\n\t\t\t\t// if (ch[j] == '3') {\n\t\t\t\t// sb.append(\" \" + i);\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint inputData = Integer.parseInt(in.readLine());\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\n\t\tfor (int i = 1; i <= inputData; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else {\n\t\t\t\tstr = Integer.toString(i);\n\t\t\t\tif (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}\n\t\t\t\t// char[] ch = str.toCharArray();\n\t\t\t\t// for (int j = 0; j < ch.length; j++) {\n\t\t\t\t// if (ch[j] == '3') {\n\t\t\t\t// sb.append(\" \" + i);\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}",
"main",
"{\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint inputData = Integer.parseInt(in.readLine());\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\n\t\tfor (int i = 1; i <= inputData; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else {\n\t\t\t\tstr = Integer.toString(i);\n\t\t\t\tif (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}\n\t\t\t\t// char[] ch = str.toCharArray();\n\t\t\t\t// for (int j = 0; j < ch.length; j++) {\n\t\t\t\t// if (ch[j] == '3') {\n\t\t\t\t// sb.append(\" \" + i);\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"int inputData = Integer.parseInt(in.readLine());",
"inputData",
"Integer.parseInt(in.readLine())",
"Integer.parseInt",
"Integer",
"in.readLine()",
"in.readLine",
"in",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"String str;",
"str",
"for (int i = 1; i <= inputData; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else {\n\t\t\t\tstr = Integer.toString(i);\n\t\t\t\tif (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}\n\t\t\t\t// char[] ch = str.toCharArray();\n\t\t\t\t// for (int j = 0; j < ch.length; j++) {\n\t\t\t\t// if (ch[j] == '3') {\n\t\t\t\t// sb.append(\" \" + i);\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\t// }\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= inputData",
"i",
"inputData",
"i++",
"i++",
"i",
"{\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else {\n\t\t\t\tstr = Integer.toString(i);\n\t\t\t\tif (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}\n\t\t\t\t// char[] ch = str.toCharArray();\n\t\t\t\t// for (int j = 0; j < ch.length; j++) {\n\t\t\t\t// if (ch[j] == '3') {\n\t\t\t\t// sb.append(\" \" + i);\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\t// }\n\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else {\n\t\t\t\tstr = Integer.toString(i);\n\t\t\t\tif (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}\n\t\t\t\t// char[] ch = str.toCharArray();\n\t\t\t\t// for (int j = 0; j < ch.length; j++) {\n\t\t\t\t// if (ch[j] == '3') {\n\t\t\t\t// sb.append(\" \" + i);\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\t// }\n\t\t\t}\n\t\t}",
"if (i % 3 == 0) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else {\n\t\t\t\tstr = Integer.toString(i);\n\t\t\t\tif (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}\n\t\t\t\t// char[] ch = str.toCharArray();\n\t\t\t\t// for (int j = 0; j < ch.length; j++) {\n\t\t\t\t// if (ch[j] == '3') {\n\t\t\t\t// sb.append(\" \" + i);\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\t// }\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t}",
"sb.append(\" \" + i)",
"sb.append",
"sb",
"\" \" + i",
"\" \"",
"i",
"if (i % 10 == 3) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else {\n\t\t\t\tstr = Integer.toString(i);\n\t\t\t\tif (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}\n\t\t\t\t// char[] ch = str.toCharArray();\n\t\t\t\t// for (int j = 0; j < ch.length; j++) {\n\t\t\t\t// if (ch[j] == '3') {\n\t\t\t\t// sb.append(\" \" + i);\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\t// }\n\t\t\t}",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"{\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t}",
"sb.append(\" \" + i)",
"sb.append",
"sb",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\tstr = Integer.toString(i);\n\t\t\t\tif (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}\n\t\t\t\t// char[] ch = str.toCharArray();\n\t\t\t\t// for (int j = 0; j < ch.length; j++) {\n\t\t\t\t// if (ch[j] == '3') {\n\t\t\t\t// sb.append(\" \" + i);\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\t// }\n\t\t\t}",
"str = Integer.toString(i)",
"str",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"if (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}",
"str.contains(\"3\")",
"str.contains",
"str",
"\"3\"",
"{\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}",
"sb.append(\" \" + i)",
"sb.append",
"sb",
"\" \" + i",
"\" \"",
"i",
"System.out.println(sb.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"sb.toString()",
"sb.toString",
"sb",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint inputData = Integer.parseInt(in.readLine());\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\n\t\tfor (int i = 1; i <= inputData; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else {\n\t\t\t\tstr = Integer.toString(i);\n\t\t\t\tif (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}\n\t\t\t\t// char[] ch = str.toCharArray();\n\t\t\t\t// for (int j = 0; j < ch.length; j++) {\n\t\t\t\t// if (ch[j] == '3') {\n\t\t\t\t// sb.append(\" \" + i);\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n\t\tint inputData = Integer.parseInt(in.readLine());\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString str;\n\n\t\tfor (int i = 1; i <= inputData; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tsb.append(\" \" + i);\n\t\t\t} else {\n\t\t\t\tstr = Integer.toString(i);\n\t\t\t\tif (str.contains(\"3\")) {\n\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t}\n\t\t\t\t// char[] ch = str.toCharArray();\n\t\t\t\t// for (int j = 0; j < ch.length; j++) {\n\t\t\t\t// if (ch[j] == '3') {\n\t\t\t\t// sb.append(\" \" + i);\n\t\t\t\t// break;\n\t\t\t\t// }\n\t\t\t\t// }\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb.toString());\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
int inputData = Integer.parseInt(in.readLine());
StringBuilder sb = new StringBuilder();
String str;
for (int i = 1; i <= inputData; i++) {
if (i % 3 == 0) {
sb.append(" " + i);
} else if (i % 10 == 3) {
sb.append(" " + i);
} else {
str = Integer.toString(i);
if (str.contains("3")) {
sb.append(" " + i);
}
// char[] ch = str.toCharArray();
// for (int j = 0; j < ch.length; j++) {
// if (ch[j] == '3') {
// sb.append(" " + i);
// break;
// }
// }
}
}
System.out.println(sb.toString());
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
13,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
13,
42,
2,
13,
17,
30,
0,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
40,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
28,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
49
],
[
44,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
44,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
83,
85
],
[
77,
86
],
[
24,
87
],
[
87,
88
],
[
8,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tint i = 1;\n\n\n\t\twhile(i <= n){\n\t\t\tint x = i;\n\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\tint y = x;\n\t\t\t\t\twhile(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\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\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tint i = 1;\n\n\n\t\twhile(i <= n){\n\t\t\tint x = i;\n\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\tint y = x;\n\t\t\t\t\twhile(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tint i = 1;\n\n\n\t\twhile(i <= n){\n\t\t\tint x = i;\n\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\tint y = x;\n\t\t\t\t\twhile(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\n\t}",
"main",
"{\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tint i = 1;\n\n\n\t\twhile(i <= n){\n\t\t\tint x = i;\n\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\tint y = x;\n\t\t\t\t\twhile(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int i = 1;",
"i",
"1",
"while(i <= n){\n\t\t\tint x = i;\n\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\tint y = x;\n\t\t\t\t\twhile(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t}",
"i <= n",
"i",
"n",
"{\n\t\t\tint x = i;\n\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\tint y = x;\n\t\t\t\t\twhile(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t}",
"int x = i;",
"x",
"i",
"if(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\tint y = x;\n\t\t\t\t\twhile(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\tint y = x;\n\t\t\t\t\twhile(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}",
"if(x % 10 == 3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\tint y = x;\n\t\t\t\t\twhile(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\t\tint y = x;\n\t\t\t\t\twhile(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}",
"int y = x;",
"y",
"x",
"while(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"y > 10",
"y",
"10",
"{\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"y /= 10",
"y",
"10",
"if(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"y % 10 == 3",
"y % 10",
"y",
"10",
"3",
"{\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"break;",
"i++",
"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\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tint i = 1;\n\n\n\t\twhile(i <= n){\n\t\t\tint x = i;\n\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\tint y = x;\n\t\t\t\t\twhile(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\t// TODO 自動生成されたメソッド・スタブ\n\n\t\tScanner in = new Scanner(System.in);\n\n\t\tint n = in.nextInt();\n\t\tint i = 1;\n\n\n\t\twhile(i <= n){\n\t\t\tint x = i;\n\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}else{\n\t\t\t\t\tint y = x;\n\t\t\t\t\twhile(y > 10){\n\t\t\t\t\t\ty /= 10;\n\t\t\t\t\t\tif(y % 10 == 3){\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
// TODO 自動生成されたメソッド・スタブ
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int i = 1;
while(i <= n){
int x = i;
if(x % 3 == 0){
System.out.print(" " + i);
}else{
if(x % 10 == 3){
System.out.print(" " + i);
}else{
int y = x;
while(y > 10){
y /= 10;
if(y % 10 == 3){
System.out.print(" " + i);
break;
}
}
}
}
i++;
}
System.out.println();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
41,
13,
17,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
42,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
17,
14,
2,
13,
17,
9,
3,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
109,
5
],
[
109,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
25,
31
],
[
31,
32
],
[
25,
33
],
[
33,
34
],
[
25,
35
],
[
35,
36
],
[
25,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
65,
66
],
[
65,
67
],
[
53,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
84,
85
],
[
84,
86
],
[
78,
87
],
[
71,
88
],
[
88,
89
],
[
88,
90
],
[
71,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
91,
96
],
[
25,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
25,
103
],
[
103,
104
],
[
104,
105
],
[
6,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tif (n >= 3 && n <= 10000) {\n\t\t\tint i = 1;\n\t\t\tint x, a, b, c;\n\t\t\tfor (i = 1; i <= n; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t} else {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tsc.close();\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tif (n >= 3 && n <= 10000) {\n\t\t\tint i = 1;\n\t\t\tint x, a, b, c;\n\t\t\tfor (i = 1; i <= n; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t} else {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tsc.close();\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tif (n >= 3 && n <= 10000) {\n\t\t\tint i = 1;\n\t\t\tint x, a, b, c;\n\t\t\tfor (i = 1; i <= n; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t} else {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tsc.close();\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tif (n >= 3 && n <= 10000) {\n\t\t\tint i = 1;\n\t\t\tint x, a, b, c;\n\t\t\tfor (i = 1; i <= n; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t} else {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tsc.close();\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n >= 3 && n <= 10000) {\n\t\t\tint i = 1;\n\t\t\tint x, a, b, c;\n\t\t\tfor (i = 1; i <= n; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t} else {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tsc.close();\n\t\t}",
"n >= 3 && n <= 10000",
"n >= 3",
"n",
"3",
"n <= 10000",
"n",
"10000",
"{\n\t\t\tint i = 1;\n\t\t\tint x, a, b, c;\n\t\t\tfor (i = 1; i <= n; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t} else {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tsc.close();\n\t\t}",
"int i = 1;",
"i",
"1",
"int x",
"x",
"a",
"a",
"b",
"b",
"c;",
"c",
"for (i = 1; i <= n; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t} else {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"i = 1;",
"i = 1",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t} else {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t} else {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"x = i",
"x",
"i",
"if (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t} else {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t}",
"System.out.print(\" \" + x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + x",
"\" \"",
"x",
"{\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"while (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"true",
"{\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"if (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"break;",
"x /= 10",
"x",
"10",
"if (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;",
"x != 0",
"x",
"0",
"continue;",
"break;",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tif (n >= 3 && n <= 10000) {\n\t\t\tint i = 1;\n\t\t\tint x, a, b, c;\n\t\t\tfor (i = 1; i <= n; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t} else {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tsc.close();\n\t\t}\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tif (n >= 3 && n <= 10000) {\n\t\t\tint i = 1;\n\t\t\tint x, a, b, c;\n\t\t\tfor (i = 1; i <= n; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t} else {\n\t\t\t\t\twhile (true) {\n\t\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t\tif (x != 0)\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\telse\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\tSystem.out.printf(\"\\n\");\n\t\t\tsc.close();\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
if (n >= 3 && n <= 10000) {
int i = 1;
int x, a, b, c;
for (i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0) {
System.out.print(" " + x);
} else {
while (true) {
if (x % 10 == 3) {
System.out.print(" " + i);
break;
}
x /= 10;
if (x != 0)
continue;
else
break;
}
}
}
System.out.printf("\n");
sc.close();
}
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
82,
2
],
[
82,
3
],
[
3,
4
],
[
3,
5
],
[
5,
6
],
[
6,
7
],
[
6,
8
],
[
5,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
5,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
14,
19
],
[
19,
20
],
[
19,
21
],
[
14,
22
],
[
22,
23
],
[
23,
24
],
[
14,
25
],
[
26,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
27,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
27,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
54,
55
],
[
54,
56
],
[
42,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
58,
64
],
[
57,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
5,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
3,
79
],
[
79,
80
],
[
0,
81
],
[
81,
82
],
[
81,
83
]
] | [
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint x = scan.nextInt();\n\t\tfor(int i = 1;i <= x; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(String.valueOf(i).contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint x = scan.nextInt();\n\t\tfor(int i = 1;i <= x; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(String.valueOf(i).contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint x = scan.nextInt();\n\t\tfor(int i = 1;i <= x; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(String.valueOf(i).contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint x = scan.nextInt();\n\t\tfor(int i = 1;i <= x; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(String.valueOf(i).contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"java.util.Scanner scan = new java.util.Scanner(System.in);",
"scan",
"new java.util.Scanner(System.in)",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 1;i <= x; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(String.valueOf(i).contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= x",
"i",
"x",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(String.valueOf(i).contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(String.valueOf(i).contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}",
"if(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(String.valueOf(i).contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(String.valueOf(i).contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"if(String.valueOf(i).contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"String.valueOf(i).contains(\"3\")",
"String.valueOf(i).contains",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"\"3\"",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"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\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint x = scan.nextInt();\n\t\tfor(int i = 1;i <= x; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(String.valueOf(i).contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint x = scan.nextInt();\n\t\tfor(int i = 1;i <= x; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else if(String.valueOf(i).contains(\"3\")){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n\n}",
"Main"
] | public class Main {
public static void main(String[] args){
java.util.Scanner scan = new java.util.Scanner(System.in);
int x = scan.nextInt();
for(int i = 1;i <= x; i++){
if(i % 3 == 0){
System.out.print(" " + i);
}else if(i % 10 == 3){
System.out.print(" " + i);
}else if(String.valueOf(i).contains("3")){
System.out.print(" " + i);
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
13,
13,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
13,
13,
13,
40,
13,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
29,
0,
13,
17,
14,
2,
13,
17,
4,
13,
13,
13,
23,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
91,
5
],
[
91,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
20,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
29,
33
],
[
28,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
28,
43
],
[
43,
44
],
[
43,
45
],
[
43,
46
],
[
24,
47
],
[
47,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
6,
54
],
[
54,
55
],
[
91,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
71,
73
],
[
65,
74
],
[
58,
75
],
[
75,
76
],
[
75,
77
],
[
58,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
82,
83
],
[
82,
84
],
[
82,
85
],
[
56,
86
],
[
86,
87
],
[
56,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
] | [
"import java.util.*; \n\npublic class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tint i=1;\n\t\twhile(i<=n){\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse include3(x,i);\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\n\t}\n\t\n\tstatic void include3(int x,int i){\n\t\tif(x%10==3){\n\t\t\tSystem.out.print(\" \"+i);\n\t\t\treturn;\n\t\t}\n\t\tx/=10;\n\t\tif(x>=1)include3(x,i);\n\t}\n\n}\n",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tint i=1;\n\t\twhile(i<=n){\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse include3(x,i);\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\n\t}\n\t\n\tstatic void include3(int x,int i){\n\t\tif(x%10==3){\n\t\t\tSystem.out.print(\" \"+i);\n\t\t\treturn;\n\t\t}\n\t\tx/=10;\n\t\tif(x>=1)include3(x,i);\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tint i=1;\n\t\twhile(i<=n){\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse include3(x,i);\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tint i=1;\n\t\twhile(i<=n){\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse include3(x,i);\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\n\t}",
"Scanner cin=new Scanner(System.in);",
"cin",
"new Scanner(System.in)",
"int n=cin.nextInt();",
"n",
"cin.nextInt()",
"cin.nextInt",
"cin",
"int i=1;",
"i",
"1",
"while(i<=n){\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse include3(x,i);\n\t\t\ti++;\n\t\t}",
"i<=n",
"i",
"n",
"{\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse include3(x,i);\n\t\t\ti++;\n\t\t}",
"int x=i;",
"x",
"i",
"if(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse include3(x,i);",
"x%3==0",
"x%3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"include3(x,i)",
"include3",
"x",
"i",
"i++",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"static void include3(int x,int i){\n\t\tif(x%10==3){\n\t\t\tSystem.out.print(\" \"+i);\n\t\t\treturn;\n\t\t}\n\t\tx/=10;\n\t\tif(x>=1)include3(x,i);\n\t}",
"include3",
"{\n\t\tif(x%10==3){\n\t\t\tSystem.out.print(\" \"+i);\n\t\t\treturn;\n\t\t}\n\t\tx/=10;\n\t\tif(x>=1)include3(x,i);\n\t}",
"if(x%10==3){\n\t\t\tSystem.out.print(\" \"+i);\n\t\t\treturn;\n\t\t}",
"x%10==3",
"x%10",
"x",
"10",
"3",
"{\n\t\t\tSystem.out.print(\" \"+i);\n\t\t\treturn;\n\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"return;",
"x/=10",
"x",
"10",
"if(x>=1)include3(x,i);",
"x>=1",
"x",
"1",
"include3(x,i)",
"include3",
"x",
"i",
"int x",
"x",
"int i",
"i",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tint i=1;\n\t\twhile(i<=n){\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse include3(x,i);\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\n\t}\n\t\n\tstatic void include3(int x,int i){\n\t\tif(x%10==3){\n\t\t\tSystem.out.print(\" \"+i);\n\t\t\treturn;\n\t\t}\n\t\tx/=10;\n\t\tif(x>=1)include3(x,i);\n\t}\n\n}",
"public class Main {\n\n\t/**\n\t * @param args\n\t */\n\tpublic static void main(String[] args) {\n\t\t// TODO Auto-generated method stub\n\t\tScanner cin=new Scanner(System.in);\n\t\t\n\t\tint n=cin.nextInt();\n\t\tint i=1;\n\t\twhile(i<=n){\n\t\t\tint x=i;\n\t\t\t\n\t\t\tif(x%3==0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse include3(x,i);\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println();\n\n\t}\n\t\n\tstatic void include3(int x,int i){\n\t\tif(x%10==3){\n\t\t\tSystem.out.print(\" \"+i);\n\t\t\treturn;\n\t\t}\n\t\tx/=10;\n\t\tif(x>=1)include3(x,i);\n\t}\n\n}",
"Main"
] | import java.util.*;
public class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner cin=new Scanner(System.in);
int n=cin.nextInt();
int i=1;
while(i<=n){
int x=i;
if(x%3==0){
System.out.print(" "+i);
}
else include3(x,i);
i++;
}
System.out.println();
}
static void include3(int x,int i){
if(x%10==3){
System.out.print(" "+i);
return;
}
x/=10;
if(x>=1)include3(x,i);
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
20,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
4,
18,
13,
13,
30,
0,
13,
2,
17,
4,
18,
13,
13,
14,
4,
18,
13,
13,
30,
0,
13,
2,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
6,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
29,
17,
29,
17,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
14,
2,
4,
18,
13,
13,
17,
30,
29,
17,
29,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
134,
5
],
[
134,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
18
],
[
18,
19
],
[
18,
20
],
[
8,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
33,
35
],
[
26,
36
],
[
36,
37
],
[
37,
38
],
[
26,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
41,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
41,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
65,
68
],
[
8,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
6,
75
],
[
75,
76
],
[
0,
77
],
[
77,
78
],
[
77,
79
],
[
79,
80
],
[
79,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
82,
88
],
[
88,
89
],
[
89,
90
],
[
81,
91
],
[
91,
92
],
[
79,
93
],
[
93,
94
],
[
77,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
100,
103
],
[
97,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
109,
111
],
[
111,
112
],
[
112,
113
],
[
104,
114
],
[
114,
115
],
[
115,
116
],
[
104,
117
],
[
118,
118
],
[
118,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
121,
124
],
[
120,
125
],
[
119,
126
],
[
126,
127
],
[
127,
128
],
[
97,
129
],
[
129,
130
],
[
95,
131
],
[
131,
132
],
[
0,
133
],
[
133,
134
],
[
133,
135
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args){\n int x = 0;\n String str = \"\";\n Scanner sc = new Scanner(System.in);\n Check chk = new Check();\n x = sc.nextInt();\n for(int i=1;i<x+1;i++){\n if(chk.check3X(i)){\n str += \" \" + Integer.toString(i);\n }else if(chk.has3(i)){\n str += \" \" + Integer.toString(i);\n }\n }\n System.out.println(str);\n\n }\n}\n\nclass Check{\n boolean check3X(int a){\n if(a%3==0){\n return true;\n }\n return false;\n }\n\n boolean has3(int a){\n String str = Integer.toString(a);\n for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='3'){\n return true;\n }\n }\n return false;\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main(String[] args){\n int x = 0;\n String str = \"\";\n Scanner sc = new Scanner(System.in);\n Check chk = new Check();\n x = sc.nextInt();\n for(int i=1;i<x+1;i++){\n if(chk.check3X(i)){\n str += \" \" + Integer.toString(i);\n }else if(chk.has3(i)){\n str += \" \" + Integer.toString(i);\n }\n }\n System.out.println(str);\n\n }\n}",
"Main",
"public static void main(String[] args){\n int x = 0;\n String str = \"\";\n Scanner sc = new Scanner(System.in);\n Check chk = new Check();\n x = sc.nextInt();\n for(int i=1;i<x+1;i++){\n if(chk.check3X(i)){\n str += \" \" + Integer.toString(i);\n }else if(chk.has3(i)){\n str += \" \" + Integer.toString(i);\n }\n }\n System.out.println(str);\n\n }",
"main",
"{\n int x = 0;\n String str = \"\";\n Scanner sc = new Scanner(System.in);\n Check chk = new Check();\n x = sc.nextInt();\n for(int i=1;i<x+1;i++){\n if(chk.check3X(i)){\n str += \" \" + Integer.toString(i);\n }else if(chk.has3(i)){\n str += \" \" + Integer.toString(i);\n }\n }\n System.out.println(str);\n\n }",
"int x = 0;",
"x",
"0",
"String str = \"\";",
"str",
"\"\"",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"Check chk = new Check();",
"chk",
"new Check()",
"x = sc.nextInt()",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<x+1;i++){\n if(chk.check3X(i)){\n str += \" \" + Integer.toString(i);\n }else if(chk.has3(i)){\n str += \" \" + Integer.toString(i);\n }\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<x+1",
"i",
"x+1",
"x",
"1",
"i++",
"i++",
"i",
"{\n if(chk.check3X(i)){\n str += \" \" + Integer.toString(i);\n }else if(chk.has3(i)){\n str += \" \" + Integer.toString(i);\n }\n }",
"{\n if(chk.check3X(i)){\n str += \" \" + Integer.toString(i);\n }else if(chk.has3(i)){\n str += \" \" + Integer.toString(i);\n }\n }",
"if(chk.check3X(i)){\n str += \" \" + Integer.toString(i);\n }else if(chk.has3(i)){\n str += \" \" + Integer.toString(i);\n }",
"chk.check3X(i)",
"chk.check3X",
"chk",
"i",
"{\n str += \" \" + Integer.toString(i);\n }",
"str += \" \" + Integer.toString(i)",
"str",
"\" \" + Integer.toString(i)",
"\" \"",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"if(chk.has3(i)){\n str += \" \" + Integer.toString(i);\n }",
"chk.has3(i)",
"chk.has3",
"chk",
"i",
"{\n str += \" \" + Integer.toString(i);\n }",
"str += \" \" + Integer.toString(i)",
"str",
"\" \" + Integer.toString(i)",
"\" \"",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args",
"class Check{\n boolean check3X(int a){\n if(a%3==0){\n return true;\n }\n return false;\n }\n\n boolean has3(int a){\n String str = Integer.toString(a);\n for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='3'){\n return true;\n }\n }\n return false;\n }\n}",
"Check",
"boolean check3X(int a){\n if(a%3==0){\n return true;\n }\n return false;\n }",
"check3X",
"{\n if(a%3==0){\n return true;\n }\n return false;\n }",
"if(a%3==0){\n return true;\n }",
"a%3==0",
"a%3",
"a",
"3",
"0",
"{\n return true;\n }",
"return true;",
"true",
"return false;",
"false",
"int a",
"a",
"boolean has3(int a){\n String str = Integer.toString(a);\n for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='3'){\n return true;\n }\n }\n return false;\n }",
"has3",
"{\n String str = Integer.toString(a);\n for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='3'){\n return true;\n }\n }\n return false;\n }",
"String str = Integer.toString(a);",
"str",
"Integer.toString(a)",
"Integer.toString",
"Integer",
"a",
"for(int i=0;i<str.length();i++){\n if(str.charAt(i)=='3'){\n return true;\n }\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<str.length()",
"i",
"str.length()",
"str.length",
"str",
"i++",
"i++",
"i",
"{\n if(str.charAt(i)=='3'){\n return true;\n }\n }",
"{\n if(str.charAt(i)=='3'){\n return true;\n }\n }",
"if(str.charAt(i)=='3'){\n return true;\n }",
"str.charAt(i)=='3'",
"str.charAt(i)",
"str.charAt",
"str",
"i",
"'3'",
"{\n return true;\n }",
"return true;",
"true",
"return false;",
"false",
"int a",
"a",
"public class Main {\n public static void main(String[] args){\n int x = 0;\n String str = \"\";\n Scanner sc = new Scanner(System.in);\n Check chk = new Check();\n x = sc.nextInt();\n for(int i=1;i<x+1;i++){\n if(chk.check3X(i)){\n str += \" \" + Integer.toString(i);\n }else if(chk.has3(i)){\n str += \" \" + Integer.toString(i);\n }\n }\n System.out.println(str);\n\n }\n}",
"public class Main {\n public static void main(String[] args){\n int x = 0;\n String str = \"\";\n Scanner sc = new Scanner(System.in);\n Check chk = new Check();\n x = sc.nextInt();\n for(int i=1;i<x+1;i++){\n if(chk.check3X(i)){\n str += \" \" + Integer.toString(i);\n }else if(chk.has3(i)){\n str += \" \" + Integer.toString(i);\n }\n }\n System.out.println(str);\n\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
int x = 0;
String str = "";
Scanner sc = new Scanner(System.in);
Check chk = new Check();
x = sc.nextInt();
for(int i=1;i<x+1;i++){
if(chk.check3X(i)){
str += " " + Integer.toString(i);
}else if(chk.has3(i)){
str += " " + Integer.toString(i);
}
}
System.out.println(str);
}
}
class Check{
boolean check3X(int a){
if(a%3==0){
return true;
}
return false;
}
boolean has3(int a){
String str = Integer.toString(a);
for(int i=0;i<str.length();i++){
if(str.charAt(i)=='3'){
return true;
}
}
return false;
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
42,
2,
40,
13,
13,
30,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
2,
13,
17,
30,
0,
13,
13,
42,
2,
13,
17,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
3,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
93,
5
],
[
93,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
28,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
41,
47
],
[
28,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
66,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
77,
83
],
[
76,
84
],
[
8,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = 1;\n\t\tint y;\n\t\tdo {\n\t\t\tif (x % 3 == 0 || x % 10 == 3) {\n\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t} else if (x >= 30) {\n\t\t\t\ty = x;\n\t\t\t\twhile (y >= 30) {\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++x <= n);\n\t\tSystem.out.println();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = 1;\n\t\tint y;\n\t\tdo {\n\t\t\tif (x % 3 == 0 || x % 10 == 3) {\n\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t} else if (x >= 30) {\n\t\t\t\ty = x;\n\t\t\t\twhile (y >= 30) {\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++x <= n);\n\t\tSystem.out.println();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = 1;\n\t\tint y;\n\t\tdo {\n\t\t\tif (x % 3 == 0 || x % 10 == 3) {\n\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t} else if (x >= 30) {\n\t\t\t\ty = x;\n\t\t\t\twhile (y >= 30) {\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++x <= n);\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = 1;\n\t\tint y;\n\t\tdo {\n\t\t\tif (x % 3 == 0 || x % 10 == 3) {\n\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t} else if (x >= 30) {\n\t\t\t\ty = x;\n\t\t\t\twhile (y >= 30) {\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++x <= n);\n\t\tSystem.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x = 1;",
"x",
"1",
"int y;",
"y",
"do {\n\t\t\tif (x % 3 == 0 || x % 10 == 3) {\n\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t} else if (x >= 30) {\n\t\t\t\ty = x;\n\t\t\t\twhile (y >= 30) {\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++x <= n);",
"++x <= n",
"++x",
"x",
"n",
"{\n\t\t\tif (x % 3 == 0 || x % 10 == 3) {\n\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t} else if (x >= 30) {\n\t\t\t\ty = x;\n\t\t\t\twhile (y >= 30) {\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if (x % 3 == 0 || x % 10 == 3) {\n\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t} else if (x >= 30) {\n\t\t\t\ty = x;\n\t\t\t\twhile (y >= 30) {\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"x % 3 == 0 || x % 10 == 3",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t}",
"System.out.printf(\" %d\", x)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"x",
"if (x >= 30) {\n\t\t\t\ty = x;\n\t\t\t\twhile (y >= 30) {\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"x >= 30",
"x",
"30",
"{\n\t\t\t\ty = x;\n\t\t\t\twhile (y >= 30) {\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"y = x",
"y",
"x",
"while (y >= 30) {\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"y >= 30",
"y",
"30",
"{\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"y = y / 10",
"y",
"y / 10",
"y",
"10",
"if (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"y == 3 || y % 10 == 3",
"y == 3",
"y",
"3",
"y % 10 == 3",
"y % 10",
"y",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"System.out.printf(\" %d\", x)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"x",
"break;",
"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\t\tint n = sc.nextInt();\n\t\tint x = 1;\n\t\tint y;\n\t\tdo {\n\t\t\tif (x % 3 == 0 || x % 10 == 3) {\n\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t} else if (x >= 30) {\n\t\t\t\ty = x;\n\t\t\t\twhile (y >= 30) {\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++x <= n);\n\t\tSystem.out.println();\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint x = 1;\n\t\tint y;\n\t\tdo {\n\t\t\tif (x % 3 == 0 || x % 10 == 3) {\n\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t} else if (x >= 30) {\n\t\t\t\ty = x;\n\t\t\t\twhile (y >= 30) {\n\t\t\t\t\ty = y / 10;\n\t\t\t\t\tif (y == 3 || y % 10 == 3) {\n\t\t\t\t\t\tSystem.out.printf(\" %d\", x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++x <= n);\n\t\tSystem.out.println();\n\t}\n\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x = 1;
int y;
do {
if (x % 3 == 0 || x % 10 == 3) {
System.out.printf(" %d", x);
} else if (x >= 30) {
y = x;
while (y >= 30) {
y = y / 10;
if (y == 3 || y % 10 == 3) {
System.out.printf(" %d", x);
break;
}
}
}
} while (++x <= n);
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
0,
13,
17,
42,
2,
2,
13,
17,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
0,
13,
17,
0,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
97,
5
],
[
97,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
39,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
73,
82
],
[
82,
83
],
[
82,
84
],
[
66,
85
],
[
85,
86
],
[
85,
87
],
[
8,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
6,
94
],
[
94,
95
],
[
0,
96
],
[
96,
97
],
[
96,
98
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint x = 0;\n\t\tint flg = 0;\n\t\tfor(int i = 1;i <= num;i++)\n\t\t{\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tflg = 0;\n\t\t\t\twhile(x > 0 && flg == 0)\n\t\t\t\t{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint x = 0;\n\t\tint flg = 0;\n\t\tfor(int i = 1;i <= num;i++)\n\t\t{\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tflg = 0;\n\t\t\t\twhile(x > 0 && flg == 0)\n\t\t\t\t{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint x = 0;\n\t\tint flg = 0;\n\t\tfor(int i = 1;i <= num;i++)\n\t\t{\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tflg = 0;\n\t\t\t\twhile(x > 0 && flg == 0)\n\t\t\t\t{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint x = 0;\n\t\tint flg = 0;\n\t\tfor(int i = 1;i <= num;i++)\n\t\t{\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tflg = 0;\n\t\t\t\twhile(x > 0 && flg == 0)\n\t\t\t\t{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int num = scan.nextInt();",
"num",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int x = 0;",
"x",
"0",
"int flg = 0;",
"flg",
"0",
"for(int i = 1;i <= num;i++)\n\t\t{\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tflg = 0;\n\t\t\t\twhile(x > 0 && flg == 0)\n\t\t\t\t{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tflg = 0;\n\t\t\t\twhile(x > 0 && flg == 0)\n\t\t\t\t{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}",
"{\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tflg = 0;\n\t\t\t\twhile(x > 0 && flg == 0)\n\t\t\t\t{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}",
"x = i",
"x",
"i",
"if(x % 3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tflg = 0;\n\t\t\t\twhile(x > 0 && flg == 0)\n\t\t\t\t{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\tflg = 0;\n\t\t\t\twhile(x > 0 && flg == 0)\n\t\t\t\t{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}",
"flg = 0",
"flg",
"0",
"while(x > 0 && flg == 0)\n\t\t\t\t{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}",
"x > 0 && flg == 0",
"x > 0",
"x",
"0",
"flg == 0",
"flg",
"0",
"{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}",
"if(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"flg = 1",
"flg",
"1",
"x /= 10",
"x",
"10",
"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{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint num = scan.nextInt();\n\t\tint x = 0;\n\t\tint flg = 0;\n\t\tfor(int i = 1;i <= num;i++)\n\t\t{\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tflg = 0;\n\t\t\t\twhile(x > 0 && flg == 0)\n\t\t\t\t{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"\");\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 num = scan.nextInt();\n\t\tint x = 0;\n\t\tint flg = 0;\n\t\tfor(int i = 1;i <= num;i++)\n\t\t{\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0)\n\t\t\t{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\tflg = 0;\n\t\t\t\twhile(x > 0 && flg == 0)\n\t\t\t\t{\n\t\t\t\t\tif(x % 10 == 3)\n\t\t\t\t\t{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tflg = 1;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}\n\t\t\t}\n\t\t\t\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args)
{
Scanner scan = new Scanner(System.in);
int num = scan.nextInt();
int x = 0;
int flg = 0;
for(int i = 1;i <= num;i++)
{
x = i;
if(x % 3 == 0)
{
System.out.print(" " + i);
}else{
flg = 0;
while(x > 0 && flg == 0)
{
if(x % 10 == 3)
{
System.out.print(" " + i);
flg = 1;
}
x /= 10;
}
}
}
System.out.println("");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
30,
4,
13,
13,
13,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
2,
13,
17,
30,
4,
13,
13,
2,
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
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
35
],
[
30,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
37,
43
],
[
30,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
45,
48
],
[
8,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
49,
54
],
[
6,
55
],
[
55,
56
],
[
90,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
67,
73
],
[
60,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
82,
83
],
[
82,
84
],
[
57,
85
],
[
85,
86
],
[
57,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tfunc(i,i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\t\n\tpublic static void func(int i,int j){\n\t\tif(j%10 == 3){\n\t\t\tSystem.out.printf(\" %d\",i);\n\t\t}else if(j>0){\n\t\t\tfunc(i,j/10);\n\t\t}\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tfunc(i,i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\t\n\tpublic static void func(int i,int j){\n\t\tif(j%10 == 3){\n\t\t\tSystem.out.printf(\" %d\",i);\n\t\t}else if(j>0){\n\t\t\tfunc(i,j/10);\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tfunc(i,i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tfunc(i,i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=n;i++){\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tfunc(i,i);\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tfunc(i,i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tfunc(i,i);\n\t\t\t}\n\t\t}",
"if(i%3 == 0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tfunc(i,i);\n\t\t\t}",
"i%3 == 0",
"i%3",
"i",
"3",
"0",
"{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"{\n\t\t\t\tfunc(i,i);\n\t\t\t}",
"func(i,i)",
"func",
"i",
"i",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public static void func(int i,int j){\n\t\tif(j%10 == 3){\n\t\t\tSystem.out.printf(\" %d\",i);\n\t\t}else if(j>0){\n\t\t\tfunc(i,j/10);\n\t\t}\n\t}",
"func",
"{\n\t\tif(j%10 == 3){\n\t\t\tSystem.out.printf(\" %d\",i);\n\t\t}else if(j>0){\n\t\t\tfunc(i,j/10);\n\t\t}\n\t}",
"if(j%10 == 3){\n\t\t\tSystem.out.printf(\" %d\",i);\n\t\t}else if(j>0){\n\t\t\tfunc(i,j/10);\n\t\t}",
"j%10 == 3",
"j%10",
"j",
"10",
"3",
"{\n\t\t\tSystem.out.printf(\" %d\",i);\n\t\t}",
"System.out.printf(\" %d\",i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"if(j>0){\n\t\t\tfunc(i,j/10);\n\t\t}",
"j>0",
"j",
"0",
"{\n\t\t\tfunc(i,j/10);\n\t\t}",
"func(i,j/10)",
"func",
"i",
"j/10",
"j",
"10",
"int i",
"i",
"int j",
"j",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tfunc(i,i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\t\n\tpublic static void func(int i,int j){\n\t\tif(j%10 == 3){\n\t\t\tSystem.out.printf(\" %d\",i);\n\t\t}else if(j>0){\n\t\t\tfunc(i,j/10);\n\t\t}\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}else{\n\t\t\t\tfunc(i,i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n\t\n\tpublic static void func(int i,int j){\n\t\tif(j%10 == 3){\n\t\t\tSystem.out.printf(\" %d\",i);\n\t\t}else if(j>0){\n\t\t\tfunc(i,j/10);\n\t\t}\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for(int i=1;i<=n;i++){
if(i%3 == 0){
System.out.printf(" %d",i);
}else{
func(i,i);
}
}
System.out.printf("\n");
}
public static void func(int i,int j){
if(j%10 == 3){
System.out.printf(" %d",i);
}else if(j>0){
func(i,j/10);
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
4,
18,
13,
17,
30,
4,
18,
18,
13,
13,
17,
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
],
[
72,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
17,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
29,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
32,
33
],
[
33,
34
],
[
32,
35
],
[
29,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
43,
49
],
[
36,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
50,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
56,
62
],
[
11,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
9,
69
],
[
69,
70
],
[
0,
71
],
[
71,
72
],
[
71,
73
]
] | [
"import java.util.*;\n\npublic class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tString si = String.valueOf(i);\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t} else if(si.contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tString si = String.valueOf(i);\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t} else if(si.contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"Main",
"private static final Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"public static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tString si = String.valueOf(i);\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t} else if(si.contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}",
"main",
"{\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tString si = String.valueOf(i);\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t} else if(si.contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 1; i <= n; i++){\n\t\t\tString si = String.valueOf(i);\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t} else if(si.contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tString si = String.valueOf(i);\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t} else if(si.contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}\n\t\t}",
"{\n\t\t\tString si = String.valueOf(i);\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t} else if(si.contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}\n\t\t}",
"String si = String.valueOf(i);",
"si",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"if(i % 3 == 0){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t} else if(si.contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}",
"System.out.printf(\" %s\", si)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %s\"",
"si",
"if(si.contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}",
"si.contains(\"3\")",
"si.contains",
"si",
"\"3\"",
"{\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}",
"System.out.printf(\" %s\", si)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %s\"",
"si",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tString si = String.valueOf(i);\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t} else if(si.contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"public class Main{\n\tprivate static final Scanner scan = new Scanner(System.in);\n\n\tpublic static void main(String[] args){\n\t\tint n = scan.nextInt();\n\t\tfor(int i = 1; i <= n; i++){\n\t\t\tString si = String.valueOf(i);\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t} else if(si.contains(\"3\")){\n\t\t\t\tSystem.out.printf(\" %s\", si);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"Main"
] | import java.util.*;
public class Main{
private static final Scanner scan = new Scanner(System.in);
public static void main(String[] args){
int n = scan.nextInt();
for(int i = 1; i <= n; i++){
String si = String.valueOf(i);
if(i % 3 == 0){
System.out.printf(" %s", si);
} else if(si.contains("3")){
System.out.printf(" %s", si);
}
}
System.out.printf("\n");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
20,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
4,
18,
13,
41,
13,
4,
18,
13,
13,
4,
18,
13,
4,
13,
13,
12,
13,
30,
41,
13,
17,
42,
2,
40,
13,
13,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
103,
8
],
[
103,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
9,
13
],
[
13,
14
],
[
103,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
17,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
17,
34
],
[
34,
35
],
[
35,
36
],
[
17,
37
],
[
37,
38
],
[
37,
39
],
[
103,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
46,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
55,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
77,
81
],
[
76,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
82,
91
],
[
75,
92
],
[
92,
93
],
[
92,
94
],
[
42,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
40,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tnew Main();\n\t}\n\n\tpublic Main() throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine().trim();\n\t\tint n = Integer.parseInt(line);\n\t\tbr.close();\n\n\t\tcall(n);\n\t}\n\n\tvoid call(int n) {\n\t\tint i = 1;\n\n\t\tdo {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t} while (++i <= n);\n\n\t\tSystem.out.println();\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tnew Main();\n\t}\n\n\tpublic Main() throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine().trim();\n\t\tint n = Integer.parseInt(line);\n\t\tbr.close();\n\n\t\tcall(n);\n\t}\n\n\tvoid call(int n) {\n\t\tint i = 1;\n\n\t\tdo {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t} while (++i <= n);\n\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tnew Main();\n\t}",
"main",
"{\n\t\tnew Main();\n\t}",
"new Main()",
"String[] args",
"args",
"public Main() throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine().trim();\n\t\tint n = Integer.parseInt(line);\n\t\tbr.close();\n\n\t\tcall(n);\n\t}",
"Main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine().trim();\n\t\tint n = Integer.parseInt(line);\n\t\tbr.close();\n\n\t\tcall(n);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String line = br.readLine().trim();",
"line",
"br.readLine().trim()",
"br.readLine().trim",
"br.readLine()",
"br.readLine",
"br",
"int n = Integer.parseInt(line);",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"br.close()",
"br.close",
"br",
"call(n)",
"call",
"n",
"void call(int n) {\n\t\tint i = 1;\n\n\t\tdo {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t} while (++i <= n);\n\n\t\tSystem.out.println();\n\t}",
"call",
"{\n\t\tint i = 1;\n\n\t\tdo {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t} while (++i <= n);\n\n\t\tSystem.out.println();\n\t}",
"int i = 1;",
"i",
"1",
"do {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t} while (++i <= n);",
"++i <= n",
"++i",
"i",
"n",
"{\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t}",
"int x = i;",
"x",
"i",
"if (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}",
"do {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while (x != 0);",
"x != 0",
"x",
"0",
"{\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t}",
"if (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"break;",
"x /= 10",
"x",
"10",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"int n",
"n",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tnew Main();\n\t}\n\n\tpublic Main() throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine().trim();\n\t\tint n = Integer.parseInt(line);\n\t\tbr.close();\n\n\t\tcall(n);\n\t}\n\n\tvoid call(int n) {\n\t\tint i = 1;\n\n\t\tdo {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t} while (++i <= n);\n\n\t\tSystem.out.println();\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tnew Main();\n\t}\n\n\tpublic Main() throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString line = br.readLine().trim();\n\t\tint n = Integer.parseInt(line);\n\t\tbr.close();\n\n\t\tcall(n);\n\t}\n\n\tvoid call(int n) {\n\t\tint i = 1;\n\n\t\tdo {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx /= 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t} while (++i <= n);\n\n\t\tSystem.out.println();\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
new Main();
}
public Main() throws Exception {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String line = br.readLine().trim();
int n = Integer.parseInt(line);
br.close();
call(n);
}
void call(int n) {
int i = 1;
do {
int x = i;
if (x % 3 == 0) {
System.out.print(" " + i);
} else {
do {
if (x % 10 == 3) {
System.out.print(" " + i);
break;
}
x /= 10;
} while (x != 0);
}
} while (++i <= n);
System.out.println();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
2,
18,
13,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
2,
18,
13,
13,
17,
4,
18,
13,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
106,
11
],
[
106,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
31,
36
],
[
14,
37
],
[
37,
38
],
[
37,
39
],
[
14,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
41,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
63,
65
],
[
14,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
66,
75
],
[
75,
76
],
[
75,
77
],
[
66,
78
],
[
78,
79
],
[
79,
80
],
[
66,
81
],
[
82,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
14,
91
],
[
91,
92
],
[
92,
93
],
[
91,
94
],
[
94,
95
],
[
94,
96
],
[
14,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
97,
102
],
[
12,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint inputValue = Integer.parseInt(br.readLine());\n\t\tString[] inputData = br.readLine().split(\" \");\n\t\tInteger [] number = new Integer[inputValue];\n\n\t\tfor(int i = 0; i < inputData.length; i++){\n\t\t\tnumber[i] = Integer.parseInt(inputData[i]);\n\t\t}\n\n\t\tfor(int i = number.length-1; i >= 1; i--){\n\t\t\tsb.append(number[i] + \" \");\n\t\t}\n\t\tsb.append(number[0]);\n\t\tSystem.out.println(sb);\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\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint inputValue = Integer.parseInt(br.readLine());\n\t\tString[] inputData = br.readLine().split(\" \");\n\t\tInteger [] number = new Integer[inputValue];\n\n\t\tfor(int i = 0; i < inputData.length; i++){\n\t\t\tnumber[i] = Integer.parseInt(inputData[i]);\n\t\t}\n\n\t\tfor(int i = number.length-1; i >= 1; i--){\n\t\t\tsb.append(number[i] + \" \");\n\t\t}\n\t\tsb.append(number[0]);\n\t\tSystem.out.println(sb);\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\tStringBuilder sb = new StringBuilder();\n\n\t\tint inputValue = Integer.parseInt(br.readLine());\n\t\tString[] inputData = br.readLine().split(\" \");\n\t\tInteger [] number = new Integer[inputValue];\n\n\t\tfor(int i = 0; i < inputData.length; i++){\n\t\t\tnumber[i] = Integer.parseInt(inputData[i]);\n\t\t}\n\n\t\tfor(int i = number.length-1; i >= 1; i--){\n\t\t\tsb.append(number[i] + \" \");\n\t\t}\n\t\tsb.append(number[0]);\n\t\tSystem.out.println(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint inputValue = Integer.parseInt(br.readLine());\n\t\tString[] inputData = br.readLine().split(\" \");\n\t\tInteger [] number = new Integer[inputValue];\n\n\t\tfor(int i = 0; i < inputData.length; i++){\n\t\t\tnumber[i] = Integer.parseInt(inputData[i]);\n\t\t}\n\n\t\tfor(int i = number.length-1; i >= 1; i--){\n\t\t\tsb.append(number[i] + \" \");\n\t\t}\n\t\tsb.append(number[0]);\n\t\tSystem.out.println(sb);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int inputValue = Integer.parseInt(br.readLine());",
"inputValue",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] inputData = br.readLine().split(\" \");",
"inputData",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"Integer [] number = new Integer[inputValue];",
"number",
"new Integer[inputValue]",
"inputValue",
"for(int i = 0; i < inputData.length; i++){\n\t\t\tnumber[i] = Integer.parseInt(inputData[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < inputData.length",
"i",
"inputData.length",
"inputData",
"inputData.length",
"i++",
"i++",
"i",
"{\n\t\t\tnumber[i] = Integer.parseInt(inputData[i]);\n\t\t}",
"{\n\t\t\tnumber[i] = Integer.parseInt(inputData[i]);\n\t\t}",
"number[i] = Integer.parseInt(inputData[i])",
"number[i]",
"number",
"i",
"Integer.parseInt(inputData[i])",
"Integer.parseInt",
"Integer",
"inputData[i]",
"inputData",
"i",
"for(int i = number.length-1; i >= 1; i--){\n\t\t\tsb.append(number[i] + \" \");\n\t\t}",
"int i = number.length-1;",
"int i = number.length-1;",
"i",
"number.length-1",
"number.length",
"number",
"number.length",
"1",
"i >= 1",
"i",
"1",
"i--",
"i--",
"i",
"{\n\t\t\tsb.append(number[i] + \" \");\n\t\t}",
"{\n\t\t\tsb.append(number[i] + \" \");\n\t\t}",
"sb.append(number[i] + \" \")",
"sb.append",
"sb",
"number[i] + \" \"",
"number[i]",
"number",
"i",
"\" \"",
"sb.append(number[0])",
"sb.append",
"sb",
"number[0]",
"number",
"0",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint inputValue = Integer.parseInt(br.readLine());\n\t\tString[] inputData = br.readLine().split(\" \");\n\t\tInteger [] number = new Integer[inputValue];\n\n\t\tfor(int i = 0; i < inputData.length; i++){\n\t\t\tnumber[i] = Integer.parseInt(inputData[i]);\n\t\t}\n\n\t\tfor(int i = number.length-1; i >= 1; i--){\n\t\t\tsb.append(number[i] + \" \");\n\t\t}\n\t\tsb.append(number[0]);\n\t\tSystem.out.println(sb);\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint inputValue = Integer.parseInt(br.readLine());\n\t\tString[] inputData = br.readLine().split(\" \");\n\t\tInteger [] number = new Integer[inputValue];\n\n\t\tfor(int i = 0; i < inputData.length; i++){\n\t\t\tnumber[i] = Integer.parseInt(inputData[i]);\n\t\t}\n\n\t\tfor(int i = number.length-1; i >= 1; i--){\n\t\t\tsb.append(number[i] + \" \");\n\t\t}\n\t\tsb.append(number[0]);\n\t\tSystem.out.println(sb);\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));
StringBuilder sb = new StringBuilder();
int inputValue = Integer.parseInt(br.readLine());
String[] inputData = br.readLine().split(" ");
Integer [] number = new Integer[inputValue];
for(int i = 0; i < inputData.length; i++){
number[i] = Integer.parseInt(inputData[i]);
}
for(int i = number.length-1; i >= 1; i--){
sb.append(number[i] + " ");
}
sb.append(number[0]);
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
0,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
18,
13,
13,
41,
13,
20,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
17,
30,
4,
18,
13,
18,
13,
13,
4,
18,
13,
17,
30,
4,
18,
13,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
115,
8
],
[
115,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
11,
37
],
[
37,
38
],
[
37,
39
],
[
11,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
58,
61
],
[
61,
62
],
[
61,
63
],
[
11,
64
],
[
64,
65
],
[
64,
66
],
[
11,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
67,
74
],
[
74,
75
],
[
74,
76
],
[
67,
77
],
[
77,
78
],
[
78,
79
],
[
67,
80
],
[
81,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
82,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
87,
90
],
[
90,
91
],
[
90,
92
],
[
86,
93
],
[
93,
94
],
[
94,
95
],
[
93,
96
],
[
82,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
98,
101
],
[
101,
102
],
[
101,
103
],
[
11,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
104,
109
],
[
109,
110
],
[
110,
111
],
[
9,
112
],
[
112,
113
],
[
0,
114
],
[
114,
115
],
[
114,
116
]
] | [
"import java.io.*;\nimport java.util.*;\n\npublic class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n \n int n = Integer.parseInt(str);\n \n str = br.readLine();\n String[] temp = str.split(\"\\\\s\");\n int[] Suretu = new int[n];\n \n for(int i=0;i<n;i++){\n Suretu[i]=Integer.parseInt(temp[i]);\n }\n \n //Arrays.sort(Suretu);\n \n StringBuilder output = new StringBuilder();\n for(int i= n-1;i>=0;i--){\n if(i != 0){\n output.append(Suretu[i]);\n output.append(\" \");\n }else{\n output.append(Suretu[i]);\n }\n }\n System.out.println(output.toString());\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n \n int n = Integer.parseInt(str);\n \n str = br.readLine();\n String[] temp = str.split(\"\\\\s\");\n int[] Suretu = new int[n];\n \n for(int i=0;i<n;i++){\n Suretu[i]=Integer.parseInt(temp[i]);\n }\n \n //Arrays.sort(Suretu);\n \n StringBuilder output = new StringBuilder();\n for(int i= n-1;i>=0;i--){\n if(i != 0){\n output.append(Suretu[i]);\n output.append(\" \");\n }else{\n output.append(Suretu[i]);\n }\n }\n System.out.println(output.toString());\n }\n}",
"Main",
"public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n \n int n = Integer.parseInt(str);\n \n str = br.readLine();\n String[] temp = str.split(\"\\\\s\");\n int[] Suretu = new int[n];\n \n for(int i=0;i<n;i++){\n Suretu[i]=Integer.parseInt(temp[i]);\n }\n \n //Arrays.sort(Suretu);\n \n StringBuilder output = new StringBuilder();\n for(int i= n-1;i>=0;i--){\n if(i != 0){\n output.append(Suretu[i]);\n output.append(\" \");\n }else{\n output.append(Suretu[i]);\n }\n }\n System.out.println(output.toString());\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n \n int n = Integer.parseInt(str);\n \n str = br.readLine();\n String[] temp = str.split(\"\\\\s\");\n int[] Suretu = new int[n];\n \n for(int i=0;i<n;i++){\n Suretu[i]=Integer.parseInt(temp[i]);\n }\n \n //Arrays.sort(Suretu);\n \n StringBuilder output = new StringBuilder();\n for(int i= n-1;i>=0;i--){\n if(i != 0){\n output.append(Suretu[i]);\n output.append(\" \");\n }else{\n output.append(Suretu[i]);\n }\n }\n System.out.println(output.toString());\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str = br.readLine();",
"str",
"br.readLine()",
"br.readLine",
"br",
"int n = Integer.parseInt(str);",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"str = br.readLine()",
"str",
"br.readLine()",
"br.readLine",
"br",
"String[] temp = str.split(\"\\\\s\");",
"temp",
"str.split(\"\\\\s\")",
"str.split",
"str",
"\"\\\\s\"",
"int[] Suretu = new int[n];",
"Suretu",
"new int[n]",
"n",
"for(int i=0;i<n;i++){\n Suretu[i]=Integer.parseInt(temp[i]);\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n Suretu[i]=Integer.parseInt(temp[i]);\n }",
"{\n Suretu[i]=Integer.parseInt(temp[i]);\n }",
"Suretu[i]=Integer.parseInt(temp[i])",
"Suretu[i]",
"Suretu",
"i",
"Integer.parseInt(temp[i])",
"Integer.parseInt",
"Integer",
"temp[i]",
"temp",
"i",
"StringBuilder output = new StringBuilder();",
"output",
"new StringBuilder()",
"for(int i= n-1;i>=0;i--){\n if(i != 0){\n output.append(Suretu[i]);\n output.append(\" \");\n }else{\n output.append(Suretu[i]);\n }\n }",
"int i= n-1;",
"int i= n-1;",
"i",
"n-1",
"n",
"1",
"i>=0",
"i",
"0",
"i--",
"i--",
"i",
"{\n if(i != 0){\n output.append(Suretu[i]);\n output.append(\" \");\n }else{\n output.append(Suretu[i]);\n }\n }",
"{\n if(i != 0){\n output.append(Suretu[i]);\n output.append(\" \");\n }else{\n output.append(Suretu[i]);\n }\n }",
"if(i != 0){\n output.append(Suretu[i]);\n output.append(\" \");\n }else{\n output.append(Suretu[i]);\n }",
"i != 0",
"i",
"0",
"{\n output.append(Suretu[i]);\n output.append(\" \");\n }",
"output.append(Suretu[i])",
"output.append",
"output",
"Suretu[i]",
"Suretu",
"i",
"output.append(\" \")",
"output.append",
"output",
"\" \"",
"{\n output.append(Suretu[i]);\n }",
"output.append(Suretu[i])",
"output.append",
"output",
"Suretu[i]",
"Suretu",
"i",
"System.out.println(output.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"output.toString()",
"output.toString",
"output",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n \n int n = Integer.parseInt(str);\n \n str = br.readLine();\n String[] temp = str.split(\"\\\\s\");\n int[] Suretu = new int[n];\n \n for(int i=0;i<n;i++){\n Suretu[i]=Integer.parseInt(temp[i]);\n }\n \n //Arrays.sort(Suretu);\n \n StringBuilder output = new StringBuilder();\n for(int i= n-1;i>=0;i--){\n if(i != 0){\n output.append(Suretu[i]);\n output.append(\" \");\n }else{\n output.append(Suretu[i]);\n }\n }\n System.out.println(output.toString());\n }\n}",
"public class Main{\n public static void main(String[] args)throws IOException{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n String str = br.readLine();\n \n int n = Integer.parseInt(str);\n \n str = br.readLine();\n String[] temp = str.split(\"\\\\s\");\n int[] Suretu = new int[n];\n \n for(int i=0;i<n;i++){\n Suretu[i]=Integer.parseInt(temp[i]);\n }\n \n //Arrays.sort(Suretu);\n \n StringBuilder output = new StringBuilder();\n for(int i= n-1;i>=0;i--){\n if(i != 0){\n output.append(Suretu[i]);\n output.append(\" \");\n }else{\n output.append(Suretu[i]);\n }\n }\n System.out.println(output.toString());\n }\n}",
"Main"
] | import java.io.*;
import java.util.*;
public class Main{
public static void main(String[] args)throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
String str = br.readLine();
int n = Integer.parseInt(str);
str = br.readLine();
String[] temp = str.split("\\s");
int[] Suretu = new int[n];
for(int i=0;i<n;i++){
Suretu[i]=Integer.parseInt(temp[i]);
}
//Arrays.sort(Suretu);
StringBuilder output = new StringBuilder();
for(int i= n-1;i>=0;i--){
if(i != 0){
output.append(Suretu[i]);
output.append(" ");
}else{
output.append(Suretu[i]);
}
}
System.out.println(output.toString());
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
18,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
0,
18,
13,
13,
13,
11,
1,
41,
13,
2,
18,
13,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
13,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
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
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
11,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
34,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
27,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
11,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
52,
61
],
[
61,
62
],
[
61,
63
],
[
52,
64
],
[
64,
65
],
[
65,
66
],
[
52,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
69,
72
],
[
72,
73
],
[
72,
74
],
[
68,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
11,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
9,
90
],
[
90,
91
]
] | [
"import java.util.Arrays;\nimport java.util.Scanner;\n\nclass Main {\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t//?????????\n StringBuilder sb=new StringBuilder(\"\");\n\t\tint n = scan.nextInt();\n\t\tint[]hako = new int[n];\n\t\t\n\t\tfor(int i = 0; i < hako.length ; i++){\n\t\t\tint a = scan.nextInt();\n\t\t\thako[i] = a; \n\t\t}//for\n\t \n\n\t\t\n\t\t//??\\?????????\n\t\tfor(int i = hako.length-1; i >= 0; i--){\n\t\t\tsb.append(hako[i]);\n\t\t\tif(i > 0){\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}//for\n\t\t\n\t\t//??????\n\t\tSystem.out.println(sb);\n\t}\n}",
"import java.util.Arrays;",
"Arrays",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t//?????????\n StringBuilder sb=new StringBuilder(\"\");\n\t\tint n = scan.nextInt();\n\t\tint[]hako = new int[n];\n\t\t\n\t\tfor(int i = 0; i < hako.length ; i++){\n\t\t\tint a = scan.nextInt();\n\t\t\thako[i] = a; \n\t\t}//for\n\t \n\n\t\t\n\t\t//??\\?????????\n\t\tfor(int i = hako.length-1; i >= 0; i--){\n\t\t\tsb.append(hako[i]);\n\t\t\tif(i > 0){\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}//for\n\t\t\n\t\t//??????\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main",
"@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\t//?????????\n StringBuilder sb=new StringBuilder(\"\");\n\t\tint n = scan.nextInt();\n\t\tint[]hako = new int[n];\n\t\t\n\t\tfor(int i = 0; i < hako.length ; i++){\n\t\t\tint a = scan.nextInt();\n\t\t\thako[i] = a; \n\t\t}//for\n\t \n\n\t\t\n\t\t//??\\?????????\n\t\tfor(int i = hako.length-1; i >= 0; i--){\n\t\t\tsb.append(hako[i]);\n\t\t\tif(i > 0){\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}//for\n\t\t\n\t\t//??????\n\t\tSystem.out.println(sb);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\t//?????????\n StringBuilder sb=new StringBuilder(\"\");\n\t\tint n = scan.nextInt();\n\t\tint[]hako = new int[n];\n\t\t\n\t\tfor(int i = 0; i < hako.length ; i++){\n\t\t\tint a = scan.nextInt();\n\t\t\thako[i] = a; \n\t\t}//for\n\t \n\n\t\t\n\t\t//??\\?????????\n\t\tfor(int i = hako.length-1; i >= 0; i--){\n\t\t\tsb.append(hako[i]);\n\t\t\tif(i > 0){\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}//for\n\t\t\n\t\t//??????\n\t\tSystem.out.println(sb);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"StringBuilder sb=new StringBuilder(\"\");",
"sb",
"new StringBuilder(\"\")",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int[]hako = new int[n];",
"hako",
"new int[n]",
"n",
"for(int i = 0; i < hako.length ; i++){\n\t\t\tint a = scan.nextInt();\n\t\t\thako[i] = a; \n\t\t}//for",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < hako.length",
"i",
"hako.length",
"hako",
"hako.length",
"i++",
"i++",
"i",
"{\n\t\t\tint a = scan.nextInt();\n\t\t\thako[i] = a; \n\t\t}//for",
"{\n\t\t\tint a = scan.nextInt();\n\t\t\thako[i] = a; \n\t\t}",
"int a = scan.nextInt();",
"a",
"scan.nextInt()",
"scan.nextInt",
"scan",
"hako[i] = a",
"hako[i]",
"hako",
"i",
"a",
"for(int i = hako.length-1; i >= 0; i--){\n\t\t\tsb.append(hako[i]);\n\t\t\tif(i > 0){\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}//for",
"int i = hako.length-1;",
"int i = hako.length-1;",
"i",
"hako.length-1",
"hako.length",
"hako",
"hako.length",
"1",
"i >= 0",
"i",
"0",
"i--",
"i--",
"i",
"{\n\t\t\tsb.append(hako[i]);\n\t\t\tif(i > 0){\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}//for",
"{\n\t\t\tsb.append(hako[i]);\n\t\t\tif(i > 0){\n\t\t\t\tsb.append(\" \");\n\t\t\t}\n\t\t}",
"sb.append(hako[i])",
"sb.append",
"sb",
"hako[i]",
"hako",
"i",
"if(i > 0){\n\t\t\t\tsb.append(\" \");\n\t\t\t}",
"i > 0",
"i",
"0",
"{\n\t\t\t\tsb.append(\" \");\n\t\t\t}",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args"
] | import java.util.Arrays;
import java.util.Scanner;
class Main {
@SuppressWarnings("resource")
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
//?????????
StringBuilder sb=new StringBuilder("");
int n = scan.nextInt();
int[]hako = new int[n];
for(int i = 0; i < hako.length ; i++){
int a = scan.nextInt();
hako[i] = a;
}//for
//??\?????????
for(int i = hako.length-1; i >= 0; i--){
sb.append(hako[i]);
if(i > 0){
sb.append(" ");
}
}//for
//??????
System.out.println(sb);
}
} |
[
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,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
4,
18,
13,
17,
17,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
13,
18,
13,
13,
11,
1,
41,
13,
2,
13,
17,
2,
17,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
30,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
108,
8
],
[
108,
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
],
[
11,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
11,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
36,
40
],
[
11,
41
],
[
41,
42
],
[
41,
43
],
[
11,
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
],
[
57,
60
],
[
60,
61
],
[
60,
62
],
[
11,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
67,
68
],
[
67,
69
],
[
63,
70
],
[
70,
71
],
[
70,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
63,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
77,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
87,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
99,
104
],
[
9,
105
],
[
105,
106
],
[
0,
107
],
[
107,
108
],
[
107,
109
]
] | [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str1 = scan.nextLine();\n\t\tString str2 = scan.nextLine();\n\t\tscan.close();\n\n\t\tint n = Integer.parseInt(str1);\n\t\tString[] num = str2.split(\" \", 0);\n\t\tArrayList<String> numList = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnumList.add(num[i]);\n\t\t}\n\n\t\tfor (int i = n - 1; 0 <= i; i--) {\n\t\t\tSystem.out.print(numList.get(i));\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str1 = scan.nextLine();\n\t\tString str2 = scan.nextLine();\n\t\tscan.close();\n\n\t\tint n = Integer.parseInt(str1);\n\t\tString[] num = str2.split(\" \", 0);\n\t\tArrayList<String> numList = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnumList.add(num[i]);\n\t\t}\n\n\t\tfor (int i = n - 1; 0 <= i; i--) {\n\t\t\tSystem.out.print(numList.get(i));\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main",
"public static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str1 = scan.nextLine();\n\t\tString str2 = scan.nextLine();\n\t\tscan.close();\n\n\t\tint n = Integer.parseInt(str1);\n\t\tString[] num = str2.split(\" \", 0);\n\t\tArrayList<String> numList = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnumList.add(num[i]);\n\t\t}\n\n\t\tfor (int i = n - 1; 0 <= i; i--) {\n\t\t\tSystem.out.print(numList.get(i));\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str1 = scan.nextLine();\n\t\tString str2 = scan.nextLine();\n\t\tscan.close();\n\n\t\tint n = Integer.parseInt(str1);\n\t\tString[] num = str2.split(\" \", 0);\n\t\tArrayList<String> numList = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnumList.add(num[i]);\n\t\t}\n\n\t\tfor (int i = n - 1; 0 <= i; i--) {\n\t\t\tSystem.out.print(numList.get(i));\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"String str1 = scan.nextLine();",
"str1",
"scan.nextLine()",
"scan.nextLine",
"scan",
"String str2 = scan.nextLine();",
"str2",
"scan.nextLine()",
"scan.nextLine",
"scan",
"scan.close()",
"scan.close",
"scan",
"int n = Integer.parseInt(str1);",
"n",
"Integer.parseInt(str1)",
"Integer.parseInt",
"Integer",
"str1",
"String[] num = str2.split(\" \", 0);",
"num",
"str2.split(\" \", 0)",
"str2.split",
"str2",
"\" \"",
"0",
"ArrayList<String> numList = new ArrayList<String>();",
"numList",
"new ArrayList<String>()",
"for (int i = 0; i < n; i++) {\n\t\t\tnumList.add(num[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tnumList.add(num[i]);\n\t\t}",
"{\n\t\t\tnumList.add(num[i]);\n\t\t}",
"numList.add(num[i])",
"numList.add",
"numList",
"num[i]",
"num",
"i",
"for (int i = n - 1; 0 <= i; i--) {\n\t\t\tSystem.out.print(numList.get(i));\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}",
"int i = n - 1;",
"int i = n - 1;",
"i",
"n - 1",
"n",
"1",
"0 <= i",
"0",
"i",
"i--",
"i--",
"i",
"{\n\t\t\tSystem.out.print(numList.get(i));\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}",
"{\n\t\t\tSystem.out.print(numList.get(i));\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}",
"System.out.print(numList.get(i))",
"System.out.print",
"System.out",
"System",
"System.out",
"numList.get(i)",
"numList.get",
"numList",
"i",
"if (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"i != 0",
"i",
"0",
"{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}",
"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 scan = new Scanner(System.in);\n\t\tString str1 = scan.nextLine();\n\t\tString str2 = scan.nextLine();\n\t\tscan.close();\n\n\t\tint n = Integer.parseInt(str1);\n\t\tString[] num = str2.split(\" \", 0);\n\t\tArrayList<String> numList = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnumList.add(num[i]);\n\t\t}\n\n\t\tfor (int i = n - 1; 0 <= i; i--) {\n\t\t\tSystem.out.print(numList.get(i));\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String args[]) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tString str1 = scan.nextLine();\n\t\tString str2 = scan.nextLine();\n\t\tscan.close();\n\n\t\tint n = Integer.parseInt(str1);\n\t\tString[] num = str2.split(\" \", 0);\n\t\tArrayList<String> numList = new ArrayList<String>();\n\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\tnumList.add(num[i]);\n\t\t}\n\n\t\tfor (int i = n - 1; 0 <= i; i--) {\n\t\t\tSystem.out.print(numList.get(i));\n\t\t\tif (i != 0) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}else{\n\t\t\t\tSystem.out.println(\"\");\n\t\t\t}\n\t\t}\n\t}\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner scan = new Scanner(System.in);
String str1 = scan.nextLine();
String str2 = scan.nextLine();
scan.close();
int n = Integer.parseInt(str1);
String[] num = str2.split(" ", 0);
ArrayList<String> numList = new ArrayList<String>();
for (int i = 0; i < n; i++) {
numList.add(num[i]);
}
for (int i = n - 1; 0 <= i; i--) {
System.out.print(numList.get(i));
if (i != 0) {
System.out.print(" ");
}else{
System.out.println("");
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
2,
13,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
13,
13,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
92,
5
],
[
92,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
41,
48
],
[
48,
49
],
[
48,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
41,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
57,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
63,
65
],
[
56,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
55,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
8,
86
],
[
86,
87
],
[
87,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
] | [
"import java.util.Scanner;\n\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] array = new int[n];\n\n\t\tfor(int i = 0 ; i < n ; i++ ){\n\t\t\tarray[i] = in.nextInt();\n\t\t}\n\n\t\tfor(int j = n-1 ; j >= 0;j--){\n\t\t\tif(j < 0 || j != n -1){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[j]);\n\t\t}\n\t\tSystem.out.println();\n\t\tin.close();\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] array = new int[n];\n\n\t\tfor(int i = 0 ; i < n ; i++ ){\n\t\t\tarray[i] = in.nextInt();\n\t\t}\n\n\t\tfor(int j = n-1 ; j >= 0;j--){\n\t\t\tif(j < 0 || j != n -1){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[j]);\n\t\t}\n\t\tSystem.out.println();\n\t\tin.close();\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] array = new int[n];\n\n\t\tfor(int i = 0 ; i < n ; i++ ){\n\t\t\tarray[i] = in.nextInt();\n\t\t}\n\n\t\tfor(int j = n-1 ; j >= 0;j--){\n\t\t\tif(j < 0 || j != n -1){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[j]);\n\t\t}\n\t\tSystem.out.println();\n\t\tin.close();\n\n\t}",
"main",
"{\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] array = new int[n];\n\n\t\tfor(int i = 0 ; i < n ; i++ ){\n\t\t\tarray[i] = in.nextInt();\n\t\t}\n\n\t\tfor(int j = n-1 ; j >= 0;j--){\n\t\t\tif(j < 0 || j != n -1){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[j]);\n\t\t}\n\t\tSystem.out.println();\n\t\tin.close();\n\n\t}",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int[] array = new int[n];",
"array",
"new int[n]",
"n",
"for(int i = 0 ; i < n ; i++ ){\n\t\t\tarray[i] = in.nextInt();\n\t\t}",
"int i = 0 ;",
"int i = 0 ;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tarray[i] = in.nextInt();\n\t\t}",
"{\n\t\t\tarray[i] = in.nextInt();\n\t\t}",
"array[i] = in.nextInt()",
"array[i]",
"array",
"i",
"in.nextInt()",
"in.nextInt",
"in",
"for(int j = n-1 ; j >= 0;j--){\n\t\t\tif(j < 0 || j != n -1){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[j]);\n\t\t}",
"int j = n-1 ;",
"int j = n-1 ;",
"j",
"n-1",
"n",
"1",
"j >= 0",
"j",
"0",
"j--",
"j--",
"j",
"{\n\t\t\tif(j < 0 || j != n -1){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[j]);\n\t\t}",
"{\n\t\t\tif(j < 0 || j != n -1){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[j]);\n\t\t}",
"if(j < 0 || j != n -1){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"j < 0 || j != n -1",
"j < 0",
"j",
"0",
"j != n -1",
"j",
"n -1",
"n",
"1",
"{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(array[j])",
"System.out.print",
"System.out",
"System",
"System.out",
"array[j]",
"array",
"j",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"in.close()",
"in.close",
"in",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] array = new int[n];\n\n\t\tfor(int i = 0 ; i < n ; i++ ){\n\t\t\tarray[i] = in.nextInt();\n\t\t}\n\n\t\tfor(int j = n-1 ; j >= 0;j--){\n\t\t\tif(j < 0 || j != n -1){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[j]);\n\t\t}\n\t\tSystem.out.println();\n\t\tin.close();\n\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception{\n\n\t\tScanner in = new Scanner(System.in);\n\t\tint n = in.nextInt();\n\t\tint[] array = new int[n];\n\n\t\tfor(int i = 0 ; i < n ; i++ ){\n\t\t\tarray[i] = in.nextInt();\n\t\t}\n\n\t\tfor(int j = n-1 ; j >= 0;j--){\n\t\t\tif(j < 0 || j != n -1){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t\tSystem.out.print(array[j]);\n\t\t}\n\t\tSystem.out.println();\n\t\tin.close();\n\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception{
Scanner in = new Scanner(System.in);
int n = in.nextInt();
int[] array = new int[n];
for(int i = 0 ; i < n ; i++ ){
array[i] = in.nextInt();
}
for(int j = n-1 ; j >= 0;j--){
if(j < 0 || j != n -1){
System.out.print(" ");
}
System.out.print(array[j]);
}
System.out.println();
in.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
13,
4,
18,
13,
17,
4,
18,
13,
2,
4,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
4,
18,
13,
2,
2,
4,
18,
13,
17,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
100,
8
],
[
100,
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
],
[
11,
22
],
[
22,
23
],
[
22,
24
],
[
11,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
25,
30
],
[
30,
31
],
[
30,
32
],
[
25,
33
],
[
33,
34
],
[
34,
35
],
[
25,
36
],
[
37,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
40,
41
],
[
41,
42
],
[
37,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
47,
48
],
[
46,
49
],
[
37,
50
],
[
50,
51
],
[
51,
52
],
[
50,
53
],
[
11,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
57,
61
],
[
11,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
67,
69
],
[
69,
70
],
[
70,
71
],
[
62,
72
],
[
72,
73
],
[
73,
74
],
[
62,
75
],
[
76,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
86,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
86,
90
],
[
86,
91
],
[
11,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
9,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] | [
"import java.util.ArrayList;\nimport java.util.Scanner;\n\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\t//??\\???????????´??°?????????????????????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta=sc.nextInt();\n\t\t\tlist.add(String.valueOf(a));\n\t\t\tlist.add(\" \");\n\t\t}\n\t\t//????????????????????????\n\t\tlist.remove(list.size()-1);\n\t\t//???????????????\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tSystem.out.print(list.get(list.size()-1-i));\n\t\t}\n\t\t//??????\n\t\tSystem.out.println();\n\t}\n}",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\t//??\\???????????´??°?????????????????????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta=sc.nextInt();\n\t\t\tlist.add(String.valueOf(a));\n\t\t\tlist.add(\" \");\n\t\t}\n\t\t//????????????????????????\n\t\tlist.remove(list.size()-1);\n\t\t//???????????????\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tSystem.out.print(list.get(list.size()-1-i));\n\t\t}\n\t\t//??????\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\t//??\\???????????´??°?????????????????????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta=sc.nextInt();\n\t\t\tlist.add(String.valueOf(a));\n\t\t\tlist.add(\" \");\n\t\t}\n\t\t//????????????????????????\n\t\tlist.remove(list.size()-1);\n\t\t//???????????????\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tSystem.out.print(list.get(list.size()-1-i));\n\t\t}\n\t\t//??????\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\t//??\\???????????´??°?????????????????????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta=sc.nextInt();\n\t\t\tlist.add(String.valueOf(a));\n\t\t\tlist.add(\" \");\n\t\t}\n\t\t//????????????????????????\n\t\tlist.remove(list.size()-1);\n\t\t//???????????????\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tSystem.out.print(list.get(list.size()-1-i));\n\t\t}\n\t\t//??????\n\t\tSystem.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int a;",
"a",
"ArrayList<String> list = new ArrayList<String>();",
"list",
"new ArrayList<String>()",
"for (int i = 0; i < n; i++) {\n\t\t\ta=sc.nextInt();\n\t\t\tlist.add(String.valueOf(a));\n\t\t\tlist.add(\" \");\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta=sc.nextInt();\n\t\t\tlist.add(String.valueOf(a));\n\t\t\tlist.add(\" \");\n\t\t}",
"{\n\t\t\ta=sc.nextInt();\n\t\t\tlist.add(String.valueOf(a));\n\t\t\tlist.add(\" \");\n\t\t}",
"a=sc.nextInt()",
"a",
"sc.nextInt()",
"sc.nextInt",
"sc",
"list.add(String.valueOf(a))",
"list.add",
"list",
"String.valueOf(a)",
"String.valueOf",
"String",
"a",
"list.add(\" \")",
"list.add",
"list",
"\" \"",
"list.remove(list.size()-1)",
"list.remove",
"list",
"list.size()-1",
"list.size()",
"list.size",
"list",
"1",
"for (int i = 0; i < list.size(); i++) {\n\t\t\tSystem.out.print(list.get(list.size()-1-i));\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < list.size()",
"i",
"list.size()",
"list.size",
"list",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.print(list.get(list.size()-1-i));\n\t\t}",
"{\n\t\t\tSystem.out.print(list.get(list.size()-1-i));\n\t\t}",
"System.out.print(list.get(list.size()-1-i))",
"System.out.print",
"System.out",
"System",
"System.out",
"list.get(list.size()-1-i)",
"list.get",
"list",
"list.size()-1-i",
"list.size()-1-i",
"list.size()",
"list.size",
"list",
"1",
"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\t\tint n = sc.nextInt();\n\t\tint a;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\t//??\\???????????´??°?????????????????????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta=sc.nextInt();\n\t\t\tlist.add(String.valueOf(a));\n\t\t\tlist.add(\" \");\n\t\t}\n\t\t//????????????????????????\n\t\tlist.remove(list.size()-1);\n\t\t//???????????????\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tSystem.out.print(list.get(list.size()-1-i));\n\t\t}\n\t\t//??????\n\t\tSystem.out.println();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint a;\n\t\tArrayList<String> list = new ArrayList<String>();\n\t\t\n\t\t//??\\???????????´??°?????????????????????\n\t\tfor (int i = 0; i < n; i++) {\n\t\t\ta=sc.nextInt();\n\t\t\tlist.add(String.valueOf(a));\n\t\t\tlist.add(\" \");\n\t\t}\n\t\t//????????????????????????\n\t\tlist.remove(list.size()-1);\n\t\t//???????????????\n\t\tfor (int i = 0; i < list.size(); i++) {\n\t\t\tSystem.out.print(list.get(list.size()-1-i));\n\t\t}\n\t\t//??????\n\t\tSystem.out.println();\n\t}\n}",
"Main"
] | import java.util.ArrayList;
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int a;
ArrayList<String> list = new ArrayList<String>();
//??\???????????´??°?????????????????????
for (int i = 0; i < n; i++) {
a=sc.nextInt();
list.add(String.valueOf(a));
list.add(" ");
}
//????????????????????????
list.remove(list.size()-1);
//???????????????
for (int i = 0; i < list.size(); i++) {
System.out.print(list.get(list.size()-1-i));
}
//??????
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
17,
18,
13,
13,
4,
18,
18,
13,
13,
17,
18,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
80,
5
],
[
80,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
41,
48
],
[
48,
49
],
[
48,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
41,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
56,
62
],
[
62,
63
],
[
62,
64
],
[
8,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
65,
71
],
[
71,
72
],
[
71,
73
],
[
8,
74
],
[
74,
75
],
[
75,
76
],
[
6,
77
],
[
77,
78
],
[
0,
79
],
[
79,
80
],
[
79,
81
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n for(int i=0;i<n;i++){\n a[i] = sc.nextInt();\n }\n for(int i=n-1;i>0;i--){\n System.out.printf(\"%d \",a[i]);\n }\n System.out.printf(\"%d\\n\",a[0]);\n sc.close();\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 n = sc.nextInt();\n int[] a = new int[n];\n for(int i=0;i<n;i++){\n a[i] = sc.nextInt();\n }\n for(int i=n-1;i>0;i--){\n System.out.printf(\"%d \",a[i]);\n }\n System.out.printf(\"%d\\n\",a[0]);\n sc.close();\n\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n for(int i=0;i<n;i++){\n a[i] = sc.nextInt();\n }\n for(int i=n-1;i>0;i--){\n System.out.printf(\"%d \",a[i]);\n }\n System.out.printf(\"%d\\n\",a[0]);\n sc.close();\n\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n for(int i=0;i<n;i++){\n a[i] = sc.nextInt();\n }\n for(int i=n-1;i>0;i--){\n System.out.printf(\"%d \",a[i]);\n }\n System.out.printf(\"%d\\n\",a[0]);\n sc.close();\n\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] a = new int[n];",
"a",
"new int[n]",
"n",
"for(int i=0;i<n;i++){\n a[i] = sc.nextInt();\n }",
"int i=0;",
"int i=0;",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n a[i] = sc.nextInt();\n }",
"{\n a[i] = sc.nextInt();\n }",
"a[i] = sc.nextInt()",
"a[i]",
"a",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=n-1;i>0;i--){\n System.out.printf(\"%d \",a[i]);\n }",
"int i=n-1;",
"int i=n-1;",
"i",
"n-1",
"n",
"1",
"i>0",
"i",
"0",
"i--",
"i--",
"i",
"{\n System.out.printf(\"%d \",a[i]);\n }",
"{\n System.out.printf(\"%d \",a[i]);\n }",
"System.out.printf(\"%d \",a[i])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d \"",
"a[i]",
"a",
"i",
"System.out.printf(\"%d\\n\",a[0])",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"%d\\n\"",
"a[0]",
"a",
"0",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n for(int i=0;i<n;i++){\n a[i] = sc.nextInt();\n }\n for(int i=n-1;i>0;i--){\n System.out.printf(\"%d \",a[i]);\n }\n System.out.printf(\"%d\\n\",a[0]);\n sc.close();\n\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int[] a = new int[n];\n for(int i=0;i<n;i++){\n a[i] = sc.nextInt();\n }\n for(int i=n-1;i>0;i--){\n System.out.printf(\"%d \",a[i]);\n }\n System.out.printf(\"%d\\n\",a[0]);\n sc.close();\n\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int[] a = new int[n];
for(int i=0;i<n;i++){
a[i] = sc.nextInt();
}
for(int i=n-1;i>0;i--){
System.out.printf("%d ",a[i]);
}
System.out.printf("%d\n",a[0]);
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
41,
13,
4,
18,
4,
18,
13,
17,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
2,
2,
13,
13,
17,
4,
18,
13,
18,
13,
13,
4,
18,
18,
13,
13,
18,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
17,
18,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
107,
14
],
[
107,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
31,
36
],
[
17,
37
],
[
37,
38
],
[
37,
39
],
[
17,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
41,
49
],
[
49,
50
],
[
50,
51
],
[
41,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
58,
58
],
[
58,
59
],
[
58,
60
],
[
58,
61
],
[
54,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
17,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
73,
74
],
[
73,
75
],
[
17,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
81,
82
],
[
81,
83
],
[
76,
84
],
[
84,
85
],
[
85,
86
],
[
76,
87
],
[
88,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
17,
99
],
[
99,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
15,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.Arrays;\n\n\npublic class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\n\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tinput[n - i - 1] = Integer.parseInt(tmpArray[i]);\n\t\t}\n\t\t\n\t\tSystem.out.print(input[0]);\n\t\tfor(int i = 1 ; i < n; i++){\n\t\t\tSystem.out.print(\" \"+ input[i]);\n\t\t}\n\t\tSystem.out.println();\n//\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.Arrays;",
"Arrays",
"java.util",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\n\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tinput[n - i - 1] = Integer.parseInt(tmpArray[i]);\n\t\t}\n\t\t\n\t\tSystem.out.print(input[0]);\n\t\tfor(int i = 1 ; i < n; i++){\n\t\t\tSystem.out.print(\" \"+ input[i]);\n\t\t}\n\t\tSystem.out.println();\n//\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}\n\n}",
"Main",
"/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\n\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tinput[n - i - 1] = Integer.parseInt(tmpArray[i]);\n\t\t}\n\t\t\n\t\tSystem.out.print(input[0]);\n\t\tfor(int i = 1 ; i < n; i++){\n\t\t\tSystem.out.print(\" \"+ input[i]);\n\t\t}\n\t\tSystem.out.println();\n//\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\n\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tinput[n - i - 1] = Integer.parseInt(tmpArray[i]);\n\t\t}\n\t\t\n\t\tSystem.out.print(input[0]);\n\t\tfor(int i = 1 ; i < n; i++){\n\t\t\tSystem.out.print(\" \"+ input[i]);\n\t\t}\n\t\tSystem.out.println();\n//\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] tmpArray = br.readLine().split(\" \");",
"tmpArray",
"br.readLine().split(\" \")",
"br.readLine().split",
"br.readLine()",
"br.readLine",
"br",
"\" \"",
"int[] input = new int[n];",
"input",
"new int[n]",
"n",
"for(int i = 0; i < n; i++){\n\t\t\tinput[n - i - 1] = Integer.parseInt(tmpArray[i]);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tinput[n - i - 1] = Integer.parseInt(tmpArray[i]);\n\t\t}",
"{\n\t\t\tinput[n - i - 1] = Integer.parseInt(tmpArray[i]);\n\t\t}",
"input[n - i - 1] = Integer.parseInt(tmpArray[i])",
"input[n - i - 1]",
"input",
"n - i - 1",
"n - i - 1",
"n",
"i",
"1",
"Integer.parseInt(tmpArray[i])",
"Integer.parseInt",
"Integer",
"tmpArray[i]",
"tmpArray",
"i",
"System.out.print(input[0])",
"System.out.print",
"System.out",
"System",
"System.out",
"input[0]",
"input",
"0",
"for(int i = 1 ; i < n; i++){\n\t\t\tSystem.out.print(\" \"+ input[i]);\n\t\t}",
"int i = 1 ;",
"int i = 1 ;",
"i",
"1",
"i < n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tSystem.out.print(\" \"+ input[i]);\n\t\t}",
"{\n\t\t\tSystem.out.print(\" \"+ input[i]);\n\t\t}",
"System.out.print(\" \"+ input[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+ input[i]",
"\" \"",
"input[i]",
"input",
"i",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\n\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tinput[n - i - 1] = Integer.parseInt(tmpArray[i]);\n\t\t}\n\t\t\n\t\tSystem.out.print(input[0]);\n\t\tfor(int i = 1 ; i < n; i++){\n\t\t\tSystem.out.print(\" \"+ input[i]);\n\t\t}\n\t\tSystem.out.println();\n//\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}\n\n}",
"public class Main {\n\n\t/**\n\t * @param args\n\t * @throws IOException \n\t * @throws NumberFormatException \n\t */\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\t// TODO Auto-generated method stub\n\t\t\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\n//\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint n = Integer.parseInt(br.readLine());\n//\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\tint c = Integer.parseInt(tmpArray[2]);\n//\t\tint y = Integer.parseInt(tmpArray[3]);\n//\t\tint r = Integer.parseInt(tmpArray[4]);\n\n\n\t\tString[] tmpArray = br.readLine().split(\" \");\n\t\tint[] input = new int[n];\n\t\tfor(int i = 0; i < n; i++){\n\t\t\tinput[n - i - 1] = Integer.parseInt(tmpArray[i]);\n\t\t}\n\t\t\n\t\tSystem.out.print(input[0]);\n\t\tfor(int i = 1 ; i < n; i++){\n\t\t\tSystem.out.print(\" \"+ input[i]);\n\t\t}\n\t\tSystem.out.println();\n//\t\t\n//\t\tArrays.sort(input);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", input[0], input[input.length - 1], sum);\n//\t\t\n//\t\twhile(true){\n//\t\t\tString[] tmpArray = br.readLine().split(\" \");\n//\t\t\tint a = Integer.parseInt(tmpArray[0]);\n//\t\t\tint b = Integer.parseInt(tmpArray[1]);\n//\t\t\tif(a == 0 && b == 0){\n//\t\t\t\tbreak;\n//\t\t\t}\n//\t\t\t\n//\t\t\tfor(int i = 0; i < a; i++){\n//\t\t\t\tfor(int j = 0; j < b; j++){\n//\t\t\t\t\tif((i + j)%2 == 1){\n//\t\t\t\t\t\tSystem.out.print(\".\");\n//\t\t\t\t\t}\n//\t\t\t\t\telse{\n//\t\t\t\t\t\tSystem.out.print(\"#\");\n//\t\t\t\t\t}\n//\t\t\t\t}\n//\t\t\t\tSystem.out.println();\n//\t\t\t}\n//\t\t\tSystem.out.println();\n//\t\t}\n\n\t\t//\t\tint[] array = new int[3];\n//\t\tarray[0] = a; array[1] = b; array[2] = c;\n//\n//\t\tArrays.sort(array);\n//\t\tSystem.out.printf(\"%d %d %d\\n\", array[0], array[1], array[2]);\n\t\t/*\n\t\tif(a < b && b < c){\n\t\t\tSystem.out.println(\"Yes\");\n\t\t}\n\t\telse{\n\t\t\tSystem.out.println(\"No\");\n\t\t}*/\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.Arrays;
public class Main {
/**
* @param args
* @throws IOException
* @throws NumberFormatException
*/
public static void main(String[] args) throws NumberFormatException, IOException {
// TODO Auto-generated method stub
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// String[] tmpArray = br.readLine().split(" ");
int n = Integer.parseInt(br.readLine());
// int b = Integer.parseInt(tmpArray[1]);
// int c = Integer.parseInt(tmpArray[2]);
// int y = Integer.parseInt(tmpArray[3]);
// int r = Integer.parseInt(tmpArray[4]);
String[] tmpArray = br.readLine().split(" ");
int[] input = new int[n];
for(int i = 0; i < n; i++){
input[n - i - 1] = Integer.parseInt(tmpArray[i]);
}
System.out.print(input[0]);
for(int i = 1 ; i < n; i++){
System.out.print(" "+ input[i]);
}
System.out.println();
//
// Arrays.sort(input);
// System.out.printf("%d %d %d\n", input[0], input[input.length - 1], sum);
//
// while(true){
// String[] tmpArray = br.readLine().split(" ");
// int a = Integer.parseInt(tmpArray[0]);
// int b = Integer.parseInt(tmpArray[1]);
// if(a == 0 && b == 0){
// break;
// }
//
// for(int i = 0; i < a; i++){
// for(int j = 0; j < b; j++){
// if((i + j)%2 == 1){
// System.out.print(".");
// }
// else{
// System.out.print("#");
// }
// }
// System.out.println();
// }
// System.out.println();
// }
// int[] array = new int[3];
// array[0] = a; array[1] = b; array[2] = c;
//
// Arrays.sort(array);
// System.out.printf("%d %d %d\n", array[0], array[1], array[2]);
/*
if(a < b && b < c){
System.out.println("Yes");
}
else{
System.out.println("No");
}*/
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
20,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
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
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
8,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
41,
48
],
[
48,
49
],
[
48,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
41,
54
],
[
55,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
56,
61
],
[
61,
62
],
[
61,
63
],
[
55,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
69,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
6,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tint[] nums = new int[count];\n\n\t\tfor(int i = 0; i < count;i++) {\n\t\t\tnums[i] = sc.nextInt();\n\n\t\t}\n\n\t\tfor(int i = count - 1;i >= 0 ;i--) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tif(i != 0 ) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\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\t\tint count = sc.nextInt();\n\t\tint[] nums = new int[count];\n\n\t\tfor(int i = 0; i < count;i++) {\n\t\t\tnums[i] = sc.nextInt();\n\n\t\t}\n\n\t\tfor(int i = count - 1;i >= 0 ;i--) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tif(i != 0 ) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tint[] nums = new int[count];\n\n\t\tfor(int i = 0; i < count;i++) {\n\t\t\tnums[i] = sc.nextInt();\n\n\t\t}\n\n\t\tfor(int i = count - 1;i >= 0 ;i--) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tif(i != 0 ) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tint[] nums = new int[count];\n\n\t\tfor(int i = 0; i < count;i++) {\n\t\t\tnums[i] = sc.nextInt();\n\n\t\t}\n\n\t\tfor(int i = count - 1;i >= 0 ;i--) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tif(i != 0 ) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int count = sc.nextInt();",
"count",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int[] nums = new int[count];",
"nums",
"new int[count]",
"count",
"for(int i = 0; i < count;i++) {\n\t\t\tnums[i] = sc.nextInt();\n\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < count",
"i",
"count",
"i++",
"i++",
"i",
"{\n\t\t\tnums[i] = sc.nextInt();\n\n\t\t}",
"{\n\t\t\tnums[i] = sc.nextInt();\n\n\t\t}",
"nums[i] = sc.nextInt()",
"nums[i]",
"nums",
"i",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = count - 1;i >= 0 ;i--) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tif(i != 0 ) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}",
"int i = count - 1;",
"int i = count - 1;",
"i",
"count - 1",
"count",
"1",
"i >= 0",
"i",
"0",
"i--",
"i--",
"i",
"{\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tif(i != 0 ) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}",
"{\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tif(i != 0 ) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}",
"System.out.print(nums[i])",
"System.out.print",
"System.out",
"System",
"System.out",
"nums[i]",
"nums",
"i",
"if(i != 0 ) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"i != 0",
"i",
"0",
"{\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}",
"System.out.print(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"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\t\tint count = sc.nextInt();\n\t\tint[] nums = new int[count];\n\n\t\tfor(int i = 0; i < count;i++) {\n\t\t\tnums[i] = sc.nextInt();\n\n\t\t}\n\n\t\tfor(int i = count - 1;i >= 0 ;i--) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tif(i != 0 ) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint count = sc.nextInt();\n\t\tint[] nums = new int[count];\n\n\t\tfor(int i = 0; i < count;i++) {\n\t\t\tnums[i] = sc.nextInt();\n\n\t\t}\n\n\t\tfor(int i = count - 1;i >= 0 ;i--) {\n\t\t\tSystem.out.print(nums[i]);\n\t\t\tif(i != 0 ) {\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\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 count = sc.nextInt();
int[] nums = new int[count];
for(int i = 0; i < count;i++) {
nums[i] = sc.nextInt();
}
for(int i = count - 1;i >= 0 ;i--) {
System.out.print(nums[i]);
if(i != 0 ) {
System.out.print(" ");
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
41,
13,
20,
17,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
18,
13,
13,
4,
18,
13,
11,
1,
0,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
4,
18,
18,
13,
13,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
88,
5
],
[
88,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
8,
11
],
[
11,
12
],
[
8,
13
],
[
13,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
8,
19
],
[
19,
20
],
[
19,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
8,
27
],
[
27,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
27,
32
],
[
32,
33
],
[
32,
34
],
[
27,
35
],
[
35,
36
],
[
36,
37
],
[
27,
38
],
[
39,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
44,
45
],
[
45,
46
],
[
8,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
51,
53
],
[
47,
54
],
[
54,
55
],
[
54,
56
],
[
47,
57
],
[
57,
58
],
[
58,
59
],
[
47,
60
],
[
61,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
8,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
77,
78
],
[
77,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
6,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
] | [
"import java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args) {\n\t\tint n,i,j;\n\t\tint a[]= new int[1000];\n\t\tScanner br = new Scanner(System.in);\n\t\tn=br.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta[i]=br.nextInt();\n\t\t}\n\t\tfor(j=n-1;j>=1;j--){\n\t\t\tSystem.out.print(a[j]+\" \");\n\t\t}\n\t\tSystem.out.print(a[0]);\n\t\tSystem.out.println();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tint n,i,j;\n\t\tint a[]= new int[1000];\n\t\tScanner br = new Scanner(System.in);\n\t\tn=br.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta[i]=br.nextInt();\n\t\t}\n\t\tfor(j=n-1;j>=1;j--){\n\t\t\tSystem.out.print(a[j]+\" \");\n\t\t}\n\t\tSystem.out.print(a[0]);\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tint n,i,j;\n\t\tint a[]= new int[1000];\n\t\tScanner br = new Scanner(System.in);\n\t\tn=br.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta[i]=br.nextInt();\n\t\t}\n\t\tfor(j=n-1;j>=1;j--){\n\t\t\tSystem.out.print(a[j]+\" \");\n\t\t}\n\t\tSystem.out.print(a[0]);\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tint n,i,j;\n\t\tint a[]= new int[1000];\n\t\tScanner br = new Scanner(System.in);\n\t\tn=br.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta[i]=br.nextInt();\n\t\t}\n\t\tfor(j=n-1;j>=1;j--){\n\t\t\tSystem.out.print(a[j]+\" \");\n\t\t}\n\t\tSystem.out.print(a[0]);\n\t\tSystem.out.println();\n\t}",
"int n",
"n",
"i",
"i",
"j;",
"j",
"int a[]= new int[1000];",
"a",
"new int[1000]",
"1000",
"Scanner br = new Scanner(System.in);",
"br",
"new Scanner(System.in)",
"n=br.nextInt()",
"n",
"br.nextInt()",
"br.nextInt",
"br",
"for(i=0;i<n;i++){\n\t\t\ta[i]=br.nextInt();\n\t\t}",
"i=0;",
"i=0",
"i",
"0",
"i<n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\ta[i]=br.nextInt();\n\t\t}",
"{\n\t\t\ta[i]=br.nextInt();\n\t\t}",
"a[i]=br.nextInt()",
"a[i]",
"a",
"i",
"br.nextInt()",
"br.nextInt",
"br",
"for(j=n-1;j>=1;j--){\n\t\t\tSystem.out.print(a[j]+\" \");\n\t\t}",
"j=n-1;",
"j=n-1",
"j",
"n-1",
"n",
"1",
"j>=1",
"j",
"1",
"j--",
"j--",
"j",
"{\n\t\t\tSystem.out.print(a[j]+\" \");\n\t\t}",
"{\n\t\t\tSystem.out.print(a[j]+\" \");\n\t\t}",
"System.out.print(a[j]+\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"a[j]+\" \"",
"a[j]",
"a",
"j",
"\" \"",
"System.out.print(a[0])",
"System.out.print",
"System.out",
"System",
"System.out",
"a[0]",
"a",
"0",
"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\tint n,i,j;\n\t\tint a[]= new int[1000];\n\t\tScanner br = new Scanner(System.in);\n\t\tn=br.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta[i]=br.nextInt();\n\t\t}\n\t\tfor(j=n-1;j>=1;j--){\n\t\t\tSystem.out.print(a[j]+\" \");\n\t\t}\n\t\tSystem.out.print(a[0]);\n\t\tSystem.out.println();\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) {\n\t\tint n,i,j;\n\t\tint a[]= new int[1000];\n\t\tScanner br = new Scanner(System.in);\n\t\tn=br.nextInt();\n\t\tfor(i=0;i<n;i++){\n\t\t\ta[i]=br.nextInt();\n\t\t}\n\t\tfor(j=n-1;j>=1;j--){\n\t\t\tSystem.out.print(a[j]+\" \");\n\t\t}\n\t\tSystem.out.print(a[0]);\n\t\tSystem.out.println();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
int n,i,j;
int a[]= new int[1000];
Scanner br = new Scanner(System.in);
n=br.nextInt();
for(i=0;i<n;i++){
a[i]=br.nextInt();
}
for(j=n-1;j>=1;j--){
System.out.print(a[j]+" ");
}
System.out.print(a[0]);
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,
13,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
17,
11,
1,
41,
13,
2,
13,
17,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
13,
17,
4,
18,
18,
13,
13,
2,
18,
13,
13,
17,
4,
18,
18,
13,
13,
18,
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
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
8,
28
],
[
28,
29
],
[
28,
30
],
[
30,
31
],
[
31,
32
],
[
30,
33
],
[
8,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
38,
40
],
[
34,
41
],
[
41,
42
],
[
41,
43
],
[
34,
44
],
[
44,
45
],
[
45,
46
],
[
34,
47
],
[
48,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
49,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
6,
71
],
[
71,
72
],
[
0,
73
],
[
73,
74
],
[
73,
75
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString h1 = scanner.nextLine();\n\t\tint a = Integer.parseInt(h1);\n\t\t//System.out.println(a);\n\n\t\tString h2 = scanner.nextLine();\n\t\tString[] x = h2.split(\" \");\n\t\t//Arrays.sort(x);\n\n\n\t\tfor (int y = a - 1; y >= 0; y--) {\n\t\t\tif(y!=0)\n\t\t\tSystem.out.print(x[y] + \" \");\n\t\t\telse\n\t\t\tSystem.out.println(x[y]);\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString h1 = scanner.nextLine();\n\t\tint a = Integer.parseInt(h1);\n\t\t//System.out.println(a);\n\n\t\tString h2 = scanner.nextLine();\n\t\tString[] x = h2.split(\" \");\n\t\t//Arrays.sort(x);\n\n\n\t\tfor (int y = a - 1; y >= 0; y--) {\n\t\t\tif(y!=0)\n\t\t\tSystem.out.print(x[y] + \" \");\n\t\t\telse\n\t\t\tSystem.out.println(x[y]);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString h1 = scanner.nextLine();\n\t\tint a = Integer.parseInt(h1);\n\t\t//System.out.println(a);\n\n\t\tString h2 = scanner.nextLine();\n\t\tString[] x = h2.split(\" \");\n\t\t//Arrays.sort(x);\n\n\n\t\tfor (int y = a - 1; y >= 0; y--) {\n\t\t\tif(y!=0)\n\t\t\tSystem.out.print(x[y] + \" \");\n\t\t\telse\n\t\t\tSystem.out.println(x[y]);\n\t\t}\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString h1 = scanner.nextLine();\n\t\tint a = Integer.parseInt(h1);\n\t\t//System.out.println(a);\n\n\t\tString h2 = scanner.nextLine();\n\t\tString[] x = h2.split(\" \");\n\t\t//Arrays.sort(x);\n\n\n\t\tfor (int y = a - 1; y >= 0; y--) {\n\t\t\tif(y!=0)\n\t\t\tSystem.out.print(x[y] + \" \");\n\t\t\telse\n\t\t\tSystem.out.println(x[y]);\n\t\t}\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"String h1 = scanner.nextLine();",
"h1",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"int a = Integer.parseInt(h1);",
"a",
"Integer.parseInt(h1)",
"Integer.parseInt",
"Integer",
"h1",
"String h2 = scanner.nextLine();",
"h2",
"scanner.nextLine()",
"scanner.nextLine",
"scanner",
"String[] x = h2.split(\" \");",
"x",
"h2.split(\" \")",
"h2.split",
"h2",
"\" \"",
"for (int y = a - 1; y >= 0; y--) {\n\t\t\tif(y!=0)\n\t\t\tSystem.out.print(x[y] + \" \");\n\t\t\telse\n\t\t\tSystem.out.println(x[y]);\n\t\t}",
"int y = a - 1;",
"int y = a - 1;",
"y",
"a - 1",
"a",
"1",
"y >= 0",
"y",
"0",
"y--",
"y--",
"y",
"{\n\t\t\tif(y!=0)\n\t\t\tSystem.out.print(x[y] + \" \");\n\t\t\telse\n\t\t\tSystem.out.println(x[y]);\n\t\t}",
"{\n\t\t\tif(y!=0)\n\t\t\tSystem.out.print(x[y] + \" \");\n\t\t\telse\n\t\t\tSystem.out.println(x[y]);\n\t\t}",
"if(y!=0)\n\t\t\tSystem.out.print(x[y] + \" \");\n\t\t\telse\n\t\t\tSystem.out.println(x[y]);",
"y!=0",
"y",
"0",
"System.out.print(x[y] + \" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"x[y] + \" \"",
"x[y]",
"x",
"y",
"\" \"",
"System.out.println(x[y])",
"System.out.println",
"System.out",
"System",
"System.out",
"x[y]",
"x",
"y",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString h1 = scanner.nextLine();\n\t\tint a = Integer.parseInt(h1);\n\t\t//System.out.println(a);\n\n\t\tString h2 = scanner.nextLine();\n\t\tString[] x = h2.split(\" \");\n\t\t//Arrays.sort(x);\n\n\n\t\tfor (int y = a - 1; y >= 0; y--) {\n\t\t\tif(y!=0)\n\t\t\tSystem.out.print(x[y] + \" \");\n\t\t\telse\n\t\t\tSystem.out.println(x[y]);\n\t\t}\n\t}\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tString h1 = scanner.nextLine();\n\t\tint a = Integer.parseInt(h1);\n\t\t//System.out.println(a);\n\n\t\tString h2 = scanner.nextLine();\n\t\tString[] x = h2.split(\" \");\n\t\t//Arrays.sort(x);\n\n\n\t\tfor (int y = a - 1; y >= 0; y--) {\n\t\t\tif(y!=0)\n\t\t\tSystem.out.print(x[y] + \" \");\n\t\t\telse\n\t\t\tSystem.out.println(x[y]);\n\t\t}\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
String h1 = scanner.nextLine();
int a = Integer.parseInt(h1);
//System.out.println(a);
String h2 = scanner.nextLine();
String[] x = h2.split(" ");
//Arrays.sort(x);
for (int y = a - 1; y >= 0; y--) {
if(y!=0)
System.out.print(x[y] + " ");
else
System.out.println(x[y]);
}
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.