problem_id stringlengths 6 6 | buggy_code stringlengths 8 526k | fixed_code stringlengths 12 526k | labels listlengths 0 15 ⌀ | buggy_submission_id int64 1 1.54M | fixed_submission_id int64 2 1.54M | user_id stringlengths 10 10 | language stringclasses 8
values |
|---|---|---|---|---|---|---|---|
p00036 | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int d[64];
char c[64];
while (1) {
int k = 0;
for (int i = 0; i < 64; i++) {
c[i] = 0;
d[i] = 0;
}
for (int i = 0; i < 64; i++) {
cin >> c[i];
... | #include <algorithm>
#include <cctype>
#include <cstdio>
#include <iostream>
#include <math.h>
using namespace std;
int main() {
int d[64];
char c[64];
while (1) {
int k = 0;
for (int i = 0; i < 64; i++) {
c[i] = 0;
d[i] = 0;
}
for (int i = 0; i < 64; i++) {
cin >> c[i];
... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 23,812 | 23,813 | u603085888 | cpp |
p00036 | #include <cstdio>
#include <iostream>
using namespace std;
int dx[7][3] = {1, 1, 0, 0, 0, 0, 1, 2, 3, 0, -1,
-1, 1, 1, 2, 0, 1, 1, 1, 0, -1};
int dy[7][3] = {0, -1, -1, -1, -2, -3, 0, 0, 0, -1, -1,
-2, 0, -1, -1, -1, -1, -2, 0, -1, -1};
char field[10][10];
int main() {
while (... | #include <cstdio>
#include <iostream>
using namespace std;
int dx[7][3] = {1, 1, 0, 0, 0, 0, 1, 2, 3, 0, -1,
-1, 1, 1, 2, 0, 1, 1, 1, 0, -1};
int dy[7][3] = {0, -1, -1, -1, -2, -3, 0, 0, 0, -1, -1,
-2, 0, -1, -1, -1, -1, -2, 0, -1, -1};
char field[10][10];
int main() {
while (... | [
"call.arguments.change"
] | 23,817 | 23,818 | u871901071 | cpp |
p00036 | #include <cstdio>
#define REP(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(i, n) REP(i, 0, n)
char m[16][16], buf[16];
int main() {
while (true) {
bool done = false;
rep(i, 8) if (scanf("%s", m[i]) == EOF) done = true;
if (done)
break;
char res = 0;
rep(i, 8) rep(j, 8) {
if (m... | #include <cstdio>
#define REP(i, a, b) for (int i = (a); i < (b); ++i)
#define rep(i, n) REP(i, 0, n)
char m[16][16], buf[16];
int main() {
while (true) {
bool done = false;
rep(i, 8) if (scanf("%s", m[i]) == EOF) done = true;
if (done)
break;
char res = 0;
rep(i, 8) rep(j, 8) {
if (m... | [
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove",
"misc.opposites",
"expression.operator.arithmetic.change",
"variable_access.subscript.index.change"
] | 23,819 | 23,820 | u647134562 | cpp |
p00036 | #include <cstdio>
#include <iostream>
using namespace std;
char w[8][8];
int dx[] = {0, 0, 1, -1}, dy[] = {1, -1, 0, 0}, s[8][8], q[4];
//ツ湘」ツ、ツ可コツ、ツ右ツ、ツ債カ
void func(int y, int x) {
s[y][x] = 0;
for (int i = 0; i < 4; i++)
if (y + dy[i] >= 0 && y + dy[i] < 8 && x + dx[i] >= 0 && x + dx[i] < 8)
if (s[y + d... | #include <cstdio>
#include <iostream>
using namespace std;
char w[8][8];
int dx[] = {0, 0, 1, -1}, dy[] = {1, -1, 0, 0}, s[8][8], q[4];
//ツ湘」ツ、ツ可コツ、ツ右ツ、ツ債カ
void func(int y, int x) {
s[y][x] = 0;
for (int i = 0; i < 4; i++)
if (y + dy[i] >= 0 && y + dy[i] < 8 && x + dx[i] >= 0 && x + dx[i] < 8)
if (s[y + d... | [
"literal.number.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 23,821 | 23,822 | u372785464 | cpp |
p00036 | #include <iostream>
#include <string>
#include <vector>
using namespace std;
bool one(const vector<string> &v, int x, int y) {
if (x < 0 || y < 0 || x >= v[0].size() || y >= v.size())
return false;
return v[y][x] == '1';
}
int main() {
vector<string> v(8);
while (cin >> v[0]) {
for (int i = 1; i < 8;... | #include <iostream>
#include <string>
#include <vector>
using namespace std;
bool one(const vector<string> &v, int x, int y) {
if (x < 0 || y < 0 || x >= v[0].size() || y >= v.size())
return false;
return v[y][x] == '1';
}
int main() {
vector<string> v(8);
while (cin >> v[0]) {
for (int i = 1; i < 8;... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 23,825 | 23,826 | u525048109 | cpp |
p00036 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {... | [
"literal.number.change"
] | 23,827 | 23,828 | u270308012 | cpp |
p00036 | #include <stdio.h>
#include <string.h>
int main(void) {
char b[65];
char p[7][33] = {
"1100000011", "10000000100000001000000010000000",
"1111", "1000000110000001",
"11000000011", "100000001100000001",
"110000011",
};
char *bi;
int t = 0;
while (true) {
if (scanf("%s", b... | #include <stdio.h>
#include <string.h>
int main(void) {
char b[65];
char p[7][33] = {
"1100000011", "1000000010000000100000001",
"1111", "1000000110000001",
"11000000011", "100000001100000001",
"110000011",
};
char *bi;
int t = 0;
while (true) {
if (scanf("%s", b) == EO... | [
"literal.string.change"
] | 23,829 | 23,830 | u763301852 | cpp |
p00036 | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
typedef long long ll;
using namespace std;
bool in(int i, int j) {
if (i >= 0 && i < 8 && j >= 0 && j < 8)
... | #define _USE_MATH_DEFINES
#include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <limits>
#include <map>
#include <queue>
#include <sstream>
#include <stack>
#include <string>
typedef long long ll;
using namespace std;
bool in(int i, int j) {
if (i >= 0 && i < 8 && j >= 0 && j < 8)
... | [
"expression.operation.binary.remove"
] | 23,831 | 23,832 | u274875240 | cpp |
p00036 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
char judge(vector<string> surface) {
for... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <functional>
#include <iostream>
#include <map>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
char judge(vector<string> surface) {
for... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change",
"expression.operation.binary.remove",
"expression.operation.binary.change"
] | 23,833 | 23,834 | u372495136 | cpp |
p00036 | #include <iostream>
#include <vector>
using namespace std;
string match(const vector<string> v) {
const string PTN[7][4]{
{"11", "11"}, {"1", "1", "1", "1"}, {"1111"}, {"01", "11", "10"},
{"110", "011"}, {"10", "11", "01"}, {"011", "110"}};
const int PTN_H[7]{2, 4, 1, 3, 2, 3, 2};
const strin... | #include <iostream>
#include <vector>
using namespace std;
string match(const vector<string> v) {
const string PTN[7][4]{
{"11", "11"}, {"1", "1", "1", "1"}, {"1111"}, {"01", "11", "10"},
{"110", "011"}, {"10", "11", "01"}, {"011", "110"}};
const int PTN_H[7]{2, 4, 1, 3, 2, 3, 2};
const strin... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 23,837 | 23,838 | u256940798 | cpp |
p00036 | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string s, shape[7];
string tmp;
shape[0] = "1100000011";
shape[1] = "1000000010000000100000001";
shape[2] = "1111";
shape[3] = "1000000110000001";
shape[4] = "11000000011";
shape[5] = "100000001100000001";
shape[6] = "110000... | #include <iostream>
#include <string>
using namespace std;
int main(void) {
string s, shape[7];
string tmp;
shape[0] = "1100000011";
shape[1] = "1000000010000000100000001";
shape[2] = "1111";
shape[3] = "1000000110000001";
shape[4] = "11000000011";
shape[5] = "100000001100000001";
shape[6] = "110000... | [] | 23,839 | 23,840 | u174233867 | cpp |
p00036 |
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <memory>
#include <string>
#include <algorithm>
#include <complex>
#include <list>
#include <map>
#inclu... |
#define _CRT_SECURE_NO_WARNINGS
#define _USE_MATH_DEFINES
#include <cfloat>
#include <climits>
#include <cmath>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <iostream>
#include <memory>
#include <string>
#include <algorithm>
#include <complex>
#include <list>
#include <map>
#inclu... | [
"variable_declaration.array_dimensions.change",
"literal.number.change",
"call.arguments.change"
] | 23,841 | 23,842 | u527975163 | cpp |
p00036 | #include <iostream>
using namespace std;
int main() {
while (true) {
char board[8][8];
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
cin >> board[i][j];
}
}
bool flag = false;
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
if (board[i]... | #include <iostream>
using namespace std;
int main() {
while (true) {
char board[8][8];
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
cin >> board[i][j];
}
}
bool flag = false;
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
if (board[i]... | [
"expression.operation.binary.add"
] | 23,845 | 23,846 | u879497299 | cpp |
p00036 | #include <iostream>
using namespace std;
int main() {
char mas[8][8];
while (1) {
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
cin >> mas[i][j];
}
}
if (cin.eof())
break;
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
if (mas[i][j]... | #include <iostream>
using namespace std;
int main() {
char mas[8][8];
while (1) {
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
cin >> mas[i][j];
}
}
if (cin.eof())
break;
for (int i = 0; i < 8; i++) {
for (int j = 0; j < 8; j++) {
if (mas[i][j]... | [
"misc.opposites",
"expression.operator.arithmetic.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 23,847 | 23,848 | u284889485 | cpp |
p00036 | #include <algorithm>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <iterator>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
typedef long long int lli;
using namespace std;
int dx[7][4] = {{0, 0, 1, 1}, {0, 0, 0, 0}, {0, 1, 2, 3}, {0, 0, -1, -1},
... | #include <algorithm>
#include <cstdlib>
#include <fstream>
#include <iostream>
#include <iterator>
#include <map>
#include <queue>
#include <stack>
#include <string>
#include <vector>
typedef long long int lli;
using namespace std;
int dx[7][4] = {{0, 0, 1, 1}, {0, 0, 0, 0}, {0, 1, 2, 3}, {0, 0, -1, -1},
... | [
"expression.operation.unary.logical.remove",
"control_flow.branch.if.condition.change"
] | 23,852 | 23,853 | u313705878 | cpp |
p00036 | #include <iostream>
using namespace std;
int main() {
int num[8];
int pattan[7][4] = {
{11000000, 11000000, 0, 0}, {10000000, 10000000, 10000000, 10000000},
{11110000, 0, 0, 0}, {1000000, 11000000, 10000000, 0},
{11000000, 1100000, 0, 0}, {10000000, 11000000, 1000000, 0},
{1100000, ... | #include <iostream>
using namespace std;
int main() {
int num[8];
int pattan[7][4] = {
{11000000, 11000000, 0, 0}, {10000000, 10000000, 10000000, 10000000},
{11110000, 0, 0, 0}, {1000000, 11000000, 10000000, 0},
{11000000, 1100000, 0, 0}, {10000000, 11000000, 1000000, 0},
{1100000, ... | [
"control_flow.branch.if.condition.change",
"control_flow.loop.for.condition.change"
] | 23,854 | 23,855 | u398354652 | cpp |
p00037 | #include <iostream>
using namespace std;
int dx[] = {1, 0, -1, 0};
int dy[] = {0, 1, 0, -1};
char dc[] = "RDLU";
int main() {
bool g[11][11];
char c;
for (int i = 1; i < 10; ++i) {
for (int j = 1 + i % 2; j <= 9; j += 2) {
cin >> c;
g[i][j] |= c - '0';
}
}
int x = 1, y = 1, d = 0;
do {... | #include <iostream>
using namespace std;
int dx[] = {1, 0, -1, 0};
int dy[] = {0, 1, 0, -1};
char dc[] = "RDLU";
int main() {
int g[11][11] = {};
char c;
for (int i = 1; i < 10; ++i) {
for (int j = 1 + i % 2; j <= 9; j += 2) {
cin >> c;
g[i][j] |= c - '0';
}
}
int x = 1, y = 1, d = 0;
... | [
"variable_declaration.type.primitive.change",
"variable_declaration.value.change"
] | 24,123 | 24,124 | u703196441 | cpp |
p00037 | #include <bits/stdc++.h>
using namespace std;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, -1, 0, 1};
const char ch[] = {"ULDR"};
bool g[10][10][10][10];
int main() {
char c;
for (int i = 1; i <= 5; i++) {
for (int j = 1; j <= 4; j++) {
scanf(" %c", &c);
if (c == '0')
continue;
... | #include <bits/stdc++.h>
using namespace std;
const int dx[] = {-1, 0, 1, 0};
const int dy[] = {0, -1, 0, 1};
const char ch[] = {"ULDR"};
bool g[10][10][10][10];
int main() {
char c;
for (int i = 1; i <= 5; i++) {
for (int j = 1; j <= 4; j++) {
scanf(" %c", &c);
if (c == '0')
continue;
... | [
"expression.operation.unary.arithmetic.remove",
"misc.opposites",
"expression.operator.compare.change",
"control_flow.loop.condition.change"
] | 24,125 | 24,126 | u334031393 | cpp |
p00037 | #include <iostream>
#include <string>
using namespace std;
const int dx[] = {1, 0, -1, 0};
const int dy[] = {0, 1, 0, -1};
const char dir[] = "RDLU";
int main() {
string input;
while (cin >> input) {
bool map[5][5][4];
// Initialization
for (int i = 0; i < 5; i++)
for (int j = 0; j < 5; j++)
... | #include <iostream>
#include <string>
using namespace std;
const int dx[] = {1, 0, -1, 0};
const int dy[] = {0, 1, 0, -1};
const char dir[] = "RDLU";
int main() {
string input;
while (cin >> input) {
bool map[5][5][4];
// Initialization
for (int i = 0; i < 5; i++)
for (int j = 0; j < 5; j++)
... | [] | 24,153 | 24,154 | u589408547 | cpp |
p00037 | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <ctype.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#includ... | #include <algorithm>
#include <bitset>
#include <cassert>
#include <cctype>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <ctime>
#include <ctype.h>
#include <fstream>
#include <iomanip>
#include <iostream>
#include <iterator>
#include <list>
#include <map>
#includ... | [
"assignment.change"
] | 24,155 | 24,156 | u041086527 | cpp |
p00044 | #include <cmath>
#include <iostream>
using namespace std;
bool Judge_Prime_Number(int x) {
for (int i = 2; i <= sqrt(x); i++) {
if (x % i == 0)
return false;
}
return true;
}
int main() {
int a;
cin >> a;
int min = a - 1, max = a + 1;
while (Judge_Prime_Number(min) == false)
min--;
wh... | #include <cmath>
#include <iostream>
using namespace std;
bool Judge_Prime_Number(int x) {
for (int i = 2; i <= sqrt(x); i++) {
if (x % i == 0)
return false;
}
return true;
}
int main() {
int a;
while (cin >> a) {
int min = a - 1, max = a + 1;
while (Judge_Prime_Number(min) == false)
... | [] | 24,265 | 24,266 | u642752018 | cpp |
p00044 | #include <iostream>
using namespace std;
int main() {
bool prime[100000];
for (int i = 0; i < 100000; i++) {
prime[i] = true;
}
prime[0] = prime[1] = false;
for (int i = 2; i < 1000; i++) {
for (int j = i * 2; j * i < 60000; j += i) {
prime[j] = false;
}
}
int n;
int cnt1, cnt2;
whi... | #include <iostream>
using namespace std;
int main() {
bool prime[100000];
for (int i = 0; i < 100000; i++) {
prime[i] = true;
}
prime[0] = prime[1] = false;
for (int i = 2; i <= 1000; i++) {
for (int j = i * 2; j < 100000; j += i) {
prime[j] = false;
}
}
int n;
int cnt1, cnt2;
while... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change",
"expression.operation.binary.remove",
"literal.number.change"
] | 24,286 | 24,287 | u982302262 | cpp |
p00044 | #include <algorithm>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#define PI 3.14159265359
#define INF 1000000;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(n) rep(i, n)
t... | #include <algorithm>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#define PI 3.14159265359
#define INF 1000000;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(n) rep(i, n)
t... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"assignment.variable.change",
"call.arguments.change",
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 24,292 | 24,291 | u812047151 | cpp |
p00044 | #include <algorithm>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#define PI 3.14159265359
#define INF 1000000;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(n) rep(i, n)
t... | #include <algorithm>
#include <cstdio>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <string>
#include <vector>
#define PI 3.14159265359
#define INF 1000000;
#define rep(i, n) for (int i = 0; i < n; i++)
#define REP(n) rep(i, n)
t... | [
"literal.number.change",
"variable_declaration.array_dimensions.change"
] | 24,293 | 24,291 | u812047151 | cpp |
p00044 | #include <bits/stdc++.h>
#define _ \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
set<int> primes = {2, 3, 5, 7, 11, ... | #include <bits/stdc++.h>
#define _ \
ios_base::sync_with_stdio(0); \
cin.tie(0);
#define REP(i, n) for (int i = 0; i < (int)(n); i++)
using namespace std;
set<int> primes = {2, 3, 5, 7, 11, ... | [
"expression.unary.arithmetic.remove"
] | 24,309 | 24,310 | u923336331 | cpp |
p00044 | #include <cmath>
#include <iostream>
using namespace std;
int x[1000000];
int main() {
for (int i = 2; i < 1000000; i++) {
for (int j = 2; j <= sqrt(i); j++) {
if (i % j == 0) {
goto E;
}
}
x[i] = 1;
E:;
}
int a, b;
while (cin >> a >> b) {
for (int i = a - 1; i >= 0; i--) {... | #include <cmath>
#include <iostream>
using namespace std;
int x[1000000];
int main() {
for (int i = 2; i < 1000000; i++) {
for (int j = 2; j <= sqrt(i); j++) {
if (i % j == 0) {
goto E;
}
}
x[i] = 1;
E:;
}
int a, b;
while (cin >> a) {
for (int i = a - 1; i >= 0; i--) {
... | [
"expression.operation.binary.remove"
] | 24,318 | 24,319 | u852311840 | cpp |
p00044 | #include <cmath>
#include <iostream>
using namespace std;
int main(void) {
int n;
cin >> n;
bool f1 = false;
for (int j = n - 1; j > 1; j--) {
for (int i = 2; i <= sqrt(j); i++) {
if ((j % i) == 0) {
f1 = true;
break;
}
}
if (!f1) {
cout << j << " ";
break... | #include <cmath>
#include <iostream>
using namespace std;
int main(void) {
int n;
while (cin >> n) {
bool f1 = false;
for (int j = n - 1; j > 1; j--) {
for (int i = 2; i <= sqrt(j); i++) {
if ((j % i) == 0) {
f1 = true;
break;
}
}
if (!f1) {
... | [] | 24,330 | 24,331 | u017136598 | cpp |
p00044 | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <string>
#include <vector>
#define loop(i, b, n) for (int i = b; i < n; i++)
#define rep(i, n) loop(i, 0, n)
#define INF 10000
#define MAX 1e6
using namespace std;
int main() {
vector<bool> check(MAX + 1);
rep(i, MAX + 1) check[i... | #include <algorithm>
#include <cmath>
#include <cstring>
#include <iostream>
#include <string>
#include <vector>
#define loop(i, b, n) for (int i = b; i < n; i++)
#define rep(i, n) loop(i, 0, n)
#define INF 10000
#define MAX 1e7
using namespace std;
int main() {
vector<bool> check(MAX + 1);
rep(i, MAX + 1) check[i... | [
"preprocessor.define.value.change",
"literal.float.change",
"identifier.change",
"control_flow.loop.condition.change"
] | 24,332 | 24,333 | u287295208 | cpp |
p00044 |
#include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
bool is_prime(int x) {
for (int i = 2; i... |
#include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
bool is_prime(int x) {
for (int i = 2; i... | [
"control_flow.loop.condition.change",
"misc.opposites",
"identifier.change",
"control_flow.branch.if.condition.change"
] | 24,340 | 24,341 | u813097547 | cpp |
p00044 |
#include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
bool is_prime(int x) {
for (int i = 2; i... |
#include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
bool is_prime(int x) {
for (int i = 2; i... | [
"control_flow.loop.condition.change"
] | 24,343 | 24,341 | u813097547 | cpp |
p00044 | #include <bits/stdc++.h>
using namespace std;
using db = double;
using ll = long long;
using vi = vector<int>;
#define op operator
#define pb push_back
const int N = 6e4L + 11;
int p[N];
int main() {
iota(p, p + N, 0);
for (int i = 2; i < N; i++)
if (p[i] == i)
for (int j = i; j < N; j += i)
p[... | #include <bits/stdc++.h>
using namespace std;
using db = double;
using ll = long long;
using vi = vector<int>;
#define op operator
#define pb push_back
const int N = 6e4L + 11;
int p[N];
int main() {
iota(p, p + N, 0);
for (int i = 2; i < N; i++)
if (p[i] == i)
for (int j = i; j < N; j += i)
p[... | [
"literal.string.change",
"io.output.change"
] | 24,346 | 24,347 | u296631814 | cpp |
p00044 | #include <iostream>
using namespace std;
bool is_sosu(int a) {
for (int i = 2; i * i < a; i++) {
if (a % i == 0)
return false;
}
return true;
}
int main() {
int n;
while (cin >> n) {
for (int i = n - 1; i >= 2; i--) {
if (is_sosu(i)) {
cout << i << " ";
break;
}
... | #include <iostream>
using namespace std;
bool is_sosu(int a) {
for (int i = 2; i * i <= a; i++) {
if (a % i == 0)
return false;
}
return true;
}
int main() {
int n;
while (cin >> n) {
for (int i = n - 1; i >= 2; i--) {
if (is_sosu(i)) {
cout << i << " ";
break;
}
... | [
"expression.operator.compare.change",
"control_flow.loop.for.condition.change",
"expression.off_by_one",
"expression.operation.binary.change"
] | 24,379 | 24,380 | u551847319 | cpp |
p00044 | #include <iostream>
#include <vector>
using namespace std;
bool IsPrime[60000];
vector<int> Prime;
void PrimeCalc() {
for (int i = 0; i < 60000; ++i) {
IsPrime[i] = true;
}
IsPrime[0] = IsPrime[1] = false;
for (int i = 2; i < 60000; ++i) {
if (IsPrime[i]) {
Prime.push_back(i);
for (int j =... | #include <iostream>
#include <vector>
using namespace std;
bool IsPrime[60000];
vector<int> Prime;
void PrimeCalc() {
for (int i = 0; i < 60000; ++i) {
IsPrime[i] = true;
}
IsPrime[0] = IsPrime[1] = false;
for (int i = 2; i < 60000; ++i) {
if (IsPrime[i]) {
Prime.push_back(i);
for (int j =... | [
"identifier.change",
"variable_access.subscript.index.change",
"control_flow.branch.if.condition.change"
] | 24,393 | 24,394 | u445853170 | cpp |
p00044 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
while (cin >> n) {
bool prime[500000];
fill(prime, prime + 500000, 0);
vector<int> nums;
for (int i = 2; i < 500000; ++i) {
if (prime[i])
continue;
nums.push_back(i);
for (i... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
int n;
while (cin >> n) {
bool prime[500000];
fill(prime, prime + 500000, 0);
vector<int> nums;
for (int i = 2; i < 500000; ++i) {
if (prime[i])
continue;
nums.push_back(i);
for (i... | [
"misc.opposites",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 24,410 | 24,411 | u621917792 | cpp |
p00044 | #include <iostream>
#include <string>
using namespace std;
int main() {
bool prime[60000];
for (int i = 0; i < 60000; i++) {
prime[i] = 1;
}
prime[0] = prime[1] = 0;
for (int i = 0; i * i < 60000; i++) {
if (prime[i] == 1) {
for (int j = i * 2; j < 60000; j += i) {
prime[j] = 0;
}... | #include <iostream>
#include <string>
using namespace std;
int main() {
bool prime[60000];
for (int i = 0; i < 60000; i++) {
prime[i] = 1;
}
prime[0] = prime[1] = 0;
for (int i = 0; i * i < 60000; i++) {
if (prime[i] == 1) {
for (int j = i * 2; j < 60000; j += i) {
prime[j] = 0;
}... | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 24,414 | 24,415 | u937978414 | cpp |
p00044 | #include <iostream>
#include <string>
using namespace std;
int main() {
bool prime[60000];
for (int i = 0; i < 60000; i++) {
prime[i] = 1;
}
prime[0] = prime[1] = 0;
for (int i = 0; i * i < 60000; i++) {
if (prime[i] == 1) {
for (int j = i * 2; j < 60000; j += i) {
prime[j] = 0;
}... | #include <iostream>
#include <string>
using namespace std;
int main() {
bool prime[60000];
for (int i = 0; i < 60000; i++) {
prime[i] = 1;
}
prime[0] = prime[1] = 0;
for (int i = 0; i * i < 60000; i++) {
if (prime[i] == 1) {
for (int j = i * 2; j < 60000; j += i) {
prime[j] = 0;
}... | [] | 24,416 | 24,415 | u937978414 | cpp |
p00044 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <vector>
using namespace std;
int main() {
const int END = -1;
const int NUM = 50000;
int num;
int i, index, index2, index3;
cin >> num;
vector<int> eratos(NUM);
for (i = 0; i < NUM - 1; i++)
eratos[i] = i + 2;
... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <vector>
using namespace std;
int main() {
const int END = -1;
const int NUM = 50022;
int num;
int i, index, index2, index3;
cin >> num;
vector<int> eratos(NUM);
for (i = 0; i < NUM - 1; i++)
eratos[i] = i + 2;
... | [
"literal.number.change",
"variable_declaration.value.change",
"io.output.change",
"literal.string.change"
] | 24,419 | 24,418 | u622119006 | cpp |
p00044 | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main(void) {
int prime[50000];
int prime_f[51001];
int k;
int n;
int i, j;
int n_size;
while (cin >> n) {
k = 0;
memset(prime_f, 0, sizeof(prime_f));
prime_f[0] = prime_f[1] = 1;
for (i = 2; i < 51000; i++... | #include <cstdio>
#include <cstring>
#include <iostream>
using namespace std;
int main(void) {
int prime[50000];
int prime_f[51001];
int k;
int n;
int i, j;
int n_size;
while (cin >> n) {
k = 0;
memset(prime_f, 0, sizeof(prime_f));
prime_f[0] = prime_f[1] = 1;
for (i = 2; i < 51000; i++... | [
"literal.number.change",
"control_flow.branch.if.condition.change",
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo",
"expression.operation.binary.remove"
] | 24,422 | 24,423 | u174623154 | cpp |
p00044 | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
const int SIZE = 50100;
bool isP[SIZE];
int main() {
fill(isP, isP + SIZE + 1, true);
for (int i = 2; i <= SIZE; i++) {
if (isP[i]) {
for (int j = i * 2;... | #include <algorithm>
#include <cstdio>
#include <cstdlib>
#include <iostream>
#include <map>
#include <string>
#include <vector>
using namespace std;
const int SIZE = 50100;
bool isP[SIZE];
int main() {
fill(isP, isP + SIZE + 1, true);
for (int i = 2; i <= SIZE; i++) {
if (isP[i]) {
for (int j = i * 2;... | [
"io.output.change"
] | 24,432 | 24,433 | u934534598 | cpp |
p00044 | #include <iostream>
using namespace std;
int main() {
bool num[10001] = {false};
for (int i = 2; i < 100; i++)
if (!num[i])
for (int j = i * i; j < 10001; j += i)
num[j] = true;
for (int n; cin >> n;) {
for (int i = n - 1;; i--)
if (!num[i]) {
cout << i << " ";
break;
... | #include <iostream>
using namespace std;
int main() {
bool num[1000001] = {false};
for (int i = 2; i < 1000; i++)
if (!num[i])
for (int j = i * i; j < 1000001; j += i)
num[j] = true;
for (int n; cin >> n;) {
for (int i = n - 1;; i--)
if (!num[i]) {
cout << i << " ";
bre... | [
"literal.number.change",
"variable_declaration.array_dimensions.change",
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"control_flow.branch.if.condition.change"
] | 24,434 | 24,435 | u712500775 | cpp |
p00044 | #include <iostream>
using namespace std;
int main() {
int n;
cin >> n;
int math[100000] = {0};
math[1] = 1;
for (int i = 2; i < 100000; i++) {
int bell = i;
while (bell + i <= 100000) {
bell += i;
if (math[bell] == 0) {
math[bell] = 1;
}
}
}
int hess = n;
while (1)... | #include <iostream>
using namespace std;
int main() {
int n;
while (cin >> n) {
int math[100000] = {0};
math[1] = 1;
for (int i = 2; i < 100000; i++) {
int bell = i;
while (bell + i <= 100000) {
bell += i;
if (math[bell] == 0) {
math[bell] = 1;
}
}
... | [] | 24,461 | 24,462 | u107951427 | cpp |
p00042 | #include <bits/stdc++.h>
using namespace std;
int main() {
int W, N;
int dp[1001];
int num = 1;
while (scanf("%d", &W), W) {
scanf("%d", &N);
memset(dp, 0, sizeof(dp));
for (int i = 0; i < N; i++) {
int v, w;
scanf("%d,%d", &v, &w);
for (int j = W; j >= 0; j--) {
if (j + ... | #include <bits/stdc++.h>
using namespace std;
int main() {
int W, N;
int dp[1001];
int num = 1;
while (scanf("%d", &W), W) {
scanf("%d", &N);
memset(dp, 0, sizeof(dp));
for (int i = 0; i < N; i++) {
int v, w;
scanf("%d,%d", &v, &w);
for (int j = W; j >= 0; j--) {
if (j + ... | [] | 24,743 | 24,744 | u914140574 | cpp |
p00043 | #include <cstdio>
#include <iostream>
using namespace std;
bool ans;
void solve(int cntnum[], int progress) {
int cntnum_c[10], cntcont = 0;
/*printf("%d: ",progress);
for(int i=0;i<10;i++){
printf("%d",cntnum[i]);
}puts("");*/
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++)
cn... | #include <cstdio>
#include <iostream>
using namespace std;
bool ans;
void solve(int cntnum[], int progress) {
int cntnum_c[10], cntcont = 0;
/*printf("%d: ",progress);
for(int i=0;i<10;i++){
printf("%d",cntnum[i]);
}puts("");*/
for (int i = 0; i < 10; i++) {
for (int j = 0; j < 10; j++)
cn... | [
"literal.number.change",
"variable_declaration.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 24,783 | 24,784 | u364532954 | cpp |
p00043 | #include <bits/stdc++.h>
#define e(i, n) for (int i = 0; i < n; i++)
using namespace std;
int m[9], t[9], d;
bool F() {
e(i, 9) {
e(j, 9) t[j] = m[j];
if (t[i] >= 2) {
t[i] -= 2;
bool o = 1;
e(j, 4) {
int p = 0;
d = 0;
while (!t[p])
p++;
if (!d && t[... | #include <bits/stdc++.h>
#define e(i, n) for (int i = 0; i < n; i++)
using namespace std;
int m[9], t[9];
bool F() {
e(i, 9) {
e(j, 9) t[j] = m[j];
if (t[i] >= 2) {
t[i] -= 2;
bool o = 1;
e(j, 4) {
int p = 0, d = 0;
while (!t[p])
p++;
if (!d && t[p] >= 3)
... | [
"variable_declaration.remove"
] | 24,789 | 24,790 | u455494700 | cpp |
p00043 | #include <iostream>
using namespace std;
const int DIGIT_NUM = 9;
bool outputAdjst = false;
void puzzleCheck(int num[], int nowNumber, bool *bFound) {
int zeroCount = 0;
int twoCount = 0;
if (*bFound)
return;
for (int i = 0; i < DIGIT_NUM; i++) {
if (num[i] >= 3) {
num[i] -= 3;
puzzleCh... | #include <iostream>
using namespace std;
const int DIGIT_NUM = 9;
bool outputAdjst = false;
void puzzleCheck(int num[], int nowNumber, bool *bFound) {
int zeroCount = 0;
int twoCount = 0;
if (*bFound)
return;
for (int i = 0; i < DIGIT_NUM; i++) {
if (num[i] >= 3) {
num[i] -= 3;
puzzleCh... | [
"control_flow.loop.for.condition.change"
] | 24,791 | 24,792 | u280402997 | cpp |
p00043 | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int x[14];
bool r[14][100];
bool tempai(int num, int jan, int chou, bool make) {
for (int i = 0; i < 14; i++) {
if (!r[i][num]) {
if (jan == 1 && i < 13) {
if (x[i] == x[i + 1] && !(r[... | #include <algorithm>
#include <cstdio>
#include <iostream>
#include <string>
#include <vector>
using namespace std;
int x[14];
bool r[14][100];
bool tempai(int num, int jan, int chou, bool make) {
for (int i = 0; i < 14; i++) {
if (!r[i][num]) {
if (jan == 1 && i < 13) {
if (x[i] == x[i + 1] && !(r[... | [
"expression.operation.compare.replace.add",
"assignment.replace.remove",
"misc.typo"
] | 24,793 | 24,794 | u712500775 | cpp |
p00043 | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
int u[10];
bool solve() {
bool f = false;
int sum = 0;
for (int i = 1; i < 10; i++)
sum += u[i];
if (sum == 0)
return true;
for (int i = 1; i < 10; i++) {
if (u[i] > 2) {
u[... | #include <algorithm>
#include <cstdio>
#include <cstring>
#include <iostream>
#include <vector>
using namespace std;
int u[10];
bool solve() {
bool f = false;
int sum = 0;
for (int i = 1; i < 10; i++)
sum += u[i];
if (sum == 0)
return true;
for (int i = 1; i < 10; i++) {
if (u[i] > 2) {
u[... | [] | 24,801 | 24,802 | u174623154 | cpp |
p00043 | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int check(int *a) {
int s = 0; // s=0なら全てが揃った
for (int i = 1; i < 10; i++) {
s += a[i];
}
return s;
}
void solve(int *a, int n, int ans[10]) {
if (check(a) == 0) { //完成した
ans[n] = 1;
return;
}
for (int i = 1; i ... | #include <algorithm>
#include <cstdio>
#include <iostream>
using namespace std;
int check(int *a) {
int s = 0; // s=0なら全てが揃った
for (int i = 1; i < 10; i++) {
s += a[i];
}
return s;
}
void solve(int *a, int n, int ans[10]) {
if (check(a) == 0) { //完成した
ans[n] = 1;
return;
}
for (int i = 1; i ... | [] | 24,803 | 24,804 | u041086527 | cpp |
p00043 | #include <algorithm>
#include <cmath>
#include <complex>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < int(n); ++i)
#define ALL(v) (v).begin(), (v).end()
#define ... | #include <algorithm>
#include <cmath>
#include <complex>
#include <iostream>
#include <map>
#include <queue>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
#define rep(i, n) for (int i = 0; i < int(n); ++i)
#define ALL(v) (v).begin(), (v).end()
#define ... | [
"expression.operation.binary.remove"
] | 24,805 | 24,806 | u332822187 | cpp |
p00045 | #include <cstdio>
using namespace std;
int main() {
int i, n, m, total = 0, num = 0;
for (i = 1; scanf("%d,%d", &n, &m) != EOF; i++) {
total += n * m;
num += m;
}
printf("%d\n%d\n", total, (int)((double)num / i + 0.5));
} | #include <cstdio>
using namespace std;
int main() {
int i, n, m, total = 0, num = 0;
for (i = 0; scanf("%d,%d", &n, &m) != EOF; i++) {
total += n * m;
num += m;
}
printf("%d\n%d\n", total, (int)(num / (double)i + 0.5));
} | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one",
"expression.operation.binary.remove"
] | 24,916 | 24,917 | u862297061 | cpp |
p00045 | #include <cstdio>
using namespace std;
int main() {
int i, n, m, total = 0, num = 0;
for (i = 1; scanf("%d,%d", &n, &m) != EOF; i++) {
total += n * m;
num += m;
}
printf("%d\n%d\n", total, (int)(num / (double)i + 0.5));
} | #include <cstdio>
using namespace std;
int main() {
int i, n, m, total = 0, num = 0;
for (i = 0; scanf("%d,%d", &n, &m) != EOF; i++) {
total += n * m;
num += m;
}
printf("%d\n%d\n", total, (int)(num / (double)i + 0.5));
} | [
"literal.number.change",
"assignment.value.change",
"control_flow.loop.for.initializer.change",
"expression.off_by_one"
] | 24,918 | 24,917 | u862297061 | cpp |
p00045 | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {... | #include <algorithm>
#include <bitset>
#include <cfloat>
#include <climits>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <list>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <vector>
using namespace std;
int main() {... | [
"assignment.change"
] | 24,921 | 24,922 | u270308012 | cpp |
p00045 | #include <stdio.h>
int main() {
int kiro, s, ksum, ssum, n;
double h;
ksum = ssum = n = 0;
while (scanf("%d,%d", &kiro, &s) != EOF) {
ksum += kiro * s;
s++;
ssum += s;
}
h = (double)ssum / (double)s;
if ((h - (double)((int)h)) >= 0.5)
s = (int)h + 1;
else
s = (int)h;
printf("%d\n%... | #include <stdio.h>
int main() {
int kiro, s, ksum, ssum, n;
double h;
ksum = ssum = n = 0;
while (scanf("%d,%d", &kiro, &s) != EOF) {
ksum += kiro * s;
n++;
ssum += s;
}
h = (double)ssum / (double)n;
if ((h - (double)((int)h)) >= 0.5)
s = (int)h + 1;
else
s = (int)h;
printf("%d\n%... | [
"identifier.change",
"assignment.value.change",
"expression.operation.binary.change"
] | 24,925 | 24,924 | u540597234 | cpp |
p00045 | #include <cstdio>
#include <iostream>
using namespace std;
main() {
int val, num;
int Sval = 0, Snum = 0; // SvalÍÌzSnumÍÌÂ
int n; //o[½£ÁÆÌ
while (scanf("%d,%d", &val, &num) != EOF) {
Sval += val * num;
Snum += num;
n++;
}
cout << Sval << endl << (int)... | #include <cstdio>
#include <iostream>
using namespace std;
main() {
int val, num;
int Sval = 0, Snum = 0; // SvalÍÌzSnumÍÌÂ
int n = 0; //o[½£ÁÆÌ
while (scanf("%d,%d", &val, &num) != EOF) {
Sval += val * num;
Snum += num;
n++;
}
cout << Sval << endl << (int)... | [
"variable_declaration.value.change"
] | 24,934 | 24,935 | u125634664 | cpp |
p00045 | #include <cstdio>
#include <iostream>
using namespace std;
main() {
int val, num;
int Sval = 0, Snum = 0; // SvalÍÌzSnumÍÌÂ
int n; //o[½£ÁÆÌ
while (scanf("%d,%d", &val, &num) != EOF) {
Sval += val * num;
Snum += num;
n++;
}
cout << Sval << endl << (int)... | #include <cstdio>
#include <iostream>
using namespace std;
main() {
int val, num;
int Sval = 0, Snum = 0; // SvalÍÌzSnumÍÌÂ
int n = 0; //o[½£ÁÆÌ
while (scanf("%d,%d", &val, &num) != EOF) {
Sval += val * num;
Snum += num;
n++;
}
cout << Sval << endl << (int)... | [
"variable_declaration.value.change"
] | 24,936 | 24,935 | u125634664 | cpp |
p00045 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int value, num, i = 0, total = 0, ave = 0;
while (scanf("%d, %d", &value, &num) != EOF) {
total += value * num;
ave += num;
i++;
}
cout << total << endl << (int)(ave / i + 0.5) << endl;
return 0;
} | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int value, num, i = 0, total = 0, ave = 0;
while (scanf("%d, %d", &value, &num) != EOF) {
total += value * num;
ave += num;
i++;
}
cout << total << endl << (int)(ave / (double)i + 0.5) << endl;
return 0;
} | [
"type_conversion.add"
] | 24,940 | 24,938 | u081124728 | cpp |
p00045 | #include <iostream>
using namespace std;
int main(void) {
int value, num;
int sum = 0, ave = 0, row = 0;
while (cin >> value >> num) {
sum += value * num;
ave += num;
row++;
}
cout << sum << endl << (int)(ave / (double)row + 0.5) << endl;
return 0;
} | #include <iostream>
using namespace std;
int main(void) {
int value, num;
int sum = 0, ave = 0, row = 0;
char a;
while (cin >> value >> a >> num) {
sum += value * num;
ave += num;
row++;
}
cout << sum << endl << (int)(ave / (double)row + 0.5) << endl;
return 0;
} | [
"variable_declaration.add",
"control_flow.loop.condition.change"
] | 24,942 | 24,943 | u263247628 | cpp |
p00045 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int price, num, sump = 0, sum = 0, i = 0;
double ave;
while (scanf("%d,%d", &price, &num) != EOF) {
sump += price;
sum += num;
i++;
}
ave = sum / (double)i;
ave += 0.5;
cout << sump << endl << (int)ave << endl;
return 0;... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
int price, num, sump = 0, sum = 0, i = 0;
double ave;
while (scanf("%d,%d", &price, &num) != EOF) {
sump += price * num;
sum += num;
i++;
}
ave = sum / (double)i;
ave += 0.5;
cout << sump << endl << (int)ave << endl;
re... | [
"assignment.change"
] | 24,950 | 24,951 | u913726760 | cpp |
p00046 | #include <stdio.h>
int main() {
long double n;
long double high, low;
long double ans;
scanf("%lf", &n);
high = n;
low = n;
while (scanf("%lf", &n) != EOF) {
if (high < n) {
high = n;
}
if (low > n) {
low = n;
}
}
ans = high - low;
printf("%lf\n", ans);
return 0;
} | #include <stdio.h>
int main() {
double n;
double high, low;
double ans;
scanf("%lf", &n);
high = n;
low = n;
while (scanf("%lf", &n) != EOF) {
if (high < n) {
high = n;
}
if (low > n) {
low = n;
}
}
ans = high - low;
printf("%f\n", ans);
return 0;
} | [
"variable_declaration.type.narrow.change",
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 25,087 | 25,088 | u467175809 | cpp |
p00046 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
void Solution() {
int n = 0;
double a[n];
while (cin >> a[n]) {
n++;
}
// for (int i = 0; i < n - 1; i++)
// {
// for (int j = i + 1; j < n; j++)
// {
// if (a[i] < a... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
using namespace std;
void Solution() {
int n = 0;
double a[100]; // notice the definition.
while (cin >> a[n]) {
n++;
}
// for (int i = 0; i < n - 1; i++)
// {
// for (int j = i + 1; j < n; j++)
// {
... | [
"identifier.replace.remove",
"literal.replace.add",
"variable_declaration.array_dimensions.change"
] | 25,093 | 25,094 | u291112626 | cpp |
p00046 | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#define shosu(x) fixed << setprecision(x)
using namespace std;
typedef pair<int, int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, P> pip;
typedef long long ll;
const i... | #include <algorithm>
#include <cmath>
#include <iomanip>
#include <iostream>
#include <map>
#include <string>
#include <vector>
#define shosu(x) fixed << setprecision(x)
using namespace std;
typedef pair<int, int> P;
typedef vector<int> vi;
typedef vector<vi> vvi;
typedef pair<int, P> pip;
typedef long long ll;
const i... | [
"variable_declaration.value.change",
"identifier.replace.add",
"literal.replace.remove"
] | 25,095 | 25,096 | u496100636 | cpp |
p00046 | #include <iostream>
using namespace std;
int main() {
float max = 0, min = 1000000, in;
while (true) {
cin >> in;
if (cin.eof()) {
break;
}
if (max < in) {
max = in;
} else if (min > in) {
min = in;
}
cout << max - min << endl;
}
return 0;
} | #include <iostream>
using namespace std;
int main() {
float max = 0, min = 1000000, in;
while (true) {
cin >> in;
if (cin.eof()) {
break;
}
if (max < in) {
max = in;
} else if (min > in) {
min = in;
}
}
cout << max - min << endl;
return 0;
} | [] | 25,099 | 25,100 | u314932236 | cpp |
p00046 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
double high[50] = {};
int i = 0;
while (cin >> high[i]) {
i++;
}
sort(high, high + i);
cout << high[i] - high[0] << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
double high[50] = {};
int i = 0;
while (cin >> high[i]) {
i++;
}
sort(high, high + i);
cout << high[i - 1] - high[0] << endl;
return 0;
} | [
"expression.operation.binary.add"
] | 25,101 | 25,102 | u250936579 | cpp |
p00046 | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
double n, a, b;
vector<double> v;
while (cin >> n) {
v.push_back(n);
}
a = v[0];
b = v[0];
for (int i = 0; i < n; i++) {
a = max(a, v[i]);
b = min(b, v[i]);
}
double ans = a - b;
cout << a... | #include <algorithm>
#include <iostream>
#include <vector>
using namespace std;
int main() {
double n, a, b;
vector<double> v;
while (cin >> n) {
v.push_back(n);
}
a = v[0];
b = v[0];
for (int i = 0; i < v.size(); i++) {
a = max(a, v[i]);
b = min(b, v[i]);
}
double ans = a - b;
co... | [
"control_flow.loop.for.condition.change",
"expression.operation.binary.change",
"call.add"
] | 25,105 | 25,106 | u071175824 | cpp |
p00046 | #include <iostream>
using namespace std;
int main() {
double max = -1.0, min = 10000.0;
double tmp;
while (cin >> tmp) {
if (max < tmp)
max = tmp;
if (min > tmp)
min = tmp;
}
printf("%ld\n", max - min);
return 0;
} | #include <iostream>
using namespace std;
int main() {
double max = -1.0, min = 10000.0;
double tmp;
while (cin >> tmp) {
if (max < tmp)
max = tmp;
if (min > tmp)
min = tmp;
}
printf("%lf\n", max - min);
return 0;
} | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 25,107 | 25,108 | u641440787 | cpp |
p00046 | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
double x;
cin >> x;
double minimum = x, maximum = x;
while (cin >> x) {
minimum = min(minimum, x);
maximum = max(maximum, x);
}
cout << maximum - maximum << endl;
return 0;
} | #include <algorithm>
#include <iostream>
using namespace std;
int main() {
double x;
cin >> x;
double minimum = x, maximum = x;
while (cin >> x) {
minimum = min(minimum, x);
maximum = max(maximum, x);
}
cout << maximum - minimum << endl;
return 0;
} | [
"identifier.change",
"io.output.change"
] | 25,109 | 25,110 | u611853667 | cpp |
p00045 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i < (n); i++)
int main() {
int a, b;
int sum = 0, ave = 0, cnt = 0;
while (scanf("%d,%d", &a, &b) != EOF) {
sum += a;
ave += b;
cnt++;
}
ave = ave * 10 / cnt;
if... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i < (n); i++)
int main() {
int a, b;
int sum = 0, ave = 0, cnt = 0;
while (scanf("%d,%d", &a, &b) != EOF) {
sum += a * b;
ave += b;
cnt++;
}
ave = ave * 10 / cnt;
... | [
"assignment.change"
] | 25,294 | 25,295 | u603777231 | cpp |
p00045 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i... | [
"assignment.change"
] | 25,300 | 25,301 | u017136598 | cpp |
p00045 |
#include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int price, num;
int sum =... |
#include <algorithm>
#include <cctype>
#include <iomanip>
#include <iostream>
#include <map>
#include <math.h>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <stdio.h>
#include <string.h>
#include <string>
#include <vector>
using namespace std;
int main() {
int price, num;
int sum =... | [
"variable_declaration.add",
"control_flow.loop.condition.change"
] | 25,309 | 25,310 | u813097547 | cpp |
p00047 | #include <iostream>
using namespace std;
int main() {
int a = 1, b = 0, c = 0, tmp;
char x, y;
while (cin >> x >> y) {
if (x == 'A') {
if (y == 'B') {
tmp = a;
a = b;
b = tmp;
} else {
tmp = a;
a = c;
c = tmp;
}
} else if (x == 'B') {
... | #include <iostream>
using namespace std;
int main() {
int a = 1, b = 0, c = 0, tmp;
char x, y, z;
while (cin >> x >> z >> y) {
if (x == 'A') {
if (y == 'B') {
tmp = a;
a = b;
b = tmp;
} else {
tmp = a;
a = c;
c = tmp;
}
} else if (x == 'B... | [
"variable_declaration.add",
"control_flow.loop.condition.change"
] | 25,434 | 25,435 | u080829147 | cpp |
p00048 | #include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
#define EPS (1e-10)
const char *Class(double w) {
#define judgeit(lim, name) \
{ ... | #include <algorithm>
#include <iostream>
#include <sstream>
#include <string>
#include <vector>
using namespace std;
#define EPS (1e-10)
const char *Class(double w) {
#define judgeit(lim, name) \
{ ... | [
"literal.string.change",
"function.return_value.change"
] | 25,516 | 25,517 | u514153326 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
double w;
while (cin >> w) {
if (w <= 48.0) {
cout << "light fly" << endl;
continue;
} else if (w <= 51.0) {
cout << "fly" << endl;
continue;
} else if (w <= 54.0) {
cout << "bantan" << endl;
continue;
} else ... | #include <iostream>
using namespace std;
int main() {
double w;
while (cin >> w) {
if (w <= 48.0) {
cout << "light fly" << endl;
continue;
} else if (w <= 51.0) {
cout << "fly" << endl;
continue;
} else if (w <= 54.0) {
cout << "bantam" << endl;
continue;
} else ... | [
"literal.string.change",
"io.output.change"
] | 25,518 | 25,519 | u398354652 | cpp |
p00048 | #include <bits/stdc++.h>
using namespace std;
int main() {
double w;
while (scanf("%lf", &w) != EOF) {
if (w <= 48.0)
cout << "light fly" << endl;
else if (48.0 < w && w <= 51.0)
cout << "fly" << endl;
else if (51.0 < w && w <= 54.0)
cout << "bantam" << endl;
else if (54.0 < w && ... | #include <bits/stdc++.h>
using namespace std;
int main() {
double w;
while (scanf("%lf", &w) != EOF) {
if (w <= 48.0)
cout << "light fly" << endl;
else if (48.0 < w && w <= 51.0)
cout << "fly" << endl;
else if (51.0 < w && w <= 54.0)
cout << "bantam" << endl;
else if (54.0 < w && ... | [
"misc.opposites",
"expression.operator.compare.change",
"expression.operation.binary.change"
] | 25,522 | 25,523 | u662227160 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
double x;
while (cin >> x) {
if (x <= 48.00)
cout << "light fly" << endl;
else if (x <= 51.00)
cout << "fly" << endl;
else if (x <= 54.00)
cout << "bantam" << endl;
else if (x <= 57.00)
cout << "feather" << endl;
els... | #include <iostream>
using namespace std;
int main() {
double x;
while (cin >> x) {
if (x <= 48.00)
cout << "light fly" << endl;
else if (x <= 51.00)
cout << "fly" << endl;
else if (x <= 54.00)
cout << "bantam" << endl;
else if (x <= 57.00)
cout << "feather" << endl;
els... | [
"literal.string.change",
"io.output.change"
] | 25,524 | 25,525 | u681511075 | cpp |
p00048 | #include <iostream>
#include <string>
using namespace std;
int main() {
const string Class[11] = {"light fly", "fly", "bantam",
"feather", "light", "light welter",
"welter", "light middle", "middle",
"ligh... | #include <iostream>
#include <string>
using namespace std;
int main() {
const string Class[11] = {"light fly", "fly", "bantam",
"feather", "light", "light welter",
"welter", "light middle", "middle",
"ligh... | [
"variable_declaration.type.primitive.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 25,526 | 25,527 | u823513038 | cpp |
p00048 | #include <iostream>
#include <string>
using namespace std;
int main() {
const string Class[11] = {"light fly", "fly", "bantam",
"feather", "light", "light welter",
"welter", "light middle", "middle",
"ligh... | #include <iostream>
#include <string>
using namespace std;
int main() {
const string Class[11] = {"light fly", "fly", "bantam",
"feather", "light", "light welter",
"welter", "light middle", "middle",
"ligh... | [
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 25,528 | 25,527 | u823513038 | cpp |
p00048 | #include <iostream>
#include <string>
using namespace std;
int main() {
const string Class[11] = {"light fly", "fly", "bantam",
"feather", "light", "light welter",
"welter", "light middle", "middle",
"ligh... | #include <iostream>
#include <string>
using namespace std;
int main() {
const string Class[11] = {"light fly", "fly", "bantam",
"feather", "light", "light welter",
"welter", "light middle", "middle",
"ligh... | [
"literal.number.change",
"variable_declaration.value.change",
"expression.operator.compare.change",
"control_flow.branch.if.condition.change"
] | 25,529 | 25,527 | u823513038 | cpp |
p00048 | #include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main(void) {
int n;
while (cin >> n) {
if (n <= 48)
cout << "light fly" << endl;
else if (n <= 51)
cout << "fly" << endl;
else if (n <= 54)
cout << "bantam" << endl;
else if (n <= 57)
cout <<... | #include <algorithm>
#include <cmath>
#include <iostream>
using namespace std;
int main(void) {
double n;
while (cin >> n) {
if (n <= 48)
cout << "light fly" << endl;
else if (n <= 51)
cout << "fly" << endl;
else if (n <= 54)
cout << "bantam" << endl;
else if (n <= 57)
cout... | [
"variable_declaration.type.primitive.change"
] | 25,530 | 25,531 | u346550152 | cpp |
p00048 | #include <iostream>
#include <string>
using namespace std;
double x[11] = {48, 51, 54, 57, 60, 64, 69, 75, 81, 90, 1000000000}, a;
string S[11] = {"light fly", "fly", "bantam", "feather",
"light", "light welter", "welter", "light middle",
"middle", "light heavy", "heavy"... | #include <iostream>
#include <string>
using namespace std;
double x[11] = {48, 51, 54, 57, 60, 64, 69, 75, 81, 91, 1000000000}, a;
string S[11] = {"light fly", "fly", "bantam", "feather",
"light", "light welter", "welter", "light middle",
"middle", "light heavy", "heavy"... | [
"literal.number.change"
] | 25,532 | 25,533 | u852311840 | cpp |
p00048 | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i < (n); i++)
int main() {
double n;
while (cin >> n) {
if (n <= 48.0)
cout << "light fly" << endl;
else if (n <= 51.0)
cout << "fly" << endl;
else if (n <= ... | #include <bits/stdc++.h>
using namespace std;
#define FOR(i, a, b) for (int i = (a); i < (b); i++)
#define REP(i, n) for (int i = 0; i < (n); i++)
int main() {
double n;
while (cin >> n) {
if (n <= 48.0)
cout << "light fly" << endl;
else if (n <= 51.0)
cout << "fly" << endl;
else if (n <= ... | [
"literal.string.change",
"io.output.change"
] | 25,534 | 25,535 | u603777231 | cpp |
p00048 | #include <stdio.h>
int main(void) {
double weight;
while (scanf("%lf", &weight) != EOF) {
if (weight <= 48) {
printf("light fly");
} else if (weight <= 51) {
printf("fly");
} else if (weight <= 54) {
printf("bantam");
} else if (weight <= 57) {
printf("feather");
} else... | #include <stdio.h>
int main(void) {
double weight;
while (scanf("%lf", &weight) != EOF) {
if (weight <= 48) {
printf("light fly");
} else if (weight <= 51) {
printf("fly");
} else if (weight <= 54) {
printf("bantam");
} else if (weight <= 57) {
printf("feather");
} else... | [
"literal.string.change",
"call.arguments.change",
"io.output.change"
] | 25,536 | 25,537 | u651428295 | cpp |
p00048 | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m... | #include <algorithm>
#include <cmath>
#include <cstdlib>
#include <functional>
#include <iostream>
#include <math.h>
#include <queue>
#include <stdio.h>
#include <stdlib.h>
#include <string>
#include <vector>
#define REP(i, n) for (int i = 0; i < n; i++)
#define REPR(i, n) for (int i = n; i >= 0; i--)
#define FOR(i, m... | [
"literal.number.change",
"control_flow.branch.if.condition.change"
] | 25,542 | 25,543 | u017136598 | cpp |
p00048 | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define ll long long int
#define ld long double
#define INF 1000000000
#define EPS 0.0000000001
#define rep(i, n) for (i = 0; i < n; i++)
using namespace s... | #include <algorithm>
#include <cmath>
#include <cstdio>
#include <iostream>
#include <queue>
#include <stack>
#include <string>
#include <utility>
#include <vector>
#define ll long long int
#define ld long double
#define INF 1000000000
#define EPS 0.0000000001
#define rep(i, n) for (i = 0; i < n; i++)
using namespace s... | [
"literal.string.change",
"io.output.change"
] | 25,544 | 25,545 | u467070262 | cpp |
p00048 | #define scanf_s scanf
//#define gets_s gets
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
#define MIN 40
#define MAX 1000000
int main(void) {
char *C[] = {"light fly", "fly", "bantam", "feather",
"light", "light welter", "welter", "light mi... | #define scanf_s scanf
//#define gets_s gets
#include <iostream>
#include <math.h>
#include <stdio.h>
#include <string>
using namespace std;
#define MIN 39
#define MAX 150
int main(void) {
char *C[] = {"light fly", "fly", "bantam", "feather",
"light", "light welter", "welter", "light middle... | [
"preprocessor.define.value.change",
"literal.integer.change",
"identifier.replace.add",
"literal.replace.remove"
] | 25,546 | 25,547 | u187737708 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
double w;
while (cin >> w) {
if (w > 91) {
cout << "heavy" << endl;
} else if (w > 81) {
cout << "light heavy" << endl;
} else if (w > 75) {
cout << "middle" << endl;
} else if (w > 69) {
cout << "light middle" << endl;
... | #include <iostream>
using namespace std;
int main() {
double w;
while (cin >> w) {
if (w > 91) {
cout << "heavy" << endl;
} else if (w > 81) {
cout << "light heavy" << endl;
} else if (w > 75) {
cout << "middle" << endl;
} else if (w > 69) {
cout << "light middle" << endl;
... | [
"literal.string.change",
"io.output.change"
] | 25,548 | 25,549 | u327778409 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
double w;
while (cin >> w) {
if (w > 91) {
cout << "heavy" << endl;
} else if (w > 81) {
cout << "light heavy" << endl;
} else if (w > 75) {
cout << "middle" << endl;
} else if (w > 69) {
cout << "light middle" << endl;
... | #include <iostream>
using namespace std;
int main() {
double w;
while (cin >> w) {
if (w > 91) {
cout << "heavy" << endl;
} else if (w > 81) {
cout << "light heavy" << endl;
} else if (w > 75) {
cout << "middle" << endl;
} else if (w > 69) {
cout << "light middle" << endl;
... | [
"literal.string.change",
"io.output.change"
] | 25,550 | 25,549 | u327778409 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
double w;
while (cin >> w) {
if (w <= 48.0)
cout << "light fly";
else if (w <= 51.0)
cout << "fly";
else if (w <= 54.0)
cout << "bantam";
else if (w <= 57.0)
cout << "feather";
else if (w <= 60.0)
cout << "light... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double w;
while (cin >> w) {
if (w <= 48.0)
cout << "light fly";
else if (w <= 51.0)
cout << "fly";
else if (w <= 54.0)
cout << "bantam";
else if (w <= 57.0)
cout << "feather";
else if (w <= 60.0)
... | [
"import.add",
"literal.string.change",
"io.output.change"
] | 25,551 | 25,552 | u131691870 | cpp |
p00048 | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double w;
while (cin >> w) {
if (w <= 48.0)
cout << "light fly";
else if (w <= 51.0)
cout << "fly";
else if (w <= 54.0)
cout << "bantam";
else if (w <= 57.0)
cout << "feather";
else if (w <= 60.0)
... | #include <cstdio>
#include <iostream>
using namespace std;
int main() {
double w;
while (cin >> w) {
if (w <= 48.0)
cout << "light fly";
else if (w <= 51.0)
cout << "fly";
else if (w <= 54.0)
cout << "bantam";
else if (w <= 57.0)
cout << "feather";
else if (w <= 60.0)
... | [
"literal.string.change",
"io.output.change"
] | 25,553 | 25,552 | u131691870 | cpp |
p00048 | #include <cstdio>
#include <iostream>
using namespace std;
#define int long long
signed main() {
float a;
while (scanf("%f", &a) != EOF) {
if (a <= 48)
cout << "light fly" << endl;
else if (a <= 51)
cout << "fly" << endl;
else if (a <= 54)
cout << "feather" << endl;
else if (a <= 5... | #include <cstdio>
#include <iostream>
using namespace std;
#define int long long
signed main() {
float a;
while (scanf("%f", &a) != EOF) {
if (a <= 48)
cout << "light fly" << endl;
else if (a <= 51)
cout << "fly" << endl;
else if (a <= 54)
cout << "bantam" << endl;
else if (a <= 57... | [
"literal.string.change",
"io.output.change"
] | 25,555 | 25,556 | u921312486 | cpp |
p00048 | #include <bits/stdc++.h>
using namespace std;
int main() {
double a;
while (cin >> a) {
if (a <= 48.00)
printf("light fly\n");
else if (a <= 51.00)
printf("fly\n");
else if (a <= 54.00)
printf("bantam\n");
else if (a <= 57.00)
printf("feather\n");
else if (a <= 60.00)
... | #include <bits/stdc++.h>
using namespace std;
int main() {
double a;
while (cin >> a) {
if (a <= 48.00)
printf("light fly\n");
else if (a <= 51.00)
printf("fly\n");
else if (a <= 54.00)
printf("bantam\n");
else if (a <= 57.00)
printf("feather\n");
else if (a <= 60.00)
... | [
"literal.string.change",
"call.arguments.change",
"io.output.change",
"call.add"
] | 25,557 | 25,558 | u354244251 | cpp |
p00048 | #include <bits/stdc++.h>
using namespace std;
int main() {
double a;
while (cin >> a) {
if (a <= 48.00)
printf("light fly\n");
else if (a <= 51.00)
printf("fly\n");
else if (a <= 54.00)
printf("bantam\n");
else if (a <= 57.00)
printf("feather\n");
else if (a <= 60.00)
... | #include <bits/stdc++.h>
using namespace std;
int main() {
double a;
while (cin >> a) {
if (a <= 48.00)
printf("light fly\n");
else if (a <= 51.00)
printf("fly\n");
else if (a <= 54.00)
printf("bantam\n");
else if (a <= 57.00)
printf("feather\n");
else if (a <= 60.00)
... | [
"io.output.change",
"call.add"
] | 25,559 | 25,558 | u354244251 | cpp |
p00048 | #include <iostream>
using namespace std;
int main(void) {
double w;
while (cin >> w) {
if (w <= 48) {
cout << "light fly" << endl;
} else if (w > 48 && w <= 51) {
cout << "fly";
} else if (w > 51 && w <= 54) {
cout << "bantam";
} else if (w > 54 && w <= 57) {
cout << "feath... | #include <iostream>
using namespace std;
int main(void) {
double w;
while (cin >> w) {
if (w <= 48) {
cout << "light fly";
} else if (w > 48 && w <= 51) {
cout << "fly";
} else if (w > 51 && w <= 54) {
cout << "bantam";
} else if (w > 54 && w <= 57) {
cout << "feather";
... | [
"expression.operation.binary.remove"
] | 25,561 | 25,562 | u995466695 | cpp |
p00048 | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
string s[11] = {"light fly", "fly", "bantam", "feather",
"light", "light welter", "welter", "light middle",
"middle", "light heavy", "heavy"};
double g[] = {48.0, 51.0, 54.0, 57.0, 60.0, 64.... | #include <algorithm>
#include <iostream>
#include <string>
using namespace std;
string s[11] = {"light fly", "fly", "bantam", "feather",
"light", "light welter", "welter", "light middle",
"middle", "light heavy", "heavy"};
double g[] = {48.0, 51.0, 54.0, 57.0, 60.0, 64.... | [
"literal.number.change",
"control_flow.loop.condition.change"
] | 25,563 | 25,564 | u096656118 | cpp |
p00048 | #include <iostream>
using namespace std;
int main(void) {
double weight;
while (cin >> weight) {
if (weight <= 48.0)
cout << "light fly" << endl;
else if (weight <= 51.0)
cout << "fly" << endl;
else if (weight <= 54.0)
cout << "bantam" << endl;
else if (weight <= 57.0)
cout <... | #include <iostream>
using namespace std;
int main(void) {
double weight;
while (cin >> weight) {
if (weight <= 48.0)
cout << "light fly" << endl;
else if (weight <= 51.0)
cout << "fly" << endl;
else if (weight <= 54.0)
cout << "bantam" << endl;
else if (weight <= 57.0)
cout <... | [
"io.output.change"
] | 25,567 | 25,568 | u615727692 | cpp |
p00048 | #include <iostream>
using namespace std;
main() {
double d;
while (cin >> d) {
cout
<< ((d <= 48)
? "light fly"
: ((d <= 51)
? "fly"
: ((d <= 54)
? "bantam"
: ((d <= ... | #include <iostream>
using namespace std;
main() {
double d;
while (cin >> d) {
cout
<< ((d <= 48)
? "light fly"
: ((d <= 51)
? "fly"
: ((d <= 54)
? "bantam"
: ((d <= ... | [
"literal.string.change",
"io.output.change"
] | 25,569 | 25,570 | u435226340 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
double n;
while (cin >> n && n) {
if (n > 91.00)
cout << "heavy" << endl;
else if (n > 81.00)
cout << "light middle" << endl;
else if (n > 75.00)
cout << "middle" << endl;
else if (n > 69.00)
cout << "light middle" << end... | #include <iostream>
using namespace std;
int main() {
double n;
while (cin >> n) {
if (n > 91.00)
cout << "heavy" << endl;
else if (n > 81.00)
cout << "light heavy" << endl;
else if (n > 75.00)
cout << "middle" << endl;
else if (n > 69.00)
cout << "light middle" << endl;
... | [
"expression.operation.binary.remove",
"literal.string.change",
"io.output.change"
] | 25,583 | 25,582 | u108432367 | cpp |
p00048 | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include ... | #include <algorithm>
#include <cmath>
#include <complex>
#include <cstdio>
#include <cstdlib>
#include <cstring>
#include <deque>
#include <functional>
#include <iostream>
#include <map>
#include <numeric>
#include <queue>
#include <set>
#include <sstream>
#include <stack>
#include <string>
#include <utility>
#include ... | [
"literal.string.change",
"assignment.value.change"
] | 25,584 | 25,585 | u434428594 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
double n;
while (cin >> n) {
if (n <= 48.00)
cout << "light fly" << endl;
else if (n <= 51.00)
cout << "fly" << endl;
else if (n <= 54.00)
cout << "bantam" << endl;
else if (n <= 57.00)
cout << "feather" << endl;
else ... | #include <iostream>
using namespace std;
int main() {
double n;
while (cin >> n) {
if (n <= 48.00)
cout << "light fly" << endl;
else if (n <= 51.00)
cout << "fly" << endl;
else if (n <= 54.00)
cout << "bantam" << endl;
else if (n <= 57.00)
cout << "feather" << endl;
else ... | [
"literal.string.change",
"io.output.change"
] | 25,586 | 25,587 | u148810531 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
double n;
while (cin >> n) {
if (n <= 48.0)
cout << "light fly" << endl;
else if (n <= 51.0)
cout << "fly" << endl;
else if (n <= 54.0)
cout << "bantam" << endl;
else if (n <= 57.0)
cout << "feather" << endl;
else if... | #include <iostream>
using namespace std;
int main() {
double n;
while (cin >> n) {
if (n <= 48.0)
cout << "light fly" << endl;
else if (n <= 51.0)
cout << "fly" << endl;
else if (n <= 54.0)
cout << "bantam" << endl;
else if (n <= 57.0)
cout << "feather" << endl;
else if... | [
"literal.string.change",
"io.output.change"
] | 25,588 | 25,589 | u116766943 | cpp |
p00048 | #include <iostream>
using namespace std;
int main() {
double n;
while (cin >> n) {
if (n <= 48.0)
cout << "light fly" << endl;
else if (n <= 51.0)
cout << "fly" << endl;
else if (n <= 54.0)
cout << "bantam" << endl;
else if (n <= 57.0)
cout << "feather" << endl;
else if... | #include <iostream>
using namespace std;
int main() {
double n;
while (cin >> n) {
if (n <= 48.0)
cout << "light fly" << endl;
else if (n <= 51.0)
cout << "fly" << endl;
else if (n <= 54.0)
cout << "bantam" << endl;
else if (n <= 57.0)
cout << "feather" << endl;
else if... | [
"literal.string.change",
"io.output.change"
] | 25,588 | 25,590 | u116766943 | cpp |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.