Datasets:

problem_id
stringlengths
6
6
buggy_code
stringlengths
8
526k
fixed_code
stringlengths
12
526k
labels
listlengths
0
15
⌀
buggy_submission_id
int64
1
1.54M
fixed_submission_id
int64
2
1.54M
user_id
stringlengths
10
10
language
stringclasses
8 values
p02406
// // Created by tac on 2016/10/12. // #include <cstdlib> #include <iostream> int main() { int n; std::cin >> n; for (int i = 1; i <= n; ++i) { if (i % 3 == 0) { std::cout << " " << i; } else { for (int j = i; j > 0; j /= 10) { if (j % 10 == 3) { std::cout << " " << i; ...
// // Created by tac on 2016/10/12. // #include <cstdlib> #include <iostream> int main() { int n; std::cin >> n; for (int i = 1; i <= n; ++i) { if (i % 3 == 0) { std::cout << " " << i; } else { for (int j = i; j > 0; j /= 10) { if (j % 10 == 3) { std::cout << " " << i; ...
[ "control_flow.break.add" ]
204,001
204,002
u086322596
cpp
p02406
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; i < n; ++i) #define FOR(i, a, b) for (int i = a; i...
#include <algorithm> #include <cmath> #include <cstdio> #include <cstring> #include <fstream> #include <iostream> #include <map> #include <queue> #include <set> #include <stack> #include <string> #include <vector> using namespace std; #define REP(i, n) for (int i = 0; i < n; ++i) #define FOR(i, a, b) for (int i = a; i...
[]
204,003
204,004
u346550152
cpp
p02406
#include <algorithm> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #define rep(i, a) for (i = 1; i <= a; i++) using namespace std; int main(void) { int n, i, x; cin >> n; rep(i, n) { if (i % 3 == 0) cout << " " << i; else { x = i; while (x >= 1) { ...
#include <algorithm> #include <cstdio> #include <cstring> #include <functional> #include <iostream> #define rep(i, a) for (i = 1; i <= a; i++) using namespace std; int main(void) { int n, i, x; cin >> n; rep(i, n) { if (i % 3 == 0) cout << " " << i; else { x = i; while (x > 0) { ...
[ "identifier.change", "io.output.change" ]
204,005
204,006
u866810339
cpp
p02406
#include <stdio.h> int main(void) { int a, s, d, f, g, h, i, j; scanf("%d", &a); for (i = 1; i <= a; i++) { if (i % 3 == 0) printf(" %d", i); else if (i % 10 == 3) printf(" %d", i); else { d = i; while (1) { if (d < 10) break; d = d / 10; h = d...
#include <stdio.h> int main(void) { int a, s, d, f, g, h, i, j; scanf("%d", &a); for (i = 1; i <= a; i++) { if (i % 3 == 0) printf(" %d", i); else if (i % 10 == 3) printf(" %d", i); else { d = i; while (1) { if (d < 10) break; d = d / 10; h = d...
[ "control_flow.break.add" ]
204,007
204,008
u513206778
cpp
p02406
#include <iostream> using namespace std; void call(int num) { for (int i = 1; i <= num; i++) { int x = i; // 3????????°?????¨??? if (x % 3 == 0) { cout << " " << i; } // 3???????????°?????¨??? else { do { if (x % 10 == 3) { cout << " " << x; break;...
#include <iostream> using namespace std; void call(int num) { for (int i = 1; i <= num; i++) { int x = i; // 3????????°?????¨??? if (x % 3 == 0) { cout << " " << i; } // 3???????????°?????¨??? else { do { if (x % 10 == 3) { cout << " " << i; break;...
[ "identifier.change", "io.output.change", "control_flow.loop.for.condition.change", "expression.operation.binary.remove" ]
204,009
204,010
u264049096
cpp
p02406
#include <cstdio> #include <iomanip> #include <iostream> using namespace std; void call(int n) { for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { cout << " " << x; } else { while (1) { if (x % 10 == 3) { cout << " " << x; break; } else if (x >= 1...
#include <cstdio> #include <iomanip> #include <iostream> using namespace std; void call(int n) { for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { cout << " " << x; } else { while (1) { if (x % 10 == 3) { cout << " " << i; break; } else if (x >= 1...
[ "identifier.change", "io.output.change" ]
204,012
204,013
u680890526
cpp
p02406
#include <iostream> int main() { int i = 1; int n, x; std::cin >> n; do { x = i; if (x % 3 == 0) { std::cout << " " << i; continue; } for (x; x != 0; x /= 10) { if (x % 10 == 3) { std::cout << " " << i; } } } while (++i <= n); std::cout << std::endl; ...
#include <iostream> int main() { int i = 1; int n, x; std::cin >> n; do { x = i; if (x % 3 == 0) { std::cout << " " << i; continue; } for (x; x != 0; x /= 10) { if (x % 10 == 3) { std::cout << " " << i; break; } } } while (++i <= n); std::cout <...
[ "control_flow.break.add" ]
204,014
204,015
u345854513
cpp
p02406
#include <bits/stdc++.h> using namespace std; signed main() { int a; scanf("%d", &a); bool b; for (int f = 3; f <= a; f++) { b = false; if (a % 3 == 0) b = true; string c = to_string(a); for (char d : c) { if (d == '3') b = true; } if (b) printf(" %d", f); } ...
#include <bits/stdc++.h> using namespace std; signed main() { int a; scanf("%d", &a); bool b; for (int f = 3; f <= a; f++) { b = false; if (f % 3 == 0) b = true; string c = to_string(f); for (char d : c) { if (d == '3') b = true; } if (b) printf(" %d", f); } ...
[ "identifier.change", "control_flow.branch.if.condition.change", "call.arguments.change" ]
204,016
204,017
u765159858
cpp
p02406
#include <bits/stdc++.h> using namespace std; signed main() { int a; scanf("%d", &a); bool b; for (int f = 3; f <= a; f++) { b = false; if (f % 3 == 0) b = true; string c = to_string(a); for (char d : c) { if (d == '3') b = true; } if (b) printf(" %d", f); } ...
#include <bits/stdc++.h> using namespace std; signed main() { int a; scanf("%d", &a); bool b; for (int f = 3; f <= a; f++) { b = false; if (f % 3 == 0) b = true; string c = to_string(f); for (char d : c) { if (d == '3') b = true; } if (b) printf(" %d", f); } ...
[ "identifier.change", "call.arguments.change" ]
204,018
204,017
u765159858
cpp
p02406
#include <cstdio> #include <iostream> using namespace std; bool three(int x) { if (x % 3 == 0) return true; while (x > 0) { if (x % 10 == 3) return true; x /= 10; } return false; } int main() { int n, i; cin >> n; for (i = 1; i < n; i++) { if (three(i)) cout << " " << i; } ...
#include <cstdio> #include <iostream> using namespace std; bool three(int x) { if (x % 3 == 0) return true; while (x > 0) { if (x % 10 == 3) return true; x /= 10; } return false; } int main() { int n, i; cin >> n; for (i = 1; i <= n; i++) { if (three(i)) cout << " " << i; } ...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
204,021
204,022
u838833552
cpp
p02406
#include <iostream> using namespace std; void call(int n) { for (int i = 1; i < n + 1; i++) { if (i % 3 == 0) { cout << " " << i; } else { int x = i; while (x > 0) { if (i % 10 == 3) { cout << " " << i; break; } x = x / 10; } } } cou...
#include <iostream> using namespace std; void call(int n) { for (int i = 1; i < n + 1; i++) { if (i % 3 == 0) { cout << " " << i; } else { int x = i; while (x > 0) { if (x % 10 == 3) { cout << " " << i; break; } x = x / 10; } } } cou...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
204,025
204,026
u508732591
cpp
p02406
#include <iostream> using namespace std; void call(int n) { int i = 1; do { int x = i; if (x % 3 == 0) { cout << " " << i; } do { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } while (x); i++; } while (i <= n); cout << endl; } int mai...
#include <iostream> using namespace std; void call(int n) { int i = 1; do { int x = i; if (x % 3 == 0) { cout << " " << i; } else { do { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } while (x); } i++; } while (i <= n);...
[ "control_flow.branch.else.add" ]
204,027
204,028
u522482726
cpp
p02406
#include <iostream> #include <stdio.h> #include <vector> #define _USE_MATH_DEFINES #include <math.h> using namespace std; int HelloWorld() { cout << "Hello World" << endl; return 0; } int XCubic() { int x; cin >> x; if (1 <= x && x <= 100) { x = x * x * x; cout << x << endl; return 0; } retu...
#include <iostream> #include <stdio.h> #include <vector> #define _USE_MATH_DEFINES #include <math.h> using namespace std; int HelloWorld() { cout << "Hello World" << endl; return 0; } int XCubic() { int x; cin >> x; if (1 <= x && x <= 100) { x = x * x * x; cout << x << endl; return 0; } retu...
[ "control_flow.branch.else.add" ]
204,032
204,033
u983451181
cpp
p02406
#include <iostream> using namespace std; int main(void) { int i, x, n; cin >> n; for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) cout << " " << i; else { while (x) { if (x % 10 == 3) cout << " " << i; x /= 10; } } } cout << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int i, x, n; cin >> n; for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) cout << " " << i; else { while (x) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } } } co...
[ "control_flow.break.add" ]
204,034
204,035
u690299834
cpp
p02406
#include <iostream> using namespace std; int main(void) { int i, x, n; cin >> n; for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) cout << " " << i; else { while (x) { if (x % 10 == 3) cout << " " << i; x /= 10; } } } cout << endl; return 0; }
#include <iostream> using namespace std; int main(void) { int i, x, n; cin >> n; for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) cout << " " << i; else { while (x) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } } } co...
[ "control_flow.break.add" ]
204,036
204,035
u690299834
cpp
p02407
#include <iostream> using namespace std; int main() { short int n; cin >> n; short int a[n]; for (short int i = 0; i < n; i++) //入力 cin >> a[n]; for (short int i = n - 1; i > 0; i--) //出力 cout << a[i] << " "; cout << a[0] << endl; return 0; }
#include <iostream> using namespace std; int main() { short int n; cin >> n; short int a[n]; for (short int i = 0; i < n; i++) //入力 cin >> a[i]; for (short int i = n - 1; i > 0; i--) //出力 cout << a[i] << " "; cout << a[0] << endl; return 0; }
[ "identifier.change", "variable_access.subscript.index.change", "expression.operation.binary.change" ]
205,356
205,357
u642752018
cpp
p02407
#include <iostream> using namespace std; int main() { int n; int numbers[1000]; for (int i = 0; i < n; ++i) { cin >> numbers[i]; } for (int i = 0; i < n; ++i) { if (i) cout << " "; cout << numbers[n - 1 - i]; } cout << endl; return 0; }
#include <iostream> using namespace std; int main() { int n; int numbers[100]; cin >> n; for (int i = 0; i < n; ++i) { cin >> numbers[i]; } for (int i = 0; i < n; ++i) { if (i) cout << " "; cout << numbers[n - 1 - i]; } cout << endl; return 0; }
[ "literal.number.change", "variable_declaration.array_dimensions.change" ]
205,360
205,361
u186297440
cpp
p02407
#include <iostream> using namespace std; int main() { int n; int numbers[100]; for (int i = 0; i < n; ++i) { cin >> numbers[i]; } for (int i = 0; i < n; ++i) { if (i) cout << " "; cout << numbers[n - 1 - i]; } cout << endl; return 0; }
#include <iostream> using namespace std; int main() { int n; int numbers[100]; cin >> n; for (int i = 0; i < n; ++i) { cin >> numbers[i]; } for (int i = 0; i < n; ++i) { if (i) cout << " "; cout << numbers[n - 1 - i]; } cout << endl; return 0; }
[]
205,363
205,361
u186297440
cpp
p02406
/* ?§???????????????°???????????° goto ?????????C/C++?¨????????????§???????????¨?????§???????????§????????????????????¨????????¶????????????????????????????????????????£?????????????????????° goto CHECK_NUM; ??¨?????????????????????????????¨???????????°??????????????§ CHECK_NUM: ??¨????????????????????????????§???????...
/* ?§???????????????°???????????° goto ?????????C/C++?¨????????????§???????????¨?????§???????????§????????????????????¨????????¶????????????????????????????????????????£?????????????????????° goto CHECK_NUM; ??¨?????????????????????????????¨???????????°??????????????§ CHECK_NUM: ??¨????????????????????????????§???????...
[ "control_flow.break.add" ]
205,394
205,395
u597207241
cpp
p02406
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; for (int a = 1; a <= n; ++a) { int x = a; if (x % 3 == 0) { cout << " " << x; } else { while (1) { if (x % 10 == 3) { cou...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; for (int a = 1; a <= n; ++a) { int x = a; if (x % 3 == 0) { cout << " " << a; } else { while (1) { if (x % 10 == 3) { cout...
[ "identifier.change", "io.output.change" ]
205,396
205,397
u221815546
cpp
p02406
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; for (int a = 1; a <= n; ++a) { int x = a; if (x % 3 == 0) { cout << " " << a; } else { while (1) { if (x % 10 == 3) { cou...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; for (int a = 1; a <= n; ++a) { int x = a; if (x % 3 == 0) { cout << " " << a; } else { while (1) { if (x % 10 == 3) { cout...
[ "control_flow.break.add" ]
205,398
205,397
u221815546
cpp
p02406
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; for (int a = 1; a <= n; ++a) { int x = 133; if (x % 3 == 0) { cout << " " << a; } else { while (1) { if (x % 10 == 3) { c...
#include <algorithm> #include <cmath> #include <iomanip> #include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; for (int a = 1; a <= n; ++a) { int x = a; if (x % 3 == 0) { cout << " " << a; } else { while (1) { if (x % 10 == 3) { cout...
[ "variable_declaration.value.change", "identifier.replace.add", "literal.replace.remove" ]
205,400
205,397
u221815546
cpp
p02406
#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; continue; } while (x) { if (x % 10 == 3) cout << ' ' << i; x /= 10; } } cout << endl; }
#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; continue; } while (x) { if (x % 10 == 3) { cout << ' ' << i; break; } x /= 10; } } cout << end...
[ "control_flow.break.add" ]
205,403
205,404
u577885507
cpp
p02406
#include <iostream> using namespace std; int main() { int i = 1, n, x; cin >> n; while (i <= n) { x = i; if (x % 3 == 0) { cout << " " << i; } else { while (x) { if (x % 10 == 3) cout << " " << i; x /= 10; } } i++; } cout << endl; return 0; }
#include <iostream> using namespace std; int main() { int i = 1, n, x; cin >> n; while (i <= n) { x = i; if (x % 3 == 0) { cout << " " << i; } else { while (x) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } } i++; } ...
[ "control_flow.break.add" ]
205,405
205,406
u141917820
cpp
p02406
#include <iostream> using namespace std; int main() { int x; cin >> x; for (int i = 1; i <= x; i++) { if (i % 3 == 0) { cout << " " << i; } else { int j = i; while (j) { if (j % 10 == 3) cout << " " << i; j /= 10; } } } cout << endl; return 0; }
#include <iostream> using namespace std; int main() { int x; cin >> x; for (int i = 1; i <= x; i++) { if (i % 3 == 0) { cout << " " << i; } else { int j = i; while (j) { if (j % 10 == 3) { cout << " " << i; break; } j /= 10; } } } ...
[ "control_flow.break.add" ]
205,407
205,408
u888871392
cpp
p02406
#include <stdio.h> int main() { int n; int i = 1; int x; scanf("%d", &n); do { if (i % 3 == 0 || i % 10 == 3) { printf(" %d", i); } else { x = i; do { x /= 10; if (x % 10 == 3) { printf(" %d", i); break; } } while (x == 1); } ...
#include <stdio.h> int main() { int n; int i = 1; int x; scanf("%d", &n); do { if (i % 3 == 0 || i % 10 == 3) { printf(" %d", i); } else { x = i; do { x /= 10; if (x % 10 == 3) { printf(" %d", i); break; } } while (x >= 10); } ...
[]
205,409
205,410
u239471853
cpp
p02406
#include "iostream" using namespace std; int main() { int n; cin >> n; for (size_t z = 1; z <= n; z++) { int i = z; if (i % 3 == 0) { cout << " " << i; } else { do { if (i % 10 == 3) { cout << " " << i; break; } } while (i /= 10); } } cout...
#include "iostream" using namespace std; int main() { int n; cin >> n; for (size_t z = 1; z <= n; z++) { int i = z; if (i % 3 == 0) { cout << " " << i; } else { do { if (i % 10 == 3) { cout << " " << z; break; } } while (i /= 10); } } cout...
[ "identifier.change", "io.output.change" ]
205,413
205,414
u220303428
cpp
p02406
#include <stdio.h> int main(void) { int n; scanf("%d", &n); for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3) { printf(" %d", i); } else { for (int x = i / 10; x; x /= 10) { if (x % 10 == 3) { printf(" %d", x); break; } } } } printf...
#include <stdio.h> int main(void) { int n; scanf("%d", &n); for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3) { printf(" %d", i); } else { for (int x = i / 10; x; x /= 10) { if (x % 10 == 3) { printf(" %d", i); break; } } } } printf...
[ "identifier.change", "call.arguments.change", "io.output.change" ]
205,415
205,416
u772726453
cpp
p02406
#include <iostream> using namespace std; int main(void) { int n; int x; cin >> n; for (int i = 1; i <= n; i++) { if (i / 3 == 0) { cout << " " << i; } else { x = i; do { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } while ...
#include <iostream> using namespace std; int main(void) { int n; int x; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) { cout << " " << i; } else { x = i; do { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } while ...
[ "expression.operator.arithmetic.change", "control_flow.branch.if.condition.change" ]
205,425
205,426
u371904152
cpp
p02406
#include <algorithm> #include <iostream> using namespace std; int i, j, n, a[100], v[100], l = 0; bool keisan(int, int); int main() { int n, ans; bool bo; cin >> n; for (int i = 3; i <= n; i++) { bo = keisan(n, i); if (bo == true) { cout << " " << i; } else if (bo == false) { continue; ...
#include <algorithm> #include <iostream> using namespace std; int i, j, n, a[100], v[100], l = 0; bool keisan(int, int); int main() { int n, ans; bool bo; cin >> n; for (int i = 3; i <= n; i++) { bo = keisan(n, i); if (bo == true) { cout << " " << i; } else if (bo == false) { continue; ...
[]
205,428
205,429
u304898265
cpp
p02406
#include <stdio.h> int main() { int n; scanf("%d", &n); for (int i = 0; i <= n; i++) { int a = i; if (i % 3 == 0) { printf(" %d", i); } else { while (a) { if (a % 10 == 3) printf(" %d", i); a /= 10; } } } printf("\n"); return 0; }
#include <stdio.h> int main() { int n; scanf("%d", &n); for (int i = 1; i <= n; i++) { int a = i; if (i % 3 == 0) { printf(" %d", i); } else { while (a) { if (a % 10 == 3) { printf(" %d", i); break; } a /= 10; } } } printf("\n"); ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
205,430
205,431
u278641778
cpp
p02406
#include <stdio.h> int main() { int n; scanf("%d", &n); for (int i = 0; i <= n; i++) { int a = i; if (i % 3 == 0) { printf(" %d", i); } else { while (a) { if (a % 10 == 3) { printf(" %d", i); break; } a /= 10; } } } printf("\n"); ...
#include <stdio.h> int main() { int n; scanf("%d", &n); for (int i = 1; i <= n; i++) { int a = i; if (i % 3 == 0) { printf(" %d", i); } else { while (a) { if (a % 10 == 3) { printf(" %d", i); break; } a /= 10; } } } printf("\n"); ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
205,432
205,431
u278641778
cpp
p02406
#include <iostream> using namespace std; int main() { int n, i; cin >> n; for (i = 1; i <= n; i++) { if (i % 3 == 0) cout << " " << i; else { int x = i; while (1) { if (x % 10 == 3) cout << " " << i; if (x / 10 == 0) break; x /= 10; } ...
#include <iostream> using namespace std; int main() { int n, i; cin >> n; for (i = 1; i <= n; i++) { if (i % 3 == 0) cout << " " << i; else { int x = i; while (1) { if (x % 10 == 3) { cout << " " << i; break; } if (x / 10 == 0) break...
[ "control_flow.break.add" ]
205,434
205,435
u673645945
cpp
p02406
#include <stdio.h> void include3(int x, int i) { if (x % 10 == 3) { printf(" %d", i); return; } x /= 10; if (x) return include3(x, i); return; } int main() { int n; int i; int x; scanf("%d", &n); for (i = 0; i < n; i++) { x = i; if (x % 3 == 0) { printf(" %d\n", i); ...
#include <stdio.h> void include3(int x, int i) { if (x % 10 == 3) { printf(" %d", i); return; } x /= 10; if (x) return include3(x, i); return; } int main() { int n; int i; int x; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d", i); ...
[ "literal.number.change", "assignment.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one", "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.operation.binary.change", "literal.string.change", "call.arguments.change", "io.outpu...
205,436
205,437
u905808447
cpp
p02406
#include <stdio.h> void include3(int x, int i) { if (x % 10 == 3) { printf(" %d", i); return; } x /= 10; if (x) return include3(x, i); return; } int main() { int n; int i; int x; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d\n", i); ...
#include <stdio.h> void include3(int x, int i) { if (x % 10 == 3) { printf(" %d", i); return; } x /= 10; if (x) return include3(x, i); return; } int main() { int n; int i; int x; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d", i); ...
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.remove" ]
205,440
205,437
u905808447
cpp
p02406
#include <stdio.h> void include3(int x, int i) { if (x % 10 == 3) { printf(" %d", i); return; } x /= 10; if (x) return include3(x, i); return; } int main() { int n; int i; int x; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d\n", i); ...
#include <stdio.h> void include3(int x, int i) { if (x % 10 == 3) { printf(" %d", i); return; } x /= 10; if (x) return include3(x, i); return; } int main() { int n; int i; int x; scanf("%d", &n); for (i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { printf(" %d", i); ...
[ "literal.string.change", "call.arguments.change", "io.output.change", "io.output.newline.remove" ]
205,441
205,437
u905808447
cpp
p02406
#include <cstdio> #include <iostream> using namespace std; int main() { int n, x; cin >> n; for (int i = 1; i <= n; ++i) { if (i % 3 == 0) { printf(" %d", i); } else { for (x = i; x > 0; x /= 10) { if (x % 10 == 3) { printf(" %d", i); } } } } printf("\n...
//============================================================================ // Name : ITP_1_5_D.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include ...
[ "control_flow.break.add" ]
205,442
205,443
u263859629
cpp
p02406
#include <cstdio> #include <iostream> using namespace std; int main() { int n, x; cin >> n; for (int i = 1; i <= n; ++i) { if (i % 3 == 0) { printf(" %d", i); } else { for (x = i; x > 0; x /= 10) { if (x % 10 == 3) { printf(" %d", i); } } } } printf("\...
//============================================================================ // Name : ITP_1_5_D.cpp // Author : // Version : // Copyright : Your copyright notice // Description : Hello World in C++, Ansi-style //============================================================================ #include ...
[ "control_flow.break.add" ]
205,444
205,443
u263859629
cpp
p02406
#include <stdio.h> int main() { int n, x = 1, a = 0; int i = 1; scanf("%d", &n); do { x = i; if (x % 3 == 0) { printf("%d", &i); a = 1; } if (a == 0) { do { if (x % 10 == 3) { printf("%d", &i); ; break; } x /= 10; } ...
#include <stdio.h> int main() { int n, x = 1, a = 0; int i = 1; scanf("%d", &n); do { x = i; if (x % 3 == 0) { printf(" %d", i); a = 1; } if (a == 0) { do { if (x % 10 == 3) { printf(" %d", i); break; } x /= 10; } while (x); ...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
205,445
205,446
u726704931
cpp
p02406
#include <stdio.h> int main() { int n, x = 1, a = 0; int i = 1; scanf("%d", &n); do { x = i; if (x % 3 == 0) { printf(" %d", &i); a = 1; } if (a == 0) { do { if (x % 10 == 3) { printf(" %d", &i); ; break; } x /= 10; ...
#include <stdio.h> int main() { int n, x = 1, a = 0; int i = 1; scanf("%d", &n); do { x = i; if (x % 3 == 0) { printf(" %d", i); a = 1; } if (a == 0) { do { if (x % 10 == 3) { printf(" %d", i); break; } x /= 10; } while (x); ...
[ "call.arguments.change" ]
205,447
205,446
u726704931
cpp
p02406
#include <math.h> #include <stdio.h> #define M_PI 3.141592653589793 int main(void) { int i, n; int num; scanf("%d", &n); for (i = 1; i <= n; i++) { if (i % 3 == 0) { printf(" %d", i); } else { num = i; while (1) { if (num % 10 == 3) { printf(" %d", i); } ...
#include <math.h> #include <stdio.h> #define M_PI 3.141592653589793 int main(void) { int i, n; int num; scanf("%d", &n); for (i = 1; i <= n; i++) { if (i % 3 == 0) { printf(" %d", i); } else { num = i; while (1) { if (num % 10 == 3) { printf(" %d", i); ...
[ "control_flow.break.add" ]
205,450
205,451
u824622094
cpp
p02406
#include <iostream> using namespace std; void call(int n) { int x; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { cout << " " << i; continue; } while (true) { if (x % 10 == 3) { cout << " " << i; } x /= 10; if (x == 0) { break; } ...
#include <iostream> using namespace std; void call(int n) { int x; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { cout << " " << i; continue; } while (true) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; if (x == 0) { b...
[ "control_flow.break.add" ]
205,452
205,453
u461884313
cpp
p02406
#include <iostream> using namespace std; int main() { int i = 1, n, x; cin >> n; while (++i <= n) { x = i; if (x % 3 == 0) { cout << " " << i; } else if (x % 10 == 3) { cout << " " << i; } while (x /= 10) { if (x % 10 == 3) { cout << " " << i; } } } c...
#include <iostream> using namespace std; int main() { int i = 1, n, x; cin >> n; while (++i <= n) { x = i; if (x % 3 == 0) { cout << " " << i; } else if (x % 10 == 3) { cout << " " << i; } else { while (x /= 10) { if (x % 10 == 3) { cout << " " << i; ...
[ "control_flow.branch.else.add" ]
205,454
205,455
u426572144
cpp
p02406
#include <iostream> using namespace std; int main() { int i = 1, n, x; cin >> n; while (++i <= n) { x = i; if (x % 3 == 0) { cout << " " << i; } else if (x % 10 == 3) { cout << " " << i; } else { while (x /= 10) { if (x % 10 == 3) { cout << " " << i; }...
#include <iostream> using namespace std; int main() { int i = 1, n, x; cin >> n; while (++i <= n) { x = i; if (x % 3 == 0) { cout << " " << i; } else if (x % 10 == 3) { cout << " " << i; } else { while (x /= 10) { if (x % 10 == 3) { cout << " " << i; ...
[ "control_flow.break.add" ]
205,456
205,455
u426572144
cpp
p02406
#include <cstdio> int main(void) { int i, n, x, a; scanf("%d", &n); for (i = 1; i <= n; i++) { if (i % 3 == 0) { printf(" %d", i); } else { x = i; do { a = 0; if (x % 10 == 3) { printf(" %d", i); a = 1; } x = x / 10; } while (x ...
#include <cstdio> int main(void) { int i, n, x, a; scanf("%d", &n); for (i = 1; i <= n; i++) { if (i % 3 == 0) { printf(" %d", i); } else { x = i; do { a = 0; if (x % 10 == 3) { printf(" %d", i); a = 1; } x = x / 10; } while (x ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
205,461
205,462
u827926935
cpp
p02406
#include <bits/stdc++.h> 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 if (x % 10 == 3) { cout << " " << i; } else { while (x /= 10) { if (x % 10 == 3) { cout << " " << i...
#include <bits/stdc++.h> 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 if (x % 10 == 3) { cout << " " << i; } else { while (x /= 10) { if (x % 10 == 3) { cout << " " << i...
[ "control_flow.break.add" ]
205,465
205,466
u954682566
cpp
p02406
#include <iostream> using namespace std; // #include<cstdio> int main() { int n; cin >> n; for (int i = 0; i <= n; i++) { if (i % 3 == 0) { cout << ' ' << i; continue; } int x = i; while (x) { if (x % 10 == 3) { cout << ' ' << i; break; } x /= 10; ...
#include <iostream> using namespace std; // #include<cstdio> int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) { cout << ' ' << i; continue; } int x = i; while (x) { if (x % 10 == 3) { cout << ' ' << i; break; } x /= 10; ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
205,467
205,468
u622982727
cpp
p02406
#include <iostream> using namespace std; int main() { int n; int x; cin >> n; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { cout << " " << i; } while (x) { if (x % 10 == 3) { cout << " " << i; } x /= 10; } } cout << endl; }
#include <iostream> using namespace std; int main() { int n; int x; cin >> n; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { cout << " " << i; continue; } while (x) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } } cout ...
[ "control_flow.break.add" ]
205,471
205,472
u417793585
cpp
p02406
#include <iostream> using namespace std; int main() { int n; int x; cin >> n; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { cout << " " << i; continue; } while (x) { if (x % 10 == 3) { cout << " " << i; } x /= 10; } } cout << endl; }
#include <iostream> using namespace std; int main() { int n; int x; cin >> n; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { cout << " " << i; continue; } while (x) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } } cout ...
[ "control_flow.break.add" ]
205,473
205,472
u417793585
cpp
p02406
#include <bits/stdc++.h> using namespace std; void call(int n) { for (int i = 1; i <= n; i++) { int x = 1; if (x % 3 == 0) { cout << " " << i; continue; } while (x) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } } cout << endl; } int ...
#include <bits/stdc++.h> using namespace std; void call(int n) { for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { cout << " " << i; continue; } while (x) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } } cout << endl; } int ...
[ "variable_declaration.value.change", "identifier.replace.add", "literal.replace.remove" ]
205,479
205,477
u360619855
cpp
p02406
#include <iostream> using namespace std; bool has3(int x) { while (x) { if (x % 10 == 3) { return true; } x /= 10; } return false; } void call(int n) { for (int i = 0; i <= n; i++) { if (i % 3 == 0 || has3(i)) { cout << " " << i; } } cout << endl; } int main() { int num; ...
#include <iostream> using namespace std; bool has3(int x) { while (x) { if (x % 10 == 3) { return true; } x /= 10; } return false; } void call(int n) { for (int i = 1; i <= n; i++) { if (i % 3 == 0 || has3(i)) { cout << " " << i; } } cout << endl; } int main() { int num; ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
205,483
205,484
u001068672
cpp
p02406
#include <bits/stdc++.h> 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; continue; } while (x) { if (x % 10 == 3) { cout << " " << i; } x /= 10; } } cout << endl; ret...
#include <bits/stdc++.h> 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; continue; } while (x) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } } cout ...
[ "control_flow.break.add" ]
205,488
205,489
u020019294
cpp
p02406
#include <iostream> using namespace std; int main() { int n, x, i = 1; cin >> n; while (i <= n) { x = i; if (x % 3 == 0) { cout << " " << i; } else { while (1) { if (x % 10 == 3) { cout << " " << i; } x /= 10; if (x == 0) { break; ...
#include <iostream> using namespace std; int main() { int n, x, i = 1; cin >> n; while (i <= n) { x = i; if (x % 3 == 0) { cout << " " << i; } else { while (1) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; if (x == 0) { ...
[ "control_flow.break.add" ]
205,495
205,496
u765942285
cpp
p02406
#include <iostream> using namespace std; int main(void) { int n = 0; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3 || ((i / 10) == 3)) { cout << ' ' << i; } else { int x = i; while (x >= 10) { x /= 10; if (x == 3) { cout << ' ' << i; ...
#include <iostream> using namespace std; int main(void) { int n = 0; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3 || ((i / 10) == 3)) { cout << ' ' << i; } else { int x = i; while (x >= 10) { x /= 10; if (x % 10 == 3) { cout << ' ' << i...
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
205,499
205,500
u774652026
cpp
p02406
#include <iostream> using namespace std; int main() { int n, m; cin >> n; for (int i = 1; i <= n; i++) { m = i; if (m % 3 == 0) { cout << " " << i; continue; } while (1) { if (m == 0) break; if (i % 10 == 3) { cout << " " << i; break; } ...
#include <iostream> using namespace std; int main() { int n, m; cin >> n; for (int i = 1; i <= n; i++) { m = i; if (m % 3 == 0) { cout << " " << i; continue; } while (1) { if (m == 0) break; if (m % 10 == 3) { cout << " " << i; break; } ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
205,503
205,504
u780334688
cpp
p02406
#include <iostream> using namespace std; int main() { int n, i = 1; cin >> n; while (i <= n) { if (i % 3 == 0) { cout << " " << i; } else { int x = i; while (x > 0) { if (i % 10 == 0) { cout << " " << i; break; } x /= 10; } } i++...
#include <iostream> using namespace std; int main() { int n, i = 1; cin >> n; while (i <= n) { if (i % 3 == 0) { cout << " " << i; } else { int x = i; while (x > 0) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } } i++...
[ "identifier.change", "control_flow.branch.if.condition.change", "literal.number.change" ]
205,505
205,506
u060812649
cpp
p02406
#include <stdio.h> int main(void) { int max; int i; int x; scanf("%d", &max); for (i = 1; i <= max; i++) { if (i % 3 == 0) { printf(" %d", i); } else { for (x = i; x > 0; x /= 10) { if (x % 10 == 3) { printf(" %d", i); } } } } printf("\n"); r...
#include <stdio.h> int main(void) { int max; int i; int x; scanf("%d", &max); for (i = 1; i <= max; i++) { if (i % 3 == 0) { printf(" %d", i); } else { for (x = i; x > 0; x /= 10) { if (x % 10 == 3) { printf(" %d", i); break; } } } } p...
[ "control_flow.break.add" ]
205,507
205,508
u610083300
cpp
p02406
#include <algorithm> #include <iomanip> #include <iostream> using namespace std; void call(int n); void call2(int n); int main(void) { int n; cin >> n; call2(n); return 0; } void call(int n) { int i = 1; CHECK_NUM: int x = i; if (x % 3 == 0) { cout << " " << i; goto END_CHECK_NUM; } INCL...
#include <algorithm> #include <iomanip> #include <iostream> using namespace std; void call(int n); void call2(int n); int main(void) { int n; cin >> n; call(n); return 0; } void call(int n) { int i = 1; CHECK_NUM: int x = i; if (x % 3 == 0) { cout << " " << i; goto END_CHECK_NUM; } INCLU...
[ "identifier.change", "call.function.change" ]
205,509
205,510
u713060520
cpp
p02406
#include <iostream> using namespace std; int main() { int n; std::cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) { cout << " " << i; continue; } int x = i; do { if (i % 10 == 3) { cout << " " << i; break; } } while (x /= 10); } cout << endl...
#include <iostream> using namespace std; int main() { int n; std::cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) { cout << " " << i; continue; } int x = i; do { if (x % 10 == 3) { cout << " " << i; break; } } while (x /= 10); } cout << endl...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
205,512
205,513
u607458159
cpp
p02406
#include <iostream> #include <stdio.h> #include <string> #include <vector> using namespace std; #define D #ifdef D bool inc3(int n) { while (n > 9) { if (n % 10 == 3) return true; n /= 10; } return false; } int main(void) { int n; cin >> n; n++; for (size_t i = 3; i < n; i++) { if (i % ...
#include <iostream> #include <stdio.h> #include <string> #include <vector> using namespace std; #define D #ifdef D bool inc3(int n) { while (n) { if (n % 10 == 3) return true; n /= 10; } return false; } int main(void) { int n; cin >> n; n++; for (size_t i = 3; i < n; i++) { if (i % 3 ==...
[ "expression.operation.binary.remove" ]
205,514
205,515
u695723229
cpp
p02406
#include <iostream> using namespace std; void call(int n) { for (int i = 0; i <= n; ++i) { int x = i; if (x % 3 == 0) { cout << ' ' << x; } else { while (x) { if (x % 10 == 3) { cout << ' ' << i; break; } x /= 10; } } } cout << endl; ...
#include <iostream> using namespace std; void call(int n) { for (int i = 1; i <= n; ++i) { int x = i; if (x % 3 == 0) { cout << ' ' << x; } else { while (x) { if (x % 10 == 3) { cout << ' ' << i; break; } x /= 10; } } } cout << endl; ...
[ "literal.number.change", "variable_declaration.value.change", "control_flow.loop.for.initializer.change", "expression.off_by_one" ]
205,516
205,517
u888548672
cpp
p02406
#include <iostream> int main(void) { using namespace std; int n; cin >> n; for (int i = 1; i <= n; ++i) { int x = i; if (x % 3 == 0) cout << " " << i; else { while (!x) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } } ...
#include <iostream> int main(void) { using namespace std; int n; cin >> n; for (int i = 1; i <= n; ++i) { int x = i; if (x % 3 == 0) cout << " " << i; else { while (x != 0) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } ...
[ "expression.operation.unary.logical.remove", "control_flow.loop.condition.change", "control_flow.loop.for.condition.change" ]
205,518
205,519
u016142263
cpp
p02406
#include <iostream> using namespace std; int main() { int n = 0; cin >> n; int y = 0; for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) // i???3?????????°??????¨???i????????? { cout << ' ' << i; continue; } while (x) { if (x % 10 == 3) { cout << ' ' << i; ...
#include <iostream> using namespace std; int main() { int n = 0; cin >> n; int y = 0; for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) // i???3??????????°???????¨???i????????? { cout << ' ' << i; continue; } while (x) { if (x % 10 == 3) { cout << ' ' << i;...
[]
205,520
205,521
u745259711
cpp
p02406
#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 (x > 0) { if (x % 10 == 3) cout << " " << i; x /= 10; } } } cout << endl; }
#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 (x > 0) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } } } ...
[ "control_flow.break.add" ]
205,526
205,527
u347187685
cpp
p02406
#include <cstdio> int main(void) { // Here your code ! int n; scanf("%d", &n); for (int i = 1; i <= n; i++) { if (i % 3 == 0) { printf(" %d", i); } else if (i % 10 == 3) { printf(" %d", i); } else { for (int j = 10; i / j; j *= 10) { if ((i / j) % 10 == 3) { print...
#include <cstdio> int main(void) { // Here your code ! int n; scanf("%d", &n); for (int i = 1; i <= n; i++) { if (i % 3 == 0) { printf(" %d", i); } else if (i % 10 == 3) { printf(" %d", i); } else { for (int j = 10; i / j; j *= 10) { if ((i / j) % 10 == 3) { print...
[ "control_flow.break.add" ]
205,528
205,529
u721279180
cpp
p02406
#include <iostream> using namespace std; void call(int n) { for (int a = 1; a <= n; a++) { if (a % 3 == 0) { cout << " " << a; } else if (a % 10 == 3) { cout << " " << a; } else for (int b = a; b != 0; b /= 10) { if (b % 10 == 3) { cout << " " << a; } } ...
#include <iostream> using namespace std; void call(int n) { for (int a = 1; a <= n; a++) { if (a % 3 == 0) { cout << " " << a; } else if (a % 10 == 3) { cout << " " << a; } else for (int b = a; b != 0; b /= 10) { if (b % 10 == 3) { cout << " " << a; b = 0; ...
[ "assignment.add" ]
205,532
205,533
u756732439
cpp
p02406
#include <stdio.h> #pragma warning(disable : 4996) int main(void) { int n = 0, x = 0; scanf("%d", &n); for (int i = 1; i <= n; i++) { if (i % 3 == 0 || i % 10 == 3 || i / 10 == 3 || i / 100 == 3 || i / 1000 == 3) { printf(" %d", i); } } printf("\n"); }
#include <stdio.h> #pragma warning(disable : 4996) int main(void) { int n = 0, x = 0; scanf("%d", &n); for (int i = 1; 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"); }
[ "control_flow.branch.if.condition.change", "control_flow.loop.for.condition.change" ]
205,534
205,535
u524975923
cpp
p02406
#include <iostream> void call(int n); int main() { int n; std::cin >> n; call(n); return 0; } void call(int n) { int x; for (int i = 1; i <= n; ++i) { x = i; if (x % 3 == 0) { std::cout << " " << i; continue; } if (x % 10 == 3) { std::cout << " " << i; continue;...
#include <iostream> void call(int n); int main() { int n; std::cin >> n; call(n); return 0; } void call(int n) { int x; for (int i = 1; i <= n; ++i) { x = i; if (x % 3 == 0) { std::cout << " " << i; continue; } if (x % 10 == 3) { std::cout << " " << i; continue;...
[ "control_flow.continue.remove", "control_flow.break.add" ]
205,536
205,537
u289264252
cpp
p02406
#include <iostream> using namespace std; int main() { int n, x; cin >> n; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { cout << " " << i; continue; } while (x) { if (x % 10 == 3) cout << " " << i; x /= 10; } } cout << endl; }
#include <iostream> using namespace std; int main() { int n, x; cin >> n; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { cout << " " << i; continue; } while (x) { // cout << x << endl; if (x % 10 == 3) { cout << " " << i; break; } x /= ...
[ "control_flow.break.add" ]
205,538
205,539
u230079906
cpp
p02406
#include <iostream> using namespace std; int main() { int i, n, x; cin >> n; for (i = 1; i < n + 1; i++) { if (i % 3 == 0) { cout << " " << i; } else { x = i; while (x) { if (x % 10 == 3) { cout << " " << i; } x /= 10; } } } cout << endl; ...
#include <iostream> using namespace std; int main() { int i, n, x; cin >> n; for (i = 1; i < n + 1; i++) { if (i % 3 == 0) { cout << " " << i; } else { x = i; while (x) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } } } ...
[ "control_flow.break.add" ]
205,542
205,541
u246793331
cpp
p02406
#include <iostream> using namespace std; int main() { int n; int x; cin >> n; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { cout << " " << x; } else { while (1) { if (x % 10 == 0) { cout << " " << x; break; } else { x /= 10; ...
#include <iostream> using namespace std; int main() { int n; int x; cin >> n; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { cout << " " << x; } else { while (1) { if (x % 10 == 3) { cout << " " << i; break; } else { x /= 10; ...
[ "literal.number.change", "control_flow.branch.if.condition.change", "identifier.change", "io.output.change" ]
205,544
205,545
u219202227
cpp
p02406
#include <iostream> using namespace std; int main() { int n; int x; cin >> n; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { cout << " " << x; } else { while (1) { if (x % 10 == 3) { cout << " " << x; break; } else { x /= 10; ...
#include <iostream> using namespace std; int main() { int n; int x; cin >> n; for (int i = 1; i <= n; i++) { x = i; if (x % 3 == 0) { cout << " " << x; } else { while (1) { if (x % 10 == 3) { cout << " " << i; break; } else { x /= 10; ...
[ "identifier.change", "io.output.change" ]
205,546
205,545
u219202227
cpp
p02406
#include <iostream> using namespace std; void call(int n) { int i = 1; do { int x = i; if (x % 3 == 0) { cout << " " << i; break; } do { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } while (x); } while (++i <= n); cout << endl; } in...
#include <iostream> using namespace std; void call(int n) { int i = 1; do { int x = i; if (x % 3 == 0) { cout << " " << i; continue; } do { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } while (x); } while (++i <= n); cout << endl; } ...
[ "control_flow.break.remove", "control_flow.continue.add", "control_flow.return.add", "control_flow.return.0.add" ]
205,549
205,550
u984862628
cpp
p02406
#include <iostream> using namespace std; int main() { int n = 0, x = 0; cin >> n; for (int i = 1; i <= n; i++) { if ((i % 3) == 0) cout << " " << i; else { x = i; while (x) { if ((x % 10) == 3) cout << " " << i; x /= 10; } } } cout << endl; ...
#include <iostream> using namespace std; int main() { int n = 0, x = 0; cin >> n; for (int i = 1; i <= n; i++) { if ((i % 3) == 0) cout << " " << i; else { x = i; while (x) { if ((x % 10) == 3) { cout << " " << i; break; } x /= 10; } ...
[ "control_flow.break.add" ]
205,553
205,554
u604920879
cpp
p02406
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; for (int i = 3; i <= n; i++) { if (i % 3 == 0) { cout << " " << i; } else { int t = 1; while (1) { if ((i / t) % 10 == 3) { cout << " " << i; } ...
#include <algorithm> #include <iostream> #include <vector> using namespace std; int main() { int n; cin >> n; for (int i = 3; i <= n; i++) { if (i % 3 == 0) { cout << " " << i; } else { int t = 1; while (1) { if ((i / t) % 10 == 3) { cout << " " << i; break; ...
[ "control_flow.break.add" ]
205,555
205,556
u578258337
cpp
p02406
#define _USE_MATH_DEFINES #include <algorithm> #include <math.h> #include <stdio.h> #include <utility> int main() { int n, m, l, o, D; D = 0; m = 1; scanf(" %d", &n); ////////////////////////// while (m <= n) { if (m % 3 == 0) { printf("%d", m); } else { l = m; while (l != 0) { ...
#define _USE_MATH_DEFINES #include <algorithm> #include <math.h> #include <stdio.h> #include <utility> int main() { int n, m, l, o, D; D = 0; m = 1; scanf("%d", &n); ////////////////////////// while (m <= n) { if (m % 3 == 0) { printf(" %d", m); } else { l = m; while (l != 0) { ...
[ "literal.string.change", "call.arguments.change", "io.output.change" ]
205,559
205,560
u151542485
cpp
p02406
#include <algorithm> #include <cctype> #include <cmath> #include <cstdlib> #include <iostream> #include <stdio.h> #include <string.h> #include <string> #include <iomanip> #define PI \ 3.141592653589793238462643383279502884197169399375105820974944592...
#include <algorithm> #include <cctype> #include <cmath> #include <cstdlib> #include <iostream> #include <stdio.h> #include <string.h> #include <string> #include <iomanip> #define PI \ 3.141592653589793238462643383279502884197169399375105820974944592...
[ "control_flow.break.add" ]
205,561
205,562
u908363690
cpp
p02406
#include <cstdio> #include <math.h> #include <utility> using namespace std; int main() { int n; scanf("%d", &n); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { printf(" %d", x); continue; } while (x > 0) { if (x % 10 == 3) { printf(" %d", x); bre...
#include <cstdio> #include <math.h> #include <utility> using namespace std; int main() { int n; scanf("%d", &n); for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { printf(" %d", i); continue; } while (x > 0) { if (x % 10 == 3) { printf(" %d", i); bre...
[ "identifier.change", "call.arguments.change", "io.output.change" ]
205,568
205,569
u699878412
cpp
p02406
#include <stdio.h> int main() { int n; int i; scanf("%d", &n); for (i = 1; i <= n; i++) { if (i % 3 == 0) printf(" %d", i); else { int x = i; while (x) { if (x % 10 == 3) printf(" %d", i); x /= 10; } } } printf("\n"); return 0; }
#include <stdio.h> int main() { int n; int i; scanf("%d", &n); for (i = 1; i <= n; i++) { if (i % 3 == 0) printf(" %d", i); else { int x = i; while (x) { if (x % 10 == 3) { printf(" %d", i); break; } x /= 10; } } } printf("\n...
[ "control_flow.break.add" ]
205,572
205,573
u017984030
cpp
p02406
#include <stdio.h> int main() { int x = 1; int y = 0; int value = 0; int cnt = 3; scanf("%d", &value); for (x = 1; x <= value; x++) { if (x % 3 == 0) { printf(" %d", x); } else if (x % 10 == 3) { printf(" %d", x); } else { y = x; while (y != 0) { y /= 10; ...
#include <stdio.h> int main() { int x = 1; int y = 0; int value = 0; int cnt = 3; scanf("%d", &value); for (x = 1; x <= value; x++) { if (x % 3 == 0) { printf(" %d", x); } else if (x % 10 == 3) { printf(" %d", x); } else { y = x; while (y != 0) { y /= 10; ...
[ "assignment.add" ]
205,575
205,576
u970551499
cpp
p02406
#include <iostream> int main() { int n; std::cin >> n; for (int i = 1; i <= n; i++) { int x = i; for (int j = 1; x > 0; j++) { if (x % 3 == 0) { std::cout << ' ' << i; break; } else if (x % 10 == 3) { std::cout << ' ' << i; break; } x /= 10; } ...
#include <iostream> int main() { int n; std::cin >> n; for (int i = 1; i <= n; i++) { int x = i; for (int j = 1; x > 0; j++) { if (i % 3 == 0) { std::cout << ' ' << i; break; } else if (x % 10 == 3) { std::cout << ' ' << i; break; } x /= 10; } ...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
205,580
205,581
u806323433
cpp
p02406
#include <algorithm> #include <cmath> #include <iostream> #include <numeric> #include <string> #include <vector> #define REP(i, a) for (int i = 0; i < (int)a; ++i) #define INF 1145141919; typedef long long ll; typedef long double ld; using namespace std; void call(int n) { int i = 1; while (i++ <= n) { int x ...
#include <algorithm> #include <cmath> #include <iostream> #include <numeric> #include <string> #include <vector> #define REP(i, a) for (int i = 0; i < (int)a; ++i) #define INF 1145141919; typedef long long ll; typedef long double ld; using namespace std; void call(int n) { int i = 1; while (i++ < n) { int x =...
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
205,582
205,583
u045279534
cpp
p02406
#include <algorithm> #include <cmath> #include <iostream> #include <numeric> #include <string> #include <vector> #define REP(i, a) for (int i = 0; i < (int)a; ++i) #define INF 1145141919; typedef long long ll; typedef long double ld; using namespace std; void call(int n) { int i = 1; while (i++ <= n) { int x ...
#include <algorithm> #include <cmath> #include <iostream> #include <numeric> #include <string> #include <vector> #define REP(i, a) for (int i = 0; i < (int)a; ++i) #define INF 1145141919; typedef long long ll; typedef long double ld; using namespace std; void call(int n) { int i = 1; while (i++ < n) { int x =...
[ "expression.operator.compare.change", "control_flow.loop.condition.change" ]
205,584
205,583
u045279534
cpp
p02406
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) { cout << " " << i; } else { for (int x = i; x > 10; x = x / 10) { if (x % 10 == 3) { cout << " " << i; break; } } } } cout ...
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) { cout << " " << i; } else { for (int x = i; x > 0; x = x / 10) { if (x % 10 == 3) { cout << " " << i; break; } } } } cout <...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
205,585
205,586
u609484772
cpp
p02406
#include <iostream> using namespace std; int n; int main() { while (cin >> n) { for (int i = 1; i <= n; i++) { bool judge = false; if (i % 3 == 0) judge = true; int j = i; while (j > 0 && !judge) { if (i % 10 == 3) judge = true; j /= 10; } if (...
#include <iostream> using namespace std; int n; int main() { while (cin >> n) { for (int i = 1; i <= n; i++) { bool judge = false; if (i % 3 == 0) judge = true; int j = i; while (j > 0 && !judge) { if (j % 10 == 3) judge = true; j /= 10; } if (...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
205,598
205,599
u438263800
cpp
p02406
#include <cstring> #include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; ++i) { if (i % 3 == 0) { cout << " "; continue; } int x = i; while (x) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; } ...
#include <cstring> #include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; ++i) { if (i % 3 == 0) { cout << " " << i; continue; } int x = i; while (x) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; ...
[ "io.output.change" ]
205,600
205,601
u115352705
cpp
p02406
#include <iostream> using namespace std; int main(void) { int a; cin >> a; for (int i = 1; i <= a; ++i) { if (i % 3 == 0) { cout << " " << i; } else { for (int t = i; t != 0; t = t / 10) { if (t % 10 == 3) { cout << " " << i; t = 0; } } } cout ...
#include <iostream> using namespace std; int main(void) { int a; cin >> a; for (int i = 1; i <= a; ++i) { if (i % 3 == 0) { cout << " " << i; } else { for (int t = i; t != 0; t = t / 10) { if (t % 10 == 3) { cout << " " << i; t = 0; } } } } cou...
[]
205,607
205,605
u355269727
cpp
p02406
#include <iostream> using namespace std; int main() { int n, i = 1, x; cin >> n; do { x = i; if (x % 3 == 0) { cout << " " << x; } else { do { if (x % 10 == 3) { cout << " " << x; break; } x = x / 10; } while (x); } } while (++i <= ...
#include <iostream> using namespace std; int main() { int n, i = 1, x; cin >> n; do { x = i; if (x % 3 == 0) { cout << " " << i; } else { do { if (x % 10 == 3) { cout << " " << i; break; } x = x / 10; } while (x); } } while (++i <= ...
[ "identifier.change", "io.output.change" ]
205,608
205,609
u538036761
cpp
p02406
#include <bits/stdc++.h> using namespace std; typedef long long LL; typedef vector<int> VI; typedef pair<int, int> PI; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { cout << " " << i; continue; } do { if (x % 10 == 3) cout << ...
#include <bits/stdc++.h> using namespace std; typedef long long LL; typedef vector<int> VI; typedef pair<int, int> PI; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { int x = i; if (x % 3 == 0) { cout << " " << i; continue; } do { if (x % 10 == 3) { cout <...
[ "control_flow.break.add" ]
205,610
205,611
u146806866
cpp
p02406
#include <iomanip> #include <iostream> using namespace std; int main() { int n; cin >> n; int i; while (i <= n) { int x = i; if (x % 3 == 0) { cout << " " << i; } else { while (x != 0) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; ...
#include <iomanip> #include <iostream> using namespace std; int main() { int n; cin >> n; int i = 1; while (i <= n) { int x = i; if (x % 3 == 0) { cout << " " << i; } else { while (x != 0) { if (x % 10 == 3) { cout << " " << i; break; } x /= ...
[ "variable_declaration.value.change" ]
205,612
205,613
u923443567
cpp
p02406
#include <iostream> #include <stdio.h> int main(void) { int n; scanf("%d", n); int i = 1; while (++i <= n) { int x = i; if (x % 3 == 0) { std::cout << " " << i; continue; } while (x) { if (x % 10 == 3) { std::cout << " " << i; break; } x /= 10; ...
#include <iostream> #include <stdio.h> int main(void) { int n; scanf("%d", &n); int i = 1; while (++i <= n) { int x = i; if (x % 3 == 0) { std::cout << " " << i; continue; } while (x) { if (x % 10 == 3) { std::cout << " " << i; break; } x /= 10; ...
[ "expression.operation.unary.reference.add", "control_flow.return.add", "control_flow.return.0.add" ]
205,619
205,620
u211771962
cpp
p02406
#include <iostream> #include <stdio.h> int main(void) { int n; scanf("%d", n); int i = 1; while (++i <= n) { int x = i; if (x % 3 == 0) { std::cout << " " << i; continue; } while (x) { if (x % 10 == 3) { std::cout << " " << i; break; } x /= 10; ...
#include <iostream> #include <stdio.h> int main(void) { int n; scanf("%d", &n); int i = 1; while (++i <= n) { int x = i; if (x % 3 == 0) { std::cout << " " << i; continue; } while (x) { if (x % 10 == 3) { std::cout << " " << i; break; } x /= 10; ...
[ "expression.operation.unary.reference.add" ]
205,621
205,620
u211771962
cpp
p02406
#include <stdio.h> int main(void) { int n, tmp, flag; scanf("%d", &n); for (int i = 1; i <= n; i++) { tmp = i; if (tmp % 3 == 0) printf(" %d", i); else { while (1) { if (tmp % 10 == 3) { printf(" %d", i); flag = 1; } tmp = tmp / 10; if...
#include <stdio.h> int main(void) { int n, tmp, flag; scanf("%d", &n); for (int i = 1; i <= n; i++) { tmp = i; if (tmp % 3 == 0) printf(" %d", i); else { while (1) { if (tmp % 10 == 3) { printf(" %d", i); flag = 1; } tmp = tmp / 10; if...
[]
205,622
205,623
u227363693
cpp
p02406
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i < n; i++) { if (i % 3 == 0) { cout << " " << i; continue; } if (i % 10 == 3) { cout << " " << i; continue; } int x = i; while (x > 0) { if (x % 10 == 3) { cout <<...
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) { cout << " " << i; continue; } if (i % 10 == 3) { cout << " " << i; continue; } int x = i; while (x > 0) { if (x % 10 == 3) { cout <...
[ "expression.operator.compare.change", "control_flow.loop.for.condition.change", "expression.off_by_one", "expression.operation.binary.change" ]
205,626
205,627
u610263790
cpp
p02406
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; string b; for (int i = 1; i <= a; i++) { b = to_string(i); if (i % 3 == 0) cout << " " << i; else { for (int j = 0; j < b.length(); j++) { if (b[j] == '3') cout << " " << i; } } } ...
#include <bits/stdc++.h> using namespace std; int main() { int a; cin >> a; string b; for (int i = 1; i <= a; i++) { b = to_string(i); if (i % 3 == 0) cout << " " << i; else { for (int j = 0; j < b.length(); j++) { if (b[j] == '3') { cout << " " << i; break; ...
[ "control_flow.break.add" ]
205,634
205,635
u226947511
cpp
p02406
#include <algorithm> #include <cmath> #include <iostream> #include <limits> #include <math.h> #include <sstream> #include <stdio.h> #include <string.h> #include <string> using namespace std; int main(void) { long n, q[1000]; cin >> n; for (long i = 1; i < n + 1; i++) { if (i % 3 == 0) { cout << " " ...
#include <algorithm> #include <cmath> #include <iostream> #include <limits> #include <math.h> #include <sstream> #include <stdio.h> #include <string.h> #include <string> using namespace std; int main(void) { long n, q[10000]; cin >> n; for (long i = 1; i < n + 1; i++) { if (i % 3 == 0) { cout << " "...
[ "literal.number.change", "variable_declaration.array_dimensions.change" ]
205,636
205,637
u615852561
cpp
p02406
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) cout << " " << i; else if (i % 10 == 3) cout << " " << i; else { for (int x = i / 10; x != 0; x /= 10) { if (x % 3 == 0) cout << " " << i; }...
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) cout << " " << i; else if (i % 10 == 3) cout << " " << i; else { for (int x = i / 10; x != 0; x /= 10) { if (x % 10 == 3) { cout << " " << i; ...
[ "literal.number.change", "control_flow.branch.if.condition.change" ]
205,639
205,640
u578521822
cpp
p02406
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) cout << " " << i; else if (i % 10 == 3) cout << " " << i; else { for (int x = i / 10; x != 0; x /= 10) { if (x % 10 == 3) cout << " " << i; ...
#include <iostream> using namespace std; int main() { int n; cin >> n; for (int i = 1; i <= n; i++) { if (i % 3 == 0) cout << " " << i; else if (i % 10 == 3) cout << " " << i; else { for (int x = i / 10; x != 0; x /= 10) { if (x % 10 == 3) { cout << " " << i; ...
[ "control_flow.break.add" ]
205,641
205,640
u578521822
cpp
p02406
#include <bits/stdc++.h> using namespace std; int main() { int n, s = 1, s2; cin >> n; while (1) { s2 = s; s2 %= 3; if (s2 == 0) cout << " " << s; else for (s2 = s; s2; s2 /= 10) { if (s % 10 == 3) { cout << " " << s; break; }; }; if (s == ...
#include <bits/stdc++.h> using namespace std; int main() { int n, s = 1, s2; cin >> n; while (1) { s2 = s; s2 %= 3; if (s2 == 0) cout << " " << s; else for (s2 = s; s2; s2 /= 10) { if (s2 % 10 == 3) { cout << " " << s; break; }; }; if (s ==...
[ "identifier.change", "control_flow.branch.if.condition.change" ]
205,644
205,645
u575569688
cpp
p02406
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int i = 1; while (1) { int x = i; if (x % 3 == 0) { cout << " " << i; break; } else { while (1) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; ...
#include <bits/stdc++.h> using namespace std; int main() { int n; cin >> n; int i = 1; while (1) { int x = i; if (x % 3 == 0) { cout << " " << i; } else { while (1) { if (x % 10 == 3) { cout << " " << i; break; } x /= 10; if (x...
[]
205,646
205,647
u546396510
cpp