buggy_code
stringlengths
11
625k
fixed_code
stringlengths
17
625k
bug_type
stringlengths
2
4.45k
language
int64
0
8
token_count
int64
5
200k
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 1; i <= n; i++) { if (i % 3 == 0 || Integer.toString(i).contains("3")) ; System.out.print(" " + i); } System.out.println(); ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 1; i <= n; i++) { if (i % 3 == 0 || Integer.toString(i).contains("3")) System.out.print(" " + i); } System.out.println(); } }
[["-", 8, 196, 0, 7, 8, 196, 0, 57, 64, 35]]
3
103
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); call(n); sc.close(); } private static void call(int n) { for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { Syste...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); call(n); sc.close(); } private static void call(int n) { for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { Syste...
[["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 499], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
3
157
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 == ...
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 == ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499]]
3
170
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(reader.readLine()); ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); int n = Integer.parseInt(reader.readLine()); ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 60], ["-", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 17, 79], ["+", 8, 196, 0, 57, 15, 15, 0, 16, 12, 499]]
3
203
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(), x; for (int a = 3; a <= n; a++) { if (a % 3 == 0) { System.out.print(" " + a); continue; } x = a; while (x != 0) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(), x; for (int a = 3; a <= n; a++) { if (a % 3 == 0) { System.out.print(" " + a); continue; } x = a; while (x != 0) { ...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
138
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String args[]) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); StringBuilder builder = new StringBuilder(); i...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String args[]) throws IOException { BufferedReader reader = new BufferedReader(new InputStreamReader(System.in)); StringBuilder builder = new StringBuilder(); i...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
3
183
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int inputData = Integer.parseInt(in.readLine()); StringBui...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { BufferedReader in = new BufferedReader(new InputStreamReader(System.in)); int inputData = Integer.parseInt(in.readLine()); StringBui...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
215
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); StringBuilder output = new StringBuilder(); int n = scan.nextInt(); for (int i = 3; i <= n; i++) { if ((i % 3) == 0) { output.append(" ").append(i); } else...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); StringBuilder output = new StringBuilder(); int n = scan.nextInt(); for (int i = 3; i <= n; i++) { if ((i % 3) == 0) { output.append(" ").append(i); } else...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
149
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner kb = new Scanner(System.in); int n = kb.nextInt(); int i = 1; do { int x = i; if (0 == x % 3) { System.out.print(" " + i); } else { do { if (3 == x % 3) { ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner kb = new Scanner(System.in); int n = kb.nextInt(); int i = 1; do { int x = i; if (0 == x % 3) { System.out.print(" " + i); } else { do { if (3 == x % 10) { ...
[["-", 0, 57, 15, 15, 0, 16, 12, 16, 12, 499], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 12, 499]]
3
140
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) { ...
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) { ...
[["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
3
141
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); for (int i = 3; i <= num; i++) { if (i % 3 == 0) { System.out.printf(" %d", i); } else if (i % 1 == 3) { System.out.printf(" %d", ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); for (int i = 3; i <= num; i++) { if (i % 3 == 0) { System.out.printf(" %d", i); } else if (i % 1 == 3) { System.out.printf(" %d", ...
[["-", 75, 57, 75, 57, 15, 15, 0, 16, 17, 20], ["+", 75, 57, 75, 57, 15, 15, 0, 16, 17, 60]]
3
231
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; } temp = co; ...
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 { ...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 0, 57, 75, 196, 0, 52, 8, 196, 0, 46]]
3
141
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 1; i <= n; i++) { if (i % 3 == 0) { System.out.print(" " + i); } else { for (int j = i; j > 0; j /= 10) { i...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 1; i <= n; i++) { if (i % 3 == 0) { System.out.print(" " + i); } else { for (int j = i; j > 0; j /= 10) { i...
[["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
145
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // while(true) { int a = sc.nextInt(); int i; // if (a == 0) { // break; for (i = 3; i <= a; i++) { int j = i; if (j % 3 == 0) { System.out.print...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); // while(true) { int a = sc.nextInt(); int i; // if (a == 0) { // break; for (i = 3; i <= a; i++) { int j = i; if (j % 3 == 0) { System.out.print...
[["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
3
139
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x, i = 1; while (n >= i) { x = i; if (x % 3 == 0) { System.out.printf(" %d", i); } if (x % 10 == 3) { System.out...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int x, i = 1; while (n >= i) { x = i; if (x % 3 == 0) { System.out.printf(" %d", i); } else if (x % 10 == 3) { System.out....
[["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95]]
3
165
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(" " + x); continue; } while (x > 0) { boolean end = false; if (x % 10 == 3) { sy...
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) { sy...
[["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
305
// 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 ...
// 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 { ...
[["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 57, 75, 196, 0, 52, 8, 196, 0, 46]]
3
137
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); if (check3(i, Integer.toString(i).length())) System.out.print(...
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...
[["+", 0, 82, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 82, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 82, 8, 196, 0, 57, 0, 95], ["+", 8, 196, 0, 57, 75, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 75, 57, 64, 196, 0, 46]]
3
197
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 nu...
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 nu...
[["+", 8, 498, 0, 195, 8, 196, 0, 57, 0, 95], ["+", 0, 195, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 57, 64, 196, 0, 46]]
3
229
import java.text.*; import java.util.*; class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if ((x % 3) == 0) { System.out.print(" " + i); } else { whi...
import java.text.*; import java.util.*; class Main { public static void main(String[] args) throws Exception { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if ((x % 3) == 0) { System.out.print(" " + i); } else { whi...
[["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 499], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 46]]
3
146
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 (i % 3 == 0 || i % 10 == 3) { System.out.print(" " + i); } else { while (x > 0) ...
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 (i % 3 == 0 || i % 10 == 3) { System.out.print(" " + i); } else { while (x > 0) ...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
143
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String list = br.readLine();...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { InputStreamReader isr = new InputStreamReader(System.in); BufferedReader br = new BufferedReader(isr); String list = br.readLine();...
[["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 7, 8, 196, 0, 57, 64, 196, 0, 46]]
3
213
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { while (x != 0) { if (x ...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { while (x != 0) { if (x ...
[["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 499], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
3
133
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 ...
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 ...
[["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
187
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner input = new Scanner(System.in); StringBuilder build = new StringBuilder(); int n = input.nextInt(); for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3) { build.appe...
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner input = new Scanner(System.in); StringBuilder build = new StringBuilder(); int n = input.nextInt(); for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3) { build.appe...
[["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
3
156
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner input = new Scanner(System.in); StringBuilder build = new StringBuilder(); int n = input.nextInt(); for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3) { build.appe...
import java.util.Scanner; public class Main { public static void main(String[] args) throws Exception { Scanner input = new Scanner(System.in); StringBuilder build = new StringBuilder(); int n = input.nextInt(); for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3) { build.appe...
[["-", 8, 196, 0, 82, 15, 23, 0, 16, 17, 47], ["+", 8, 196, 0, 82, 15, 23, 0, 16, 17, 20]]
3
150
import java.io.*; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int n = Integer.parseInt(str); for (int i = 1; i <= n; i++) { if (0 == i % 3) { System.out.pri...
import java.io.*; class Main { public static void main(String[] args) throws Exception { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); String str = br.readLine(); int n = Integer.parseInt(str); for (int i = 1; i <= n; i++) { if (0 == i % 3) { System.out.pri...
[["-", 0, 57, 15, 15, 0, 16, 12, 16, 31, 22], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 31, 22]]
3
153
import java.util.Scanner; class Main { public static void main(String[] arg) { int n; Scanner in = new Scanner(System.in); n = in.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { while (x / 10 > 0) { ...
import java.util.Scanner; class Main { public static void main(String[] arg) { int n; Scanner in = new Scanner(System.in); n = in.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { while (x > 0) { ...
[["-", 0, 52, 15, 15, 0, 16, 31, 16, 17, 85], ["-", 0, 52, 15, 15, 0, 16, 31, 16, 12, 499], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
3
139
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) { i...
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) { i...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
134
import java.io.*; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.print(" " + i); continue; } else if (...
import java.io.*; import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.print(" " + i); continue; } else if (...
[["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 46]]
3
167
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int in = sc.nextInt(); for (int i = 1; i <= in; i++) { if (i % 3 == 0 || i % 10 == 3) { System.out.print(" " + i); continue; } else { int x = i; ...
import java.util.*; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int in = sc.nextInt(); for (int i = 1; i <= in; i++) { if (i % 3 == 0 || i % 10 == 3) { System.out.print(" " + i); continue; } else { int x = i; ...
[["-", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
3
146
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) { ...
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) { ...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 31, 22]]
3
154
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.println(" " + i); } else while (true) { if (x...
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.print(" " + i); } else { while (true) { if (x...
[["-", 0, 57, 64, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 52, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 52, 8, 196, 0, 46]]
3
150
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, j, k; for (i = 3; i <= n; i++) { if (i % 3 == 0) System.out.print(" " + i); else { for (j = i; j > 0; j /= 10) { ...
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, j, k; for (i = 3; i <= n; i++) { if (i % 3 == 0) System.out.print(" " + i); else { for (j = i; j > 0; j /= 10) { ...
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]]
3
142
import java.io.*; import java.lang.Math; 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; do { int x = i; if (x % 3 == 0) { System.out.print(" " + i); continue; ...
import java.io.*; import java.lang.Math; 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; do { int x = i; if (x % 3 == 0) { System.out.print(" " + i); continue; ...
[["-", 8, 196, 0, 82, 15, 23, 0, 16, 12, 499], ["+", 8, 196, 0, 82, 15, 23, 0, 16, 12, 22]]
3
151
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; do { int x = i; if (x % 3 == 0) { System.out.printf(" " + i); } while (true) { if (x % 10 == 3) { ...
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; do { int x = i; if (x % 3 == 0) { System.out.printf(" " + i); } else { while (true) { if (x % 10 ==...
[["+", 8, 196, 0, 82, 8, 196, 0, 57, 0, 95], ["+", 0, 82, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 52, 8, 196, 0, 46]]
3
142
import java.util.*; class Main { public static void main(String[] args) { int n; Scanner scan = new Scanner(System.in); n = scan.nextInt(); for (int i = 1; i <= n; i++) { int div = i; if (i % 3 == 0) { System.out.print(" " + i); continue; } while (div > 10) {...
import java.util.*; class Main { public static void main(String[] args) { int n; Scanner scan = new Scanner(System.in); n = scan.nextInt(); for (int i = 1; i <= n; i++) { int div = i; if (i % 3 == 0) { System.out.print(" " + i); continue; } while (div > 0) { ...
[["-", 8, 196, 0, 52, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 52, 15, 15, 0, 16, 12, 499], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
3
134
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; do { int x = i; if (x % 3 == 0) { System.out.printf("%d", i); continue; } do { if (x % 10 == 3) {...
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; do { int x = i; if (x % 3 == 0) { System.out.printf(" %d", i); continue; } do { if (x % 10 == 3) ...
[["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 5, 0, 491]]
3
140
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; do { int x = 1; if (x % 3 == 0) { System.out.print(" " + i); } else { do { if (x % 10 == 3) { ...
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; do { int x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { do { if (x % 10 == 3) { ...
[["-", 0, 82, 8, 196, 0, 503, 49, 200, 51, 499], ["+", 0, 82, 8, 196, 0, 503, 49, 200, 51, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["-", 8, 196, 0, 82, 15, 23, 0, 16, 12, 499], ["+", 8, 196, 0, 82, 15, 23, 0, 16, 12, 22]]
3
139
#include <stdio.h> void call(int n) { int i, x; for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0 || x % 10 == 3) { printf(" %d", i); } else { while (x) { x /= 10; if (x % 3 == 0) printf(" %d", i); } } } printf("\n"); } int main() { int n = 0; sca...
#include <stdio.h> void call(int n) { int i, x; for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0 || x % 10 == 3) { printf(" %d", i); } else { while (x) { x /= 10; if (x % 10 == 3) { printf(" %d", i); break; } } } } printf("\n"); } i...
[["-", 0, 57, 15, 23, 0, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35], ["+", 0, 52, 8, 9, 0...
0
125
#include <stdio.h> int main(void) { int x; scanf("%d", &x); for (int i = 1; i <= x; i++) { for (int l = i; l > 0; l /= 10) { if (!(l % 3) || l % 10 == 3) { printf(" %d", i); break; } } } printf("\n"); return 0; }
#include <stdio.h> int main(void) { int x; scanf("%d", &x); for (int i = 1; i <= x; i++) { for (int l = i; l > 0; l /= 10) { if (!(i % 3) || l % 10 == 3) { printf(" %d", i); break; } } } printf("\n"); return 0; }
[["-", 0, 16, 31, 91, 28, 23, 0, 16, 31, 22], ["+", 0, 16, 31, 91, 28, 23, 0, 16, 31, 22]]
0
93
#include <stdio.h> int main() { int n, x; scanf("%d", &n); for (int i = 1; i <= n; i++) { if (i % 3 == 0) { printf(" %d", i); continue; } x = i; while (x) { if (x % 10 == 3) { printf(" %d", i); } x /= 10; } } printf("\n"); return 0; }
#include <stdio.h> int main() { int n, x; scanf("%d", &n); for (int i = 1; i <= n; i++) { if (i % 3 == 0) { printf(" %d", i); continue; } x = i; while (x) { if (x % 10 == 3) { printf(" %d", i); break; } x /= 10; } } printf("\n"); return 0...
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
0
103
#include <stdio.h> int main(void) { int i, x, n; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d", i); continue; } do { if (x % 10 == 3) { printf(" %d", i); } x /= 10; } while (x != 0); } printf("\n"); }
#include <stdio.h> int main(void) { int i, x, n; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d", i); continue; } do { if (x % 10 == 3) { printf(" %d", i); break; } x /= 10; } while (x != 0); } printf("\n");...
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
0
106
#include <stdio.h> #include <stdlib.h> int main() { int n; int i; int data; scanf("%d", &n); for (i = 1; i <= n; i++) { if (i % 3 == 0) printf(" %d", i); else { data = i; while (data > 1) { if (data % 10 == 3) printf(" %d", i); data = data / 10; } ...
#include <stdio.h> #include <stdlib.h> int main() { int n; int i; int data; scanf("%d", &n); for (i = 1; i <= n; i++) { if (i % 3 == 0) printf(" %d", i); else { data = i; while (data > 1) { if (data % 10 == 3) { printf(" %d", i); break; } ...
[["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46]]
0
109
#include <stdio.h> int main() { int n, i, k; scanf("%d", &n); for (i = 0; i < n; i++) { k = i; if (i % 3 == 0) { printf(" %d", i); } else { while (k != 0) { if (k % 10 == 3) { printf(" %d", i); k = 0; } k = k / 10; } } } printf("\n"...
#include <stdio.h> int main() { int n, i, k; scanf("%d", &n); for (i = 1; i <= n; i++) { k = i; if (i % 3 == 0) { printf(" %d", i); } else { while (k != 0) { if (k % 10 == 3) { printf(" %d", i); k = 0; } k = k / 10; } } } printf("\n...
[["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
0
113
#include <stdio.h> main() { int i = 1, n, x, j, l; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; l = i; if (x % 3 == 0) { printf(" %d", i); continue; } else { for (j = 0; j < 4; j++) { if ((l % 10) == 3) printf(" %d", l); l /= 10; } } ...
#include <stdio.h> main() { int i = 1, n, x, j, l; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; l = i; if (x % 3 == 0) { printf(" %d", i); continue; } else { for (j = 0; j < 4; j++) { if ((l % 10) == 3) { printf(" %d", i); break; } ...
[["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 0, 57, 64, 1, 0, 2, 3, 4, 0, 22], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]]
0
123
#include <stdio.h> int main() { int n, i, x; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d", i); } else { do { if (x % 10 == 3) { printf(" %d", i); } } while (x /= 10); } } putchar('\n'); return 0; }
#include <stdio.h> int main() { int n, i, x; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d", i); } else { do { if (x % 10 == 3) { printf(" %d", i); break; } } while (x /= 10); } } putchar('\n'); return ...
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
0
105
#include <stdio.h> int main() { int i, n; scanf("%d", &n); for (i = 3; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3 || i / 10 % 10 == 3 || i / 100 % 10 == 3 || i / 1000 % 10 == 3) { printf("%d", i); } } printf("\n"); return 0; }
#include <stdio.h> int main() { int i, n; scanf("%d\n", &n); for (i = 3; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3 || i / 10 % 10 == 3 || i / 100 % 10 == 3 || i / 1000 % 10 == 3) { printf(" %d", i); } } printf("\n"); return 0; }
[["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
97
#include <stdio.h> int main(void) { int n, i, x; scanf("%d", &n); for (i = 1; i < n; i++) { x = i; if (x % 3 == 0) { printf(" %d", i); continue; } do { if (x % 10 == 3) { printf(" %d", i); break; } else { x /= 10; } } whi...
#include <stdio.h> int main(void) { int n, i, x; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d", i); continue; } do { if (x % 10 == 3) { printf(" %d", i); break; } else { x /= 10; } } wh...
[["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
0
116
#include <stdio.h> #include <stdlib.h> void Constraints(int n) { if (!(3 <= n && n <= 10000)) { printf("条件を満たす入力をしてください。\n"); exit(0); } } void CheckNum(int n) { int i = 1; while (i != n + 1) { int x = i; if (x % 3 == 0) { printf(" %d", i); } else if (x % 10 == 3) { printf(" %d"...
#include <stdio.h> #include <stdlib.h> void Constraints(int n) { if (!(3 <= n && n <= 10000)) { printf("条件を満たす入力をしてください。\n"); exit(0); } } void CheckNum(int n) { int i = 1; while (i != n + 1) { int x = i; if (x % 3 == 0) { printf(" %d", i); } else if (x % 10 == 3) { printf(" %d"...
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
0
185
#include <stdio.h> int main(void) { int n, i, j; char buf[8]; fgets(buf, 8, stdin); sscanf(buf, "%d", &n); for (i = 1; i <= n; ++i) { if (i % 3 == 0) { printf(" %d", i); continue; } j = i; while (j) { if (j % 10 == 3) { printf(" %d", i); } j /= 10; }...
#include <stdio.h> int main(void) { int n, i, j; char buf[8]; fgets(buf, 8, stdin); sscanf(buf, "%d", &n); for (i = 1; i <= n; ++i) { if (i % 3 == 0) { printf(" %d", i); continue; } j = i; while (j) { if (j % 10 == 3) { printf(" %d", i); break; } ...
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
0
122
#include <stdio.h> int main() { int n, i, x; scanf("%d", &n); for (i = 1; i <= n; i++) { if (i % 3 == 0) { printf(" %d", i); } else { x = i; while (x >= 13) { if (x % 10 == 3) { printf(" %d", x); break; } else { x /= 10; } } ...
#include <stdio.h> int main() { int n, i, x; scanf("%d", &n); for (i = 1; i <= n; i++) { if (i % 3 == 0) { printf(" %d", i); } else { x = i; while (x != 0) { if (x % 10 == 3) { printf(" %d", i); break; } else { x /= 10; } } ...
[["-", 0, 9, 0, 52, 15, 23, 0, 16, 17, 20], ["-", 0, 9, 0, 52, 15, 23, 0, 16, 12, 13], ["+", 0, 9, 0, 52, 15, 23, 0, 16, 17, 79], ["+", 0, 9, 0, 52, 15, 23, 0, 16, 12, 13], ["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
0
109
#include <stdio.h> int main() { int i = 0, x, n; scanf("%d", &n); while (++i <= n) { x = i; if (x % 3 == 0 || x % 10 == 3) { printf(" %d", i); } else { while (x) { x /= 10; if (x % 10 == 3) { printf(" %d", i); } } } } printf("\n"); }
#include <stdio.h> int main() { int i = 0, x, n; scanf("%d", &n); while (++i <= n) { x = i; if (x % 3 == 0 || x % 10 == 3) { printf(" %d", i); } else { while (x) { x /= 10; if (x % 10 == 3) { printf(" %d", i); break; } } } } prin...
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
0
104
#include <stdio.h> #include <stdlib.h> int main(void) { int i, j, n; scanf("%d", &n); for (i = 1; i <= n; i++) { j = i; if (i % 3 == 0) { printf(" %d", i); } else { while (j > 0) { if (j % 10 == 3) { printf(" %d", i); } j /= 10; } } } pri...
#include <stdio.h> #include <stdlib.h> int main(void) { int i, j, n; scanf("%d", &n); for (i = 1; i <= n; i++) { j = i; if (i % 3 == 0) { printf(" %d", i); } else { while (j > 0) { if (j % 10 == 3) { printf(" %d", i); break; } j /= 10; ...
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
0
110
#include <stdio.h> int main() { int i, n, x; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d", x); continue; } while (x != 0) { if (x % 10 == 3) { printf(" %d", x); break; } else x /= 10; } } printf("\n"); ...
#include <stdio.h> int main() { int i, n, x; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d", x); continue; } while (x != 0) { if (x % 10 == 3) { printf(" %d", i); break; } else x /= 10; } } printf("\n"); ...
[["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22]]
0
106
#include <stdio.h> int main(void) { int x, i, n; scanf("%d\n", &n); for (i = 0; i < n; i++) { x = i; if (x % 3 == 0) { printf(" %d", i); } else if (x % 10 == 3) { printf(" %d", i); } else { while (x != 0) { x /= 10; if (x % 10 == 3) { printf(" %d", i); ...
#include <stdio.h> int main(void) { int x, i, n; scanf("%d\n", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d", i); } else if (x % 10 == 3) { printf(" %d", i); } else { while (x != 0) { x /= 10; if (x % 10 == 3) { printf(" %d", i);...
[["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]]
0
131
#include <stdio.h> void call(int); int main() { int n; scanf("%d", &n); call(n); return 0; } void call(int n) { int i, x; for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf("%d", i); } else if (x % 10 == 3) { printf("%d", i); } else { while (x != 0) { ...
#include <stdio.h> void call(int); int main() { int n; scanf("%d", &n); call(n); return 0; } void call(int n) { int i, x; for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d", i); } else if (x % 10 == 3) { printf(" %d", i); } else { while (x != 0) { ...
[["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]]
0
149
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { int x = 1; if (x % 3 == 0) { cout << " " << i; } else { while (1) { if (x % 10 == 3) { cout << " " << i; break; } else { x /= 10; ...
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { cout << " " << i; } else { while (1) { if (x % 10 == 3) { cout << " " << i; break; } else { x /= 10; ...
[["-", 0, 7, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 7, 8, 9, 0, 43, 49, 50, 51, 22]]
1
108
#include <functional> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; int main() { int n; priority_queue<int, vector<int>, greater<int>> nabeatsu; cin >> n; // 出力をよく見ると、3の倍数と3の数字が含まれる数がリストとして出力されている // 但し、いきなりコーディングする際は最初の出力にも1文字分のスペースがついている点に注意 for (int i =...
#include <functional> #include <iostream> #include <queue> #include <string> #include <vector> using namespace std; int main() { int n; priority_queue<int, vector<int>, greater<int>> nabeatsu; cin >> n; // 出力をよく見ると、3の倍数と3の数字が含まれる数がリストとして出力されている // 但し、いきなりコーディングする際は最初の出力にも1文字分のスペースがついている点に注意 for (int i =...
[["+", 51, 16, 31, 2, 3, 4, 0, 103, 0, 104]]
1
136
#include "bits/stdc++.h" using namespace std; #define int long long int mod = 1e9 + 7; signed main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) cout << " " << i; int x = i; while (x > 0) { if (x % 10 == 3) { cout << " " << i; break; } x /...
#include "bits/stdc++.h" using namespace std; #define int long long int mod = 1e9 + 7; signed main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) cout << " " << i; else { int x = i; while (x > 0) { if (x % 10 == 3) { cout << " " << i; bre...
[["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 75, 76, 0, 9, 0, 52, 8, 9, 0, 46]]
1
104
#include <iomanip> #include <iostream> using namespace std; int main() { int i, n, x; cin >> n; for (i = 1; i <= n; i++) { if (i % 3 == 0) { cout << " " << i; } else { x = i; while (x != 0) { if (x % 10 == 3) { cout << " " << i; } x /= 10; } ...
#include <iomanip> #include <iostream> using namespace std; int main() { int i, n, x; cin >> n; for (i = 1; i <= n; i++) { if (i % 3 == 0) { cout << " " << i; } else { x = i; while (x != 0) { if (x % 10 == 3) { cout << " " << i; break; } x /...
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
1
102
#include <iostream> using namespace std; void call(int n) { int x = 0; int i; while (++i <= n) { x = i; if (x % 3 == 0) { cout << " " << i; } else { do { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } while (x); // iなしだと無限に0を上のwh...
#include <iostream> using namespace std; void call(int n) { int x = 0; int i = 0; while (++i <= n) { x = i; if (x % 3 == 0) { cout << " " << i; } else { do { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } while (x); // iなしだと無限に0を...
[["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]]
1
114
#include <iostream> using namespace std; bool has3(int x); void call(int n); int main() { int n; cin >> n; call(n); return 0; } void call(int n) { for (int x = 1; x <= n; x++) { if (x % 3 == 0 || has3(x)) { cout << " " << x; } } cout << endl; } bool has3(int x) { //条件を満たすか返すだけ while (x...
#include <iostream> using namespace std; bool has3(int x); void call(int n); int main() { int n; cin >> n; call(n); return 0; } void call(int n) { for (int x = 1; x <= n; x++) { if (x % 3 == 0 || has3(x)) { cout << " " << x; } } cout << endl; } bool has3(int x) { //条件を満たすか返すだけ while (x...
[["-", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]]
1
125
#include <iostream> int main() { int n; std::cin >> n; for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { std::cout << " " << i; continue; } do { if (x % 10 == 3) { std::cout << " " << i; } } while (x /= 10); } std::cout << std::endl; }
#include <iostream> int main() { int n; std::cin >> n; for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { std::cout << " " << i; continue; } do { if (x % 10 == 3) { std::cout << " " << i; break; } } while (x /= 10); } std::cout << std::endl...
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
1
98
#include "iostream" using namespace std; int main() { int x, a; cin >> x; for (int i = 1; i <= x; i++) { if (i % 3 == 0) { cout << " " << i; } else { a = i; do { if (a % 10 == 3) { cout << " " << i; } a /= 10; } while (a); } } cout << endl...
#include "iostream" using namespace std; int main() { int x, a; cin >> x; for (int i = 1; i <= x; i++) { if (i % 3 == 0) { cout << " " << i; } else { a = i; do { if (a % 10 == 3) { cout << " " << i; break; } a /= 10; } while (a); } ...
[["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]]
1
98
#include <bits/stdc++.h> using namespace std; bool nabeatsu(int n) { if (n % 3 == 0) return true; int temp = n; while (temp > 0) { if (temp % 10 == 3) return true; temp /= 10; } return false; } int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (nabeatsu(i)) { c...
#include <bits/stdc++.h> using namespace std; bool nabeatsu(int n) { if (n % 3 == 0) return true; int temp = n; while (temp > 0) { if (temp % 10 == 3) return true; temp /= 10; } return false; } int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (nabeatsu(i)) { c...
[["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]]
1
106
#include <iostream> using namespace std; int main(void) { int i; int num; int tmp; cin >> num; for (i = 0; i <= num; i++) { tmp = num; if (i % 3 == 0 && !(i == 0)) { cout << " " << i; } else { while (tmp > 0) { if (tmp % 10 == 3) { cout << " " << endl; brea...
#include <iostream> using namespace std; int main(void) { int i; int num; int tmp; cin >> num; for (i = 1; i <= num; i++) { tmp = i; if (i % 3 == 0 && !(i == 0)) { cout << " " << i; } else { while (tmp > 0) { if (tmp % 10 == 3) { cout << " " << i; break; ...
[["-", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 10, 11, 12, 13], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 12, 22], ["+", 0, 7, 8, 9, 0, 1, 0, 11, 12, 22], ["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]]
1
112
#include <iostream> using namespace std; int main() { int x, y; y = 1; cin >> x; for (; y <= x; y = y + 1) { if (y % 3 == 0) { cout << " " << y; } else if (y % 10 == 3) { cout << " " << y; } else if (y / 10 == 3 || y / 100 == 3 || y / 1000 == 3) { cout << " " << y; } } cout...
#include <iostream> using namespace std; int main() { int x, y; y = 1; cin >> x; for (; y <= x; y = y + 1) { if (y % 3 == 0) { cout << " " << y; } else if (y % 10 == 3) { cout << " " << y; } else if (y % 100 / 10 == 3 || y % 1000 / 100 == 3 || y % 10000 / 1000 == 3) { ...
[["+", 31, 16, 31, 16, 31, 16, 31, 16, 17, 109], ["+", 31, 16, 31, 16, 31, 16, 31, 16, 12, 13], ["+", 31, 16, 12, 16, 31, 16, 31, 16, 17, 109], ["+", 31, 16, 12, 16, 31, 16, 31, 16, 12, 13], ["+", 51, 16, 12, 16, 31, 16, 31, 16, 17, 109], ["+", 51, 16, 12, 16, 31, 16, 31, 16, 12, 13]]
1
112
import java.util.Scanner; public class Main { void call(int n) { for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.printf(" %d", i); continue; } do { if (x % 10 == 3) { System.out.printf(" %d", i); } x /= 10; } w...
import java.util.Scanner; public class Main { void call(int n) { for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.printf(" %d", i); continue; } do { if (x % 10 == 3) { System.out.printf(" %d", i); break; } x...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
153
import java.util.Scanner; public class Main { Scanner scan = new Scanner(System.in); void run() { int n = scan.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { do { if (x % 10 == 3) { System.ou...
import java.util.Scanner; public class Main { Scanner scan = new Scanner(System.in); void run() { int n = scan.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { do { if (x % 10 == 3) { System.ou...
[["-", 75, 196, 0, 82, 15, 23, 0, 16, 17, 47], ["+", 75, 196, 0, 82, 15, 23, 0, 16, 17, 79], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 46], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]]
3
154
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 = 3; i <= n; i++) { if (i % 3 == 0) { System.out.print(" " + i); } int a = i; if (a / 1000 == 3) { Syst...
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 = 3; i <= n; i++) { if (i % 3 == 0) { System.out.print(" " + i); } else { int a = i; if (a / 1000 == 3) {...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 57, 64, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 57, 64, 196, 0, 46], ["+", 0, 57, 75, 196, 0, 57, 75, 196, 0, 46]]
3
223
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { for (x = i; x != 0; x /= 10) {...
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scan = new Scanner(System.in); int n = scan.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { for (x = i; x != 0; x /= 10) {...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
137
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(); String line = br.re...
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(); String line = br.re...
[["+", 0, 57, 64, 196, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 196, 0, 1, 0, 11, 12, 499], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35]]
3
186
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String nabe = ""; for (int i = 3; i < N; i++) { if (i % 3 == 0 || Integer.toString(i).contains("3")) { nabe += (" " + i); } } ...
import java.util.Scanner; public class Main { public static void main(String args[]) { Scanner sc = new Scanner(System.in); int N = sc.nextInt(); String nabe = ""; for (int i = 3; i <= N; i++) { if (i % 3 == 0 || Integer.toString(i).contains("3")) { nabe += (" " + i); } } ...
[["-", 0, 195, 8, 196, 0, 7, 15, 16, 17, 18], ["+", 0, 195, 8, 196, 0, 7, 15, 16, 17, 19]]
3
109
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { int num; String[] str; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder builder = new Str...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; public class Main { public static void main(String[] args) throws IOException { int num; String[] str; BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); StringBuilder builder = new Str...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
224
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner std = new Scanner(System.in); int n = Integer.parseInt(std.next()); String ret = ""; for (int i = 3; i <= n; i++) { int j = i; if (i % 3 == 0) { ret += " " + i; } while (j > ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner std = new Scanner(System.in); int n = Integer.parseInt(std.next()); String ret = ""; for (int i = 3; i <= n; i++) { int j = i; if (i % 3 == 0) { ret += " " + i; } else { wh...
[["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 52, 8, 196, 0, 57, 75, 196, 0, 46]]
3
138
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int x, i, tmp; StringBuilder sb = new StringBuilder(); x = Integer.parseInt(br.readLine()); for (i = 3; i <= x; i++) { if (i ...
import java.io.*; class Main { public static void main(String[] args) throws IOException { BufferedReader br = new BufferedReader(new InputStreamReader(System.in)); int x, i, tmp; StringBuilder sb = new StringBuilder(); x = Integer.parseInt(br.readLine()); for (i = 1; i <= x; i++) { if (i ...
[["-", 0, 195, 8, 196, 0, 7, 502, 11, 12, 499], ["+", 0, 195, 8, 196, 0, 7, 502, 11, 12, 499], ["+", 8, 196, 0, 7, 8, 196, 0, 57, 0, 95], ["+", 0, 7, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 57, 75, 196, 0, 52, 8, 196, 0, 46]]
3
154
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) { ...
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) { ...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35], ["+", 75, 196, 0, 52, 8, 196, 0, 57, 0, 95], ["+", 0, 52, 8, 196, 0, 57, 75, 196, 0, 45], ["+", 0, 52, 8, 196, 0, 57, 75, 196, 0, 46]]
3
159
import java.io.*; import java.util.*; public class Main { static int check_three2(int num) { if (num < 10 && num != 3) return 0; int temp = num - (num / 10 * 10); if (temp == 3) { return 1; } else { return check_three2(temp); } } static int check_three(int num) { if (n...
import java.io.*; import java.util.*; public class Main { static int check_three2(int num) { if (num < 10 && num != 3) return 0; int temp = num - (num / 10 * 10); if (temp == 3) { return 1; } else { return check_three2((num - temp) / 10); } } static int check_three(int num...
[["+", 0, 492, 3, 4, 0, 16, 31, 23, 0, 24], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 31, 22], ["+", 3, 4, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 0, 492, 3, 4, 0, 16, 31, 23, 0, 25], ["+", 0, 37, 0, 492, 3, 4, 0, 16, 17, 85], ["+", 0, 37, 0, 492, 3, 4, 0, 16, 12, 499]]
3
198
import java.util.Scanner; public class Main { private static int input_num, x; public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); input_num = stdIn.nextInt(); for (int i = 1; i <= input_num; i++) { x = i; if (x % 3 == 0) { System.out.print(" " + x); ...
import java.util.Scanner; public class Main { private static int input_num, x; public static void main(String[] args) { Scanner stdIn = new Scanner(System.in); input_num = stdIn.nextInt(); for (int i = 1; i <= input_num; i++) { x = i; if (x % 3 == 0) { System.out.print(" " + x); ...
[["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
142
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int tmp; for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3) { System.out.print(" " + i); } else if (i >= 30) { tmp...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int tmp; for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3) { System.out.print(" " + i); } else if (i >= 30) { tmp...
[["-", 15, 15, 0, 16, 12, 16, 31, 16, 17, 85], ["+", 15, 15, 0, 16, 12, 16, 31, 16, 17, 109]]
3
154
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 % 10 == 3 || Integer.toString(i).contains("3")) { System.out.printf(" %d", i); } } System....
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int num = sc.nextInt(); for (int i = 1; i <= num; i++) { if (i % 3 == 0 || Integer.toString(i).contains("3")) { System.out.printf(" %d", i); } } System.o...
[["-", 15, 15, 0, 16, 31, 16, 31, 16, 12, 499], ["-", 0, 57, 15, 15, 0, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 17, 60], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 12, 499]]
3
105
import java.util.Scanner; public class Main { public static void main(String[] ards) { 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); } while (true) { if (x % 10 == 3 && x % 3 !...
import java.util.Scanner; public class Main { public static void main(String[] ards) { 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); } while (true) { if (x % 10 == 3) { ...
[["-", 8, 196, 0, 57, 15, 15, 0, 16, 17, 98], ["-", 15, 15, 0, 16, 12, 16, 31, 16, 31, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 15, 0, 25], ["+", 0, 52, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 57, 0, 121], ["+", 0, 57, 64, 196, 0, 57, 15, 15, 0, 24], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 31, 22], ["+...
3
148
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; while (i <= n) { x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { do { if (x...
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; while (i <= n) { x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { do { if (x...
[["+", 0, 82, 8, 196, 0, 57, 64, 196, 0, 45], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 0, 82, 8, 196, 0, 57, 64, 196, 0, 46]]
3
138
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; int n = sc.nextInt(); do { int x = i; if (x % 3 == 0) { System.out.println(" " + i); while (true) { if (x % 10 == 3) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i = 1; int n = sc.nextInt(); do { int x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { while (true) { if (x % 10 == 3...
[["-", 0, 57, 64, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 57, 64, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 82, 8, 196, 0, 57, 64, 196, 0, 46], ["+", 8, 196, 0, 82, 8, 196, 0, 57, 0, 95], ["+", 0, 82, 8, 196, 0, 57, 75, 196, 0, 45]]
3
142
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; do { int x = i; if (x % 3 == 0) { System.out.print(" " + i); } while (true) { if (x % 10 == 3) { ...
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; do { int x = i; if (x % 3 == 0) { System.out.print(" " + i); continue; } while (true) { if (x % ...
[["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 117], ["+", 8, 196, 0, 57, 64, 196, 0, 116, 0, 35]]
3
142
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.print(i); } else { while (true) { if (x % 10 ...
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.print(" " + i); } else { while (true) { if (x...
[["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 62], ["+", 0, 492, 3, 4, 0, 16, 31, 5, 0, 491], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 17, 72]]
3
146
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; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { System.out.print(" " + x); } else { while (x != 0) { ...
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; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { while (x != 0) { ...
[["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22]]
3
138
import java.util.Scanner; /** * Created by khrom on 2017/06/17. */ public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int input = scanner.nextInt(); for (int i = 3; i <= input; i++) { if (i % 3 == 0 || String.valueOf(i).contains("3")) Sy...
import java.util.Scanner; /** * Created by khrom on 2017/06/17. */ public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int input = scanner.nextInt(); for (int i = 3; i <= input; i++) { if (i % 3 == 0 || String.valueOf(i).contains("3")) Sy...
[["+", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46], ["-", 0, 7, 8, 196, 0, 1, 0, 492, 141, 22], ["+", 0, 195, 8, 196, 0, 1, 0, 492, 141, 22], ["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 62], ["-", 0, 1, 0, 492, 3, 4, 0, 5, 0, 44], ["-", 0, 195, 8, 196, 0, 7, 8, 196, 0, 46]]
3
107
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { /** * @param args * @throws IOException * @throws NumberFormatException */ public static void main(String[] args) throws NumberFormatException, IOException { ...
import java.io.BufferedReader; import java.io.IOException; import java.io.InputStreamReader; import java.util.Arrays; public class Main { /** * @param args * @throws IOException * @throws NumberFormatException */ public static void main(String[] args) throws NumberFormatException, IOException { ...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
213
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; ...
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; ...
[["-", 0, 57, 15, 15, 0, 16, 31, 492, 141, 22], ["+", 75, 196, 0, 57, 15, 15, 0, 492, 141, 22], ["-", 75, 196, 0, 57, 15, 15, 0, 16, 17, 47], ["-", 75, 196, 0, 57, 15, 15, 0, 16, 12, 499]]
3
157
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(); String datas = br...
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(); String datas = br...
[["-", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 7, 502, 503, 49, 200, 51, 499], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
3
178
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); } } ...
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); } } ...
[["+", 12, 16, 31, 492, 3, 4, 0, 5, 0, 62]]
3
109
import java.util.*; public class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner cin = new Scanner(System.in); int n = cin.nextInt(); int i = 1; while (i <= n) { int x = i; if (x % 3 == 0) { System.out....
import java.util.*; public class Main { /** * @param args */ public static void main(String[] args) { // TODO Auto-generated method stub Scanner cin = new Scanner(System.in); int n = cin.nextInt(); int i = 1; while (i <= n) { int x = i; if (x % 3 == 0) { System.out....
[["+", 8, 196, 0, 52, 8, 196, 0, 57, 0, 95]]
3
159
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()); int x = 1; ...
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()); int x = 1; ...
[["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 35]]
3
181
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.print(" " + x); } else { while (x > 0) { if (x % 10...
import java.util.Scanner; class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.print(" " + x); } else { while (x > 0) { if (x % 10...
[["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
3
133
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); scanner.close(); for (int i = 1; i <= n; ++i) { int x = i; if (x % 3 == 0) { System.out.print(" " + x); } else { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); scanner.close(); for (int i = 1; i <= n; ++i) { int x = i; if (x % 3 == 0) { System.out.print(" " + i); } else { ...
[["-", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 0, 1, 0, 492, 3, 4, 0, 16, 12, 22], ["+", 8, 196, 0, 57, 64, 196, 0, 1, 0, 35], ["+", 8, 196, 0, 57, 64, 196, 0, 93, 0, 94]]
3
141
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); boolean j = true; for (int i = 1; i <= n; i++) { if (i % 10 == 3 || i % 3 == 0) { System.out.print(" " + i); j = false; } ...
import java.util.Scanner; class Main { public static void main(String args[]) { Scanner scanner = new Scanner(System.in); int n = scanner.nextInt(); boolean j = true; for (int i = 1; i <= n; i++) { if (i % 10 == 3 || i % 3 == 0) { System.out.print(" " + i); j = false; } ...
[["-", 15, 15, 0, 16, 31, 16, 12, 16, 12, 499], ["+", 15, 15, 0, 16, 31, 16, 12, 16, 12, 499], ["-", 0, 57, 15, 15, 0, 16, 12, 16, 12, 499], ["+", 0, 57, 15, 15, 0, 16, 12, 16, 12, 499]]
3
228
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int j; for (int i = 1; i <= n; i++) { if (i % 3 == 0) System.out.print(" " + i); else { j = i; while (j != 0) { ...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int n = sc.nextInt(); int j; for (int i = 1; i <= n; i++) { if (i % 3 == 0) System.out.print(" " + i); else { j = i; while (j != 0) { ...
[["-", 0, 57, 15, 15, 0, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 15, 0, 16, 31, 16, 31, 22]]
3
136
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i; int n = sc.nextInt(); for (i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.printf(" %d", x); continue; } while (x !=...
import java.util.Scanner; public class Main { public static void main(String[] args) { Scanner sc = new Scanner(System.in); int i; int n = sc.nextInt(); for (i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { System.out.printf(" %d", i); continue; } while (x !=...
[["-", 64, 196, 0, 1, 0, 492, 3, 4, 0, 22], ["+", 64, 196, 0, 1, 0, 492, 3, 4, 0, 22]]
3
140