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 <iostream>
using namespace std;
int main() {
int n, i, x;
cin >> n;
for (i = 0; i < n; i++) {
x = i;
while (x) {
if (x % 3 == 0) {
cout << " " << i;
x = 0;
}
while (x) {
if (x % 10 == 3) {
cout << " " << i;
x = 0;
} else {
... | #include <iostream>
using namespace std;
int main() {
int n, i, x;
cin >> n;
for (i = 0; i <= n; i++) {
x = i;
while (x) {
if (x % 3 == 0) {
cout << " " << i;
x = 0;
}
while (x) {
if (x % 10 == 3) {
cout << " " << i;
x = 0;
} else {
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 109 |
#include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define vi vector<int>
#define All(X) X.begin... | #include <algorithm>
#include <cmath>
#include <complex>
#include <iomanip>
#include <iostream>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
#define ll long long
#define vvi vector<vector<int>>
#define vi vector<int>
#define All(X) X.begin... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 209 |
// AOJ ITP 1_5_D
#include <cstdio>
void call(int n) {
int i = 1;
do {
int x = i;
if (x % 3 == 0)
printf(" %d", i);
else {
do {
if (x % 10 == 3)
printf(" %d", i);
x /= 10;
} while (x);
}
} while (++i <= n);
puts("");
return;
}
int main() {
int ... | // AOJ ITP 1_5_D
#include <cstdio>
void call(int n) {
int i = 1;
do {
int x = i;
if (x % 3 == 0)
printf(" %d", i);
else {
do {
if (x % 10 == 3) {
printf(" %d", i);
break;
}
x /= 10;
} while (x);
}
} while (++i <= n);
puts("");
r... | [["+", 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 |
// Structured Programming
#include <cassert>
#include <iostream>
void call(int n) {
for (int i = 1; i <= n; ++i) {
if (i % 3 == 0) {
std::cout << " " << n;
continue;
}
int digit = i;
while (digit != 0) {
if (digit % 10 == 3) {
std::cout << " " << n;
break;
}
... | // Structured Programming
#include <cassert>
#include <iostream>
void call(int n) {
for (int i = 1; i <= n; ++i) {
if (i % 3 == 0) {
std::cout << " " << i;
continue;
}
int digit = i;
while (digit != 0) {
if (digit % 10 == 3) {
std::cout << " " << i;
break;
}
... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 132 |
#include <stdio.h>
void call(int n) {
for (int i = 1; i <= n; i++) {
int x = 3;
if (x % 3 == 0) {
printf(" %d", i);
continue;
}
do {
if (x % 10 == 3) {
printf(" %d", i);
break;
}
x /= 10;
} while (x);
}
printf("\n");
}
int main() {
int n;
sca... | #include <stdio.h>
void call(int n) {
for (int i = 1; i <= n; i++) {
int x = i;
if (x % 3 == 0) {
printf(" %d", i);
continue;
}
do {
if (x % 10 == 3) {
printf(" %d", i);
break;
}
x /= 10;
} while (x);
}
printf("\n");
}
int main() {
int n;
sca... | [["-", 0, 7, 8, 9, 0, 43, 49, 50, 51, 13], ["+", 0, 7, 8, 9, 0, 43, 49, 50, 51, 22]] | 1 | 116 |
#include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
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;
else {
while (x >= 10) {
if (x / 10 == 3... | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
/*void call(int n){
int i = 1;
CHECK_NUM:
int x = i;
if ( x % 3 == 0 ){
cout << " " << i;
goto END_CHECK_NUM;
}
INCLUDE3:
if ( x % 10 == 3 ){
cout << " " << i;
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 114 |
#include <algorithm>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
#define pi 3.141592653589
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) {
if (x ... | #include <algorithm>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <string>
using namespace std;
#define pi 3.141592653589
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) {
if (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 | 105 |
#include <iostream>
using namespace std;
int main() {
int n, i, buf;
cin >> n;
for (i = 1; i <= n; i++) {
buf = i;
if (i % 3 == 0) {
cout << " " << i;
} else {
while (buf != 0) {
if (buf % 10 == 3) {
cout << " " << i;
}
buf /= 10;
}
}
}
co... | #include <iostream>
using namespace std;
int main() {
int n, i, buf;
cin >> n;
for (i = 1; i <= n; i++) {
buf = i;
if (i % 3 == 0) {
cout << " " << i;
} else {
while (buf != 0) {
if (buf % 10 == 3) {
cout << " " << i;
break;
}
buf /= 10;
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 97 |
// include----------------------------------------------------------------------------------------------------------------------
#include <bits/stdc++.h>
// using
// namespace--------------------------------------------------------------------------------------------------------------
using namespace std;
// define---... | // include----------------------------------------------------------------------------------------------------------------------
#include <bits/stdc++.h>
// using
// namespace--------------------------------------------------------------------------------------------------------------
using namespace std;
// define---... | [["-", 0, 9, 0, 52, 15, 339, 51, 16, 17, 85], ["-", 0, 9, 0, 52, 15, 339, 51, 16, 12, 13]] | 1 | 343 |
#include <iostream>
using namespace std;
bool isInclude3(int n) {
while (n) {
if (n % 10 == 3)
return true;
n /= 10;
}
return false;
}
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || isInclude3(n))
cout << " " << i;
}
cout << endl;
return 0;
} | #include <iostream>
using namespace std;
bool isInclude3(int n) {
while (n) {
if (n % 10 == 3)
return true;
n /= 10;
}
return false;
}
int main() {
int n;
cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || isInclude3(i))
cout << " " << i;
}
cout << endl;
return 0;
} | [["-", 15, 339, 51, 16, 12, 2, 3, 4, 0, 22], ["+", 15, 339, 51, 16, 12, 2, 3, 4, 0, 22]] | 1 | 95 |
#include <iostream>
int main() {
int n;
std::cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
std::cout << " " << i;
} else {
int x = i;
do {
if (x % 10 == 3) {
std::cout << " " << x;
}
} while (x /= 10);
}
}
std::cout << std::endl;
ret... | #include <iostream>
int main() {
int n;
std::cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
std::cout << " " << i;
} else {
int x = i;
do {
if (x % 10 == 3) {
std::cout << " " << i;
break;
}
} while (x /= 10);
}
}
std::cout <<... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]] | 1 | 102 |
#include <iostream>
using namespace std;
int main() {
int n, x;
cin >> n;
for (int i = 1; i <= n; i++) {
x = i;
if (i % 3 == 0) {
cout << " " << i;
} else if (i % 10 == 3) {
cout << " " << i;
} else {
x /= 10;
while (x > 0) {
if (i % 10 == 3) {
cout << "... | #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;
} else if (x % 10 == 3) {
cout << " " << i;
} else {
x /= 10;
while (x) {
if (x % 10 == 3) {
cout << " " <... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["-", 0, 9, 0, 52, 15, 339, 51, 16, 17, 47], ["-", 0, 9, 0, 52, 15, 339, 51, 16, 12, 13]] | 1 | 121 |
#include <cstdio>
using namespace std;
int main(void) {
int i, n, x;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0)
printf(" %d", i);
else {
do {
if (x % 10 == 3)
printf(" %d", i);
x /= 10;
} while (x);
}
}
printf("\n");
ret... | #include <cstdio>
using namespace std;
int main(void) {
int i, n, x;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0)
printf(" %d", i);
else {
do {
if (x % 10 == 3) {
printf(" %d", i);
break;
}
x /= 10;
} while (x);
... | [["+", 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 | 108 |
#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;
}
for (; 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++) {
int x = i;
if (x % 3 == 0) {
cout << " " << i;
continue;
}
for (; x > 0; x /= 10) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
}
}
cout << endl... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 98 |
#include <iostream>
using namespace std;
int main() {
int n, x;
cin >> n;
for (int i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
while (true) {
if (x % 10 == 3) {
cout << " " << i;
}
x /= 10;
if (x) {
} else {
... | #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;
} else {
while (true) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
if (x) {
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 108 |
#include <iostream>
using namespace std;
void call(int n) {
int i;
for (i = 1; i < n; i++) {
int x = i;
if (x % 3 == 0) {
cout << " " << i;
continue;
}
for (; x; x /= 10) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
}
}
cout << endl;
}
int main() ... | #include <iostream>
using namespace std;
void call(int n) {
int i;
for (i = 1; i <= n; i++) {
int x = i;
if (x % 3 == 0) {
cout << " " << i;
continue;
}
for (; x; x /= 10) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
}
}
cout << endl;
}
int main()... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 113 |
#include <iostream>
using namespace std;
bool Include3(int n) {
if (n % 10 == 3) {
return true;
}
n /= 10;
if (n) {
return Include3(n);
}
return false;
}
void CheckNum(int n) {
if (n % 3 == 0) {
cout << " " << n;
}
if (n > 9) {
if (Include3(n)) {
cout << " " << n;
}
}
}
i... | #include <iostream>
using namespace std;
bool Include3(int n) {
if (n % 10 == 3) {
return true;
}
n /= 10;
if (n) {
return Include3(n);
}
return false;
}
void CheckNum(int n) {
if (n % 3 == 0) {
cout << " " << n;
return;
}
if (n > 9) {
if (Include3(n)) {
cout << " " << n;
... | [["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 38], ["+", 8, 9, 0, 57, 64, 9, 0, 37, 0, 35]] | 1 | 136 |
#include <iostream>
using namespace std;
int main() {
int n;
int i;
cin >> n;
i = 1;
do {
int x = i;
if (0 == x % 3) {
cout << " " << i;
} else {
do {
if (3 == x % 10) {
cout << " " << i;
}
x /= 10;
} while (0 != x);
}
} while (++i <= n... | #include <iostream>
using namespace std;
int main() {
int n;
int i;
cin >> n;
i = 1;
do {
int x = i;
if (0 == x % 3) {
cout << " " << i;
} else {
do {
if (3 == x % 10) {
cout << " " << i;
break;
}
x /= 10;
} while (0 != x);
}
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 102 |
#include <iostream>
using namespace std;
void call(int n) {
int i, x;
for (i = 1; i <= n; i++) {
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;
void call(int n) {
int i, x;
for (i = 1; i <= n; i++) {
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 | 127 |
#include <iostream>
using namespace std;
int call(int n) {
int x;
for (int 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 call(int n) {
int x;
for (int 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;
}
}
}
cout << en... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 114 |
#include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main() {
int n, x;
cin >> n;
for (int i = 1; i <= n; i++) {
if ((i % 3) == 0 || (i % 10) == 3)
cout << " " << i;
else {
for (x = i; x > 0; x /= 10) {
if ((x % 10) == 3)
cout << " " << i;
... | #include <iostream>
#include <stdio.h>
#include <stdlib.h>
using namespace std;
int main() {
int n, x;
cin >> n;
for (int i = 1; i <= n; i++) {
if ((i % 3) == 0 || (i % 10) == 3)
cout << " " << i;
else {
for (x = i; x > 0; x /= 10) {
if ((x % 10) == 3) {
cout << " " << i;
... | [["+", 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 | 113 |
// ITP1_5_D
#include <iostream>
using namespace std;
int main() {
int i, x, n;
cin >> n;
for (i = 1; i <= n; i++) {
if (0 == i % 3)
cout << " " << i;
else
for (x = i; x != 0; x /= 10) {
if (3 == x % 10)
cout << " " << i;
}
}
cout << endl;
return 0;
} | // ITP1_5_D
#include <iostream>
using namespace std;
int main() {
int i, x, n;
cin >> n;
for (i = 1; i <= n; i++) {
if (0 == i % 3)
cout << " " << i;
else
for (x = i; x != 0; x /= 10) {
if (3 == x % 10) {
cout << " " << i;
break;
}
}
}
cout << en... | [["+", 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 | 95 |
#include <iostream>
using namespace std;
int main() {
int i, n, x;
cin >> n;
for (i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0) {
cout << ' ' << i;
continue;
}
if (x % 10 == 3) {
cout << ' ' << i;
continue;
}
for (x /= 10; x > 0; x /= 10) {
if (x % 10 == 3) {... | #include <iostream>
using namespace std;
int main() {
int i, n, x;
cin >> n;
for (i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0) {
cout << ' ' << i;
continue;
}
if (x % 10 == 3) {
cout << ' ' << i;
continue;
}
for (x /= 10; x > 0; x /= 10) {
if (x % 10 == 3) {... | [["-", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]] | 1 | 125 |
#include <stdio.h>
int main(void) {
int x, n;
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0) {
printf(" %d", x);
continue;
}
do {
if (x % 10 == 3) {
printf(" %d", x);
break;
}
x /= 10;
} while (x);
}
printf("\n");
re... | #include <stdio.h>
int main(void) {
int x, n;
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0) {
printf(" %d", i);
continue;
}
do {
if (x % 10 == 3) {
printf(" %d", i);
break;
}
x /= 10;
} while (x);
}
printf("\n");
re... | [["-", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22], ["+", 64, 9, 0, 1, 0, 2, 3, 4, 0, 22]] | 1 | 108 |
#include <iostream>
int n;
int main() {
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 << " " << j;
break;
}
}
}
std::cout << std::endl;
r... | #include <iostream>
int n;
int main() {
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;
break;
}
}
}
std::cout << std::endl;
r... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 104 |
#include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
int n, x;
cin >> n;
for (int i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
do {
if (x % 10 == 3) {
cout << " " << i;
}
x /= 10;
} while (x... | #include <iostream>
using namespace std;
int main(int argc, const char *argv[]) {
int n, x;
cin >> n;
for (int i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
do {
if (x % 10 == 3) {
cout << " " << i;
break;
} else {
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35], ["+", 0, 82, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 110 |
#include <iostream>
using namespace std;
int main() {
int n, x;
cin >> n;
for (int i = 1; i < n + 1; i++) {
if (i % 3 == 0)
cout << " " << i;
else if (i % 10 == 3)
cout << " " << i;
else
for (x = i; x != 0; x /= 10) {
if (x == 3) {
cout << " " << i;
break... | #include <iostream>
using namespace std;
int main() {
int n, x;
cin >> n;
for (int i = 1; i < n + 1; i++) {
if (i % 3 == 0)
cout << " " << i;
else if (i % 10 == 3)
cout << " " << i;
else {
for (x = i; x != 0; x /= 10) {
if (x % 10 == 3) {
cout << " " << i;
... | [["+", 75, 76, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 114 |
#include <cstdio>
#include <iostream>
using namespace std;
void call(int n) {
for (int i = 1; i <= n; ++i) {
int x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
do {
if (x % 10 == 3) {
cout << " " << i;
}
x /= 10;
} while (x);
}
}
cout << ... | #include <cstdio>
#include <iostream>
using namespace std;
void call(int n) {
for (int i = 1; i <= n; ++i) {
int x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
do {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
} while (x);
... | [["+", 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++) {
if (i % 3 == 0)
cout << " " << i;
int x = i;
while (1) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
if (x == 0)
break;
}
}
c... | #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 {
int x = i;
while (1) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
if (x == 0)
... | [["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 75, 76, 0, 9, 0, 52, 8, 9, 0, 46]] | 1 | 103 |
#include <iostream>
void call(int n) {
int x;
for (int i = 1; i <= n; i++) {
x = i;
// check 3no baisuu
if (x % 3 == 0) {
std::cout << " " << i;
}
else {
// check include 3
for (; x != 0; x /= 10) {
if (x % 10 == 3) {
std::cout << " " << i;
}
... | #include <iostream>
void call(int n) {
int x;
for (int i = 1; i <= n; i++) {
x = i;
// check 3no baisuu
if (x % 3 == 0) {
std::cout << " " << i;
}
else {
// check include 3
for (; x != 0; x /= 10) {
if (x % 10 == 3) {
std::cout << " " << i;
break... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 122 |
#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 j = i;
while (j < 0) {
if (j % 10 == 3) {
cout << " " << i;
break;
} else
j /= 10;
}
}
... | #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 j = i;
while (j > 0) {
if (j % 10 == 3) {
cout << " " << i;
break;
} else
j /= 10;
}
}
... | [["-", 8, 9, 0, 52, 15, 339, 51, 16, 17, 18], ["+", 8, 9, 0, 52, 15, 339, 51, 16, 17, 47]] | 1 | 100 |
#include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int n, i = 1, x = 0;
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++;... | #include <iostream>
#include <stdio.h>
using namespace std;
int main() {
int n, i = 1, x = 0;
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;
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 100 |
#include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define rep(i, a) REP(i, 0, a)
#define REP(i, a, b) for (int i = a; i < b; ++i)
t... | #include <algorithm>
#include <cctype>
#include <cmath>
#include <cstdio>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <string>
#include <vector>
#define rep(i, a) REP(i, 0, a)
#define REP(i, a, b) for (int i = a; i < b; ++i)
t... | [["+", 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 | 213 |
#include <stdio.h>
int main(int argc, char const *argv[]) {
int i, n;
scanf("%d", &n);
for (i = 3; i <= n; i++) {
if (i % 3 == 0) {
printf(" %d", i);
} else {
int temp = i;
do {
if (temp == 3) {
printf(" %d", i);
break;
}
temp /= 10;
} ... | #include <stdio.h>
int main(int argc, char const *argv[]) {
int i, n;
scanf("%d", &n);
for (i = 3; i <= n; i++) {
if (i % 3 == 0) {
printf(" %d", i);
} else {
int temp = i;
do {
if (temp % 10 == 3) {
printf(" %d", i);
break;
}
temp /= 10;
... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13]] | 1 | 116 |
#include <algorithm>
#include <climits>
#include <cstring>
#include <iostream>
#include <map>
#include <string>
#include <vector>
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)... | #include <algorithm>
#include <climits>
#include <cstring>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
void call(int n) {
for (int i = 1; i <= n; ++i) {
int x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
while (x) {
if (x % 10 == 3)... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 123 |
#include <iostream>
using namespace std;
int main(void) {
int n, x;
cin >> n;
for (int 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;
} | #include <iostream>
using namespace std;
int main(void) {
int n, x;
cin >> n;
for (int 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;
}
}
cou... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 93 |
#include <iostream>
using namespace std;
void check_num(int i) {
int x = i;
if (x % 3 == 0 || x % 10 == 3) {
cout << ' ' << i;
} else {
do {
x /= 10;
if (x) {
if (x % 10 == 3)
cout << ' ' << i;
break;
}
} while (x);
}
}
int main() {
int n, i = 1;
cin ... | #include <iostream>
using namespace std;
void check_num(int i) {
int x = i;
if (x % 3 == 0 || x % 10 == 3) {
cout << ' ' << i;
} else {
do {
x /= 10;
if (x && x % 10 == 3) {
cout << ' ' << i;
break;
}
} while (x);
}
}
int main() {
int n, i = 1;
cin >> n;
for ... | [["-", 0, 82, 8, 9, 0, 57, 15, 339, 0, 25], ["-", 0, 82, 8, 9, 0, 57, 64, 9, 0, 45], ["-", 8, 9, 0, 57, 64, 9, 0, 57, 0, 121], ["-", 0, 57, 64, 9, 0, 57, 15, 339, 0, 24], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 17, 98], ["+", 0, 82, 8, 9, 0, 57, 64, 9, 0, 45]] | 1 | 123 |
#define _USE_MATH_DEFINES
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <string>
#define rep(i, start, n) for (int i = start; i < n; i++)
#define And &&
#define Or ||
#define Lb cout << endl
using namespace std;
int main() {
int n;
cin >> n;
rep(i, 1, n + 1) {
int x = i;
... | #define _USE_MATH_DEFINES
#include <cmath>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <string>
#define rep(i, start, n) for (int i = start; i < n; i++)
#define And &&
#define Or ||
#define Lb cout << endl
using namespace std;
int main() {
int n;
cin >> n;
rep(i, 1, n + 1) {
int x = 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 | 117 |
#include <iostream>
using namespace std;
void call(int n) {
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 10 == 3) {
cout << " " << i;
} else {
int x = i;
while (x >= 10) {
x /= 10;
if (x % 10 == 3)
cout << " " << i;
}
}
}
cout << endl;
}
int ... | #include <iostream>
using namespace std;
void call(int n) {
for (int i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 10 == 3) {
cout << " " << i;
} else {
int x = i;
while (x >= 10) {
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 | 115 |
#include <cstdio>
int main() {
int n;
scanf("%d", &n);
for (int i = 1; i <= n; ++i) {
if (i % 3 == 0 || i % 10 == 3)
printf(" %d", i);
else {
int x = i;
while (x) {
x /= 10;
if (i % 10 == 3) {
printf(" %d", i);
break;
}
}
}
}
p... | #include <cstdio>
int main() {
int n;
scanf("%d", &n);
for (int i = 1; i <= n; ++i) {
if (i % 3 == 0 || i % 10 == 3)
printf(" %d", i);
else {
int x = i;
while (x) {
x /= 10;
if (x % 10 == 3) {
printf(" %d", i);
break;
}
}
}
}
p... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 106 |
// x??????????????°??§????????¨??????????????????
//????????????????????????????????´??°???????????¨??????????????????
//????????????????????????
#include <iostream>
using namespace std;
int main() {
int n, x;
cin >> n;
for (int i = 1; i <= n; i++) {
x = i;
while (1) {
if (x % 3 == 0) {
co... | // x??????????????°??§????????¨??????????????????
//????????????????????????????????´??°???????????¨??????????????????
//????????????????????????
#include <iostream>
using namespace std;
int main() {
int n, x;
cin >> n;
for (int i = 1; i <= n; i++) {
x = i;
while (1) {
if (x % 3 == 0) {
co... | [["+", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46], ["-", 0, 14, 8, 9, 0, 7, 8, 9, 0, 46]] | 1 | 109 |
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
#define CI cin >>
#define CO cout <<
#define E << endl;
using namespace std;
void call(int n) {
int i = 1;
int x = i;
while (1) {
if (x % 3 == 0) {
CO " " << i;
} else {
if (x % 10 == 3) {
... | #include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
#include <vector>
#define CI cin >>
#define CO cout <<
#define E << endl;
using namespace std;
void call(int n) {
int i = 1;
int x = i;
while (1) {
if (x % 3 == 0) {
CO " " << i;
} else {
if (x % 10 == 3) {
... | [["+", 75, 76, 0, 9, 0, 57, 75, 76, 0, 95], ["+", 0, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 75, 76, 0, 9, 0, 52, 8, 9, 0, 46]] | 1 | 159 |
#include <cstdio>
#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>
#include <vector>
using namespace std;
void solve() {
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) {
... | #include <cstdio>
#include <iostream>
#define _USE_MATH_DEFINES
#include <math.h>
#include <vector>
using namespace std;
void solve() {
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) {
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 115 |
#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;
}
if (x % 10 == 0) {
cout << " " << i;
continue;
}
x /= 10;
for (;;) {
if (x) {
if (x %... | #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;
}
if (x % 10 == 3) {
cout << " " << i;
continue;
}
x /= 10;
for (;;) {
if (x) {
if (x %... | [["-", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13], ["+", 8, 9, 0, 57, 15, 339, 51, 16, 12, 13]] | 1 | 130 |
#include <cmath>
#include <iostream>
using namespace std;
void nabeatsu(int n);
int main() {
int n;
cin >> n;
nabeatsu(n);
}
void nabeatsu(int n) {
for (int i = 1; i <= n; ++i) {
int x = i;
if (!(x % 3)) {
cout << " " << i;
} else {
do {
if (x % 10 == 3)
cout << " ... | #include <cmath>
#include <iostream>
using namespace std;
void nabeatsu(int n);
int main() {
int n;
cin >> n;
nabeatsu(n);
}
void nabeatsu(int n) {
for (int i = 1; i <= n; ++i) {
int x = i;
if (!(x % 3)) {
cout << " " << i;
} else {
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 | 114 |
#include <iostream>
using namespace std;
int main(void) {
int n, x, i = 1;
cin >> n;
while (i <= n) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else
while (x > 10) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
}
i++;
}... | #include <iostream>
using namespace std;
int main(void) {
int n, x, i = 1;
cin >> n;
while (i <= n) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else
while (x > 1) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
}
i++;
}
... | [["-", 75, 76, 0, 52, 15, 339, 51, 16, 12, 13], ["+", 75, 76, 0, 52, 15, 339, 51, 16, 12, 13]] | 1 | 99 |
#include <iostream>
using namespace std;
void call(int n) {
int i;
for (i = 1; i <= n; i++) {
int tmp = i;
if (tmp % 3 == 0)
cout << ' ' << i;
else
for (; tmp; tmp /= 10)
if (tmp % 10 == 3)
cout << ' ' << i;
}
cout << endl;
}
int main() {
int n;
cin >> n;
call(n... | #include <iostream>
using namespace std;
void call(int n) {
int i;
for (i = 1; i <= n; i++) {
int tmp = i;
if (tmp % 3 == 0)
cout << ' ' << i;
else
for (; tmp; tmp /= 10)
if (tmp % 10 == 3) {
cout << ' ' << i;
break;
}
}
cout << endl;
}
int main() {
... | [["+", 75, 76, 0, 7, 8, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 57, 64, 9, 0, 1, 0, 35], ["+", 0, 7, 8, 57, 64, 9, 0, 93, 0, 94], ["+", 75, 76, 0, 7, 8, 57, 64, 9, 0, 46]] | 1 | 101 |
#include <iostream>
using namespace std;
int main() {
int n, x, y;
cin >> n;
for (int i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
continue;
}
if (x % 10 == 3) {
cout << " " << i;
continue;
}
for (x; x > 1; x /= 10) {
if (x == 3) {
... | #include <iostream>
using namespace std;
int main() {
int n, x, y;
cin >> n;
for (int i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
continue;
}
if (x % 10 == 3) {
cout << " " << i;
continue;
}
for (x; x > 1; x /= 10) {
if (x % 10 == 3) {
... | [["+", 0, 57, 15, 339, 51, 16, 31, 16, 17, 109], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 12, 13], ["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35], ["-", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117]] | 1 | 124 |
#include <bits/stdc++.h>
#define range(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, b) range(i, 0, b)
#define debug(x) cout << "debug" << x << endl;
using namespace std;
int main() {
int n;
while (cin >> n) {
range(i, 1, n + 1) {
int x = i;
if (x % 3 == 0)
cout << " " << x;
... | #include <bits/stdc++.h>
#define range(i, a, b) for (int i = (a); i < (b); i++)
#define rep(i, b) range(i, 0, b)
#define debug(x) cout << "debug" << x << endl;
using namespace std;
int main() {
int n;
while (cin >> n) {
range(i, 1, n + 1) {
int x = i;
if (x % 3 == 0)
cout << " " << x;
... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 118 |
#include <iostream>
#include <vector>
int main() {
int n;
std::cin >> n;
std::vector<int> vec(n);
for (int i = 0; i <= vec.size(); i++) {
if (i % 3 == 0) {
std::cout << " " << i;
continue;
}
int j = i;
while (j > 0) {
if (j % 10 == 3) {
std::cout << " " << i;
... | #include <iostream>
#include <vector>
int main() {
int n;
std::cin >> n;
std::vector<int> vec(n);
for (int i = 1; i <= vec.size(); i++) {
if (i % 3 == 0) {
std::cout << " " << i;
continue;
}
int j = i;
while (j > 0) {
if (j % 10 == 3) {
std::cout << " " << i;
... | [["-", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13], ["+", 8, 9, 0, 7, 10, 43, 49, 50, 51, 13]] | 1 | 120 |
#include <iostream>
using namespace std;
int main() {
int n;
int i = 1;
int x;
cin >> n;
while (i <= n) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else if (x % 10 == 3) {
cout << " " << i;
} else {
x /= 10;
while (x) {
if (x % 10 == 3) {
cout <... | #include <iostream>
using namespace std;
int main() {
int n;
int i = 1;
int x;
cin >> n;
while (i <= n) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else if (x % 10 == 3) {
cout << " " << i;
} else {
x /= 10;
while (x) {
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 | 121 |
#include <stdio.h>
int main(void) {
int i, n, x;
scanf("%d", &n);
for (i = 0; i < n; ++i) {
x = i + 1;
if (x % 3 == 0) {
printf(" %d", i + 1);
} else {
while (x) {
if (x % 10 == 3) {
printf(" %d", i + 1);
}
x /= 10;
}
}
}
putchar('\n');
} | #include <stdio.h>
int main(void) {
int i, n, x;
scanf("%d", &n);
for (i = 0; i < n; ++i) {
x = i + 1;
if (x % 3 == 0) {
printf(" %d", i + 1);
} else {
while (x) {
if (x % 10 == 3) {
printf(" %d", i + 1);
break;
}
x /= 10;
}
}
}
put... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 109 |
#include <iostream>
#include <string>
using namespace std;
bool judge1(int x);
bool judge2(int x);
int main() {
int n, x;
cin >> n;
for (int i = 1; i <= n; i++) {
x = i;
if (judge1(x) || judge2(x)) {
cout << " " << i;
continue;
}
while (x) {
x /= 10;
if (judge2(x)) {
... | #include <iostream>
#include <string>
using namespace std;
bool judge1(int x);
bool judge2(int x);
int main() {
int n, x;
cin >> n;
for (int i = 1; i <= n; i++) {
x = i;
if (judge1(x) || judge2(x)) {
cout << " " << i;
continue;
}
while (x) {
x /= 10;
if (judge2(x)) {
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 145 |
#include <stdio.h>
using namespace std;
int main(void) {
int n, x;
scanf("%d", &n);
for (int i = 1; i <= n; ++i) {
x = i;
if (x % 3 == 0) {
printf(" %d", i);
} else {
do {
if (x % 10 == 3) {
printf(" %d", i);
}
x = x / 10;
} while (x);
}
}
p... | #include <stdio.h>
using namespace std;
int main(void) {
int n, x;
scanf("%d", &n);
for (int i = 1; i <= n; ++i) {
x = i;
if (x % 3 == 0) {
printf(" %d", i);
} else {
do {
if (x % 10 == 3) {
printf(" %d", i);
break;
}
x = x / 10;
} while (... | [["+", 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;
x = 0;
}
while (x) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
}
}
cout << end... | #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;
x = 0;
}
while (x) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
}
}
cout << en... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 99 |
#include <stdio.h>
int main() {
int i, n, x;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
x = i;
if (i % 3 == 0) {
printf(" %d", i);
continue;
}
while (x != 0) {
if (x % 10 == 3) {
printf(" %d", i);
}
x = x / 10;
}
}
printf("\n");
return 0;
} | #include <stdio.h>
int main() {
int i, n, x;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
x = i;
if (i % 3 == 0) {
printf(" %d", i);
continue;
}
while (x != 0) {
if (x % 10 == 3) {
printf(" %d", i);
break;
}
x = x / 10;
}
}
printf("\n");
retur... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 108 |
#include <iostream>
using namespace std;
void call(int n) {
int i;
for (i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 10 == 0) {
cout << " " << i;
} else {
int x = i;
while (x > 10) {
x /= 10;
if (x % 10 == 3) {
cout << " " << i;
break;
}
}... | #include <iomanip>
#include <iostream>
using namespace std;
void call(int n) {
int i;
for (i = 1; i <= n; i++) {
if (i % 3 == 0 || i % 10 == 3) {
cout << " " << i;
} else {
int x = i;
while (x > 10) {
x /= 10;
if (x % 10 == 3) {
cout << " " << i;
break... | [["+", 36, 36, 36, 36, 0, 30, 0, 135, 136, 137], ["+", 36, 36, 36, 36, 0, 30, 0, 135, 0, 138], ["-", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13], ["+", 0, 57, 15, 339, 51, 16, 12, 16, 12, 13]] | 1 | 121 |
#include <algorithm>
#include <iostream>
#include <vector>
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int n;
std::cin >> n;
for (int i = 1; i < n; ++i) {
bool flag = false;
if (i % 3 == 0)
flag = true;
int x = i;
while (x) {
if (x % 10 == 3) {
flag = ... | #include <algorithm>
#include <iostream>
#include <vector>
int main() {
std::ios::sync_with_stdio(false);
std::cin.tie(0);
int n;
std::cin >> n;
for (int i = 1; i <= n; ++i) {
bool flag = false;
if (i % 3 == 0)
flag = true;
int x = i;
while (x) {
if (x % 10 == 3) {
flag =... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 130 |
/*
* ITP1_5_D.cpp
*
* Created on: 2016/05/15
* Author: suna
*/
#include <iostream>
using namespace std;
//??¢??°??????
// 1??????n?????§????????§???3??§?????????????????°???????????????1?????????3??§????????°???????????????
// 3??§?????????????????°??????????????????
void call(int n) {
int x;
for (int... | /*
* ITP1_5_D.cpp
*
* Created on: 2016/05/15
* Author: suna
*/
#include <iostream>
using namespace std;
//??¢??°??????
// 1??????n?????§????????§???3??§?????????????????°???????????????1?????????3??§????????°???????????????
// 3??§?????????????????°??????????????????
void call(int n) {
int x;
for (int... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 131 |
#include <stdio.h>
int main(void) {
int n, i, k;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
if (i % 3 == 0) {
printf(" %d", i);
continue;
} else {
int j = i;
for (k = 10000; k >= 10; k /= 10) {
if (j / k == 3) {
printf(" %d", i);
break;
}
... | #include <stdio.h>
int main(void) {
int n, i, k;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
if (i % 3 == 0) {
printf(" %d", i);
continue;
} else {
int j = i;
for (k = 10000; k >= 1; k /= 10) {
if (j / k == 3) {
printf(" %d", i);
break;
}
... | [["-", 75, 76, 0, 9, 0, 7, 15, 16, 12, 13], ["+", 75, 76, 0, 9, 0, 7, 15, 16, 12, 13]] | 1 | 121 |
#include <iostream>
int main() {
int n;
std::cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
std::cout << " " << i;
continue;
} else if (i % 10 == 3) {
std::cout << " " << i;
continue;
}
int a = i / 10;
if (a % 10 == 3) {
std::cout << " " << a;
... | #include <iostream>
int main() {
int n;
std::cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
std::cout << " " << i;
continue;
} else if (i % 10 == 3) {
std::cout << " " << i;
continue;
}
int a = i / 10;
if (a % 10 == 3) {
std::cout << " " << i;
... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 176 |
#include <stdio.h>
int main() {
int n;
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
int x = i;
if (i % 3 == 0)
printf(" %d", i);
else if (i % 10 == 3)
printf(" %d", i);
while (1) {
if (x == 0)
break;
if (x % 10 == 3) {
printf(" %d", i);
break;
... | #include <stdio.h>
int main() {
int n;
scanf("%d", &n);
for (int i = 1; i <= n; i++) {
int x = i;
if (i % 3 == 0)
printf(" %d", i);
else if (i % 10 == 3)
printf(" %d", i);
else {
while (1) {
if (x == 0)
break;
if (x % 10 == 3) {
printf(" %d", ... | [["+", 0, 57, 75, 76, 0, 57, 75, 76, 0, 95], ["+", 75, 76, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 75, 76, 0, 9, 0, 52, 8, 9, 0, 46]] | 1 | 127 |
#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;
else {
while (x) {
if (x % 10 == 3)
cout << " " << i;
x /= 10;
}
}
}
cout << endl;
return 0;
} | #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;
else {
while (x) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
}
}
}
cout... | [["+", 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 | 93 |
#include <iostream>
using namespace std;
int main() {
int n, i, x;
cin >> n;
for (i = 1; i < n + 1; i++) {
x = i;
if (i % 3 == 0) {
cout << " " << i;
} else {
while (x > 0) {
if (i % 10 == 3) {
cout << " " << i;
break;
} else {
x /= 10;
... | #include <iostream>
using namespace std;
int main() {
int n, i, x;
cin >> n;
for (i = 1; i < n + 1; i++) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
while (x > 0) {
if (x % 10 == 3) {
cout << " " << i;
break;
} else {
x /= 10;
... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 107 |
#include <iostream>
using namespace std;
int n;
int main() {
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 = x / 10;
}
}
}
cout << end... | #include <iostream>
using namespace std;
int n;
int main() {
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 = x / 10;
}
}
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 97 |
#include <iostream>
using namespace std;
int main() {
int i, j, n;
cin >> n;
for (i = 3; i <= n; i++) {
if (i % 3 == 0) {
cout << " " << i;
} else {
for (j = 10; j < n; j *= 10) {
if ((i % j) == 3 || (i / j) == 3) {
cout << " " << i;
}
}
}
}
cout << endl... | #include <iostream>
using namespace std;
int main() {
int i, j, n;
cin >> n;
for (i = 3; i <= n; i++) {
if (i % 3 == 0) {
cout << " " << i;
} else {
for (j = 10; j < i; j *= 10) {
if ((i % j) == 3 || (i / j) % 10 == 3) {
cout << " " << i;
break;
}
}
... | [["-", 75, 76, 0, 9, 0, 7, 15, 16, 12, 22], ["+", 75, 76, 0, 9, 0, 7, 15, 16, 12, 22], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 17, 109], ["+", 15, 339, 51, 16, 12, 16, 31, 16, 12, 13], ["+", 8, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94]] | 1 | 110 |
#include <iostream>
using namespace std;
int main() {
int i, n, x;
i = 1;
cin >> n;
while (i <= n) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
for (x = i; x; x /= 10) {
if (x % 10 == 3)
cout << " " << i;
break;
}
}
i++;
}
cout << end... | #include <iostream>
using namespace std;
int main() {
int i, n, x;
i = 1;
cin >> n;
while (i <= n) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
for (x = i; x; x /= 10) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
}
}
i++;
}... | [["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 45], ["+", 0, 7, 8, 9, 0, 57, 64, 9, 0, 46]] | 1 | 102 |
#include <stdio.h>
int main(void) {
int n, i, x;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0)
printf(" %d", i);
else {
while (x / 10) {
if (x % 10 == 3) {
printf(" %d", i);
break;
}
x /= 10;
}
}
}
putchar('\n')... | #include <stdio.h>
int main(void) {
int n, i, x;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
x = i;
if (x % 3 == 0)
printf(" %d", i);
else {
while (x) {
if (x % 10 == 3) {
printf(" %d", i);
break;
}
x /= 10;
}
}
}
putchar('\n');
r... | [["-", 0, 9, 0, 52, 15, 339, 51, 16, 17, 85], ["-", 0, 9, 0, 52, 15, 339, 51, 16, 12, 13]] | 1 | 108 |
#include <stdio.h>
int main() { // 1??????n?????§???3????????°??¨3???????????°??????????????????
int n, i, x, j, p, y;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
x = i;
if (i % 3 == 0) {
printf(" %d", i);
continue;
}
for (j = 0;; j++) {
if (x % 10 == 3) {
printf(" %d"... | #include <stdio.h>
int main() { // 1??????n?????§???3????????°??¨3???????????°??????????????????
int n, i, x, j, p, y;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
x = i;
if (i % 3 == 0) {
printf(" %d", i);
continue;
}
for (j = 0;; j++) {
if (x % 10 == 3) {
printf(" %d"... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 126 |
#include <iostream>
using namespace std;
void call(int n);
int main(void) {
int n;
cin >> n;
call(n);
return 0;
}
void call(int n) {
for (int i = 1; i <= n; i++) {
if ((i % 3) == 0) {
cout << " " << i;
} else {
int x = i;
while (x) {
if ((x % 10) == 3) {
cout ... | #include <iostream>
using namespace std;
void call(int n);
int main(void) {
int n;
cin >> n;
call(n);
return 0;
}
void call(int n) {
for (int i = 1; i <= n; i++) {
if ((i % 3) == 0) {
cout << " " << i;
} else {
int x = i;
while (x) {
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 | 123 |
#include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 3; i <= n; i++) {
if (i % 3 == 0) {
cout << " " << i;
} else {
ostringstream os;
string s;
os << i;
s = os.str();
for (int j =... | #include <iomanip>
#include <iostream>
#include <sstream>
#include <string>
using namespace std;
int main() {
int n;
cin >> n;
for (int i = 3; i <= n; i++) {
if (i % 3 == 0) {
cout << " " << i;
} else {
ostringstream os;
string s;
os << i;
s = os.str();
for (int j =... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 127 |
#include <iostream>
using namespace std;
int main(void) {
int i, n, x;
cin >> n;
for (i = 1; i < 31; i++) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
while (x != 0) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
}
}... | #include <iostream>
using namespace std;
int main(void) {
int i, n, x;
cin >> n;
for (i = 1; i < n + 1; i++) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
while (x != 0) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
}
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 12, 13], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 31, 22], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 17, 72], ["+", 8, 9, 0, 7, 15, 16, 12, 16, 12, 13]] | 1 | 100 |
#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 {
int x = i;
while (x != 0) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
}
}
... | #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 {
int x = i;
while (x != 0) {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
}
}
... | [["-", 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, 1, 0, 16, 31, 22], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 17, 151], ["+", 0, 14, 8, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 30, 0, 14, 8, 9, 0, 1, 0, 35]] | 1 | 94 |
#include <iostream>
using namespace std;
int main() {
int i, n, x;
cin >> n;
for (i = 3; i <= n; i++) {
x = i;
if (x % 3 == 0) {
cout << ' ' << i;
break;
}
if (x % 10 == 3) {
cout << ' ' << i;
break;
}
for (x /= 10; x > 0; x /= 10) {
if (x % 10 == 3) {
... | #include <iostream>
using namespace std;
int main() {
int i, n, x;
cin >> n;
for (i = 3; i <= n; i++) {
x = i;
if (x % 3 == 0) {
cout << ' ' << i;
continue;
}
if (x % 10 == 3) {
cout << ' ' << i;
continue;
}
for (x /= 10; x > 0; x /= 10) {
if (x % 10 == 3)... | [["-", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 116, 0, 117]] | 1 | 122 |
#include <iostream>
using namespace std;
int main() {
int num, x;
cin >> num;
for (int i = 1; i < num; i++) {
x = i;
// 3????????°??§????????°??????
if (x % 3 == 0)
cout << " " << i;
// x???????????????3(10??§?????£????????????3)??§????????°????????????while?????????????¬??????°???
//... | #include <iostream>
using namespace std;
int main() {
int num, x;
cin >> num;
for (int i = 1; i <= num; i++) {
x = i;
// 3????????°??§????????°??????
if (x % 3 == 0)
cout << " " << i;
// x???????????????3(10??§?????£????????????3)??§????????°????????????while?????????????¬??????°???
/... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 101 |
#include <iostream>
using namespace std;
int main() {
long long int n;
cin >> n;
for (long long int i = 1; i <= n; i++) {
if (i % 3 == 0) {
cout << " " << i;
continue;
}
long long int j = i;
while (j) {
if (j % 10 == 3) {
cout << " " << j;
break;
}
... | #include <iostream>
using namespace std;
int main() {
long long int n;
cin >> n;
for (long long int i = 1; i <= n; i++) {
if (i % 3 == 0) {
cout << " " << i;
continue;
}
long long int j = i;
while (j) {
if (j % 10 == 3) {
cout << " " << i;
break;
}
... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 103 |
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> 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 << " " << x;
break;
} else {
x ... | #include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
cin >> 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;
} else {
x ... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 103 |
#include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 1e9;
int main() {
int i = 0, n = 0;
fscanf(stdin, "%d", &n);
while (++i <= n) {
int x = i;
if (x % 3 == 0 || x % 10 == 3) {
fprintf(stdout, " %d", i);
} else {
for (x /= 10; x > 0; x /= 10) {
if... | #include <bits/stdc++.h>
using namespace std;
typedef long long ll;
const int INF = 1e9;
int main() {
int i = 0, n = 0;
fscanf(stdin, "%d", &n);
while (++i <= n) {
int x = i;
if (x % 3 == 0 || x % 10 == 3) {
fprintf(stdout, " %d", i);
} else {
for (x /= 10; x > 0; x /= 10) {
if... | [["-", 0, 7, 8, 9, 0, 1, 0, 11, 31, 22], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 17, 90], ["-", 0, 7, 8, 9, 0, 1, 0, 11, 12, 13], ["-", 0, 9, 0, 7, 8, 9, 0, 1, 0, 35]] | 1 | 143 |
#include <stdio.h>
main() {
int n;
int i, j;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
if (i % 3 == 0) {
printf(" %d", i);
} else {
j = i;
while (j > 0) {
if (j % 10 == 3)
printf(" %d", i);
j /= 10;
}
}
}
printf("\n");
} | #include <stdio.h>
main() {
int n;
int i, j;
scanf("%d", &n);
for (i = 1; i <= n; i++) {
if (i % 3 == 0) {
printf(" %d", i);
} else {
j = i;
while (j > 0) {
if (j % 10 == 3) {
printf(" %d", i);
break;
}
j /= 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 | 102 |
#include <iostream>
using namespace std;
void call(int n);
void judge1(int a);
void judge2(int b);
void judge3(int c);
int main() {
int input;
cin >> input;
call(input);
return 0;
}
void call(int n) {
int i;
for (i = 1; i <= n; i++) {
judge1(i);
}
cout << endl;
}
void judge1(int a) {
if (a % 3... | #include <iostream>
using namespace std;
void call(int n);
void judge1(int a);
void judge2(int b);
void judge3(int c);
int main() {
int input;
cin >> input;
call(input);
return 0;
}
void call(int n) {
int i;
for (i = 1; i <= n; i++) {
judge1(i);
}
cout << endl;
}
void judge1(int a) {
if (a % 3... | [["+", 0, 57, 64, 9, 0, 57, 64, 9, 0, 45], ["+", 64, 9, 0, 57, 64, 9, 0, 1, 0, 35], ["+", 64, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 0, 57, 64, 9, 0, 57, 64, 9, 0, 46]] | 1 | 208 |
#include <iostream>
using namespace std;
void call(int n);
int main() {
int n;
do {
cin >> n;
} while (n < 3 || n > 10000);
call(n);
return (0);
}
void call(int n) {
int i = 1;
int x;
while (++i <= n) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
while (x != ... | #include <iostream>
using namespace std;
void call(int n);
int main() {
int n;
do {
cin >> n;
} while (n < 3 || n > 10000);
call(n);
return (0);
}
void call(int n) {
int i = 1;
int x;
while (++i <= n) {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
while (x != ... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 134 |
#include <iostream>
using namespace std;
void call(int n) {
int i = 1, x;
do {
x = 1;
if (x % 3 == 0) {
cout << " " << i;
} else {
do {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
} while (x);
}
} while (++i <= n);
cout <<... | #include <iostream>
using namespace std;
void call(int n) {
int i = 1, x;
do {
x = i;
if (x % 3 == 0) {
cout << " " << i;
} else {
do {
if (x % 10 == 3) {
cout << " " << i;
break;
}
x /= 10;
} while (x);
}
} while (++i <= n);
cout <<... | [["-", 0, 82, 8, 9, 0, 1, 0, 11, 12, 13], ["+", 0, 82, 8, 9, 0, 1, 0, 11, 12, 22]] | 1 | 114 |
#include <iostream>
using namespace std;
int main() {
int n, j;
cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
cout << ' ' << i;
} else if (i % 10 == 3) {
cout << ' ' << i;
} else {
for (j = i / 10; j > 0; j = j / 10) {
if (j % 10 == 3) {
cout << ' ' << ... | #include <iostream>
using namespace std;
int main() {
int n, j;
cin >> n;
for (int i = 1; i <= n; i++) {
if (i % 3 == 0) {
cout << ' ' << i;
} else if (i % 10 == 3) {
cout << ' ' << i;
} else {
for (j = i / 10; j > 0; j = j / 10) {
if (j % 10 == 3) {
cout << ' ' << ... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 122 |
//
// 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;
... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 109 |
#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... | [["+", 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]] | 1 | 186 |
#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... | [["+", 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 | 144 |
#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;... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["-", 0, 9, 0, 82, 15, 23, 0, 16, 17, 47], ["-", 0, 9, 0, 82, 15, 23, 0, 16, 12, 13]] | 1 | 117 |
#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... | [["-", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22], ["+", 0, 57, 64, 9, 0, 1, 0, 16, 12, 22]] | 1 | 125 |
#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 <... | [["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 94], ["+", 8, 9, 0, 57, 64, 9, 0, 93, 0, 35]] | 1 | 106 |
#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);
}
... | [["-", 0, 43, 49, 50, 51, 2, 3, 4, 0, 22], ["+", 0, 43, 49, 50, 51, 2, 3, 4, 0, 22]] | 1 | 109 |
#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;
}
... | [["-", 0, 14, 8, 9, 0, 7, 15, 16, 17, 18], ["+", 0, 14, 8, 9, 0, 7, 15, 16, 17, 19]] | 1 | 105 |
#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... | [["-", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22], ["+", 0, 57, 15, 339, 51, 16, 31, 16, 31, 22]] | 1 | 114 |
#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);... | [["+", 0, 82, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 114 |
#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... | [["+", 0, 7, 8, 9, 0, 57, 75, 76, 0, 95], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 45], ["+", 8, 9, 0, 57, 75, 76, 0, 9, 0, 46]] | 1 | 1,803 |
#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... | [["+", 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 | 95 |
import sys
tmp = '#.' * 151
def draw(H, W):
odd = tmp[:W]
even = tmp[1:W + 1]
print((odd + '\n' + even + '\n') * (H // 2) + (odd if H % 2 else '') + '\n')
for line in sys.stdin:
H, W = map(int, line.split())
if H == W == 0:
break
draw(H, W) | import sys
tmp = '#.' * 151
def draw(H, W):
odd = tmp[:W]
even = tmp[1:W + 1]
print((odd + '\n' + even + '\n') * (H // 2) + (odd + '\n' if H % 2 else ''))
for line in sys.stdin:
H, W = map(int, line.split())
if H == W == 0:
break
draw(H, W) | [["+", 0, 657, 12, 23, 0, 41, 0, 657, 17, 72], ["+", 12, 23, 0, 41, 0, 657, 12, 557, 0, 654], ["+", 0, 41, 0, 657, 12, 557, 0, 6, 0, 44], ["+", 12, 23, 0, 41, 0, 657, 12, 557, 0, 655], ["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 652, 3, 4, 0, 657, 12, 557, 0, 654], ["-", 3, 4, 0, 657, 12, 557, 0, 6, 0, 44], ["-... | 5 | 106 |
while True:
(H, W)=[int(i)for i in input().split()]
if H == W ==0:
break
for hc in range(H):
for wc in range(W):
if (hc + wc) % 2 ==0:
print('#', end='')
else:
print(',', end='')
print()
print() | while True:
(H, W) = [int(i) for i in input().split()]
if (H == 0 == W):
break
for hc in range(H):
for wc in range(W):
if(hc + wc) % 2 == 0:
print('#', end='')
else:
print('.', end='')
print()
print() | [["+", 0, 52, 8, 196, 0, 57, 15, 23, 0, 24], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 667, 60], ["-", 0, 52, 8, 196, 0, 57, 15, 666, 0, 22], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 667, 60], ["+", 8, 196, 0, 57, 15, 23, 0, 666, 0, 22], ["+", 0, 52, 8, 196, 0, 57, 15, 23, 0, 25], ["-", 0, 1, 0, 652, 3, 4, 0, 557, 0, 6], ["+", ... | 5 | 90 |
l='#.'*999
while True:
h,w=list(map(int,input().split()))
if h==0:break
for i in range(h):print(l[i%2:w+i%2]+"\n") | l='#.'*999
while True:
h,w=list(map(int,input().split()))
if h==0:break
for i in range(h):print(l[i%2:w+i%2])
print() | [["-", 0, 1, 0, 652, 3, 4, 0, 657, 17, 72], ["-", 0, 652, 3, 4, 0, 657, 12, 557, 0, 654], ["-", 3, 4, 0, 657, 12, 557, 0, 6, 0, 44], ["-", 0, 652, 3, 4, 0, 657, 12, 557, 0, 655], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["+", 0, 52, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24]] | 5 | 62 |
# coding=utf-8
def gen(n, i=0):
while n:
yield '#' if i % 2 == 0 else '.'
i += 1
n -= 1
if __name__ == '__main__':
while True:
height, width = list(map(int, input().split()))
if height + width == 0:
break
else:
[print(''.join(list(gen(... | # coding=utf-8
def gen(n, i=0):
while n:
yield '#' if i % 2 == 0 else '.'
i += 1
n -= 1
if __name__ == '__main__':
while True:
height, width = list(map(int, input().split()))
if height + width == 0:
break
else:
[print(''.join(list(gen(... | [["-", 0, 658, 8, 652, 3, 4, 0, 657, 17, 72], ["-", 8, 652, 3, 4, 0, 657, 12, 557, 0, 654], ["-", 3, 4, 0, 657, 12, 557, 0, 6, 0, 44], ["-", 8, 652, 3, 4, 0, 657, 12, 557, 0, 655], ["+", 75, 76, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25]] | 5 | 104 |
import math
while True:
H, W = list(map(int, input().split()))
if H == W == 0:
break
for h in range(H):
if h % 2 == 0:
if W % 2 == 0:
print(("#."*(W//2)))
else :
print(("#."*(W//2) + "#"))
else:
if W % 2 == 0:
print((".#"*(W//2)))
else :
print((".#"*(W//2) + ".")) | while True:
H, W = list(map(int, input().split()))
if H == W == 0:
break
for h in range(H):
if h % 2 == 0:
if W % 2 == 0:
print(("#."*(W//2)))
else:
print(("#."*(W//2) + "#"))
else:
if W % 2 == 0:
print((".#"*(W//2)))
else:
print((".#"*(W//2) + "."))
print("") | [["-", 36, 36, 36, 36, 0, 656, 0, 596, 0, 487], ["-", 36, 36, 0, 656, 0, 596, 141, 673, 0, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 25], ["+", 0, 52, 8, 196, 0, 1, 0, 652, 63, 22], ["+", 8, 196, 0, 1, 0, 652, 3, 4, 0, 24], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 654], ["+", 0, 1, 0, 652, 3, 4, 0, 557, 0, 655]] | 5 | 131 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.