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,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
40,
40,
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,
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
],
[
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
],
[
24,
25
],
[
25,
26
],
[
17,
27
],
[
27,
28
],
[
28,
29
],
[
17,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
32,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
48,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
48,
60
],
[
61,
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
],
[
74,
75
],
[
74,
76
],
[
68,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n for(int i = 1; i < -~n; i++) {\n if(i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n for(int x = i; x > 0; x /= 10) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n }\n }\n }\n System.out.println();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n for(int i = 1; i < -~n; i++) {\n if(i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n for(int x = i; x > 0; x /= 10) {\n if(x % 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 scn = new Scanner(System.in);\n int n = scn.nextInt();\n for(int i = 1; i < -~n; i++) {\n if(i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n for(int x = i; x > 0; x /= 10) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n }\n }\n }\n System.out.println();\n }",
"main",
"{\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n for(int i = 1; i < -~n; i++) {\n if(i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n for(int x = i; x > 0; x /= 10) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n }\n }\n }\n System.out.println();\n }",
"Scanner scn = new Scanner(System.in);",
"scn",
"new Scanner(System.in)",
"int n = scn.nextInt();",
"n",
"scn.nextInt()",
"scn.nextInt",
"scn",
"for(int i = 1; i < -~n; i++) {\n if(i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n for(int x = i; x > 0; x /= 10) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n }\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i < -~n",
"i",
"-~n",
"~n",
"n",
"i++",
"i++",
"i",
"{\n if(i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n for(int x = i; x > 0; x /= 10) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n }\n }\n }",
"{\n if(i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n for(int x = i; x > 0; x /= 10) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n }\n }\n }",
"if(i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n for(int x = i; x > 0; x /= 10) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n }\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n System.out.print(\" \" + i);\n }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n for(int x = i; x > 0; x /= 10) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n }\n }",
"for(int x = i; x > 0; x /= 10) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n }",
"int x = i;",
"int x = i;",
"x",
"i",
"x > 0",
"x",
"0",
"x /= 10",
"x /= 10",
"x",
"10",
"{\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n }",
"{\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.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) {\n Scanner scn = new Scanner(System.in);\n int n = scn.nextInt();\n for(int i = 1; i < -~n; i++) {\n if(i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n for(int x = i; x > 0; x /= 10) {\n if(x % 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 scn = new Scanner(System.in);\n int n = scn.nextInt();\n for(int i = 1; i < -~n; i++) {\n if(i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n for(int x = i; x > 0; x /= 10) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n }\n }\n }\n System.out.println();\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scn = new Scanner(System.in);
int n = scn.nextInt();
for(int i = 1; i < -~n; i++) {
if(i % 3 == 0) {
System.out.print(" " + i);
} else {
for(int x = i; x > 0; x /= 10) {
if(x % 10 == 3) {
System.out.print(" " + i);
break;
}
}
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
40,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
30,
0,
13,
13,
42,
40,
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
],
[
99,
5
],
[
99,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
22,
25
],
[
8,
26
],
[
26,
27
],
[
26,
28
],
[
8,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
42,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
55,
61
],
[
48,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
66,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
81,
84
],
[
79,
85
],
[
78,
86
],
[
71,
87
],
[
87,
88
],
[
87,
89
],
[
8,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
6,
96
],
[
96,
97
],
[
0,
98
],
[
98,
99
],
[
98,
100
]
] | [
"import java.io.*;\npublic class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\tString str=input.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tint ii=0;\n\t\tfor(int i=0;i<=n;i++){\n\t\t\tif(!(i==0)){\n\t\t\t\tif(i%3==0){\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\n\t\tSystem.out.println(sb);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\tString str=input.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tint ii=0;\n\t\tfor(int i=0;i<=n;i++){\n\t\t\tif(!(i==0)){\n\t\t\t\tif(i%3==0){\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main",
"public static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\tString str=input.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tint ii=0;\n\t\tfor(int i=0;i<=n;i++){\n\t\t\tif(!(i==0)){\n\t\t\t\tif(i%3==0){\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\n\t\tSystem.out.println(sb);\n\t}",
"main",
"{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\tString str=input.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tint ii=0;\n\t\tfor(int i=0;i<=n;i++){\n\t\t\tif(!(i==0)){\n\t\t\t\tif(i%3==0){\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\n\t\tSystem.out.println(sb);\n\t}",
"BufferedReader input=new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb=new StringBuilder();",
"sb",
"new StringBuilder()",
"String str=input.readLine();",
"str",
"input.readLine()",
"input.readLine",
"input",
"int n=Integer.parseInt(str);",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"int ii=0;",
"ii",
"0",
"for(int i=0;i<=n;i++){\n\t\t\tif(!(i==0)){\n\t\t\t\tif(i%3==0){\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}",
"int i=0;",
"int i=0;",
"i",
"0",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(!(i==0)){\n\t\t\t\tif(i%3==0){\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}",
"{\n\t\t\tif(!(i==0)){\n\t\t\t\tif(i%3==0){\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}",
"if(!(i==0)){\n\t\t\t\tif(i%3==0){\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"!(i==0)",
"(i==0)",
"i",
"0",
"{\n\t\t\t\tif(i%3==0){\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"if(i%3==0){\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"i%3==0",
"i%3",
"i",
"3",
"0",
"{\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"ii=i",
"ii",
"i",
"while(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}",
"!(ii==0)",
"(ii==0)",
"ii",
"0",
"{\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}",
"if(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"ii%10==3",
"ii%10",
"ii",
"10",
"3",
"{\n\t\t\t\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"break;",
"ii/=10",
"ii",
"10",
"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 Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\tString str=input.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tint ii=0;\n\t\tfor(int i=0;i<=n;i++){\n\t\t\tif(!(i==0)){\n\t\t\t\tif(i%3==0){\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\n\t\tSystem.out.println(sb);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args)throws Exception{\n\t\tBufferedReader input=new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb=new StringBuilder();\n\t\tString str=input.readLine();\n\t\tint n=Integer.parseInt(str);\n\t\tint ii=0;\n\t\tfor(int i=0;i<=n;i++){\n\t\t\tif(!(i==0)){\n\t\t\t\tif(i%3==0){\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\t ii=i;\n\t\t\t\t\t\twhile(!(ii==0)){\n\t\t\t\t\t\t\tif(ii%10==3){\n\t\t\t\t\t\t\t\tsb.append(\" \").append(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\tii/=10;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\t\t\n\t\t\t}\t\n\t\t\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main"
] | import java.io.*;
public class Main{
public static void main(String[] args)throws Exception{
BufferedReader input=new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb=new StringBuilder();
String str=input.readLine();
int n=Integer.parseInt(str);
int ii=0;
for(int i=0;i<=n;i++){
if(!(i==0)){
if(i%3==0){
sb.append(" ").append(i);
}else{
ii=i;
while(!(ii==0)){
if(ii%10==3){
sb.append(" ").append(i);
break;
}
ii/=10;
}
}
}
}
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
17,
41,
13,
4,
18,
13,
42,
2,
13,
13,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
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,
40,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
77,
5
],
[
77,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
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
],
[
35,
41
],
[
28,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
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
],
[
55,
61
],
[
54,
62
],
[
47,
63
],
[
63,
64
],
[
63,
65
],
[
24,
66
],
[
66,
67
],
[
8,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
68,
73
],
[
6,
74
],
[
74,
75
],
[
0,
76
],
[
76,
77
],
[
76,
78
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc=new Scanner(System.in);\n\t\tint i=1,n=sc.nextInt();\n\t\twhile(i<=n){\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}else{\n\t\t\t\twhile(x>=1){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx/=10;\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 i=1,n=sc.nextInt();\n\t\twhile(i<=n){\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}else{\n\t\t\t\twhile(x>=1){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx/=10;\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 i=1,n=sc.nextInt();\n\t\twhile(i<=n){\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}else{\n\t\t\t\twhile(x>=1){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx/=10;\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 i=1,n=sc.nextInt();\n\t\twhile(i<=n){\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}else{\n\t\t\t\twhile(x>=1){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx/=10;\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 i=1",
"i",
"1",
"n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(i<=n){\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}else{\n\t\t\t\twhile(x>=1){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t}",
"i<=n",
"i",
"n",
"{\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}else{\n\t\t\t\twhile(x>=1){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\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}else{\n\t\t\t\twhile(x>=1){\n\t\t\t\t\tif(x%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}\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.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>=1){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t}",
"while(x>=1){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx/=10;\n\t\t\t\t}",
"x>=1",
"x",
"1",
"{\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx/=10;\n\t\t\t\t}",
"if(x%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}",
"x%10==3",
"x%10",
"x",
"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;",
"x/=10",
"x",
"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 i=1,n=sc.nextInt();\n\t\twhile(i<=n){\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}else{\n\t\t\t\twhile(x>=1){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx/=10;\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 i=1,n=sc.nextInt();\n\t\twhile(i<=n){\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}else{\n\t\t\t\twhile(x>=1){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx/=10;\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 i=1,n=sc.nextInt();
while(i<=n){
int x=i;
if(x%3==0){
System.out.printf(" %d",i);
}else{
while(x>=1){
if(x%10==3){
System.out.printf(" %d",i);
break;
}
x/=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,
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,
14,
2,
2,
2,
13,
17,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
2,
13,
17,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
2,
13,
17,
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,
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
],
[
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
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
32,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
47,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
62,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
78
],
[
62,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
81,
85
],
[
80,
86
],
[
79,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
93,
94
],
[
93,
95
],
[
79,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
97,
103
],
[
96,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
105,
110
],
[
110,
111
],
[
110,
112
],
[
96,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
114,
118
],
[
113,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
122,
123
],
[
122,
124
],
[
120,
125
],
[
125,
126
],
[
125,
127
],
[
113,
128
],
[
8,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
6,
134
],
[
134,
135
]
] | [
"import java.util.Scanner;\nclass Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\t\tint numN = scanner.nextInt();\n\t\t\tint numn;\n\t\t\t\n for(numn = 3; numn <= numN; numn++){\n\n \tif (numn % 3 == 0){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 100 / 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 1000 / 100 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10000 / 1000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}\n }\n System.out.println();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\t\tint numN = scanner.nextInt();\n\t\t\tint numn;\n\t\t\t\n for(numn = 3; numn <= numN; numn++){\n\n \tif (numn % 3 == 0){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 100 / 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 1000 / 100 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10000 / 1000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}\n }\n System.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\t\tint numN = scanner.nextInt();\n\t\t\tint numn;\n\t\t\t\n for(numn = 3; numn <= numN; numn++){\n\n \tif (numn % 3 == 0){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 100 / 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 1000 / 100 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10000 / 1000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}\n }\n System.out.println();\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\t\n\t\t\tint numN = scanner.nextInt();\n\t\t\tint numn;\n\t\t\t\n for(numn = 3; numn <= numN; numn++){\n\n \tif (numn % 3 == 0){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 100 / 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 1000 / 100 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10000 / 1000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}\n }\n System.out.println();\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int numN = scanner.nextInt();",
"numN",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"int numn;",
"numn",
"for(numn = 3; numn <= numN; numn++){\n\n \tif (numn % 3 == 0){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 100 / 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 1000 / 100 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10000 / 1000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}\n }",
"numn = 3;",
"numn = 3",
"numn",
"3",
"numn <= numN",
"numn",
"numN",
"numn++",
"numn++",
"numn",
"{\n\n \tif (numn % 3 == 0){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 100 / 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 1000 / 100 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10000 / 1000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}\n }",
"{\n\n \tif (numn % 3 == 0){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 100 / 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 1000 / 100 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10000 / 1000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}\n }",
"if (numn % 3 == 0){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 100 / 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 1000 / 100 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10000 / 1000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}",
"numn % 3 == 0",
"numn % 3",
"numn",
"3",
"0",
"{\n \t\tSystem.out.print(\" \"+numn);\n \t}",
"System.out.print(\" \"+numn)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+numn",
"\" \"",
"numn",
"if(numn % 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 100 / 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 1000 / 100 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10000 / 1000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}",
"numn % 10 == 3",
"numn % 10",
"numn",
"10",
"3",
"{\n \t\tSystem.out.print(\" \"+numn);\n \t}",
"System.out.print(\" \"+numn)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+numn",
"\" \"",
"numn",
"if(numn % 100 / 10 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 1000 / 100 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10000 / 1000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}",
"numn % 100 / 10 == 3",
"numn % 100 / 10",
"numn % 100",
"numn",
"100",
"10",
"3",
"{\n \t\tSystem.out.print(\" \"+numn);\n \t}",
"System.out.print(\" \"+numn)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+numn",
"\" \"",
"numn",
"if(numn % 1000 / 100 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn % 10000 / 1000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}",
"numn % 1000 / 100 == 3",
"numn % 1000 / 100",
"numn % 1000",
"numn",
"1000",
"100",
"3",
"{\n \t\tSystem.out.print(\" \"+numn);\n \t}",
"System.out.print(\" \"+numn)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+numn",
"\" \"",
"numn",
"if(numn % 10000 / 1000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}",
"numn % 10000 / 1000 == 3",
"numn % 10000 / 1000",
"numn % 10000",
"numn",
"10000",
"1000",
"3",
"{\n \t\tSystem.out.print(\" \"+numn);\n \t}",
"System.out.print(\" \"+numn)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+numn",
"\" \"",
"numn",
"if(numn / 10000 == 3){\n \t\tSystem.out.print(\" \"+numn);\n \t}\n \telse{\n \t}",
"numn / 10000 == 3",
"numn / 10000",
"numn",
"10000",
"3",
"{\n \t\tSystem.out.print(\" \"+numn);\n \t}",
"System.out.print(\" \"+numn)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+numn",
"\" \"",
"numn",
"{\n \t}",
"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 scanner = new Scanner(System.in);
int numN = scanner.nextInt();
int numn;
for(numn = 3; numn <= numN; numn++){
if (numn % 3 == 0){
System.out.print(" "+numn);
}
else if(numn % 10 == 3){
System.out.print(" "+numn);
}
else if(numn % 100 / 10 == 3){
System.out.print(" "+numn);
}
else if(numn % 1000 / 100 == 3){
System.out.print(" "+numn);
}
else if(numn % 10000 / 1000 == 3){
System.out.print(" "+numn);
}
else if(numn / 10000 == 3){
System.out.print(" "+numn);
}
else{
}
}
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,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
4,
18,
13,
17,
30,
4,
18,
13,
2,
17,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
81,
11
],
[
81,
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
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
41,
48
],
[
48,
49
],
[
50,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
50,
61
],
[
61,
62
],
[
62,
63
],
[
61,
64
],
[
48,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
69,
70
],
[
69,
71
],
[
14,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
72,
77
],
[
12,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"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 number = Integer.parseInt(br.readLine());\n\n\t\tfor(int i = 1; i <= number; i++){\n\t\t\tString count = String.valueOf(i);\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || count.contains(\"3\")){\n\t\t\t\t\tsb.append(\" \" +i);\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(sb);\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 br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint number = Integer.parseInt(br.readLine());\n\n\t\tfor(int i = 1; i <= number; i++){\n\t\t\tString count = String.valueOf(i);\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || count.contains(\"3\")){\n\t\t\t\t\tsb.append(\" \" +i);\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(sb);\n\t}\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 number = Integer.parseInt(br.readLine());\n\n\t\tfor(int i = 1; i <= number; i++){\n\t\t\tString count = String.valueOf(i);\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || count.contains(\"3\")){\n\t\t\t\t\tsb.append(\" \" +i);\n\t\t\t\t}\n\t\t\t}\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 number = Integer.parseInt(br.readLine());\n\n\t\tfor(int i = 1; i <= number; i++){\n\t\t\tString count = String.valueOf(i);\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || count.contains(\"3\")){\n\t\t\t\t\tsb.append(\" \" +i);\n\t\t\t\t}\n\t\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))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int number = Integer.parseInt(br.readLine());",
"number",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i = 1; i <= number; i++){\n\t\t\tString count = String.valueOf(i);\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || count.contains(\"3\")){\n\t\t\t\t\tsb.append(\" \" +i);\n\t\t\t\t}\n\t\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= number",
"i",
"number",
"i++",
"i++",
"i",
"{\n\t\t\tString count = String.valueOf(i);\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || count.contains(\"3\")){\n\t\t\t\t\tsb.append(\" \" +i);\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\tString count = String.valueOf(i);\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || count.contains(\"3\")){\n\t\t\t\t\tsb.append(\" \" +i);\n\t\t\t\t}\n\t\t\t}",
"String count = String.valueOf(i);",
"count",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"if(i % 3 == 0 || i % 10 == 3 || count.contains(\"3\")){\n\t\t\t\t\tsb.append(\" \" +i);\n\t\t\t\t}",
"i % 3 == 0 || i % 10 == 3 || count.contains(\"3\")",
"i % 3 == 0 || i % 10 == 3 || count.contains(\"3\")",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"count.contains(\"3\")",
"count.contains",
"count",
"\"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)",
"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 number = Integer.parseInt(br.readLine());\n\n\t\tfor(int i = 1; i <= number; i++){\n\t\t\tString count = String.valueOf(i);\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || count.contains(\"3\")){\n\t\t\t\t\tsb.append(\" \" +i);\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(sb);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args)throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tint number = Integer.parseInt(br.readLine());\n\n\t\tfor(int i = 1; i <= number; i++){\n\t\t\tString count = String.valueOf(i);\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || count.contains(\"3\")){\n\t\t\t\t\tsb.append(\" \" +i);\n\t\t\t\t}\n\t\t\t}\n\t\tSystem.out.println(sb);\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 br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int number = Integer.parseInt(br.readLine());
for(int i = 1; i <= number; i++){
String count = String.valueOf(i);
if(i % 3 == 0 || i % 10 == 3 || count.contains("3")){
sb.append(" " +i);
}
}
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
41,
13,
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,
0,
13,
2,
2,
13,
17,
13,
30,
0,
13,
4,
13,
13,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
2,
13,
17,
13,
30,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
0,
13,
4,
13,
13,
13,
13,
29,
13,
23,
13,
23,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
26,
27
],
[
21,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
28,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
37,
38
],
[
36,
39
],
[
28,
40
],
[
40,
41
],
[
28,
42
],
[
42,
43
],
[
28,
44
],
[
44,
45
],
[
44,
46
],
[
28,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
47,
55
],
[
55,
56
],
[
56,
57
],
[
47,
58
],
[
59,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
73,
73
],
[
73,
74
],
[
73,
75
],
[
73,
76
],
[
63,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
80,
82
],
[
80,
83
],
[
80,
84
],
[
28,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
12,
91
],
[
91,
92
],
[
10,
93
],
[
93,
94
],
[
93,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
106,
106
],
[
106,
107
],
[
106,
108
],
[
106,
109
],
[
96,
110
],
[
110,
111
],
[
111,
112
],
[
111,
113
],
[
113,
114
],
[
113,
115
],
[
110,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
116,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
123,
125
],
[
123,
126
],
[
123,
127
],
[
95,
128
],
[
128,
129
],
[
93,
130
],
[
130,
131
],
[
93,
132
],
[
132,
133
],
[
93,
134
],
[
134,
135
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tString input = br.readLine();\n\t\t\tint num = Integer.parseInt(input);\n\t\t\tint i, x;\n\t\t\tString ret = \"\";\n\t\t\tfor (i = 2; i <= num; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tret = ret + \" \" + i;\n\t\t\t\t} else {\n\t\t\t\t\tret = INCLUDE3(ret, i, x);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ret);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tprivate static String INCLUDE3(String ret, int i, int x) {\n\t\tif (x % 10 == 3) {\n\t\t\tret = ret + \" \" + i;\n\t\t} else {\n\t\tx = x / 10;\n\t\tif (x > 0) {\n\t\t\tret = INCLUDE3(ret, i, x);\n\t\t}\n}\n\t\treturn ret;\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\tpublic static void main(String[] args) {\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tString input = br.readLine();\n\t\t\tint num = Integer.parseInt(input);\n\t\t\tint i, x;\n\t\t\tString ret = \"\";\n\t\t\tfor (i = 2; i <= num; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tret = ret + \" \" + i;\n\t\t\t\t} else {\n\t\t\t\t\tret = INCLUDE3(ret, i, x);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ret);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n\tprivate static String INCLUDE3(String ret, int i, int x) {\n\t\tif (x % 10 == 3) {\n\t\t\tret = ret + \" \" + i;\n\t\t} else {\n\t\tx = x / 10;\n\t\tif (x > 0) {\n\t\t\tret = INCLUDE3(ret, i, x);\n\t\t}\n}\n\t\treturn ret;\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\ttry {\n\t\t\tString input = br.readLine();\n\t\t\tint num = Integer.parseInt(input);\n\t\t\tint i, x;\n\t\t\tString ret = \"\";\n\t\t\tfor (i = 2; i <= num; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tret = ret + \" \" + i;\n\t\t\t\t} else {\n\t\t\t\t\tret = INCLUDE3(ret, i, x);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ret);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\tInputStreamReader isr = new InputStreamReader(System.in);\n\t\tBufferedReader br = new BufferedReader(isr);\n\t\ttry {\n\t\t\tString input = br.readLine();\n\t\t\tint num = Integer.parseInt(input);\n\t\t\tint i, x;\n\t\t\tString ret = \"\";\n\t\t\tfor (i = 2; i <= num; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tret = ret + \" \" + i;\n\t\t\t\t} else {\n\t\t\t\t\tret = INCLUDE3(ret, i, x);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ret);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\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)",
"try {\n\t\t\tString input = br.readLine();\n\t\t\tint num = Integer.parseInt(input);\n\t\t\tint i, x;\n\t\t\tString ret = \"\";\n\t\t\tfor (i = 2; i <= num; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tret = ret + \" \" + i;\n\t\t\t\t} else {\n\t\t\t\t\tret = INCLUDE3(ret, i, x);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ret);\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tString input = br.readLine();\n\t\t\tint num = Integer.parseInt(input);\n\t\t\tint i, x;\n\t\t\tString ret = \"\";\n\t\t\tfor (i = 2; i <= num; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tret = ret + \" \" + i;\n\t\t\t\t} else {\n\t\t\t\t\tret = INCLUDE3(ret, i, x);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(ret);\n\t\t}",
"String input = br.readLine();",
"input",
"br.readLine()",
"br.readLine",
"br",
"int num = Integer.parseInt(input);",
"num",
"Integer.parseInt(input)",
"Integer.parseInt",
"Integer",
"input",
"int i",
"i",
"x;",
"x",
"String ret = \"\";",
"ret",
"\"\"",
"for (i = 2; i <= num; i++) {\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tret = ret + \" \" + i;\n\t\t\t\t} else {\n\t\t\t\t\tret = INCLUDE3(ret, i, x);\n\t\t\t\t}\n\t\t\t}",
"i = 2;",
"i = 2",
"i",
"2",
"i <= num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\t\tx = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tret = ret + \" \" + i;\n\t\t\t\t} else {\n\t\t\t\t\tret = INCLUDE3(ret, i, x);\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\tret = ret + \" \" + i;\n\t\t\t\t} else {\n\t\t\t\t\tret = INCLUDE3(ret, i, x);\n\t\t\t\t}\n\t\t\t}",
"x = i",
"x",
"i",
"if (x % 3 == 0) {\n\t\t\t\t\tret = ret + \" \" + i;\n\t\t\t\t} else {\n\t\t\t\t\tret = INCLUDE3(ret, i, x);\n\t\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\t\tret = ret + \" \" + i;\n\t\t\t\t}",
"ret = ret + \" \" + i",
"ret",
"ret + \" \" + i",
"ret + \" \" + i",
"ret",
"\" \"",
"i",
"{\n\t\t\t\t\tret = INCLUDE3(ret, i, x);\n\t\t\t\t}",
"ret = INCLUDE3(ret, i, x)",
"ret",
"INCLUDE3(ret, i, x)",
"INCLUDE3",
"ret",
"i",
"x",
"System.out.println(ret)",
"System.out.println",
"System.out",
"System",
"System.out",
"ret",
"String[] args",
"args",
"private static String INCLUDE3(String ret, int i, int x) {\n\t\tif (x % 10 == 3) {\n\t\t\tret = ret + \" \" + i;\n\t\t} else {\n\t\tx = x / 10;\n\t\tif (x > 0) {\n\t\t\tret = INCLUDE3(ret, i, x);\n\t\t}\n}\n\t\treturn ret;\n\t}",
"INCLUDE3",
"{\n\t\tif (x % 10 == 3) {\n\t\t\tret = ret + \" \" + i;\n\t\t} else {\n\t\tx = x / 10;\n\t\tif (x > 0) {\n\t\t\tret = INCLUDE3(ret, i, x);\n\t\t}\n}\n\t\treturn ret;\n\t}",
"if (x % 10 == 3) {\n\t\t\tret = ret + \" \" + i;\n\t\t} else {\n\t\tx = x / 10;\n\t\tif (x > 0) {\n\t\t\tret = INCLUDE3(ret, i, x);\n\t\t}\n}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\tret = ret + \" \" + i;\n\t\t}",
"ret = ret + \" \" + i",
"ret",
"ret + \" \" + i",
"ret + \" \" + i",
"ret",
"\" \"",
"i",
"{\n\t\tx = x / 10;\n\t\tif (x > 0) {\n\t\t\tret = INCLUDE3(ret, i, x);\n\t\t}\n}",
"x = x / 10",
"x",
"x / 10",
"x",
"10",
"if (x > 0) {\n\t\t\tret = INCLUDE3(ret, i, x);\n\t\t}",
"x > 0",
"x",
"0",
"{\n\t\t\tret = INCLUDE3(ret, i, x);\n\t\t}",
"ret = INCLUDE3(ret, i, x)",
"ret",
"INCLUDE3(ret, i, x)",
"INCLUDE3",
"ret",
"i",
"x",
"return ret;",
"ret",
"String ret",
"ret",
"int i",
"i",
"int x",
"x"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
class Main {
public static void main(String[] args) {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
try {
String input = br.readLine();
int num = Integer.parseInt(input);
int i, x;
String ret = "";
for (i = 2; i <= num; i++) {
x = i;
if (x % 3 == 0) {
ret = ret + " " + i;
} else {
ret = INCLUDE3(ret, i, x);
}
}
System.out.println(ret);
} catch (IOException e) {
e.printStackTrace();
}
}
private static String INCLUDE3(String ret, int i, int x) {
if (x % 10 == 3) {
ret = ret + " " + i;
} else {
x = x / 10;
if (x > 0) {
ret = INCLUDE3(ret, i, x);
}
}
return ret;
}
} |
[
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,
17,
13,
9,
42,
2,
13,
17,
30,
41,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
0,
13,
17,
14,
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
],
[
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
],
[
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
],
[
43,
49
],
[
42,
50
],
[
32,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
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
],
[
66,
72
],
[
65,
73
],
[
73,
74
],
[
73,
75
],
[
55,
76
],
[
76,
77
],
[
76,
78
],
[
55,
79
],
[
79,
80
],
[
79,
81
],
[
11,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
9,
88
],
[
88,
89
]
] | [
"import java.io.*;\nimport java.util.*;\n\nclass Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n \n for (int i = 1; i <= n; i++) {\n int x = i;\n if (x % 3 == 0) {\n System.out.printf(\" %d\", i);\n continue;\n }\n while (x > 0) {\n boolean endFlag = false;\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n endFlag = true;\n }\n if (endFlag) break;\n x /= 10;\n }\n }\n \tSystem.out.printf(\"\\n\"); \n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main\n{\n public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n \n for (int i = 1; i <= n; i++) {\n int x = i;\n if (x % 3 == 0) {\n System.out.printf(\" %d\", i);\n continue;\n }\n while (x > 0) {\n boolean endFlag = false;\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n endFlag = true;\n }\n if (endFlag) break;\n x /= 10;\n }\n }\n \tSystem.out.printf(\"\\n\"); \n }\n}",
"Main",
"public static void main(String[] args)\n {\n Scanner sc = new Scanner(System.in);\n \n int n = sc.nextInt();\n \n for (int i = 1; i <= n; i++) {\n int x = i;\n if (x % 3 == 0) {\n System.out.printf(\" %d\", i);\n continue;\n }\n while (x > 0) {\n boolean endFlag = false;\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n endFlag = true;\n }\n if (endFlag) break;\n x /= 10;\n }\n }\n \tSystem.out.printf(\"\\n\"); \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 int x = i;\n if (x % 3 == 0) {\n System.out.printf(\" %d\", i);\n continue;\n }\n while (x > 0) {\n boolean endFlag = false;\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n endFlag = true;\n }\n if (endFlag) break;\n x /= 10;\n }\n }\n \tSystem.out.printf(\"\\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.printf(\" %d\", i);\n continue;\n }\n while (x > 0) {\n boolean endFlag = false;\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n endFlag = true;\n }\n if (endFlag) break;\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) {\n System.out.printf(\" %d\", i);\n continue;\n }\n while (x > 0) {\n boolean endFlag = false;\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n endFlag = true;\n }\n if (endFlag) break;\n x /= 10;\n }\n }",
"{\n int x = i;\n if (x % 3 == 0) {\n System.out.printf(\" %d\", i);\n continue;\n }\n while (x > 0) {\n boolean endFlag = false;\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n endFlag = true;\n }\n if (endFlag) break;\n x /= 10;\n }\n }",
"int x = i;",
"x",
"i",
"if (x % 3 == 0) {\n System.out.printf(\" %d\", i);\n continue;\n }",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n System.out.printf(\" %d\", i);\n continue;\n }",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"continue;",
"while (x > 0) {\n boolean endFlag = false;\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n endFlag = true;\n }\n if (endFlag) break;\n x /= 10;\n }",
"x > 0",
"x",
"0",
"{\n boolean endFlag = false;\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n endFlag = true;\n }\n if (endFlag) break;\n x /= 10;\n }",
"boolean endFlag = false;",
"endFlag",
"false",
"if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n endFlag = true;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n System.out.printf(\" %d\", i);\n endFlag = true;\n }",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"endFlag = true",
"endFlag",
"true",
"if (endFlag) break;",
"endFlag",
"break;",
"x /= 10",
"x",
"10",
"System.out.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args"
] | import java.io.*;
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++) {
int x = i;
if (x % 3 == 0) {
System.out.printf(" %d", i);
continue;
}
while (x > 0) {
boolean endFlag = false;
if (x % 10 == 3) {
System.out.printf(" %d", i);
endFlag = true;
}
if (endFlag) break;
x /= 10;
}
}
System.out.printf("\n");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
9,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
2,
13,
17,
3,
0,
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
],
[
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
],
[
33,
35
],
[
35,
36
],
[
35,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
44,
55
],
[
32,
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
],
[
75,
76
],
[
75,
77
],
[
67,
78
],
[
60,
79
],
[
79,
80
],
[
79,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
6,
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 num = sc.nextInt();\n\t\tsc.close();\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tint x = i + 1;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\tcontinue;\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 + 1));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\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\tsc.close();\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tint x = i + 1;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\tcontinue;\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 + 1));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\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\tsc.close();\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tint x = i + 1;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\tcontinue;\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 + 1));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\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\tsc.close();\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tint x = i + 1;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\tcontinue;\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 + 1));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\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",
"sc.close()",
"sc.close",
"sc",
"for(int i = 0; i < num; i++){\n\t\t\tint x = i + 1;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\tcontinue;\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 + 1));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t}\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tint x = i + 1;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\tcontinue;\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 + 1));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t}\n\t\t}",
"{\n\t\t\tint x = i + 1;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\tcontinue;\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 + 1));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t}\n\t\t}",
"int x = i + 1;",
"x",
"i + 1",
"i",
"1",
"if(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\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 + 1));\n\t\t\t\tcontinue;\n\t\t\t}",
"System.out.print(\" \" + (i + 1))",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + (i + 1)",
"\" \"",
"(i + 1)",
"i",
"1",
"continue;",
"while(x > 0){\n\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\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 + 1));\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 + 1));\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 + 1));\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"System.out.print(\" \" + (i + 1))",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + (i + 1)",
"\" \"",
"(i + 1)",
"i",
"1",
"break;",
"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\tScanner sc = new Scanner(System.in);\n\t\tint num = sc.nextInt();\n\t\tsc.close();\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tint x = i + 1;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\tcontinue;\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 + 1));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\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\tsc.close();\n\n\t\tfor(int i = 0; i < num; i++){\n\t\t\tint x = i + 1;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + (i + 1));\n\t\t\t\tcontinue;\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 + 1));\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\tx /= 10;\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();
sc.close();
for(int i = 0; i < num; i++){
int x = i + 1;
if(x % 3 == 0){
System.out.print(" " + (i + 1));
continue;
}
while(x > 0){
if(x % 10 == 3){
System.out.print(" " + (i + 1));
break;
}
x /= 10;
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
13,
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,
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,
30,
0,
13,
2,
13,
17,
4,
18,
18,
13,
13,
13,
4,
13,
23,
13,
12,
13,
30,
29,
4,
18,
13,
12,
13,
30,
14,
2,
13,
17,
30,
4,
18,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
103,
5
],
[
103,
6
],
[
6,
7
],
[
6,
8
],
[
103,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
11,
16
],
[
16,
17
],
[
16,
18
],
[
11,
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
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
32,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
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
],
[
61,
64
],
[
64,
65
],
[
64,
66
],
[
60,
67
],
[
54,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
71,
73
],
[
11,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
11,
80
],
[
80,
81
],
[
9,
82
],
[
82,
83
],
[
103,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
103,
91
],
[
91,
92
],
[
91,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
94,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
0,
102
],
[
102,
103
],
[
102,
104
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = input();\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i = 1 ; i <= n; i++) {\n\n\t\t\tif (i % 3 == 0) {\n\n\t\t\t\tsb.append(\" \" + i);\n\n\t\t\t} else {\n\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x != 0) {\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sb);\n\n\t\tclose();\n\n\t}\n\n\tpublic static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = input();\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i = 1 ; i <= n; i++) {\n\n\t\t\tif (i % 3 == 0) {\n\n\t\t\t\tsb.append(\" \" + i);\n\n\t\t\t} else {\n\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x != 0) {\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sb);\n\n\t\tclose();\n\n\t}\n\n\tpublic static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}",
"Main",
"public static Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\n\t\tint n = input();\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i = 1 ; i <= n; i++) {\n\n\t\t\tif (i % 3 == 0) {\n\n\t\t\t\tsb.append(\" \" + i);\n\n\t\t\t} else {\n\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x != 0) {\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sb);\n\n\t\tclose();\n\n\t}",
"main",
"{\n\n\t\tint n = input();\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i = 1 ; i <= n; i++) {\n\n\t\t\tif (i % 3 == 0) {\n\n\t\t\t\tsb.append(\" \" + i);\n\n\t\t\t} else {\n\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x != 0) {\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sb);\n\n\t\tclose();\n\n\t}",
"int n = input();",
"n",
"input()",
"input",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for (int i = 1 ; i <= n; i++) {\n\n\t\t\tif (i % 3 == 0) {\n\n\t\t\t\tsb.append(\" \" + i);\n\n\t\t\t} else {\n\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x != 0) {\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\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 <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n\t\t\tif (i % 3 == 0) {\n\n\t\t\t\tsb.append(\" \" + i);\n\n\t\t\t} else {\n\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x != 0) {\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\n\t\t\tif (i % 3 == 0) {\n\n\t\t\t\tsb.append(\" \" + i);\n\n\t\t\t} else {\n\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x != 0) {\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if (i % 3 == 0) {\n\n\t\t\t\tsb.append(\" \" + i);\n\n\t\t\t} else {\n\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x != 0) {\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\n\t\t\t\tsb.append(\" \" + i);\n\n\t\t\t}",
"sb.append(\" \" + i)",
"sb.append",
"sb",
"\" \" + i",
"\" \"",
"i",
"{\n\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x != 0) {\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int x = i;",
"x",
"i",
"while (x != 0) {\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}\n\t\t\t\t}",
"x != 0",
"x",
"0",
"{\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}\n\t\t\t\t}",
"if (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t}",
"sb.append(\" \" + i)",
"sb.append",
"sb",
"\" \" + i",
"\" \"",
"i",
"break;",
"{\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}",
"x = x / 10",
"x",
"x / 10",
"x",
"10",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"close()",
"close",
"String[] args",
"args",
"public static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}",
"input",
"{\n\n\t\treturn scanner.nextInt();\n\n\t}",
"return scanner.nextInt();",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"public static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}",
"close",
"{\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}",
"if (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}",
"scanner != null",
"scanner",
"null",
"{\n\n\t\t\tscanner.close();\n\n\t\t}",
"scanner.close()",
"scanner.close",
"scanner",
"public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = input();\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i = 1 ; i <= n; i++) {\n\n\t\t\tif (i % 3 == 0) {\n\n\t\t\t\tsb.append(\" \" + i);\n\n\t\t\t} else {\n\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x != 0) {\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sb);\n\n\t\tclose();\n\n\t}\n\n\tpublic static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}",
"public class Main {\n\n\tpublic static Scanner scanner = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\n\t\tint n = input();\n\t\tStringBuilder sb = new StringBuilder();\n\n\t\tfor (int i = 1 ; i <= n; i++) {\n\n\t\t\tif (i % 3 == 0) {\n\n\t\t\t\tsb.append(\" \" + i);\n\n\t\t\t} else {\n\n\t\t\t\tint x = i;\n\n\t\t\t\twhile (x != 0) {\n\n\t\t\t\t\tif (x % 10 == 3) {\n\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\n\t\t\t\t\t} else {\n\n\t\t\t\t\t\tx = x / 10;\n\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println(sb);\n\n\t\tclose();\n\n\t}\n\n\tpublic static int input() {\n\n\t\treturn scanner.nextInt();\n\n\t}\n\n\tpublic static void close() {\n\n\t\tif (scanner != null) {\n\n\t\t\tscanner.close();\n\n\t\t}\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static Scanner scanner = new Scanner(System.in);
public static void main(String[] args) {
int n = input();
StringBuilder sb = new StringBuilder();
for (int i = 1 ; i <= n; i++) {
if (i % 3 == 0) {
sb.append(" " + i);
} else {
int x = i;
while (x != 0) {
if (x % 10 == 3) {
sb.append(" " + i);
break;
} else {
x = x / 10;
}
}
}
}
System.out.println(sb);
close();
}
public static int input() {
return scanner.nextInt();
}
public static void close() {
if (scanner != null) {
scanner.close();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
40,
13,
41,
13,
4,
18,
13,
17,
41,
13,
4,
18,
13,
18,
13,
17,
4,
13,
13,
13,
4,
18,
13,
17,
23,
13,
12,
13,
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,
11,
1,
41,
13,
13,
2,
13,
17,
1,
0,
13,
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,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
125,
8
],
[
125,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
21,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
28,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
42,
43
],
[
42,
44
],
[
28,
45
],
[
45,
46
],
[
45,
47
],
[
45,
48
],
[
11,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
9,
53
],
[
53,
54
],
[
125,
55
],
[
55,
56
],
[
55,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
82,
83
],
[
82,
84
],
[
71,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
85,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
85,
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
],
[
57,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
114,
119
],
[
55,
120
],
[
120,
121
],
[
55,
122
],
[
122,
123
],
[
0,
124
],
[
124,
125
],
[
124,
126
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tint inCnt = 0;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tinCnt++;\n\t\t\tString[] se = s.split(\" \");\n\t\t\tint e = Integer.valueOf(se[0]);\n\t\t\tdoMain(inCnt, e);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\n\tprivate static void doMain(int inCnt, int e) {\n\t\tfor (int i = 1; i <= e; i++) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse\n\t\t\t\tfor (int j = i; j != 0; j /= 10)\n\t\t\t\t\tif (j % 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}\n\t\tSystem.out.println(\"\");\n\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\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tint inCnt = 0;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tinCnt++;\n\t\t\tString[] se = s.split(\" \");\n\t\t\tint e = Integer.valueOf(se[0]);\n\t\t\tdoMain(inCnt, e);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\n\tprivate static void doMain(int inCnt, int e) {\n\t\tfor (int i = 1; i <= e; i++) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse\n\t\t\t\tfor (int j = i; j != 0; j /= 10)\n\t\t\t\t\tif (j % 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}\n\t\tSystem.out.println(\"\");\n\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tint inCnt = 0;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tinCnt++;\n\t\t\tString[] se = s.split(\" \");\n\t\t\tint e = Integer.valueOf(se[0]);\n\t\t\tdoMain(inCnt, e);\n\t\t}\n\t\tSystem.exit(0);\n\t}",
"main",
"{\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tint inCnt = 0;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tinCnt++;\n\t\t\tString[] se = s.split(\" \");\n\t\t\tint e = Integer.valueOf(se[0]);\n\t\t\tdoMain(inCnt, e);\n\t\t}\n\t\tSystem.exit(0);\n\t}",
"BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));",
"stdIn",
"new BufferedReader(new InputStreamReader(System.in))",
"String s;",
"s",
"int inCnt = 0;",
"inCnt",
"0",
"while ((s = stdIn.readLine()) != null) {\n\t\t\tinCnt++;\n\t\t\tString[] se = s.split(\" \");\n\t\t\tint e = Integer.valueOf(se[0]);\n\t\t\tdoMain(inCnt, e);\n\t\t}",
"(s = stdIn.readLine()) != null",
"(s = stdIn.readLine())",
"s",
"stdIn.readLine()",
"stdIn.readLine",
"stdIn",
"null",
"{\n\t\t\tinCnt++;\n\t\t\tString[] se = s.split(\" \");\n\t\t\tint e = Integer.valueOf(se[0]);\n\t\t\tdoMain(inCnt, e);\n\t\t}",
"inCnt++",
"inCnt",
"String[] se = s.split(\" \");",
"se",
"s.split(\" \")",
"s.split",
"s",
"\" \"",
"int e = Integer.valueOf(se[0]);",
"e",
"Integer.valueOf(se[0])",
"Integer.valueOf",
"Integer",
"se[0]",
"se",
"0",
"doMain(inCnt, e)",
"doMain",
"inCnt",
"e",
"System.exit(0)",
"System.exit",
"System",
"0",
"String[] args",
"args",
"private static void doMain(int inCnt, int e) {\n\t\tfor (int i = 1; i <= e; i++) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse\n\t\t\t\tfor (int j = i; j != 0; j /= 10)\n\t\t\t\t\tif (j % 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}\n\t\tSystem.out.println(\"\");\n\n\t}",
"doMain",
"{\n\t\tfor (int i = 1; i <= e; i++) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse\n\t\t\t\tfor (int j = i; j != 0; j /= 10)\n\t\t\t\t\tif (j % 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}\n\t\tSystem.out.println(\"\");\n\n\t}",
"for (int i = 1; i <= e; i++) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse\n\t\t\t\tfor (int j = i; j != 0; j /= 10)\n\t\t\t\t\tif (j % 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}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= e",
"i",
"e",
"i++",
"i++",
"i",
"{\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse\n\t\t\t\tfor (int j = i; j != 0; j /= 10)\n\t\t\t\t\tif (j % 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}",
"{\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse\n\t\t\t\tfor (int j = i; j != 0; j /= 10)\n\t\t\t\t\tif (j % 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}",
"if (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse\n\t\t\t\tfor (int j = i; j != 0; j /= 10)\n\t\t\t\t\tif (j % 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}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"for (int j = i; j != 0; j /= 10)\n\t\t\t\t\tif (j % 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}",
"int j = i;",
"int j = i;",
"j",
"i",
"j != 0",
"j",
"0",
"j /= 10",
"j /= 10",
"j",
"10",
"if (j % 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}",
"if (j % 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}",
"j % 10 == 3",
"j % 10",
"j",
"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",
"\"\"",
"int inCnt",
"inCnt",
"int e",
"e",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tint inCnt = 0;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tinCnt++;\n\t\t\tString[] se = s.split(\" \");\n\t\t\tint e = Integer.valueOf(se[0]);\n\t\t\tdoMain(inCnt, e);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\n\tprivate static void doMain(int inCnt, int e) {\n\t\tfor (int i = 1; i <= e; i++) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse\n\t\t\t\tfor (int j = i; j != 0; j /= 10)\n\t\t\t\t\tif (j % 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}\n\t\tSystem.out.println(\"\");\n\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));\n\t\tString s;\n\t\tint inCnt = 0;\n\t\twhile ((s = stdIn.readLine()) != null) {\n\t\t\tinCnt++;\n\t\t\tString[] se = s.split(\" \");\n\t\t\tint e = Integer.valueOf(se[0]);\n\t\t\tdoMain(inCnt, e);\n\t\t}\n\t\tSystem.exit(0);\n\t}\n\n\tprivate static void doMain(int inCnt, int e) {\n\t\tfor (int i = 1; i <= e; i++) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse\n\t\t\t\tfor (int j = i; j != 0; j /= 10)\n\t\t\t\t\tif (j % 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}\n\t\tSystem.out.println(\"\");\n\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
BufferedReader stdIn = new BufferedReader(new InputStreamReader(System.in));
String s;
int inCnt = 0;
while ((s = stdIn.readLine()) != null) {
inCnt++;
String[] se = s.split(" ");
int e = Integer.valueOf(se[0]);
doMain(inCnt, e);
}
System.exit(0);
}
private static void doMain(int inCnt, int e) {
for (int i = 1; i <= e; i++) {
if (i % 3 == 0)
System.out.print(" " + i);
else
for (int j = i; j != 0; j /= 10)
if (j % 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,
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,
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,
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
],
[
88,
8
],
[
88,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
32,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
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
],
[
57,
66
],
[
51,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
71,
77
],
[
77,
78
],
[
11,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
9,
85
],
[
85,
86
],
[
0,
87
],
[
87,
88
],
[
87,
89
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint i = 1;\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\twhile (true) {\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++i <= n);\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\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint i = 1;\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\twhile (true) {\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++i <= n);\n\t\tSystem.out.println(\"\");\n\t}\n}",
"Main",
"public static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint i = 1;\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\twhile (true) {\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++i <= n);\n\t\tSystem.out.println(\"\");\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint i = 1;\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\twhile (true) {\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++i <= n);\n\t\tSystem.out.println(\"\");\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int n = scanner.nextInt();",
"n",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"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\twhile (true) {\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\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\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\twhile (true) {\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\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(\" \" + i);\n\t\t\t} else {\n\t\t\t\twhile (true) {\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\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.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 (true) {\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"while (true) {\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}",
"true",
"{\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\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\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"x /= 10",
"x",
"10",
"if (x != 0) {\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"x != 0",
"x",
"0",
"{\n\t\t\t\t\t\t\tcontinue;\n\t\t\t\t\t\t}",
"continue;",
"{\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"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) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint i = 1;\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\twhile (true) {\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++i <= n);\n\t\tSystem.out.println(\"\");\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint n = scanner.nextInt();\n\t\tint i = 1;\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\twhile (true) {\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} else {\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\t} else {\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t} while (++i <= n);\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 {
Scanner scanner = new Scanner(System.in);
int n = scanner.nextInt();
int i = 1;
do {
int 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;
}
}
}
}
} while (++i <= n);
System.out.println("");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
4,
18,
13,
40,
17,
30,
41,
13,
20,
41,
13,
42,
2,
0,
13,
4,
18,
13,
17,
30,
41,
13,
4,
18,
13,
13,
4,
13,
13,
4,
18,
13,
23,
13,
12,
13,
30,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
122,
8
],
[
122,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
15,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
22,
23
],
[
12,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
24,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
31,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
38,
45
],
[
45,
46
],
[
45,
47
],
[
24,
48
],
[
48,
49
],
[
49,
50
],
[
9,
51
],
[
51,
52
],
[
122,
53
],
[
53,
54
],
[
53,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
58,
66
],
[
66,
67
],
[
67,
68
],
[
58,
69
],
[
70,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
80,
89
],
[
70,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
96,
100
],
[
95,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
107,
108
],
[
107,
109
],
[
101,
110
],
[
94,
111
],
[
111,
112
],
[
111,
113
],
[
55,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
116,
118
],
[
53,
119
],
[
119,
120
],
[
0,
121
],
[
121,
122
],
[
121,
123
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n int n = Integer.parseInt(line);\n call(n);\n \n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }\n }\n \n private static void call(int n) {\n int x;\n for(int i = 1; i <= n; i++) {\n x = i;\n if(x % 3 == 0) {\n System.out.print(\" \" + i);\n continue;\n }\n while(x != 0) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n \n break;\n }\n x /= 10;\n }\n }\n System.out.println();\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n int n = Integer.parseInt(line);\n call(n);\n \n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }\n }\n \n private static void call(int n) {\n int x;\n for(int i = 1; i <= n; i++) {\n x = i;\n if(x % 3 == 0) {\n System.out.print(\" \" + i);\n continue;\n }\n while(x != 0) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n \n break;\n }\n x /= 10;\n }\n }\n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n int n = Integer.parseInt(line);\n call(n);\n \n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }\n }",
"main",
"{\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n int n = Integer.parseInt(line);\n call(n);\n \n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }\n }",
"try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n int n = Integer.parseInt(line);\n call(n);\n \n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }",
"catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }",
"Exception e",
"{\n e.getStackTrace();\n System.exit(-1);\n }",
"e.getStackTrace()",
"e.getStackTrace",
"e",
"System.exit(-1)",
"System.exit",
"System",
"-1",
"1",
"{\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n int n = Integer.parseInt(line);\n call(n);\n \n }\n stdReader.close();\n }",
"BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));",
"stdReader",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"while((line = stdReader.readLine()) != null) {\n int n = Integer.parseInt(line);\n call(n);\n \n }",
"(line = stdReader.readLine()) != null",
"(line = stdReader.readLine())",
"line",
"stdReader.readLine()",
"stdReader.readLine",
"stdReader",
"null",
"{\n int n = Integer.parseInt(line);\n call(n);\n \n }",
"int n = Integer.parseInt(line);",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"call(n)",
"call",
"n",
"stdReader.close()",
"stdReader.close",
"stdReader",
"String[] args",
"args",
"private static void call(int n) {\n int x;\n for(int i = 1; i <= n; i++) {\n x = i;\n if(x % 3 == 0) {\n System.out.print(\" \" + i);\n continue;\n }\n while(x != 0) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n \n break;\n }\n x /= 10;\n }\n }\n System.out.println();\n }",
"call",
"{\n int x;\n for(int i = 1; i <= n; i++) {\n x = i;\n if(x % 3 == 0) {\n System.out.print(\" \" + i);\n continue;\n }\n while(x != 0) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n \n break;\n }\n x /= 10;\n }\n }\n System.out.println();\n }",
"int x;",
"x",
"for(int i = 1; i <= n; i++) {\n x = i;\n if(x % 3 == 0) {\n System.out.print(\" \" + i);\n continue;\n }\n while(x != 0) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n \n break;\n }\n x /= 10;\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n x = i;\n if(x % 3 == 0) {\n System.out.print(\" \" + i);\n continue;\n }\n while(x != 0) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n \n break;\n }\n x /= 10;\n }\n }",
"{\n x = i;\n if(x % 3 == 0) {\n System.out.print(\" \" + i);\n continue;\n }\n while(x != 0) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n \n break;\n }\n x /= 10;\n }\n }",
"x = i",
"x",
"i",
"if(x % 3 == 0) {\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;",
"while(x != 0) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n \n break;\n }\n x /= 10;\n }",
"x != 0",
"x",
"0",
"{\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n \n break;\n }\n x /= 10;\n }",
"if(x % 10 == 3) {\n System.out.print(\" \" + i);\n \n break;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n System.out.print(\" \" + i);\n \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",
"int n",
"n",
"public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n int n = Integer.parseInt(line);\n call(n);\n \n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }\n }\n \n private static void call(int n) {\n int x;\n for(int i = 1; i <= n; i++) {\n x = i;\n if(x % 3 == 0) {\n System.out.print(\" \" + i);\n continue;\n }\n while(x != 0) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n \n break;\n }\n x /= 10;\n }\n }\n System.out.println();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n try {\n BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));\n \n String line;\n \n while((line = stdReader.readLine()) != null) {\n int n = Integer.parseInt(line);\n call(n);\n \n }\n stdReader.close();\n } catch(Exception e) {\n e.getStackTrace();\n System.exit(-1);\n }\n }\n \n private static void call(int n) {\n int x;\n for(int i = 1; i <= n; i++) {\n x = i;\n if(x % 3 == 0) {\n System.out.print(\" \" + i);\n continue;\n }\n while(x != 0) {\n if(x % 10 == 3) {\n System.out.print(\" \" + i);\n \n break;\n }\n x /= 10;\n }\n }\n System.out.println();\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
BufferedReader stdReader = new BufferedReader(new InputStreamReader(System.in));
String line;
while((line = stdReader.readLine()) != null) {
int n = Integer.parseInt(line);
call(n);
}
stdReader.close();
} catch(Exception e) {
e.getStackTrace();
System.exit(-1);
}
}
private static void call(int n) {
int x;
for(int i = 1; i <= n; i++) {
x = i;
if(x % 3 == 0) {
System.out.print(" " + i);
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,
4,
18,
20,
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,
14,
4,
13,
13,
4,
18,
4,
18,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
17,
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
],
[
11,
12
],
[
12,
13
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
18,
21
],
[
17,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
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
],
[
42,
44
],
[
42,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
47,
50
],
[
41,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
60,
65
],
[
6,
66
],
[
66,
67
],
[
4,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
77,
78
],
[
76,
79
],
[
76,
80
],
[
80,
81
],
[
80,
82
],
[
70,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
83,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
105,
106
],
[
105,
107
],
[
70,
108
],
[
108,
109
],
[
68,
110
],
[
110,
111
],
[
68,
112
],
[
112,
113
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tint n = new Scanner(System.in).nextInt();\n\t\tint i=1;\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 if(check3(i, Integer.toString(i).length())){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t}while(++i<=n);\n\t\tSystem.out.println(\"\");\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.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tint n = new Scanner(System.in).nextInt();\n\t\tint i=1;\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 if(check3(i, Integer.toString(i).length())){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t}while(++i<=n);\n\t\tSystem.out.println(\"\");\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\tint n = new Scanner(System.in).nextInt();\n\t\tint i=1;\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 if(check3(i, Integer.toString(i).length())){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t}while(++i<=n);\n\t\tSystem.out.println(\"\");\n\t}",
"main",
"{\n\t\tint n = new Scanner(System.in).nextInt();\n\t\tint i=1;\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 if(check3(i, Integer.toString(i).length())){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t}while(++i<=n);\n\t\tSystem.out.println(\"\");\n\t}",
"int n = new Scanner(System.in).nextInt();",
"n",
"new Scanner(System.in).nextInt()",
"new Scanner(System.in).nextInt",
"new Scanner(System.in)",
"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 if(check3(i, Integer.toString(i).length())){\n\t\t\t\tSystem.out.print(\" \"+i);\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 if(check3(i, Integer.toString(i).length())){\n\t\t\t\tSystem.out.print(\" \"+i);\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 if(check3(i, Integer.toString(i).length())){\n\t\t\t\tSystem.out.print(\" \"+i);\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",
"if(check3(i, Integer.toString(i).length())){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}",
"check3(i, Integer.toString(i).length())",
"check3",
"i",
"Integer.toString(i).length()",
"Integer.toString(i).length",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"{\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",
"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.util.Scanner;
class Main {
public static void main(String[] args) throws Exception {
int n = new Scanner(System.in).nextInt();
int i=1;
do{
int x=i;
if(x%3==0){
System.out.print(" "+i);
}else if(check3(i, Integer.toString(i).length())){
System.out.print(" "+i);
}
}while(++i<=n);
System.out.println("");
}
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,
42,
17,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
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,
40,
13,
14,
2,
13,
13,
30,
3,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
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
],
[
33,
39
],
[
26,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
53,
59
],
[
52,
60
],
[
46,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
64,
65
],
[
64,
66
],
[
22,
67
],
[
67,
68
],
[
22,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\n\t\twhile(true){\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}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.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx = x / 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t\tif(i > n){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\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\tint i = 1;\n\n\t\twhile(true){\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}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.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx = x / 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t\tif(i > n){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\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 i = 1;\n\n\t\twhile(true){\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}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.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx = x / 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t\tif(i > n){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\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){\n\t\t\t\tSystem.out.printf(\" %d\",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.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx = x / 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t\tif(i > n){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\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(true){\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}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.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx = x / 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t\tif(i > n){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"true",
"{\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}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.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx = x / 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t\tif(i > n){\n\t\t\t\tbreak;\n\t\t\t}\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}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.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx = x / 10;\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",
"{\n\t\t\t\twhile(x != 0){\n\t\t\t\t\tif(x % 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\tx = x / 10;\n\t\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.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx = x / 10;\n\t\t\t\t\t}\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.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx = x / 10;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(x % 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\tx = x / 10;\n\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"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\tx = x / 10;\n\t\t\t\t\t}",
"x = x / 10",
"x",
"x / 10",
"x",
"10",
"i++",
"i",
"if(i > n){\n\t\t\t\tbreak;\n\t\t\t}",
"i > n",
"i",
"n",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\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){\n\t\t\t\tSystem.out.printf(\" %d\",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.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx = x / 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t\tif(i > n){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\n\");\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\tint i = 1;\n\n\t\twhile(true){\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}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.printf(\" %d\",i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx = x / 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\n\t\t\ti++;\n\t\t\tif(i > n){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.print(\"\\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(true){
int x = i;
if(x % 3 == 0){
System.out.printf(" %d",i);
}else{
while(x != 0){
if(x % 10 == 3){
System.out.printf(" %d",i);
break;
}else{
x = x / 10;
}
}
}
i++;
if(i > n){
break;
}
}
System.out.print("\n");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
17,
14,
2,
2,
13,
17,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
30,
0,
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,
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
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
50,
51
],
[
50,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
60,
66
],
[
53,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
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
],
[
86,
87
],
[
85,
88
],
[
83,
89
],
[
82,
90
],
[
75,
91
],
[
91,
92
],
[
91,
93
],
[
47,
94
],
[
94,
95
],
[
34,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
6,
102
],
[
102,
103
]
] | [
"import java.util.Scanner;\n\nclass Main {\n public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int n = scan.nextInt();\n int x = 1;\n int y = 0;\n if (n >= 3 && n <= 10000) {\n for (int count = 0;count < n; count++) {\n y = x / 10;\n if (x % 3 == 0){\n sb.append(\" \")\n .append(x);\n } else {\n y = x;\n while(y != 0) {\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }\n }\n x++;\n }\n System.out.println(sb);\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int n = scan.nextInt();\n int x = 1;\n int y = 0;\n if (n >= 3 && n <= 10000) {\n for (int count = 0;count < n; count++) {\n y = x / 10;\n if (x % 3 == 0){\n sb.append(\" \")\n .append(x);\n } else {\n y = x;\n while(y != 0) {\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }\n }\n x++;\n }\n System.out.println(sb);\n }\n }\n}",
"Main",
"public static void main(String args[]) {\n Scanner scan = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int n = scan.nextInt();\n int x = 1;\n int y = 0;\n if (n >= 3 && n <= 10000) {\n for (int count = 0;count < n; count++) {\n y = x / 10;\n if (x % 3 == 0){\n sb.append(\" \")\n .append(x);\n } else {\n y = x;\n while(y != 0) {\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }\n }\n x++;\n }\n System.out.println(sb);\n }\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int n = scan.nextInt();\n int x = 1;\n int y = 0;\n if (n >= 3 && n <= 10000) {\n for (int count = 0;count < n; count++) {\n y = x / 10;\n if (x % 3 == 0){\n sb.append(\" \")\n .append(x);\n } else {\n y = x;\n while(y != 0) {\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }\n }\n x++;\n }\n System.out.println(sb);\n }\n }",
"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 x = 1;",
"x",
"1",
"int y = 0;",
"y",
"0",
"if (n >= 3 && n <= 10000) {\n for (int count = 0;count < n; count++) {\n y = x / 10;\n if (x % 3 == 0){\n sb.append(\" \")\n .append(x);\n } else {\n y = x;\n while(y != 0) {\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }\n }\n x++;\n }\n System.out.println(sb);\n }",
"n >= 3 && n <= 10000",
"n >= 3",
"n",
"3",
"n <= 10000",
"n",
"10000",
"{\n for (int count = 0;count < n; count++) {\n y = x / 10;\n if (x % 3 == 0){\n sb.append(\" \")\n .append(x);\n } else {\n y = x;\n while(y != 0) {\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }\n }\n x++;\n }\n System.out.println(sb);\n }",
"for (int count = 0;count < n; count++) {\n y = x / 10;\n if (x % 3 == 0){\n sb.append(\" \")\n .append(x);\n } else {\n y = x;\n while(y != 0) {\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }\n }\n x++;\n }",
"int count = 0;",
"int count = 0;",
"count",
"0",
"count < n",
"count",
"n",
"count++",
"count++",
"count",
"{\n y = x / 10;\n if (x % 3 == 0){\n sb.append(\" \")\n .append(x);\n } else {\n y = x;\n while(y != 0) {\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }\n }\n x++;\n }",
"{\n y = x / 10;\n if (x % 3 == 0){\n sb.append(\" \")\n .append(x);\n } else {\n y = x;\n while(y != 0) {\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }\n }\n x++;\n }",
"y = x / 10",
"y",
"x / 10",
"x",
"10",
"if (x % 3 == 0){\n sb.append(\" \")\n .append(x);\n } else {\n y = x;\n while(y != 0) {\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }\n }",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n sb.append(\" \")\n .append(x);\n }",
"sb.append(\" \")\n .append(x)",
"sb.append(\" \")\n .append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"x",
"{\n y = x;\n while(y != 0) {\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }\n }",
"y = x",
"y",
"x",
"while(y != 0) {\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }",
"y != 0",
"y",
"0",
"{\n if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }\n y /= 10;\n }",
"if (y % 10 == 3) {\n sb.append(\" \")\n .append(x);\n break;\n }",
"y % 10 == 3",
"y % 10",
"y",
"10",
"3",
"{\n sb.append(\" \")\n .append(x);\n break;\n }",
"sb.append(\" \")\n .append(x)",
"sb.append(\" \")\n .append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"x",
"break;",
"y /= 10",
"y",
"10",
"x++",
"x",
"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 scan = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
int n = scan.nextInt();
int x = 1;
int y = 0;
if (n >= 3 && n <= 10000) {
for (int count = 0;count < n; count++) {
y = x / 10;
if (x % 3 == 0){
sb.append(" ")
.append(x);
} else {
y = x;
while(y != 0) {
if (y % 10 == 3) {
sb.append(" ")
.append(x);
break;
}
y /= 10;
}
}
x++;
}
System.out.println(sb);
}
}
} |
[
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,
9,
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,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
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
],
[
36,
45
],
[
29,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
46,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
46,
58
],
[
59,
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
],
[
72,
73
],
[
72,
74
],
[
66,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
6,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] | [
"\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m = sc.nextInt();\n\t\tfor (int j = 1; j <= m; j++) {\n\t\t\tif (j % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tfor (int i = j; i > 0; i /= 10) {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t\tsc.close();\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 m = sc.nextInt();\n\t\tfor (int j = 1; j <= m; j++) {\n\t\t\tif (j % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tfor (int i = j; i > 0; i /= 10) {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m = sc.nextInt();\n\t\tfor (int j = 1; j <= m; j++) {\n\t\t\tif (j % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tfor (int i = j; i > 0; i /= 10) {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint m = sc.nextInt();\n\t\tfor (int j = 1; j <= m; j++) {\n\t\t\tif (j % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tfor (int i = j; i > 0; i /= 10) {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int m = sc.nextInt();",
"m",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for (int j = 1; j <= m; j++) {\n\t\t\tif (j % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tfor (int i = j; i > 0; i /= 10) {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"int j = 1;",
"int j = 1;",
"j",
"1",
"j <= m",
"j",
"m",
"j++",
"j++",
"j",
"{\n\t\t\tif (j % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tfor (int i = j; i > 0; i /= 10) {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"{\n\t\t\tif (j % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tfor (int i = j; i > 0; i /= 10) {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}",
"if (j % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\tcontinue;\n\t\t\t}",
"j % 3 == 0",
"j % 3",
"j",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\tcontinue;\n\t\t\t}",
"System.out.print(\" \"+j )",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+j",
"\" \"",
"j",
"continue;",
"for (int i = j; i > 0; i /= 10) {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"int i = j;",
"int i = j;",
"i",
"j",
"i > 0",
"i",
"0",
"i /= 10",
"i /= 10",
"i",
"10",
"{\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"{\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"{\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"System.out.print(\" \"+j )",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+j",
"\" \"",
"j",
"break;",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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 m = sc.nextInt();\n\t\tfor (int j = 1; j <= m; j++) {\n\t\t\tif (j % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tfor (int i = j; i > 0; i /= 10) {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t\tsc.close();\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 m = sc.nextInt();\n\t\tfor (int j = 1; j <= m; j++) {\n\t\t\tif (j % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tfor (int i = j; i > 0; i /= 10) {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \"+j );\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t}\n\t\tSystem.out.println();\n\t\tsc.close();\n\t}\n}",
"Main"
] |
import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int m = sc.nextInt();
for (int j = 1; j <= m; j++) {
if (j % 3 == 0) {
System.out.print(" "+j );
continue;
}
for (int i = j; i > 0; i /= 10) {
if (i % 10 == 3) {
System.out.print(" "+j );
break;
}
}
}
System.out.println();
sc.close();
}
} |
[
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,
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,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
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
],
[
133,
5
],
[
133,
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
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
32,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
47,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
62,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
62,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
90,
94
],
[
83,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
96,
101
],
[
101,
102
],
[
101,
103
],
[
83,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
107,
108
],
[
107,
109
],
[
106,
110
],
[
105,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
111,
115
],
[
104,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
117,
122
],
[
122,
123
],
[
122,
124
],
[
8,
125
],
[
125,
126
],
[
126,
127
],
[
127,
128
],
[
127,
129
],
[
6,
130
],
[
130,
131
],
[
0,
132
],
[
132,
133
],
[
132,
134
]
] | [
"import java.util.Scanner;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\telse if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 100 >= 30 && i % 100 < 40){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\n\t\t\t\tSystem.out.print(\" \"+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 scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\telse if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 100 >= 30 && i % 100 < 40){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\n\t\t\t\tSystem.out.print(\" \"+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 scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\telse if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 100 >= 30 && i % 100 < 40){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\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 scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\telse if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 100 >= 30 && i % 100 < 40){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\n\t\t\t\tSystem.out.print(\" \"+i);\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 n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int i;",
"i",
"for(i = 1; i <= n; ++i){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\telse if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 100 >= 30 && i % 100 < 40){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t}",
"i = 1;",
"i = 1",
"i",
"1",
"i <= n",
"i",
"n",
"++i",
"++i",
"i",
"{\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\telse if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 100 >= 30 && i % 100 < 40){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\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\t}\n\t\t\telse if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 100 >= 30 && i % 100 < 40){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\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\t}\n\t\t\telse if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 100 >= 30 && i % 100 < 40){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\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\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}\n\t\t\telse if(i % 100 >= 30 && i % 100 < 40){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\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(i % 100 >= 30 && i % 100 < 40){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}",
"i % 100 >= 30 && i % 100 < 40",
"i % 100 >= 30",
"i % 100",
"i",
"100",
"30",
"i % 100 < 40",
"i % 100",
"i",
"100",
"40",
"{\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 % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}",
"i % 1000 >= 300 && i % 1000 < 400",
"i % 1000 >= 300",
"i % 1000",
"i",
"1000",
"300",
"i % 1000 < 400",
"i % 1000",
"i",
"1000",
"400",
"{\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 % 10000 >= 3000 && i % 10000 < 4000){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}",
"i % 10000 >= 3000 && i % 10000 < 4000",
"i % 10000 >= 3000",
"i % 10000",
"i",
"10000",
"3000",
"i % 10000 < 4000",
"i % 10000",
"i",
"10000",
"4000",
"{\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\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\telse if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 100 >= 30 && i % 100 < 40){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\n\t\t\t\tSystem.out.print(\" \"+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 scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint i;\n\t\tfor(i = 1; i <= n; ++i){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\telse if(i % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 100 >= 30 && i % 100 < 40){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 1000 >= 300 && i % 1000 < 400){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse if(i % 10000 >= 3000 && i % 10000 < 4000){\n\t\t\t\tSystem.out.print(\" \"+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 scan = new Scanner(System.in);
int n = scan.nextInt();
int i;
for(i = 1; i <= n; ++i){
if(i % 3 == 0){
System.out.print(" "+i);
}
else if(i % 10 == 3){
System.out.print(" "+i);
}
else if(i % 100 >= 30 && i % 100 < 40){
System.out.print(" "+i);
}
else if(i % 1000 >= 300 && i % 1000 < 400){
System.out.print(" "+i);
}
else if(i % 10000 >= 3000 && i % 10000 < 4000){
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,
41,
13,
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,
42,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
3,
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
],
[
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
],
[
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
],
[
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
],
[
66,
83
],
[
83,
84
],
[
83,
85
],
[
85,
86
],
[
85,
87
],
[
66,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] | [
"\nimport java.util.Scanner;\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint number = scan.nextInt();\n\t\tfor(int i = 1; i<=number; 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 if(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t}\n ",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint number = scan.nextInt();\n\t\tfor(int i = 1; i<=number; 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 if(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t}",
"Main",
"public static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint number = scan.nextInt();\n\t\tfor(int i = 1; i<=number; 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 if(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\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 number = scan.nextInt();\n\t\tfor(int i = 1; i<=number; 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 if(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\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 number = scan.nextInt();",
"number",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 1; i<=number; 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 if(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i<=number",
"i",
"number",
"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 if(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\t\t\t}\n\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 if(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\t\t\t}\n\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 if(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\t\t\t}\n\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",
"if(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"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",
"{\n\t\t\t\twhile(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\t}",
"while(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}",
"true",
"{\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\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\tbreak;\n\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}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"break;",
"x = x/10",
"x",
"x/10",
"x",
"10",
"if(x==0){\n\t\t\t\tbreak;\n\t\t\t}",
"x==0",
"x",
"0",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"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 scan = new Scanner(System.in);\n\t\tint number = scan.nextInt();\n\t\tfor(int i = 1; i<=number; 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 if(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint number = scan.nextInt();\n\t\tfor(int i = 1; i<=number; 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 if(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}else{\n\t\t\t\twhile(true){\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}\n\t\t\tx = x/10;\n\t\t\tif(x==0){\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t }\n\t}",
"Main"
] |
import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner scan = new Scanner(System.in);
int number = scan.nextInt();
for(int i = 1; i<=number; i++){
int x = i;
if(x%3==0){
System.out.print(" "+i);
}else if(x % 10 == 3){
System.out.print(" "+i);
}else{
while(true){
if(x%10==3){
System.out.print(" "+i);
break;
}
x = x/10;
if(x==0){
break;
}
}
}
}
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,
11,
1,
2,
13,
13,
1,
40,
13,
30,
30,
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,
0,
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,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
102,
5
],
[
102,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
28,
29
],
[
22,
30
],
[
31,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
38,
47
],
[
31,
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
],
[
54,
63
],
[
31,
64
],
[
64,
65
],
[
64,
66
],
[
31,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
74,
76
],
[
71,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
83,
92
],
[
8,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
6,
99
],
[
99,
100
],
[
0,
101
],
[
101,
102
],
[
101,
103
]
] | [
"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\tint i = 1;\n\t\tint x;\n\n\t\tfor (; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tx = i;\n\n\t\t\twhile (x != 0) {\n\t\t\t\tx = x / 10;\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}\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\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\t\tint x;\n\n\t\tfor (; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tx = i;\n\n\t\t\twhile (x != 0) {\n\t\t\t\tx = x / 10;\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}\n\t\t}\n\t\tSystem.out.println(\"\");\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\tint i = 1;\n\t\tint x;\n\n\t\tfor (; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tx = i;\n\n\t\t\twhile (x != 0) {\n\t\t\t\tx = x / 10;\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}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\t\tint x;\n\n\t\tfor (; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tx = i;\n\n\t\t\twhile (x != 0) {\n\t\t\t\tx = x / 10;\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}\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 = 1;",
"i",
"1",
"int x;",
"x",
"for (; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tx = i;\n\n\t\t\twhile (x != 0) {\n\t\t\t\tx = x / 10;\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}\n\t\t}",
";",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tx = i;\n\n\t\t\twhile (x != 0) {\n\t\t\t\tx = x / 10;\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}\n\t\t}",
"{\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tx = i;\n\n\t\t\twhile (x != 0) {\n\t\t\t\tx = x / 10;\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}\n\t\t}",
"if (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"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;",
"if (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"{\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;",
"x = i",
"x",
"i",
"while (x != 0) {\n\t\t\t\tx = x / 10;\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}",
"x != 0",
"x",
"0",
"{\n\t\t\t\tx = x / 10;\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}",
"x = x / 10",
"x",
"x / 10",
"x",
"10",
"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;",
"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\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\t\tint x;\n\n\t\tfor (; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tx = i;\n\n\t\t\twhile (x != 0) {\n\t\t\t\tx = x / 10;\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}\n\t\t}\n\t\tSystem.out.println(\"\");\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\tint i = 1;\n\t\tint x;\n\n\t\tfor (; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tif (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\n\t\t\tx = i;\n\n\t\t\twhile (x != 0) {\n\t\t\t\tx = x / 10;\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}\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 i = 1;
int x;
for (; i <= n; i++) {
if (i % 3 == 0) {
System.out.print(" " + i);
continue;
}
if (i % 10 == 3) {
System.out.print(" " + i);
continue;
}
x = i;
while (x != 0) {
x = x / 10;
if (x % 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,
4,
18,
13,
13,
14,
2,
2,
17,
13,
2,
13,
17,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
4,
18,
13,
17,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
4,
18,
18,
13,
13,
2,
17,
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
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
24,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
57,
58
],
[
57,
59
],
[
45,
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
],
[
72,
73
],
[
72,
74
],
[
60,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
78,
79
],
[
79,
80
],
[
78,
81
],
[
75,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
82,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
89,
93
],
[
82,
94
],
[
94,
95
],
[
95,
96
],
[
82,
97
],
[
98,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
102,
103
],
[
101,
104
],
[
98,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
105,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
110,
115
],
[
115,
116
],
[
115,
117
],
[
109,
118
],
[
31,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
119,
124
],
[
6,
125
],
[
125,
126
]
] | [
"\nimport java.util.Scanner;\n\nclass Main {\n public static void main(String args[]){\n\t\t\n\t//整数nを読み取る\n\tScanner sc = new Scanner(System.in);\n\tString s1 = sc.next();\n int n = Integer.parseInt(s1);\n \n //nが条件(3から10000)内か確認\n if(3 <= n && n <= 10000){\n \t\n \t//1からnまで繰り返す\n \tfor(int i = 1; i <= n; i++){\n \t\t\n \t\t//3の倍数と3とつく数字を表示\n \t\tif(i % 3 == 0){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse if(i % 10 == 3){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse{\n \t\t String si = String.valueOf(i);\n \t\t for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }\n \t\t}\n \t}\n \tSystem.out.println(\"\");\n }\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n public static void main(String args[]){\n\t\t\n\t//整数nを読み取る\n\tScanner sc = new Scanner(System.in);\n\tString s1 = sc.next();\n int n = Integer.parseInt(s1);\n \n //nが条件(3から10000)内か確認\n if(3 <= n && n <= 10000){\n \t\n \t//1からnまで繰り返す\n \tfor(int i = 1; i <= n; i++){\n \t\t\n \t\t//3の倍数と3とつく数字を表示\n \t\tif(i % 3 == 0){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse if(i % 10 == 3){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse{\n \t\t String si = String.valueOf(i);\n \t\t for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }\n \t\t}\n \t}\n \tSystem.out.println(\"\");\n }\n }\n}",
"Main",
"public static void main(String args[]){\n\t\t\n\t//整数nを読み取る\n\tScanner sc = new Scanner(System.in);\n\tString s1 = sc.next();\n int n = Integer.parseInt(s1);\n \n //nが条件(3から10000)内か確認\n if(3 <= n && n <= 10000){\n \t\n \t//1からnまで繰り返す\n \tfor(int i = 1; i <= n; i++){\n \t\t\n \t\t//3の倍数と3とつく数字を表示\n \t\tif(i % 3 == 0){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse if(i % 10 == 3){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse{\n \t\t String si = String.valueOf(i);\n \t\t for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }\n \t\t}\n \t}\n \tSystem.out.println(\"\");\n }\n }",
"main",
"{\n\t\t\n\t//整数nを読み取る\n\tScanner sc = new Scanner(System.in);\n\tString s1 = sc.next();\n int n = Integer.parseInt(s1);\n \n //nが条件(3から10000)内か確認\n if(3 <= n && n <= 10000){\n \t\n \t//1からnまで繰り返す\n \tfor(int i = 1; i <= n; i++){\n \t\t\n \t\t//3の倍数と3とつく数字を表示\n \t\tif(i % 3 == 0){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse if(i % 10 == 3){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse{\n \t\t String si = String.valueOf(i);\n \t\t for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }\n \t\t}\n \t}\n \tSystem.out.println(\"\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"String s1 = sc.next();",
"s1",
"sc.next()",
"sc.next",
"sc",
"int n = Integer.parseInt(s1);",
"n",
"Integer.parseInt(s1)",
"Integer.parseInt",
"Integer",
"s1",
"if(3 <= n && n <= 10000){\n \t\n \t//1からnまで繰り返す\n \tfor(int i = 1; i <= n; i++){\n \t\t\n \t\t//3の倍数と3とつく数字を表示\n \t\tif(i % 3 == 0){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse if(i % 10 == 3){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse{\n \t\t String si = String.valueOf(i);\n \t\t for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }\n \t\t}\n \t}\n \tSystem.out.println(\"\");\n }",
"3 <= n && n <= 10000",
"3 <= n",
"3",
"n",
"n <= 10000",
"n",
"10000",
"{\n \t\n \t//1からnまで繰り返す\n \tfor(int i = 1; i <= n; i++){\n \t\t\n \t\t//3の倍数と3とつく数字を表示\n \t\tif(i % 3 == 0){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse if(i % 10 == 3){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse{\n \t\t String si = String.valueOf(i);\n \t\t for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }\n \t\t}\n \t}\n \tSystem.out.println(\"\");\n }",
"for(int i = 1; i <= n; i++){\n \t\t\n \t\t//3の倍数と3とつく数字を表示\n \t\tif(i % 3 == 0){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse if(i % 10 == 3){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse{\n \t\t String si = String.valueOf(i);\n \t\t for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }\n \t\t}\n \t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \t\t\n \t\t//3の倍数と3とつく数字を表示\n \t\tif(i % 3 == 0){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse if(i % 10 == 3){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse{\n \t\t String si = String.valueOf(i);\n \t\t for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }\n \t\t}\n \t}",
"{\n \t\t\n \t\t//3の倍数と3とつく数字を表示\n \t\tif(i % 3 == 0){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse if(i % 10 == 3){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse{\n \t\t String si = String.valueOf(i);\n \t\t for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }\n \t\t}\n \t}",
"if(i % 3 == 0){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse if(i % 10 == 3){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse{\n \t\t String si = String.valueOf(i);\n \t\t for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }\n \t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\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(i % 10 == 3){\n \t\t\tSystem.out.print(\" \" + i);\n \t\t}\n \t\telse{\n \t\t String si = String.valueOf(i);\n \t\t for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }\n \t\t}",
"i % 10 == 3",
"i % 10",
"i",
"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",
"{\n \t\t String si = String.valueOf(i);\n \t\t for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }\n \t\t}",
"String si = String.valueOf(i);",
"si",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"for(int j = 0; j < si.length() - 1; j++){\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < si.length() - 1",
"j",
"si.length() - 1",
"si.length()",
"si.length",
"si",
"1",
"j++",
"j++",
"j",
"{\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }",
"{\n \t\t\t char ci = si.charAt(j);\n \t\t\t if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }\n \t\t }",
"char ci = si.charAt(j);",
"ci",
"si.charAt(j)",
"si.charAt",
"si",
"j",
"if(ci == '3'){\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \t\t\t }",
"ci == '3'",
"ci",
"'3'",
"{\n \t\t\t\t System.out.print(\" \" + i);\n \t\t\t\t break;\n \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"
] |
import java.util.Scanner;
class Main {
public static void main(String args[]){
//整数nを読み取る
Scanner sc = new Scanner(System.in);
String s1 = sc.next();
int n = Integer.parseInt(s1);
//nが条件(3から10000)内か確認
if(3 <= n && n <= 10000){
//1からnまで繰り返す
for(int i = 1; i <= n; i++){
//3の倍数と3とつく数字を表示
if(i % 3 == 0){
System.out.print(" " + i);
}
else if(i % 10 == 3){
System.out.print(" " + i);
}
else{
String si = String.valueOf(i);
for(int j = 0; j < si.length() - 1; j++){
char ci = si.charAt(j);
if(ci == '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,
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,
4,
18,
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
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
46,
48
],
[
36,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
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
],
[
65,
68
],
[
68,
69
],
[
68,
70
],
[
64,
71
],
[
58,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
75,
77
],
[
8,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
8,
84
],
[
84,
85
],
[
85,
86
],
[
6,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] | [
"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????????\\?????????????????????\n StringBuilder NewBuilder = new StringBuilder(); \n \n int x = 0;\n \n //?????????????????????????????????????????????\n for (int j = 3; j <= n; j++) {\n if (j % 3 == 0) {\n \tNewBuilder .append(\" \" + j);\n } else {\n x = j;\n while (x != 0) {\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }\n }\n }\n \n }\n //???????????????????????§???\n System.out.println(NewBuilder );\n \n sc.close();\n }\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????????\\?????????????????????\n StringBuilder NewBuilder = new StringBuilder(); \n \n int x = 0;\n \n //?????????????????????????????????????????????\n for (int j = 3; j <= n; j++) {\n if (j % 3 == 0) {\n \tNewBuilder .append(\" \" + j);\n } else {\n x = j;\n while (x != 0) {\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }\n }\n }\n \n }\n //???????????????????????§???\n System.out.println(NewBuilder );\n \n sc.close();\n }\n}",
"Main",
"public static void main(String args[]) {\n \tScanner sc = new Scanner(System.in);\n \tint n = sc.nextInt(); //n????????\\?????????????????????\n StringBuilder NewBuilder = new StringBuilder(); \n \n int x = 0;\n \n //?????????????????????????????????????????????\n for (int j = 3; j <= n; j++) {\n if (j % 3 == 0) {\n \tNewBuilder .append(\" \" + j);\n } else {\n x = j;\n while (x != 0) {\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }\n }\n }\n \n }\n //???????????????????????§???\n System.out.println(NewBuilder );\n \n sc.close();\n }",
"main",
"{\n \tScanner sc = new Scanner(System.in);\n \tint n = sc.nextInt(); //n????????\\?????????????????????\n StringBuilder NewBuilder = new StringBuilder(); \n \n int x = 0;\n \n //?????????????????????????????????????????????\n for (int j = 3; j <= n; j++) {\n if (j % 3 == 0) {\n \tNewBuilder .append(\" \" + j);\n } else {\n x = j;\n while (x != 0) {\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }\n }\n }\n \n }\n //???????????????????????§???\n System.out.println(NewBuilder );\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",
"StringBuilder NewBuilder = new StringBuilder();",
"NewBuilder",
"new StringBuilder()",
"int x = 0;",
"x",
"0",
"for (int j = 3; j <= n; j++) {\n if (j % 3 == 0) {\n \tNewBuilder .append(\" \" + j);\n } else {\n x = j;\n while (x != 0) {\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 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 \tNewBuilder .append(\" \" + j);\n } else {\n x = j;\n while (x != 0) {\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }\n }\n }\n \n }",
"{\n if (j % 3 == 0) {\n \tNewBuilder .append(\" \" + j);\n } else {\n x = j;\n while (x != 0) {\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }\n }\n }\n \n }",
"if (j % 3 == 0) {\n \tNewBuilder .append(\" \" + j);\n } else {\n x = j;\n while (x != 0) {\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }\n }\n }",
"j % 3 == 0",
"j % 3",
"j",
"3",
"0",
"{\n \tNewBuilder .append(\" \" + j);\n }",
"NewBuilder .append(\" \" + j)",
"NewBuilder .append",
"NewBuilder",
"\" \" + j",
"\" \"",
"j",
"{\n x = j;\n while (x != 0) {\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }\n }\n }",
"x = j",
"x",
"j",
"while (x != 0) {\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }\n }",
"x != 0",
"x",
"0",
"{\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }\n }",
"if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n \tNewBuilder .append(\" \" + j);\n break;\n }",
"NewBuilder .append(\" \" + j)",
"NewBuilder .append",
"NewBuilder",
"\" \" + j",
"\" \"",
"j",
"break;",
"{\n x = x / 10;\n }",
"x = x / 10",
"x",
"x / 10",
"x",
"10",
"System.out.println(NewBuilder )",
"System.out.println",
"System.out",
"System",
"System.out",
"NewBuilder",
"sc.close()",
"sc.close",
"sc",
"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????????\\?????????????????????\n StringBuilder NewBuilder = new StringBuilder(); \n \n int x = 0;\n \n //?????????????????????????????????????????????\n for (int j = 3; j <= n; j++) {\n if (j % 3 == 0) {\n \tNewBuilder .append(\" \" + j);\n } else {\n x = j;\n while (x != 0) {\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }\n }\n }\n \n }\n //???????????????????????§???\n System.out.println(NewBuilder );\n \n sc.close();\n }\n}",
"public class Main {\n public static void main(String args[]) {\n \tScanner sc = new Scanner(System.in);\n \tint n = sc.nextInt(); //n????????\\?????????????????????\n StringBuilder NewBuilder = new StringBuilder(); \n \n int x = 0;\n \n //?????????????????????????????????????????????\n for (int j = 3; j <= n; j++) {\n if (j % 3 == 0) {\n \tNewBuilder .append(\" \" + j);\n } else {\n x = j;\n while (x != 0) {\n if (x % 10 == 3) {\n \tNewBuilder .append(\" \" + j);\n break;\n } else {\n x = x / 10;\n }\n }\n }\n \n }\n //???????????????????????§???\n System.out.println(NewBuilder );\n \n sc.close();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String args[]) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt(); //n????????\?????????????????????
StringBuilder NewBuilder = new StringBuilder();
int x = 0;
//?????????????????????????????????????????????
for (int j = 3; j <= n; j++) {
if (j % 3 == 0) {
NewBuilder .append(" " + j);
} else {
x = j;
while (x != 0) {
if (x % 10 == 3) {
NewBuilder .append(" " + j);
break;
} else {
x = x / 10;
}
}
}
}
//???????????????????????§???
System.out.println(NewBuilder );
sc.close();
}
} |
[
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,
13,
17,
17,
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,
0,
13,
17,
4,
18,
18,
13,
13,
17,
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
],
[
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
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
38,
44
],
[
32,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
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
],
[
63,
65
],
[
61,
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.*;\n\npublic class Main {\n public static void main(String[] args) throws Exception{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x;\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) System.out.printf(\" %d\", i);\n else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.printf(\"\\n\");\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) throws Exception{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x;\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) System.out.printf(\" %d\", i);\n else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.printf(\"\\n\");\n }\n}",
"Main",
"public static void main(String[] args) throws Exception{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x;\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) System.out.printf(\" %d\", i);\n else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.printf(\"\\n\");\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x;\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) System.out.printf(\" %d\", i);\n else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.printf(\"\\n\");\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int x;",
"x",
"for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) System.out.printf(\" %d\", i);\n else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n break;\n }\n x /= 10;\n }\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (i % 3 == 0) System.out.printf(\" %d\", i);\n else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n break;\n }\n x /= 10;\n }\n }\n }",
"{\n if (i % 3 == 0) System.out.printf(\" %d\", i);\n else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n break;\n }\n x /= 10;\n }\n }\n }",
"if (i % 3 == 0) System.out.printf(\" %d\", i);\n else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n break;\n }\n x /= 10;\n }\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"{\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n break;\n }\n x /= 10;\n }\n }",
"x = i",
"x",
"i",
"while (x != 0) {\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n break;\n }\n x /= 10;\n }",
"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.printf(\"\\n\")",
"System.out.printf",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public class Main {\n public static void main(String[] args) throws Exception{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x;\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) System.out.printf(\" %d\", i);\n else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.printf(\"\\n\");\n }\n}",
"public class Main {\n public static void main(String[] args) throws Exception{\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n int x;\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) System.out.printf(\" %d\", i);\n else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.printf(\" %d\", i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.printf(\"\\n\");\n }\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) throws Exception{
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int x;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) System.out.printf(" %d", i);
else {
x = i;
while (x != 0) {
if (x % 10 == 3) {
System.out.printf(" %d", i);
break;
}
x /= 10;
}
}
}
System.out.printf("\n");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
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,
13,
2,
17,
13,
9,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
3,
0,
13,
17,
4,
18,
13,
4,
18,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
13,
18
],
[
18,
19
],
[
18,
20
],
[
13,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
26,
29
],
[
29,
30
],
[
30,
31
],
[
23,
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
],
[
55,
58
],
[
58,
59
],
[
58,
60
],
[
54,
61
],
[
44,
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
],
[
66,
81
],
[
81,
82
],
[
81,
83
],
[
23,
84
],
[
84,
85
],
[
85,
86
],
[
23,
87
],
[
87,
88
],
[
88,
89
],
[
21,
90
],
[
90,
91
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\n\nclass Main{\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter out = new PrintWriter(System.out);\n public static void main(String[] Args) throws IOException{\n final int n = Integer.parseInt(br.readLine());\n for(int i = 1; i<=n; i++){\n int x = i;\n if(x%3==0){\n out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n out.print(\" \"+i);\n break;\n }\n x /= 10;\n }while(x!=0);\n }\n out.println();\n out.flush();\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"class Main{\n private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n private static final PrintWriter out = new PrintWriter(System.out);\n public static void main(String[] Args) throws IOException{\n final int n = Integer.parseInt(br.readLine());\n for(int i = 1; i<=n; i++){\n int x = i;\n if(x%3==0){\n out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n out.print(\" \"+i);\n break;\n }\n x /= 10;\n }while(x!=0);\n }\n out.println();\n out.flush();\n }\n}",
"Main",
"private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"private static final PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"public static void main(String[] Args) throws IOException{\n final int n = Integer.parseInt(br.readLine());\n for(int i = 1; i<=n; i++){\n int x = i;\n if(x%3==0){\n out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n out.print(\" \"+i);\n break;\n }\n x /= 10;\n }while(x!=0);\n }\n out.println();\n out.flush();\n }",
"main",
"{\n final int n = Integer.parseInt(br.readLine());\n for(int i = 1; i<=n; i++){\n int x = i;\n if(x%3==0){\n out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n out.print(\" \"+i);\n break;\n }\n x /= 10;\n }while(x!=0);\n }\n out.println();\n out.flush();\n }",
"final int 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 int x = i;\n if(x%3==0){\n out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n out.print(\" \"+i);\n break;\n }\n x /= 10;\n }while(x!=0);\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 out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n out.print(\" \"+i);\n break;\n }\n x /= 10;\n }while(x!=0);\n }",
"{\n int x = i;\n if(x%3==0){\n out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n out.print(\" \"+i);\n break;\n }\n x /= 10;\n }while(x!=0);\n }",
"int x = i;",
"x",
"i",
"if(x%3==0){\n out.print(\" \"+i);\n continue;\n }",
"x%3==0",
"x%3",
"x",
"3",
"0",
"{\n out.print(\" \"+i);\n continue;\n }",
"out.print(\" \"+i)",
"out.print",
"out",
"\" \"+i",
"\" \"",
"i",
"continue;",
"do{\n if(x%10==3){\n out.print(\" \"+i);\n break;\n }\n x /= 10;\n }while(x!=0);",
"x!=0",
"x",
"0",
"{\n if(x%10==3){\n out.print(\" \"+i);\n break;\n }\n x /= 10;\n }",
"if(x%10==3){\n out.print(\" \"+i);\n break;\n }",
"x%10==3",
"x%10",
"x",
"10",
"3",
"{\n out.print(\" \"+i);\n break;\n }",
"out.print(\" \"+i)",
"out.print",
"out",
"\" \"+i",
"\" \"",
"i",
"break;",
"x /= 10",
"x",
"10",
"out.println()",
"out.println",
"out",
"out.flush()",
"out.flush",
"out",
"String[] Args",
"Args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.PrintWriter;
class Main{
private static final BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
private static final PrintWriter out = new PrintWriter(System.out);
public static void main(String[] Args) throws IOException{
final int n = Integer.parseInt(br.readLine());
for(int i = 1; i<=n; i++){
int x = i;
if(x%3==0){
out.print(" "+i);
continue;
}
do{
if(x%10==3){
out.print(" "+i);
break;
}
x /= 10;
}while(x!=0);
}
out.println();
out.flush();
}
} |
[
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
11,
1,
0,
13,
17,
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,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
107,
5
],
[
107,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
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
],
[
55,
64
],
[
29,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
65,
77
],
[
78,
78
],
[
78,
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
],
[
85,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
8,
101
],
[
101,
102
],
[
102,
103
],
[
6,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong n = sc.nextInt();\n\t\t\n\t\t\n\t\tfor(long i = 1;i <= n;i++){\n\t\t\tlong 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\t\n\t\t\tif(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor(x /= 10;x != 0;x /= 10){\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}\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\tsc.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong n = sc.nextInt();\n\t\t\n\t\t\n\t\tfor(long i = 1;i <= n;i++){\n\t\t\tlong 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\t\n\t\t\tif(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor(x /= 10;x != 0;x /= 10){\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}\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong n = sc.nextInt();\n\t\t\n\t\t\n\t\tfor(long i = 1;i <= n;i++){\n\t\t\tlong 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\t\n\t\t\tif(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor(x /= 10;x != 0;x /= 10){\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}\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong n = sc.nextInt();\n\t\t\n\t\t\n\t\tfor(long i = 1;i <= n;i++){\n\t\t\tlong 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\t\n\t\t\tif(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor(x /= 10;x != 0;x /= 10){\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}\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\tsc.close();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"long n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(long i = 1;i <= n;i++){\n\t\t\tlong 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\t\n\t\t\tif(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor(x /= 10;x != 0;x /= 10){\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}\n\t\t}",
"long i = 1;",
"long i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tlong 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\t\n\t\t\tif(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor(x /= 10;x != 0;x /= 10){\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}\n\t\t}",
"{\n\t\t\tlong 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\t\n\t\t\tif(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor(x /= 10;x != 0;x /= 10){\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}\n\t\t}",
"long 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;",
"if(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+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(\" \"+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;",
"for(x /= 10;x != 0;x /= 10){\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}",
"x /= 10;",
"x /= 10",
"x",
"10",
"x != 0",
"x",
"0",
"x /= 10",
"x /= 10",
"x",
"10",
"{\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}",
"{\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}",
"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;",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"sc.close()",
"sc.close",
"sc",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong n = sc.nextInt();\n\t\t\n\t\t\n\t\tfor(long i = 1;i <= n;i++){\n\t\t\tlong 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\t\n\t\t\tif(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor(x /= 10;x != 0;x /= 10){\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}\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\tsc.close();\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tlong n = sc.nextInt();\n\t\t\n\t\t\n\t\tfor(long i = 1;i <= n;i++){\n\t\t\tlong 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\t\n\t\t\tif(x % 10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor(x /= 10;x != 0;x /= 10){\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}\n\t\t}\n\t\t\n\t\tSystem.out.print(\"\\n\");\n\t\t\n\t\tsc.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args){
Scanner sc = new Scanner(System.in);
long n = sc.nextInt();
for(long i = 1;i <= n;i++){
long x = i;
if(x % 3 == 0){
System.out.print(" "+i);
continue;
}
if(x % 10 == 3){
System.out.print(" "+i);
continue;
}
for(x /= 10;x != 0;x /= 10){
if(x % 10 == 3){
System.out.print(" "+i);
break;
}
}
}
System.out.print("\n");
sc.close();
}
} |
[
7,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
14,
2,
2,
17,
13,
2,
13,
17,
30,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
91,
2
],
[
91,
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
],
[
5,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
16,
24
],
[
24,
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
],
[
42,
40
],
[
60,
41
],
[
53,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
53,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
60,
66
],
[
42,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
67,
73
],
[
38,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
5,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
3,
88
],
[
88,
89
],
[
0,
90
],
[
90,
91
],
[
90,
92
]
] | [
"public class Main {\n\n\n\t\tpublic static void main(String[] args) {\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt(); \n\t\tint i;\n\t\n\t\tif(3 <= n && n <= 10000){\n\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+ i);\n\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"public class Main {\n\n\n\t\tpublic static void main(String[] args) {\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt(); \n\t\tint i;\n\t\n\t\tif(3 <= n && n <= 10000){\n\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+ i);\n\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"Main",
"public static void main(String[] args) {\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt(); \n\t\tint i;\n\t\n\t\tif(3 <= n && n <= 10000){\n\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+ i);\n\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t}",
"main",
"{\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt(); \n\t\tint i;\n\t\n\t\tif(3 <= n && n <= 10000){\n\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+ i);\n\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t}",
"java.util.Scanner scan = new java.util.Scanner(System.in);",
"scan",
"new java.util.Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int i;",
"i",
"if(3 <= n && n <= 10000){\n\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+ i);\n\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t}",
"3 <= n && n <= 10000",
"3 <= n",
"3",
"n",
"n <= 10000",
"n",
"10000",
"{\n\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+ i);\n\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t}",
"for(i = 1; i <= n; i++){\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+ i);\n\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\tif(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+ i);\n\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+ i);\n\t\t\t\t}\n\t\t\t\t}",
"if(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+ i);\n\t\t\t\t}",
"i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3",
"i/100 % 10 == 3",
"i/10 % 10 == 3",
"i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"i/10 % 10 == 3",
"i/10 % 10",
"i/10",
"i",
"10",
"10",
"3",
"i/100 % 10 == 3",
"i/100 % 10",
"i/100",
"i",
"100",
"10",
"3",
"i/1000 % 10 == 3",
"i/1000 % 10",
"i/1000",
"i",
"1000",
"10",
"3",
"{\n\t\t\t\t\t\n\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",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\n\n\t\tpublic static void main(String[] args) {\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt(); \n\t\tint i;\n\t\n\t\tif(3 <= n && n <= 10000){\n\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+ i);\n\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"public class Main {\n\n\n\t\tpublic static void main(String[] args) {\n\t\tjava.util.Scanner scan = new java.util.Scanner(System.in);\n\t\tint n = scan.nextInt(); \n\t\tint i;\n\t\n\t\tif(3 <= n && n <= 10000){\n\t\t\tfor(i = 1; i <= n; i++){\n\t\t\t\tif(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){\n\t\t\t\t\t\n\t\t\t\tSystem.out.print(\" \"+ i);\n\t\t\t\t}\n\t\t\t\t}\n\t\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"Main"
] | public class Main {
public static void main(String[] args) {
java.util.Scanner scan = new java.util.Scanner(System.in);
int n = scan.nextInt();
int i;
if(3 <= n && n <= 10000){
for(i = 1; i <= n; i++){
if(i % 3 == 0 || i % 10 == 3 || i/10 % 10 == 3 || i/100 % 10 == 3 || i/1000 % 10 == 3){
System.out.print(" "+ i);
}
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
0,
13,
20,
41,
13,
20,
4,
18,
13,
4,
18,
13,
23,
13,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
40,
13,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
3,
30,
0,
13,
17,
4,
18,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
0,
13,
20,
23,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
42,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
4,
18,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
0,
16
],
[
16,
17
],
[
16,
18
],
[
0,
19
],
[
214,
20
],
[
214,
21
],
[
21,
22
],
[
214,
23
],
[
23,
24
],
[
214,
25
],
[
25,
26
],
[
25,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
27,
31
],
[
31,
32
],
[
31,
33
],
[
27,
34
],
[
34,
35
],
[
34,
36
],
[
27,
37
],
[
37,
38
],
[
38,
39
],
[
27,
40
],
[
40,
41
],
[
41,
42
],
[
25,
43
],
[
43,
44
],
[
214,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
53,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
55,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
55,
64
],
[
65,
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
],
[
76,
79
],
[
79,
80
],
[
79,
81
],
[
69,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
83,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
88,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
95,
98
],
[
98,
99
],
[
98,
100
],
[
94,
101
],
[
88,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
49,
106
],
[
106,
107
],
[
107,
108
],
[
106,
109
],
[
214,
110
],
[
110,
111
],
[
110,
112
],
[
112,
113
],
[
110,
114
],
[
114,
115
],
[
110,
116
],
[
116,
117
],
[
116,
118
],
[
118,
119
],
[
119,
120
],
[
119,
121
],
[
116,
122
],
[
122,
123
],
[
110,
124
],
[
124,
125
],
[
124,
126
],
[
126,
127
],
[
127,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
132,
133
],
[
133,
134
],
[
134,
135
],
[
127,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
126,
140
],
[
140,
141
],
[
141,
142
],
[
142,
143
],
[
141,
144
],
[
144,
145
],
[
145,
146
],
[
110,
147
],
[
147,
148
],
[
147,
149
],
[
149,
150
],
[
150,
151
],
[
151,
152
],
[
152,
153
],
[
152,
154
],
[
151,
155
],
[
155,
156
],
[
156,
157
],
[
157,
158
],
[
150,
159
],
[
159,
160
],
[
160,
161
],
[
160,
162
],
[
149,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
164,
167
],
[
167,
168
],
[
168,
169
],
[
110,
170
],
[
170,
171
],
[
170,
172
],
[
172,
173
],
[
173,
174
],
[
174,
175
],
[
175,
176
],
[
175,
177
],
[
174,
178
],
[
178,
179
],
[
179,
180
],
[
180,
181
],
[
173,
182
],
[
182,
183
],
[
183,
184
],
[
183,
185
],
[
172,
186
],
[
186,
187
],
[
187,
188
],
[
188,
189
],
[
110,
190
],
[
190,
191
],
[
190,
192
],
[
192,
193
],
[
193,
194
],
[
194,
195
],
[
195,
196
],
[
195,
197
],
[
194,
198
],
[
198,
199
],
[
199,
200
],
[
200,
201
],
[
193,
202
],
[
202,
203
],
[
203,
204
],
[
203,
205
],
[
192,
206
],
[
206,
207
],
[
207,
208
],
[
208,
209
],
[
207,
210
],
[
210,
211
],
[
211,
212
],
[
0,
213
],
[
213,
214
],
[
213,
215
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStream;\nimport java.io.InputStreamReader;\nimport java.io.PrintWriter;\nimport java.util.StringTokenizer;\n\npublic class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n for (int i = 1; ++i <= n;) {\n int x = i;\n if (x % 3 == 0) {\n out.print(\" \"+i);\n } else {\n do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);\n }\n }\n \n \n out.print(\"\\n\");\n// End of solve()\n }\n}\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStream;",
"InputStream",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.StringTokenizer;",
"StringTokenizer",
"java.util",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n for (int i = 1; ++i <= n;) {\n int x = i;\n if (x % 3 == 0) {\n out.print(\" \"+i);\n } else {\n do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);\n }\n }\n \n \n out.print(\"\\n\");\n// End of solve()\n }\n}\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}",
"Main",
"static InputReader in;",
"in",
"static PrintWriter out;",
"out",
"public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}",
"main",
"{\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}",
"in = new InputReader(System.in)",
"in",
"new InputReader(System.in)",
"out = new PrintWriter(System.out)",
"out",
"new PrintWriter(System.out)",
"Solution solver = new Solution();",
"solver",
"new Solution()",
"solver.solve()",
"solver.solve",
"solver",
"out.close()",
"out.close",
"out",
"String[] args",
"args",
"static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n for (int i = 1; ++i <= n;) {\n int x = i;\n if (x % 3 == 0) {\n out.print(\" \"+i);\n } else {\n do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);\n }\n }\n \n \n out.print(\"\\n\");\n// End of solve()\n }\n}",
"Solution",
"void solve() throws IOException {\n int n = in.nextInt();\n for (int i = 1; ++i <= n;) {\n int x = i;\n if (x % 3 == 0) {\n out.print(\" \"+i);\n } else {\n do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);\n }\n }\n \n \n out.print(\"\\n\");\n// End of solve()\n }",
"solve",
"{\n int n = in.nextInt();\n for (int i = 1; ++i <= n;) {\n int x = i;\n if (x % 3 == 0) {\n out.print(\" \"+i);\n } else {\n do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);\n }\n }\n \n \n out.print(\"\\n\");\n// End of solve()\n }",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"for (int i = 1; ++i <= n;) {\n int x = i;\n if (x % 3 == 0) {\n out.print(\" \"+i);\n } else {\n do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"++i <= n",
"++i",
"i",
"n",
"{\n int x = i;\n if (x % 3 == 0) {\n out.print(\" \"+i);\n } else {\n do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);\n }\n }",
"{\n int x = i;\n if (x % 3 == 0) {\n out.print(\" \"+i);\n } else {\n do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);\n }\n }",
"int x = i;",
"x",
"i",
"if (x % 3 == 0) {\n out.print(\" \"+i);\n } else {\n do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);\n }",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n out.print(\" \"+i);\n }",
"out.print(\" \"+i)",
"out.print",
"out",
"\" \"+i",
"\" \"",
"i",
"{\n do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);\n }",
"do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);",
"x != 0",
"x",
"0",
"{\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n }",
"if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n out.print(\" \"+i);\n break;\n }",
"out.print(\" \"+i)",
"out.print",
"out",
"\" \"+i",
"\" \"",
"i",
"break;",
"{\n x /= 10;\n }",
"x /= 10",
"x",
"10",
"out.print(\"\\n\")",
"out.print",
"out",
"\"\\n\"",
"static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }",
"InputReader",
"public BufferedReader br;",
"br",
"public StringTokenizer st;",
"st",
"public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"InputReader",
"{\n br = new BufferedReader(new InputStreamReader(stream));\n }",
"br = new BufferedReader(new InputStreamReader(stream))",
"br",
"new BufferedReader(new InputStreamReader(stream))",
"InputStream stream",
"stream",
"public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }",
"nextInt",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Integer.parseInt(st.nextToken());",
"Integer.parseInt(st.nextToken())",
"Integer.parseInt",
"Integer",
"st.nextToken()",
"st.nextToken",
"st",
"public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }",
"nextLong",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Long.parseLong(st.nextToken());",
"Long.parseLong(st.nextToken())",
"Long.parseLong",
"Long",
"st.nextToken()",
"st.nextToken",
"st",
"public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"next",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return st.nextToken();",
"st.nextToken()",
"st.nextToken",
"st",
"public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }",
"nextDouble",
"{\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }",
"while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }",
"st == null || !st.hasMoreTokens()",
"st == null",
"st",
"null",
"!st.hasMoreTokens()",
"st.hasMoreTokens()",
"st.hasMoreTokens",
"st",
"{\n st = new StringTokenizer(br.readLine());\n }",
"st = new StringTokenizer(br.readLine())",
"st",
"new StringTokenizer(br.readLine())",
"return Double.parseDouble(st.nextToken());",
"Double.parseDouble(st.nextToken())",
"Double.parseDouble",
"Double",
"st.nextToken()",
"st.nextToken",
"st",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n for (int i = 1; ++i <= n;) {\n int x = i;\n if (x % 3 == 0) {\n out.print(\" \"+i);\n } else {\n do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);\n }\n }\n \n \n out.print(\"\\n\");\n// End of solve()\n }\n}\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}",
"public class Main {\n static InputReader in;\n static PrintWriter out;\n\n static class Solution {\n void solve() throws IOException {\n int n = in.nextInt();\n for (int i = 1; ++i <= n;) {\n int x = i;\n if (x % 3 == 0) {\n out.print(\" \"+i);\n } else {\n do {\n if (x % 10 == 3) {\n out.print(\" \"+i);\n break;\n } else {\n x /= 10;\n }\n } while (x != 0);\n }\n }\n \n \n out.print(\"\\n\");\n// End of solve()\n }\n}\n\n public static void main(String[] args) throws IOException {\n in = new InputReader(System.in);\n out = new PrintWriter(System.out);\n Solution solver = new Solution();\n solver.solve();\n out.close();\n}\n\n static class InputReader {\n public BufferedReader br;\n public StringTokenizer st;\n\n public InputReader(InputStream stream) {\n br = new BufferedReader(new InputStreamReader(stream));\n }\n\n public int nextInt() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Integer.parseInt(st.nextToken());\n }\n\n public long nextLong() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Long.parseLong(st.nextToken());\n }\n\n public String next() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return st.nextToken();\n }\n\n public double nextDouble() throws IOException {\n while (st == null || !st.hasMoreTokens()) {\n st = new StringTokenizer(br.readLine());\n }\n return Double.parseDouble(st.nextToken());\n }\n\n }\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStream;
import java.io.InputStreamReader;
import java.io.PrintWriter;
import java.util.StringTokenizer;
public class Main {
static InputReader in;
static PrintWriter out;
static class Solution {
void solve() throws IOException {
int n = in.nextInt();
for (int i = 1; ++i <= n;) {
int x = i;
if (x % 3 == 0) {
out.print(" "+i);
} else {
do {
if (x % 10 == 3) {
out.print(" "+i);
break;
} else {
x /= 10;
}
} while (x != 0);
}
}
out.print("\n");
// End of solve()
}
}
public static void main(String[] args) throws IOException {
in = new InputReader(System.in);
out = new PrintWriter(System.out);
Solution solver = new Solution();
solver.solve();
out.close();
}
static class InputReader {
public BufferedReader br;
public StringTokenizer st;
public InputReader(InputStream stream) {
br = new BufferedReader(new InputStreamReader(stream));
}
public int nextInt() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Integer.parseInt(st.nextToken());
}
public long nextLong() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Long.parseLong(st.nextToken());
}
public String next() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return st.nextToken();
}
public double nextDouble() throws IOException {
while (st == null || !st.hasMoreTokens()) {
st = new StringTokenizer(br.readLine());
}
return Double.parseDouble(st.nextToken());
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
0,
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,
17,
4,
18,
18,
13,
13,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
0,
13,
17,
30,
0,
13,
17,
4,
18,
18,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
4,
10
],
[
10,
11
],
[
4,
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
],
[
45,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
39,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
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
],
[
70,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
77,
82
],
[
70,
83
],
[
83,
84
],
[
83,
85
],
[
64,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
14,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
4,
95
],
[
95,
96
],
[
95,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
95,
101
],
[
101,
102
]
] | [
"import java.util.Scanner;\nclass Main {\n\tint n,i,x;\n\tpublic void suzuki(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\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(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}else{\n\t\t\t\twhile(x >= 3){\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}else{\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}\n System.out.println();\n\t}\n\tpublic static void main(String[] args){\n\t\tnew Main().suzuki();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tint n,i,x;\n\tpublic void suzuki(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\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(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}else{\n\t\t\t\twhile(x >= 3){\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}else{\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}\n System.out.println();\n\t}\n\tpublic static void main(String[] args){\n\t\tnew Main().suzuki();\n\t}\n}",
"Main",
"int n",
"n",
"i",
"i",
"x;",
"x",
"public void suzuki(){\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\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(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}else{\n\t\t\t\twhile(x >= 3){\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}else{\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}\n System.out.println();\n\t}",
"suzuki",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tn = sc.nextInt();\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(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}else{\n\t\t\t\twhile(x >= 3){\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}else{\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}\n System.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"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(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}else{\n\t\t\t\twhile(x >= 3){\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}else{\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}",
"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(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}else{\n\t\t\t\twhile(x >= 3){\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}else{\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}",
"{\n\t\t\tx = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}else{\n\t\t\t\twhile(x >= 3){\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}else{\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}",
"x = i",
"x",
"i",
"if(x % 3 == 0){\n\t\t\t\tSystem.out.print(\" \");\n\t\t\t\tSystem.out.print(i);\n\t\t\t}else{\n\t\t\t\twhile(x >= 3){\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx /= 10;\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.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",
"{\n\t\t\t\twhile(x >= 3){\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"while(x >= 3){\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}",
"x >= 3",
"x",
"3",
"{\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(x % 10 == 3){\n\t\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\t\tx = 0;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.print(\" \");\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(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(i)",
"System.out.print",
"System.out",
"System",
"System.out",
"i",
"x = 0",
"x",
"0",
"{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}",
"x /= 10",
"x",
"10",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"public static void main(String[] args){\n\t\tnew Main().suzuki();\n\t}",
"main",
"{\n\t\tnew Main().suzuki();\n\t}",
"new Main().suzuki()",
"new Main().suzuki",
"new Main()",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
int n,i,x;
public void suzuki(){
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
for(i = 3;i <= n;i++){
x = i;
if(x % 3 == 0){
System.out.print(" ");
System.out.print(i);
}else{
while(x >= 3){
if(x % 10 == 3){
System.out.print(" ");
System.out.print(i);
x = 0;
}else{
x /= 10;
}
}
}
}
System.out.println();
}
public static void main(String[] args){
new Main().suzuki();
}
} |
[
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,
20,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
4,
13,
13,
30,
4,
18,
4,
18,
13,
17,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
4,
18,
13,
12,
13,
30,
11,
1,
2,
13,
17,
1,
0,
13,
17,
30,
30,
14,
2,
2,
13,
17,
17,
29,
17,
29,
17,
23,
13,
12,
13,
30,
4,
18,
20,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
107,
11
],
[
107,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
26,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
49,
51
],
[
42,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
53,
59
],
[
14,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
63,
64
],
[
64,
65
],
[
14,
66
],
[
66,
67
],
[
67,
68
],
[
14,
69
],
[
69,
70
],
[
70,
71
],
[
107,
72
],
[
72,
73
],
[
72,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
75,
84
],
[
85,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
86,
92
],
[
92,
93
],
[
74,
94
],
[
94,
95
],
[
72,
96
],
[
96,
97
],
[
107,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
98,
104
],
[
104,
105
],
[
0,
106
],
[
106,
107
],
[
106,
108
]
] | [
"import java.io.IOException;\nimport java.io.PrintWriter;\nimport java.util.Scanner;\n\npublic class Main {\n public void exec() throws IOException {\n Scanner input = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n int n = input.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i=1; i<=n; i++){\n \tif(i%3==0 || appearance3(i)) {\n \t\tsb.append(\" \").append(i);\n \t}\n }\n out.println(sb.toString());\n out.flush();\n input.close();\n }\n \n private boolean appearance3(int num) {\n \tfor(;num>0; num/=10) {\n \t\tif(num % 10 == 3) return true;\n \t}\n \treturn false;\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n\n}\n ",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.PrintWriter;",
"PrintWriter",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public void exec() throws IOException {\n Scanner input = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n int n = input.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i=1; i<=n; i++){\n \tif(i%3==0 || appearance3(i)) {\n \t\tsb.append(\" \").append(i);\n \t}\n }\n out.println(sb.toString());\n out.flush();\n input.close();\n }\n \n private boolean appearance3(int num) {\n \tfor(;num>0; num/=10) {\n \t\tif(num % 10 == 3) return true;\n \t}\n \treturn false;\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n\n}",
"Main",
"public void exec() throws IOException {\n Scanner input = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n int n = input.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i=1; i<=n; i++){\n \tif(i%3==0 || appearance3(i)) {\n \t\tsb.append(\" \").append(i);\n \t}\n }\n out.println(sb.toString());\n out.flush();\n input.close();\n }",
"exec",
"{\n Scanner input = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n int n = input.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i=1; i<=n; i++){\n \tif(i%3==0 || appearance3(i)) {\n \t\tsb.append(\" \").append(i);\n \t}\n }\n out.println(sb.toString());\n out.flush();\n input.close();\n }",
"Scanner input = new Scanner(System.in);",
"input",
"new Scanner(System.in)",
"PrintWriter out = new PrintWriter(System.out);",
"out",
"new PrintWriter(System.out)",
"int n = input.nextInt();",
"n",
"input.nextInt()",
"input.nextInt",
"input",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"for(int i=1; i<=n; i++){\n \tif(i%3==0 || appearance3(i)) {\n \t\tsb.append(\" \").append(i);\n \t}\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \tif(i%3==0 || appearance3(i)) {\n \t\tsb.append(\" \").append(i);\n \t}\n }",
"{\n \tif(i%3==0 || appearance3(i)) {\n \t\tsb.append(\" \").append(i);\n \t}\n }",
"if(i%3==0 || appearance3(i)) {\n \t\tsb.append(\" \").append(i);\n \t}",
"i%3==0 || appearance3(i)",
"i%3==0",
"i%3",
"i",
"3",
"0",
"appearance3(i)",
"appearance3",
"i",
"{\n \t\tsb.append(\" \").append(i);\n \t}",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"out.println(sb.toString())",
"out.println",
"out",
"sb.toString()",
"sb.toString",
"sb",
"out.flush()",
"out.flush",
"out",
"input.close()",
"input.close",
"input",
"private boolean appearance3(int num) {\n \tfor(;num>0; num/=10) {\n \t\tif(num % 10 == 3) return true;\n \t}\n \treturn false;\n }",
"appearance3",
"{\n \tfor(;num>0; num/=10) {\n \t\tif(num % 10 == 3) return true;\n \t}\n \treturn false;\n }",
"for(;num>0; num/=10) {\n \t\tif(num % 10 == 3) return true;\n \t}",
";",
"num>0",
"num",
"0",
"num/=10",
"num/=10",
"num",
"10",
"{\n \t\tif(num % 10 == 3) return true;\n \t}",
"{\n \t\tif(num % 10 == 3) return true;\n \t}",
"if(num % 10 == 3) return true;",
"num % 10 == 3",
"num % 10",
"num",
"10",
"3",
"return true;",
"true",
"return false;",
"false",
"int num",
"num",
"public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }",
"main",
"{\n \tnew Main().exec();\n }",
"new Main().exec()",
"new Main().exec",
"new Main()",
"String[] args",
"args",
"public class Main {\n public void exec() throws IOException {\n Scanner input = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n int n = input.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i=1; i<=n; i++){\n \tif(i%3==0 || appearance3(i)) {\n \t\tsb.append(\" \").append(i);\n \t}\n }\n out.println(sb.toString());\n out.flush();\n input.close();\n }\n \n private boolean appearance3(int num) {\n \tfor(;num>0; num/=10) {\n \t\tif(num % 10 == 3) return true;\n \t}\n \treturn false;\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n\n}",
"public class Main {\n public void exec() throws IOException {\n Scanner input = new Scanner(System.in);\n PrintWriter out = new PrintWriter(System.out);\n int n = input.nextInt();\n StringBuilder sb = new StringBuilder();\n for(int i=1; i<=n; i++){\n \tif(i%3==0 || appearance3(i)) {\n \t\tsb.append(\" \").append(i);\n \t}\n }\n out.println(sb.toString());\n out.flush();\n input.close();\n }\n \n private boolean appearance3(int num) {\n \tfor(;num>0; num/=10) {\n \t\tif(num % 10 == 3) return true;\n \t}\n \treturn false;\n }\n \n public static void main(String[] args) throws IOException {\n \tnew Main().exec();\n }\n\n}",
"Main"
] | import java.io.IOException;
import java.io.PrintWriter;
import java.util.Scanner;
public class Main {
public void exec() throws IOException {
Scanner input = new Scanner(System.in);
PrintWriter out = new PrintWriter(System.out);
int n = input.nextInt();
StringBuilder sb = new StringBuilder();
for(int i=1; i<=n; i++){
if(i%3==0 || appearance3(i)) {
sb.append(" ").append(i);
}
}
out.println(sb.toString());
out.flush();
input.close();
}
private boolean appearance3(int num) {
for(;num>0; num/=10) {
if(num % 10 == 3) return true;
}
return false;
}
public static void main(String[] args) throws IOException {
new Main().exec();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
3,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
87,
8
],
[
87,
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
],
[
49,
50
],
[
48,
51
],
[
46,
52
],
[
39,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
66,
72
],
[
65,
73
],
[
59,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
11,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
9,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] | [
"import java.io.IOException;\nimport java.util.Scanner;\npublic class Main {\n public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int x =sc.nextInt();\n for(int i=1;i<=x;i++){\n int z =i ;\n if(z%3==0){\n \tsb.append(\" \").append(i);\n }else{\n while(z != 0){\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\n }\n }\n\n }\n System.out.println(sb);\n }\n\n }",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int x =sc.nextInt();\n for(int i=1;i<=x;i++){\n int z =i ;\n if(z%3==0){\n \tsb.append(\" \").append(i);\n }else{\n while(z != 0){\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\n }\n }\n\n }\n System.out.println(sb);\n }\n\n }",
"Main",
"public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int x =sc.nextInt();\n for(int i=1;i<=x;i++){\n int z =i ;\n if(z%3==0){\n \tsb.append(\" \").append(i);\n }else{\n while(z != 0){\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\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 x =sc.nextInt();\n for(int i=1;i<=x;i++){\n int z =i ;\n if(z%3==0){\n \tsb.append(\" \").append(i);\n }else{\n while(z != 0){\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\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 x =sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=x;i++){\n int z =i ;\n if(z%3==0){\n \tsb.append(\" \").append(i);\n }else{\n while(z != 0){\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\n }\n }\n\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=x",
"i",
"x",
"i++",
"i++",
"i",
"{\n int z =i ;\n if(z%3==0){\n \tsb.append(\" \").append(i);\n }else{\n while(z != 0){\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\n }\n }\n\n }",
"{\n int z =i ;\n if(z%3==0){\n \tsb.append(\" \").append(i);\n }else{\n while(z != 0){\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\n }\n }\n\n }",
"int z =i ;",
"z",
"i",
"if(z%3==0){\n \tsb.append(\" \").append(i);\n }else{\n while(z != 0){\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\n }\n }",
"z%3==0",
"z%3",
"z",
"3",
"0",
"{\n \tsb.append(\" \").append(i);\n }",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"{\n while(z != 0){\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\n }\n }",
"while(z != 0){\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\n }",
"z != 0",
"z",
"0",
"{\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\n }",
"if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }",
"z%10 == 3",
"z%10",
"z",
"10",
"3",
"{\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"break;",
"{\n \t z /=10;\n \t }",
"z /=10",
"z",
"10",
"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[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int x =sc.nextInt();\n for(int i=1;i<=x;i++){\n int z =i ;\n if(z%3==0){\n \tsb.append(\" \").append(i);\n }else{\n while(z != 0){\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\n }\n }\n\n }\n System.out.println(sb);\n }\n\n }",
"public class Main {\n public static void main (String args[]) throws IOException {\n Scanner sc = new Scanner(System.in);\n StringBuilder sb = new StringBuilder();\n int x =sc.nextInt();\n for(int i=1;i<=x;i++){\n int z =i ;\n if(z%3==0){\n \tsb.append(\" \").append(i);\n }else{\n while(z != 0){\n \t if(z%10 == 3){\n \t\t sb.append(\" \").append(i);\n \t\t break;\n \t }else{\n \t z /=10;\n \t }\n }\n }\n\n }\n System.out.println(sb);\n }\n\n }",
"Main"
] | import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main (String args[]) throws IOException {
Scanner sc = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
int x =sc.nextInt();
for(int i=1;i<=x;i++){
int z =i ;
if(z%3==0){
sb.append(" ").append(i);
}else{
while(z != 0){
if(z%10 == 3){
sb.append(" ").append(i);
break;
}else{
z /=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,
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,
41,
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
],
[
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
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
55,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
]
] | [
"import 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\t\tStringBuilder out = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\t\n\t\t//??????\n\t\tfor(int i = 1; i <= n ; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tout.append(\" \" + i);\n\t\t\t}//if \n\t\t\telse {\n\t\t\t\tint num = i;\n\t\t\t\twhile (num != 0){\n\t\t\t\t\tif(num % 10 == 3){\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}//else\n\t\t\t\t}//while\n\t\t\t}//else\n\t\t}//for\n\t\t//??????\n\t\tSystem.out.println(out);\n\t}\n}",
"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\t\tStringBuilder out = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\t\n\t\t//??????\n\t\tfor(int i = 1; i <= n ; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tout.append(\" \" + i);\n\t\t\t}//if \n\t\t\telse {\n\t\t\t\tint num = i;\n\t\t\t\twhile (num != 0){\n\t\t\t\t\tif(num % 10 == 3){\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}//else\n\t\t\t\t}//while\n\t\t\t}//else\n\t\t}//for\n\t\t//??????\n\t\tSystem.out.println(out);\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\t\tStringBuilder out = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\t\n\t\t//??????\n\t\tfor(int i = 1; i <= n ; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tout.append(\" \" + i);\n\t\t\t}//if \n\t\t\telse {\n\t\t\t\tint num = i;\n\t\t\t\twhile (num != 0){\n\t\t\t\t\tif(num % 10 == 3){\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}//else\n\t\t\t\t}//while\n\t\t\t}//else\n\t\t}//for\n\t\t//??????\n\t\tSystem.out.println(out);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\t//?????????\n\t\tStringBuilder out = new StringBuilder();\n\t\tint n = scan.nextInt();\n\t\t\n\t\t//??????\n\t\tfor(int i = 1; i <= n ; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tout.append(\" \" + i);\n\t\t\t}//if \n\t\t\telse {\n\t\t\t\tint num = i;\n\t\t\t\twhile (num != 0){\n\t\t\t\t\tif(num % 10 == 3){\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}//else\n\t\t\t\t}//while\n\t\t\t}//else\n\t\t}//for\n\t\t//??????\n\t\tSystem.out.println(out);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"StringBuilder out = new StringBuilder();",
"out",
"new StringBuilder()",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i = 1; i <= n ; i++){\n\t\t\tif(i % 3 == 0){\n\t\t\t\tout.append(\" \" + i);\n\t\t\t}//if \n\t\t\telse {\n\t\t\t\tint num = i;\n\t\t\t\twhile (num != 0){\n\t\t\t\t\tif(num % 10 == 3){\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}//else\n\t\t\t\t}//while\n\t\t\t}//else\n\t\t}//for",
"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\tout.append(\" \" + i);\n\t\t\t}//if \n\t\t\telse {\n\t\t\t\tint num = i;\n\t\t\t\twhile (num != 0){\n\t\t\t\t\tif(num % 10 == 3){\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}//else\n\t\t\t\t}//while\n\t\t\t}//else\n\t\t}//for",
"{\n\t\t\tif(i % 3 == 0){\n\t\t\t\tout.append(\" \" + i);\n\t\t\t}//if \n\t\t\telse {\n\t\t\t\tint num = i;\n\t\t\t\twhile (num != 0){\n\t\t\t\t\tif(num % 10 == 3){\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}//else\n\t\t\t\t}//while\n\t\t\t}//else\n\t\t}",
"if(i % 3 == 0){\n\t\t\t\tout.append(\" \" + i);\n\t\t\t}//if \n\t\t\telse {\n\t\t\t\tint num = i;\n\t\t\t\twhile (num != 0){\n\t\t\t\t\tif(num % 10 == 3){\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}//else\n\t\t\t\t}//while\n\t\t\t}//else",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tout.append(\" \" + i);\n\t\t\t}",
"out.append(\" \" + i)",
"out.append",
"out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\tint num = i;\n\t\t\t\twhile (num != 0){\n\t\t\t\t\tif(num % 10 == 3){\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}//else\n\t\t\t\t}//while\n\t\t\t}",
"int num = i;",
"num",
"i",
"while (num != 0){\n\t\t\t\t\tif(num % 10 == 3){\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}//else\n\t\t\t\t}//while",
"num != 0",
"num",
"0",
"{\n\t\t\t\t\tif(num % 10 == 3){\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}//else\n\t\t\t\t}",
"if(num % 10 == 3){\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}//else",
"num % 10 == 3",
"num % 10",
"num",
"10",
"3",
"{\n\t\t\t\t\t\tout.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"out.append(\" \" + i)",
"out.append",
"out",
"\" \" + i",
"\" \"",
"i",
"break;",
"{\n\t\t\t\t\t\tnum = num / 10;\n\t\t\t\t\t}",
"num = num / 10",
"num",
"num / 10",
"num",
"10",
"System.out.println(out)",
"System.out.println",
"System.out",
"System",
"System.out",
"out",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
@SuppressWarnings("resource")
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
//?????????
StringBuilder out = new StringBuilder();
int n = scan.nextInt();
//??????
for(int i = 1; i <= n ; i++){
if(i % 3 == 0){
out.append(" " + i);
}//if
else {
int num = i;
while (num != 0){
if(num % 10 == 3){
out.append(" " + i);
break;
}else{
num = num / 10;
}//else
}//while
}//else
}//for
//??????
System.out.println(out);
}
} |
[
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,
30,
41,
13,
4,
18,
13,
13,
11,
1,
41,
13,
4,
18,
13,
2,
13,
17,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
4,
18,
13,
17,
2,
13,
17,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
4,
18,
18,
13,
13,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
105,
5
],
[
105,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
33,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
48,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
59,
60
],
[
60,
61
],
[
55,
62
],
[
62,
63
],
[
62,
64
],
[
55,
65
],
[
65,
66
],
[
66,
67
],
[
55,
68
],
[
69,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
75,
79
],
[
79,
80
],
[
79,
81
],
[
72,
82
],
[
71,
83
],
[
70,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
85,
90
],
[
90,
91
],
[
90,
92
],
[
84,
93
],
[
8,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
8,
99
],
[
99,
100
],
[
100,
101
],
[
6,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"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\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(\" \" + x);\n\t\t\t} else {\n\t\t\t\tString value = String.valueOf(x);\n\t\t\t\tfor (int index = value.length(); index > 0; index--) {\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + 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}\n\t\tSystem.out.println();\n\t\tsc.close();\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\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(\" \" + x);\n\t\t\t} else {\n\t\t\t\tString value = String.valueOf(x);\n\t\t\t\tfor (int index = value.length(); index > 0; index--) {\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + 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}\n\t\tSystem.out.println();\n\t\tsc.close();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t} else {\n\t\t\t\tString value = String.valueOf(x);\n\t\t\t\tfor (int index = value.length(); index > 0; index--) {\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + 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}\n\t\tSystem.out.println();\n\t\tsc.close();\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\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t} else {\n\t\t\t\tString value = String.valueOf(x);\n\t\t\t\tfor (int index = value.length(); index > 0; index--) {\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + 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}\n\t\tSystem.out.println();\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",
"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(\" \" + x);\n\t\t\t} else {\n\t\t\t\tString value = String.valueOf(x);\n\t\t\t\tfor (int index = value.length(); index > 0; index--) {\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + 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}",
"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(\" \" + x);\n\t\t\t} else {\n\t\t\t\tString value = String.valueOf(x);\n\t\t\t\tfor (int index = value.length(); index > 0; index--) {\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + 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}",
"{\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t} else {\n\t\t\t\tString value = String.valueOf(x);\n\t\t\t\tfor (int index = value.length(); index > 0; index--) {\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + 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}",
"int x = i;",
"x",
"i",
"if (x % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t} else {\n\t\t\t\tString value = String.valueOf(x);\n\t\t\t\tfor (int index = value.length(); index > 0; index--) {\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + 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 % 3",
"x",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t}",
"System.out.print(\" \" + x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + x",
"\" \"",
"x",
"{\n\t\t\t\tString value = String.valueOf(x);\n\t\t\t\tfor (int index = value.length(); index > 0; index--) {\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"String value = String.valueOf(x);",
"value",
"String.valueOf(x)",
"String.valueOf",
"String",
"x",
"for (int index = value.length(); index > 0; index--) {\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"int index = value.length();",
"int index = value.length();",
"index",
"value.length()",
"value.length",
"value",
"index > 0",
"index",
"0",
"index--",
"index--",
"index",
"{\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"if (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"x / (int) Math.pow(10, index - 1) % 10 == 3",
"x / (int) Math.pow(10, index - 1) % 10",
"x / (int) Math.pow(10, index - 1)",
"x",
"(int) Math.pow(10, index - 1)",
"Math.pow",
"Math",
"10",
"index - 1",
"index",
"1",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + x);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"System.out.print(\" \" + x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + x",
"\" \"",
"x",
"break;",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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\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(\" \" + x);\n\t\t\t} else {\n\t\t\t\tString value = String.valueOf(x);\n\t\t\t\tfor (int index = value.length(); index > 0; index--) {\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + 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}\n\t\tSystem.out.println();\n\t\tsc.close();\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\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(\" \" + x);\n\t\t\t} else {\n\t\t\t\tString value = String.valueOf(x);\n\t\t\t\tfor (int index = value.length(); index > 0; index--) {\n\t\t\t\t\tif (x / (int) Math.pow(10, index - 1) % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + 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}\n\t\tSystem.out.println();\n\t\tsc.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main{
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
for (int i = 1; i <= n; i++) {
int x = i;
if (x % 3 == 0) {
System.out.print(" " + x);
} else {
String value = String.valueOf(x);
for (int index = value.length(); index > 0; index--) {
if (x / (int) Math.pow(10, index - 1) % 10 == 3) {
System.out.print(" " + x);
break;
}
}
}
}
System.out.println();
sc.close();
}
}
|
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
4,
13,
13,
30,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
17,
23,
13,
12,
13,
30,
14,
2,
2,
13,
17,
17,
30,
29,
17,
14,
2,
2,
13,
17,
17,
30,
29,
17,
30,
41,
13,
2,
13,
17,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
29,
17,
0,
13,
2,
13,
17,
29,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
111,
11
],
[
111,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
49,
50
],
[
49,
51
],
[
14,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
52,
57
],
[
12,
58
],
[
58,
59
],
[
111,
60
],
[
60,
61
],
[
60,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
63,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
72,
78
],
[
78,
79
],
[
79,
80
],
[
72,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
84,
85
],
[
84,
86
],
[
81,
87
],
[
87,
88
],
[
88,
89
],
[
88,
90
],
[
87,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
93,
97
],
[
92,
98
],
[
98,
99
],
[
99,
100
],
[
91,
101
],
[
101,
102
],
[
101,
103
],
[
103,
104
],
[
103,
105
],
[
81,
106
],
[
106,
107
],
[
60,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for(int i=3;i<=n;i++){\n if(check(i)){\n System.out.print(\" \"+i);\n }\n }\n System.out.print(\"\\n\");\n }\n public static boolean check(int n){\n if(n%3==0){\n return true;\n }else if(n%10==3){\n return true;\n }else{\n int x = n / 10;\n while(x>0){\n if(x%10==3){\n return true;\n }\n x = x /10;\n }\n return false;\n }\n } \n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for(int i=3;i<=n;i++){\n if(check(i)){\n System.out.print(\" \"+i);\n }\n }\n System.out.print(\"\\n\");\n }\n public static boolean check(int n){\n if(n%3==0){\n return true;\n }else if(n%10==3){\n return true;\n }else{\n int x = n / 10;\n while(x>0){\n if(x%10==3){\n return true;\n }\n x = x /10;\n }\n return false;\n }\n } \n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for(int i=3;i<=n;i++){\n if(check(i)){\n System.out.print(\" \"+i);\n }\n }\n System.out.print(\"\\n\");\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for(int i=3;i<=n;i++){\n if(check(i)){\n System.out.print(\" \"+i);\n }\n }\n System.out.print(\"\\n\");\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int i=3;i<=n;i++){\n if(check(i)){\n System.out.print(\" \"+i);\n }\n }",
"int i=3;",
"int i=3;",
"i",
"3",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(check(i)){\n System.out.print(\" \"+i);\n }\n }",
"{\n if(check(i)){\n System.out.print(\" \"+i);\n }\n }",
"if(check(i)){\n System.out.print(\" \"+i);\n }",
"check(i)",
"check",
"i",
"{\n System.out.print(\" \"+i);\n }",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"System.out.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"String[] args",
"args",
"public static boolean check(int n){\n if(n%3==0){\n return true;\n }else if(n%10==3){\n return true;\n }else{\n int x = n / 10;\n while(x>0){\n if(x%10==3){\n return true;\n }\n x = x /10;\n }\n return false;\n }\n }",
"check",
"{\n if(n%3==0){\n return true;\n }else if(n%10==3){\n return true;\n }else{\n int x = n / 10;\n while(x>0){\n if(x%10==3){\n return true;\n }\n x = x /10;\n }\n return false;\n }\n }",
"if(n%3==0){\n return true;\n }else if(n%10==3){\n return true;\n }else{\n int x = n / 10;\n while(x>0){\n if(x%10==3){\n return true;\n }\n x = x /10;\n }\n return false;\n }",
"n%3==0",
"n%3",
"n",
"3",
"0",
"{\n return true;\n }",
"return true;",
"true",
"if(n%10==3){\n return true;\n }else{\n int x = n / 10;\n while(x>0){\n if(x%10==3){\n return true;\n }\n x = x /10;\n }\n return false;\n }",
"n%10==3",
"n%10",
"n",
"10",
"3",
"{\n return true;\n }",
"return true;",
"true",
"{\n int x = n / 10;\n while(x>0){\n if(x%10==3){\n return true;\n }\n x = x /10;\n }\n return false;\n }",
"int x = n / 10;",
"x",
"n / 10",
"n",
"10",
"while(x>0){\n if(x%10==3){\n return true;\n }\n x = x /10;\n }",
"x>0",
"x",
"0",
"{\n if(x%10==3){\n return true;\n }\n x = x /10;\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 = x /10",
"x",
"x /10",
"x",
"10",
"return false;",
"false",
"int n",
"n",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for(int i=3;i<=n;i++){\n if(check(i)){\n System.out.print(\" \"+i);\n }\n }\n System.out.print(\"\\n\");\n }\n public static boolean check(int n){\n if(n%3==0){\n return true;\n }else if(n%10==3){\n return true;\n }else{\n int x = n / 10;\n while(x>0){\n if(x%10==3){\n return true;\n }\n x = x /10;\n }\n return false;\n }\n } \n}",
"public class Main {\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for(int i=3;i<=n;i++){\n if(check(i)){\n System.out.print(\" \"+i);\n }\n }\n System.out.print(\"\\n\");\n }\n public static boolean check(int n){\n if(n%3==0){\n return true;\n }else if(n%10==3){\n return true;\n }else{\n int x = n / 10;\n while(x>0){\n if(x%10==3){\n return true;\n }\n x = x /10;\n }\n return false;\n }\n } \n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
for(int i=3;i<=n;i++){
if(check(i)){
System.out.print(" "+i);
}
}
System.out.print("\n");
}
public static boolean check(int n){
if(n%3==0){
return true;
}else if(n%10==3){
return true;
}else{
int x = n / 10;
while(x>0){
if(x%10==3){
return true;
}
x = x /10;
}
return false;
}
}
} |
[
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,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
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,
30,
3,
4,
18,
18,
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
],
[
21,
24
],
[
20,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
25,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
35,
44
],
[
25,
45
],
[
45,
46
],
[
45,
47
],
[
47,
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
],
[
54,
63
],
[
47,
64
],
[
64,
65
],
[
64,
66
],
[
47,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tpublic static void main(String[] arg) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\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\tcontinue;\n\t\t\t}\n\t\t\twhile (true) {\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\tif (x == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} while (++i <= 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[] arg) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\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\tcontinue;\n\t\t\t}\n\t\t\twhile (true) {\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\tif (x == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} while (++i <= n);\n\t\tSystem.out.println();\n\t}\n\n}",
"Main",
"public static void main(String[] arg) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\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\tcontinue;\n\t\t\t}\n\t\t\twhile (true) {\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\tif (x == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} while (++i <= 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 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\tcontinue;\n\t\t\t}\n\t\t\twhile (true) {\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\tif (x == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} while (++i <= 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 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\tcontinue;\n\t\t\t}\n\t\t\twhile (true) {\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\tif (x == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\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\tcontinue;\n\t\t\t}\n\t\t\twhile (true) {\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\tif (x == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\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;",
"while (true) {\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\tif (x == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}",
"true",
"{\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\tif (x == 0) {\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(\" \" + 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",
"if (x == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"x == 0",
"x",
"0",
"{\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"break;",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] arg",
"arg",
"public class Main {\n\tpublic static void main(String[] arg) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\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\tcontinue;\n\t\t\t}\n\t\t\twhile (true) {\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\tif (x == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} while (++i <= n);\n\t\tSystem.out.println();\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] arg) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\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\tcontinue;\n\t\t\t}\n\t\t\twhile (true) {\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\tif (x == 0) {\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t}\n\n\t\t} while (++i <= n);\n\t\tSystem.out.println();\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] arg) {
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
int i = 1;
do {
int x = i;
if (x % 3 == 0) {
System.out.print(" " + i);
continue;
}
while (true) {
if (x % 10 == 3) {
System.out.print(" " + i);
break;
}
x /= 10;
if (x == 0) {
break;
}
}
} 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,
4,
18,
13,
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
83,
11
],
[
83,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
14,
23
],
[
23,
24
],
[
23,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
27,
30
],
[
26,
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
],
[
14,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
12,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] | [
"import java.util.Scanner;\nimport java.io.*;\nimport java.lang.Math;\n\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 int i = 1;\n do {\n int x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n x/=10;\n }while(x!=0);\n }while(++i<=n);\n System.out.println();\n\n }\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.io.*;",
"io.*",
"java",
"import java.lang.Math;",
"Math",
"java.lang",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int n = sc.nextInt();\n int i = 1;\n do {\n int x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n x/=10;\n }while(x!=0);\n }while(++i<=n);\n System.out.println();\n\n }\n\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int n = sc.nextInt();\n int i = 1;\n do {\n int x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n x/=10;\n }while(x!=0);\n }while(++i<=n);\n System.out.println();\n\n }",
"main",
"{\n Scanner sc= new Scanner(System.in);\n int n = sc.nextInt();\n int i = 1;\n do {\n int x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n x/=10;\n }while(x!=0);\n }while(++i<=n);\n System.out.println();\n\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",
"do {\n int x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n x/=10;\n }while(x!=0);\n }while(++i<=n);",
"++i<=n",
"++i",
"i",
"n",
"{\n int x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n x/=10;\n }while(x!=0);\n }",
"int x = i;",
"x",
"i",
"if (x % 3 == 0) {\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;",
"do{\n if(x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n x/=10;\n }while(x!=0);",
"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\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int n = sc.nextInt();\n int i = 1;\n do {\n int x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n x/=10;\n }while(x!=0);\n }while(++i<=n);\n System.out.println();\n\n }\n\n}",
"public class Main {\n\n public static void main(String[] args) {\n Scanner sc= new Scanner(System.in);\n int n = sc.nextInt();\n int i = 1;\n do {\n int x = i;\n if (x % 3 == 0) {\n System.out.print(\" \"+i);\n continue;\n }\n do{\n if(x%10==3){\n System.out.print(\" \"+i);\n break;\n }\n x/=10;\n }while(x!=0);\n }while(++i<=n);\n System.out.println();\n\n }\n\n}",
"Main"
] | import java.util.Scanner;
import java.io.*;
import java.lang.Math;
public class Main {
public static void main(String[] args) {
Scanner sc= new Scanner(System.in);
int n = sc.nextInt();
int i = 1;
do {
int 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);
}while(++i<=n);
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,
41,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
0,
13,
17,
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,
13,
17,
3,
14,
2,
40,
13,
13,
3,
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
],
[
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
],
[
26,
28
],
[
22,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
41,
42
],
[
41,
43
],
[
35,
44
],
[
44,
45
],
[
44,
46
],
[
22,
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
],
[
51,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
22,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
76,
81
],
[
8,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
6,
87
],
[
87,
88
],
[
0,
89
],
[
89,
90
],
[
89,
91
]
] | [
"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\n int i = 1;\n while(true) {\n //CHECK_NUM:\n int x = i;\n int END_CHECK_NUM=0;\n if (x % 3 == 0) {\n System.out.print(\" \" + i);\n //goto END_CHECK_NUM;\n END_CHECK_NUM=1;\n }\n while(END_CHECK_NUM==0) {\n //INCLUDE3:\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n if (x==0)break;\n }\n //END_CHECK_NUM:\n if (++i > n) break;\n //if (++i <= n) goto CHECK_NUM;\n }\n System.out.println();\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 int i = 1;\n while(true) {\n //CHECK_NUM:\n int x = i;\n int END_CHECK_NUM=0;\n if (x % 3 == 0) {\n System.out.print(\" \" + i);\n //goto END_CHECK_NUM;\n END_CHECK_NUM=1;\n }\n while(END_CHECK_NUM==0) {\n //INCLUDE3:\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n if (x==0)break;\n }\n //END_CHECK_NUM:\n if (++i > n) break;\n //if (++i <= n) goto CHECK_NUM;\n }\n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n\n int i = 1;\n while(true) {\n //CHECK_NUM:\n int x = i;\n int END_CHECK_NUM=0;\n if (x % 3 == 0) {\n System.out.print(\" \" + i);\n //goto END_CHECK_NUM;\n END_CHECK_NUM=1;\n }\n while(END_CHECK_NUM==0) {\n //INCLUDE3:\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n if (x==0)break;\n }\n //END_CHECK_NUM:\n if (++i > n) break;\n //if (++i <= n) goto CHECK_NUM;\n }\n System.out.println();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n\n int i = 1;\n while(true) {\n //CHECK_NUM:\n int x = i;\n int END_CHECK_NUM=0;\n if (x % 3 == 0) {\n System.out.print(\" \" + i);\n //goto END_CHECK_NUM;\n END_CHECK_NUM=1;\n }\n while(END_CHECK_NUM==0) {\n //INCLUDE3:\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n if (x==0)break;\n }\n //END_CHECK_NUM:\n if (++i > n) break;\n //if (++i <= n) goto CHECK_NUM;\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",
"int i = 1;",
"i",
"1",
"while(true) {\n //CHECK_NUM:\n int x = i;\n int END_CHECK_NUM=0;\n if (x % 3 == 0) {\n System.out.print(\" \" + i);\n //goto END_CHECK_NUM;\n END_CHECK_NUM=1;\n }\n while(END_CHECK_NUM==0) {\n //INCLUDE3:\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n if (x==0)break;\n }\n //END_CHECK_NUM:\n if (++i > n) break;\n //if (++i <= n) goto CHECK_NUM;\n }",
"true",
"{\n //CHECK_NUM:\n int x = i;\n int END_CHECK_NUM=0;\n if (x % 3 == 0) {\n System.out.print(\" \" + i);\n //goto END_CHECK_NUM;\n END_CHECK_NUM=1;\n }\n while(END_CHECK_NUM==0) {\n //INCLUDE3:\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n if (x==0)break;\n }\n //END_CHECK_NUM:\n if (++i > n) break;\n //if (++i <= n) goto CHECK_NUM;\n }",
"int x = i;",
"x",
"i",
"int END_CHECK_NUM=0;",
"END_CHECK_NUM",
"0",
"if (x % 3 == 0) {\n System.out.print(\" \" + i);\n //goto END_CHECK_NUM;\n END_CHECK_NUM=1;\n }",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n System.out.print(\" \" + i);\n //goto END_CHECK_NUM;\n END_CHECK_NUM=1;\n }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"END_CHECK_NUM=1",
"END_CHECK_NUM",
"1",
"while(END_CHECK_NUM==0) {\n //INCLUDE3:\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n if (x==0)break;\n }",
"END_CHECK_NUM==0",
"END_CHECK_NUM",
"0",
"{\n //INCLUDE3:\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n if (x==0)break;\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",
"if (x==0)break;",
"x==0",
"x",
"0",
"break;",
"if (++i > n) break;",
"++i > n",
"++i",
"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 Scanner sc = new Scanner(System.in);\n int n=sc.nextInt();\n\n int i = 1;\n while(true) {\n //CHECK_NUM:\n int x = i;\n int END_CHECK_NUM=0;\n if (x % 3 == 0) {\n System.out.print(\" \" + i);\n //goto END_CHECK_NUM;\n END_CHECK_NUM=1;\n }\n while(END_CHECK_NUM==0) {\n //INCLUDE3:\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n if (x==0)break;\n }\n //END_CHECK_NUM:\n if (++i > n) break;\n //if (++i <= n) goto CHECK_NUM;\n }\n System.out.println();\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 int i = 1;\n while(true) {\n //CHECK_NUM:\n int x = i;\n int END_CHECK_NUM=0;\n if (x % 3 == 0) {\n System.out.print(\" \" + i);\n //goto END_CHECK_NUM;\n END_CHECK_NUM=1;\n }\n while(END_CHECK_NUM==0) {\n //INCLUDE3:\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n if (x==0)break;\n }\n //END_CHECK_NUM:\n if (++i > n) break;\n //if (++i <= n) goto CHECK_NUM;\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();
int i = 1;
while(true) {
//CHECK_NUM:
int x = i;
int END_CHECK_NUM=0;
if (x % 3 == 0) {
System.out.print(" " + i);
//goto END_CHECK_NUM;
END_CHECK_NUM=1;
}
while(END_CHECK_NUM==0) {
//INCLUDE3:
if (x % 10 == 3) {
System.out.print(" " + i);
break;
}
x /= 10;
if (x==0)break;
}
//END_CHECK_NUM:
if (++i > n) break;
//if (++i <= n) goto CHECK_NUM;
}
System.out.println();
}
}
|
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
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,
30,
41,
13,
13,
42,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
3,
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
],
[
14,
15
],
[
15,
16
],
[
14,
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
],
[
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
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
52,
54
],
[
54,
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
],
[
54,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
73,
75
],
[
54,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
76,
80
],
[
80,
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\tstatic Scanner scan = new Scanner(System.in);\t\n\tpublic static void main(String[] args) {\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\tint a = i;\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\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\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic Scanner scan = new Scanner(System.in);\t\n\tpublic static void main(String[] args) {\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\tint a = i;\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\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\n\t}\n}",
"Main",
"static Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\tint a = i;\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\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\n\t}",
"main",
"{\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\tint a = i;\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\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\n\t}",
"int n = Integer.parseInt(scan.next());",
"n",
"Integer.parseInt(scan.next())",
"Integer.parseInt",
"Integer",
"scan.next()",
"scan.next",
"scan",
"for(int i = 1; i <= n; i++) {\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\tint a = i;\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\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 = 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.print(\" \" + i);\n\t\t\t} else {\n\t\t\tint a = i;\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\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\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\tint a = i;\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\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(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\tint a = i;\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\n\t\t\t\t\t\tbreak;\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.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\tint a = i;\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int a = i;",
"a",
"i",
"while(true) {\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"true",
"{\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(a % 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}",
"a % 10 == 3",
"a % 10",
"a",
"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;",
"a = a / 10",
"a",
"a / 10",
"a",
"10",
"if(a == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"a == 0",
"a",
"0",
"{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"break;",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\tstatic Scanner scan = new Scanner(System.in);\t\n\tpublic static void main(String[] args) {\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\tint a = i;\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\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\n\t}\n}",
"public class Main {\n\tstatic Scanner scan = new Scanner(System.in);\t\n\tpublic static void main(String[] args) {\n\t\tint n = Integer.parseInt(scan.next());\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\tint a = i;\n\t\t\t\twhile(true) {\n\t\t\t\t\tif(a % 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\ta = a / 10;\n\t\t\t\t\tif(a == 0) {\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\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
static Scanner scan = new Scanner(System.in);
public static void main(String[] args) {
int n = Integer.parseInt(scan.next());
for(int i = 1; i <= n; i++) {
if(i % 3 == 0) {
System.out.print(" " + i);
} else {
int a = i;
while(true) {
if(a % 10 == 3) {
System.out.print(" " + i);
break;
}
a = a / 10;
if(a == 0) {
break;
}
}
}
}
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,
41,
13,
4,
18,
13,
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,
4,
18,
13,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
0,
13,
17,
0,
13,
17,
4,
18,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
101,
11
],
[
101,
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
],
[
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
],
[
58,
59
],
[
57,
60
],
[
55,
61
],
[
48,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
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
],
[
74,
82
],
[
82,
83
],
[
82,
84
],
[
67,
85
],
[
85,
86
],
[
85,
87
],
[
14,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
14,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
12,
98
],
[
98,
99
],
[
0,
100
],
[
100,
101
],
[
100,
102
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.io.IOException;\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\t\tString line = br.readLine();\n\t\tint n = Integer.parseInt(line);\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\tsb.append(\" \").append(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\tsb.append(\" \").append(i);\n x = 0;\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}\n\t\tsb.append(\"\\n\");\n\t\tSystem.out.print(sb);\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.IOException;",
"IOException",
"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\t\tString line = br.readLine();\n\t\tint n = Integer.parseInt(line);\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\tsb.append(\" \").append(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\tsb.append(\" \").append(i);\n x = 0;\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}\n\t\tsb.append(\"\\n\");\n\t\tSystem.out.print(sb);\n\t}\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\t\tString line = br.readLine();\n\t\tint n = Integer.parseInt(line);\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\tsb.append(\" \").append(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\tsb.append(\" \").append(i);\n x = 0;\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}\n\t\tsb.append(\"\\n\");\n\t\tSystem.out.print(sb);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString line = br.readLine();\n\t\tint n = Integer.parseInt(line);\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\tsb.append(\" \").append(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\tsb.append(\" \").append(i);\n x = 0;\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}\n\t\tsb.append(\"\\n\");\n\t\tSystem.out.print(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()",
"String line = br.readLine();",
"line",
"br.readLine()",
"br.readLine",
"br",
"int n = Integer.parseInt(line);",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"for(int i = 1; i <= n; i++){\n\t\t\tint x = i;\n\t\t\tif( x % 3 == 0 ){\n\t\t\t\tsb.append(\" \").append(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\tsb.append(\" \").append(i);\n x = 0;\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 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\tsb.append(\" \").append(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\tsb.append(\" \").append(i);\n x = 0;\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}",
"{\n\t\t\tint x = i;\n\t\t\tif( x % 3 == 0 ){\n\t\t\t\tsb.append(\" \").append(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\tsb.append(\" \").append(i);\n x = 0;\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\tsb.append(\" \").append(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\tsb.append(\" \").append(i);\n x = 0;\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\tsb.append(\" \").append(i);\n\t\t\t}",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"{\n\t\t\t\tdo{\n\t\t\t\t\tif( x % 10 == 3 ){\n\t\t\t\t\t\tsb.append(\" \").append(i);\n x = 0;\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\tsb.append(\" \").append(i);\n x = 0;\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\tsb.append(\" \").append(i);\n x = 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\tsb.append(\" \").append(i);\n x = 0;\n\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\tsb.append(\" \").append(i);\n x = 0;\n\t\t\t\t\t}",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"x = 0",
"x",
"0",
"x /= 10",
"x",
"10",
"sb.append(\"\\n\")",
"sb.append",
"sb",
"\"\\n\"",
"System.out.print(sb)",
"System.out.print",
"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\t\tString line = br.readLine();\n\t\tint n = Integer.parseInt(line);\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\tsb.append(\" \").append(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\tsb.append(\" \").append(i);\n x = 0;\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}\n\t\tsb.append(\"\\n\");\n\t\tSystem.out.print(sb);\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tString line = br.readLine();\n\t\tint n = Integer.parseInt(line);\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\tsb.append(\" \").append(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\tsb.append(\" \").append(i);\n x = 0;\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}\n\t\tsb.append(\"\\n\");\n\t\tSystem.out.print(sb);\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.io.IOException;
public class Main{
public static void main(String[] args) throws IOException{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
String line = br.readLine();
int n = Integer.parseInt(line);
for(int i = 1; i <= n; i++){
int x = i;
if( x % 3 == 0 ){
sb.append(" ").append(i);
}else{
do{
if( x % 10 == 3 ){
sb.append(" ").append(i);
x = 0;
}
x /= 10;
}while( x != 0 );
}
}
sb.append("\n");
System.out.print(sb);
}
} |
[
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,
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,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
30,
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
],
[
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
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
32,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
47,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
79,
88
],
[
73,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
92,
93
],
[
92,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
6,
100
],
[
100,
101
]
] | [
"import java.util.*;\n\nclass Main{\n\tpublic static void main(String[] args){\n\t\tScanner sr = new Scanner(System.in);\n\t\tint in = sr.nextInt();\n\t\tint x;\n\t\tfor(int i=1;i<=in;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{\n\t\t\t\t\tx = i/10;\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}else{\n\t\t\t\t\t\tx = x/10;\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.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sr = new Scanner(System.in);\n\t\tint in = sr.nextInt();\n\t\tint x;\n\t\tfor(int i=1;i<=in;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{\n\t\t\t\t\tx = i/10;\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}else{\n\t\t\t\t\t\tx = x/10;\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\tScanner sr = new Scanner(System.in);\n\t\tint in = sr.nextInt();\n\t\tint x;\n\t\tfor(int i=1;i<=in;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{\n\t\t\t\t\tx = i/10;\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}else{\n\t\t\t\t\t\tx = x/10;\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\tScanner sr = new Scanner(System.in);\n\t\tint in = sr.nextInt();\n\t\tint x;\n\t\tfor(int i=1;i<=in;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{\n\t\t\t\t\tx = i/10;\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}else{\n\t\t\t\t\t\tx = x/10;\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 sr = new Scanner(System.in);",
"sr",
"new Scanner(System.in)",
"int in = sr.nextInt();",
"in",
"sr.nextInt()",
"sr.nextInt",
"sr",
"int x;",
"x",
"for(int i=1;i<=in;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{\n\t\t\t\t\tx = i/10;\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}else{\n\t\t\t\t\t\tx = x/10;\n\t\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<=in",
"i",
"in",
"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{\n\t\t\t\t\tx = i/10;\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}else{\n\t\t\t\t\t\tx = x/10;\n\t\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\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{\n\t\t\t\t\tx = i/10;\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}else{\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\n\t\t\t\t}\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{\n\t\t\t\t\tx = i/10;\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}else{\n\t\t\t\t\t\tx = x/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.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{\n\t\t\t\t\tx = i/10;\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}else{\n\t\t\t\t\t\tx = x/10;\n\t\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\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\t\tx = i/10;\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}else{\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"x = i/10",
"x",
"i/10",
"i",
"10",
"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}else{\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\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}else{\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\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}else{\n\t\t\t\t\t\tx = x/10;\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\t\t\tx = x/10;\n\t\t\t\t\t}",
"x = x/10",
"x",
"x/10",
"x",
"10",
"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 sr = new Scanner(System.in);
int in = sr.nextInt();
int x;
for(int i=1;i<=in;i++){
if(i%3==0){
System.out.print(" "+i);
}else if(i%10==3){
System.out.print(" "+i);
}else{
x = i/10;
while(x!=0){
if(x%10==3){
System.out.print(" "+i);
break;
}else{
x = x/10;
}
}
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
20,
12,
13,
30,
20,
23,
13,
12,
13,
30,
4,
18,
20,
6,
13,
12,
13,
30,
41,
13,
4,
18,
13,
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,
41,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
17,
4,
18,
18,
13,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
98,
5
],
[
98,
6
],
[
6,
7
],
[
6,
8
],
[
98,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
9,
13
],
[
13,
14
],
[
98,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
98,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
25,
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
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
44,
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
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
85,
86
],
[
85,
87
],
[
73,
88
],
[
66,
89
],
[
89,
90
],
[
89,
91
],
[
25,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] | [
"import java.util.*;\n \npublic class Main {\n Scanner sc = new Scanner(System.in);\n \n public static void main(String[] args) {\n new Main(); \n }\n \n public Main() {\n new TEST().doIt();\n }\n class TEST{\n void doIt(){\n \tint n = sc.nextInt();\n \tfor(int i = 1;i <= n;i++){\n \t\tif(i % 3 == 0)System.out.print(\" \"+i);\n \t\telse {\n \t\t\tint x = i;\n while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }\n \t\t}\n \t}\n \tSystem.out.println();\n }\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n Scanner sc = new Scanner(System.in);\n \n public static void main(String[] args) {\n new Main(); \n }\n \n public Main() {\n new TEST().doIt();\n }\n class TEST{\n void doIt(){\n \tint n = sc.nextInt();\n \tfor(int i = 1;i <= n;i++){\n \t\tif(i % 3 == 0)System.out.print(\" \"+i);\n \t\telse {\n \t\t\tint x = i;\n while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }\n \t\t}\n \t}\n \tSystem.out.println();\n }\n }\n}",
"Main",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"public static void main(String[] args) {\n new Main(); \n }",
"main",
"{\n new Main(); \n }",
"new Main()",
"String[] args",
"args",
"public Main() {\n new TEST().doIt();\n }",
"Main",
"{\n new TEST().doIt();\n }",
"new TEST().doIt()",
"new TEST().doIt",
"new TEST()",
"class TEST{\n void doIt(){\n \tint n = sc.nextInt();\n \tfor(int i = 1;i <= n;i++){\n \t\tif(i % 3 == 0)System.out.print(\" \"+i);\n \t\telse {\n \t\t\tint x = i;\n while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }\n \t\t}\n \t}\n \tSystem.out.println();\n }\n }",
"TEST",
"void doIt(){\n \tint n = sc.nextInt();\n \tfor(int i = 1;i <= n;i++){\n \t\tif(i % 3 == 0)System.out.print(\" \"+i);\n \t\telse {\n \t\t\tint x = i;\n while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }\n \t\t}\n \t}\n \tSystem.out.println();\n }",
"doIt",
"{\n \tint n = sc.nextInt();\n \tfor(int i = 1;i <= n;i++){\n \t\tif(i % 3 == 0)System.out.print(\" \"+i);\n \t\telse {\n \t\t\tint x = i;\n while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }\n \t\t}\n \t}\n \tSystem.out.println();\n }",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i = 1;i <= n;i++){\n \t\tif(i % 3 == 0)System.out.print(\" \"+i);\n \t\telse {\n \t\t\tint x = i;\n while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }\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)System.out.print(\" \"+i);\n \t\telse {\n \t\t\tint x = i;\n while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }\n \t\t}\n \t}",
"{\n \t\tif(i % 3 == 0)System.out.print(\" \"+i);\n \t\telse {\n \t\t\tint x = i;\n while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }\n \t\t}\n \t}",
"if(i % 3 == 0)System.out.print(\" \"+i);\n \t\telse {\n \t\t\tint x = i;\n while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }\n \t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"{\n \t\t\tint x = i;\n while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }\n \t\t}",
"int x = i;",
"x",
"i",
"while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }",
"x!=0",
"x",
"0",
"{\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }",
"if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }",
"if(x % 10 == 3)System.out.print(\" \"+i);",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"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",
"public class Main {\n Scanner sc = new Scanner(System.in);\n \n public static void main(String[] args) {\n new Main(); \n }\n \n public Main() {\n new TEST().doIt();\n }\n class TEST{\n void doIt(){\n \tint n = sc.nextInt();\n \tfor(int i = 1;i <= n;i++){\n \t\tif(i % 3 == 0)System.out.print(\" \"+i);\n \t\telse {\n \t\t\tint x = i;\n while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }\n \t\t}\n \t}\n \tSystem.out.println();\n }\n }\n}",
"public class Main {\n Scanner sc = new Scanner(System.in);\n \n public static void main(String[] args) {\n new Main(); \n }\n \n public Main() {\n new TEST().doIt();\n }\n class TEST{\n void doIt(){\n \tint n = sc.nextInt();\n \tfor(int i = 1;i <= n;i++){\n \t\tif(i % 3 == 0)System.out.print(\" \"+i);\n \t\telse {\n \t\t\tint x = i;\n while(x!=0){\n if(x % 10 == 3){\n \tif(x % 10 == 3)System.out.print(\" \"+i);\n break;\n }\n x /= 10;\n }\n \t\t}\n \t}\n \tSystem.out.println();\n }\n }\n}",
"Main"
] | import java.util.*;
public class Main {
Scanner sc = new Scanner(System.in);
public static void main(String[] args) {
new Main();
}
public Main() {
new TEST().doIt();
}
class TEST{
void doIt(){
int n = sc.nextInt();
for(int i = 1;i <= n;i++){
if(i % 3 == 0)System.out.print(" "+i);
else {
int x = i;
while(x!=0){
if(x % 10 == 3){
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,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
41,
13,
17,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
17,
3,
0,
13,
17,
14,
13,
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
],
[
87,
5
],
[
87,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
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
],
[
36,
38
],
[
32,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
39,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
62,
64
],
[
61,
65
],
[
54,
66
],
[
66,
67
],
[
66,
68
],
[
32,
69
],
[
69,
70
],
[
69,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
71,
76
],
[
76,
77
],
[
76,
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\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\tsc.close();\n\t\t\n\t\tfor(int i = 1; i <= n ;i++) {\n\t\t\tint x = i;\n\t\t\tboolean ok = false;\n\t\t\t\n\t\t\tif(x % 3 == 0) {\n\t\t\t\tok = true;\n\t\t\t} else {\n\t\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\tok = true;\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\t\n\t\t\t}\n\t\t\t\n\t\t\tif(ok) System.out.print(\" \" + i);\n\t\t\t\n\t\t}\n System.out.println();\n\t}\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 sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tsc.close();\n\t\t\n\t\tfor(int i = 1; i <= n ;i++) {\n\t\t\tint x = i;\n\t\t\tboolean ok = false;\n\t\t\t\n\t\t\tif(x % 3 == 0) {\n\t\t\t\tok = true;\n\t\t\t} else {\n\t\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\tok = true;\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\t\n\t\t\t}\n\t\t\t\n\t\t\tif(ok) System.out.print(\" \" + i);\n\t\t\t\n\t\t}\n System.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\tsc.close();\n\t\t\n\t\tfor(int i = 1; i <= n ;i++) {\n\t\t\tint x = i;\n\t\t\tboolean ok = false;\n\t\t\t\n\t\t\tif(x % 3 == 0) {\n\t\t\t\tok = true;\n\t\t\t} else {\n\t\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\tok = true;\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\t\n\t\t\t}\n\t\t\t\n\t\t\tif(ok) System.out.print(\" \" + i);\n\t\t\t\n\t\t}\n System.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\tsc.close();\n\t\t\n\t\tfor(int i = 1; i <= n ;i++) {\n\t\t\tint x = i;\n\t\t\tboolean ok = false;\n\t\t\t\n\t\t\tif(x % 3 == 0) {\n\t\t\t\tok = true;\n\t\t\t} else {\n\t\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\tok = true;\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\t\n\t\t\t}\n\t\t\t\n\t\t\tif(ok) System.out.print(\" \" + i);\n\t\t\t\n\t\t}\n System.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",
"sc.close()",
"sc.close",
"sc",
"for(int i = 1; i <= n ;i++) {\n\t\t\tint x = i;\n\t\t\tboolean ok = false;\n\t\t\t\n\t\t\tif(x % 3 == 0) {\n\t\t\t\tok = true;\n\t\t\t} else {\n\t\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\tok = true;\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\t\n\t\t\t}\n\t\t\t\n\t\t\tif(ok) System.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\tint x = i;\n\t\t\tboolean ok = false;\n\t\t\t\n\t\t\tif(x % 3 == 0) {\n\t\t\t\tok = true;\n\t\t\t} else {\n\t\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\tok = true;\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\t\n\t\t\t}\n\t\t\t\n\t\t\tif(ok) System.out.print(\" \" + i);\n\t\t\t\n\t\t}",
"{\n\t\t\tint x = i;\n\t\t\tboolean ok = false;\n\t\t\t\n\t\t\tif(x % 3 == 0) {\n\t\t\t\tok = true;\n\t\t\t} else {\n\t\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\tok = true;\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\t\n\t\t\t}\n\t\t\t\n\t\t\tif(ok) System.out.print(\" \" + i);\n\t\t\t\n\t\t}",
"int x = i;",
"x",
"i",
"boolean ok = false;",
"ok",
"false",
"if(x % 3 == 0) {\n\t\t\t\tok = true;\n\t\t\t} else {\n\t\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\tok = true;\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\t\n\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tok = true;\n\t\t\t}",
"ok = true",
"ok",
"true",
"{\n\t\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\tok = true;\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\t\n\t\t\t}",
"while(x > 0) {\n\t\t\t\t\tif(x % 10 == 3) {\n\t\t\t\t\t\tok = true;\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\tok = true;\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\tok = true;\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\tok = true;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"ok = true",
"ok",
"true",
"break;",
"x /= 10",
"x",
"10",
"if(ok) System.out.print(\" \" + i);",
"ok",
"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\n\t\tScanner sc = new Scanner(System.in);\n\t\t\n\t\tint n = sc.nextInt();\n\t\t\n\t\tsc.close();\n\t\t\n\t\tfor(int i = 1; i <= n ;i++) {\n\t\t\tint x = i;\n\t\t\tboolean ok = false;\n\t\t\t\n\t\t\tif(x % 3 == 0) {\n\t\t\t\tok = true;\n\t\t\t} else {\n\t\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\tok = true;\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\t\n\t\t\t}\n\t\t\t\n\t\t\tif(ok) System.out.print(\" \" + i);\n\t\t\t\n\t\t}\n System.out.println();\n\t}\n}",
"public class Main {\n\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\tsc.close();\n\t\t\n\t\tfor(int i = 1; i <= n ;i++) {\n\t\t\tint x = i;\n\t\t\tboolean ok = false;\n\t\t\t\n\t\t\tif(x % 3 == 0) {\n\t\t\t\tok = true;\n\t\t\t} else {\n\t\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\tok = true;\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\t\n\t\t\t}\n\t\t\t\n\t\t\tif(ok) System.out.print(\" \" + i);\n\t\t\t\n\t\t}\n System.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();
sc.close();
for(int i = 1; i <= n ;i++) {
int x = i;
boolean ok = false;
if(x % 3 == 0) {
ok = true;
} else {
while(x > 0) {
if(x % 10 == 3) {
ok = true;
break;
}
x /= 10;
}
}
if(ok) 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,
41,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
13,
0,
13,
2,
13,
17,
14,
2,
13,
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,
30,
0,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
39,
41
],
[
33,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
42,
55
],
[
55,
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
],
[
61,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
8,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] | [
"import java.util.Scanner; \npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int h = sc.nextInt();\n int w;\n int t;\n for(int c=1;c<=h;c++){\n t = c;\n w = c%3;\n if(w==0){\n System.out.print(\" \"+c);\n }else{\n while(t!=0){\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\n }\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 sc = new Scanner(System.in);\n int h = sc.nextInt();\n int w;\n int t;\n for(int c=1;c<=h;c++){\n t = c;\n w = c%3;\n if(w==0){\n System.out.print(\" \"+c);\n }else{\n while(t!=0){\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\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 int h = sc.nextInt();\n int w;\n int t;\n for(int c=1;c<=h;c++){\n t = c;\n w = c%3;\n if(w==0){\n System.out.print(\" \"+c);\n }else{\n while(t!=0){\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\n }\n \n }\n }\n }\n System.out.println(); \n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int h = sc.nextInt();\n int w;\n int t;\n for(int c=1;c<=h;c++){\n t = c;\n w = c%3;\n if(w==0){\n System.out.print(\" \"+c);\n }else{\n while(t!=0){\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\n }\n \n }\n }\n }\n System.out.println(); \n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int h = sc.nextInt();",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int w;",
"w",
"int t;",
"t",
"for(int c=1;c<=h;c++){\n t = c;\n w = c%3;\n if(w==0){\n System.out.print(\" \"+c);\n }else{\n while(t!=0){\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\n }\n \n }\n }\n }",
"int c=1;",
"int c=1;",
"c",
"1",
"c<=h",
"c",
"h",
"c++",
"c++",
"c",
"{\n t = c;\n w = c%3;\n if(w==0){\n System.out.print(\" \"+c);\n }else{\n while(t!=0){\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\n }\n \n }\n }\n }",
"{\n t = c;\n w = c%3;\n if(w==0){\n System.out.print(\" \"+c);\n }else{\n while(t!=0){\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\n }\n \n }\n }\n }",
"t = c",
"t",
"c",
"w = c%3",
"w",
"c%3",
"c",
"3",
"if(w==0){\n System.out.print(\" \"+c);\n }else{\n while(t!=0){\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\n }\n \n }\n }",
"w==0",
"w",
"0",
"{\n System.out.print(\" \"+c);\n }",
"System.out.print(\" \"+c)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+c",
"\" \"",
"c",
"{\n while(t!=0){\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\n }\n \n }\n }",
"while(t!=0){\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\n }\n \n }",
"t!=0",
"t",
"0",
"{\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\n }\n \n }",
"if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\n }",
"t%10==3",
"t%10",
"t",
"10",
"3",
"{\n System.out.print(\" \"+c);break;\n }",
"System.out.print(\" \"+c)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+c",
"\" \"",
"c",
"break;",
"{\n t/= 10;\n }",
"t/= 10",
"t",
"10",
"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 h = sc.nextInt();\n int w;\n int t;\n for(int c=1;c<=h;c++){\n t = c;\n w = c%3;\n if(w==0){\n System.out.print(\" \"+c);\n }else{\n while(t!=0){\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\n }\n \n }\n }\n }\n System.out.println(); \n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int h = sc.nextInt();\n int w;\n int t;\n for(int c=1;c<=h;c++){\n t = c;\n w = c%3;\n if(w==0){\n System.out.print(\" \"+c);\n }else{\n while(t!=0){\n if(t%10==3){\n System.out.print(\" \"+c);break;\n }else{\n t/= 10;\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);
int h = sc.nextInt();
int w;
int t;
for(int c=1;c<=h;c++){
t = c;
w = c%3;
if(w==0){
System.out.print(" "+c);
}else{
while(t!=0){
if(t%10==3){
System.out.print(" "+c);break;
}else{
t/= 10;
}
}
}
}
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,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
0,
13,
2,
13,
17,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
0,
13,
2,
13,
17,
17,
17,
30,
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
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
23,
31
],
[
31,
32
],
[
32,
33
],
[
23,
34
],
[
35,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
36,
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
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
66,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
86,
88
],
[
83,
89
],
[
82,
90
],
[
81,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
92,
97
],
[
97,
98
],
[
97,
99
],
[
81,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
105,
107
],
[
102,
108
],
[
101,
109
],
[
100,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
113,
114
],
[
113,
115
],
[
111,
116
],
[
116,
117
],
[
116,
118
],
[
8,
119
],
[
119,
120
],
[
120,
121
],
[
121,
122
],
[
121,
123
],
[
6,
124
],
[
124,
125
]
] | [
"/** goto 文は、C/C++言語などで使うことのできる文で、実行されると無条件に指定されたラベルに処理が飛びます。\n * 例えば goto CHECK_NUM; という文が実行されると、プログラムの中で CHECK_NUM: と書かれた行に処理が移ります。\n * この機能を使って、繰り返し処理なども実現することができます。\n * 一方、goto 文は自由度が高すぎ、プログラムの可読性に影響するため、可能な限り使わないことが推奨されています。\n * 次のC++言語のプログラムと同じ動作をするプログラムを作成してください。ただし、goto 文は使わないで実装してみましょう。\n */\n\n/*sucannerクラス使うためにインポート*/\nimport java.util.Scanner;\n\nclass Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 処理を繰り返す\n\n\t\tint intN = sc.nextInt();\n\t\tint i = 0;\n\t\tint x = 0;\n\t\tfor (i = 1; i <= intN; 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 (i / 1000 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = i % 1000) / 100 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = x % 100) / 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\t// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 処理を繰り返す\n\n\t\tint intN = sc.nextInt();\n\t\tint i = 0;\n\t\tint x = 0;\n\t\tfor (i = 1; i <= intN; 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 (i / 1000 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = i % 1000) / 100 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = x % 100) / 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"// プログラムのエントリポイント\n\tpublic static void main(String[] args) {\n\t\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 処理を繰り返す\n\n\t\tint intN = sc.nextInt();\n\t\tint i = 0;\n\t\tint x = 0;\n\t\tfor (i = 1; i <= intN; 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 (i / 1000 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = i % 1000) / 100 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = x % 100) / 10 == 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\t// 入力ストリームの生成\n\t\tScanner sc = new Scanner(System.in);\n\t\t// 処理を繰り返す\n\n\t\tint intN = sc.nextInt();\n\t\tint i = 0;\n\t\tint x = 0;\n\t\tfor (i = 1; i <= intN; 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 (i / 1000 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = i % 1000) / 100 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = x % 100) / 10 == 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)",
"int intN = sc.nextInt();",
"intN",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i = 0;",
"i",
"0",
"int x = 0;",
"x",
"0",
"for (i = 1; i <= intN; 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 (i / 1000 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = i % 1000) / 100 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = x % 100) / 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\t\t}",
"i = 1;",
"i = 1",
"i",
"1",
"i <= intN",
"i",
"intN",
"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 (i / 1000 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = i % 1000) / 100 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = x % 100) / 10 == 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 (i / 1000 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = i % 1000) / 100 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = x % 100) / 10 == 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 (i / 1000 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = i % 1000) / 100 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = x % 100) / 10 == 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 (i / 1000 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = i % 1000) / 100 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = x % 100) / 10 == 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 (i / 1000 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = i % 1000) / 100 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = x % 100) / 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"i / 1000 == 3",
"i / 1000",
"i",
"1000",
"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 = i % 1000) / 100 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else if ((x = x % 100) / 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"(x = i % 1000) / 100 == 3",
"(x = i % 1000) / 100",
"(x = i % 1000)",
"x",
"i % 1000",
"i",
"1000",
"100",
"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 = x % 100) / 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}",
"(x = x % 100) / 10 == 3",
"(x = x % 100) / 10",
"(x = x % 100)",
"x",
"x % 100",
"x",
"100",
"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",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args"
] | /** goto 文は、C/C++言語などで使うことのできる文で、実行されると無条件に指定されたラベルに処理が飛びます。
* 例えば goto CHECK_NUM; という文が実行されると、プログラムの中で CHECK_NUM: と書かれた行に処理が移ります。
* この機能を使って、繰り返し処理なども実現することができます。
* 一方、goto 文は自由度が高すぎ、プログラムの可読性に影響するため、可能な限り使わないことが推奨されています。
* 次のC++言語のプログラムと同じ動作をするプログラムを作成してください。ただし、goto 文は使わないで実装してみましょう。
*/
/*sucannerクラス使うためにインポート*/
import java.util.Scanner;
class Main {
// プログラムのエントリポイント
public static void main(String[] args) {
// 入力ストリームの生成
Scanner sc = new Scanner(System.in);
// 処理を繰り返す
int intN = sc.nextInt();
int i = 0;
int x = 0;
for (i = 1; i <= intN; i++) {
if (i % 3 == 0) {
System.out.print(" " + i);
} else if (i % 10 == 3) {
System.out.print(" " + i);
} else if (i / 1000 == 3) {
System.out.print(" " + i);
} else if ((x = i % 1000) / 100 == 3) {
System.out.print(" " + i);
} else if ((x = x % 100) / 10 == 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,
41,
13,
13,
41,
13,
17,
42,
2,
13,
13,
30,
14,
2,
13,
17,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
0,
13,
17,
14,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
0,
13,
17,
14,
2,
13,
17,
30,
0,
13,
17,
14,
2,
17,
13,
30,
0,
13,
17,
9,
40,
13,
0,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
110,
5
],
[
110,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
31,
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
],
[
54,
55
],
[
54,
56
],
[
30,
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
],
[
71,
73
],
[
69,
74
],
[
74,
75
],
[
74,
76
],
[
68,
77
],
[
77,
78
],
[
77,
79
],
[
61,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
88,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
30,
97
],
[
97,
98
],
[
30,
99
],
[
99,
100
],
[
99,
101
],
[
8,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
6,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
] | [
"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\tint i = 1;\n\t\tint x = i;\n\t\tint start = 0;\n\n\t\twhile (i <= n) {\n\t\t\tif (start == 0) {\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\tstart = 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (start <= 1) {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tstart = 2;\n\t\t\t\t}\n\t\t\t\tif (start <= 1) {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t\tstart = 0;\n\t\t}\n\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\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\t\tint x = i;\n\t\tint start = 0;\n\n\t\twhile (i <= n) {\n\t\t\tif (start == 0) {\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\tstart = 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (start <= 1) {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tstart = 2;\n\t\t\t\t}\n\t\t\t\tif (start <= 1) {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t\tstart = 0;\n\t\t}\n\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 i = 1;\n\t\tint x = i;\n\t\tint start = 0;\n\n\t\twhile (i <= n) {\n\t\t\tif (start == 0) {\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\tstart = 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (start <= 1) {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tstart = 2;\n\t\t\t\t}\n\t\t\t\tif (start <= 1) {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t\tstart = 0;\n\t\t}\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 i = 1;\n\t\tint x = i;\n\t\tint start = 0;\n\n\t\twhile (i <= n) {\n\t\t\tif (start == 0) {\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\tstart = 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (start <= 1) {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tstart = 2;\n\t\t\t\t}\n\t\t\t\tif (start <= 1) {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t\tstart = 0;\n\t\t}\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 i = 1;",
"i",
"1",
"int x = i;",
"x",
"i",
"int start = 0;",
"start",
"0",
"while (i <= n) {\n\t\t\tif (start == 0) {\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\tstart = 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (start <= 1) {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tstart = 2;\n\t\t\t\t}\n\t\t\t\tif (start <= 1) {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t\tstart = 0;\n\t\t}",
"i <= n",
"i",
"n",
"{\n\t\t\tif (start == 0) {\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\tstart = 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (start <= 1) {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tstart = 2;\n\t\t\t\t}\n\t\t\t\tif (start <= 1) {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t\tstart = 0;\n\t\t}",
"if (start == 0) {\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\tstart = 2;\n\t\t\t\t}\n\t\t\t}",
"start == 0",
"start",
"0",
"{\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\tstart = 2;\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\tstart = 2;\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\tstart = 2;\n\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"start = 2",
"start",
"2",
"if (start <= 1) {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tstart = 2;\n\t\t\t\t}\n\t\t\t\tif (start <= 1) {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"start <= 1",
"start",
"1",
"{\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tstart = 2;\n\t\t\t\t}\n\t\t\t\tif (start <= 1) {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\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\tstart = 2;\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\tstart = 2;\n\t\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"start = 2",
"start",
"2",
"if (start <= 1) {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}",
"start <= 1",
"start",
"1",
"{\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}",
"x /= 10",
"x",
"10",
"if (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}",
"0 < x",
"0",
"x",
"{\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}",
"start = 1",
"start",
"1",
"continue;",
"i++",
"i",
"start = 0",
"start",
"0",
"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\tint i = 1;\n\t\tint x = i;\n\t\tint start = 0;\n\n\t\twhile (i <= n) {\n\t\t\tif (start == 0) {\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\tstart = 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (start <= 1) {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tstart = 2;\n\t\t\t\t}\n\t\t\t\tif (start <= 1) {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t\tstart = 0;\n\t\t}\n\n\t\tSystem.out.println();\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\tint i = 1;\n\t\tint x = i;\n\t\tint start = 0;\n\n\t\twhile (i <= n) {\n\t\t\tif (start == 0) {\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\tstart = 2;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif (start <= 1) {\n\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\tstart = 2;\n\t\t\t\t}\n\t\t\t\tif (start <= 1) {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif (0 < x) {\n\t\t\t\t\t\tstart = 1;\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\ti++;\n\t\t\tstart = 0;\n\t\t}\n\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 i = 1;
int x = i;
int start = 0;
while (i <= n) {
if (start == 0) {
x = i;
if (x % 3 == 0) {
System.out.print(" " + i);
start = 2;
}
}
if (start <= 1) {
if (x % 10 == 3) {
System.out.print(" " + i);
start = 2;
}
if (start <= 1) {
x /= 10;
if (0 < x) {
start = 1;
continue;
}
}
}
i++;
start = 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,
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,
11,
1,
0,
13,
17,
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,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
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
],
[
55,
64
],
[
29,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
65,
70
],
[
70,
71
],
[
70,
72
],
[
65,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
65,
77
],
[
78,
78
],
[
78,
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
],
[
85,
94
],
[
8,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\t\n\t\tint n = scan.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\tcontinue;\n\t\t\t}\n\t\t\tif (x % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor (x /= 10; x != 0; x /= 10) {\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}\n\t\t}\n\t\tSystem.out.println();\n\t\tscan.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\t\n\t\tint n = scan.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\tcontinue;\n\t\t\t}\n\t\t\tif (x % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor (x /= 10; x != 0; x /= 10) {\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}\n\t\t}\n\t\tSystem.out.println();\n\t\tscan.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\t\n\t\tint n = scan.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\tcontinue;\n\t\t\t}\n\t\t\tif (x % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor (x /= 10; x != 0; x /= 10) {\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}\n\t\t}\n\t\tSystem.out.println();\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\t\t\n\t\tint n = scan.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\tcontinue;\n\t\t\t}\n\t\t\tif (x % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor (x /= 10; x != 0; x /= 10) {\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}\n\t\t}\n\t\tSystem.out.println();\n\t\tscan.close();\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\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\tif (x % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor (x /= 10; x != 0; x /= 10) {\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}\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\tif (x % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor (x /= 10; x != 0; x /= 10) {\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}\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\tif (x % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor (x /= 10; x != 0; x /= 10) {\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}\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;",
"if (x % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + 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(\" \" + 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;",
"for (x /= 10; x != 0; x /= 10) {\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}",
"x /= 10;",
"x /= 10",
"x",
"10",
"x != 0",
"x",
"0",
"x /= 10",
"x /= 10",
"x",
"10",
"{\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}",
"{\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}",
"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;",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\t\n\t\tint n = scan.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\tcontinue;\n\t\t\t}\n\t\t\tif (x % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor (x /= 10; x != 0; x /= 10) {\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}\n\t\t}\n\t\tSystem.out.println();\n\t\tscan.close();\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\t\t\n\t\tint n = scan.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\tcontinue;\n\t\t\t}\n\t\t\tif (x % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\t\n\t\t\tfor (x /= 10; x != 0; x /= 10) {\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}\n\t\t}\n\t\tSystem.out.println();\n\t\tscan.close();\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++) {
int x = i;
if (x % 3 == 0) {
System.out.print(" " + i);
continue;
}
if (x % 10 == 3) {
System.out.print(" " + i);
continue;
}
for (x /= 10; x != 0; x /= 10) {
if (x % 10 == 3) {
System.out.print(" " + i);
break;
}
}
}
System.out.println();
scan.close();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
2,
13,
17,
17,
2,
4,
18,
4,
18,
20,
17,
40,
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
],
[
63,
5
],
[
63,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
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
],
[
38,
43
],
[
37,
44
],
[
44,
45
],
[
30,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
52,
53
],
[
52,
54
],
[
8,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
6,
60
],
[
60,
61
],
[
0,
62
],
[
62,
63
],
[
62,
64
]
] | [
"import java.util.Scanner;\n\npublic class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n \n for(int i = 1; i <= num; i++){\n if(i % 3 == 0 || new Integer(i).toString().indexOf(\"3\") != -1){\n System.out.print(\" \" + i);\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 sc = new Scanner(System.in);\n int num = sc.nextInt();\n \n for(int i = 1; i <= num; i++){\n if(i % 3 == 0 || new Integer(i).toString().indexOf(\"3\") != -1){\n System.out.print(\" \" + i);\n }\n }\n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n \n for(int i = 1; i <= num; i++){\n if(i % 3 == 0 || new Integer(i).toString().indexOf(\"3\") != -1){\n System.out.print(\" \" + i);\n }\n }\n System.out.println();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n \n for(int i = 1; i <= num; i++){\n if(i % 3 == 0 || new Integer(i).toString().indexOf(\"3\") != -1){\n System.out.print(\" \" + i);\n }\n }\n System.out.println();\n }",
"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 if(i % 3 == 0 || new Integer(i).toString().indexOf(\"3\") != -1){\n System.out.print(\" \" + i);\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= num",
"i",
"num",
"i++",
"i++",
"i",
"{\n if(i % 3 == 0 || new Integer(i).toString().indexOf(\"3\") != -1){\n System.out.print(\" \" + i);\n }\n }",
"{\n if(i % 3 == 0 || new Integer(i).toString().indexOf(\"3\") != -1){\n System.out.print(\" \" + i);\n }\n }",
"if(i % 3 == 0 || new Integer(i).toString().indexOf(\"3\") != -1){\n System.out.print(\" \" + i);\n }",
"i % 3 == 0 || new Integer(i).toString().indexOf(\"3\") != -1",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"new Integer(i).toString().indexOf(\"3\") != -1",
"new Integer(i).toString().indexOf(\"3\")",
"new Integer(i).toString().indexOf",
"new Integer(i).toString()",
"new Integer(i).toString",
"new Integer(i)",
"\"3\"",
"-1",
"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 public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n \n for(int i = 1; i <= num; i++){\n if(i % 3 == 0 || new Integer(i).toString().indexOf(\"3\") != -1){\n System.out.print(\" \" + i);\n }\n }\n System.out.println();\n }\n}",
"public class Main{\n public static void main(String[] args){\n Scanner sc = new Scanner(System.in);\n int num = sc.nextInt();\n \n for(int i = 1; i <= num; i++){\n if(i % 3 == 0 || new Integer(i).toString().indexOf(\"3\") != -1){\n System.out.print(\" \" + i);\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);
int num = sc.nextInt();
for(int i = 1; i <= num; i++){
if(i % 3 == 0 || new Integer(i).toString().indexOf("3") != -1){
System.out.print(" " + i);
}
}
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,
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,
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,
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,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
121,
8
],
[
121,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
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
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
22,
34
],
[
34,
35
],
[
34,
36
],
[
22,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
37,
45
],
[
45,
46
],
[
46,
47
],
[
37,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
51,
55
],
[
50,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
57,
62
],
[
62,
63
],
[
62,
64
],
[
50,
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
],
[
65,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
98,
103
],
[
103,
104
],
[
103,
105
],
[
97,
106
],
[
90,
107
],
[
107,
108
],
[
107,
109
],
[
22,
110
],
[
110,
111
],
[
111,
112
],
[
112,
113
],
[
112,
114
],
[
22,
115
],
[
115,
116
],
[
116,
117
],
[
9,
118
],
[
118,
119
],
[
0,
120
],
[
120,
121
],
[
120,
122
]
] | [
"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\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) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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\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) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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\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) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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\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) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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\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) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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\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) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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))",
"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) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\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) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\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 if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\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 if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\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",
"if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t\t}",
"i % 10 == 3",
"i % 10",
"i",
"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\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\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}\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\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}",
"x != 0",
"x",
"0",
"{\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}",
"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",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"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\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) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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\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) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t} else if (i % 10 == 3) {\n\t\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\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));
int val = Integer.parseInt(br.readLine());
int x = 0;
for (int i = 1; i <= val; i++) {
if (i % 3 == 0) {
System.out.print(" " + i);
} else if (i % 10 == 3) {
System.out.print(" " + i);
} else {
x = i / 10;
while (x != 0) {
if (x % 10 == 3) {
System.out.print(" " + i);
break;
}
x /= 10;
}
}
}
System.out.println();
br.close();
} catch (Exception e) {
System.err.println(e);
}
}
} |
[
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,
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,
9,
41,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
13,
4,
18,
4,
18,
13,
17,
13,
3,
0,
13,
17,
0,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
98,
11
],
[
98,
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
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
42,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
49,
55
],
[
48,
56
],
[
41,
57
],
[
57,
58
],
[
57,
59
],
[
41,
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
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
77,
80
],
[
75,
81
],
[
71,
82
],
[
64,
83
],
[
83,
84
],
[
83,
85
],
[
41,
86
],
[
86,
87
],
[
86,
88
],
[
14,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
91,
93
],
[
89,
94
],
[
12,
95
],
[
95,
96
],
[
0,
97
],
[
97,
98
],
[
97,
99
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint tmp = i;\n\t\t\tdo {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti /= 10;\n\t\t\t} while (i != 0);\n\t\t\ti = tmp;\n\t\t}\n\t\tSystem.out.println(sb);\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\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint tmp = i;\n\t\t\tdo {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti /= 10;\n\t\t\t} while (i != 0);\n\t\t\ti = tmp;\n\t\t}\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint tmp = i;\n\t\t\tdo {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti /= 10;\n\t\t\t} while (i != 0);\n\t\t\ti = tmp;\n\t\t}\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\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint tmp = i;\n\t\t\tdo {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti /= 10;\n\t\t\t} while (i != 0);\n\t\t\ti = tmp;\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))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int 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\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint tmp = i;\n\t\t\tdo {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti /= 10;\n\t\t\t} while (i != 0);\n\t\t\ti = tmp;\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(i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint tmp = i;\n\t\t\tdo {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti /= 10;\n\t\t\t} while (i != 0);\n\t\t\ti = tmp;\n\t\t}",
"{\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint tmp = i;\n\t\t\tdo {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti /= 10;\n\t\t\t} while (i != 0);\n\t\t\ti = tmp;\n\t\t}",
"if (i % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tcontinue;\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tcontinue;\n\t\t\t}",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"continue;",
"int tmp = i;",
"tmp",
"i",
"do {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti /= 10;\n\t\t\t} while (i != 0);",
"i != 0",
"i",
"0",
"{\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti /= 10;\n\t\t\t}",
"if (i % 10 == 3) {\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"{\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}",
"i = tmp",
"i",
"tmp",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"break;",
"i /= 10",
"i",
"10",
"i = tmp",
"i",
"tmp",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint tmp = i;\n\t\t\tdo {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti /= 10;\n\t\t\t} while (i != 0);\n\t\t\ti = tmp;\n\t\t}\n\t\tSystem.out.println(sb);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = Integer.parseInt(br.readLine());\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tint tmp = i;\n\t\t\tdo {\n\t\t\t\tif (i % 10 == 3) {\n\t\t\t\t\ti = tmp;\n\t\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\t\tbreak;\n\t\t\t\t}\n\t\t\t\ti /= 10;\n\t\t\t} while (i != 0);\n\t\t\ti = tmp;\n\t\t}\n\t\tSystem.out.println(sb);\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 NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int n = Integer.parseInt(br.readLine());
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
sb.append(" ").append(i);
continue;
}
int tmp = i;
do {
if (i % 10 == 3) {
i = tmp;
sb.append(" ").append(i);
break;
}
i /= 10;
} while (i != 0);
i = tmp;
}
System.out.println(sb);
}
} |
[
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,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
3,
0,
13,
2,
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
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
46,
48
],
[
36,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
54,
69
],
[
69,
70
],
[
69,
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\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = scan.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\tsb.append(\" \" + 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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb);\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 sb = new StringBuilder();\n\t\tint n = scan.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\tsb.append(\" \" + 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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = scan.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\tsb.append(\" \" + 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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = scan.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\tsb.append(\" \" + 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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 10;\n\t\t\t\t} while (x != 0);\n\t\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",
"for ( int i = 1; i <= n; i++ ) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tsb.append(\" \" + 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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 10;\n\t\t\t\t} 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\tsb.append(\" \" + 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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 10;\n\t\t\t\t} 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\tsb.append(\" \" + 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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 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\tsb.append(\" \" + 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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 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\tsb.append(\" \" + i);\n\t\t\t}",
"sb.append(\" \" + i)",
"sb.append",
"sb",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 10;\n\t\t\t\t}",
"if (x % 10 == 3) {\n\t\t\t\t\t\tsb.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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"sb.append(\" \" + i)",
"sb.append",
"sb",
"\" \" + i",
"\" \"",
"i",
"break;",
"x = x / 10",
"x",
"x / 10",
"x",
"10",
"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) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = scan.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\tsb.append(\" \" + 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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tStringBuilder sb = new StringBuilder();\n\t\tint n = scan.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\tsb.append(\" \" + 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\tsb.append(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx = x / 10;\n\t\t\t\t} while (x != 0);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
StringBuilder sb = new StringBuilder();
int n = scan.nextInt();
for ( int i = 1; i <= n; i++ ) {
int x = i;
if (x % 3 == 0) {
sb.append(" " + i);
} else {
do {
if (x % 10 == 3) {
sb.append(" " + i);
break;
}
x = x / 10;
} while (x != 0);
}
}
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
17,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
2,
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,
30,
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
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
21
],
[
21,
22
],
[
21,
23
],
[
14,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
36,
37
],
[
36,
38
],
[
29,
39
],
[
39,
40
],
[
40,
41
],
[
29,
42
],
[
43,
43
],
[
43,
44
],
[
44,
45
],
[
44,
46
],
[
43,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
47,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
80,
81
],
[
80,
82
],
[
74,
83
],
[
68,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
14,
88
],
[
88,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
88,
93
],
[
12,
94
],
[
94,
95
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\nimport java.util.*;\nclass Main{\n\tpublic static void main(String[] args){\n\tint n =0;\n\tint x =0;\n\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt();\n\t\tfor(int i=1; i != n+1; i++){\n\t\t\tx = i;\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse{\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\telse{\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\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.*;",
"util.*",
"java",
"class Main{\n\tpublic static void main(String[] args){\n\tint n =0;\n\tint x =0;\n\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt();\n\t\tfor(int i=1; i != n+1; i++){\n\t\t\tx = i;\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse{\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\telse{\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\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n}",
"Main",
"public static void main(String[] args){\n\tint n =0;\n\tint x =0;\n\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt();\n\t\tfor(int i=1; i != n+1; i++){\n\t\t\tx = i;\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse{\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\telse{\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\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"main",
"{\n\tint n =0;\n\tint x =0;\n\tScanner scan = new Scanner(System.in);\n\t\tn = scan.nextInt();\n\t\tfor(int i=1; i != n+1; i++){\n\t\t\tx = i;\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse{\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\telse{\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\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"int n =0;",
"n",
"0",
"int x =0;",
"x",
"0",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"n = scan.nextInt()",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int i=1; i != n+1; i++){\n\t\t\tx = i;\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse{\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\telse{\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\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i != n+1",
"i",
"n+1",
"n",
"1",
"i++",
"i++",
"i",
"{\n\t\t\tx = i;\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse{\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\telse{\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\n\t\t}",
"{\n\t\t\tx = i;\n\t\t\tif(i%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse{\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\telse{\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\n\t\t}",
"x = i",
"x",
"i",
"if(i%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t}\n\t\t\telse{\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\telse{\n\t\t\t\t\t\tx /= 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.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\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\telse{\n\t\t\t\t\t\tx /= 10;\n\t\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\telse{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\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\telse{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\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}\n\t\t\t\t\telse{\n\t\t\t\t\t\tx /= 10;\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\t\t\tx /= 10;\n\t\t\t\t\t}",
"x /= 10",
"x",
"10",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
import java.util.*;
class Main{
public static void main(String[] args){
int n =0;
int x =0;
Scanner scan = new Scanner(System.in);
n = scan.nextInt();
for(int i=1; i != n+1; i++){
x = i;
if(i%3 == 0){
System.out.print(" "+i);
}
else{
while(x != 0){
if(x%10 == 3){
System.out.print(" "+i);
break;
}
else{
x /= 10;
}
}
}
}
System.out.println("");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
41,
13,
41,
13,
20,
41,
13,
4,
18,
13,
42,
2,
40,
13,
13,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
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,
9,
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
],
[
8,
14
],
[
14,
15
],
[
14,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
22,
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
],
[
37,
46
],
[
27,
47
],
[
47,
48
],
[
47,
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
],
[
62,
63
],
[
62,
64
],
[
56,
65
],
[
50,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
70,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
76,
81
],
[
6,
82
],
[
82,
83
]
] | [
"import java.util.Scanner;\n\nclass Main{\n public static void main(String[] args){\n int i = 1;\n int x;\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while(++i <= n){\n x = i;\n if(x % 3 == 0){\n System.out.print(\" \" + i);\n continue;\n }\n while(true){\n if(x % 10 == 3){\n System.out.print(\" \" + i);\n break;\n }else{\n x /= 10;\n if(x != 0) continue;\n else break;\n }\n }\n\n }\n System.out.print(\"\\n\");\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String[] args){\n int i = 1;\n int x;\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while(++i <= n){\n x = i;\n if(x % 3 == 0){\n System.out.print(\" \" + i);\n continue;\n }\n while(true){\n if(x % 10 == 3){\n System.out.print(\" \" + i);\n break;\n }else{\n x /= 10;\n if(x != 0) continue;\n else break;\n }\n }\n\n }\n System.out.print(\"\\n\");\n }\n}",
"Main",
"public static void main(String[] args){\n int i = 1;\n int x;\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while(++i <= n){\n x = i;\n if(x % 3 == 0){\n System.out.print(\" \" + i);\n continue;\n }\n while(true){\n if(x % 10 == 3){\n System.out.print(\" \" + i);\n break;\n }else{\n x /= 10;\n if(x != 0) continue;\n else break;\n }\n }\n\n }\n System.out.print(\"\\n\");\n }",
"main",
"{\n int i = 1;\n int x;\n Scanner sc = new Scanner(System.in);\n int n = sc.nextInt();\n while(++i <= n){\n x = i;\n if(x % 3 == 0){\n System.out.print(\" \" + i);\n continue;\n }\n while(true){\n if(x % 10 == 3){\n System.out.print(\" \" + i);\n break;\n }else{\n x /= 10;\n if(x != 0) continue;\n else break;\n }\n }\n\n }\n System.out.print(\"\\n\");\n }",
"int i = 1;",
"i",
"1",
"int x;",
"x",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"while(++i <= n){\n x = i;\n if(x % 3 == 0){\n System.out.print(\" \" + i);\n continue;\n }\n while(true){\n if(x % 10 == 3){\n System.out.print(\" \" + i);\n break;\n }else{\n x /= 10;\n if(x != 0) continue;\n else break;\n }\n }\n\n }",
"++i <= n",
"++i",
"i",
"n",
"{\n x = i;\n if(x % 3 == 0){\n System.out.print(\" \" + i);\n continue;\n }\n while(true){\n if(x % 10 == 3){\n System.out.print(\" \" + i);\n break;\n }else{\n x /= 10;\n if(x != 0) continue;\n else break;\n }\n }\n\n }",
"x = i",
"x",
"i",
"if(x % 3 == 0){\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;",
"while(true){\n if(x % 10 == 3){\n System.out.print(\" \" + i);\n break;\n }else{\n x /= 10;\n if(x != 0) continue;\n else break;\n }\n }",
"true",
"{\n if(x % 10 == 3){\n System.out.print(\" \" + i);\n break;\n }else{\n x /= 10;\n if(x != 0) continue;\n else break;\n }\n }",
"if(x % 10 == 3){\n System.out.print(\" \" + i);\n break;\n }else{\n x /= 10;\n if(x != 0) continue;\n else 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;",
"{\n x /= 10;\n if(x != 0) continue;\n else break;\n }",
"x /= 10",
"x",
"10",
"if(x != 0) continue;\n else break;",
"x != 0",
"x",
"0",
"continue;",
"break;",
"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){
int i = 1;
int x;
Scanner sc = new Scanner(System.in);
int n = sc.nextInt();
while(++i <= n){
x = i;
if(x % 3 == 0){
System.out.print(" " + i);
continue;
}
while(true){
if(x % 10 == 3){
System.out.print(" " + i);
break;
}else{
x /= 10;
if(x != 0) continue;
else break;
}
}
}
System.out.print("\n");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
4,
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,
3,
0,
13,
17,
4,
18,
18,
13,
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
],
[
6,
17
],
[
17,
18
],
[
86,
19
],
[
19,
20
],
[
19,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
24,
25
],
[
24,
26
],
[
22,
27
],
[
27,
28
],
[
27,
29
],
[
22,
30
],
[
30,
31
],
[
31,
32
],
[
22,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
38,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
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
],
[
21,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
19,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] | [
"import java.util.*;\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t Scanner scan = new Scanner(System.in);\n\t\t call(scan.nextInt());//callへ引数を渡す\n\t}//main\n\tpublic 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\t//xが3で割り切れる時に出力をする\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\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}//while\n\t\t\t}//if\n\t\t}//for\n\t\tSystem.out.println();\n\t}//call\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t Scanner scan = new Scanner(System.in);\n\t\t call(scan.nextInt());//callへ引数を渡す\n\t}//main\n\tpublic 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\t//xが3で割り切れる時に出力をする\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\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}//while\n\t\t\t}//if\n\t\t}//for\n\t\tSystem.out.println();\n\t}//call\n}",
"Main",
"public static void main(String[] args) {\n\t\t Scanner scan = new Scanner(System.in);\n\t\t call(scan.nextInt());//callへ引数を渡す\n\t}//main",
"main",
"{\n\t\t Scanner scan = new Scanner(System.in);\n\t\t call(scan.nextInt());//callへ引数を渡す\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"call(scan.nextInt())",
"call",
"scan.nextInt()",
"scan.nextInt",
"scan",
"String[] args",
"args",
"public 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\t//xが3で割り切れる時に出力をする\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\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}//while\n\t\t\t}//if\n\t\t}//for\n\t\tSystem.out.println();\n\t}//call",
"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\t//xが3で割り切れる時に出力をする\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\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}//while\n\t\t\t}//if\n\t\t}//for\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\t//xが3で割り切れる時に出力をする\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\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}//while\n\t\t\t}//if\n\t\t}//for",
"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\t//xが3で割り切れる時に出力をする\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\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}//while\n\t\t\t}//if\n\t\t}//for",
"{\n\t\t\tint x = i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\t//xが3で割り切れる時に出力をする\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\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}//while\n\t\t\t}//if\n\t\t}",
"int x = i;",
"x",
"i",
"if(x % 3 == 0){\n\t\t\t\t//xが3で割り切れる時に出力をする\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\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}//while\n\t\t\t}//if",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\t//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\twhile(x != 0){\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}//while\n\t\t\t}",
"while(x != 0){\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}//while",
"x != 0",
"x",
"0",
"{\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}",
"if(x % 10 == 3){\n\t\t\t\t\t\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\t//x/10の余りが3だった時、出力しbreakする\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\tpublic static void main(String[] args) {\n\t\t Scanner scan = new Scanner(System.in);\n\t\t call(scan.nextInt());//callへ引数を渡す\n\t}//main\n\tpublic 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\t//xが3で割り切れる時に出力をする\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\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}//while\n\t\t\t}//if\n\t\t}//for\n\t\tSystem.out.println();\n\t}//call\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t Scanner scan = new Scanner(System.in);\n\t\t call(scan.nextInt());//callへ引数を渡す\n\t}//main\n\tpublic 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\t//xが3で割り切れる時に出力をする\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\t//x/10の余りが3だった時、出力しbreakする\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}//if\n\t\t\t\t\tx /= 10;\n\t\t\t\t}//while\n\t\t\t}//if\n\t\t}//for\n\t\tSystem.out.println();\n\t}//call\n}",
"Main"
] | import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
call(scan.nextInt());//callへ引数を渡す
}//main
public static void call(int n){
for(int i = 1; i <= n; i++){
int x = i;
if(x % 3 == 0){
//xが3で割り切れる時に出力をする
System.out.print(" " + i);
}else{
while(x != 0){
if(x % 10 == 3){
//x/10の余りが3だった時、出力しbreakする
System.out.print(" " + i);
break;
}//if
x /= 10;
}//while
}//if
}//for
System.out.println();
}//call
} |
[
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,
30,
41,
13,
4,
18,
13,
13,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
13,
17,
30,
0,
13,
17,
14,
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
],
[
106,
5
],
[
106,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
49,
51
],
[
51,
52
],
[
52,
53
],
[
51,
54
],
[
48,
55
],
[
55,
56
],
[
55,
57
],
[
48,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
58,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
58,
68
],
[
68,
69
],
[
69,
70
],
[
58,
71
],
[
72,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
72,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
84,
85
],
[
84,
86
],
[
48,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
8,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
102
],
[
6,
103
],
[
103,
104
],
[
0,
105
],
[
105,
106
],
[
105,
107
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.close();\n\t\t\n\t\tfor(int i = 3; i <= n; i++){\n\t\t\t\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\t//String??????????????????1????????\\??????char'3'????????????\n\t\t\t\tString strNum = String.valueOf(i);\n\t\t\t\t//???????????????boolean??§??????\n\t\t\t\tboolean isMatch = false;\n\t\t\t\tfor(int j = 0; j < strNum.length(); j++){\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isMatch){\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\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\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.close();\n\t\t\n\t\tfor(int i = 3; i <= n; i++){\n\t\t\t\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\t//String??????????????????1????????\\??????char'3'????????????\n\t\t\t\tString strNum = String.valueOf(i);\n\t\t\t\t//???????????????boolean??§??????\n\t\t\t\tboolean isMatch = false;\n\t\t\t\tfor(int j = 0; j < strNum.length(); j++){\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isMatch){\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\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\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.close();\n\t\t\n\t\tfor(int i = 3; i <= n; i++){\n\t\t\t\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\t//String??????????????????1????????\\??????char'3'????????????\n\t\t\t\tString strNum = String.valueOf(i);\n\t\t\t\t//???????????????boolean??§??????\n\t\t\t\tboolean isMatch = false;\n\t\t\t\tfor(int j = 0; j < strNum.length(); j++){\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isMatch){\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\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\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.close();\n\t\t\n\t\tfor(int i = 3; i <= n; i++){\n\t\t\t\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\t//String??????????????????1????????\\??????char'3'????????????\n\t\t\t\tString strNum = String.valueOf(i);\n\t\t\t\t//???????????????boolean??§??????\n\t\t\t\tboolean isMatch = false;\n\t\t\t\tfor(int j = 0; j < strNum.length(); j++){\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isMatch){\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\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 scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.close()",
"scan.close",
"scan",
"for(int i = 3; i <= n; i++){\n\t\t\t\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\t//String??????????????????1????????\\??????char'3'????????????\n\t\t\t\tString strNum = String.valueOf(i);\n\t\t\t\t//???????????????boolean??§??????\n\t\t\t\tboolean isMatch = false;\n\t\t\t\tfor(int j = 0; j < strNum.length(); j++){\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isMatch){\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\t\t\t\t\t\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\t\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\t//String??????????????????1????????\\??????char'3'????????????\n\t\t\t\tString strNum = String.valueOf(i);\n\t\t\t\t//???????????????boolean??§??????\n\t\t\t\tboolean isMatch = false;\n\t\t\t\tfor(int j = 0; j < strNum.length(); j++){\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isMatch){\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\t\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\t//String??????????????????1????????\\??????char'3'????????????\n\t\t\t\tString strNum = String.valueOf(i);\n\t\t\t\t//???????????????boolean??§??????\n\t\t\t\tboolean isMatch = false;\n\t\t\t\tfor(int j = 0; j < strNum.length(); j++){\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isMatch){\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"if(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\t//String??????????????????1????????\\??????char'3'????????????\n\t\t\t\tString strNum = String.valueOf(i);\n\t\t\t\t//???????????????boolean??§??????\n\t\t\t\tboolean isMatch = false;\n\t\t\t\tfor(int j = 0; j < strNum.length(); j++){\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isMatch){\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\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.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\t//String??????????????????1????????\\??????char'3'????????????\n\t\t\t\tString strNum = String.valueOf(i);\n\t\t\t\t//???????????????boolean??§??????\n\t\t\t\tboolean isMatch = false;\n\t\t\t\tfor(int j = 0; j < strNum.length(); j++){\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isMatch){\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}",
"String strNum = String.valueOf(i);",
"strNum",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"boolean isMatch = false;",
"isMatch",
"false",
"for(int j = 0; j < strNum.length(); j++){\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}",
"int j = 0;",
"int j = 0;",
"j",
"0",
"j < strNum.length()",
"j",
"strNum.length()",
"strNum.length",
"strNum",
"j++",
"j++",
"j",
"{\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}",
"{\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}",
"char x = strNum.charAt(j);",
"x",
"strNum.charAt(j)",
"strNum.charAt",
"strNum",
"j",
"if(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}",
"x == '3'",
"x",
"'3'",
"{\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}",
"isMatch = true",
"isMatch",
"true",
"if(isMatch){\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\t\t\t\t\t\n\t\t\t\t}",
"isMatch",
"{\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\t\t\t\t\t\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\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.close();\n\t\t\n\t\tfor(int i = 3; i <= n; i++){\n\t\t\t\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\t//String??????????????????1????????\\??????char'3'????????????\n\t\t\t\tString strNum = String.valueOf(i);\n\t\t\t\t//???????????????boolean??§??????\n\t\t\t\tboolean isMatch = false;\n\t\t\t\tfor(int j = 0; j < strNum.length(); j++){\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isMatch){\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\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\t\t// TODO ?????????????????????????????????????????????\n\t\t\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.close();\n\t\t\n\t\tfor(int i = 3; i <= n; i++){\n\t\t\t\n\t\t\tif(i % 3 == 0){\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else{\n\t\t\t\t//String??????????????????1????????\\??????char'3'????????????\n\t\t\t\tString strNum = String.valueOf(i);\n\t\t\t\t//???????????????boolean??§??????\n\t\t\t\tboolean isMatch = false;\n\t\t\t\tfor(int j = 0; j < strNum.length(); j++){\n\t\t\t\t\t//for?????§??¨?????????????????????boolean??§??????\t\t\t\t\t\n\t\t\t\t\tchar x = strNum.charAt(j);\n\t\t\t\t\tif(x == '3'){\n\t\t\t\t\t\tisMatch = true;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t\tif(isMatch){\n\t\t\t\t\t//ture?????´???????????????????????§??¨?????????\n\t\t\t\t\tSystem.out.print(\" \" + i);\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) {
// TODO ?????????????????????????????????????????????
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
scan.close();
for(int i = 3; i <= n; i++){
if(i % 3 == 0){
System.out.print(" " + i);
}else{
//String??????????????????1????????\??????char'3'????????????
String strNum = String.valueOf(i);
//???????????????boolean??§??????
boolean isMatch = false;
for(int j = 0; j < strNum.length(); j++){
//for?????§??¨?????????????????????boolean??§??????
char x = strNum.charAt(j);
if(x == '3'){
isMatch = true;
}
}
if(isMatch){
//ture?????´???????????????????????§??¨?????????
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,
2,
17,
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,
4,
18,
18,
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
],
[
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
],
[
46,
48
],
[
45,
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
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
60,
69
],
[
53,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"import java.util.*;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n int x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.println();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n int x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\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\n for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n int x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.println();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n int x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\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",
"for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n int x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 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 System.out.print(\" \" + i);\n } else {\n int x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n }\n }\n }",
"{\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n int x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n }\n }\n }",
"if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n int x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n }\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n System.out.print(\" \" + i);\n }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n int x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n }\n }",
"int x = i;",
"x",
"i",
"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 public static void main(String[] args) {\n Scanner scan = new Scanner(System.in);\n int n = scan.nextInt();\n\n for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n int x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\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\n for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n int x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.println();\n }\n}",
"Main"
] | import java.util.*;
public 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) {
System.out.print(" " + i);
} else {
int x = i;
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,
41,
13,
13,
11,
1,
0,
13,
13,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
0,
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,
9,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
112,
5
],
[
112,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
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
],
[
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
],
[
71,
73
],
[
35,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
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
],
[
85,
94
],
[
79,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
8,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
8,
106
],
[
106,
107
],
[
107,
108
],
[
6,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.util.Scanner;\npublic class Main{\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint i = 1;\n\t\tint x = i;\n\t\t\n\t\tfor(x=i;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\tif(x%10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tx /= 10;\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;\n\t\t\t\t}else {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t\tsc.close();\n\t}\n\t\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint i = 1;\n\t\tint x = i;\n\t\t\n\t\tfor(x=i;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\tif(x%10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tx /= 10;\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;\n\t\t\t\t}else {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t\tsc.close();\n\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\n\t\tint i = 1;\n\t\tint x = i;\n\t\t\n\t\tfor(x=i;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\tif(x%10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tx /= 10;\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;\n\t\t\t\t}else {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t\tsc.close();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint i = 1;\n\t\tint x = i;\n\t\t\n\t\tfor(x=i;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\tif(x%10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tx /= 10;\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;\n\t\t\t\t}else {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\"\\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",
"int i = 1;",
"i",
"1",
"int x = i;",
"x",
"i",
"for(x=i;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\tif(x%10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tx /= 10;\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;\n\t\t\t\t}else {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}",
"x=i;",
"x=i",
"x",
"i",
"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\tif(x%10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tx /= 10;\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;\n\t\t\t\t}else {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\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\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tif(x%10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tx /= 10;\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;\n\t\t\t\t}else {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\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\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;",
"if(x%10 == 3){\n\t\t\t\tSystem.out.print(\" \"+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(\" \"+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;",
"x /= 10",
"x",
"10",
"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;\n\t\t\t\t}else {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\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;\n\t\t\t\t}else {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\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\tbreak;\n\t\t\t\t}else {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\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;",
"{\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"x /= 10",
"x",
"10",
"continue;",
"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\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint i = 1;\n\t\tint x = i;\n\t\t\n\t\tfor(x=i;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\tif(x%10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tx /= 10;\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;\n\t\t\t\t}else {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t\tsc.close();\n\t}\n\t\n\n}",
"public class Main{\n\t\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\n\t\tint i = 1;\n\t\tint x = i;\n\t\t\n\t\tfor(x=i;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\tif(x%10 == 3){\n\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\tx /= 10;\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;\n\t\t\t\t}else {\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\t\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t\tsc.close();\n\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();
int i = 1;
int x = i;
for(x=i;i<=n;i++){
x = i;
if(x%3 == 0){
System.out.print(" "+i);
continue;
}
if(x%10 == 3){
System.out.print(" "+i);
continue;
}
x /= 10;
while(x != 0){
if(x%10 == 3){
System.out.print(" "+i);
break;
}else {
x /= 10;
continue;
}
}
}
System.out.printf("\n");
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,
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,
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,
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
],
[
93,
14
],
[
93,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
17,
24
],
[
24,
25
],
[
24,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
29,
34
],
[
34,
35
],
[
34,
36
],
[
29,
37
],
[
37,
38
],
[
38,
39
],
[
29,
40
],
[
41,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
45,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
51,
56
],
[
56,
57
],
[
56,
58
],
[
45,
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
],
[
64,
81
],
[
81,
82
],
[
81,
83
],
[
17,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
15,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] | [
"import java.util.*;\nimport java.io.*;\nimport java.lang.*;\nimport java.math.*;\npublic class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=stdIn.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\telse{\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\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\t\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"import java.lang.*;",
"lang.*",
"java",
"import java.math.*;",
"math.*",
"java",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=stdIn.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\telse{\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\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\t\n}",
"Main",
"public static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=stdIn.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\telse{\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\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"main",
"{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=stdIn.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\telse{\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\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"Scanner stdIn=new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"BufferedReader br=new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n=stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"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\telse{\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\tx/=10;\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(\" \"+i);\n\t\t\telse{\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\tx/=10;\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(\" \"+i);\n\t\t\telse{\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\tx/=10;\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(\" \"+i);\n\t\t\telse{\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\tx/=10;\n\t\t\t\t}\n\t\t\t}",
"x%3==0",
"x%3",
"x",
"3",
"0",
"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\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\tx/=10;\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\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\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",
"\"\"",
"String[] args",
"args",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=stdIn.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\telse{\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\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\t\n}",
"public class Main{\n\tpublic static void main(String[] args) throws IOException{\n\t\tScanner stdIn=new Scanner(System.in);\n\t\tBufferedReader br=new BufferedReader(new InputStreamReader(System.in));\n\t\tint n=stdIn.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\telse{\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\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\t\n}",
"Main"
] | import java.util.*;
import java.io.*;
import java.lang.*;
import java.math.*;
public class Main{
public static void main(String[] args) throws IOException{
Scanner stdIn=new Scanner(System.in);
BufferedReader br=new BufferedReader(new InputStreamReader(System.in));
int n=stdIn.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/=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,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
30,
42,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
3,
0,
13,
17,
14,
2,
13,
17,
3,
14,
2,
40,
13,
13,
3,
4,
18,
18,
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
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
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
],
[
33,
39
],
[
26,
40
],
[
40,
41
],
[
41,
42
],
[
41,
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
],
[
51,
57
],
[
50,
58
],
[
43,
59
],
[
59,
60
],
[
59,
61
],
[
43,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
62,
66
],
[
22,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
67,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
6,
78
],
[
78,
79
],
[
0,
80
],
[
80,
81
],
[
80,
82
]
] | [
"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 i = 1;\n\t\twhile(true){\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}else{\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif(x==0) break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(++i > n) break;\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 n = sc.nextInt();\n\t\tint i = 1;\n\t\twhile(true){\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}else{\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif(x==0) break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(++i > n) break;\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 i = 1;\n\t\twhile(true){\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}else{\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif(x==0) break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(++i > n) break;\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 i = 1;\n\t\twhile(true){\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}else{\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif(x==0) break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(++i > n) break;\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 = 1;",
"i",
"1",
"while(true){\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}else{\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif(x==0) break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(++i > n) break;\n\t\t}",
"true",
"{\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}else{\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif(x==0) break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(++i > n) break;\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}else{\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif(x==0) break;\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",
"{\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif(x==0) break;\n\t\t\t\t}\n\t\t\t}",
"while(true){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif(x==0) break;\n\t\t\t\t}",
"true",
"{\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif(x==0) break;\n\t\t\t\t}",
"if(x%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}",
"x%10==3",
"x%10",
"x",
"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;",
"x /= 10",
"x",
"10",
"if(x==0) break;",
"x==0",
"x",
"0",
"break;",
"if(++i > n) break;",
"++i > n",
"++i",
"i",
"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\tint n = sc.nextInt();\n\t\tint i = 1;\n\t\twhile(true){\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}else{\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif(x==0) break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(++i > n) break;\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 i = 1;\n\t\twhile(true){\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}else{\n\t\t\t\t\n\t\t\t\twhile(true){\n\t\t\t\t\tif(x%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}\n\t\t\t\t\tx /= 10;\n\t\t\t\t\tif(x==0) break;\n\t\t\t\t}\n\t\t\t}\n\t\t\tif(++i > n) break;\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 i = 1;
while(true){
int x = i;
if(x%3==0){
System.out.printf(" %d",i);
}else{
while(true){
if(x%10==3){
System.out.printf(" %d",i);
break;
}
x /= 10;
if(x==0) break;
}
}
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,
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,
30,
41,
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,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
25,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
20,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
35,
37
],
[
34,
38
],
[
33,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
43,
44
],
[
43,
45
],
[
33,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
46,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
55,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] | [
"import java.util.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\tStringBuilder stc_out = new StringBuilder();\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tif(i%3==0){ \n\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t} else {\n\t\t\t\tint num=i;\n\t\t\t\t\n\t\t\t\twhile(num!=0){\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}//while\n\t\t\t}//if\t\n\t\t}//for\n\t\tSystem.out.println(stc_out);\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\tStringBuilder stc_out = new StringBuilder();\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tif(i%3==0){ \n\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t} else {\n\t\t\t\tint num=i;\n\t\t\t\t\n\t\t\t\twhile(num!=0){\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}//while\n\t\t\t}//if\t\n\t\t}//for\n\t\tSystem.out.println(stc_out);\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\tStringBuilder stc_out = new StringBuilder();\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tif(i%3==0){ \n\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t} else {\n\t\t\t\tint num=i;\n\t\t\t\t\n\t\t\t\twhile(num!=0){\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}//while\n\t\t\t}//if\t\n\t\t}//for\n\t\tSystem.out.println(stc_out);\n\t}",
"main",
"{\n\t\tScanner sc=new Scanner(System.in);\n\t\tint n=sc.nextInt();\n\t\tStringBuilder stc_out = new StringBuilder();\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tif(i%3==0){ \n\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t} else {\n\t\t\t\tint num=i;\n\t\t\t\t\n\t\t\t\twhile(num!=0){\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}//while\n\t\t\t}//if\t\n\t\t}//for\n\t\tSystem.out.println(stc_out);\n\t}",
"Scanner sc=new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n=sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"StringBuilder stc_out = new StringBuilder();",
"stc_out",
"new StringBuilder()",
"for(int i=1;i<=n;i++){\n\t\t\tif(i%3==0){ \n\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t} else {\n\t\t\t\tint num=i;\n\t\t\t\t\n\t\t\t\twhile(num!=0){\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}//while\n\t\t\t}//if\t\n\t\t}//for",
"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\tstc_out.append(\" \"+i);\n\t\t\t} else {\n\t\t\t\tint num=i;\n\t\t\t\t\n\t\t\t\twhile(num!=0){\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}//while\n\t\t\t}//if\t\n\t\t}//for",
"{\n\t\t\tif(i%3==0){ \n\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t} else {\n\t\t\t\tint num=i;\n\t\t\t\t\n\t\t\t\twhile(num!=0){\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}//while\n\t\t\t}//if\t\n\t\t}",
"if(i%3==0){ \n\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t} else {\n\t\t\t\tint num=i;\n\t\t\t\t\n\t\t\t\twhile(num!=0){\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}//while\n\t\t\t}//if\t",
"i%3==0",
"i%3",
"i",
"3",
"0",
"{ \n\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t}",
"stc_out.append(\" \"+i)",
"stc_out.append",
"stc_out",
"\" \"+i",
"\" \"",
"i",
"{\n\t\t\t\tint num=i;\n\t\t\t\t\n\t\t\t\twhile(num!=0){\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}//while\n\t\t\t}",
"int num=i;",
"num",
"i",
"while(num!=0){\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}//while",
"num!=0",
"num",
"0",
"{\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}",
"if(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if",
"num%10==3",
"num%10",
"num",
"10",
"3",
"{\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"stc_out.append(\" \"+i)",
"stc_out.append",
"stc_out",
"\" \"+i",
"\" \"",
"i",
"break;",
"{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}",
"num=num/10",
"num",
"num/10",
"num",
"10",
"System.out.println(stc_out)",
"System.out.println",
"System.out",
"System",
"System.out",
"stc_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\tStringBuilder stc_out = new StringBuilder();\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tif(i%3==0){ \n\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t} else {\n\t\t\t\tint num=i;\n\t\t\t\t\n\t\t\t\twhile(num!=0){\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}//while\n\t\t\t}//if\t\n\t\t}//for\n\t\tSystem.out.println(stc_out);\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\tStringBuilder stc_out = new StringBuilder();\n\t\t\n\t\tfor(int i=1;i<=n;i++){\n\t\t\tif(i%3==0){ \n\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t} else {\n\t\t\t\tint num=i;\n\t\t\t\t\n\t\t\t\twhile(num!=0){\n\t\t\t\t\tif(num%10==3){\n\t\t\t\t\t\tstc_out.append(\" \"+i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tnum=num/10;\n\t\t\t\t\t}//if\n\t\t\t\t}//while\n\t\t\t}//if\t\n\t\t}//for\n\t\tSystem.out.println(stc_out);\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();
StringBuilder stc_out = new StringBuilder();
for(int i=1;i<=n;i++){
if(i%3==0){
stc_out.append(" "+i);
} else {
int num=i;
while(num!=0){
if(num%10==3){
stc_out.append(" "+i);
break;
}else{
num=num/10;
}//if
}//while
}//if
}//for
System.out.println(stc_out);
}
} |
[
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,
41,
13,
13,
42,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
14,
2,
13,
17,
30,
3,
0,
13,
17,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
85,
5
],
[
85,
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
],
[
46,
48
],
[
45,
49
],
[
49,
50
],
[
49,
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
],
[
52,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
51,
74
],
[
74,
75
],
[
74,
76
],
[
8,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
6,
82
],
[
82,
83
],
[
0,
84
],
[
84,
85
],
[
84,
86
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n\n int x = in.nextInt();\n for (int i = 3; i <= x; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n }\n else {\n int t = i;\n while (true) {\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\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 in = new Scanner(System.in);\n\n int x = in.nextInt();\n for (int i = 3; i <= x; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n }\n else {\n int t = i;\n while (true) {\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\n }\n }\n }\n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n\n int x = in.nextInt();\n for (int i = 3; i <= x; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n }\n else {\n int t = i;\n while (true) {\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\n }\n }\n }\n System.out.println();\n }",
"main",
"{\n Scanner in = new Scanner(System.in);\n\n int x = in.nextInt();\n for (int i = 3; i <= x; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n }\n else {\n int t = i;\n while (true) {\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\n }\n }\n }\n System.out.println();\n }",
"Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"int x = in.nextInt();",
"x",
"in.nextInt()",
"in.nextInt",
"in",
"for (int i = 3; i <= x; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n }\n else {\n int t = i;\n while (true) {\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\n }\n }\n }",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= x",
"i",
"x",
"i++",
"i++",
"i",
"{\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n }\n else {\n int t = i;\n while (true) {\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\n }\n }\n }",
"{\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n }\n else {\n int t = i;\n while (true) {\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\n }\n }\n }",
"if (i % 3 == 0) {\n System.out.print(\" \" + i);\n }\n else {\n int t = i;\n while (true) {\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\n }\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n System.out.print(\" \" + i);\n }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n int t = i;\n while (true) {\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\n }\n }",
"int t = i;",
"t",
"i",
"while (true) {\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\n }",
"true",
"{\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\n }",
"if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }",
"t % 10 == 3",
"t % 10",
"t",
"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;",
"if (t < 3) {\n break;\n }",
"t < 3",
"t",
"3",
"{\n break;\n }",
"break;",
"t /= 10",
"t",
"10",
"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 in = new Scanner(System.in);\n\n int x = in.nextInt();\n for (int i = 3; i <= x; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n }\n else {\n int t = i;\n while (true) {\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\n }\n }\n }\n System.out.println();\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner in = new Scanner(System.in);\n\n int x = in.nextInt();\n for (int i = 3; i <= x; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n }\n else {\n int t = i;\n while (true) {\n if (t % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n else if (t < 3) {\n break;\n }\n t /= 10;\n }\n }\n }\n System.out.println();\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner in = new Scanner(System.in);
int x = in.nextInt();
for (int i = 3; i <= x; i++) {
if (i % 3 == 0) {
System.out.print(" " + i);
}
else {
int t = i;
while (true) {
if (t % 10 == 3) {
System.out.print(" " + i);
break;
}
else if (t < 3) {
break;
}
t /= 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,
2,
13,
17,
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,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
84,
5
],
[
84,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
17,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
24,
26
],
[
17,
27
],
[
27,
28
],
[
28,
29
],
[
17,
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
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] | [
"import java.util.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+1;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\tbreak;\n\t\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\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\tfor(int i=1;i<n+1;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\tbreak;\n\t\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\t\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n =sc.nextInt();\n\t\tfor(int i=1;i<n+1;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\tbreak;\n\t\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t\t}\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 n =sc.nextInt();\n\t\tfor(int i=1;i<n+1;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\tbreak;\n\t\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t\t}\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+1;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\tbreak;\n\t\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<n+1",
"i",
"n+1",
"n",
"1",
"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\tbreak;\n\t\t\t\t\t}\n\t\t\t\tx/=10;\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(\" \"+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\tbreak;\n\t\t\t\t\t}\n\t\t\t\tx/=10;\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(\" \"+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\tbreak;\n\t\t\t\t\t}\n\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\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\tx/=10;\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\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\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",
"\"\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n =sc.nextInt();\n\t\tfor(int i=1;i<n+1;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\tbreak;\n\t\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\t\n}",
"public class Main {\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n =sc.nextInt();\n\t\tfor(int i=1;i<n+1;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\tbreak;\n\t\t\t\t\t}\n\t\t\t\tx/=10;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\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();
for(int i=1;i<n+1;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/=10;
}
}
}
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,
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,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
4,
18,
13,
13,
14,
4,
18,
13,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
110,
8
],
[
110,
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
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
11,
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
],
[
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
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
54,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
70,
71
],
[
71,
72
],
[
63,
73
],
[
73,
74
],
[
74,
75
],
[
63,
76
],
[
77,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
83,
84
],
[
84,
85
],
[
83,
86
],
[
77,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
88,
91
],
[
87,
92
],
[
92,
93
],
[
93,
94
],
[
94,
95
],
[
95,
96
],
[
95,
97
],
[
93,
98
],
[
98,
99
],
[
98,
100
],
[
92,
101
],
[
11,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
9,
107
],
[
107,
108
],
[
0,
109
],
[
109,
110
],
[
109,
111
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n public static void main(String[] args)throws Exception {\n \tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n int n = Integer.parseInt(br.readLine());\n for(int x = 1 ; x <= n; x++){\n \tif(x % 3 == 0){\n \t\tSystem.out.print(\" \" + x);\n \t}else {\n \t\tInteger m = new Integer(x);\n \t\tString k = m.toString();\n \t\tfor(int y = 0; y < k.length(); y++){\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println();\n }\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n public static void main(String[] args)throws Exception {\n \tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n int n = Integer.parseInt(br.readLine());\n for(int x = 1 ; x <= n; x++){\n \tif(x % 3 == 0){\n \t\tSystem.out.print(\" \" + x);\n \t}else {\n \t\tInteger m = new Integer(x);\n \t\tString k = m.toString();\n \t\tfor(int y = 0; y < k.length(); y++){\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args)throws Exception {\n \tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n int n = Integer.parseInt(br.readLine());\n for(int x = 1 ; x <= n; x++){\n \tif(x % 3 == 0){\n \t\tSystem.out.print(\" \" + x);\n \t}else {\n \t\tInteger m = new Integer(x);\n \t\tString k = m.toString();\n \t\tfor(int y = 0; y < k.length(); y++){\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println();\n }",
"main",
"{\n \tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n int n = Integer.parseInt(br.readLine());\n for(int x = 1 ; x <= n; x++){\n \tif(x % 3 == 0){\n \t\tSystem.out.print(\" \" + x);\n \t}else {\n \t\tInteger m = new Integer(x);\n \t\tString k = m.toString();\n \t\tfor(int y = 0; y < k.length(); y++){\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println();\n }",
"InputStreamReader isr = new InputStreamReader(System.in);",
"isr",
"new InputStreamReader(System.in)",
"BufferedReader br = new BufferedReader(isr);",
"br",
"new BufferedReader(isr)",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for(int x = 1 ; x <= n; x++){\n \tif(x % 3 == 0){\n \t\tSystem.out.print(\" \" + x);\n \t}else {\n \t\tInteger m = new Integer(x);\n \t\tString k = m.toString();\n \t\tfor(int y = 0; y < k.length(); y++){\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n }",
"int x = 1 ;",
"int x = 1 ;",
"x",
"1",
"x <= n",
"x",
"n",
"x++",
"x++",
"x",
"{\n \tif(x % 3 == 0){\n \t\tSystem.out.print(\" \" + x);\n \t}else {\n \t\tInteger m = new Integer(x);\n \t\tString k = m.toString();\n \t\tfor(int y = 0; y < k.length(); y++){\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n }",
"{\n \tif(x % 3 == 0){\n \t\tSystem.out.print(\" \" + x);\n \t}else {\n \t\tInteger m = new Integer(x);\n \t\tString k = m.toString();\n \t\tfor(int y = 0; y < k.length(); y++){\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n }",
"if(x % 3 == 0){\n \t\tSystem.out.print(\" \" + x);\n \t}else {\n \t\tInteger m = new Integer(x);\n \t\tString k = m.toString();\n \t\tfor(int y = 0; y < k.length(); y++){\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n \t\tSystem.out.print(\" \" + x);\n \t}",
"System.out.print(\" \" + x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + x",
"\" \"",
"x",
"{\n \t\tInteger m = new Integer(x);\n \t\tString k = m.toString();\n \t\tfor(int y = 0; y < k.length(); y++){\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}",
"Integer m = new Integer(x);",
"m",
"new Integer(x)",
"String k = m.toString();",
"k",
"m.toString()",
"m.toString",
"m",
"for(int y = 0; y < k.length(); y++){\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}",
"int y = 0;",
"int y = 0;",
"y",
"0",
"y < k.length()",
"y",
"k.length()",
"k.length",
"k",
"y++",
"y++",
"y",
"{\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}",
"{\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}",
"String str = String.valueOf(k.charAt(y));",
"str",
"String.valueOf(k.charAt(y))",
"String.valueOf",
"String",
"k.charAt(y)",
"k.charAt",
"k",
"y",
"if(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}",
"str.equals (\"3\")",
"str.equals",
"str",
"\"3\"",
"{\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}",
"System.out.print(\" \" + x)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + x",
"\" \"",
"x",
"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)throws Exception {\n \tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n int n = Integer.parseInt(br.readLine());\n for(int x = 1 ; x <= n; x++){\n \tif(x % 3 == 0){\n \t\tSystem.out.print(\" \" + x);\n \t}else {\n \t\tInteger m = new Integer(x);\n \t\tString k = m.toString();\n \t\tfor(int y = 0; y < k.length(); y++){\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println();\n }\n}",
"public class Main {\n public static void main(String[] args)throws Exception {\n \tInputStreamReader isr = new InputStreamReader(System.in);\n BufferedReader br = new BufferedReader(isr);\n\n int n = Integer.parseInt(br.readLine());\n for(int x = 1 ; x <= n; x++){\n \tif(x % 3 == 0){\n \t\tSystem.out.print(\" \" + x);\n \t}else {\n \t\tInteger m = new Integer(x);\n \t\tString k = m.toString();\n \t\tfor(int y = 0; y < k.length(); y++){\n \t\t\tString str = String.valueOf(k.charAt(y));\n \t\t\tif(str.equals (\"3\")){\n \t\t\t\tSystem.out.print(\" \" + x);\n \t\t\t\tbreak;\n \t\t\t}\n \t\t}\n \t}\n }\n System.out.println();\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args)throws Exception {
InputStreamReader isr = new InputStreamReader(System.in);
BufferedReader br = new BufferedReader(isr);
int n = Integer.parseInt(br.readLine());
for(int x = 1 ; x <= n; x++){
if(x % 3 == 0){
System.out.print(" " + x);
}else {
Integer m = new Integer(x);
String k = m.toString();
for(int y = 0; y < k.length(); y++){
String str = String.valueOf(k.charAt(y));
if(str.equals ("3")){
System.out.print(" " + x);
break;
}
}
}
}
System.out.println();
}
} |
[
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,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
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
],
[
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
],
[
35,
37
],
[
34,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
47,
48
],
[
47,
49
],
[
38,
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
],
[
63,
65
],
[
65,
66
],
[
65,
67
],
[
62,
68
],
[
55,
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\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint x;\n\t\tString str = \"\";\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\tstr += \" \" + x;\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\tstr += \" \" + 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(str);\n\t}\n\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\tint n = scan.nextInt();\n\t\tint x;\n\t\tString str = \"\";\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\tstr += \" \" + x;\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\tstr += \" \" + 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(str);\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint x;\n\t\tString str = \"\";\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\tstr += \" \" + x;\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\tstr += \" \" + 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(str);\n\t}",
"main",
"{\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint x;\n\t\tString str = \"\";\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\tstr += \" \" + x;\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\tstr += \" \" + 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(str);\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int x;",
"x",
"String str = \"\";",
"str",
"\"\"",
"for (int i = 1; i <= n; i++) {\n\t\t\tx = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tstr += \" \" + x;\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\tstr += \" \" + 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 = 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\tstr += \" \" + x;\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\tstr += \" \" + 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\tx = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tstr += \" \" + x;\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\tstr += \" \" + 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}",
"x = i",
"x",
"i",
"if (x % 3 == 0) {\n\t\t\t\tstr += \" \" + x;\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\tstr += \" \" + 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}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tstr += \" \" + x;\n\t\t\t}",
"str += \" \" + x",
"str",
"\" \" + x",
"\" \"",
"x",
"{\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tstr += \" \" + 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}",
"while (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tstr += \" \" + 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\tstr += \" \" + 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\tstr += \" \" + 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\tstr += \" \" + i;\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"str += \" \" + i",
"str",
"\" \" + i",
"\" \"",
"i",
"break;",
"x /= 10",
"x",
"10",
"System.out.println(str)",
"System.out.println",
"System.out",
"System",
"System.out",
"str",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint x;\n\t\tString str = \"\";\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\tstr += \" \" + x;\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\tstr += \" \" + 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(str);\n\t}\n\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tint x;\n\t\tString str = \"\";\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\tstr += \" \" + x;\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\tstr += \" \" + 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(str);\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();
int x;
String str = "";
for (int i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0) {
str += " " + x;
} else {
while (x != 0) {
if (x % 10 == 3) {
str += " " + i;
break;
}
x /= 10;
}
}
}
System.out.println(str);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
30,
41,
13,
20,
41,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
2,
13,
17,
1,
40,
13,
30,
30,
41,
13,
13,
42,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
0,
13,
17,
14,
2,
13,
17,
3,
4,
18,
18,
13,
13,
3,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
116,
8
],
[
116,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
14,
15
],
[
14,
16
],
[
13,
17
],
[
17,
18
],
[
13,
19
],
[
19,
20
],
[
19,
21
],
[
13,
22
],
[
22,
23
],
[
22,
24
],
[
13,
25
],
[
25,
26
],
[
25,
27
],
[
13,
28
],
[
28,
29
],
[
28,
30
],
[
13,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
35,
36
],
[
36,
37
],
[
32,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
43,
44
],
[
42,
45
],
[
39,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
46,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
46,
56
],
[
56,
57
],
[
57,
58
],
[
46,
59
],
[
60,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
64,
65
],
[
64,
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
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
83,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
89,
98
],
[
66,
99
],
[
99,
100
],
[
99,
101
],
[
66,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
102,
106
],
[
39,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
39,
112
],
[
9,
113
],
[
113,
114
],
[
0,
115
],
[
115,
116
],
[
115,
117
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,s=0,sum=0;\n boolean end=false;\n while ((line = br.readLine()) != null) {\n \tn=Integer.parseInt(line);\n \tfor(int i=1;i<n+1;i++){\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}\n \tSystem.out.println();\n \tbreak;\n }\n }\n }\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 // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,s=0,sum=0;\n boolean end=false;\n while ((line = br.readLine()) != null) {\n \tn=Integer.parseInt(line);\n \tfor(int i=1;i<n+1;i++){\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}\n \tSystem.out.println();\n \tbreak;\n }\n }\n }\n\n}",
"Main",
"public static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,s=0,sum=0;\n boolean end=false;\n while ((line = br.readLine()) != null) {\n \tn=Integer.parseInt(line);\n \tfor(int i=1;i<n+1;i++){\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}\n \tSystem.out.println();\n \tbreak;\n }\n }\n }",
"main",
"{\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,s=0,sum=0;\n boolean end=false;\n while ((line = br.readLine()) != null) {\n \tn=Integer.parseInt(line);\n \tfor(int i=1;i<n+1;i++){\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}\n \tSystem.out.println();\n \tbreak;\n }\n }\n }",
"try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,s=0,sum=0;\n boolean end=false;\n while ((line = br.readLine()) != null) {\n \tn=Integer.parseInt(line);\n \tfor(int i=1;i<n+1;i++){\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}\n \tSystem.out.println();\n \tbreak;\n }\n }",
"{\n String line;\n int n=0,s=0,sum=0;\n boolean end=false;\n while ((line = br.readLine()) != null) {\n \tn=Integer.parseInt(line);\n \tfor(int i=1;i<n+1;i++){\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}\n \tSystem.out.println();\n \tbreak;\n }\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in))",
"new BufferedReader(new InputStreamReader(System.in))",
"String line;",
"line",
"int n=0",
"n",
"0",
"s=0",
"s",
"0",
"sum=0;",
"sum",
"0",
"boolean end=false;",
"end",
"false",
"while ((line = br.readLine()) != null) {\n \tn=Integer.parseInt(line);\n \tfor(int i=1;i<n+1;i++){\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}\n \tSystem.out.println();\n \tbreak;\n }",
"(line = br.readLine()) != null",
"(line = br.readLine())",
"line",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n \tn=Integer.parseInt(line);\n \tfor(int i=1;i<n+1;i++){\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}\n \tSystem.out.println();\n \tbreak;\n }",
"n=Integer.parseInt(line)",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"for(int i=1;i<n+1;i++){\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<n+1",
"i",
"n+1",
"n",
"1",
"i++",
"i++",
"i",
"{\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}",
"{\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}",
"int x=i;",
"x",
"i",
"while(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}",
"true",
"{\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}",
"if(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \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;",
"if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}",
"i%3==0",
"i%3",
"i",
"3",
"0",
"{\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"break;",
"x/=10",
"x",
"10",
"if(x==0)break;",
"x==0",
"x",
"0",
"break;",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"break;",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,s=0,sum=0;\n boolean end=false;\n while ((line = br.readLine()) != null) {\n \tn=Integer.parseInt(line);\n \tfor(int i=1;i<n+1;i++){\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}\n \tSystem.out.println();\n \tbreak;\n }\n }\n }\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws Exception {\n // TODO ?????????????????????????????????????????????\n \n try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {\n String line;\n int n=0,s=0,sum=0;\n boolean end=false;\n while ((line = br.readLine()) != null) {\n \tn=Integer.parseInt(line);\n \tfor(int i=1;i<n+1;i++){\n \t\tint x=i;\n \t\twhile(true){\n \t\t\tif(x%10==3){\n \t\t\t\tSystem.out.print(\" \"+i);\n \t\t\t\tbreak;\n \t\t\t}else if(i%3==0){\n \t\t\tSystem.out.print(\" \"+i);\n \t\t\tbreak;\n \t\t}\n \t\t\tx/=10;\n \t\t\tif(x==0)break;\n \t\t}\n \t}\n \tSystem.out.println();\n \tbreak;\n }\n }\n }\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws Exception {
// TODO ?????????????????????????????????????????????
try (BufferedReader br = new BufferedReader(new InputStreamReader(System.in))) {
String line;
int n=0,s=0,sum=0;
boolean end=false;
while ((line = br.readLine()) != null) {
n=Integer.parseInt(line);
for(int i=1;i<n+1;i++){
int x=i;
while(true){
if(x%10==3){
System.out.print(" "+i);
break;
}else if(i%3==0){
System.out.print(" "+i);
break;
}
x/=10;
if(x==0)break;
}
}
System.out.println();
break;
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
11,
1,
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,
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
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
22,
24
],
[
20,
25
],
[
25,
26
],
[
26,
27
],
[
20,
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
],
[
46,
48
],
[
45,
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
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
60,
69
],
[
53,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
6,
78
],
[
78,
79
]
] | [
"import java.util.Scanner;\n\n class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n\n int n =scan.nextInt();\n\n int i =1;\n\n for(;i<=n;i++){\n \n if(i%3==0){\n System.out.print(\" \"+i);\n } else {\n \n int j=i;\n\n while(j>0){\n\n if(j%10==3){\n System.out.print(\" \"+i);\n break;\n }\n\n j/=10;\n\n }\n }\n } \n System.out.println();\n }\n }\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n\n int n =scan.nextInt();\n\n int i =1;\n\n for(;i<=n;i++){\n \n if(i%3==0){\n System.out.print(\" \"+i);\n } else {\n \n int j=i;\n\n while(j>0){\n\n if(j%10==3){\n System.out.print(\" \"+i);\n break;\n }\n\n j/=10;\n\n }\n }\n } \n System.out.println();\n }\n }",
"Main",
"public static void main(String args[]){\n Scanner scan = new Scanner(System.in);\n\n int n =scan.nextInt();\n\n int i =1;\n\n for(;i<=n;i++){\n \n if(i%3==0){\n System.out.print(\" \"+i);\n } else {\n \n int j=i;\n\n while(j>0){\n\n if(j%10==3){\n System.out.print(\" \"+i);\n break;\n }\n\n j/=10;\n\n }\n }\n } \n System.out.println();\n }",
"main",
"{\n Scanner scan = new Scanner(System.in);\n\n int n =scan.nextInt();\n\n int i =1;\n\n for(;i<=n;i++){\n \n if(i%3==0){\n System.out.print(\" \"+i);\n } else {\n \n int j=i;\n\n while(j>0){\n\n if(j%10==3){\n System.out.print(\" \"+i);\n break;\n }\n\n j/=10;\n\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 =1;",
"i",
"1",
"for(;i<=n;i++){\n \n if(i%3==0){\n System.out.print(\" \"+i);\n } else {\n \n int j=i;\n\n while(j>0){\n\n if(j%10==3){\n System.out.print(\" \"+i);\n break;\n }\n\n j/=10;\n\n }\n }\n }",
";",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n \n if(i%3==0){\n System.out.print(\" \"+i);\n } else {\n \n int j=i;\n\n while(j>0){\n\n if(j%10==3){\n System.out.print(\" \"+i);\n break;\n }\n\n j/=10;\n\n }\n }\n }",
"{\n \n if(i%3==0){\n System.out.print(\" \"+i);\n } else {\n \n int j=i;\n\n while(j>0){\n\n if(j%10==3){\n System.out.print(\" \"+i);\n break;\n }\n\n j/=10;\n\n }\n }\n }",
"if(i%3==0){\n System.out.print(\" \"+i);\n } else {\n \n int j=i;\n\n while(j>0){\n\n if(j%10==3){\n System.out.print(\" \"+i);\n break;\n }\n\n j/=10;\n\n }\n }",
"i%3==0",
"i%3",
"i",
"3",
"0",
"{\n System.out.print(\" \"+i);\n }",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"{\n \n int j=i;\n\n while(j>0){\n\n if(j%10==3){\n System.out.print(\" \"+i);\n break;\n }\n\n j/=10;\n\n }\n }",
"int j=i;",
"j",
"i",
"while(j>0){\n\n if(j%10==3){\n System.out.print(\" \"+i);\n break;\n }\n\n j/=10;\n\n }",
"j>0",
"j",
"0",
"{\n\n if(j%10==3){\n System.out.print(\" \"+i);\n break;\n }\n\n j/=10;\n\n }",
"if(j%10==3){\n System.out.print(\" \"+i);\n break;\n }",
"j%10==3",
"j%10",
"j",
"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;",
"j/=10",
"j",
"10",
"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 scan = new Scanner(System.in);
int n =scan.nextInt();
int i =1;
for(;i<=n;i++){
if(i%3==0){
System.out.print(" "+i);
} else {
int j=i;
while(j>0){
if(j%10==3){
System.out.print(" "+i);
break;
}
j/=10;
}
}
}
System.out.println();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
17,
42,
2,
13,
13,
30,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
2,
13,
17,
17,
2,
2,
2,
13,
17,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
40,
13,
23,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
13,
13,
4,
18,
18,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
137,
5
],
[
137,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
12,
16
],
[
16,
17
],
[
17,
18
],
[
18,
19
],
[
19,
20
],
[
19,
21
],
[
18,
22
],
[
17,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
25,
27
],
[
23,
28
],
[
28,
29
],
[
28,
30
],
[
17,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
37,
42
],
[
42,
43
],
[
42,
44
],
[
31,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
54,
56
],
[
53,
57
],
[
52,
58
],
[
45,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
45,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
68,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
67,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
86,
87
],
[
86,
88
],
[
67,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
90,
96
],
[
96,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
97,
101
],
[
96,
102
],
[
89,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
108,
109
],
[
108,
110
],
[
16,
111
],
[
111,
112
],
[
6,
113
],
[
113,
114
],
[
137,
115
],
[
115,
116
],
[
115,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
121,
123
],
[
123,
124
],
[
124,
125
],
[
117,
126
],
[
126,
127
],
[
126,
128
],
[
117,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
131,
133
],
[
115,
134
],
[
134,
135
],
[
0,
136
],
[
136,
137
],
[
136,
138
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\tstatic void call(int n) {\n\t\tint i = 1;\n\t\twhile (i <= n) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 10 != 0 && (i / 10) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 100 != 0 && (i / 100) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\ti++;\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint input = sc.nextInt();\n\t\tcall(input);\n\t\tSystem.out.println();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tstatic void call(int n) {\n\t\tint i = 1;\n\t\twhile (i <= n) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 10 != 0 && (i / 10) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 100 != 0 && (i / 100) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\ti++;\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint input = sc.nextInt();\n\t\tcall(input);\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"static void call(int n) {\n\t\tint i = 1;\n\t\twhile (i <= n) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 10 != 0 && (i / 10) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 100 != 0 && (i / 100) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\ti++;\n\t\t}\n\t}",
"call",
"{\n\t\tint i = 1;\n\t\twhile (i <= n) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 10 != 0 && (i / 10) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 100 != 0 && (i / 100) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\ti++;\n\t\t}\n\t}",
"int i = 1;",
"i",
"1",
"while (i <= n) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 10 != 0 && (i / 10) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 100 != 0 && (i / 100) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\ti++;\n\t\t}",
"i <= n",
"i",
"n",
"{\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 10 != 0 && (i / 10) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 100 != 0 && (i / 100) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\ti++;\n\t\t}",
"if (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 10 != 0 && (i / 10) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 100 != 0 && (i / 100) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"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\telse if (i / 10 != 0 && (i / 10) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 100 != 0 && (i / 100) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"if (i / 10 != 0 && (i / 10) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 100 != 0 && (i / 100) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);",
"i / 10 != 0 && (i / 10) % 10 == 3",
"i / 10 != 0",
"i / 10",
"i",
"10",
"0",
"(i / 10) % 10 == 3",
"(i / 10) % 10",
"(i / 10)",
"i",
"10",
"10",
"3",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"if (i / 100 != 0 && (i / 100) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);",
"i / 100 != 0 && (i / 100) % 10 == 3",
"i / 100 != 0",
"i / 100",
"i",
"100",
"0",
"(i / 100) % 10 == 3",
"(i / 100) % 10",
"(i / 100)",
"i",
"100",
"10",
"3",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);",
"i / 1000 != 0 && (i / 1000) % 10 == 3",
"i / 1000 != 0",
"i / 1000",
"i",
"1000",
"0",
"(i / 1000) % 10 == 3",
"(i / 1000) % 10",
"(i / 1000)",
"i",
"1000",
"10",
"3",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"i++",
"i",
"int n",
"n",
"public static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint input = sc.nextInt();\n\t\tcall(input);\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint input = sc.nextInt();\n\t\tcall(input);\n\t\tSystem.out.println();\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int input = sc.nextInt();",
"input",
"sc.nextInt()",
"sc.nextInt",
"sc",
"call(input)",
"call",
"input",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\tstatic void call(int n) {\n\t\tint i = 1;\n\t\twhile (i <= n) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 10 != 0 && (i / 10) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 100 != 0 && (i / 100) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\ti++;\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint input = sc.nextInt();\n\t\tcall(input);\n\t\tSystem.out.println();\n\t}\n}",
"public class Main {\n\tstatic void call(int n) {\n\t\tint i = 1;\n\t\twhile (i <= n) {\n\t\t\tif (i % 3 == 0)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 10 != 0 && (i / 10) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 100 != 0 && (i / 100) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\telse if (i / 1000 != 0 && (i / 1000) % 10 == 3)\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\ti++;\n\t\t}\n\t}\n\n\tpublic static void main(String[] args) {\n\t\tScanner sc = new Scanner(System.in);\n\t\tint input = sc.nextInt();\n\t\tcall(input);\n\t\tSystem.out.println();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
static void call(int n) {
int i = 1;
while (i <= n) {
if (i % 3 == 0)
System.out.print(" " + i);
else if (i % 10 == 3)
System.out.print(" " + i);
else if (i / 10 != 0 && (i / 10) % 10 == 3)
System.out.print(" " + i);
else if (i / 100 != 0 && (i / 100) % 10 == 3)
System.out.print(" " + i);
else if (i / 1000 != 0 && (i / 1000) % 10 == 3)
System.out.print(" " + i);
i++;
}
}
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int input = sc.nextInt();
call(input);
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
0,
13,
4,
18,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
0,
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,
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
],
[
8,
14
],
[
14,
15
],
[
8,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
32,
34
],
[
30,
35
],
[
35,
36
],
[
35,
37
],
[
30,
38
],
[
38,
39
],
[
39,
40
],
[
30,
41
],
[
42,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
43,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
50,
55
],
[
55,
56
],
[
55,
57
],
[
43,
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
],
[
76,
77
],
[
76,
78
],
[
74,
79
],
[
79,
80
],
[
79,
81
],
[
73,
82
],
[
66,
83
],
[
83,
84
],
[
83,
85
],
[
29,
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;\n\npublic class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n, x;\n n = sc.nextInt();\n if (n >= 3 && n <= 10000) {\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.print(\"\\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, x;\n n = sc.nextInt();\n if (n >= 3 && n <= 10000) {\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.print(\"\\n\");\n }\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n, x;\n n = sc.nextInt();\n if (n >= 3 && n <= 10000) {\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.print(\"\\n\");\n }\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n, x;\n n = sc.nextInt();\n if (n >= 3 && n <= 10000) {\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.print(\"\\n\");\n }\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n",
"n",
"x;",
"x",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"if (n >= 3 && n <= 10000) {\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.print(\"\\n\");\n }",
"n >= 3 && n <= 10000",
"n >= 3",
"n",
"3",
"n <= 10000",
"n",
"10000",
"{\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.print(\"\\n\");\n }",
"for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n }",
"{\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n }",
"if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n System.out.print(\" \" + i);\n }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n x = i;\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",
"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.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, x;\n n = sc.nextInt();\n if (n >= 3 && n <= 10000) {\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.print(\"\\n\");\n }\n }\n}",
"public class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n, x;\n n = sc.nextInt();\n if (n >= 3 && n <= 10000) {\n for (int i = 1; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n x = i;\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \"+ i);\n break;\n }\n x /= 10;\n }\n }\n }\n System.out.print(\"\\n\");\n }\n }\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n, x;
n = sc.nextInt();
if (n >= 3 && n <= 10000) {
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
System.out.print(" " + i);
} else {
x = i;
while (x != 0) {
if (x % 10 == 3) {
System.out.print(" "+ i);
break;
}
x /= 10;
}
}
}
System.out.print("\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,
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,
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
],
[
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
],
[
31,
32
],
[
31,
33
],
[
30,
34
],
[
29,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
36,
41
],
[
36,
42
],
[
35,
43
],
[
25,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
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
],
[
56,
62
],
[
55,
63
],
[
48,
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
]
] | [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\t\tdo{\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 > 0);\n\t\t}while( ++i <= n );\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint i = 1;\n\t\tdo{\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 > 0);\n\t\t}while( ++i <= n );\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 i = 1;\n\t\tdo{\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 > 0);\n\t\t}while( ++i <= n );\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 i = 1;\n\t\tdo{\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 > 0);\n\t\t}while( ++i <= n );\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 i = 1;",
"i",
"1",
"do{\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 > 0);\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.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 > 0);\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 > 0);",
"x > 0",
"x",
"0",
"{\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.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 i = 1;\n\t\tdo{\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 > 0);\n\t\t}while( ++i <= n );\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 i = 1;\n\t\tdo{\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 > 0);\n\t\t}while( ++i <= n );\n\t\tSystem.out.printf(\"\\n\");\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 = 1;
do{
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 > 0);
}while( ++i <= n );
System.out.printf("\n");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
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,
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,
30,
9,
30,
3,
14,
2,
40,
13,
13,
30,
30,
4,
18,
18,
13,
13,
3,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
93,
5
],
[
93,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
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
],
[
44,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
59,
60
],
[
59,
61
],
[
53,
62
],
[
46,
63
],
[
63,
64
],
[
63,
65
],
[
46,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
66,
72
],
[
72,
73
],
[
24,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
74,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
80,
86
],
[
8,
87
],
[
87,
88
],
[
88,
89
],
[
6,
90
],
[
90,
91
],
[
0,
92
],
[
92,
93
],
[
92,
94
]
] | [
"import java.util.Scanner;\npublic class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint i=1;\n\t\tint x;\n\t\twhile(true){\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(true){\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\tif(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\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\t\n\t\t\tif(++i<=n){\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint i=1;\n\t\tint x;\n\t\twhile(true){\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(true){\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\tif(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\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\t\n\t\t\tif(++i<=n){\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint i=1;\n\t\tint x;\n\t\twhile(true){\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(true){\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\tif(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\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\t\n\t\t\tif(++i<=n){\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}",
"main",
"{\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint i=1;\n\t\tint x;\n\t\twhile(true){\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(true){\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\tif(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\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\t\n\t\t\tif(++i<=n){\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\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=1;",
"i",
"1",
"int x;",
"x",
"while(true){\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(true){\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\tif(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\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\t\n\t\t\tif(++i<=n){\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"true",
"{\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(true){\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\tif(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\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\t\n\t\t\tif(++i<=n){\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\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(true){\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\tif(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\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%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(true){\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\tif(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"while(true){\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\tif(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"true",
"{\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\tif(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\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(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"x!=0",
"x",
"0",
"{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}",
"continue;",
"{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"break;",
"if(++i<=n){\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}",
"++i<=n",
"++i",
"i",
"n",
"{\n\n\t\t\t}",
"{\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"break;",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint i=1;\n\t\tint x;\n\t\twhile(true){\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(true){\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\tif(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\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\t\n\t\t\tif(++i<=n){\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\n\t}\n\n}",
"public class Main{\n\n\tpublic static void main(String[] args) {\n\t\tScanner scan=new Scanner(System.in);\n\t\tint n=scan.nextInt();\n\t\tint i=1;\n\t\tint x;\n\t\twhile(true){\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(true){\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\tif(x!=0){\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}else{\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\t\n\t\t\tif(++i<=n){\n\n\t\t\t}else{\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tscan.close();\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();
int i=1;
int x;
while(true){
x=i;
if(x%3==0){
System.out.print(" "+i);
}else{
while(true){
if(x%10==3){
System.out.print(" "+i);
break;
}
x/=10;
if(x!=0){
continue;
}else{
break;
}
}
}
if(++i<=n){
}else{
System.out.println();
break;
}
}
scan.close();
}
} |
[
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,
41,
13,
13,
14,
2,
2,
13,
17,
17,
4,
18,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
3,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
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
],
[
36,
38
],
[
35,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
45,
48
],
[
48,
49
],
[
48,
50
],
[
39,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
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
],
[
63,
70
],
[
57,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
8,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
6,
81
],
[
81,
82
]
] | [
"import java.io.*;\n\nclass Main\n{\n public static void main(String[] args) throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n for(int i = 1; i <= n; i++){\n\n int x = i;\n\n if(x % 3 == 0)\n\n sb.append(\" \" + i);\n\n else{\n\n while(x > 0){\n if(x % 10 == 3){\n sb.append(\" \" + i);\n break;\n }else {\n x /= 10;\n }\n }\n } \n }\n System.out.println(sb);\n }\n}",
"import java.io.*;",
"io.*",
"java",
"class Main\n{\n public static void main(String[] args) throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n for(int i = 1; i <= n; i++){\n\n int x = i;\n\n if(x % 3 == 0)\n\n sb.append(\" \" + i);\n\n else{\n\n while(x > 0){\n if(x % 10 == 3){\n sb.append(\" \" + i);\n break;\n }else {\n x /= 10;\n }\n }\n } \n }\n System.out.println(sb);\n }\n}",
"Main",
"public static void main(String[] args) throws IOException\n {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n for(int i = 1; i <= n; i++){\n\n int x = i;\n\n if(x % 3 == 0)\n\n sb.append(\" \" + i);\n\n else{\n\n while(x > 0){\n if(x % 10 == 3){\n sb.append(\" \" + i);\n break;\n }else {\n x /= 10;\n }\n }\n } \n }\n System.out.println(sb);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n StringBuilder sb = new StringBuilder();\n\n int n = Integer.parseInt(br.readLine());\n\n for(int i = 1; i <= n; i++){\n\n int x = i;\n\n if(x % 3 == 0)\n\n sb.append(\" \" + i);\n\n else{\n\n while(x > 0){\n if(x % 10 == 3){\n sb.append(\" \" + i);\n break;\n }else {\n x /= 10;\n }\n }\n } \n }\n System.out.println(sb);\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int 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\n int x = i;\n\n if(x % 3 == 0)\n\n sb.append(\" \" + i);\n\n else{\n\n while(x > 0){\n if(x % 10 == 3){\n sb.append(\" \" + i);\n break;\n }else {\n x /= 10;\n }\n }\n } \n }",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\n int x = i;\n\n if(x % 3 == 0)\n\n sb.append(\" \" + i);\n\n else{\n\n while(x > 0){\n if(x % 10 == 3){\n sb.append(\" \" + i);\n break;\n }else {\n x /= 10;\n }\n }\n } \n }",
"{\n\n int x = i;\n\n if(x % 3 == 0)\n\n sb.append(\" \" + i);\n\n else{\n\n while(x > 0){\n if(x % 10 == 3){\n sb.append(\" \" + i);\n break;\n }else {\n x /= 10;\n }\n }\n } \n }",
"int x = i;",
"x",
"i",
"if(x % 3 == 0)\n\n sb.append(\" \" + i);\n\n else{\n\n while(x > 0){\n if(x % 10 == 3){\n sb.append(\" \" + i);\n break;\n }else {\n x /= 10;\n }\n }\n }",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"sb.append(\" \" + i)",
"sb.append",
"sb",
"\" \" + i",
"\" \"",
"i",
"{\n\n while(x > 0){\n if(x % 10 == 3){\n sb.append(\" \" + i);\n break;\n }else {\n x /= 10;\n }\n }\n }",
"while(x > 0){\n if(x % 10 == 3){\n sb.append(\" \" + i);\n break;\n }else {\n x /= 10;\n }\n }",
"x > 0",
"x",
"0",
"{\n if(x % 10 == 3){\n sb.append(\" \" + i);\n break;\n }else {\n x /= 10;\n }\n }",
"if(x % 10 == 3){\n sb.append(\" \" + i);\n break;\n }else {\n x /= 10;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n sb.append(\" \" + i);\n break;\n }",
"sb.append(\" \" + i)",
"sb.append",
"sb",
"\" \" + i",
"\" \"",
"i",
"break;",
"{\n x /= 10;\n }",
"x /= 10",
"x",
"10",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args"
] | import java.io.*;
class Main
{
public static void main(String[] args) throws IOException
{
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int n = Integer.parseInt(br.readLine());
for(int i = 1; i <= n; i++){
int x = i;
if(x % 3 == 0)
sb.append(" " + i);
else{
while(x > 0){
if(x % 10 == 3){
sb.append(" " + i);
break;
}else {
x /= 10;
}
}
}
}
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
17,
41,
13,
42,
17,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
30,
42,
17,
30,
0,
13,
2,
13,
17,
14,
2,
13,
17,
30,
3,
14,
2,
2,
13,
17,
17,
30,
0,
13,
2,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
3,
14,
2,
40,
13,
13,
30,
4,
18,
18,
13,
13,
3,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
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
],
[
35,
37
],
[
37,
38
],
[
37,
39
],
[
39,
40
],
[
40,
41
],
[
39,
42
],
[
34,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
28,
49
],
[
49,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
58,
59
],
[
58,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
55,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
49,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
76,
77
],
[
76,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
83,
84
],
[
73,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
85,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
97,
98
],
[
96,
99
],
[
91,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
91,
106
],
[
24,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
108,
111
],
[
107,
112
],
[
112,
113
],
[
113,
114
],
[
114,
115
],
[
115,
116
],
[
115,
117
],
[
112,
118
],
[
6,
119
],
[
119,
120
]
] | [
"import java.util.Scanner;\n\n/**\n * @author kawakami\n *\n */\nclass 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 as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tint i=1;\n\t\tString str;\n\t\t\n\t\twhile(true){\n\t\t\tint x=i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(x % 10 == 3){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\twhile(true){\n\t\t\t\t\tx=x/10;\n\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t \n\t\t\t\n\t\t\tif(i++ >= n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"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 as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tint i=1;\n\t\tString str;\n\t\t\n\t\twhile(true){\n\t\t\tint x=i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(x % 10 == 3){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\twhile(true){\n\t\t\t\t\tx=x/10;\n\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t \n\t\t\t\n\t\t\tif(i++ >= n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\n\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 as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tint i=1;\n\t\tString str;\n\t\t\n\t\twhile(true){\n\t\t\tint x=i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(x % 10 == 3){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\twhile(true){\n\t\t\t\t\tx=x/10;\n\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t \n\t\t\t\n\t\t\tif(i++ >= n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\n\n\t}",
"main",
"{\n\t\t// TODO Auto-generated method stub\n\t\tScanner as = new Scanner(System.in);\n\t\t\n\t\tint n=as.nextInt();\n\t\tint i=1;\n\t\tString str;\n\t\t\n\t\twhile(true){\n\t\t\tint x=i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(x % 10 == 3){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\twhile(true){\n\t\t\t\t\tx=x/10;\n\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t \n\t\t\t\n\t\t\tif(i++ >= n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\n\t\t\t\n\n\t}",
"Scanner as = new Scanner(System.in);",
"as",
"new Scanner(System.in)",
"int n=as.nextInt();",
"n",
"as.nextInt()",
"as.nextInt",
"as",
"int i=1;",
"i",
"1",
"String str;",
"str",
"while(true){\n\t\t\tint x=i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(x % 10 == 3){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\twhile(true){\n\t\t\t\t\tx=x/10;\n\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t \n\t\t\t\n\t\t\tif(i++ >= n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}",
"true",
"{\n\t\t\tint x=i;\n\t\t\tif(x % 3 == 0){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(x % 10 == 3){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\twhile(true){\n\t\t\t\t\tx=x/10;\n\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}\n\t\t\t\t \n\t\t\t\n\t\t\tif(i++ >= n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\t\n\t\t}",
"int x=i;",
"x",
"i",
"if(x % 3 == 0){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t\n\t\t\t}\n\t\t\t\n\t\t\telse if(x % 10 == 3){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\twhile(true){\n\t\t\t\t\tx=x/10;\n\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\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\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t\n\t\t\t}",
"str=\" \"+String.valueOf(i)",
"str",
"\" \"+String.valueOf(i)",
"\" \"",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"System.out.print(str)",
"System.out.print",
"System.out",
"System",
"System.out",
"str",
"if(x % 10 == 3){\n\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t}\n\t\t\t\n\t\t\telse{\n\t\t\t\twhile(true){\n\t\t\t\t\tx=x/10;\n\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\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\tstr=\" \"+String.valueOf(i);\n\t\t\t\tSystem.out.print(str);\n\t\t\t}",
"str=\" \"+String.valueOf(i)",
"str",
"\" \"+String.valueOf(i)",
"\" \"",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"System.out.print(str)",
"System.out.print",
"System.out",
"System",
"System.out",
"str",
"{\n\t\t\t\twhile(true){\n\t\t\t\t\tx=x/10;\n\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}\n\t\t\t\t\n\t\t\t}",
"while(true){\n\t\t\t\t\tx=x/10;\n\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}",
"true",
"{\n\t\t\t\t\tx=x/10;\n\t\t\t\t\tif(x == 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\n\t\t\t\t\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t\t\n\t\t\t\t\n\t\t\t\t}",
"x=x/10",
"x",
"x/10",
"x",
"10",
"if(x == 0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"x == 0",
"x",
"0",
"{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"break;",
"if(x % 10 == 3){\n\t\t\t\t\t\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\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\tstr=\" \"+String.valueOf(i);\n\t\t\t\t\t\tSystem.out.print(str);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"str=\" \"+String.valueOf(i)",
"str",
"\" \"+String.valueOf(i)",
"\" \"",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"System.out.print(str)",
"System.out.print",
"System.out",
"System",
"System.out",
"str",
"break;",
"if(i++ >= n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}",
"i++ >= n",
"i++",
"i",
"n",
"{\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"break;",
"String[] args",
"args"
] | import java.util.Scanner;
/**
* @author kawakami
*
*/
class Main {
/**
* @param args
*/
public static void main(String[] args) {
// TODO Auto-generated method stub
Scanner as = new Scanner(System.in);
int n=as.nextInt();
int i=1;
String str;
while(true){
int x=i;
if(x % 3 == 0){
str=" "+String.valueOf(i);
System.out.print(str);
}
else if(x % 10 == 3){
str=" "+String.valueOf(i);
System.out.print(str);
}
else{
while(true){
x=x/10;
if(x == 0){
break;
}
if(x % 10 == 3){
str=" "+String.valueOf(i);
System.out.print(str);
break;
}
}
}
if(i++ >= n){
System.out.println();
break;
}
}
}
} |
[
7,
15,
13,
17,
6,
13,
41,
13,
41,
13,
12,
13,
30,
41,
13,
20,
0,
13,
4,
18,
13,
11,
1,
0,
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,
17,
13,
14,
2,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
2,
2,
2,
13,
2,
2,
13,
17,
17,
17,
2,
2,
13,
2,
2,
13,
17,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
2,
2,
2,
13,
2,
2,
13,
17,
17,
17,
2,
2,
13,
2,
2,
13,
17,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
2,
2,
2,
13,
2,
2,
13,
17,
17,
17,
2,
2,
13,
2,
2,
13,
17,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
12,
13,
30,
4,
18,
20,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
6,
7
],
[
4,
8
],
[
8,
9
],
[
4,
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
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
36,
40
],
[
35,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
41,
45
],
[
34,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
47,
53
],
[
34,
54
],
[
54,
55
],
[
57,
56
],
[
68,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
63,
67
],
[
68,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
57,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
54,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
79,
84
],
[
79,
85
],
[
54,
86
],
[
86,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
91,
95
],
[
88,
96
],
[
87,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
101,
102
],
[
101,
103
],
[
100,
104
],
[
97,
105
],
[
86,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
109,
110
],
[
109,
111
],
[
107,
112
],
[
107,
113
],
[
86,
114
],
[
114,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
117,
119
],
[
119,
120
],
[
120,
121
],
[
120,
122
],
[
119,
123
],
[
116,
124
],
[
115,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
128,
129
],
[
129,
130
],
[
129,
131
],
[
128,
132
],
[
125,
133
],
[
114,
134
],
[
134,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
137,
139
],
[
135,
140
],
[
135,
141
],
[
114,
142
],
[
142,
143
],
[
143,
144
],
[
144,
145
],
[
145,
146
],
[
145,
147
],
[
147,
148
],
[
148,
149
],
[
148,
150
],
[
147,
151
],
[
144,
152
],
[
143,
153
],
[
153,
154
],
[
154,
155
],
[
154,
156
],
[
156,
157
],
[
157,
158
],
[
157,
159
],
[
156,
160
],
[
153,
161
],
[
142,
162
],
[
162,
163
],
[
163,
164
],
[
164,
165
],
[
165,
166
],
[
165,
167
],
[
163,
168
],
[
163,
169
],
[
12,
170
],
[
170,
171
],
[
171,
172
],
[
172,
173
],
[
172,
174
],
[
4,
175
],
[
175,
176
],
[
175,
177
],
[
177,
178
],
[
178,
179
],
[
179,
180
],
[
175,
181
],
[
181,
182
]
] | [
"import java.util.Scanner;\nclass Main{\n int n,x;\n public void solve(){\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n\n for(x = 1; x <= n; x++){\n if(x % 3 == 0 || x % 10 == 3){\n System.out.printf(\" %d\",x);\n }else if(x / 10 == 3 || x / 100 == 3 || x / 1000 == 3 || x / 10000 == 3){\n System.out.printf(\" %d\",x);\n }else if(x - x / 100 * 100 > 29 && x - x / 100 * 100 < 40){\n System.out.printf(\" %d\",x);\n }else if(x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400){\n System.out.printf(\" %d\",x);\n }else if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){\n System.out.printf(\" %d\",x);\n }\n }\n\n System.out.println();\n }\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main{\n int n,x;\n public void solve(){\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n\n for(x = 1; x <= n; x++){\n if(x % 3 == 0 || x % 10 == 3){\n System.out.printf(\" %d\",x);\n }else if(x / 10 == 3 || x / 100 == 3 || x / 1000 == 3 || x / 10000 == 3){\n System.out.printf(\" %d\",x);\n }else if(x - x / 100 * 100 > 29 && x - x / 100 * 100 < 40){\n System.out.printf(\" %d\",x);\n }else if(x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400){\n System.out.printf(\" %d\",x);\n }else if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){\n System.out.printf(\" %d\",x);\n }\n }\n\n System.out.println();\n }\n public static void main(String[] args){\n new Main().solve();\n }\n}",
"Main",
"int n",
"n",
"x;",
"x",
"public void solve(){\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n\n for(x = 1; x <= n; x++){\n if(x % 3 == 0 || x % 10 == 3){\n System.out.printf(\" %d\",x);\n }else if(x / 10 == 3 || x / 100 == 3 || x / 1000 == 3 || x / 10000 == 3){\n System.out.printf(\" %d\",x);\n }else if(x - x / 100 * 100 > 29 && x - x / 100 * 100 < 40){\n System.out.printf(\" %d\",x);\n }else if(x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400){\n System.out.printf(\" %d\",x);\n }else if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){\n System.out.printf(\" %d\",x);\n }\n }\n\n System.out.println();\n }",
"solve",
"{\n Scanner sc = new Scanner(System.in);\n n = sc.nextInt();\n\n for(x = 1; x <= n; x++){\n if(x % 3 == 0 || x % 10 == 3){\n System.out.printf(\" %d\",x);\n }else if(x / 10 == 3 || x / 100 == 3 || x / 1000 == 3 || x / 10000 == 3){\n System.out.printf(\" %d\",x);\n }else if(x - x / 100 * 100 > 29 && x - x / 100 * 100 < 40){\n System.out.printf(\" %d\",x);\n }else if(x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400){\n System.out.printf(\" %d\",x);\n }else if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){\n System.out.printf(\" %d\",x);\n }\n }\n\n System.out.println();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"n = sc.nextInt()",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(x = 1; x <= n; x++){\n if(x % 3 == 0 || x % 10 == 3){\n System.out.printf(\" %d\",x);\n }else if(x / 10 == 3 || x / 100 == 3 || x / 1000 == 3 || x / 10000 == 3){\n System.out.printf(\" %d\",x);\n }else if(x - x / 100 * 100 > 29 && x - x / 100 * 100 < 40){\n System.out.printf(\" %d\",x);\n }else if(x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400){\n System.out.printf(\" %d\",x);\n }else if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){\n System.out.printf(\" %d\",x);\n }\n }",
"x = 1;",
"x = 1",
"x",
"1",
"x <= n",
"x",
"n",
"x++",
"x++",
"x",
"{\n if(x % 3 == 0 || x % 10 == 3){\n System.out.printf(\" %d\",x);\n }else if(x / 10 == 3 || x / 100 == 3 || x / 1000 == 3 || x / 10000 == 3){\n System.out.printf(\" %d\",x);\n }else if(x - x / 100 * 100 > 29 && x - x / 100 * 100 < 40){\n System.out.printf(\" %d\",x);\n }else if(x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400){\n System.out.printf(\" %d\",x);\n }else if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){\n System.out.printf(\" %d\",x);\n }\n }",
"{\n if(x % 3 == 0 || x % 10 == 3){\n System.out.printf(\" %d\",x);\n }else if(x / 10 == 3 || x / 100 == 3 || x / 1000 == 3 || x / 10000 == 3){\n System.out.printf(\" %d\",x);\n }else if(x - x / 100 * 100 > 29 && x - x / 100 * 100 < 40){\n System.out.printf(\" %d\",x);\n }else if(x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400){\n System.out.printf(\" %d\",x);\n }else if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){\n System.out.printf(\" %d\",x);\n }\n }",
"if(x % 3 == 0 || x % 10 == 3){\n System.out.printf(\" %d\",x);\n }else if(x / 10 == 3 || x / 100 == 3 || x / 1000 == 3 || x / 10000 == 3){\n System.out.printf(\" %d\",x);\n }else if(x - x / 100 * 100 > 29 && x - x / 100 * 100 < 40){\n System.out.printf(\" %d\",x);\n }else if(x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400){\n System.out.printf(\" %d\",x);\n }else if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){\n System.out.printf(\" %d\",x);\n }",
"x % 3 == 0 || x % 10 == 3",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n System.out.printf(\" %d\",x);\n }",
"System.out.printf(\" %d\",x)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"x",
"if(x / 10 == 3 || x / 100 == 3 || x / 1000 == 3 || x / 10000 == 3){\n System.out.printf(\" %d\",x);\n }else if(x - x / 100 * 100 > 29 && x - x / 100 * 100 < 40){\n System.out.printf(\" %d\",x);\n }else if(x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400){\n System.out.printf(\" %d\",x);\n }else if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){\n System.out.printf(\" %d\",x);\n }",
"x / 10 == 3 || x / 100 == 3 || x / 1000 == 3 || x / 10000 == 3",
"x / 1000 == 3",
"x / 10 == 3 || x / 100 == 3 || x / 1000 == 3 || x / 10000 == 3",
"x / 10 == 3",
"x / 10",
"x",
"10",
"3",
"x / 100 == 3",
"x / 100",
"x",
"100",
"3",
"x / 1000 == 3",
"x / 1000",
"x",
"1000",
"3",
"x / 10000 == 3",
"x / 10000",
"x",
"10000",
"3",
"{\n System.out.printf(\" %d\",x);\n }",
"System.out.printf(\" %d\",x)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"x",
"if(x - x / 100 * 100 > 29 && x - x / 100 * 100 < 40){\n System.out.printf(\" %d\",x);\n }else if(x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400){\n System.out.printf(\" %d\",x);\n }else if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){\n System.out.printf(\" %d\",x);\n }",
"x - x / 100 * 100 > 29 && x - x / 100 * 100 < 40",
"x - x / 100 * 100 > 29",
"x - x / 100 * 100",
"x",
"x / 100 * 100",
"x / 100",
"x",
"100",
"100",
"29",
"x - x / 100 * 100 < 40",
"x - x / 100 * 100",
"x",
"x / 100 * 100",
"x / 100",
"x",
"100",
"100",
"40",
"{\n System.out.printf(\" %d\",x);\n }",
"System.out.printf(\" %d\",x)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"x",
"if(x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400){\n System.out.printf(\" %d\",x);\n }else if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){\n System.out.printf(\" %d\",x);\n }",
"x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400",
"x - x / 1000 * 1000 >= 300",
"x - x / 1000 * 1000",
"x",
"x / 1000 * 1000",
"x / 1000",
"x",
"1000",
"1000",
"300",
"x - x / 1000 * 1000 < 400",
"x - x / 1000 * 1000",
"x",
"x / 1000 * 1000",
"x / 1000",
"x",
"1000",
"1000",
"400",
"{\n System.out.printf(\" %d\",x);\n }",
"System.out.printf(\" %d\",x)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"x",
"if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){\n System.out.printf(\" %d\",x);\n }",
"x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000",
"x - x / 10000 * 10000 >= 3000",
"x - x / 10000 * 10000",
"x",
"x / 10000 * 10000",
"x / 10000",
"x",
"10000",
"10000",
"3000",
"x - x / 10000 * 10000 < 4000",
"x - x / 10000 * 10000",
"x",
"x / 10000 * 10000",
"x / 10000",
"x",
"10000",
"10000",
"4000",
"{\n System.out.printf(\" %d\",x);\n }",
"System.out.printf(\" %d\",x)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"x",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"public static void main(String[] args){\n new Main().solve();\n }",
"main",
"{\n new Main().solve();\n }",
"new Main().solve()",
"new Main().solve",
"new Main()",
"String[] args",
"args"
] | import java.util.Scanner;
class Main{
int n,x;
public void solve(){
Scanner sc = new Scanner(System.in);
n = sc.nextInt();
for(x = 1; x <= n; x++){
if(x % 3 == 0 || x % 10 == 3){
System.out.printf(" %d",x);
}else if(x / 10 == 3 || x / 100 == 3 || x / 1000 == 3 || x / 10000 == 3){
System.out.printf(" %d",x);
}else if(x - x / 100 * 100 > 29 && x - x / 100 * 100 < 40){
System.out.printf(" %d",x);
}else if(x - x / 1000 * 1000 >= 300 && x - x / 1000 * 1000 < 400){
System.out.printf(" %d",x);
}else if(x - x / 10000 * 10000 >= 3000 && x - x / 10000 * 10000 < 4000){
System.out.printf(" %d",x);
}
}
System.out.println();
}
public static void main(String[] args){
new Main().solve();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
41,
13,
17,
42,
2,
0,
13,
4,
18,
13,
17,
30,
0,
13,
4,
18,
13,
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,
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,
3,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
104,
8
],
[
104,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
11,
17
],
[
17,
18
],
[
17,
19
],
[
11,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
22,
24
],
[
24,
25
],
[
25,
26
],
[
21,
27
],
[
20,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
28,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
40,
41
],
[
40,
42
],
[
35,
43
],
[
43,
44
],
[
44,
45
],
[
35,
46
],
[
47,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
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
],
[
57,
66
],
[
47,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
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
],
[
28,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
28,
97
],
[
11,
98
],
[
98,
99
],
[
99,
100
],
[
9,
101
],
[
101,
102
],
[
0,
103
],
[
103,
104
],
[
103,
105
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\npublic class Main{\n\tpublic static void main(String[]args)throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint n=0;\n\t\t\n\t\twhile((str=br.readLine())!=null){\n\t\t\tn=Integer.parseInt(str);\n\t\t\tfor(int i=1;i<=n;i++){\n\t\t\t\tint x=i;\n\t\t\t\tif(x%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\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\tSystem.out.print(\"\\n\");\n\t\t\tbreak;\n\t\t}\n\t\tbr.close();\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)throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint n=0;\n\t\t\n\t\twhile((str=br.readLine())!=null){\n\t\t\tn=Integer.parseInt(str);\n\t\t\tfor(int i=1;i<=n;i++){\n\t\t\t\tint x=i;\n\t\t\t\tif(x%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\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\tSystem.out.print(\"\\n\");\n\t\t\tbreak;\n\t\t}\n\t\tbr.close();\n\t}\n}",
"Main",
"public static void main(String[]args)throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint n=0;\n\t\t\n\t\twhile((str=br.readLine())!=null){\n\t\t\tn=Integer.parseInt(str);\n\t\t\tfor(int i=1;i<=n;i++){\n\t\t\t\tint x=i;\n\t\t\t\tif(x%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\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\tSystem.out.print(\"\\n\");\n\t\t\tbreak;\n\t\t}\n\t\tbr.close();\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint n=0;\n\t\t\n\t\twhile((str=br.readLine())!=null){\n\t\t\tn=Integer.parseInt(str);\n\t\t\tfor(int i=1;i<=n;i++){\n\t\t\t\tint x=i;\n\t\t\t\tif(x%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\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\tSystem.out.print(\"\\n\");\n\t\t\tbreak;\n\t\t}\n\t\tbr.close();\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"String str;",
"str",
"int n=0;",
"n",
"0",
"while((str=br.readLine())!=null){\n\t\t\tn=Integer.parseInt(str);\n\t\t\tfor(int i=1;i<=n;i++){\n\t\t\t\tint x=i;\n\t\t\t\tif(x%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\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\tSystem.out.print(\"\\n\");\n\t\t\tbreak;\n\t\t}",
"(str=br.readLine())!=null",
"(str=br.readLine())",
"str",
"br.readLine()",
"br.readLine",
"br",
"null",
"{\n\t\t\tn=Integer.parseInt(str);\n\t\t\tfor(int i=1;i<=n;i++){\n\t\t\t\tint x=i;\n\t\t\t\tif(x%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\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\tSystem.out.print(\"\\n\");\n\t\t\tbreak;\n\t\t}",
"n=Integer.parseInt(str)",
"n",
"Integer.parseInt(str)",
"Integer.parseInt",
"Integer",
"str",
"for(int i=1;i<=n;i++){\n\t\t\t\tint x=i;\n\t\t\t\tif(x%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\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}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tint x=i;\n\t\t\t\tif(x%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\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\t\tint x=i;\n\t\t\t\tif(x%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\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}",
"int x=i;",
"x",
"i",
"if(x%3==0){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t\tcontinue;\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\tcontinue;\n\t\t\t\t}",
"System.out.print(\" \"+i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+i",
"\" \"",
"i",
"continue;",
"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.print(\"\\n\")",
"System.out.print",
"System.out",
"System",
"System.out",
"\"\\n\"",
"break;",
"br.close()",
"br.close",
"br",
"String[]args",
"args",
"public class Main{\n\tpublic static void main(String[]args)throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint n=0;\n\t\t\n\t\twhile((str=br.readLine())!=null){\n\t\t\tn=Integer.parseInt(str);\n\t\t\tfor(int i=1;i<=n;i++){\n\t\t\t\tint x=i;\n\t\t\t\tif(x%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\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\tSystem.out.print(\"\\n\");\n\t\t\tbreak;\n\t\t}\n\t\tbr.close();\n\t}\n}",
"public class Main{\n\tpublic static void main(String[]args)throws Exception{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tString str;\n\t\tint n=0;\n\t\t\n\t\twhile((str=br.readLine())!=null){\n\t\t\tn=Integer.parseInt(str);\n\t\t\tfor(int i=1;i<=n;i++){\n\t\t\t\tint x=i;\n\t\t\t\tif(x%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\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\tSystem.out.print(\"\\n\");\n\t\t\tbreak;\n\t\t}\n\t\tbr.close();\n\t}\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 str;
int n=0;
while((str=br.readLine())!=null){
n=Integer.parseInt(str);
for(int i=1;i<=n;i++){
int 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.print("\n");
break;
}
br.close();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
3,
30,
0,
13,
17,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
87,
8
],
[
87,
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
],
[
49,
50
],
[
48,
51
],
[
46,
52
],
[
39,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
60,
64
],
[
59,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
68,
71
],
[
66,
72
],
[
65,
73
],
[
59,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
11,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
78,
83
],
[
9,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] | [
"import java.util.Scanner;\nimport java.lang.StringBuilder;\npublic class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint h=sc.nextInt();\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tint x=i;\n\t\t\t\t\tif(x%3==0){\n\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\twhile(x!=0){\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\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}\n\t\tSystem.out.println(bu);\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"import java.lang.StringBuilder;",
"StringBuilder",
"java.lang",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint h=sc.nextInt();\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tint x=i;\n\t\t\t\t\tif(x%3==0){\n\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\twhile(x!=0){\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\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}\n\t\tSystem.out.println(bu);\n\t}\n}",
"Main",
"public static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint h=sc.nextInt();\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tint x=i;\n\t\t\t\t\tif(x%3==0){\n\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\twhile(x!=0){\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\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}\n\t\tSystem.out.println(bu);\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint h=sc.nextInt();\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tint x=i;\n\t\t\t\t\tif(x%3==0){\n\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\twhile(x!=0){\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\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}\n\t\tSystem.out.println(bu);\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"StringBuilder bu = new StringBuilder();",
"bu",
"new StringBuilder()",
"int h=sc.nextInt();",
"h",
"sc.nextInt()",
"sc.nextInt",
"sc",
"for(int i=1;i<=h;i++){\n\t\t\t\tint x=i;\n\t\t\t\t\tif(x%3==0){\n\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\twhile(x!=0){\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\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}",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=h",
"i",
"h",
"i++",
"i++",
"i",
"{\n\t\t\t\tint x=i;\n\t\t\t\t\tif(x%3==0){\n\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\twhile(x!=0){\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\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}",
"{\n\t\t\t\tint x=i;\n\t\t\t\t\tif(x%3==0){\n\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\twhile(x!=0){\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\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}",
"int x=i;",
"x",
"i",
"if(x%3==0){\n\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\twhile(x!=0){\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\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\tbu.append(\" \").append(i);\n\t\t\t\t\t}",
"bu.append(\" \").append(i)",
"bu.append(\" \").append",
"bu.append(\" \")",
"bu.append",
"bu",
"\" \"",
"i",
"{\n\t\t\t\t\t\twhile(x!=0){\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}\n\t\t\t\t\t}",
"while(x!=0){\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t}",
"x!=0",
"x",
"0",
"{\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\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\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\n\t\t\t\t\t\t\t}",
"x%10==3",
"x%10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}",
"bu.append(\" \").append(i)",
"bu.append(\" \").append",
"bu.append(\" \")",
"bu.append",
"bu",
"\" \"",
"i",
"break;",
"{\n\t\t\t\t\t\t\t\tx/=10;\n\t\t\t\t\t\t\t}",
"x/=10",
"x",
"10",
"System.out.println(bu)",
"System.out.println",
"System.out",
"System",
"System.out",
"bu",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint h=sc.nextInt();\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tint x=i;\n\t\t\t\t\tif(x%3==0){\n\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\twhile(x!=0){\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\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}\n\t\tSystem.out.println(bu);\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) throws Exception{\n\t\tScanner sc = new Scanner(System.in);\n\t\tStringBuilder bu = new StringBuilder();\n\t\tint h=sc.nextInt();\n\t\t\tfor(int i=1;i<=h;i++){\n\t\t\t\tint x=i;\n\t\t\t\t\tif(x%3==0){\n\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t}else{\n\t\t\t\t\t\twhile(x!=0){\n\t\t\t\t\t\t\tif(x%10==3){\n\t\t\t\t\t\t\t\tbu.append(\" \").append(i);\n\t\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t\t}else{\n\t\t\t\t\t\t\t\tx/=10;\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}\n\t\tSystem.out.println(bu);\n\t}\n}",
"Main"
] | import java.util.Scanner;
import java.lang.StringBuilder;
public class Main {
public static void main(String[] args) throws Exception{
Scanner sc = new Scanner(System.in);
StringBuilder bu = new StringBuilder();
int h=sc.nextInt();
for(int i=1;i<=h;i++){
int x=i;
if(x%3==0){
bu.append(" ").append(i);
}else{
while(x!=0){
if(x%10==3){
bu.append(" ").append(i);
break;
}else{
x/=10;
}
}
}
}
System.out.println(bu);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
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,
30,
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,
29,
4,
18,
13,
23,
13,
12,
13,
30,
41,
13,
4,
18,
13,
4,
18,
20,
4,
18,
18,
13,
13,
4,
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
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
18,
23
],
[
23,
24
],
[
23,
25
],
[
18,
26
],
[
26,
27
],
[
27,
28
],
[
18,
29
],
[
30,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
31,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
40,
43
],
[
38,
44
],
[
44,
45
],
[
45,
46
],
[
44,
47
],
[
31,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
64,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
63,
74
],
[
56,
75
],
[
75,
76
],
[
75,
77
],
[
14,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
12,
82
],
[
82,
83
],
[
106,
84
],
[
84,
85
],
[
84,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
89,
90
],
[
90,
91
],
[
89,
92
],
[
92,
93
],
[
93,
94
],
[
86,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
100,
101
],
[
100,
102
],
[
84,
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 String call(int n) {\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor (int i = 3; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t} else {\n\t\t\t\tint tmp = i;\n\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(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\treturn answer.toString();\n\t}\n\t\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint n = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine());\n\t\tSystem.out.println(call(n));\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static String call(int n) {\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor (int i = 3; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t} else {\n\t\t\t\tint tmp = i;\n\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(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\treturn answer.toString();\n\t}\n\t\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint n = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine());\n\t\tSystem.out.println(call(n));\n\t}\n}",
"Main",
"public static String call(int n) {\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor (int i = 3; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t} else {\n\t\t\t\tint tmp = i;\n\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(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\treturn answer.toString();\n\t}",
"call",
"{\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor (int i = 3; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t} else {\n\t\t\t\tint tmp = i;\n\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(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\treturn answer.toString();\n\t}",
"StringBuilder answer = new StringBuilder();",
"answer",
"new StringBuilder()",
"for (int i = 3; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t} else {\n\t\t\t\tint tmp = i;\n\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(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}",
"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\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t} else {\n\t\t\t\tint tmp = i;\n\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(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\tif (i % 3 == 0) {\n\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t} else {\n\t\t\t\tint tmp = i;\n\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(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}",
"if (i % 3 == 0) {\n\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t} else {\n\t\t\t\tint tmp = i;\n\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(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}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t}",
"answer.append(\" \").append(String.valueOf(i))",
"answer.append(\" \").append",
"answer.append(\" \")",
"answer.append",
"answer",
"\" \"",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"{\n\t\t\t\tint tmp = i;\n\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(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}",
"int tmp = i;",
"tmp",
"i",
"while (tmp != 0) {\n\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(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\tanswer.append(\" \").append(String.valueOf(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\tanswer.append(\" \").append(String.valueOf(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\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"answer.append(\" \").append(String.valueOf(i))",
"answer.append(\" \").append",
"answer.append(\" \")",
"answer.append",
"answer",
"\" \"",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"break;",
"tmp /= 10",
"tmp",
"10",
"return answer.toString();",
"answer.toString()",
"answer.toString",
"answer",
"int n",
"n",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint n = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine());\n\t\tSystem.out.println(call(n));\n\t}",
"main",
"{\n\t\tint n = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine());\n\t\tSystem.out.println(call(n));\n\t}",
"int n = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine());",
"n",
"Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine())",
"Integer.parseInt",
"Integer",
"(new BufferedReader(new InputStreamReader(System.in))).readLine()",
"(new BufferedReader(new InputStreamReader(System.in))).readLine",
"(new BufferedReader(new InputStreamReader(System.in)))",
"System.out.println(call(n))",
"System.out.println",
"System.out",
"System",
"System.out",
"call(n)",
"call",
"n",
"String[] args",
"args",
"public class Main {\n\tpublic static String call(int n) {\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor (int i = 3; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t} else {\n\t\t\t\tint tmp = i;\n\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(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\treturn answer.toString();\n\t}\n\t\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint n = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine());\n\t\tSystem.out.println(call(n));\n\t}\n}",
"public class Main {\n\tpublic static String call(int n) {\n\t\tStringBuilder answer = new StringBuilder();\n\t\tfor (int i = 3; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t} else {\n\t\t\t\tint tmp = i;\n\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(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\treturn answer.toString();\n\t}\n\t\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tint n = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine());\n\t\tSystem.out.println(call(n));\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static String call(int n) {
StringBuilder answer = new StringBuilder();
for (int i = 3; i <= n; i++) {
if (i % 3 == 0) {
answer.append(" ").append(String.valueOf(i));
} else {
int tmp = i;
while (tmp != 0) {
if (tmp % 10 == 3) {
answer.append(" ").append(String.valueOf(i));
break;
}
tmp /= 10;
}
}
}
return answer.toString();
}
public static void main(String[] args) throws NumberFormatException, IOException {
int n = Integer.parseInt((new BufferedReader(new InputStreamReader(System.in))).readLine());
System.out.println(call(n));
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
14,
2,
2,
13,
17,
17,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
13,
42,
2,
13,
17,
30,
0,
13,
17,
14,
2,
13,
17,
3,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
3,
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
],
[
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
],
[
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
],
[
41,
43
],
[
40,
44
],
[
39,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
47,
49
],
[
45,
50
],
[
50,
51
],
[
50,
52
],
[
39,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
59,
64
],
[
64,
65
],
[
64,
66
],
[
53,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
71,
72
],
[
72,
73
],
[
72,
74
],
[
71,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
79,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
85,
89
],
[
84,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
96,
97
],
[
96,
98
],
[
90,
99
],
[
14,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
12,
105
],
[
105,
106
]
] | [
"import java.io.InputStreamReader;\nimport java.io.BufferedReader;\nimport java.io.IOException;\n\nclass Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(bf.readLine());\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) System.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3) System.out.print(\" \" + i);\n\t\t\telse {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j > 0) {\n\t\t\t\t\tj /= 10;\n\t\t\t\t\tif (j < 3) break;\n\t\t\t\t\telse if (j % 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\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}\n}",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"class Main {\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(bf.readLine());\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) System.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3) System.out.print(\" \" + i);\n\t\t\telse {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j > 0) {\n\t\t\t\t\tj /= 10;\n\t\t\t\t\tif (j < 3) break;\n\t\t\t\t\telse if (j % 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\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\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(bf.readLine());\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) System.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3) System.out.print(\" \" + i);\n\t\t\telse {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j > 0) {\n\t\t\t\t\tj /= 10;\n\t\t\t\t\tif (j < 3) break;\n\t\t\t\t\telse if (j % 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\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tBufferedReader bf = new BufferedReader(new InputStreamReader(System.in));\n\t\tint n = Integer.parseInt(bf.readLine());\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) System.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3) System.out.print(\" \" + i);\n\t\t\telse {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j > 0) {\n\t\t\t\t\tj /= 10;\n\t\t\t\t\tif (j < 3) break;\n\t\t\t\t\telse if (j % 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\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t}",
"BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));",
"bf",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(bf.readLine());",
"n",
"Integer.parseInt(bf.readLine())",
"Integer.parseInt",
"Integer",
"bf.readLine()",
"bf.readLine",
"bf",
"for (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) System.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3) System.out.print(\" \" + i);\n\t\t\telse {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j > 0) {\n\t\t\t\t\tj /= 10;\n\t\t\t\t\tif (j < 3) break;\n\t\t\t\t\telse if (j % 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\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) System.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3) System.out.print(\" \" + i);\n\t\t\telse {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j > 0) {\n\t\t\t\t\tj /= 10;\n\t\t\t\t\tif (j < 3) break;\n\t\t\t\t\telse if (j % 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\t\t\t}\n\t\t}",
"{\n\t\t\tif (i % 3 == 0) System.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3) System.out.print(\" \" + i);\n\t\t\telse {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j > 0) {\n\t\t\t\t\tj /= 10;\n\t\t\t\t\tif (j < 3) break;\n\t\t\t\t\telse if (j % 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\t\t\t}\n\t\t}",
"if (i % 3 == 0) System.out.print(\" \" + i);\n\t\t\telse if (i % 10 == 3) System.out.print(\" \" + i);\n\t\t\telse {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j > 0) {\n\t\t\t\t\tj /= 10;\n\t\t\t\t\tif (j < 3) break;\n\t\t\t\t\telse if (j % 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\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"if (i % 10 == 3) System.out.print(\" \" + i);\n\t\t\telse {\n\t\t\t\tint j = i;\n\t\t\t\twhile (j > 0) {\n\t\t\t\t\tj /= 10;\n\t\t\t\t\tif (j < 3) break;\n\t\t\t\t\telse if (j % 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\t\t\t}",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\tint j = i;\n\t\t\t\twhile (j > 0) {\n\t\t\t\t\tj /= 10;\n\t\t\t\t\tif (j < 3) break;\n\t\t\t\t\telse if (j % 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\t\t\t}",
"int j = i;",
"j",
"i",
"while (j > 0) {\n\t\t\t\t\tj /= 10;\n\t\t\t\t\tif (j < 3) break;\n\t\t\t\t\telse if (j % 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}",
"j > 0",
"j",
"0",
"{\n\t\t\t\t\tj /= 10;\n\t\t\t\t\tif (j < 3) break;\n\t\t\t\t\telse if (j % 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}",
"j /= 10",
"j",
"10",
"if (j < 3) break;\n\t\t\t\t\telse if (j % 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}",
"j < 3",
"j",
"3",
"break;",
"if (j % 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}",
"j % 10 == 3",
"j % 10",
"j",
"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"
] | import java.io.InputStreamReader;
import java.io.BufferedReader;
import java.io.IOException;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader bf = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(bf.readLine());
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) System.out.print(" " + i);
else if (i % 10 == 3) System.out.print(" " + i);
else {
int j = i;
while (j > 0) {
j /= 10;
if (j < 3) break;
else if (j % 10 == 3) {
System.out.print(" " + i);
break;
}
}
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
4,
18,
13,
41,
13,
17,
41,
13,
42,
2,
40,
13,
13,
30,
0,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
4,
18,
13,
17,
13,
14,
2,
2,
13,
17,
13,
9,
30,
42,
17,
30,
14,
2,
2,
2,
13,
17,
17,
4,
18,
4,
18,
13,
13,
17,
4,
18,
4,
18,
13,
17,
13,
14,
2,
2,
13,
17,
13,
3,
0,
13,
17,
14,
2,
13,
17,
30,
9,
30,
3,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
112,
5
],
[
112,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
8,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
8,
25
],
[
25,
26
],
[
25,
27
],
[
8,
28
],
[
28,
29
],
[
8,
30
],
[
30,
31
],
[
31,
32
],
[
32,
33
],
[
31,
34
],
[
30,
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
],
[
49,
50
],
[
48,
51
],
[
46,
52
],
[
45,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
53,
59
],
[
39,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
65,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
73,
76
],
[
71,
77
],
[
64,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
80,
83
],
[
78,
84
],
[
63,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
87,
89
],
[
86,
90
],
[
85,
91
],
[
63,
92
],
[
92,
93
],
[
92,
94
],
[
63,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
95,
99
],
[
99,
100
],
[
95,
101
],
[
101,
102
],
[
8,
103
],
[
103,
104
],
[
104,
105
],
[
105,
106
],
[
105,
107
],
[
103,
108
],
[
6,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.io.*;\n\npublic class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint n = Integer.parseInt(br.readLine().toString());\n\t\tint i = 1;\n\t\tint x;\n\t\t\n\t\tdo {\n\t\t\tx = i;\n\t\t\t\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tif ((i + 1) <= n) continue;\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);\n\t\t\t\t\tif ((i + 1) <= n) break;\n\t\t\t\t\t\n\t\t\t\t\tx /= 10;\n\t\t\t\t\t\n\t\t\t\t\tif (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (true);\n\t\t\t}\n\t\t} while (++i <= n);\n\t\t\n\t\tSystem.out.println(sb);\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint n = Integer.parseInt(br.readLine().toString());\n\t\tint i = 1;\n\t\tint x;\n\t\t\n\t\tdo {\n\t\t\tx = i;\n\t\t\t\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tif ((i + 1) <= n) continue;\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);\n\t\t\t\t\tif ((i + 1) <= n) break;\n\t\t\t\t\t\n\t\t\t\t\tx /= 10;\n\t\t\t\t\t\n\t\t\t\t\tif (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (true);\n\t\t\t}\n\t\t} while (++i <= n);\n\t\t\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main",
"public static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint n = Integer.parseInt(br.readLine().toString());\n\t\tint i = 1;\n\t\tint x;\n\t\t\n\t\tdo {\n\t\t\tx = i;\n\t\t\t\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tif ((i + 1) <= n) continue;\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);\n\t\t\t\t\tif ((i + 1) <= n) break;\n\t\t\t\t\t\n\t\t\t\t\tx /= 10;\n\t\t\t\t\t\n\t\t\t\t\tif (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (true);\n\t\t\t}\n\t\t} while (++i <= n);\n\t\t\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\t\t\n\t\tint n = Integer.parseInt(br.readLine().toString());\n\t\tint i = 1;\n\t\tint x;\n\t\t\n\t\tdo {\n\t\t\tx = i;\n\t\t\t\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tif ((i + 1) <= n) continue;\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);\n\t\t\t\t\tif ((i + 1) <= n) break;\n\t\t\t\t\t\n\t\t\t\t\tx /= 10;\n\t\t\t\t\t\n\t\t\t\t\tif (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (true);\n\t\t\t}\n\t\t} while (++i <= n);\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))",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int n = Integer.parseInt(br.readLine().toString());",
"n",
"Integer.parseInt(br.readLine().toString())",
"Integer.parseInt",
"Integer",
"br.readLine().toString()",
"br.readLine().toString",
"br.readLine()",
"br.readLine",
"br",
"int i = 1;",
"i",
"1",
"int x;",
"x",
"do {\n\t\t\tx = i;\n\t\t\t\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tif ((i + 1) <= n) continue;\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);\n\t\t\t\t\tif ((i + 1) <= n) break;\n\t\t\t\t\t\n\t\t\t\t\tx /= 10;\n\t\t\t\t\t\n\t\t\t\t\tif (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (true);\n\t\t\t}\n\t\t} while (++i <= n);",
"++i <= n",
"++i",
"i",
"n",
"{\n\t\t\tx = i;\n\t\t\t\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tif ((i + 1) <= n) continue;\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);\n\t\t\t\t\tif ((i + 1) <= n) break;\n\t\t\t\t\t\n\t\t\t\t\tx /= 10;\n\t\t\t\t\t\n\t\t\t\t\tif (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (true);\n\t\t\t}\n\t\t}",
"x = i",
"x",
"i",
"if (x % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tif ((i + 1) <= n) continue;\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);\n\t\t\t\t\tif ((i + 1) <= n) break;\n\t\t\t\t\t\n\t\t\t\t\tx /= 10;\n\t\t\t\t\t\n\t\t\t\t\tif (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (true);\n\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tif ((i + 1) <= n) continue;\n\t\t\t}",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"if ((i + 1) <= n) continue;",
"(i + 1) <= n",
"(i + 1)",
"i",
"1",
"n",
"continue;",
"{\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);\n\t\t\t\t\tif ((i + 1) <= n) break;\n\t\t\t\t\t\n\t\t\t\t\tx /= 10;\n\t\t\t\t\t\n\t\t\t\t\tif (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (true);\n\t\t\t}",
"do {\n\t\t\t\t\tif (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);\n\t\t\t\t\tif ((i + 1) <= n) break;\n\t\t\t\t\t\n\t\t\t\t\tx /= 10;\n\t\t\t\t\t\n\t\t\t\t\tif (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (true);",
"true",
"{\n\t\t\t\t\tif (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);\n\t\t\t\t\tif ((i + 1) <= n) break;\n\t\t\t\t\t\n\t\t\t\t\tx /= 10;\n\t\t\t\t\t\n\t\t\t\t\tif (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"if (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);",
"x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"String.valueOf(x).matches(\".*[3].*\")",
"String.valueOf(x).matches",
"String.valueOf(x)",
"String.valueOf",
"String",
"x",
"\".*[3].*\"",
"sb.append(\" \").append(i)",
"sb.append(\" \").append",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"i",
"if ((i + 1) <= n) break;",
"(i + 1) <= n",
"(i + 1)",
"i",
"1",
"n",
"break;",
"x /= 10",
"x",
"10",
"if (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"x == 0",
"x",
"0",
"{\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t}",
"continue;",
"{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"break;",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String[] args",
"args",
"public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint n = Integer.parseInt(br.readLine().toString());\n\t\tint i = 1;\n\t\tint x;\n\t\t\n\t\tdo {\n\t\t\tx = i;\n\t\t\t\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tif ((i + 1) <= n) continue;\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);\n\t\t\t\t\tif ((i + 1) <= n) break;\n\t\t\t\t\t\n\t\t\t\t\tx /= 10;\n\t\t\t\t\t\n\t\t\t\t\tif (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (true);\n\t\t\t}\n\t\t} while (++i <= n);\n\t\t\n\t\tSystem.out.println(sb);\n\t}\n}",
"public class Main {\n\n\tpublic static void main(String[] args) throws NumberFormatException, IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tStringBuilder sb = new StringBuilder();\n\t\t\n\t\tint n = Integer.parseInt(br.readLine().toString());\n\t\tint i = 1;\n\t\tint x;\n\t\t\n\t\tdo {\n\t\t\tx = i;\n\t\t\t\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tsb.append(\" \").append(i);\n\t\t\t\tif ((i + 1) <= n) continue;\n\t\t\t} else {\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3 || String.valueOf(x).matches(\".*[3].*\")) sb.append(\" \").append(i);\n\t\t\t\t\tif ((i + 1) <= n) break;\n\t\t\t\t\t\n\t\t\t\t\tx /= 10;\n\t\t\t\t\t\n\t\t\t\t\tif (x == 0) {\n\t\t\t\t\t\tcontinue;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t} while (true);\n\t\t\t}\n\t\t} while (++i <= n);\n\t\t\n\t\tSystem.out.println(sb);\n\t}\n}",
"Main"
] | import java.io.*;
public class Main {
public static void main(String[] args) throws NumberFormatException, IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
StringBuilder sb = new StringBuilder();
int n = Integer.parseInt(br.readLine().toString());
int i = 1;
int x;
do {
x = i;
if (x % 3 == 0) {
sb.append(" ").append(i);
if ((i + 1) <= n) continue;
} else {
do {
if (x % 10 == 3 || String.valueOf(x).matches(".*[3].*")) sb.append(" ").append(i);
if ((i + 1) <= n) break;
x /= 10;
if (x == 0) {
continue;
} else {
break;
}
} while (true);
}
} while (++i <= n);
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,
4,
13,
4,
18,
13,
4,
18,
13,
23,
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,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
100,
8
],
[
100,
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
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
9,
34
],
[
34,
35
],
[
100,
36
],
[
36,
37
],
[
36,
38
],
[
38,
39
],
[
39,
40
],
[
39,
41
],
[
38,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
42,
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
],
[
57,
66
],
[
47,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
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
],
[
38,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
91,
96
],
[
36,
97
],
[
97,
98
],
[
0,
99
],
[
99,
100
],
[
99,
101
]
] | [
"// Itp1_5_d.java\nimport java.io.*;\nimport java.lang.Integer;\npublic class Main\n{\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tcall( Integer.parseInt(br.readLine()));\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}\n\t}\n\tpublic static void call(int n) {\n\t\tint i = 1;\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\tcontinue;\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;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t}\n\t\t} while( ++i <= n);\n\t\tSystem.out.println(\"\");\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.lang.Integer;",
"Integer",
"java.lang",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tcall( Integer.parseInt(br.readLine()));\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}\n\t}\n\tpublic static void call(int n) {\n\t\tint i = 1;\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\tcontinue;\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;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t}\n\t\t} while( ++i <= n);\n\t\tSystem.out.println(\"\");\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tcall( Integer.parseInt(br.readLine()));\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}\n\t}",
"main",
"{\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tcall( Integer.parseInt(br.readLine()));\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}\n\t}",
"try {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tcall( Integer.parseInt(br.readLine()));\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}",
"catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}",
"IOException e",
"{\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}",
"System.out.println(\"??¨??????????????????????????????\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"??¨??????????????????????????????\"",
"{\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tcall( Integer.parseInt(br.readLine()));\n\t\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"call( Integer.parseInt(br.readLine()))",
"call",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"String[] args",
"args",
"public static void call(int n) {\n\t\tint i = 1;\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\tcontinue;\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;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t}\n\t\t} while( ++i <= n);\n\t\tSystem.out.println(\"\");\n\t}",
"call",
"{\n\t\tint i = 1;\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\tcontinue;\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;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t}\n\t\t} while( ++i <= 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\tcontinue;\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;\n\t\t\t\t}\n\t\t\t\tx /= 10;\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\tcontinue;\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;\n\t\t\t\t}\n\t\t\t\tx /= 10;\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\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;",
"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;\n\t\t\t\t}\n\t\t\t\tx /= 10;\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;\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",
"\"\"",
"int n",
"n",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tcall( Integer.parseInt(br.readLine()));\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}\n\t}\n\tpublic static void call(int n) {\n\t\tint i = 1;\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\tcontinue;\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;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t}\n\t\t} while( ++i <= n);\n\t\tSystem.out.println(\"\");\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tcall( Integer.parseInt(br.readLine()));\n\t\t} catch ( IOException e ) {\n\t\t\tSystem.out.println(\"??¨??????????????????????????????\");\n\t\t}\n\t}\n\tpublic static void call(int n) {\n\t\tint i = 1;\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\tcontinue;\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;\n\t\t\t\t}\n\t\t\t\tx /= 10;\n\t\t\t}\n\t\t} while( ++i <= n);\n\t\tSystem.out.println(\"\");\n\t}\n}",
"Main"
] | // Itp1_5_d.java
import java.io.*;
import java.lang.Integer;
public class Main
{
public static void main(String[] args) {
try {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
call( Integer.parseInt(br.readLine()));
} catch ( IOException e ) {
System.out.println("??¨??????????????????????????????");
}
}
public static void call(int n) {
int i = 1;
do {
int x = i;
if ( x%3 == 0) {
System.out.print(" " + i);
continue;
}
while( x != 0 ) {
if ( x%10 == 3) {
System.out.print( " " + i);
break;
}
x /= 10;
}
} while( ++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,
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,
4,
18,
13,
13,
14,
4,
18,
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
],
[
84,
8
],
[
84,
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
],
[
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
],
[
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
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
54,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
11,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
75,
80
],
[
9,
81
],
[
81,
82
],
[
0,
83
],
[
83,
84
],
[
83,
85
]
] | [
"import java.io.BufferedReader;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString line = br.readLine();\n\t\tint n = Integer.parseInt(line);\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tString s = Integer.toString(i);\n\t\t\t\tif (s.contains(\"3\")) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\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.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString line = br.readLine();\n\t\tint n = Integer.parseInt(line);\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tString s = Integer.toString(i);\n\t\t\t\tif (s.contains(\"3\")) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\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 Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString line = br.readLine();\n\t\tint n = Integer.parseInt(line);\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tString s = Integer.toString(i);\n\t\t\t\tif (s.contains(\"3\")) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString line = br.readLine();\n\t\tint n = Integer.parseInt(line);\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tString s = Integer.toString(i);\n\t\t\t\tif (s.contains(\"3\")) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\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",
"for (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tString s = Integer.toString(i);\n\t\t\t\tif (s.contains(\"3\")) {\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\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tString s = Integer.toString(i);\n\t\t\t\tif (s.contains(\"3\")) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}\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 {\n\t\t\t\tString s = Integer.toString(i);\n\t\t\t\tif (s.contains(\"3\")) {\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) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tString s = Integer.toString(i);\n\t\t\t\tif (s.contains(\"3\")) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}\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",
"{\n\t\t\t\tString s = Integer.toString(i);\n\t\t\t\tif (s.contains(\"3\")) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}\n\t\t\t}",
"String s = Integer.toString(i);",
"s",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"i",
"if (s.contains(\"3\")) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t\t}",
"s.contains(\"3\")",
"s.contains",
"s",
"\"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",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString line = br.readLine();\n\t\tint n = Integer.parseInt(line);\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tString s = Integer.toString(i);\n\t\t\t\tif (s.contains(\"3\")) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\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) throws Exception {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\n\t\tString line = br.readLine();\n\t\tint n = Integer.parseInt(line);\n\n\t\tfor (int i = 1; i <= n; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t} else {\n\t\t\t\tString s = Integer.toString(i);\n\t\t\t\tif (s.contains(\"3\")) {\n\t\t\t\t\tSystem.out.print(\" \" + i);\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.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);
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
System.out.print(" " + i);
} else {
String s = Integer.toString(i);
if (s.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,
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,
4,
18,
13,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
83,
11
],
[
83,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
20,
23
],
[
23,
24
],
[
24,
25
],
[
14,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
31,
32
],
[
31,
33
],
[
26,
34
],
[
34,
35
],
[
35,
36
],
[
26,
37
],
[
38,
38
],
[
38,
39
],
[
39,
40
],
[
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
],
[
57,
58
],
[
58,
59
],
[
57,
60
],
[
54,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
67,
72
],
[
72,
73
],
[
72,
74
],
[
14,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
12,
80
],
[
80,
81
],
[
0,
82
],
[
82,
83
],
[
82,
84
]
] | [
"import 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 br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n String s = String.valueOf(i);\n if (s.contains(\"3\")) {\n System.out.print(\" \" + i);\n }\n }\n }\n System.out.println();\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 br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n String s = String.valueOf(i);\n if (s.contains(\"3\")) {\n System.out.print(\" \" + i);\n }\n }\n }\n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n String s = String.valueOf(i);\n if (s.contains(\"3\")) {\n System.out.print(\" \" + i);\n }\n }\n }\n System.out.println();\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n String s = String.valueOf(i);\n if (s.contains(\"3\")) {\n System.out.print(\" \" + i);\n }\n }\n }\n System.out.println();\n }",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"int n = Integer.parseInt(br.readLine());",
"n",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n String s = String.valueOf(i);\n if (s.contains(\"3\")) {\n System.out.print(\" \" + i);\n }\n }\n }",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n String s = String.valueOf(i);\n if (s.contains(\"3\")) {\n System.out.print(\" \" + i);\n }\n }\n }",
"{\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n String s = String.valueOf(i);\n if (s.contains(\"3\")) {\n System.out.print(\" \" + i);\n }\n }\n }",
"if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n String s = String.valueOf(i);\n if (s.contains(\"3\")) {\n System.out.print(\" \" + i);\n }\n }",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n System.out.print(\" \" + i);\n }",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n String s = String.valueOf(i);\n if (s.contains(\"3\")) {\n System.out.print(\" \" + i);\n }\n }",
"String s = String.valueOf(i);",
"s",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"if (s.contains(\"3\")) {\n System.out.print(\" \" + i);\n }",
"s.contains(\"3\")",
"s.contains",
"s",
"\"3\"",
"{\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 public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n String s = String.valueOf(i);\n if (s.contains(\"3\")) {\n System.out.print(\" \" + i);\n }\n }\n }\n System.out.println();\n }\n}",
"public class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n = Integer.parseInt(br.readLine());\n for (int i = 3; i <= n; i++) {\n if (i % 3 == 0) {\n System.out.print(\" \" + i);\n } else {\n String s = String.valueOf(i);\n if (s.contains(\"3\")) {\n System.out.print(\" \" + i);\n }\n }\n }\n System.out.println();\n }\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n = Integer.parseInt(br.readLine());
for (int i = 3; i <= n; i++) {
if (i % 3 == 0) {
System.out.print(" " + i);
} else {
String s = String.valueOf(i);
if (s.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,
41,
13,
42,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
30,
0,
13,
13,
42,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
3,
0,
13,
17,
14,
2,
13,
17,
30,
3,
14,
2,
13,
13,
30,
4,
18,
18,
13,
13,
3,
40,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
86,
5
],
[
86,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
8,
20
],
[
20,
21
],
[
8,
22
],
[
22,
23
],
[
22,
24
],
[
24,
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
],
[
25,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
39,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
48,
50
],
[
47,
51
],
[
46,
52
],
[
52,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
53,
59
],
[
52,
60
],
[
45,
61
],
[
61,
62
],
[
61,
63
],
[
45,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
24,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
77,
78
],
[
77,
79
],
[
74,
80
],
[
24,
81
],
[
81,
82
],
[
6,
83
],
[
83,
84
],
[
0,
85
],
[
85,
86
],
[
85,
87
]
] | [
"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 i=1;\n\t\tint a;\n\t\twhile(true){\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\ta=i;\n\t\t\t\twhile(true){ \n\t\t\t\t\tif(a%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\ta/=10;\n\t\t\t\t\tif(a==0){\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\tif(i==n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\n\t\t}\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint i=1;\n\t\tint a;\n\t\twhile(true){\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\ta=i;\n\t\t\t\twhile(true){ \n\t\t\t\t\tif(a%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\ta/=10;\n\t\t\t\t\tif(a==0){\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\tif(i==n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint i=1;\n\t\tint a;\n\t\twhile(true){\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\ta=i;\n\t\t\t\twhile(true){ \n\t\t\t\t\tif(a%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\ta/=10;\n\t\t\t\t\tif(a==0){\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\tif(i==n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\n\t\t}\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint i=1;\n\t\tint a;\n\t\twhile(true){\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\ta=i;\n\t\t\t\twhile(true){ \n\t\t\t\t\tif(a%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\ta/=10;\n\t\t\t\t\tif(a==0){\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\tif(i==n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\n\t\t}\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i=1;",
"i",
"1",
"int a;",
"a",
"while(true){\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\ta=i;\n\t\t\t\twhile(true){ \n\t\t\t\t\tif(a%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\ta/=10;\n\t\t\t\t\tif(a==0){\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\tif(i==n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\n\t\t}",
"true",
"{\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\ta=i;\n\t\t\t\twhile(true){ \n\t\t\t\t\tif(a%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\ta/=10;\n\t\t\t\t\tif(a==0){\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\tif(i==n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\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\ta=i;\n\t\t\t\twhile(true){ \n\t\t\t\t\tif(a%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\ta/=10;\n\t\t\t\t\tif(a==0){\n\t\t\t\t\t\tbreak;\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\ta=i;\n\t\t\t\twhile(true){ \n\t\t\t\t\tif(a%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\ta/=10;\n\t\t\t\t\tif(a==0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"a=i",
"a",
"i",
"while(true){ \n\t\t\t\t\tif(a%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\ta/=10;\n\t\t\t\t\tif(a==0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"true",
"{ \n\t\t\t\t\tif(a%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\ta/=10;\n\t\t\t\t\tif(a==0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"if(a%10==3){\n\t\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"a%10==3",
"a%10",
"a",
"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;",
"a/=10",
"a",
"10",
"if(a==0){\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"a==0",
"a",
"0",
"{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"break;",
"if(i==n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}",
"i==n",
"i",
"n",
"{\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"break;",
"i++",
"i",
"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 i=1;\n\t\tint a;\n\t\twhile(true){\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\ta=i;\n\t\t\t\twhile(true){ \n\t\t\t\t\tif(a%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\ta/=10;\n\t\t\t\t\tif(a==0){\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\tif(i==n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\n\t\t}\n\t}\n}",
"public class Main{\n\tpublic static void main(String[] args){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n = sc.nextInt();\n\t\tint i=1;\n\t\tint a;\n\t\twhile(true){\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\ta=i;\n\t\t\t\twhile(true){ \n\t\t\t\t\tif(a%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\ta/=10;\n\t\t\t\t\tif(a==0){\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\tif(i==n){\n\t\t\t\tSystem.out.println();\n\t\t\t\tbreak;\n\t\t\t}\n\t\t\ti++;\n\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();
int i=1;
int a;
while(true){
if(i%3==0){
System.out.printf(" %d", i);
}else{
a=i;
while(true){
if(a%10==3){
System.out.printf(" %d", i);
break;
}
a/=10;
if(a==0){
break;
}
}
}
if(i==n){
System.out.println();
break;
}
i++;
}
}
} |
[
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,
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,
30,
3,
14,
2,
40,
13,
13,
30,
9,
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
],
[
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
],
[
42,
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
],
[
57,
58
],
[
57,
59
],
[
51,
60
],
[
44,
61
],
[
61,
62
],
[
61,
63
],
[
44,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
22,
70
],
[
70,
71
],
[
71,
72
],
[
72,
73
],
[
71,
74
],
[
70,
75
],
[
75,
76
],
[
70,
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\n\npublic class Main {\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint i = 1;\n\t\twhile(true) {\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}\n\t\t\telse {\n\t\t\t\twhile(true) {\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\tif(x == 0) {\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\t\n\t\t\tif(++i <= n) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint i = 1;\n\t\twhile(true) {\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}\n\t\t\telse {\n\t\t\t\twhile(true) {\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\tif(x == 0) {\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\t\n\t\t\tif(++i <= n) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint i = 1;\n\t\twhile(true) {\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}\n\t\t\telse {\n\t\t\t\twhile(true) {\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\tif(x == 0) {\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\t\n\t\t\tif(++i <= n) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t}",
"main",
"{\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint i = 1;\n\t\twhile(true) {\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}\n\t\t\telse {\n\t\t\t\twhile(true) {\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\tif(x == 0) {\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\t\n\t\t\tif(++i <= n) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t}",
"Scanner stdIn = new Scanner(System.in);",
"stdIn",
"new Scanner(System.in)",
"int n = stdIn.nextInt();",
"n",
"stdIn.nextInt()",
"stdIn.nextInt",
"stdIn",
"int i = 1;",
"i",
"1",
"while(true) {\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}\n\t\t\telse {\n\t\t\t\twhile(true) {\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\tif(x == 0) {\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\t\n\t\t\tif(++i <= n) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}",
"true",
"{\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}\n\t\t\telse {\n\t\t\t\twhile(true) {\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\tif(x == 0) {\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\t\n\t\t\tif(++i <= n) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak;\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}\n\t\t\telse {\n\t\t\t\twhile(true) {\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\tif(x == 0) {\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 % 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(true) {\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\tif(x == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"while(true) {\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\tif(x == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"true",
"{\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\tif(x == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\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(x == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"x == 0",
"x",
"0",
"{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"break;",
"if(++i <= n) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak;\n\t\t\t}",
"++i <= n",
"++i",
"i",
"n",
"{\n\t\t\t\tcontinue;\n\t\t\t}",
"continue;",
"{\n\t\t\t\tbreak;\n\t\t\t}",
"break;",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint i = 1;\n\t\twhile(true) {\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}\n\t\t\telse {\n\t\t\t\twhile(true) {\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\tif(x == 0) {\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\t\n\t\t\tif(++i <= n) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t}\n\n}",
"public class Main {\n\t\n\n\tpublic static void main(String[] args) {\n\t\tScanner stdIn = new Scanner(System.in);\n\t\tint n = stdIn.nextInt();\n\t\tint i = 1;\n\t\twhile(true) {\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}\n\t\t\telse {\n\t\t\t\twhile(true) {\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\tif(x == 0) {\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\t\n\t\t\tif(++i <= n) {\n\t\t\t\tcontinue;\n\t\t\t}\n\t\t\telse {\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t\tSystem.out.println();\n\t\t\n\t\t\n\t\t\n\t}\n\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner stdIn = new Scanner(System.in);
int n = stdIn.nextInt();
int i = 1;
while(true) {
int x = i;
if (x % 3 == 0) {
System.out.print(" " + i);
}
else {
while(true) {
if(x % 10 == 3) {
System.out.print(" " + i);
break;
}
x /= 10;
if(x == 0) {
break;
}
}
}
if(++i <= n) {
continue;
}
else {
break;
}
}
System.out.println();
}
} |
[
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,
20,
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,
13,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
13,
3,
0,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
4,
18,
13,
1,
40,
13,
30,
30,
0,
13,
2,
17,
4,
18,
13,
13,
4,
18,
18,
13,
13,
13,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
0,
10
],
[
10,
11
],
[
10,
12
],
[
0,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
18,
20
],
[
17,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
24,
25
],
[
23,
26
],
[
26,
27
],
[
27,
28
],
[
17,
29
],
[
29,
30
],
[
29,
31
],
[
17,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
32,
37
],
[
37,
38
],
[
37,
39
],
[
32,
40
],
[
40,
41
],
[
41,
42
],
[
32,
43
],
[
44,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
49,
53
],
[
48,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
55,
58
],
[
48,
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
],
[
72,
75
],
[
71,
76
],
[
64,
77
],
[
77,
78
],
[
77,
79
],
[
17,
80
],
[
80,
81
],
[
80,
82
],
[
17,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
83,
93
],
[
93,
94
],
[
94,
95
],
[
83,
96
],
[
97,
97
],
[
97,
98
],
[
98,
99
],
[
98,
100
],
[
100,
101
],
[
100,
102
],
[
102,
103
],
[
103,
104
],
[
102,
105
],
[
17,
106
],
[
106,
107
],
[
107,
108
],
[
108,
109
],
[
108,
110
],
[
106,
111
],
[
15,
112
],
[
112,
113
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\nimport java.util.ArrayList;\n\nclass Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tInteger num = Integer.parseInt(br.readLine());\n\t\tArrayList<Integer> numArrays = new ArrayList<Integer>();\n\t\tfor (int i = 1; i <= num; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tnumArrays.add(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\tnumArrays.add(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\tString out = \"\";\n\t\tfor (int i = 0; i < numArrays.size(); i++) {\n\t\t\tout += \" \" + numArrays.get(i);\n\t\t}\n\t\tSystem.out.println(out);\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"import java.util.ArrayList;",
"ArrayList",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) throws IOException {\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tInteger num = Integer.parseInt(br.readLine());\n\t\tArrayList<Integer> numArrays = new ArrayList<Integer>();\n\t\tfor (int i = 1; i <= num; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tnumArrays.add(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\tnumArrays.add(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\tString out = \"\";\n\t\tfor (int i = 0; i < numArrays.size(); i++) {\n\t\t\tout += \" \" + numArrays.get(i);\n\t\t}\n\t\tSystem.out.println(out);\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\tInteger num = Integer.parseInt(br.readLine());\n\t\tArrayList<Integer> numArrays = new ArrayList<Integer>();\n\t\tfor (int i = 1; i <= num; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tnumArrays.add(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\tnumArrays.add(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\tString out = \"\";\n\t\tfor (int i = 0; i < numArrays.size(); i++) {\n\t\t\tout += \" \" + numArrays.get(i);\n\t\t}\n\t\tSystem.out.println(out);\n\t}",
"main",
"{\n\t\tBufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n\t\tInteger num = Integer.parseInt(br.readLine());\n\t\tArrayList<Integer> numArrays = new ArrayList<Integer>();\n\t\tfor (int i = 1; i <= num; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tnumArrays.add(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\tnumArrays.add(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\tString out = \"\";\n\t\tfor (int i = 0; i < numArrays.size(); i++) {\n\t\t\tout += \" \" + numArrays.get(i);\n\t\t}\n\t\tSystem.out.println(out);\n\t}",
"BufferedReader br = new BufferedReader(new InputStreamReader(System.in));",
"br",
"new BufferedReader(new InputStreamReader(System.in))",
"Integer num = Integer.parseInt(br.readLine());",
"num",
"Integer.parseInt(br.readLine())",
"Integer.parseInt",
"Integer",
"br.readLine()",
"br.readLine",
"br",
"ArrayList<Integer> numArrays = new ArrayList<Integer>();",
"numArrays",
"new ArrayList<Integer>()",
"for (int i = 1; i <= num; i++) {\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tnumArrays.add(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\tnumArrays.add(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 = 1;",
"int i = 1;",
"i",
"1",
"i <= num",
"i",
"num",
"i++",
"i++",
"i",
"{\n\t\t\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tnumArrays.add(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\tnumArrays.add(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\tint x = i;\n\t\t\tif (x % 3 == 0) {\n\t\t\t\tnumArrays.add(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\tnumArrays.add(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 x = i;",
"x",
"i",
"if (x % 3 == 0) {\n\t\t\t\tnumArrays.add(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\tnumArrays.add(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}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\tnumArrays.add(i);\n\t\t\t}",
"numArrays.add(i)",
"numArrays.add",
"numArrays",
"i",
"{\n\t\t\t\twhile (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tnumArrays.add(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}",
"while (x != 0) {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tnumArrays.add(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\tnumArrays.add(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\tnumArrays.add(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\tnumArrays.add(i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"numArrays.add(i)",
"numArrays.add",
"numArrays",
"i",
"break;",
"x /= 10",
"x",
"10",
"String out = \"\";",
"out",
"\"\"",
"for (int i = 0; i < numArrays.size(); i++) {\n\t\t\tout += \" \" + numArrays.get(i);\n\t\t}",
"int i = 0;",
"int i = 0;",
"i",
"0",
"i < numArrays.size()",
"i",
"numArrays.size()",
"numArrays.size",
"numArrays",
"i++",
"i++",
"i",
"{\n\t\t\tout += \" \" + numArrays.get(i);\n\t\t}",
"{\n\t\t\tout += \" \" + numArrays.get(i);\n\t\t}",
"out += \" \" + numArrays.get(i)",
"out",
"\" \" + numArrays.get(i)",
"\" \"",
"numArrays.get(i)",
"numArrays.get",
"numArrays",
"i",
"System.out.println(out)",
"System.out.println",
"System.out",
"System",
"System.out",
"out",
"String[] args",
"args"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.util.ArrayList;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
Integer num = Integer.parseInt(br.readLine());
ArrayList<Integer> numArrays = new ArrayList<Integer>();
for (int i = 1; i <= num; i++) {
int x = i;
if (x % 3 == 0) {
numArrays.add(i);
} else {
while (x != 0) {
if (x % 10 == 3) {
numArrays.add(i);
break;
}
x /= 10;
}
}
}
String out = "";
for (int i = 0; i < numArrays.size(); i++) {
out += " " + numArrays.get(i);
}
System.out.println(out);
}
} |
[
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,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
9,
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,
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
],
[
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
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
37,
38
],
[
38,
39
],
[
38,
40
],
[
37,
41
],
[
36,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
43,
46
],
[
46,
47
],
[
46,
48
],
[
42,
49
],
[
32,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
65,
66
],
[
65,
67
],
[
61,
68
],
[
54,
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\t public static void main(String[] args) {\n\t StringBuilder count=new StringBuilder();\n\t Scanner sc=new Scanner(System.in);\n\t int n=sc.nextInt();\n\t for (int i=1;i<=n;i++){\n\t int x=i;\n\t if (x%3==0){\n\t count.append(\" \"+i);\n\t continue;}\n\t do{\n\t if(x%10==3){\n\t count.append(\" \"+i);\n\t break;}\n\t x/=10;\n\t }while(x!=0);\n\t }\n\t System.out.println(count);\n\t }\n\t}\n",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t public static void main(String[] args) {\n\t StringBuilder count=new StringBuilder();\n\t Scanner sc=new Scanner(System.in);\n\t int n=sc.nextInt();\n\t for (int i=1;i<=n;i++){\n\t int x=i;\n\t if (x%3==0){\n\t count.append(\" \"+i);\n\t continue;}\n\t do{\n\t if(x%10==3){\n\t count.append(\" \"+i);\n\t break;}\n\t x/=10;\n\t }while(x!=0);\n\t }\n\t System.out.println(count);\n\t }\n\t}",
"Main",
"public static void main(String[] args) {\n\t StringBuilder count=new StringBuilder();\n\t Scanner sc=new Scanner(System.in);\n\t int n=sc.nextInt();\n\t for (int i=1;i<=n;i++){\n\t int x=i;\n\t if (x%3==0){\n\t count.append(\" \"+i);\n\t continue;}\n\t do{\n\t if(x%10==3){\n\t count.append(\" \"+i);\n\t break;}\n\t x/=10;\n\t }while(x!=0);\n\t }\n\t System.out.println(count);\n\t }",
"main",
"{\n\t StringBuilder count=new StringBuilder();\n\t Scanner sc=new Scanner(System.in);\n\t int n=sc.nextInt();\n\t for (int i=1;i<=n;i++){\n\t int x=i;\n\t if (x%3==0){\n\t count.append(\" \"+i);\n\t continue;}\n\t do{\n\t if(x%10==3){\n\t count.append(\" \"+i);\n\t break;}\n\t x/=10;\n\t }while(x!=0);\n\t }\n\t System.out.println(count);\n\t }",
"StringBuilder count=new StringBuilder();",
"count",
"new StringBuilder()",
"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 int x=i;\n\t if (x%3==0){\n\t count.append(\" \"+i);\n\t continue;}\n\t do{\n\t if(x%10==3){\n\t count.append(\" \"+i);\n\t break;}\n\t x/=10;\n\t }while(x!=0);\n\t }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t int x=i;\n\t if (x%3==0){\n\t count.append(\" \"+i);\n\t continue;}\n\t do{\n\t if(x%10==3){\n\t count.append(\" \"+i);\n\t break;}\n\t x/=10;\n\t }while(x!=0);\n\t }",
"{\n\t int x=i;\n\t if (x%3==0){\n\t count.append(\" \"+i);\n\t continue;}\n\t do{\n\t if(x%10==3){\n\t count.append(\" \"+i);\n\t break;}\n\t x/=10;\n\t }while(x!=0);\n\t }",
"int x=i;",
"x",
"i",
"if (x%3==0){\n\t count.append(\" \"+i);\n\t continue;}",
"x%3==0",
"x%3",
"x",
"3",
"0",
"{\n\t count.append(\" \"+i);\n\t continue;}",
"count.append(\" \"+i)",
"count.append",
"count",
"\" \"+i",
"\" \"",
"i",
"continue;",
"do{\n\t if(x%10==3){\n\t count.append(\" \"+i);\n\t break;}\n\t x/=10;\n\t }while(x!=0);",
"x!=0",
"x",
"0",
"{\n\t if(x%10==3){\n\t count.append(\" \"+i);\n\t break;}\n\t x/=10;\n\t }",
"if(x%10==3){\n\t count.append(\" \"+i);\n\t break;}",
"x%10==3",
"x%10",
"x",
"10",
"3",
"{\n\t count.append(\" \"+i);\n\t break;}",
"count.append(\" \"+i)",
"count.append",
"count",
"\" \"+i",
"\" \"",
"i",
"break;",
"x/=10",
"x",
"10",
"System.out.println(count)",
"System.out.println",
"System.out",
"System",
"System.out",
"count",
"String[] args",
"args",
"public class Main {\n\t public static void main(String[] args) {\n\t StringBuilder count=new StringBuilder();\n\t Scanner sc=new Scanner(System.in);\n\t int n=sc.nextInt();\n\t for (int i=1;i<=n;i++){\n\t int x=i;\n\t if (x%3==0){\n\t count.append(\" \"+i);\n\t continue;}\n\t do{\n\t if(x%10==3){\n\t count.append(\" \"+i);\n\t break;}\n\t x/=10;\n\t }while(x!=0);\n\t }\n\t System.out.println(count);\n\t }\n\t}",
"public class Main {\n\t public static void main(String[] args) {\n\t StringBuilder count=new StringBuilder();\n\t Scanner sc=new Scanner(System.in);\n\t int n=sc.nextInt();\n\t for (int i=1;i<=n;i++){\n\t int x=i;\n\t if (x%3==0){\n\t count.append(\" \"+i);\n\t continue;}\n\t do{\n\t if(x%10==3){\n\t count.append(\" \"+i);\n\t break;}\n\t x/=10;\n\t }while(x!=0);\n\t }\n\t System.out.println(count);\n\t }\n\t}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
StringBuilder count=new StringBuilder();
Scanner sc=new Scanner(System.in);
int n=sc.nextInt();
for (int i=1;i<=n;i++){
int x=i;
if (x%3==0){
count.append(" "+i);
continue;}
do{
if(x%10==3){
count.append(" "+i);
break;}
x/=10;
}while(x!=0);
}
System.out.println(count);
}
}
|
[
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,
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,
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
],
[
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
],
[
46,
48
],
[
45,
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
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
60,
69
],
[
53,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
6,
78
],
[
78,
79
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint loop = scanner.nextInt();\n\t\tfor (int i = 1; i <= loop; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint loop = scanner.nextInt();\n\t\tfor (int i = 1; i <= loop; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println();\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint loop = scanner.nextInt();\n\t\tfor (int i = 1; i <= loop; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println();\n\t}",
"main",
"{\n\t\tScanner scanner = new Scanner(System.in);\n\t\tint loop = scanner.nextInt();\n\t\tfor (int i = 1; i <= loop; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t}\n\t\t}\n\n\t\tSystem.out.println();\n\t}",
"Scanner scanner = new Scanner(System.in);",
"scanner",
"new Scanner(System.in)",
"int loop = scanner.nextInt();",
"loop",
"scanner.nextInt()",
"scanner.nextInt",
"scanner",
"for (int i = 1; i <= loop; i++) {\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + 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\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}\n\t\t\t}\n\t\t}",
"int i = 1;",
"int i = 1;",
"i",
"1",
"i <= loop",
"i",
"loop",
"i++",
"i++",
"i",
"{\n\t\t\tif (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + 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\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}\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 {\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\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}\n\t\t\t}\n\t\t}",
"if (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + 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\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}\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",
"{\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\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}\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\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}",
"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",
"String[] args",
"args"
] | import java.util.Scanner;
class Main {
public static void main(String[] args) {
Scanner scanner = new Scanner(System.in);
int loop = scanner.nextInt();
for (int i = 1; i <= loop; i++) {
if (i % 3 == 0) {
System.out.print(" " + i);
} else {
int x = i;
while (x != 0) {
if (x % 10 == 3) {
System.out.print(" " + i);
break;
}
x /= 10;
}
}
}
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,
20,
41,
13,
17,
41,
13,
17,
41,
13,
14,
2,
2,
13,
17,
2,
13,
17,
30,
11,
1,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
17,
4,
18,
13,
13,
30,
0,
13,
13,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
17,
4,
18,
13,
13,
3,
0,
13,
17,
40,
13,
4,
18,
18,
13,
13,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
109,
8
],
[
109,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
20,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
11,
26
],
[
26,
27
],
[
26,
28
],
[
11,
29
],
[
29,
30
],
[
11,
31
],
[
31,
32
],
[
32,
33
],
[
33,
34
],
[
33,
35
],
[
32,
36
],
[
36,
37
],
[
36,
38
],
[
31,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
42,
43
],
[
42,
44
],
[
40,
45
],
[
45,
46
],
[
46,
47
],
[
40,
48
],
[
49,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
52,
53
],
[
52,
54
],
[
49,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
57,
59
],
[
56,
60
],
[
55,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
62,
65
],
[
61,
66
],
[
66,
67
],
[
67,
68
],
[
66,
69
],
[
55,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
70,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
78,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
80,
84
],
[
79,
85
],
[
85,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
85,
90
],
[
90,
91
],
[
91,
92
],
[
90,
93
],
[
85,
94
],
[
78,
95
],
[
95,
96
],
[
95,
97
],
[
49,
98
],
[
98,
99
],
[
11,
100
],
[
100,
101
],
[
101,
102
],
[
102,
103
],
[
102,
104
],
[
100,
105
],
[
9,
106
],
[
106,
107
],
[
0,
108
],
[
108,
109
],
[
108,
110
]
] | [
"\n\nimport java.io.IOException;\nimport java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String args[])throws IOException{\n// BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n// int x = Integer.parseInt(br.readLine());\n\t\tScanner scan = new Scanner(System.in);\n\t\tint x = scan.nextInt();\n StringBuilder sb = new StringBuilder();\n int count=0;\n int a=1,b;\n if(x>=3 && x<=10000){\n for(; count<x; count++){\n b = a/10;\n if(a%3==0){\n sb.append(\" \");\n sb.append(a);\n }else{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }\n a++;\n }\n }\n System.out.println(sb);\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// BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n// int x = Integer.parseInt(br.readLine());\n\t\tScanner scan = new Scanner(System.in);\n\t\tint x = scan.nextInt();\n StringBuilder sb = new StringBuilder();\n int count=0;\n int a=1,b;\n if(x>=3 && x<=10000){\n for(; count<x; count++){\n b = a/10;\n if(a%3==0){\n sb.append(\" \");\n sb.append(a);\n }else{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }\n a++;\n }\n }\n System.out.println(sb);\n }\n}",
"Main",
"public static void main(String args[])throws IOException{\n// BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n// int x = Integer.parseInt(br.readLine());\n\t\tScanner scan = new Scanner(System.in);\n\t\tint x = scan.nextInt();\n StringBuilder sb = new StringBuilder();\n int count=0;\n int a=1,b;\n if(x>=3 && x<=10000){\n for(; count<x; count++){\n b = a/10;\n if(a%3==0){\n sb.append(\" \");\n sb.append(a);\n }else{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }\n a++;\n }\n }\n System.out.println(sb);\n }",
"main",
"{\n// BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n// int x = Integer.parseInt(br.readLine());\n\t\tScanner scan = new Scanner(System.in);\n\t\tint x = scan.nextInt();\n StringBuilder sb = new StringBuilder();\n int count=0;\n int a=1,b;\n if(x>=3 && x<=10000){\n for(; count<x; count++){\n b = a/10;\n if(a%3==0){\n sb.append(\" \");\n sb.append(a);\n }else{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }\n a++;\n }\n }\n System.out.println(sb);\n }",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int x = scan.nextInt();",
"x",
"scan.nextInt()",
"scan.nextInt",
"scan",
"StringBuilder sb = new StringBuilder();",
"sb",
"new StringBuilder()",
"int count=0;",
"count",
"0",
"int a=1",
"a",
"1",
"b;",
"b",
"if(x>=3 && x<=10000){\n for(; count<x; count++){\n b = a/10;\n if(a%3==0){\n sb.append(\" \");\n sb.append(a);\n }else{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }\n a++;\n }\n }",
"x>=3 && x<=10000",
"x>=3",
"x",
"3",
"x<=10000",
"x",
"10000",
"{\n for(; count<x; count++){\n b = a/10;\n if(a%3==0){\n sb.append(\" \");\n sb.append(a);\n }else{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }\n a++;\n }\n }",
"for(; count<x; count++){\n b = a/10;\n if(a%3==0){\n sb.append(\" \");\n sb.append(a);\n }else{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }\n a++;\n }",
";",
"count<x",
"count",
"x",
"count++",
"count++",
"count",
"{\n b = a/10;\n if(a%3==0){\n sb.append(\" \");\n sb.append(a);\n }else{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }\n a++;\n }",
"{\n b = a/10;\n if(a%3==0){\n sb.append(\" \");\n sb.append(a);\n }else{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }\n a++;\n }",
"b = a/10",
"b",
"a/10",
"a",
"10",
"if(a%3==0){\n sb.append(\" \");\n sb.append(a);\n }else{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }",
"a%3==0",
"a%3",
"a",
"3",
"0",
"{\n sb.append(\" \");\n sb.append(a);\n }",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"sb.append(a)",
"sb.append",
"sb",
"a",
"{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }",
"b = a",
"b",
"a",
"while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }",
"b!=0",
"b",
"0",
"{\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }",
"if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }",
"b%10==3",
"b%10",
"b",
"10",
"3",
"{\n sb.append(\" \");\n sb.append(a);\n break;\n }",
"sb.append(\" \")",
"sb.append",
"sb",
"\" \"",
"sb.append(a)",
"sb.append",
"sb",
"a",
"break;",
"b /= 10",
"b",
"10",
"a++",
"a",
"System.out.println(sb)",
"System.out.println",
"System.out",
"System",
"System.out",
"sb",
"String args[]",
"args",
"public class Main {\n\n\tpublic static void main(String args[])throws IOException{\n// BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n// int x = Integer.parseInt(br.readLine());\n\t\tScanner scan = new Scanner(System.in);\n\t\tint x = scan.nextInt();\n StringBuilder sb = new StringBuilder();\n int count=0;\n int a=1,b;\n if(x>=3 && x<=10000){\n for(; count<x; count++){\n b = a/10;\n if(a%3==0){\n sb.append(\" \");\n sb.append(a);\n }else{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }\n a++;\n }\n }\n System.out.println(sb);\n }\n}",
"public class Main {\n\n\tpublic static void main(String args[])throws IOException{\n// BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n// int x = Integer.parseInt(br.readLine());\n\t\tScanner scan = new Scanner(System.in);\n\t\tint x = scan.nextInt();\n StringBuilder sb = new StringBuilder();\n int count=0;\n int a=1,b;\n if(x>=3 && x<=10000){\n for(; count<x; count++){\n b = a/10;\n if(a%3==0){\n sb.append(\" \");\n sb.append(a);\n }else{\n b = a;\n while(b!=0){\n if(b%10==3){\n sb.append(\" \");\n sb.append(a);\n break;\n }\n b /= 10;\n }\n }\n a++;\n }\n }\n System.out.println(sb);\n }\n}",
"Main"
] |
import java.io.IOException;
import java.util.Scanner;
public class Main {
public static void main(String args[])throws IOException{
// BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
// int x = Integer.parseInt(br.readLine());
Scanner scan = new Scanner(System.in);
int x = scan.nextInt();
StringBuilder sb = new StringBuilder();
int count=0;
int a=1,b;
if(x>=3 && x<=10000){
for(; count<x; count++){
b = a/10;
if(a%3==0){
sb.append(" ");
sb.append(a);
}else{
b = a;
while(b!=0){
if(b%10==3){
sb.append(" ");
sb.append(a);
break;
}
b /= 10;
}
}
a++;
}
}
System.out.println(sb);
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
41,
13,
41,
13,
20,
38,
5,
13,
30,
4,
18,
18,
13,
13,
13,
5,
13,
30,
4,
18,
18,
13,
13,
13,
30,
0,
13,
4,
18,
13,
0,
13,
4,
18,
13,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
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
],
[
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
],
[
14,
17
],
[
17,
18
],
[
14,
19
],
[
19,
20
],
[
19,
21
],
[
14,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
25,
26
],
[
26,
27
],
[
27,
28
],
[
28,
29
],
[
28,
30
],
[
26,
31
],
[
22,
32
],
[
32,
33
],
[
32,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
37,
38
],
[
37,
39
],
[
35,
40
],
[
22,
41
],
[
41,
42
],
[
42,
43
],
[
42,
44
],
[
44,
45
],
[
45,
46
],
[
41,
47
],
[
47,
48
],
[
47,
49
],
[
49,
50
],
[
50,
51
],
[
49,
52
],
[
41,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
53,
58
],
[
58,
59
],
[
58,
60
],
[
53,
61
],
[
61,
62
],
[
62,
63
],
[
53,
64
],
[
65,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
66,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
84,
87
],
[
82,
88
],
[
81,
89
],
[
89,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
92,
94
],
[
90,
95
],
[
95,
96
],
[
95,
97
],
[
41,
98
],
[
98,
99
],
[
99,
100
],
[
100,
101
],
[
100,
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) {\n\t\tString line;\n\t\tint n;\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\ttry {\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\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}\n\t\t\t\telse if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tString line;\n\t\tint n;\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\ttry {\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\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}\n\t\t\t\telse if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\tString line;\n\t\tint n;\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\ttry {\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\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}\n\t\t\t\telse if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"main",
"{\n\t\tString line;\n\t\tint n;\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\ttry {\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\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}\n\t\t\t\telse if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}",
"String line;",
"line",
"int n;",
"n",
"BufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));",
"reader",
"new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in))",
"try {\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\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}\n\t\t\t\telse if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t}",
"NumberFormatException e",
"{\n\t\t\tSystem.out.println(e);\n\t\t}",
"System.out.println(e)",
"System.out.println",
"System.out",
"System",
"System.out",
"e",
"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\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}\n\t\t\t\telse if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t}",
"line = reader.readLine()",
"line",
"reader.readLine()",
"reader.readLine",
"reader",
"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}\n\t\t\t\telse if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\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}\n\t\t\t\telse if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\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}\n\t\t\t\telse if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\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}\n\t\t\t\telse if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\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",
"if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}",
"String.valueOf(i).contains(\"3\")",
"String.valueOf(i).contains",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"\"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",
"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\tString line;\n\t\tint n;\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\ttry {\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\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}\n\t\t\t\telse if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tString line;\n\t\tint n;\n\n\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(\n\t\t\t\tSystem.in));\n\t\ttry {\n\t\t\tline = reader.readLine();\n\t\t\tn = Integer.parseInt(line);\n\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}\n\t\t\t\telse if(String.valueOf(i).contains(\"3\")){\n\t\t\t\t\tSystem.out.print(\" \"+i);\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println();\n\t\t} catch (NumberFormatException e) {\n\t\t\tSystem.out.println(e);\n\t\t} catch (IOException e) {\n\t\t\tSystem.out.println(e);\n\t\t}\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) {
String line;
int n;
BufferedReader reader = new BufferedReader(new InputStreamReader(
System.in));
try {
line = reader.readLine();
n = Integer.parseInt(line);
for(int i=1;i<=n;i++){
if(i%3==0){
System.out.print(" "+i);
}
else if(String.valueOf(i).contains("3")){
System.out.print(" "+i);
}
}
System.out.println();
} catch (NumberFormatException e) {
System.out.println(e);
} catch (IOException e) {
System.out.println(e);
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
20,
41,
13,
20,
41,
13,
17,
12,
13,
30,
41,
13,
4,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
9,
42,
2,
13,
17,
30,
41,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
0,
13,
17,
14,
13,
3,
0,
13,
17,
4,
18,
13,
12,
13,
30,
4,
18,
20,
23,
13,
12,
13,
30,
0,
13,
17,
38,
5,
13,
30,
37,
20,
30,
29,
4,
18,
13,
12,
13,
30,
14,
2,
2,
13,
17,
40,
4,
18,
13,
30,
0,
13,
20,
29,
4,
18,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
12,
13,
30,
29,
4,
18,
13,
4,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
161,
8
],
[
161,
9
],
[
9,
10
],
[
9,
11
],
[
161,
12
],
[
12,
13
],
[
12,
14
],
[
161,
15
],
[
15,
16
],
[
15,
17
],
[
161,
18
],
[
18,
19
],
[
18,
20
],
[
20,
21
],
[
21,
22
],
[
21,
23
],
[
23,
24
],
[
20,
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
],
[
37,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
42,
46
],
[
41,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
48,
51
],
[
51,
52
],
[
51,
53
],
[
47,
54
],
[
37,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
59,
60
],
[
60,
61
],
[
60,
62
],
[
59,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
63,
69
],
[
69,
70
],
[
70,
71
],
[
71,
72
],
[
70,
73
],
[
73,
74
],
[
73,
75
],
[
69,
76
],
[
76,
77
],
[
76,
78
],
[
59,
79
],
[
79,
80
],
[
79,
81
],
[
59,
82
],
[
82,
83
],
[
82,
84
],
[
20,
85
],
[
85,
86
],
[
86,
87
],
[
161,
88
],
[
88,
89
],
[
88,
90
],
[
90,
91
],
[
91,
92
],
[
92,
93
],
[
88,
94
],
[
94,
95
],
[
161,
96
],
[
96,
97
],
[
96,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
98,
102
],
[
102,
103
],
[
103,
104
],
[
103,
105
],
[
105,
106
],
[
106,
107
],
[
102,
108
],
[
108,
109
],
[
109,
110
],
[
110,
111
],
[
111,
112
],
[
161,
113
],
[
113,
114
],
[
113,
115
],
[
115,
116
],
[
116,
117
],
[
117,
118
],
[
118,
119
],
[
118,
120
],
[
117,
121
],
[
121,
122
],
[
122,
123
],
[
123,
124
],
[
116,
125
],
[
125,
126
],
[
126,
127
],
[
126,
128
],
[
115,
129
],
[
129,
130
],
[
130,
131
],
[
131,
132
],
[
161,
133
],
[
133,
134
],
[
133,
135
],
[
135,
136
],
[
136,
137
],
[
137,
138
],
[
138,
139
],
[
137,
140
],
[
140,
141
],
[
161,
142
],
[
142,
143
],
[
142,
144
],
[
144,
145
],
[
145,
146
],
[
146,
147
],
[
147,
148
],
[
146,
149
],
[
149,
150
],
[
161,
151
],
[
151,
152
],
[
151,
153
],
[
153,
154
],
[
154,
155
],
[
155,
156
],
[
156,
157
],
[
155,
158
],
[
158,
159
],
[
0,
160
],
[
160,
161
],
[
160,
162
]
] | [
"import java.io.*;\nimport java.util.*;\n\npublic class Main {\n void run() {\n int N = readInt();\n for (int i = 1; i <= N; i++) {\n int x = i;\n if (x % 3 == 0) {\n sysout.print(\" \" + i);\n continue;\n }\n while (x > 0) {\n boolean end = false;\n if (x % 10 == 3) {\n sysout.print(\" \" + i);\n end = true;\n }\n if (end) break;\n x /= 10;\n }\n }\n sysout.println();\n }\n\n public static void main(String[] args) {\n new Main().run();\n }\n\n // flush automatically iff you call `println` or `printf` or `format`.\n PrintWriter sysout = new PrintWriter(System.out, true);\n\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer buffer = null;\n\n String readLine() {\n buffer = null;\n try {\n return in.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n String read() {\n if (buffer == null || !buffer.hasMoreTokens()) {\n buffer = new StringTokenizer(readLine());\n }\n return buffer.nextToken();\n }\n\n int readInt() {\n return Integer.parseInt(read());\n }\n\n long readLong() {\n return Long.parseLong(read());\n }\n\n double readDouble() {\n return Double.parseDouble(read());\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n void run() {\n int N = readInt();\n for (int i = 1; i <= N; i++) {\n int x = i;\n if (x % 3 == 0) {\n sysout.print(\" \" + i);\n continue;\n }\n while (x > 0) {\n boolean end = false;\n if (x % 10 == 3) {\n sysout.print(\" \" + i);\n end = true;\n }\n if (end) break;\n x /= 10;\n }\n }\n sysout.println();\n }\n\n public static void main(String[] args) {\n new Main().run();\n }\n\n // flush automatically iff you call `println` or `printf` or `format`.\n PrintWriter sysout = new PrintWriter(System.out, true);\n\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer buffer = null;\n\n String readLine() {\n buffer = null;\n try {\n return in.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n String read() {\n if (buffer == null || !buffer.hasMoreTokens()) {\n buffer = new StringTokenizer(readLine());\n }\n return buffer.nextToken();\n }\n\n int readInt() {\n return Integer.parseInt(read());\n }\n\n long readLong() {\n return Long.parseLong(read());\n }\n\n double readDouble() {\n return Double.parseDouble(read());\n }\n}",
"Main",
"// flush automatically iff you call `println` or `printf` or `format`.\n PrintWriter sysout = new PrintWriter(System.out, true);",
"sysout",
"new PrintWriter(System.out, true)",
"BufferedReader in = new BufferedReader(new InputStreamReader(System.in));",
"in",
"new BufferedReader(new InputStreamReader(System.in))",
"StringTokenizer buffer = null;",
"buffer",
"null",
"void run() {\n int N = readInt();\n for (int i = 1; i <= N; i++) {\n int x = i;\n if (x % 3 == 0) {\n sysout.print(\" \" + i);\n continue;\n }\n while (x > 0) {\n boolean end = false;\n if (x % 10 == 3) {\n sysout.print(\" \" + i);\n end = true;\n }\n if (end) break;\n x /= 10;\n }\n }\n sysout.println();\n }",
"run",
"{\n int N = readInt();\n for (int i = 1; i <= N; i++) {\n int x = i;\n if (x % 3 == 0) {\n sysout.print(\" \" + i);\n continue;\n }\n while (x > 0) {\n boolean end = false;\n if (x % 10 == 3) {\n sysout.print(\" \" + i);\n end = true;\n }\n if (end) break;\n x /= 10;\n }\n }\n sysout.println();\n }",
"int N = readInt();",
"N",
"readInt()",
"readInt",
"for (int i = 1; i <= N; i++) {\n int x = i;\n if (x % 3 == 0) {\n sysout.print(\" \" + i);\n continue;\n }\n while (x > 0) {\n boolean end = false;\n if (x % 10 == 3) {\n sysout.print(\" \" + i);\n end = true;\n }\n if (end) break;\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) {\n sysout.print(\" \" + i);\n continue;\n }\n while (x > 0) {\n boolean end = false;\n if (x % 10 == 3) {\n sysout.print(\" \" + i);\n end = true;\n }\n if (end) break;\n x /= 10;\n }\n }",
"{\n int x = i;\n if (x % 3 == 0) {\n sysout.print(\" \" + i);\n continue;\n }\n while (x > 0) {\n boolean end = false;\n if (x % 10 == 3) {\n sysout.print(\" \" + i);\n end = true;\n }\n if (end) break;\n x /= 10;\n }\n }",
"int x = i;",
"x",
"i",
"if (x % 3 == 0) {\n sysout.print(\" \" + i);\n continue;\n }",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n sysout.print(\" \" + i);\n continue;\n }",
"sysout.print(\" \" + i)",
"sysout.print",
"sysout",
"\" \" + i",
"\" \"",
"i",
"continue;",
"while (x > 0) {\n boolean end = false;\n if (x % 10 == 3) {\n sysout.print(\" \" + i);\n end = true;\n }\n if (end) break;\n x /= 10;\n }",
"x > 0",
"x",
"0",
"{\n boolean end = false;\n if (x % 10 == 3) {\n sysout.print(\" \" + i);\n end = true;\n }\n if (end) break;\n x /= 10;\n }",
"boolean end = false;",
"end",
"false",
"if (x % 10 == 3) {\n sysout.print(\" \" + i);\n end = true;\n }",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n sysout.print(\" \" + i);\n end = true;\n }",
"sysout.print(\" \" + i)",
"sysout.print",
"sysout",
"\" \" + i",
"\" \"",
"i",
"end = true",
"end",
"true",
"if (end) break;",
"end",
"break;",
"x /= 10",
"x",
"10",
"sysout.println()",
"sysout.println",
"sysout",
"public static void main(String[] args) {\n new Main().run();\n }",
"main",
"{\n new Main().run();\n }",
"new Main().run()",
"new Main().run",
"new Main()",
"String[] args",
"args",
"String readLine() {\n buffer = null;\n try {\n return in.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"readLine",
"{\n buffer = null;\n try {\n return in.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }",
"buffer = null",
"buffer",
"null",
"try {\n return in.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }",
"catch (IOException e) {\n throw new RuntimeException(e);\n }",
"IOException e",
"{\n throw new RuntimeException(e);\n }",
"throw new RuntimeException(e);",
"new RuntimeException(e)",
"{\n return in.readLine();\n }",
"return in.readLine();",
"in.readLine()",
"in.readLine",
"in",
"String read() {\n if (buffer == null || !buffer.hasMoreTokens()) {\n buffer = new StringTokenizer(readLine());\n }\n return buffer.nextToken();\n }",
"read",
"{\n if (buffer == null || !buffer.hasMoreTokens()) {\n buffer = new StringTokenizer(readLine());\n }\n return buffer.nextToken();\n }",
"if (buffer == null || !buffer.hasMoreTokens()) {\n buffer = new StringTokenizer(readLine());\n }",
"buffer == null || !buffer.hasMoreTokens()",
"buffer == null",
"buffer",
"null",
"!buffer.hasMoreTokens()",
"buffer.hasMoreTokens()",
"buffer.hasMoreTokens",
"buffer",
"{\n buffer = new StringTokenizer(readLine());\n }",
"buffer = new StringTokenizer(readLine())",
"buffer",
"new StringTokenizer(readLine())",
"return buffer.nextToken();",
"buffer.nextToken()",
"buffer.nextToken",
"buffer",
"int readInt() {\n return Integer.parseInt(read());\n }",
"readInt",
"{\n return Integer.parseInt(read());\n }",
"return Integer.parseInt(read());",
"Integer.parseInt(read())",
"Integer.parseInt",
"Integer",
"read()",
"read",
"long readLong() {\n return Long.parseLong(read());\n }",
"readLong",
"{\n return Long.parseLong(read());\n }",
"return Long.parseLong(read());",
"Long.parseLong(read())",
"Long.parseLong",
"Long",
"read()",
"read",
"double readDouble() {\n return Double.parseDouble(read());\n }",
"readDouble",
"{\n return Double.parseDouble(read());\n }",
"return Double.parseDouble(read());",
"Double.parseDouble(read())",
"Double.parseDouble",
"Double",
"read()",
"read",
"public class Main {\n void run() {\n int N = readInt();\n for (int i = 1; i <= N; i++) {\n int x = i;\n if (x % 3 == 0) {\n sysout.print(\" \" + i);\n continue;\n }\n while (x > 0) {\n boolean end = false;\n if (x % 10 == 3) {\n sysout.print(\" \" + i);\n end = true;\n }\n if (end) break;\n x /= 10;\n }\n }\n sysout.println();\n }\n\n public static void main(String[] args) {\n new Main().run();\n }\n\n // flush automatically iff you call `println` or `printf` or `format`.\n PrintWriter sysout = new PrintWriter(System.out, true);\n\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer buffer = null;\n\n String readLine() {\n buffer = null;\n try {\n return in.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n String read() {\n if (buffer == null || !buffer.hasMoreTokens()) {\n buffer = new StringTokenizer(readLine());\n }\n return buffer.nextToken();\n }\n\n int readInt() {\n return Integer.parseInt(read());\n }\n\n long readLong() {\n return Long.parseLong(read());\n }\n\n double readDouble() {\n return Double.parseDouble(read());\n }\n}",
"public class Main {\n void run() {\n int N = readInt();\n for (int i = 1; i <= N; i++) {\n int x = i;\n if (x % 3 == 0) {\n sysout.print(\" \" + i);\n continue;\n }\n while (x > 0) {\n boolean end = false;\n if (x % 10 == 3) {\n sysout.print(\" \" + i);\n end = true;\n }\n if (end) break;\n x /= 10;\n }\n }\n sysout.println();\n }\n\n public static void main(String[] args) {\n new Main().run();\n }\n\n // flush automatically iff you call `println` or `printf` or `format`.\n PrintWriter sysout = new PrintWriter(System.out, true);\n\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n StringTokenizer buffer = null;\n\n String readLine() {\n buffer = null;\n try {\n return in.readLine();\n } catch (IOException e) {\n throw new RuntimeException(e);\n }\n }\n\n String read() {\n if (buffer == null || !buffer.hasMoreTokens()) {\n buffer = new StringTokenizer(readLine());\n }\n return buffer.nextToken();\n }\n\n int readInt() {\n return Integer.parseInt(read());\n }\n\n long readLong() {\n return Long.parseLong(read());\n }\n\n double readDouble() {\n return Double.parseDouble(read());\n }\n}",
"Main"
] | import java.io.*;
import java.util.*;
public class Main {
void run() {
int N = readInt();
for (int i = 1; i <= N; i++) {
int x = i;
if (x % 3 == 0) {
sysout.print(" " + i);
continue;
}
while (x > 0) {
boolean end = false;
if (x % 10 == 3) {
sysout.print(" " + i);
end = true;
}
if (end) break;
x /= 10;
}
}
sysout.println();
}
public static void main(String[] args) {
new Main().run();
}
// flush automatically iff you call `println` or `printf` or `format`.
PrintWriter sysout = new PrintWriter(System.out, true);
BufferedReader in = new BufferedReader(new InputStreamReader(System.in));
StringTokenizer buffer = null;
String readLine() {
buffer = null;
try {
return in.readLine();
} catch (IOException e) {
throw new RuntimeException(e);
}
}
String read() {
if (buffer == null || !buffer.hasMoreTokens()) {
buffer = new StringTokenizer(readLine());
}
return buffer.nextToken();
}
int readInt() {
return Integer.parseInt(read());
}
long readLong() {
return Long.parseLong(read());
}
double readDouble() {
return Double.parseDouble(read());
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
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,
30,
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
],
[
18,
19
],
[
8,
20
],
[
20,
21
],
[
20,
22
],
[
8,
23
],
[
23,
24
],
[
24,
25
],
[
25,
26
],
[
24,
27
],
[
23,
28
],
[
28,
29
],
[
29,
30
],
[
29,
31
],
[
28,
32
],
[
32,
33
],
[
33,
34
],
[
34,
35
],
[
34,
36
],
[
33,
37
],
[
32,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
39,
44
],
[
44,
45
],
[
44,
46
],
[
32,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
52,
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
],
[
59,
68
],
[
53,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
8,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
6,
79
],
[
79,
80
]
] | [
"import java.util.Scanner;\n\nclass Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.close();\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}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}while(x != 0);\n\t\t\t}\n\t\t}while( ++i <= n);\n\t\tSystem.out.print(\"\\n\");\n\n\t}\n\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.close();\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}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}while(x != 0);\n\t\t\t}\n\t\t}while( ++i <= n);\n\t\tSystem.out.print(\"\\n\");\n\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.close();\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}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}while(x != 0);\n\t\t\t}\n\t\t}while( ++i <= n);\n\t\tSystem.out.print(\"\\n\");\n\n\t}",
"main",
"{\n\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tscan.close();\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}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\n\t\t\t\t}while(x != 0);\n\t\t\t}\n\t\t}while( ++i <= n);\n\t\tSystem.out.print(\"\\n\");\n\n\t}",
"Scanner scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"scan.close()",
"scan.close",
"scan",
"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}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\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}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\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}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\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}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\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}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\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}else{\n\t\t\t\t\t\tx /= 10;\n\t\t\t\t\t}\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}else{\n\t\t\t\t\t\tx /= 10;\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\t\t\tx /= 10;\n\t\t\t\t\t}",
"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 scan = new Scanner(System.in);
int n = scan.nextInt();
scan.close();
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;
}else{
x /= 10;
}
}while(x != 0);
}
}while( ++i <= n);
System.out.print("\n");
}
} |
[
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,
30,
4,
18,
18,
13,
13,
17,
13,
4,
18,
18,
13,
13,
17,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
66,
5
],
[
66,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
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
],
[
49,
50
],
[
49,
51
],
[
47,
52
],
[
47,
53
],
[
8,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
54,
59
],
[
8,
60
],
[
60,
61
],
[
61,
62
],
[
6,
63
],
[
63,
64
],
[
0,
65
],
[
65,
66
],
[
65,
67
]
] | [
"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\tint n = scan.nextInt();\n\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tif(i % 3 == 0 || Integer.toString(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\tscan.close();\n\t}\n}",
"import java.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tif(i % 3 == 0 || Integer.toString(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\tscan.close();\n\t}\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\t\t\tif(i % 3 == 0 || Integer.toString(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\tscan.close();\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\t\t\tif(i % 3 == 0 || Integer.toString(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\tscan.close();\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\t\t\tif(i % 3 == 0 || Integer.toString(i).indexOf(\"3\") >= 0) {\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 <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\tif(i % 3 == 0 || Integer.toString(i).indexOf(\"3\") >= 0) {\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).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}",
"if(i % 3 == 0 || Integer.toString(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}",
"i % 3 == 0 || Integer.toString(i).indexOf(\"3\") >= 0",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"Integer.toString(i).indexOf(\"3\") >= 0",
"Integer.toString(i).indexOf(\"3\")",
"Integer.toString(i).indexOf",
"Integer.toString(i)",
"Integer.toString",
"Integer",
"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",
"System.out.println(\"\")",
"System.out.println",
"System.out",
"System",
"System.out",
"\"\"",
"scan.close()",
"scan.close",
"scan",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tif(i % 3 == 0 || Integer.toString(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\tscan.close();\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\n\t\tfor(int i = 1; i <= n; i++) {\n\t\t\tif(i % 3 == 0 || Integer.toString(i).indexOf(\"3\") >= 0) {\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.println(\"\");\n\n\t\tscan.close();\n\t}\n}",
"Main"
] | import java.util.Scanner;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int n = scan.nextInt();
for(int i = 1; i <= n; i++) {
if(i % 3 == 0 || Integer.toString(i).indexOf("3") >= 0) {
System.out.printf(" %d", i);
}
}
System.out.println("");
scan.close();
}
}
|
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
4,
18,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
30,
41,
13,
4,
18,
13,
17,
14,
2,
13,
40,
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
],
[
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
],
[
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
],
[
48,
49
],
[
48,
50
],
[
36,
51
],
[
51,
52
],
[
52,
53
],
[
52,
54
],
[
54,
55
],
[
55,
56
],
[
54,
57
],
[
51,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
61,
62
],
[
58,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
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;\npublic class Main {\n\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tfor(int a =1;a<=n;a++){\n\t\t\tString s = String.valueOf(a);\n\t\t\tif(a%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t}else{\n\t\t\t\tint t = s.indexOf(\"3\");\n\t\t\t\tif(t != -1){\n\t\t\t\t\tSystem.out.print(\" \"+a);\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\tpublic static void main(String[] args){\n\t\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tfor(int a =1;a<=n;a++){\n\t\t\tString s = String.valueOf(a);\n\t\t\tif(a%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t}else{\n\t\t\t\tint t = s.indexOf(\"3\");\n\t\t\t\tif(t != -1){\n\t\t\t\t\tSystem.out.print(\" \"+a);\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\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tfor(int a =1;a<=n;a++){\n\t\t\tString s = String.valueOf(a);\n\t\t\tif(a%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t}else{\n\t\t\t\tint t = s.indexOf(\"3\");\n\t\t\t\tif(t != -1){\n\t\t\t\t\tSystem.out.print(\" \"+a);\n\t\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 n = scan.nextInt();\n\t\tfor(int a =1;a<=n;a++){\n\t\t\tString s = String.valueOf(a);\n\t\t\tif(a%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t}else{\n\t\t\t\tint t = s.indexOf(\"3\");\n\t\t\t\tif(t != -1){\n\t\t\t\t\tSystem.out.print(\" \"+a);\n\t\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 n = scan.nextInt();",
"n",
"scan.nextInt()",
"scan.nextInt",
"scan",
"for(int a =1;a<=n;a++){\n\t\t\tString s = String.valueOf(a);\n\t\t\tif(a%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t}else{\n\t\t\t\tint t = s.indexOf(\"3\");\n\t\t\t\tif(t != -1){\n\t\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int a =1;",
"int a =1;",
"a",
"1",
"a<=n",
"a",
"n",
"a++",
"a++",
"a",
"{\n\t\t\tString s = String.valueOf(a);\n\t\t\tif(a%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t}else{\n\t\t\t\tint t = s.indexOf(\"3\");\n\t\t\t\tif(t != -1){\n\t\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tString s = String.valueOf(a);\n\t\t\tif(a%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t}else{\n\t\t\t\tint t = s.indexOf(\"3\");\n\t\t\t\tif(t != -1){\n\t\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"String s = String.valueOf(a);",
"s",
"String.valueOf(a)",
"String.valueOf",
"String",
"a",
"if(a%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t}else{\n\t\t\t\tint t = s.indexOf(\"3\");\n\t\t\t\tif(t != -1){\n\t\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t\t}\n\t\t\t}",
"a%3 == 0",
"a%3",
"a",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t}",
"System.out.print(\" \"+a)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+a",
"\" \"",
"a",
"{\n\t\t\t\tint t = s.indexOf(\"3\");\n\t\t\t\tif(t != -1){\n\t\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t\t}\n\t\t\t}",
"int t = s.indexOf(\"3\");",
"t",
"s.indexOf(\"3\")",
"s.indexOf",
"s",
"\"3\"",
"if(t != -1){\n\t\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t\t}",
"t != -1",
"t",
"-1",
"1",
"{\n\t\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t\t}",
"System.out.print(\" \"+a)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+a",
"\" \"",
"a",
"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\tint n = scan.nextInt();\n\t\tfor(int a =1;a<=n;a++){\n\t\t\tString s = String.valueOf(a);\n\t\t\tif(a%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t}else{\n\t\t\t\tint t = s.indexOf(\"3\");\n\t\t\t\tif(t != -1){\n\t\t\t\t\tSystem.out.print(\" \"+a);\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\tScanner scan = new Scanner(System.in);\n\t\tint n = scan.nextInt();\n\t\tfor(int a =1;a<=n;a++){\n\t\t\tString s = String.valueOf(a);\n\t\t\tif(a%3 == 0){\n\t\t\t\tSystem.out.print(\" \"+a);\n\t\t\t}else{\n\t\t\t\tint t = s.indexOf(\"3\");\n\t\t\t\tif(t != -1){\n\t\t\t\t\tSystem.out.print(\" \"+a);\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 scan = new Scanner(System.in);
int n = scan.nextInt();
for(int a =1;a<=n;a++){
String s = String.valueOf(a);
if(a%3 == 0){
System.out.print(" "+a);
}else{
int t = s.indexOf("3");
if(t != -1){
System.out.print(" "+a);
}
}
}
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,
17,
42,
2,
13,
13,
30,
41,
13,
4,
18,
13,
13,
14,
4,
18,
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,
40,
13,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
92,
5
],
[
92,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
19,
22
],
[
8,
23
],
[
23,
24
],
[
23,
25
],
[
8,
26
],
[
26,
27
],
[
27,
28
],
[
27,
29
],
[
26,
30
],
[
30,
31
],
[
31,
32
],
[
31,
33
],
[
33,
34
],
[
34,
35
],
[
33,
36
],
[
30,
37
],
[
37,
38
],
[
38,
39
],
[
39,
40
],
[
38,
41
],
[
37,
42
],
[
42,
43
],
[
43,
44
],
[
44,
45
],
[
45,
46
],
[
45,
47
],
[
43,
48
],
[
48,
49
],
[
48,
50
],
[
37,
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
],
[
68,
69
],
[
68,
70
],
[
67,
71
],
[
66,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
73,
78
],
[
78,
79
],
[
78,
80
],
[
30,
81
],
[
81,
82
],
[
8,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
83,
88
],
[
6,
89
],
[
89,
90
],
[
0,
91
],
[
91,
92
],
[
91,
93
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint n = Integer.parseInt(line);\n\n\t\tint i = 1;\n\n\t\twhile (i <= n) {\n\t\t\tString I = String.valueOf(i);\n\t\t\tif (I.matches(\".*3.*\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t}\n\t\t\ti++;\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\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint n = Integer.parseInt(line);\n\n\t\tint i = 1;\n\n\t\twhile (i <= n) {\n\t\t\tString I = String.valueOf(i);\n\t\t\tif (I.matches(\".*3.*\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint n = Integer.parseInt(line);\n\n\t\tint i = 1;\n\n\t\twhile (i <= n) {\n\t\t\tString I = String.valueOf(i);\n\t\t\tif (I.matches(\".*3.*\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}",
"main",
"{\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint n = Integer.parseInt(line);\n\n\t\tint i = 1;\n\n\t\twhile (i <= n) {\n\t\t\tString I = String.valueOf(i);\n\t\t\tif (I.matches(\".*3.*\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\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)",
"String line = sc.nextLine();",
"line",
"sc.nextLine()",
"sc.nextLine",
"sc",
"int n = Integer.parseInt(line);",
"n",
"Integer.parseInt(line)",
"Integer.parseInt",
"Integer",
"line",
"int i = 1;",
"i",
"1",
"while (i <= n) {\n\t\t\tString I = String.valueOf(i);\n\t\t\tif (I.matches(\".*3.*\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t}\n\t\t\ti++;\n\t\t}",
"i <= n",
"i",
"n",
"{\n\t\t\tString I = String.valueOf(i);\n\t\t\tif (I.matches(\".*3.*\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t}\n\t\t\ti++;\n\t\t}",
"String I = String.valueOf(i);",
"I",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"if (I.matches(\".*3.*\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t}",
"I.matches(\".*3.*\")",
"I.matches",
"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",
"if (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\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\n\t\t\t}",
"i % 10 == 3",
"i % 10",
"i",
"10",
"3",
"{\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"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\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint n = Integer.parseInt(line);\n\n\t\tint i = 1;\n\n\t\twhile (i <= n) {\n\t\t\tString I = String.valueOf(i);\n\t\t\tif (I.matches(\".*3.*\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.println(\"\");\n\t}\n\n}",
"public class Main {\n\n\tpublic static void main(String[] args) {\n\n\t\tScanner sc = new Scanner(System.in);\n\t\tString line = sc.nextLine();\n\t\tint n = Integer.parseInt(line);\n\n\t\tint i = 1;\n\n\t\twhile (i <= n) {\n\t\t\tString I = String.valueOf(i);\n\t\t\tif (I.matches(\".*3.*\")) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}\n\n\t\t\telse if (i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t} else if (i % 10 == 3) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\n\t\t\t}\n\t\t\ti++;\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);
String line = sc.nextLine();
int n = Integer.parseInt(line);
int i = 1;
while (i <= n) {
String I = String.valueOf(i);
if (I.matches(".*3.*")) {
System.out.print(" " + i);
}
else if (i % 3 == 0) {
System.out.print(" " + i);
} else if (i % 10 == 3) {
System.out.print(" " + i);
}
i++;
}
System.out.println("");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
20,
17,
0,
18,
13,
17,
4,
18,
13,
41,
13,
17,
41,
13,
17,
41,
13,
17,
11,
1,
41,
13,
17,
2,
13,
18,
13,
17,
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,
30,
0,
13,
2,
13,
13,
0,
13,
2,
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
],
[
112,
11
],
[
112,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
15,
17
],
[
14,
18
],
[
18,
19
],
[
18,
20
],
[
14,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
22,
26
],
[
26,
27
],
[
27,
28
],
[
14,
29
],
[
29,
30
],
[
29,
31
],
[
14,
32
],
[
32,
33
],
[
32,
34
],
[
14,
35
],
[
35,
36
],
[
35,
37
],
[
14,
38
],
[
38,
39
],
[
39,
40
],
[
40,
41
],
[
40,
42
],
[
38,
43
],
[
43,
44
],
[
43,
45
],
[
45,
46
],
[
45,
47
],
[
38,
48
],
[
48,
49
],
[
49,
50
],
[
38,
51
],
[
52,
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
],
[
65,
66
],
[
65,
67
],
[
63,
68
],
[
68,
69
],
[
68,
70
],
[
56,
71
],
[
71,
72
],
[
72,
73
],
[
73,
74
],
[
73,
75
],
[
72,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
79,
80
],
[
79,
81
],
[
78,
82
],
[
77,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
86,
87
],
[
86,
88
],
[
84,
89
],
[
89,
90
],
[
89,
91
],
[
83,
92
],
[
77,
93
],
[
93,
94
],
[
94,
95
],
[
94,
96
],
[
96,
97
],
[
96,
98
],
[
93,
99
],
[
99,
100
],
[
99,
101
],
[
101,
102
],
[
101,
103
],
[
14,
104
],
[
104,
105
],
[
105,
106
],
[
106,
107
],
[
106,
108
],
[
12,
109
],
[
109,
110
],
[
0,
111
],
[
111,
112
],
[
111,
113
]
] | [
"import java.text.*;\nimport java.math.*;\nimport java.util.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] num= new int[1];\n\n\t\tnum[0] = scan.nextInt();\n\t\tint hako = 0;\n\t\tint keta = 1;\n\t\tint w = 1;\n\t\tfor(int i = 1;i <= num[0]; i++) {\n\t\t\tint x = i;\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else {\n\t\t\t\t/*while(true) {\n\t\t\t\t\tif(i / w == 0) break;\n\t\t\t\t\tketa++;\n\t\t\t\t\tw = w * 10;\n\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\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.text.*;",
"text.*",
"java",
"import java.math.*;",
"math.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] num= new int[1];\n\n\t\tnum[0] = scan.nextInt();\n\t\tint hako = 0;\n\t\tint keta = 1;\n\t\tint w = 1;\n\t\tfor(int i = 1;i <= num[0]; i++) {\n\t\t\tint x = i;\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else {\n\t\t\t\t/*while(true) {\n\t\t\t\t\tif(i / w == 0) break;\n\t\t\t\t\tketa++;\n\t\t\t\t\tw = w * 10;\n\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\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\tScanner scan = new Scanner(System.in);\n\t\tint[] num= new int[1];\n\n\t\tnum[0] = scan.nextInt();\n\t\tint hako = 0;\n\t\tint keta = 1;\n\t\tint w = 1;\n\t\tfor(int i = 1;i <= num[0]; i++) {\n\t\t\tint x = i;\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else {\n\t\t\t\t/*while(true) {\n\t\t\t\t\tif(i / w == 0) break;\n\t\t\t\t\tketa++;\n\t\t\t\t\tw = w * 10;\n\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\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\tScanner scan = new Scanner(System.in);\n\t\tint[] num= new int[1];\n\n\t\tnum[0] = scan.nextInt();\n\t\tint hako = 0;\n\t\tint keta = 1;\n\t\tint w = 1;\n\t\tfor(int i = 1;i <= num[0]; i++) {\n\t\t\tint x = i;\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else {\n\t\t\t\t/*while(true) {\n\t\t\t\t\tif(i / w == 0) break;\n\t\t\t\t\tketa++;\n\t\t\t\t\tw = w * 10;\n\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\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 scan = new Scanner(System.in);",
"scan",
"new Scanner(System.in)",
"int[] num= new int[1];",
"num",
"new int[1]",
"1",
"num[0] = scan.nextInt()",
"num[0]",
"num",
"0",
"scan.nextInt()",
"scan.nextInt",
"scan",
"int hako = 0;",
"hako",
"0",
"int keta = 1;",
"keta",
"1",
"int w = 1;",
"w",
"1",
"for(int i = 1;i <= num[0]; i++) {\n\t\t\tint x = i;\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else {\n\t\t\t\t/*while(true) {\n\t\t\t\t\tif(i / w == 0) break;\n\t\t\t\t\tketa++;\n\t\t\t\t\tw = w * 10;\n\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\n\t\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 <= num[0]",
"i",
"num[0]",
"num",
"0",
"i++",
"i++",
"i",
"{\n\t\t\tint x = i;\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else {\n\t\t\t\t/*while(true) {\n\t\t\t\t\tif(i / w == 0) break;\n\t\t\t\t\tketa++;\n\t\t\t\t\tw = w * 10;\n\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"{\n\t\t\tint x = i;\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else {\n\t\t\t\t/*while(true) {\n\t\t\t\t\tif(i / w == 0) break;\n\t\t\t\t\tketa++;\n\t\t\t\t\tw = w * 10;\n\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}\n\t\t\t}\n\t\t}",
"int x = i;",
"x",
"i",
"if(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else {\n\t\t\t\t/*while(true) {\n\t\t\t\t\tif(i / w == 0) break;\n\t\t\t\t\tketa++;\n\t\t\t\t\tw = w * 10;\n\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\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.print(\" \" + i);\n\t\t\t}",
"System.out.print(\" \" + i)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\t/*while(true) {\n\t\t\t\t\tif(i / w == 0) break;\n\t\t\t\t\tketa++;\n\t\t\t\t\tw = w * 10;\n\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\n\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\n\t\t\t\t\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\n\t\t\t\t\t\n\t\t\t\t}",
"if(x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}",
"x % 10 == 3",
"x % 10",
"x",
"10",
"3",
"{\n\t\t\t\t\t\tSystem.out.print(\" \" + i);\t\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\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}",
"hako = x /w",
"hako",
"x /w",
"x",
"w",
"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\tpublic static void main(String[] args) {\n\t\tScanner scan = new Scanner(System.in);\n\t\tint[] num= new int[1];\n\n\t\tnum[0] = scan.nextInt();\n\t\tint hako = 0;\n\t\tint keta = 1;\n\t\tint w = 1;\n\t\tfor(int i = 1;i <= num[0]; i++) {\n\t\t\tint x = i;\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else {\n\t\t\t\t/*while(true) {\n\t\t\t\t\tif(i / w == 0) break;\n\t\t\t\t\tketa++;\n\t\t\t\t\tw = w * 10;\n\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\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\tScanner scan = new Scanner(System.in);\n\t\tint[] num= new int[1];\n\n\t\tnum[0] = scan.nextInt();\n\t\tint hako = 0;\n\t\tint keta = 1;\n\t\tint w = 1;\n\t\tfor(int i = 1;i <= num[0]; i++) {\n\t\t\tint x = i;\n\t\t\tif(i % 3 == 0) {\n\t\t\t\tSystem.out.print(\" \" + i);\n\t\t\t}else {\n\t\t\t\t/*while(true) {\n\t\t\t\t\tif(i / w == 0) break;\n\t\t\t\t\tketa++;\n\t\t\t\t\tw = w * 10;\n\t\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);\t\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}else {\n\t\t\t\t\t\thako = x /w;\n\t\t\t\t\t\tx = x/10;\n\t\t\t\t\t}\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.text.*;
import java.math.*;
import java.util.*;
public class Main {
public static void main(String[] args) {
Scanner scan = new Scanner(System.in);
int[] num= new int[1];
num[0] = scan.nextInt();
int hako = 0;
int keta = 1;
int w = 1;
for(int i = 1;i <= num[0]; i++) {
int x = i;
if(i % 3 == 0) {
System.out.print(" " + i);
}else {
/*while(true) {
if(i / w == 0) break;
keta++;
w = w * 10;
}*/
while(x != 0) {
if(x % 10 == 3) {
System.out.print(" " + i);
break;
}else {
hako = x /w;
x = x/10;
}
}
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
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,
30,
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,
4,
18,
13,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
105,
8
],
[
105,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
13,
14
],
[
13,
15
],
[
15,
16
],
[
16,
17
],
[
17,
18
],
[
12,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
19,
23
],
[
23,
24
],
[
23,
25
],
[
19,
26
],
[
26,
27
],
[
26,
28
],
[
28,
29
],
[
29,
30
],
[
28,
31
],
[
31,
32
],
[
32,
33
],
[
19,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
34,
39
],
[
39,
40
],
[
39,
41
],
[
34,
42
],
[
42,
43
],
[
43,
44
],
[
34,
45
],
[
46,
46
],
[
46,
47
],
[
47,
48
],
[
48,
49
],
[
49,
50
],
[
49,
51
],
[
48,
52
],
[
47,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
57,
58
],
[
56,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
60,
63
],
[
47,
64
],
[
64,
65
],
[
65,
66
],
[
65,
67
],
[
64,
68
],
[
68,
69
],
[
69,
70
],
[
69,
71
],
[
68,
72
],
[
72,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
82,
85
],
[
80,
86
],
[
86,
87
],
[
87,
88
],
[
86,
89
],
[
79,
90
],
[
72,
91
],
[
91,
92
],
[
91,
93
],
[
19,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
96,
98
],
[
94,
99
],
[
99,
100
],
[
100,
101
],
[
9,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"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 input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\tfor (int i = 3; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t} else {\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\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 input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\tfor (int i = 3; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t} else {\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\tfor (int i = 3; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t} else {\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"main",
"{\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\tfor (int i = 3; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t} else {\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}",
"try {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\tfor (int i = 3; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t} else {\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(answer.toString());\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\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\tfor (int i = 3; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t} else {\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(answer.toString());\n\t\t}",
"BufferedReader input = new BufferedReader(new InputStreamReader(System.in));",
"input",
"new BufferedReader(new InputStreamReader(System.in))",
"StringBuilder answer = new StringBuilder();",
"answer",
"new StringBuilder()",
"int n = Integer.parseInt(input.readLine());",
"n",
"Integer.parseInt(input.readLine())",
"Integer.parseInt",
"Integer",
"input.readLine()",
"input.readLine",
"input",
"for (int i = 3; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t} else {\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"int i = 3;",
"int i = 3;",
"i",
"3",
"i <= n",
"i",
"n",
"i++",
"i++",
"i",
"{\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t} else {\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\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\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t} else {\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"if (i % 3 == 0) {\n\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t} else {\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}\n\t\t\t\t}",
"i % 3 == 0",
"i % 3",
"i",
"3",
"0",
"{\n\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t}",
"answer.append(\" \").append(String.valueOf(i))",
"answer.append(\" \").append",
"answer.append(\" \")",
"answer.append",
"answer",
"\" \"",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"{\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}\n\t\t\t\t}",
"int tmp = i;",
"tmp",
"i",
"while (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}",
"tmp != 0",
"tmp",
"0",
"{\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}",
"if (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"tmp % 10 == 3",
"tmp % 10",
"tmp",
"10",
"3",
"{\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}",
"answer.append(\" \").append(String.valueOf(i))",
"answer.append(\" \").append",
"answer.append(\" \")",
"answer.append",
"answer",
"\" \"",
"String.valueOf(i)",
"String.valueOf",
"String",
"i",
"break;",
"tmp /= 10",
"tmp",
"10",
"System.out.println(answer.toString())",
"System.out.println",
"System.out",
"System",
"System.out",
"answer.toString()",
"answer.toString",
"answer",
"String[] args",
"args",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\tfor (int i = 3; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t} else {\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader input = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tStringBuilder answer = new StringBuilder();\n\t\t\tint n = Integer.parseInt(input.readLine());\n\t\t\tfor (int i = 3; i <= n; i++) {\n\t\t\t\tif (i % 3 == 0) {\n\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t} else {\n\t\t\t\t\tint tmp = i;\n\t\t\t\t\twhile (tmp != 0) {\n\t\t\t\t\t\tif (tmp % 10 == 3) {\n\t\t\t\t\t\t\tanswer.append(\" \").append(String.valueOf(i));\n\t\t\t\t\t\t\tbreak;\n\t\t\t\t\t\t}\n\t\t\t\t\t\ttmp /= 10;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t\tSystem.out.println(answer.toString());\n\t\t} catch (Exception e) {\n\t\t\te.printStackTrace();\n\t\t}\n\n\t}\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
BufferedReader input = new BufferedReader(new InputStreamReader(System.in));
StringBuilder answer = new StringBuilder();
int n = Integer.parseInt(input.readLine());
for (int i = 3; i <= n; i++) {
if (i % 3 == 0) {
answer.append(" ").append(String.valueOf(i));
} else {
int tmp = i;
while (tmp != 0) {
if (tmp % 10 == 3) {
answer.append(" ").append(String.valueOf(i));
break;
}
tmp /= 10;
}
}
}
System.out.println(answer.toString());
} catch (Exception e) {
e.printStackTrace();
}
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
41,
13,
41,
13,
41,
13,
11,
1,
0,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
0,
13,
2,
13,
17,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
13,
14,
2,
2,
2,
2,
2,
13,
17,
17,
2,
2,
13,
17,
17,
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
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
111,
8
],
[
111,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
11,
20
],
[
20,
21
],
[
11,
22
],
[
22,
23
],
[
11,
24
],
[
24,
25
],
[
11,
26
],
[
26,
27
],
[
11,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
30,
32
],
[
28,
33
],
[
33,
34
],
[
33,
35
],
[
28,
36
],
[
36,
37
],
[
37,
38
],
[
28,
39
],
[
40,
40
],
[
40,
41
],
[
41,
42
],
[
41,
43
],
[
43,
44
],
[
43,
45
],
[
40,
46
],
[
46,
47
],
[
46,
48
],
[
48,
49
],
[
48,
50
],
[
40,
51
],
[
51,
52
],
[
51,
53
],
[
53,
54
],
[
53,
55
],
[
40,
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
],
[
63,
69
],
[
56,
70
],
[
70,
71
],
[
73,
72
],
[
84,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
75,
77
],
[
74,
78
],
[
73,
79
],
[
79,
80
],
[
80,
81
],
[
80,
82
],
[
79,
83
],
[
84,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
73,
89
],
[
89,
90
],
[
90,
91
],
[
90,
92
],
[
89,
93
],
[
70,
94
],
[
94,
95
],
[
95,
96
],
[
96,
97
],
[
97,
98
],
[
97,
99
],
[
95,
100
],
[
95,
101
],
[
11,
102
],
[
102,
103
],
[
103,
104
],
[
104,
105
],
[
104,
106
],
[
102,
107
],
[
9,
108
],
[
108,
109
],
[
0,
110
],
[
110,
111
],
[
110,
112
]
] | [
"import java.io.*;\nimport java.util.*;\n\npublic class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint i,three,th_h,th_t;\n\t\tfor(i=3;i<=x;i++)\n\t\t{\n\t\t\tthree=i/10;\n\t\t\tth_h=i/100;\n\t\t\tth_t=i/1000;\n\t\t\tif(i%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if((three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3))\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint i,three,th_h,th_t;\n\t\tfor(i=3;i<=x;i++)\n\t\t{\n\t\t\tthree=i/10;\n\t\t\tth_h=i/100;\n\t\t\tth_t=i/1000;\n\t\t\tif(i%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if((three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3))\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"Main",
"public static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint i,three,th_h,th_t;\n\t\tfor(i=3;i<=x;i++)\n\t\t{\n\t\t\tthree=i/10;\n\t\t\tth_h=i/100;\n\t\t\tth_t=i/1000;\n\t\t\tif(i%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if((three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3))\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",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 x = sc.nextInt();\n\t\tint i,three,th_h,th_t;\n\t\tfor(i=3;i<=x;i++)\n\t\t{\n\t\t\tthree=i/10;\n\t\t\tth_h=i/100;\n\t\t\tth_t=i/1000;\n\t\t\tif(i%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if((three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3))\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",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 x = sc.nextInt();",
"x",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int i",
"i",
"three",
"three",
"th_h",
"th_h",
"th_t;",
"th_t",
"for(i=3;i<=x;i++)\n\t\t{\n\t\t\tthree=i/10;\n\t\t\tth_h=i/100;\n\t\t\tth_t=i/1000;\n\t\t\tif(i%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if((three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3))\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}",
"i=3;",
"i=3",
"i",
"3",
"i<=x",
"i",
"x",
"i++",
"i++",
"i",
"{\n\t\t\tthree=i/10;\n\t\t\tth_h=i/100;\n\t\t\tth_t=i/1000;\n\t\t\tif(i%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if((three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3))\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}",
"{\n\t\t\tthree=i/10;\n\t\t\tth_h=i/100;\n\t\t\tth_t=i/1000;\n\t\t\tif(i%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if((three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3))\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}",
"three=i/10",
"three",
"i/10",
"i",
"10",
"th_h=i/100",
"th_h",
"i/100",
"i",
"100",
"th_t=i/1000",
"th_t",
"i/1000",
"i",
"1000",
"if(i%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if((three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3))\n\t\t\t{\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((three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3))\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}",
"(three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3)",
"(th_t%10==3)",
"(three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3)",
"(three%10==3)",
"three%10",
"three",
"10",
"3",
"(th_h%10==3)",
"th_h%10",
"th_h",
"10",
"3",
"(th_t%10==3)",
"th_t%10",
"th_t",
"10",
"3",
"(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",
"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)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint i,three,th_h,th_t;\n\t\tfor(i=3;i<=x;i++)\n\t\t{\n\t\t\tthree=i/10;\n\t\t\tth_h=i/100;\n\t\t\tth_t=i/1000;\n\t\t\tif(i%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if((three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3))\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"public class Main\n{\n\tpublic static void main(String[] args)\n\t{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint x = sc.nextInt();\n\t\tint i,three,th_h,th_t;\n\t\tfor(i=3;i<=x;i++)\n\t\t{\n\t\t\tthree=i/10;\n\t\t\tth_h=i/100;\n\t\t\tth_t=i/1000;\n\t\t\tif(i%3==0)\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t\telse if((three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3))\n\t\t\t{\n\t\t\t\tSystem.out.printf(\" %d\",i);\n\t\t\t}\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"Main"
] | import java.io.*;
import java.util.*;
public class Main
{
public static void main(String[] args)
{
Scanner sc = new Scanner(System.in);
int x = sc.nextInt();
int i,three,th_h,th_t;
for(i=3;i<=x;i++)
{
three=i/10;
th_h=i/100;
th_t=i/1000;
if(i%3==0)
{
System.out.printf(" %d",i);
}
else if((three%10==3)||(th_h%10==3)||(th_t%10==3)||(i%10==3))
{
System.out.printf(" %d",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,
13,
13,
30,
14,
2,
2,
2,
13,
17,
17,
4,
18,
4,
18,
13,
13,
17,
30,
4,
18,
13,
13,
4,
18,
18,
13,
13,
17,
13,
40,
13,
4,
18,
18,
13,
13,
17,
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
],
[
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
],
[
40,
43
],
[
39,
44
],
[
44,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
44,
49
],
[
44,
50
],
[
24,
51
],
[
51,
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.*;\n\npublic class Main {\n\tpublic static void main(String[] args) {\n\t\t\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\tInteger.valueOf(i);\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main {\n\tpublic static void main(String[] args) {\n\t\t\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\tInteger.valueOf(i);\n\t\t\t\tSystem.out.printf(\" %d\", i);\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\t\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\tInteger.valueOf(i);\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\n\t}",
"main",
"{\n\t\t\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\tInteger.valueOf(i);\n\t\t\t\tSystem.out.printf(\" %d\", i);\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 i = 3;",
"i",
"3",
"while(i <= n) {\n\t\t\tif(i % 3 == 0 || String.valueOf(i).contains(\"3\")) {\n\t\t\t\tInteger.valueOf(i);\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\tInteger.valueOf(i);\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\tInteger.valueOf(i);\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\tInteger.valueOf(i);\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}",
"Integer.valueOf(i)",
"Integer.valueOf",
"Integer",
"i",
"System.out.printf(\" %d\", i)",
"System.out.printf",
"System.out",
"System",
"System.out",
"\" %d\"",
"i",
"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\t\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\tInteger.valueOf(i);\n\t\t\t\tSystem.out.printf(\" %d\", i);\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\t\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\tInteger.valueOf(i);\n\t\t\t\tSystem.out.printf(\" %d\", i);\n\t\t\t}\n\t\t\ti++;\n\t\t}\n\t\tSystem.out.printf(\"\\n\");\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")) {
Integer.valueOf(i);
System.out.printf(" %d", i);
}
i++;
}
System.out.printf("\n");
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
4,
13,
4,
18,
20,
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,
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,
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
],
[
11,
12
],
[
12,
13
],
[
6,
14
],
[
14,
15
],
[
87,
16
],
[
16,
17
],
[
16,
18
],
[
18,
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
],
[
51,
53
],
[
53,
54
],
[
54,
55
],
[
55,
56
],
[
56,
57
],
[
56,
58
],
[
55,
59
],
[
54,
60
],
[
60,
61
],
[
61,
62
],
[
62,
63
],
[
63,
64
],
[
63,
65
],
[
61,
66
],
[
66,
67
],
[
66,
68
],
[
60,
69
],
[
53,
70
],
[
70,
71
],
[
70,
72
],
[
53,
73
],
[
73,
74
],
[
74,
75
],
[
74,
76
],
[
73,
77
],
[
77,
78
],
[
18,
79
],
[
79,
80
],
[
80,
81
],
[
81,
82
],
[
81,
83
],
[
16,
84
],
[
84,
85
],
[
0,
86
],
[
86,
87
],
[
86,
88
]
] | [
"import java.util.Scanner;\n\npublic class Main {\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tcall(new Scanner(System.in).nextInt());\n\t}\n\n\tstatic 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 (true) {\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\tif (x == 0) {\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.util.Scanner;",
"Scanner",
"java.util",
"public class Main {\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tcall(new Scanner(System.in).nextInt());\n\t}\n\n\tstatic 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 (true) {\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\tif (x == 0) {\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",
"@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tcall(new Scanner(System.in).nextInt());\n\t}",
"main",
"{\n\t\tcall(new Scanner(System.in).nextInt());\n\t}",
"call(new Scanner(System.in).nextInt())",
"call",
"new Scanner(System.in).nextInt()",
"new Scanner(System.in).nextInt",
"new Scanner(System.in)",
"String[] args",
"args",
"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 (true) {\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\tif (x == 0) {\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}",
"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 (true) {\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\tif (x == 0) {\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}",
"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 (true) {\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\tif (x == 0) {\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 = 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 (true) {\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\tif (x == 0) {\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 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 (true) {\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\tif (x == 0) {\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 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 (true) {\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\tif (x == 0) {\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 % 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 (true) {\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\tif (x == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}",
"while (true) {\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\tif (x == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\n\t\t\t\t}",
"true",
"{\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\tif (x == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}\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 (x == 0) {\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"x == 0",
"x",
"0",
"{\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"break;",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"int n",
"n",
"public class Main {\n\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tcall(new Scanner(System.in).nextInt());\n\t}\n\n\tstatic 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 (true) {\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\tif (x == 0) {\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\t@SuppressWarnings(\"resource\")\n\tpublic static void main(String[] args) {\n\t\tcall(new Scanner(System.in).nextInt());\n\t}\n\n\tstatic 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 (true) {\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\tif (x == 0) {\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.util.Scanner;
public class Main {
@SuppressWarnings("resource")
public static void main(String[] args) {
call(new Scanner(System.in).nextInt());
}
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 (true) {
if (x % 10 == 3) {
System.out.print(" " + i);
break;
}
x /= 10;
if (x == 0) {
break;
}
}
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
12,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
4,
18,
13,
11,
1,
41,
13,
17,
2,
13,
13,
1,
40,
13,
30,
30,
41,
13,
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
] | [
[
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
],
[
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
],
[
36,
51
],
[
51,
52
],
[
52,
53
],
[
53,
54
],
[
53,
55
],
[
52,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
59,
60
],
[
59,
61
],
[
58,
62
],
[
57,
63
],
[
63,
64
],
[
64,
65
],
[
65,
66
],
[
66,
67
],
[
66,
68
],
[
64,
69
],
[
69,
70
],
[
69,
71
],
[
63,
72
],
[
56,
73
],
[
73,
74
],
[
73,
75
],
[
8,
76
],
[
76,
77
],
[
77,
78
],
[
78,
79
],
[
78,
80
],
[
6,
81
],
[
81,
82
]
] | [
"// ITP1_5_D Structured Programming\nimport java.util.*;\n\nclass Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n for (int i = 1; i <= n; i++) {\n int x = i;\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 /= 10;\n }\n }\n }\n System.out.println();\n }\n}",
"import java.util.*;",
"util.*",
"java",
"class Main {\n public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n for (int i = 1; i <= n; i++) {\n int x = i;\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 /= 10;\n }\n }\n }\n System.out.println();\n }\n}",
"Main",
"public static void main(String[] args) {\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n for (int i = 1; i <= n; i++) {\n int x = i;\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 /= 10;\n }\n }\n }\n System.out.println();\n }",
"main",
"{\n Scanner sc = new Scanner(System.in);\n int n = Integer.parseInt(sc.next());\n for (int i = 1; i <= n; i++) {\n int x = i;\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 /= 10;\n }\n }\n }\n System.out.println();\n }",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n = Integer.parseInt(sc.next());",
"n",
"Integer.parseInt(sc.next())",
"Integer.parseInt",
"Integer",
"sc.next()",
"sc.next",
"sc",
"for (int i = 1; i <= n; i++) {\n int x = i;\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 /= 10;\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 } else {\n while (x != 0) {\n if (x % 10 == 3) {\n System.out.print(\" \" + i);\n break;\n }\n x /= 10;\n }\n }\n }",
"{\n int x = i;\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 /= 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 /= 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 /= 10;\n }\n }",
"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"
] | // ITP1_5_D Structured Programming
import java.util.*;
class Main {
public static void main(String[] args) {
Scanner sc = new Scanner(System.in);
int n = Integer.parseInt(sc.next());
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 /= 10;
}
}
}
System.out.println();
}
} |
[
7,
15,
13,
17,
6,
13,
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,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
2,
17,
13,
9,
30,
0,
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,
2,
13,
17,
4,
18,
18,
13,
13,
17,
23,
13,
10,
6,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
89,
5
],
[
89,
6
],
[
6,
7
],
[
6,
8
],
[
8,
9
],
[
9,
10
],
[
9,
11
],
[
8,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
8,
17
],
[
17,
18
],
[
8,
19
],
[
19,
20
],
[
8,
21
],
[
21,
22
],
[
22,
23
],
[
23,
24
],
[
23,
25
],
[
21,
26
],
[
26,
27
],
[
26,
28
],
[
21,
29
],
[
29,
30
],
[
30,
31
],
[
21,
32
],
[
33,
33
],
[
33,
34
],
[
34,
35
],
[
35,
36
],
[
36,
37
],
[
36,
38
],
[
35,
39
],
[
34,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
43,
44
],
[
43,
45
],
[
41,
46
],
[
46,
47
],
[
46,
48
],
[
40,
49
],
[
34,
50
],
[
50,
51
],
[
51,
52
],
[
51,
53
],
[
50,
54
],
[
54,
55
],
[
55,
56
],
[
55,
57
],
[
54,
58
],
[
58,
59
],
[
59,
60
],
[
60,
61
],
[
61,
62
],
[
61,
63
],
[
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
],
[
77,
78
],
[
77,
79
],
[
8,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
82,
84
],
[
80,
85
],
[
6,
86
],
[
86,
87
],
[
0,
88
],
[
88,
89
],
[
88,
90
]
] | [
"import java.util.*;\n\npublic class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n =sc.nextInt();\n\t\tint co; int temp;\n\t\t\n\t\tfor(co=1;co<=n;co++){\n\t\tif(co%3==0){System.out.print(\" \"+co);continue;}\n\t\t\n\t\telse{temp=co;\n\t\twhile(temp>0){\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}\n}\n\t}\n\t\tSystem.out.println(\"\");\t\n\t}\t\n}",
"import java.util.*;",
"util.*",
"java",
"public class Main{\n\tpublic static void main(String args[]){\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n =sc.nextInt();\n\t\tint co; int temp;\n\t\t\n\t\tfor(co=1;co<=n;co++){\n\t\tif(co%3==0){System.out.print(\" \"+co);continue;}\n\t\t\n\t\telse{temp=co;\n\t\twhile(temp>0){\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}\n}\n\t}\n\t\tSystem.out.println(\"\");\t\n\t}\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 co; int temp;\n\t\t\n\t\tfor(co=1;co<=n;co++){\n\t\tif(co%3==0){System.out.print(\" \"+co);continue;}\n\t\t\n\t\telse{temp=co;\n\t\twhile(temp>0){\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}\n}\n\t}\n\t\tSystem.out.println(\"\");\t\n\t}",
"main",
"{\n\t\tScanner sc = new Scanner(System.in);\n\t\tint n =sc.nextInt();\n\t\tint co; int temp;\n\t\t\n\t\tfor(co=1;co<=n;co++){\n\t\tif(co%3==0){System.out.print(\" \"+co);continue;}\n\t\t\n\t\telse{temp=co;\n\t\twhile(temp>0){\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}\n}\n\t}\n\t\tSystem.out.println(\"\");\t\n\t}",
"Scanner sc = new Scanner(System.in);",
"sc",
"new Scanner(System.in)",
"int n =sc.nextInt();",
"n",
"sc.nextInt()",
"sc.nextInt",
"sc",
"int co;",
"co",
"int temp;",
"temp",
"for(co=1;co<=n;co++){\n\t\tif(co%3==0){System.out.print(\" \"+co);continue;}\n\t\t\n\t\telse{temp=co;\n\t\twhile(temp>0){\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}\n}\n\t}",
"co=1;",
"co=1",
"co",
"1",
"co<=n",
"co",
"n",
"co++",
"co++",
"co",
"{\n\t\tif(co%3==0){System.out.print(\" \"+co);continue;}\n\t\t\n\t\telse{temp=co;\n\t\twhile(temp>0){\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}\n}\n\t}",
"{\n\t\tif(co%3==0){System.out.print(\" \"+co);continue;}\n\t\t\n\t\telse{temp=co;\n\t\twhile(temp>0){\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}\n}\n\t}",
"if(co%3==0){System.out.print(\" \"+co);continue;}\n\t\t\n\t\telse{temp=co;\n\t\twhile(temp>0){\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}\n}",
"co%3==0",
"co%3",
"co",
"3",
"0",
"{System.out.print(\" \"+co);continue;}",
"System.out.print(\" \"+co)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+co",
"\" \"",
"co",
"continue;",
"{temp=co;\n\t\twhile(temp>0){\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}\n}",
"temp=co",
"temp",
"co",
"while(temp>0){\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}",
"temp>0",
"temp",
"0",
"{\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}",
"if(temp%10==3){System.out.print(\" \"+co);break;}",
"temp%10==3",
"temp%10",
"temp",
"10",
"3",
"{System.out.print(\" \"+co);break;}",
"System.out.print(\" \"+co)",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"+co",
"\" \"",
"co",
"break;",
"temp=temp/10",
"temp",
"temp/10",
"temp",
"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\tScanner sc = new Scanner(System.in);\n\t\tint n =sc.nextInt();\n\t\tint co; int temp;\n\t\t\n\t\tfor(co=1;co<=n;co++){\n\t\tif(co%3==0){System.out.print(\" \"+co);continue;}\n\t\t\n\t\telse{temp=co;\n\t\twhile(temp>0){\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}\n}\n\t}\n\t\tSystem.out.println(\"\");\t\n\t}\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 co; int temp;\n\t\t\n\t\tfor(co=1;co<=n;co++){\n\t\tif(co%3==0){System.out.print(\" \"+co);continue;}\n\t\t\n\t\telse{temp=co;\n\t\twhile(temp>0){\n\t\tif(temp%10==3){System.out.print(\" \"+co);break;}\n\t\ttemp=temp/10;\n\t}\n}\n\t}\n\t\tSystem.out.println(\"\");\t\n\t}\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 co; int temp;
for(co=1;co<=n;co++){
if(co%3==0){System.out.print(" "+co);continue;}
else{temp=co;
while(temp>0){
if(temp%10==3){System.out.print(" "+co);break;}
temp=temp/10;
}
}
}
System.out.println("");
}
} |
[
7,
15,
13,
17,
15,
13,
17,
6,
13,
41,
13,
18,
13,
13,
41,
13,
20,
12,
13,
30,
41,
13,
4,
18,
13,
41,
13,
17,
42,
2,
40,
13,
13,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
30,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
13,
2,
17,
13,
3,
0,
13,
17,
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
],
[
11,
13
],
[
7,
14
],
[
14,
15
],
[
14,
16
],
[
7,
17
],
[
17,
18
],
[
17,
19
],
[
19,
20
],
[
20,
21
],
[
20,
22
],
[
22,
23
],
[
23,
24
],
[
19,
25
],
[
25,
26
],
[
25,
27
],
[
19,
28
],
[
28,
29
],
[
29,
30
],
[
30,
31
],
[
29,
32
],
[
28,
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
],
[
44,
47
],
[
47,
48
],
[
47,
49
],
[
37,
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
],
[
63,
66
],
[
66,
67
],
[
66,
68
],
[
62,
69
],
[
55,
70
],
[
70,
71
],
[
70,
72
],
[
19,
73
],
[
73,
74
],
[
74,
75
],
[
17,
76
],
[
76,
77
]
] | [
"import java.util.*;\nimport java.io.*;\n\nclass Main {\n\tstatic PrintStream out = System.out;\n\tstatic Scanner in = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tint n = in.nextInt();\n\n\t\tint i = 1;\n\t\tdo {\n\t\t\tint x = i;\n\t\t\tif ( x % 3 == 0 ){\n\t\t\t\tout.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\tout.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\tout.println();\n\t}\n}",
"import java.util.*;",
"util.*",
"java",
"import java.io.*;",
"io.*",
"java",
"class Main {\n\tstatic PrintStream out = System.out;\n\tstatic Scanner in = new Scanner(System.in);\n\n\tpublic static void main(String[] args) {\n\t\tint n = in.nextInt();\n\n\t\tint i = 1;\n\t\tdo {\n\t\t\tint x = i;\n\t\t\tif ( x % 3 == 0 ){\n\t\t\t\tout.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\tout.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\tout.println();\n\t}\n}",
"Main",
"static PrintStream out = System.out;",
"out",
"System.out",
"System",
"System.out",
"static Scanner in = new Scanner(System.in);",
"in",
"new Scanner(System.in)",
"public static void main(String[] args) {\n\t\tint n = in.nextInt();\n\n\t\tint i = 1;\n\t\tdo {\n\t\t\tint x = i;\n\t\t\tif ( x % 3 == 0 ){\n\t\t\t\tout.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\tout.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\tout.println();\n\t}",
"main",
"{\n\t\tint n = in.nextInt();\n\n\t\tint i = 1;\n\t\tdo {\n\t\t\tint x = i;\n\t\t\tif ( x % 3 == 0 ){\n\t\t\t\tout.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\tout.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\tout.println();\n\t}",
"int n = in.nextInt();",
"n",
"in.nextInt()",
"in.nextInt",
"in",
"int i = 1;",
"i",
"1",
"do {\n\t\t\tint x = i;\n\t\t\tif ( x % 3 == 0 ){\n\t\t\t\tout.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\tout.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\tout.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\tout.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\tout.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\tout.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\tout.print(\" \" + i);\n\t\t\t}",
"out.print(\" \" + i)",
"out.print",
"out",
"\" \" + i",
"\" \"",
"i",
"{\n\t\t\t\tdo{\n\t\t\t\t\tif(x % 10 == 3){\n\t\t\t\t\t\tout.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\tout.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\tout.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\tout.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\tout.print(\" \" + i);\n\t\t\t\t\t\tbreak;\n\t\t\t\t\t}",
"out.print(\" \" + i)",
"out.print",
"out",
"\" \" + i",
"\" \"",
"i",
"break;",
"x /= 10",
"x",
"10",
"out.println()",
"out.println",
"out",
"String[] args",
"args"
] | import java.util.*;
import java.io.*;
class Main {
static PrintStream out = System.out;
static Scanner in = new Scanner(System.in);
public static void main(String[] args) {
int n = in.nextInt();
int i = 1;
do {
int x = i;
if ( x % 3 == 0 ){
out.print(" " + i);
} else {
do{
if(x % 10 == 3){
out.print(" " + i);
break;
}
x /= 10;
}while(x != 0);
}
}while( ++i <= n );
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,
4,
13,
13,
4,
18,
18,
13,
13,
2,
17,
13,
4,
18,
18,
13,
13,
23,
13,
12,
13,
30,
14,
2,
13,
17,
30,
41,
13,
4,
18,
4,
18,
13,
13,
28,
13,
13,
30,
30,
14,
2,
13,
17,
30,
29,
17,
14,
2,
2,
13,
17,
17,
29,
17,
29,
17,
23,
13
] | [
[
0,
1
],
[
1,
2
],
[
1,
3
],
[
0,
4
],
[
4,
5
],
[
4,
6
],
[
0,
7
],
[
7,
8
],
[
7,
9
],
[
9,
10
],
[
9,
11
],
[
11,
12
],
[
12,
13
],
[
12,
14
],
[
11,
15
],
[
15,
16
],
[
15,
17
],
[
17,
18
],
[
18,
19
],
[
17,
20
],
[
20,
21
],
[
21,
22
],
[
11,
23
],
[
23,
24
],
[
23,
25
],
[
9,
26
],
[
26,
27
],
[
7,
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
],
[
45,
47
],
[
44,
48
],
[
48,
49
],
[
49,
50
],
[
50,
51
],
[
50,
52
],
[
48,
53
],
[
53,
54
],
[
53,
55
],
[
30,
56
],
[
56,
57
],
[
57,
58
],
[
58,
59
],
[
58,
60
],
[
28,
61
],
[
61,
62
],
[
7,
63
],
[
63,
64
],
[
63,
65
],
[
65,
66
],
[
66,
67
],
[
67,
68
],
[
67,
69
],
[
66,
70
],
[
70,
71
],
[
71,
72
],
[
71,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
75,
78
],
[
70,
79
],
[
79,
80
],
[
79,
81
],
[
79,
82
],
[
83,
83
],
[
83,
84
],
[
84,
85
],
[
85,
86
],
[
85,
87
],
[
84,
88
],
[
88,
89
],
[
89,
90
],
[
65,
91
],
[
91,
92
],
[
92,
93
],
[
93,
94
],
[
93,
95
],
[
92,
96
],
[
91,
97
],
[
97,
98
],
[
65,
99
],
[
99,
100
],
[
63,
101
],
[
101,
102
]
] | [
"import java.io.*;\nimport java.util.*;\n\nclass Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n call(n);\n }\n \n static void call(int n){\n for(int i=1;i<=n;i++){\n if(check(i)) System.out.print(\" \"+i);\n }System.out.println();\n }\n \n static boolean check(int n){\n if(n>=10){\n char[] c=String.valueOf(n).toCharArray();\n for(char checker:c){\n if(checker=='3'){\n return true;\n }\n }\n }if(n%3==0) return true;\n return false;\n }\n}",
"import java.io.*;",
"io.*",
"java",
"import java.util.*;",
"util.*",
"java",
"class Main {\n\n public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n call(n);\n }\n \n static void call(int n){\n for(int i=1;i<=n;i++){\n if(check(i)) System.out.print(\" \"+i);\n }System.out.println();\n }\n \n static boolean check(int n){\n if(n>=10){\n char[] c=String.valueOf(n).toCharArray();\n for(char checker:c){\n if(checker=='3'){\n return true;\n }\n }\n }if(n%3==0) return true;\n return false;\n }\n}",
"Main",
"public static void main(String[] args) throws IOException {\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n call(n);\n }",
"main",
"{\n BufferedReader br = new BufferedReader(new InputStreamReader(System.in));\n int n=Integer.parseInt(br.readLine());\n call(n);\n }",
"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",
"call(n)",
"call",
"n",
"String[] args",
"args",
"static void call(int n){\n for(int i=1;i<=n;i++){\n if(check(i)) System.out.print(\" \"+i);\n }System.out.println();\n }",
"call",
"{\n for(int i=1;i<=n;i++){\n if(check(i)) System.out.print(\" \"+i);\n }System.out.println();\n }",
"for(int i=1;i<=n;i++){\n if(check(i)) System.out.print(\" \"+i);\n }",
"int i=1;",
"int i=1;",
"i",
"1",
"i<=n",
"i",
"n",
"i++",
"i++",
"i",
"{\n if(check(i)) System.out.print(\" \"+i);\n }",
"{\n if(check(i)) System.out.print(\" \"+i);\n }",
"if(check(i)) System.out.print(\" \"+i);",
"check(i)",
"check",
"i",
"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",
"int n",
"n",
"static boolean check(int n){\n if(n>=10){\n char[] c=String.valueOf(n).toCharArray();\n for(char checker:c){\n if(checker=='3'){\n return true;\n }\n }\n }if(n%3==0) return true;\n return false;\n }",
"check",
"{\n if(n>=10){\n char[] c=String.valueOf(n).toCharArray();\n for(char checker:c){\n if(checker=='3'){\n return true;\n }\n }\n }if(n%3==0) return true;\n return false;\n }",
"if(n>=10){\n char[] c=String.valueOf(n).toCharArray();\n for(char checker:c){\n if(checker=='3'){\n return true;\n }\n }\n }",
"n>=10",
"n",
"10",
"{\n char[] c=String.valueOf(n).toCharArray();\n for(char checker:c){\n if(checker=='3'){\n return true;\n }\n }\n }",
"char[] c=String.valueOf(n).toCharArray();",
"c",
"String.valueOf(n).toCharArray()",
"String.valueOf(n).toCharArray",
"String.valueOf(n)",
"String.valueOf",
"String",
"n",
"for(char checker:c){\n if(checker=='3'){\n return true;\n }\n }",
"char checker",
"c",
"{\n if(checker=='3'){\n return true;\n }\n }",
"{\n if(checker=='3'){\n return true;\n }\n }",
"if(checker=='3'){\n return true;\n }",
"checker=='3'",
"checker",
"'3'",
"{\n return true;\n }",
"return true;",
"true",
"if(n%3==0) return true;",
"n%3==0",
"n%3",
"n",
"3",
"0",
"return true;",
"true",
"return false;",
"false",
"int n",
"n"
] | import java.io.*;
import java.util.*;
class Main {
public static void main(String[] args) throws IOException {
BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
int n=Integer.parseInt(br.readLine());
call(n);
}
static void call(int n){
for(int i=1;i<=n;i++){
if(check(i)) System.out.print(" "+i);
}System.out.println();
}
static boolean check(int n){
if(n>=10){
char[] c=String.valueOf(n).toCharArray();
for(char checker:c){
if(checker=='3'){
return true;
}
}
}if(n%3==0) return true;
return false;
}
} |
[
7,
15,
13,
17,
15,
13,
17,
15,
13,
17,
6,
13,
12,
13,
30,
38,
5,
13,
30,
4,
18,
13,
30,
41,
13,
20,
41,
13,
4,
18,
13,
41,
13,
4,
18,
13,
13,
41,
13,
17,
42,
2,
40,
13,
13,
30,
41,
13,
13,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
13,
9,
42,
2,
13,
17,
30,
14,
2,
2,
13,
17,
17,
30,
4,
18,
18,
13,
13,
17,
4,
18,
18,
13,
13,
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
],
[
105,
11
],
[
105,
12
],
[
12,
13
],
[
12,
14
],
[
14,
15
],
[
15,
16
],
[
16,
17
],
[
16,
18
],
[
18,
19
],
[
19,
20
],
[
20,
21
],
[
15,
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
],
[
37,
39
],
[
22,
40
],
[
40,
41
],
[
41,
42
],
[
42,
43
],
[
41,
44
],
[
40,
45
],
[
45,
46
],
[
46,
47
],
[
46,
48
],
[
45,
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
],
[
55,
62
],
[
62,
63
],
[
63,
64
],
[
64,
65
],
[
64,
66
],
[
62,
67
],
[
55,
68
],
[
45,
69
],
[
69,
70
],
[
70,
71
],
[
70,
72
],
[
69,
73
],
[
73,
74
],
[
74,
75
],
[
75,
76
],
[
76,
77
],
[
76,
78
],
[
75,
79
],
[
74,
80
],
[
80,
81
],
[
81,
82
],
[
82,
83
],
[
83,
84
],
[
83,
85
],
[
81,
86
],
[
80,
87
],
[
87,
88
],
[
88,
89
],
[
89,
90
],
[
89,
91
],
[
87,
92
],
[
80,
93
],
[
73,
94
],
[
94,
95
],
[
94,
96
],
[
22,
97
],
[
97,
98
],
[
98,
99
],
[
99,
100
],
[
99,
101
],
[
12,
102
],
[
102,
103
],
[
0,
104
],
[
104,
105
],
[
104,
106
]
] | [
"import java.io.BufferedReader;\nimport java.io.IOException;\nimport java.io.InputStreamReader;\n\npublic class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\t\t\n\t\t\tint n = Integer.parseInt(s);\n\t\t\t\n\t\t\tint i = 1;\n\t\t\twhile (++ i <= n) {\n\t\t\t\tint x = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \");\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\tSystem.out.println();\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}",
"import java.io.BufferedReader;",
"BufferedReader",
"java.io",
"import java.io.IOException;",
"IOException",
"java.io",
"import java.io.InputStreamReader;",
"InputStreamReader",
"java.io",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\t\t\n\t\t\tint n = Integer.parseInt(s);\n\t\t\t\n\t\t\tint i = 1;\n\t\t\twhile (++ i <= n) {\n\t\t\t\tint x = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \");\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\tSystem.out.println();\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}",
"Main",
"public static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\t\t\n\t\t\tint n = Integer.parseInt(s);\n\t\t\t\n\t\t\tint i = 1;\n\t\t\twhile (++ i <= n) {\n\t\t\t\tint x = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \");\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\tSystem.out.println();\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"main",
"{\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\t\t\n\t\t\tint n = Integer.parseInt(s);\n\t\t\t\n\t\t\tint i = 1;\n\t\t\twhile (++ i <= n) {\n\t\t\t\tint x = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \");\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\tSystem.out.println();\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}",
"try {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\t\t\n\t\t\tint n = Integer.parseInt(s);\n\t\t\t\n\t\t\tint i = 1;\n\t\t\twhile (++ i <= n) {\n\t\t\t\tint x = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \");\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\tSystem.out.println();\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}",
"IOException e",
"{\n\t\t\te.printStackTrace();\n\t\t}",
"e.printStackTrace()",
"e.printStackTrace",
"e",
"{\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\t\t\n\t\t\tint n = Integer.parseInt(s);\n\t\t\t\n\t\t\tint i = 1;\n\t\t\twhile (++ i <= n) {\n\t\t\t\tint x = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \");\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\tSystem.out.println();\t\t\t\t\n\t\t}",
"BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));",
"reader",
"new BufferedReader(new InputStreamReader(System.in))",
"String s = reader.readLine();",
"s",
"reader.readLine()",
"reader.readLine",
"reader",
"int n = Integer.parseInt(s);",
"n",
"Integer.parseInt(s)",
"Integer.parseInt",
"Integer",
"s",
"int i = 1;",
"i",
"1",
"while (++ i <= n) {\n\t\t\t\tint x = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \");\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}",
"++ i <= n",
"++ i",
"i",
"n",
"{\n\t\t\t\tint x = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \");\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}",
"int x = i;",
"x",
"i",
"if (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}",
"x % 3 == 0",
"x % 3",
"x",
"3",
"0",
"{\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\tcontinue;\n\t\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",
"continue;",
"do {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \");\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(\" \");\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(\" \");\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(\" \");\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(\" \")",
"System.out.print",
"System.out",
"System",
"System.out",
"\" \"",
"System.out.print(i)",
"System.out.print",
"System.out",
"System",
"System.out",
"i",
"break;",
"x /= 10",
"x",
"10",
"System.out.println()",
"System.out.println",
"System.out",
"System",
"System.out",
"String[] args",
"args",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\t\t\n\t\t\tint n = Integer.parseInt(s);\n\t\t\t\n\t\t\tint i = 1;\n\t\t\twhile (++ i <= n) {\n\t\t\t\tint x = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \");\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\tSystem.out.println();\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}",
"public class Main {\n\t\n\tpublic static void main(String[] args) {\n\t\ttry {\n\t\t\tBufferedReader reader = new BufferedReader(new InputStreamReader(System.in));\n\t\t\tString s = reader.readLine();\n\t\t\t\t\n\t\t\tint n = Integer.parseInt(s);\n\t\t\t\n\t\t\tint i = 1;\n\t\t\twhile (++ i <= n) {\n\t\t\t\tint x = i;\n\t\t\t\tif (x % 3 == 0) {\n\t\t\t\t\tSystem.out.print(\" \");\n\t\t\t\t\tSystem.out.print(i);\n\t\t\t\t\tcontinue;\n\t\t\t\t}\n\t\t\t\tdo {\n\t\t\t\t\tif (x % 10 == 3) {\n\t\t\t\t\t\tSystem.out.print(\" \");\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\tSystem.out.println();\t\t\t\t\n\t\t} catch (IOException e) {\n\t\t\te.printStackTrace();\n\t\t}\n\t}\n\n}",
"Main"
] | import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
public class Main {
public static void main(String[] args) {
try {
BufferedReader reader = new BufferedReader(new InputStreamReader(System.in));
String s = reader.readLine();
int n = Integer.parseInt(s);
int i = 1;
while (++ i <= n) {
int x = i;
if (x % 3 == 0) {
System.out.print(" ");
System.out.print(i);
continue;
}
do {
if (x % 10 == 3) {
System.out.print(" ");
System.out.print(i);
break;
}
x /= 10;
} while (x != 0);
}
System.out.println();
} catch (IOException e) {
e.printStackTrace();
}
}
} |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.