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 |
|---|---|---|---|---|
#include <stdio.h>
int main() {
int n, i, a[101];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i >= 0; i--) {
printf("%d");
if (i == 0) {
break;
}
printf(" ");
}
printf("\n");
return 0;
} | #include <stdio.h>
int main() {
int n, i, a[101];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i >= 0; i--) {
printf("%d", a[i]);
if (i == 0) {
break;
}
printf(" ");
}
printf("\n");
return 0;
} | [["+", 8, 9, 0, 1, 0, 2, 3, 4, 0, 21], ["+", 0, 1, 0, 2, 3, 4, 0, 69, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 69, 0, 70], ["+", 0, 1, 0, 2, 3, 4, 0, 69, 71, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 69, 0, 73]] | 0 | 107 |
#include <stdio.h>
int main(void) {
int num;
int array[100];
int i, j, k;
scanf("%d", &num);
for (i = 0; i < num; i++) {
scanf("%d", &array[i]);
}
for (j = 0; j < num / 2; j++) {
int a = array[j];
array[j] = array[(num - 1) - j];
array[(num - 1) - j] = a;
}
for (k = 0; k < num; k+... | #include <stdio.h>
int main(void) {
int num;
int array[100];
int i, j, k;
scanf("%d", &num);
for (i = 0; i < num; i++) {
scanf("%d", &array[i]);
}
for (j = 0; j < num / 2; j++) {
int a = array[j];
array[j] = array[(num - 1) - j];
array[(num - 1) - j] = a;
}
for (k = 0; k < num; k+... | [["-", 8, 9, 0, 57, 15, 23, 0, 16, 17, 60], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 17, 79]] | 0 | 171 |
#include <stdio.h>
int main(void) {
int i, j, n, a[100], b[100];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (j = 0; j < n; j++) {
b[j] = a[(n - j)];
printf("%d", b[j]);
if (j != (n - 1)) {
printf(" ");
}
}
printf("\n");
return 0;
} | #include <stdio.h>
int main(void) {
int i, j, n, a[100], b[100];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (j = 0; j < n; j++) {
b[j] = a[((n - 1) - j)];
printf("%d", b[j]);
if (j != (n - 1)) {
printf(" ");
}
}
printf("\n");
return 0;
} | [["+", 12, 69, 71, 23, 0, 16, 31, 23, 0, 24], ["+", 71, 23, 0, 16, 31, 23, 0, 16, 17, 33], ["+", 71, 23, 0, 16, 31, 23, 0, 16, 12, 13], ["+", 12, 69, 71, 23, 0, 16, 31, 23, 0, 25]] | 0 | 134 |
#include <stdio.h>
int main(void) {
int n = 0;
int a[100];
int i;
scanf("%d", &n);
for (i = 0; i < n; i++)
scanf("%d", &a[i]);
for (i = n - 1; i < 0; i--)
printf("%d ", a[i]);
printf("%d\n", a[i]);
return 0;
} | #include <stdio.h>
int main(void) {
int n = 0;
int a[100];
int i;
scanf("%d", &n);
for (i = 0; i < n; i++)
scanf("%d", &a[i]);
for (i = n - 1; i > 0; i--)
printf("%d ", a[i]);
printf("%d\n", a[i]);
return 0;
} | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 47]] | 0 | 102 |
#include <stdio.h>
#include <stdlib.h>
int main() {
int n, i;
scanf("%d", &n);
int *p;
p = malloc((n + 1) * sizeof(int));
for (i = 0; i < n; i++) {
scanf("%d", p[i]);
}
for (i = 1; i < n; i++) {
printf("%d ", p[n - i]);
}
printf("%d\n", p[0]);
free(p);
return 0;
} | #include <stdio.h>
#include <stdlib.h>
int main() {
int n, i;
scanf("%d", &n);
int *p;
p = malloc((n + 1) * sizeof(int));
for (i = 0; i < n; i++) {
scanf("%d", &p[i]);
}
for (i = 1; i < n; i++) {
printf("%d ", p[n - i]);
}
printf("%d\n", p[0]);
free(p);
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 122 |
#include <stdio.h>
int main() {
int n;
char a[101];
char b[100];
int i;
int z = 0;
int x = 0;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i >= 0; i--) {
printf("%d", a[i]);
if (a != 0) {
printf(" ");
}
}
printf("\n");
return 0;
... | #include <stdio.h>
int main() {
int n;
int a[101];
char b[100];
int i;
int z = 0;
int x = 0;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i >= 0; i--) {
printf("%d", a[i]);
if (i != 0) {
printf(" ");
}
}
printf("\n");
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 31, 22]] | 0 | 128 |
#include <stdio.h>
int main() {
int n, i;
scanf("%d", &n);
int data[n];
for (i = 0; i < n; i++) {
scanf("%d", &data[i]);
}
for (i = n - 1; i > 0; i--) {
printf("%d", data[i]);
}
printf("%d\n", data[0]);
return 0;
} | #include <stdio.h>
int main() {
int n, i;
scanf("%d", &n);
int data[n];
for (i = 0; i < n; i++) {
scanf("%d", &data[i]);
}
for (i = n - 1; i > 0; i--) {
printf("%d ", data[i]);
}
printf("%d\n", data[0]);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 102 |
#include <stdio.h>
int main(void) {
int a, i;
scanf("%d", &a);
int num[a];
for (i = 0; i < a; i++) {
scanf("%d", &num[(a - 1) - i]);
}
for (i = 0; i < a - 1; i++) {
printf("%d", num[i]);
if (i != a) {
printf(" ");
}
}
printf("\n");
return 0;
} | #include <stdio.h>
int main(void) {
int a, i;
scanf("%d", &a);
int num[a];
for (i = 0; i < a; i++) {
scanf("%d", &num[(a - 1) - i]);
}
for (i = 0; i < a; i++) {
printf("%d", num[i]);
if (i != a - 1) {
printf(" ");
}
}
printf("\n");
return 0;
} | [["-", 8, 9, 0, 7, 15, 16, 12, 16, 17, 33], ["-", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 33], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13]] | 0 | 118 |
#include <stdio.h>
int main(int argc, const char *argv[]) {
// insert code here...
int n, a[100];
int i;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i >= 0; i--) {
if (0 < i && i < n - 1) {
printf(" ");
}
printf("%d", a[i]);
}
printf("\n");
... | #include <stdio.h>
int main(int argc, const char *argv[]) {
// insert code here...
int n, a[100];
int i;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i >= 0; i--) {
if (0 <= i && i < n - 1) {
printf(" ");
}
printf("%d", a[i]);
}
printf("\n");
... | [["-", 0, 57, 15, 23, 0, 16, 31, 16, 17, 18], ["+", 0, 57, 15, 23, 0, 16, 31, 16, 17, 19]] | 0 | 127 |
int main() {
int i, n;
scanf("%d", &n);
int a[100];
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n; i >= 0; i--) {
if (i != n)
printf(" ");
printf("%d", a[i]);
}
printf("\n");
return 0;
} | int main() {
int i, n;
scanf("%d", &n);
int a[100];
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i >= 0; i--) {
if (i != n - 1)
printf(" ");
printf("%d", a[i]);
}
printf("\n");
return 0;
} | [["+", 8, 9, 0, 7, 10, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 12, 13], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 17, 33], ["+", 0, 57, 15, 23, 0, 16, 12, 16, 12, 13]] | 0 | 105 |
#include <stdio.h>
int main(void) {
int n, i, a, data[100];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", data[i]);
}
for (i = n - 1; i >= 0; i--) {
printf("%d", data[i]);
if (i != 0) {
printf(" ");
}
}
printf("\n");
return 0;
} | #include <stdio.h>
int main(void) {
int n, i, a, data[100];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &data[i]);
}
for (i = n - 1; i >= 0; i--) {
printf("%d", data[i]);
if (i != 0) {
printf(" ");
}
}
printf("\n");
return 0;
} | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 112 |
#include <stdio.h>
int main(int argc, const char *argv[]) {
int a[100], num, i;
scanf("%d", &num);
for (i = 0; i < num; i++) {
scanf("%d", &a[i]);
}
for (i = num - 1; i > 0; i--) {
printf("%d", a[i]);
}
printf("%d\n", a[0]);
return 0;
} | #include <stdio.h>
int main(int argc, const char *argv[]) {
int a[100], number, i;
scanf("%d", &number);
for (i = 0; i < number; i++) {
scanf("%d", &a[i]);
}
for (i = number - 1; i > 0; i--) {
printf("%d ", a[i]);
}
printf("%d\n", a[0]);
return 0;
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 49, 22], ["-", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 28, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["-", 8, 9, 0, 7, 10, 11, 12, 16, 31, 22], ["+", 8, 9, 0, 7, 10, 11, 12... | 0 | 110 |
#include <stdio.h>
int main(int argc, const char *argv[]) {
int a[1000];
int n, i;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n; i > 0; i--) {
printf("%d", a[i - 1]);
if (i != 1) {
printf(" ");
}
printf("\n");
}
return 0;
} | #include <stdio.h>
int main(int argc, const char *argv[]) {
int a[1000];
int n, i;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n; i > 0; i--) {
printf("%d", a[i - 1]);
if (i != 1) {
printf(" ");
}
}
printf("\n");
return 0;
} | [["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 0 | 120 |
#include <stdio.h>
int main() {
int n, a[1000], i, j;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i > 0; i--) {
printf("%d\n", a[i]);
}
printf("%d\n", a[0]);
return 0;
} | #include <stdio.h>
int main() {
int n, a[1000], i, j;
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i > 0; i--) {
printf("%d ", a[i]);
}
printf("%d\n", a[0]);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 104 |
#include <stdio.h>
int main() {
int i, n;
int v[100];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", v[i]);
}
for (i = n - 1; i >= 0; i--) {
printf("%d", v[i]);
if (i != 0)
printf(" ");
}
printf("\n");
return (0);
} | #include <stdio.h>
int main() {
int i, n, v[100];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &v[i]);
}
for (i = n - 1; i >= 0; i--) {
printf("%d", v[i]);
if (i != 0)
printf(" ");
}
printf("\n");
return (0);
} | [["-", 0, 30, 0, 14, 8, 9, 0, 43, 0, 35], ["-", 0, 30, 0, 14, 8, 9, 0, 43, 39, 40], ["+", 0, 30, 0, 14, 8, 9, 0, 43, 0, 21], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 110 |
#include <stdio.h>
int main(void) {
int n, i;
int a[100];
(n < 100);
scanf("%d", &n);
for (i = 0; i < 5; i++) {
scanf("%d", &a[i]);
((0 <= a[i]) && (a[i] < 1000));
}
for (i = i; i > 0; i--) {
printf("%d", a[i - 1]);
if (!(i - 1 == 0)) {
printf(" ");
}
}
printf("\n");
re... |
#include <stdio.h>
int main(void) {
int n, i;
int a[100];
(n < 100);
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
((0 <= a[i]) && (a[i] < 1000));
}
for (i = i; i > 0; i--) {
printf("%d", a[i - 1]);
if (!(i - 1 == 0)) {
printf(" ");
}
}
printf("\n");
re... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 0 | 143 |
#include <stdio.h>
int main(void) {
int n;
int num[10000];
int i;
int t;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%d", &num[i]);
}
for (t = n; t >= 1; t--) {
printf("%d", num[t]);
if (t != 1) {
printf("\n");
}
if (t == 1) {
printf("\n");
}
}
return 0... | #include <stdio.h>
int main(void) {
int n;
int num[10000];
int i;
int t;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
scanf("%d", &num[i]);
}
for (t = n; t >= 1; t--) {
printf("%d", num[t]);
if (t != 1) {
printf(" ");
}
if (t == 1) {
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 | 122 |
#include <stdio.h>
int main(void) {
int i, n, a[100];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", a[i]);
}
for (i = n - 1; i > 0; i--)
printf("%d ", a[i]);
printf("%d", a[0]);
return 0;
} | #include <stdio.h>
int main(void) {
int i, n, a[1000];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i > 0; i--)
printf("%d ", a[i]);
printf("%d\n", a[0]);
return 0;
} | [["-", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 14, 8, 9, 0, 43, 49, 80, 81, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 98 |
#include <stdio.h>
int main(void) {
int n, i;
int a[100];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < n; i++) {
if (i)
printf(" ");
printf("%d", &a[i]);
}
puts("");
return 0;
} | #include <stdio.h>
int main(void) {
int n, i;
int a[100];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < n; i++) {
if (i)
printf(" ");
printf("%d", a[n - 1 - i]);
}
puts("");
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["+", 3, 4, 0, 69, 71, 16, 31, 16, 31, 22], ["+", 3, 4, 0, 69, 71, 16, 31, 16, 17, 33], ["+", 3, 4, 0, 69, 71, 16, 31, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 17, 33]] | 0 | 106 |
#include <stdio.h>
int main(void) {
int len, i;
scanf("%d", &len);
int num[len];
for (i = 0; i < len; i++) {
scanf("%d", &num[i]);
}
printf("%d", num[len - 1]);
for (i = len - 2; i >= 0; i--) {
printf("%2d", num[i]);
}
puts("");
return 0;
} | #include <stdio.h>
int main(void) {
int len, i;
scanf("%d", &len);
int num[len];
for (i = 0; i < len; i++) {
scanf("%d", &num[i]);
}
printf("%d", num[len - 1]);
for (i = len - 2; i >= 0; i--) {
printf(" %d", num[i]);
}
puts("");
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 110 |
#include <stdio.h>
int main(void) {
int x, i;
int a[100] = {0};
scanf("%d", &x);
for (i = 0; i < x; i++) {
scanf("%d", &a[x - 1 - i]);
}
for (i = 0; i < x - 1; i++) {
printf("%d???", a[i]);
}
if (i == x - 1) {
printf("%d", a[i]);
}
return 0;
}
| #include <stdio.h>
int main(void) {
int x, i;
int a[100] = {0};
scanf("%d", &x);
for (i = 0; i < x; i++) {
scanf("%d", &a[x - 1 - i]);
}
for (i = 0; i < x - 1; i++) {
printf("%d ", a[i]);
}
if (i == x - 1) {
printf("%d\n", a[i]);
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 120 |
#include <stdio.h>
int main(void) {
int n, i;
scanf("%d", &n);
int a[n];
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i > n; i--) {
printf("%d ", a[i]);
}
printf("%d\n", a[0]);
}
| #include <stdio.h>
int main(void) {
int n, i;
scanf("%d", &n);
int a[n];
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i > 0; i--) {
printf("%d ", a[i]);
}
printf("%d\n", a[0]);
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13]] | 0 | 100 |
#include <stdio.h>
int main(void) {
int n, i, x, f;
scanf("%d", &n);
int a[n];
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n; i > 0; i = i - 1) {
printf("%d ", a[i]);
}
printf("%d", a[0]);
return 0;
}
| #include <stdio.h>
int main(void) {
int n, i, x, f;
scanf("%d", &n);
int a[n];
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = n - 1; i > 0; i = i - 1) {
printf("%d ", a[i]);
}
printf("%d\n", a[0]);
return 0;
}
| [["+", 8, 9, 0, 7, 10, 11, 12, 16, 17, 33], ["+", 8, 9, 0, 7, 10, 11, 12, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 107 |
#include <stdio.h>
int main(void) {
int n, i, temp;
scanf("%d", &n);
int num[n];
for (i = 0; i <= n - 1; i++) {
scanf("%d", &num[i]);
}
for (i = 0; i < n / 2; i++) {
temp = num[i];
num[i] = num[n - i];
num[n - i] = temp;
}
for (i = 0; i <= n - 1; i++) {
if (i)
printf(" ");
... | #include <stdio.h>
int main(void) {
int n, i, temp;
scanf("%d", &n);
int num[n];
for (i = 0; i <= n - 1; i++) {
scanf("%d", &num[i]);
}
for (i = 0; i < n / 2; i++) {
temp = num[i];
num[i] = num[n - 1 - i];
num[n - 1 - i] = temp;
}
for (i = 0; i <= n - 1; i++) {
if (i)
printf("... | [["+", 0, 11, 12, 69, 71, 16, 31, 16, 12, 13], ["+", 0, 1, 0, 11, 12, 69, 71, 16, 17, 33], ["+", 0, 11, 31, 69, 71, 16, 31, 16, 17, 33], ["+", 0, 11, 31, 69, 71, 16, 31, 16, 12, 13]] | 0 | 157 |
#include <stdio.h>
int main(void) {
int n, i;
int max = 1000;
int min = 0;
scanf("%d", &n);
int a[100];
for (i = 1; i <= n; i = i + 1) {
scanf("%d", &a[i]);
}
for (i = n; i >= 1; i--) {
printf("%d\n", a[i]);
if (i != 0)
printf(" ");
}
printf("\n");
return 0;
}
| #include <stdio.h>
int main(void) {
int n, i;
int max = 1000;
int min = 0;
scanf("%d", &n);
int a[100];
for (i = 1; i <= n; i = i + 1) {
scanf("%d", &a[i]);
}
for (i = n; i >= 1; i--) {
printf("%d", a[i]);
if (i != 1)
printf(" ");
}
printf("\n");
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 23, 0, 16, 12, 13]] | 0 | 122 |
#include <stdio.h>
int main() {
int n, i;
scanf("%d", &n);
int *a = (int *)malloc(sizeof(int) * n);
for (i = 0; i < n; ++i) {
scanf("%d", &a[i]);
}
int work;
for (i = 0; i <= n / 2; ++i) {
work = a[i];
a[i] = a[n - 1 - i];
a[n - 1 - i] = work;
}
for (i = 0; i < n; ++i) {
prin... | #include <stdio.h>
int main() {
int n, i;
scanf("%d", &n);
int *a = (int *)malloc(sizeof(int) * n);
for (i = 0; i < n; ++i) {
scanf("%d", &a[i]);
}
int work;
for (i = 0; i < n / 2; ++i) {
work = a[i];
a[i] = a[n - 1 - i];
a[n - 1 - i] = work;
}
for (i = 0; i < n; ++i) {
print... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18]] | 0 | 178 |
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
int num[n];
for (int i = 0; i < n; i++) {
scanf("%d", &num[i]);
}
for (int i = n - 1; i < 0; i--) {
printf("%d", num[i]);
if (i != 0) {
printf(" ");
}
}
printf("\n");
}
| #include <stdio.h>
int main() {
int n;
scanf("%d", &n);
int num[n];
for (int i = 0; i < n; i++) {
scanf("%d", &num[i]);
}
for (int i = n - 1; 0 <= i; i--) {
printf("%d", num[i]);
if (i != 0) {
printf(" ");
}
}
printf("\n");
}
| [["-", 0, 14, 8, 9, 0, 7, 15, 16, 31, 22], ["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 12, 22]] | 0 | 108 |
#include <stdio.h>
int main(void) {
int i, j, tmp;
int number[100];
int total;
scanf("%d", &total);
for (i = 0; i < total; ++i)
scanf("%d", &number[i]);
for (i = 0; i < total; ++i) {
for (j = i + 1; j < total; ++j) {
tmp = number[i];
number[i] = number[j];
number[j] = tmp;
}
... |
#include <stdio.h>
int main(void) {
int i, j, tmp;
int number[100];
int total;
scanf("%d", &total);
for (i = 0; i < total; ++i)
scanf("%d", &number[i]);
for (i = 0; i < total; ++i) {
for (j = i + 1; j < total; ++j) {
tmp = number[i];
number[i] = number[j];
number[j] = tmp;
}
... | [["-", 15, 23, 0, 16, 12, 23, 0, 16, 12, 13], ["+", 15, 23, 0, 16, 12, 23, 0, 16, 12, 13], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44]] | 0 | 174 |
#include <stdio.h>
int main(void) {
int i, n, a[100];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = 1; i <= n; i++) {
printf("%d", a[n - 1]);
if (i == n)
printf("\n");
else
printf(" ");
}
return 0;
}
| #include <stdio.h>
int main(void) {
int i, n, a[100];
scanf("%d", &n);
for (i = 0; i < n; i++)
scanf("%d", &a[i]);
for (i = 1; i <= n; i++) {
printf("%d", a[n - i]);
if (i == n)
printf("\n");
else
printf(" ");
}
return 0;
}
| [["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 45], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 2, 3, 4, 0, 69, 71, 16, 12, 13], ["+", 0, 2, 3, 4, 0, 69, 71, 16, 12, 22]] | 0 | 110 |
#include <stdio.h>
#include <stdlib.h>
int main() {
int n, i;
int *a;
scanf("%d", &n);
a = (int *)malloc(sizeof(int) * n);
for (i = 0; i < n; i++)
scanf("%d", a[i]);
for (i = n - 1; i > 0; i--)
printf("%d ", a[i]);
printf("%d\n", a[0]);
return 0;
}
| #include <stdio.h>
#include <stdlib.h>
int main() {
int n, i;
int *a;
scanf("%d", &n);
a = (int *)malloc(sizeof(int) * n);
for (i = 0; i < n; i++)
scanf("%d", &a[i]);
for (i = n - 1; i > 0; i--)
printf("%d ", a[i]);
printf("%d\n", a[0]);
return 0;
}
| [["+", 8, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 0 | 113 |
#include <stdio.h>
int main(void) {
int i, n, tmp;
scanf("%d", &n);
int a[n];
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < n / 2; i++) {
tmp = a[i];
a[i] = a[n - 1 - i];
a[n - 1 - i] = tmp;
}
for (i = 0; i < n; i++) {
if (i)
printf(" ");
printf("%d", ... | #include <stdio.h>
int main(void) {
int i, n, tmp;
scanf("%d", &n);
int a[n];
for (i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (i = 0; i < n / 2; i++) {
tmp = a[i];
a[i] = a[n - 1 - i];
a[n - 1 - i] = tmp;
}
for (i = 0; i < n; i++) {
if (i)
printf(" ");
printf("%d", ... | [["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 0 | 157 |
#include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
int a[n];
for (int i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (int i = n - 1; i >= 0; i--) {
if (i != 0) {
printf("%d", a[i]);
} else {
printf("%d\n", a[i]);
}
}
return 0;
}
| #include <stdio.h>
int main(void) {
int n;
scanf("%d", &n);
int a[n];
for (int i = 0; i < n; i++) {
scanf("%d", &a[i]);
}
for (int i = n - 1; i >= 0; i--) {
if (i != 0) {
printf("%d ", a[i]);
} else {
printf("%d\n", a[i]);
}
}
return 0;
}
| [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 114 |
#include <math.h>
#include <stdio.h>
int main(void) {
int array[128];
int n, i;
scanf("%d", &n);
for (i = 0; i < n; i++)
scanf("%d", array + i);
for (i = n - 1; i >= 0; i--)
printf("%d%c", array[i], i ? ',' : '\n');
return (0);
} | #include <math.h>
#include <stdio.h>
int main(void) {
int array[128];
int n, i;
scanf("%d", &n);
for (i = 0; i < n; i++)
scanf("%d", array + i);
for (i = n - 1; i >= 0; i--)
printf("%d%c", array[i], i ? ' ' : '\n');
return (0);
} | [["-", 0, 2, 3, 4, 0, 41, 64, 103, 0, 125], ["+", 0, 2, 3, 4, 0, 41, 64, 103, 0, 125]] | 0 | 98 |
#include <stdio.h>
int main(void) {
unsigned short int i;
int n, buf[100] = {0};
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &buf[i]);
}
for (i = n - 1; i > 0; i--) {
printf("%d ", buf[i]);
}
printf("&d\n", buf[0]);
return 0;
} | #include <stdio.h>
int main(void) {
unsigned short int i;
int n, buf[100] = {0};
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", &buf[i]);
}
for (i = n - 1; i > 0; i--) {
printf("%d ", buf[i]);
}
printf("%d\n", buf[0]);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 109 |
#include <stdio.h>
int main(void) {
int i, n;
int a[100];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", a + i);
}
for (i = n - 1; i >= 0; i--) {
printf("%d", a[i]);
if (i == 0)
printf(" ");
else
printf("\n");
}
return 0;
} | #include <stdio.h>
int main(void) {
int i, n;
int a[100];
scanf("%d", &n);
for (i = 0; i < n; i++) {
scanf("%d", a + i);
}
for (i = n - 1; i >= 0; i--) {
printf("%d", a[i]);
if (i == 0)
printf("\n");
else
printf(" ");
}
return 0;
} | [["-", 64, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 64, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 44], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 109 |
#include <stdio.h>
int main(void) {
int a[100];
int length, i;
scanf("%d", &length);
for (i = 0; i < length; i++) {
scanf("%d", &a[i]);
}
int *n = a;
for (i = length - 1; i > 0; i--) {
printf("%d", *(n + i));
}
printf("%d\n", a[0]);
return 0;
} | #include <stdio.h>
int main(void) {
int a[100];
int length, i;
scanf("%d", &length);
for (i = 0; i < length; i++) {
scanf("%d", &a[i]);
}
int *n = a;
for (i = length - 1; i > 0; i--) {
printf("%d ", *(n + i));
}
printf("%d\n", a[0]);
return 0;
} | [["-", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6], ["+", 0, 1, 0, 2, 3, 4, 0, 5, 0, 6]] | 0 | 111 |
#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;
}
| [["-", 8, 1, 0, 16, 12, 69, 341, 342, 0, 22], ["+", 8, 1, 0, 16, 12, 69, 341, 342, 0, 22]] | 1 | 91 |
#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;
}
| [["+", 0, 14, 8, 9, 0, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 152], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["-", 0, 57, 64, 1, 0, 16, 12, 103, 0, 104], ["+", 0, 57, 64, 1, 0, 16, 12, 5, 0, 62]] | 1 | 88 |
#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 /= 10) {
if (x % 10 == 3) {
cout << ' ' << i;
}
}
}
}
cout << endl;
return 0;
... | #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 /= 10) {
if (x % 10 == 3) {
cout << ' ' << i;
break;
}
}
}
}
cout << e... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 98 |
/*
?§???????????????°???????????°
goto
?????????C/C++?¨????????????§???????????¨?????§???????????§????????????????????¨????????¶????????????????????????????????????????£?????????????????????°
goto CHECK_NUM; ??¨?????????????????????????????¨???????????°??????????????§
CHECK_NUM:
??¨????????????????????????????§???????... | /*
?§???????????????°???????????°
goto
?????????C/C++?¨????????????§???????????¨?????§???????????§????????????????????¨????????¶????????????????????????????????????????£?????????????????????°
goto CHECK_NUM; ??¨?????????????????????????????¨???????????°??????????????§
CHECK_NUM:
??¨????????????????????????????§???????... | [["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]] | 1 | 121 |
#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... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 113 |
#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... | [["+", 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]] | 1 | 90 |
#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++;
}
... | [["+", 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]] | 1 | 94 |
#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;
}
}
}
... | [["+", 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]] | 1 | 94 |
#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);
}
... | [["-", 0, 9, 0, 82, 15, 23, 0, 16, 17, 60], ["-", 0, 9, 0, 82, 15, 23, 0, 16, 12, 13], ["+", 0, 9, 0, 82, 15, 23, 0, 16, 17, 20], ["+", 0, 9, 0, 82, 15, 23, 0, 16, 12, 13]] | 1 | 120 |
#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... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 100 |
#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... | [["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 114 |
#include <iostream>
using namespace std;
void check(int i) {
int t = i;
while (t != 0) {
if (t % 10 == 3) {
cout << " " << t;
return;
}
t /= 10;
}
}
void call(int n) {
for (int i = 1; i <= n; i++) {
if (i % 3 == 0)
cout << " " << i;
else
check(i);
}
}
int main()... | #include <iostream>
using namespace std;
void check(int i) {
int t = i;
while (t != 0) {
if (t % 10 == 3) {
cout << " " << i;
return;
}
t /= 10;
}
}
void call(int n) {
for (int i = 1; i <= n; i++) {
if (i % 3 == 0)
cout << " " << i;
else
check(i);
}
}
int main()... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 121 |
#include <iostream>
using namespace std;
int main() {
int n, i = 1;
cin >> n;
while (++i <= n) {
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 <iostream>
using namespace std;
int main() {
int n, i = 1;
cin >> n;
while (++i <= n) {
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;
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]] | 1 | 104 |
#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 ... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 17, 85], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109]] | 1 | 103 |
#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;
... | [["+", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46], ["-", 0, 52, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 217 |
#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");
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 105 |
#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... | [["+", 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]] | 1 | 102 |
#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 ... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 106 |
#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);
... | [["-", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67], ["-", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35]] | 1 | 133 |
#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);
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 124 |
#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... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 121 |
#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;
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 108 |
#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... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 110 |
#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;
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 100 |
#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 ... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 94 |
#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 ... | [["-", 0, 7, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 7, 8, 9, 0, 43, 49, 50, 51, 22]] | 1 | 110 |
#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;
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 112 |
#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 ... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 95 |
#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... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 114 |
#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;
}
... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 112 |
#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++... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 96 |
#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... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 110 |
#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... | [["-", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 2, 63, 22]] | 1 | 235 |
#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... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 99 |
#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 ==... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["-", 8, 9, 0, 52, 15, 339, 51, 16, 12, 13], ["-", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 115 |
#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;
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 108 |
#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;
}
... | [["-", 0, 9, 0, 52, 15, 339, 51, 91, 17, 111], ["+", 0, 9, 0, 52, 15, 339, 51, 16, 17, 79], ["+", 0, 9, 0, 52, 15, 339, 51, 16, 12, 13]] | 1 | 98 |
#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;
}
}
}
... | [["+", 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]] | 1 | 91 |
#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... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 131 |
#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;
... | [["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35]] | 1 | 128 |
#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");
} | [["+", 31, 16, 31, 16, 12, 16, 31, 16, 17, 109], ["+", 31, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 51, 16, 31, 16, 12, 16, 31, 16, 17, 109], ["+", 51, 16, 31, 16, 12, 16, 31, 16, 12, 13], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13]] | 1 | 96 |
#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;... | [["-", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]] | 1 | 147 |
#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 /= ... | [["+", 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]] | 1 | 91 |
#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;
}
}
}
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 100 |
#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;
... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 110 |
#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;
}
... | [["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 38], ["+", 0, 30, 0, 14, 8, 9, 0, 37, 0, 13]] | 1 | 109 |
#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;
}
... | [["+", 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]] | 1 | 101 |
#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;
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 116 |
#include <iostream>
int main(int argc, const char *argv[]) {
int n;
std::cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
std::cout << " " << i;
continue;
}
for (int x = i; x != 0; x /= 10) {
if (x % 10 == 3) {
std::cout << " " << i;
continue;
}
}... | #include <iostream>
int main(int argc, const char *argv[]) {
int n;
std::cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
std::cout << " " << i;
continue;
}
for (int x = i; x != 0; x /= 10) {
if (x % 10 == 3) {
std::cout << " " << i;
break;
}
}
... | [["-", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]] | 1 | 114 |
#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... | [["+", 0, 7, 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, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 145 |
#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... | [["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 114 |
#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... | [["+", 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]] | 1 | 101 |
#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;
... | [["+", 0, 57, 64, 9, 0, 1, 0, 11, 31, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 17, 32], ["+", 0, 57, 64, 9, 0, 1, 0, 11, 12, 13], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35]] | 1 | 140 |
#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;
}
... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 111 |
#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 =... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 19], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18]] | 1 | 166 |
#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 <... | [["-", 75, 76, 0, 9, 0, 7, 15, 16, 12, 13], ["+", 75, 76, 0, 9, 0, 7, 15, 16, 12, 13]] | 1 | 99 |
#define _USE_MATH_DEFINES
#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
int x = i;
if (i % 3 == 0) {
cout << " " << i;
}
while (x != 0) {
if (x % 10 == 3) {
cout << " " << i;
bre... | #define _USE_MATH_DEFINES
#include <cmath>
#include <iomanip>
#include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
int x = i;
if (i % 3 == 0) {
cout << " " << i;
continue;
}
while (x != 0) {
if (x % 10 == 3) {
cout << " " <... | [["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 35]] | 1 | 103 |
#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 (... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 104 |
#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;
... | [["+", 0, 57, 64, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 94 |
#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... | [["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 102 |
#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 <= ... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 102 |
#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 <... | [["+", 0, 82, 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, 82, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 116 |
#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 /= ... | [["+", 0, 14, 8, 9, 0, 43, 49, 50, 0, 32], ["+", 0, 14, 8, 9, 0, 43, 49, 50, 51, 13]] | 1 | 100 |
#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;
... | [["+", 0, 1, 0, 2, 3, 4, 0, 66, 17, 67]] | 1 | 107 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.